@sanity/ui 2.0.0-alpha.1 → 2.0.0-alpha.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/ui",
3
- "version": "2.0.0-alpha.1",
3
+ "version": "2.0.0-alpha.2",
4
4
  "sideEffects": false,
5
5
  "types": "./dist/index.d.ts",
6
6
  "source": "./src/index.ts",
@@ -18,9 +18,18 @@ export interface BaseTheme<
18
18
  textWeight: ThemeFontWeightKey
19
19
  focusRing: FocusRing
20
20
  }
21
+ card: {
22
+ focusRing: FocusRing
23
+ }
21
24
  color: ThemeColorSchemes
22
25
  container: number[]
26
+ /** @deprecated Use component-specific `focusRing` values instead */
27
+ focusRing: {
28
+ offset: number
29
+ width: number
30
+ }
23
31
  fonts: ThemeFonts
32
+ input: ThemeInput
24
33
  /**
25
34
  * THIS API MAY BE UNSTABLE. DO NOT USE IN PRODUCTION.
26
35
  * @beta
@@ -30,9 +39,5 @@ export interface BaseTheme<
30
39
  radius: number[]
31
40
  shadows: Array<ThemeShadow | null>
32
41
  space: number[]
33
- input: ThemeInput
34
- card: {
35
- focusRing: FocusRing
36
- }
37
42
  styles?: Styles
38
43
  }
@@ -23,6 +23,10 @@ export const studioTheme: RootTheme = {
23
23
  },
24
24
  color,
25
25
  container: [320, 640, 960, 1280, 1600, 1920],
26
+ focusRing: {
27
+ offset: 1,
28
+ width: 2,
29
+ },
26
30
  fonts,
27
31
  media: [360, 600, 900, 1200, 1800, 2400],
28
32
  radius: [0, 1, 3, 6, 9, 12, 21],