Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
f25f1e0
refactor!: use `@vanilla-extract/css` for styling
mariuslundgard Jun 6, 2025
d5bf365
chore(release): 3.0.0-static.33
mariuslundgard Jun 18, 2025
3956673
fixup! refactor!: use `@vanilla-extract/css` for styling
mariuslundgard Jun 18, 2025
400e476
tmp
mariuslundgard Jun 19, 2025
2531b33
tmp: new pkg-utils
mariuslundgard Jun 19, 2025
bd25d22
tmp
mariuslundgard Jun 19, 2025
f79bec6
tmp: remove deprecated api members
mariuslundgard Jun 19, 2025
cf942ce
tmp: pkg-utils boundaries
mariuslundgard Jun 20, 2025
38ea8ea
styled-components
mariuslundgard Jun 20, 2025
89bcb4c
chore(release): 3.0.0-static.34
mariuslundgard Jun 20, 2025
6dbf244
chore(build): revert to `api-extractor`
mariuslundgard Jun 20, 2025
7bd2c4a
chore(release): 3.0.0-static.35
mariuslundgard Jun 20, 2025
934959b
tmp: export buildCSSThemeTokens
mariuslundgard Jun 20, 2025
b10ac84
chore(release): 3.0.0-static.36
mariuslundgard Jun 20, 2025
16398ec
fix: theme builder
mariuslundgard Jun 20, 2025
2833a49
chore(release): 3.0.0-static.37
mariuslundgard Jun 20, 2025
8900d04
fix(css): fix theme builder options
mariuslundgard Jun 21, 2025
87ed347
chore(release): 3.0.0-static.38
mariuslundgard Jun 21, 2025
106d8c1
fix: playground
mariuslundgard Jun 29, 2025
c463aa2
fix: lint
mariuslundgard Jun 29, 2025
b692360
fix(ui): fix regression in `useMediaIndex`
mariuslundgard Jun 29, 2025
efd8d2f
fix: theme
mariuslundgard Jun 29, 2025
f4c6233
docs: add important todos
mariuslundgard Jun 29, 2025
3fa4481
chore(release): 3.0.0-static.39
mariuslundgard Jun 29, 2025
e993a41
fix: legacy vars
mariuslundgard Jun 29, 2025
e845463
chore(release): 3.0.0-static.40
mariuslundgard Jun 29, 2025
76cacf8
fix(ui): portal provider fallback element
mariuslundgard Jun 30, 2025
cea79fe
chore(release): 3.0.0-static.41
mariuslundgard Jun 30, 2025
dbf16a9
feat(css): export `getVarName` utility
mariuslundgard Jun 30, 2025
367576d
chore(release): 3.0.0-static.41
mariuslundgard Jun 30, 2025
98b5ec2
refactor: remove `_visual-editing`
mariuslundgard Jun 30, 2025
e4c51b7
chore(release): 3.0.0-static.43
mariuslundgard Jun 30, 2025
64a07cb
fix: employ border vars
mariuslundgard Jun 30, 2025
95aafec
chore(release): 3.0.0-static.44
mariuslundgard Jun 30, 2025
f62483f
fixup! fix: employ border vars
mariuslundgard Jul 1, 2025
ab59a60
fix: set missing muted border color
mariuslundgard Jul 1, 2025
f27a17d
fix(ui): add missing element types
mariuslundgard Jul 1, 2025
2e29dce
chore(release): 3.0.0-static.45
mariuslundgard Jul 1, 2025
87de658
fix(menuitem): make role configurable (#1750)
joshuaellis Jul 9, 2025
bc7c923
fix(popover): pass tone to PopoverLayer (#1767)
joshuaellis Jul 10, 2025
3e10824
chore(release): 3.0.0-static.46
joshuaellis Jul 10, 2025
a604ef9
fix(skeleton): pass all props to skeleton className function (#1772)
joshuaellis Jul 14, 2025
89d33f2
chore(release): 3.0.0-static.47
joshuaellis Jul 14, 2025
16576a9
Merge branch 'main' into v3
stipsan Jul 15, 2025
e826e7c
chore: fix botched merge from main
stipsan Jul 15, 2025
a266a83
fix(deps): bump non-major and sync with v2 deps
stipsan Jul 15, 2025
5344f7b
chore(release): 3.0.0-static.48
stipsan Jul 15, 2025
e4daff2
chore: add WIP
stipsan Jul 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
cache: pnpm
node-version: lts/*
- run: pnpm install
- run: pnpm ts:check
- run: pnpm typecheck
- run: pnpm build

lint:
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
- uses: cypress-io/github-action@v6
with:
build: pnpm workshop:build
start: pnpm workshop:start
start: pnpm workshop:preview
wait-on: http://localhost:1337
env:
NODE_OPTIONS: "--no-experimental-require-module --no-experimental-detect-module"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.log
*.tgz

.DS_Store
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.next
.workshop
dist
pnpm-lock.yaml
storybook-static
42 changes: 0 additions & 42 deletions .storybook/decorators/withSanityTheme.decorator.tsx

This file was deleted.

35 changes: 0 additions & 35 deletions .storybook/main.ts

This file was deleted.

81 changes: 0 additions & 81 deletions .storybook/manager-head.html

This file was deleted.

11 changes: 0 additions & 11 deletions .storybook/manager.ts

This file was deleted.

73 changes: 0 additions & 73 deletions .storybook/preview-head.html

This file was deleted.

37 changes: 0 additions & 37 deletions .storybook/preview.tsx

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,23 @@ The Sanity UI components.
npm install @sanity/ui

# Install peer dependencies
npm install react react-dom styled-components
npm install react react-dom react-is
```

[![npm version](https://img.shields.io/npm/v/@sanity/ui.svg?style=flat-square)](https://www.npmjs.com/package/@sanity/ui)

## Usage

```jsx
import {Button, ThemeProvider} from '@sanity/ui'
import {buildTheme} from '@sanity/ui/theme'
import {createRoot} from 'react-dom/client'
import '@sanity/ui/css/index.css'

const root = createRoot(document.getElementById('root'))
const theme = buildTheme()
import {Button, Root} from '@sanity/ui'
import {createRoot} from 'react-dom/client'

root.render(
<ThemeProvider theme={theme}>
createRoot(document).render(
<Root lang="en">
<Button text="Hello, world" />
</ThemeProvider>,
</Root>,
)
```

Expand Down
8 changes: 5 additions & 3 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import {defineConfig} from 'cypress'
/// <reference types="cypress" />

export default defineConfig({
const config: Cypress.ConfigOptions = {
e2e: {
baseUrl: 'http://localhost:1337',
},
})
}

export default config
4 changes: 2 additions & 2 deletions cypress/e2e/ui/autocomplete.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ context('Components/Autocomplete', () => {
// Search for "nor"
cy.get('#focus-and-blur').type('foo')
cy.get('#focus-and-blur-listbox').realPress('ArrowDown')
cy.get('#focus-and-blur-option-foo > div').should('have.focus')
cy.get('#focus-and-blur-option-foo > div').click()
cy.get('#focus-and-blur-option-foo > button').should('have.focus')
cy.get('#focus-and-blur-option-foo > button').click()

// Expect "foo" to be selected
cy.get('#focus-and-blur[value="foo"]:focus').should('exist')
Expand Down
Loading
Loading