@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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +6 -3
  3. package/package.json +2 -2
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 Sanity.io
3
+ Copyright (c) 2023–2024 Sanity.io
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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 react-is styled-components
9
+ npm install react react-dom styled-components
10
10
  ```
11
11
 
12
12
  [![npm version](https://img.shields.io/npm/v/@sanity/ui.svg?style=flat-square)](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, studioTheme} from '@sanity/ui'
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={studioTheme}>
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.6",
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": ">=20.0.0"
161
+ "node": ">=14.0.0"
162
162
  },
163
163
  "repository": {
164
164
  "type": "git",