@sanity/ui 2.0.0-beta.6 → 2.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +6 -3
- package/package.json +2 -2
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The Sanity UI components.
|
|
|
6
6
|
npm install @sanity/ui
|
|
7
7
|
|
|
8
8
|
# Install peer dependencies
|
|
9
|
-
npm install react react-dom
|
|
9
|
+
npm install react react-dom styled-components
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
[](https://www.npmjs.com/package/@sanity/ui)
|
|
@@ -14,12 +14,15 @@ npm install react react-dom react-is styled-components
|
|
|
14
14
|
## Usage
|
|
15
15
|
|
|
16
16
|
```jsx
|
|
17
|
-
import {Button, ThemeProvider
|
|
17
|
+
import {Button, ThemeProvider} from '@sanity/ui'
|
|
18
|
+
import {buildTheme} from '@sanity/ui/theme'
|
|
18
19
|
import {createRoot} from 'react-dom/client'
|
|
19
20
|
|
|
20
21
|
const root = createRoot(document.getElementById('root'))
|
|
22
|
+
const theme = buildTheme()
|
|
23
|
+
|
|
21
24
|
root.render(
|
|
22
|
-
<ThemeProvider theme={
|
|
25
|
+
<ThemeProvider theme={theme}>
|
|
23
26
|
<Button text="Hello, world" />
|
|
24
27
|
</ThemeProvider>,
|
|
25
28
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/ui",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.7",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"source": "./exports/index.ts",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"styled-components": "^5.2 || ^6"
|
|
159
159
|
},
|
|
160
160
|
"engines": {
|
|
161
|
-
"node": ">=
|
|
161
|
+
"node": ">=14.0.0"
|
|
162
162
|
},
|
|
163
163
|
"repository": {
|
|
164
164
|
"type": "git",
|