@sanity/ui 2.0.0-beta.2 → 2.0.0-beta.21

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 (91) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +6 -3
  3. package/dist/index.cjs.mjs +11 -36
  4. package/dist/index.d.ts +247 -267
  5. package/dist/index.esm.js +477 -326
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.js +486 -539
  8. package/dist/index.js.map +1 -1
  9. package/dist/theme.cjs.mjs +1 -1
  10. package/dist/theme.d.ts +87 -115
  11. package/dist/theme.esm.js +348 -290
  12. package/dist/theme.esm.js.map +1 -1
  13. package/dist/theme.js +348 -290
  14. package/dist/theme.js.map +1 -1
  15. package/package.json +6 -3
  16. package/src/core/__workshop__/fontsPlugin.tsx +48 -8
  17. package/src/core/_compat.ts +236 -87
  18. package/src/core/components/dialog/dialog.tsx +1 -1
  19. package/src/core/components/dialog/styles.ts +2 -2
  20. package/src/core/components/menu/__workshop__/selectedItem.tsx +7 -2
  21. package/src/core/components/menu/menuButton.tsx +12 -1
  22. package/src/core/components/toast/toast.tsx +17 -2
  23. package/src/core/components/toast/toastProvider.tsx +20 -3
  24. package/src/core/constants.ts +37 -0
  25. package/src/core/hooks/useMediaIndex/useMediaIndex.test.tsx +6 -3
  26. package/src/core/middleware/origin.ts +47 -0
  27. package/src/core/primitives/badge/badge.tsx +1 -3
  28. package/src/core/primitives/button/button.tsx +9 -11
  29. package/src/core/primitives/heading/styles.ts +4 -0
  30. package/src/core/primitives/kbd/kbd.tsx +2 -0
  31. package/src/core/primitives/popover/popover.tsx +67 -13
  32. package/src/core/primitives/popover/popoverCard.tsx +31 -15
  33. package/src/core/primitives/select/select.tsx +1 -1
  34. package/src/core/primitives/switch/styles.ts +6 -1
  35. package/src/core/primitives/textInput/__workshop__/plain.tsx +1 -1
  36. package/src/core/primitives/textInput/__workshop__/states.tsx +10 -2
  37. package/src/core/primitives/tooltip/tooltip.tsx +46 -56
  38. package/src/core/primitives/tooltip/tooltipCard.tsx +110 -0
  39. package/src/core/styles/card/_cardColorStyle.ts +2 -0
  40. package/src/core/styles/input/textInputStyle.ts +33 -2
  41. package/src/core/styles/margin/marginsStyle.test.ts +2 -2
  42. package/src/core/styles/padding/paddingStyle.test.ts +2 -2
  43. package/src/core/theme/__workshop__/build/Root.tsx +20 -3
  44. package/src/core/theme/__workshop__/build/story.tsx +16 -10
  45. package/src/core/theme/__workshop__/canvas.tsx +7 -7
  46. package/src/core/theme/__workshop__/debug/story.tsx +196 -0
  47. package/src/core/theme/__workshop__/index.ts +5 -0
  48. package/src/core/theme/theme.test.tsx +2 -2
  49. package/src/core/types/button.ts +1 -2
  50. package/src/core/{primitives/tooltip → utils/conditionalWrapper}/conditionalWrapper.tsx +3 -0
  51. package/src/core/utils/conditionalWrapper/index.ts +1 -0
  52. package/src/core/utils/index.ts +1 -0
  53. package/src/theme/build/_deprecated/color/factory.ts +3 -3
  54. package/src/theme/build/buildColorTheme.test.ts +2 -2
  55. package/src/theme/build/buildColorTheme.ts +16 -16
  56. package/src/theme/build/colorToken/colorToken.ts +19 -0
  57. package/src/theme/build/colorToken/compileColorToken.ts +21 -0
  58. package/src/theme/build/colorToken/index.ts +2 -0
  59. package/src/theme/build/colorToken/types.ts +6 -0
  60. package/src/theme/build/renderColorTheme.ts +14 -15
  61. package/src/theme/build/renderColorValue.ts +9 -2
  62. package/src/theme/config/system.ts +12 -10
  63. package/src/theme/config/tokens/color/types.ts +12 -1
  64. package/src/theme/config/tokens/parseTokenKey.ts +1 -0
  65. package/src/theme/config/tokens/parseTokenValue.test.ts +13 -16
  66. package/src/theme/config/tokens/parseTokenValue.ts +45 -14
  67. package/src/theme/config/tokens/types.ts +3 -2
  68. package/src/theme/defaults/colorTokens.ts +279 -253
  69. package/src/theme/defaults/config.ts +2 -2
  70. package/src/theme/getScopedTheme.ts +1 -0
  71. package/src/theme/index.ts +0 -7
  72. package/src/theme/system/color/_constants.ts +5 -2
  73. package/src/theme/system/color/_system.ts +2 -1
  74. package/src/theme/system/color/avatar.ts +2 -12
  75. package/src/theme/system/color/button.ts +4 -20
  76. package/src/theme/system/color/input.ts +3 -11
  77. package/src/theme/system/color/selectable.ts +3 -14
  78. package/src/theme/system/shadow.ts +0 -6
  79. package/src/theme/system/styles.ts +0 -6
  80. package/src/theme/system/theme.ts +11 -1
  81. package/src/theme/system/v0/avatar.ts +1 -1
  82. package/src/theme/system/v0/color/button.ts +4 -4
  83. package/src/theme/system/v0/color/card.ts +2 -2
  84. package/src/theme/system/v0/color/color.ts +0 -1
  85. package/src/theme/system/v0/color/input.ts +3 -3
  86. package/src/theme/system/v0/color/muted.ts +2 -2
  87. package/src/theme/system/v0/color/solid.ts +2 -2
  88. package/src/theme/versioning/getTheme_v2.ts +2 -1
  89. package/src/theme/versioning/themeColor_v0_v2.ts +2 -2
  90. package/src/theme/versioning/v2_v0.ts +3 -2
  91. package/src/theme/build/colorToken.ts +0 -39
package/dist/index.d.ts CHANGED
@@ -2,26 +2,10 @@
2
2
 
3
3
  import {AnimationEventHandler} from 'react'
4
4
  import {AriaRole} from 'react'
5
- import {BaseTheme} from '@sanity/ui/theme'
6
- import {BoxShadow} from '@sanity/ui/theme'
7
- import {buildTheme} from '@sanity/ui/theme'
5
+ import {BaseTheme as BaseTheme_2} from '@sanity/ui/theme'
8
6
  import {ClipboardEventHandler} from 'react'
9
- import {COLOR_CONFIG_BLEND_KEYS} from '@sanity/ui/theme'
10
- import {COLOR_CONFIG_CARD_KEYS} from '@sanity/ui/theme'
11
- import {COLOR_CONFIG_CARD_TONES} from '@sanity/ui/theme'
12
- import {COLOR_CONFIG_STATE_KEYS} from '@sanity/ui/theme'
13
- import {COLOR_CONFIG_STATE_TONES} from '@sanity/ui/theme'
14
- import {ColorBlendModeTokenValue} from '@sanity/ui/theme'
15
- import {ColorConfigBlendKey} from '@sanity/ui/theme'
16
- import {ColorConfigCardKey} from '@sanity/ui/theme'
17
- import {ColorConfigCardTone} from '@sanity/ui/theme'
18
- import {ColorConfigOpacityValue} from '@sanity/ui/theme'
19
- import {ColorConfigStateKey} from '@sanity/ui/theme'
20
- import {ColorConfigStateTone} from '@sanity/ui/theme'
21
- import {ColorConfigValue} from '@sanity/ui/theme'
22
7
  import {Component} from 'react'
23
8
  import {CompositionEventHandler} from 'react'
24
- import {createColorTheme} from '@sanity/ui/theme'
25
9
  import {CSSObject} from '@sanity/ui/theme'
26
10
  import {CSSProperties} from 'react'
27
11
  import {DragEventHandler} from 'react'
@@ -29,34 +13,16 @@ import {ElementType} from 'react'
29
13
  import {FocusEventHandler} from 'react'
30
14
  import {FormEventHandler} from 'react'
31
15
  import {ForwardRefExoticComponent} from 'react'
32
- import {hexToRgb} from '@sanity/ui/theme'
33
- import {HSL} from '@sanity/ui/theme'
34
- import {hslToRgb} from '@sanity/ui/theme'
16
+ import {HSL as HSL_2} from '@sanity/ui/theme'
35
17
  import {HTMLProps} from 'react'
36
- import {isColorBlendModeValue} from '@sanity/ui/theme'
37
- import {isColorButtonMode} from '@sanity/ui/theme'
38
- import {isColorConfigBaseKey} from '@sanity/ui/theme'
39
- import {isColorConfigBaseTone} from '@sanity/ui/theme'
40
- import {isColorConfigBlendKey} from '@sanity/ui/theme'
41
- import {isColorConfigStateKey} from '@sanity/ui/theme'
42
- import {isColorConfigStateTone} from '@sanity/ui/theme'
43
- import {isColorHueKey} from '@sanity/ui/theme'
44
- import {isColorOpacityValue} from '@sanity/ui/theme'
45
- import {isColorTintKey} from '@sanity/ui/theme'
46
- import {isColorTokenValue} from '@sanity/ui/theme'
47
- import {isColorValue} from '@sanity/ui/theme'
48
18
  import {IStyledComponent} from 'styled-components'
49
19
  import {Key} from 'react'
50
20
  import {KeyboardEventHandler} from 'react'
51
21
  import {LegacyRef} from 'react'
52
22
  import {MemoExoticComponent} from 'react'
53
23
  import {MouseEventHandler} from 'react'
54
- import {multiply} from '@sanity/ui/theme'
55
24
  import {MutableRefObject} from 'react'
56
25
  import {NamedExoticComponent} from 'react'
57
- import {parseColor} from '@sanity/ui/theme'
58
- import {parseTokenKey} from '@sanity/ui/theme'
59
- import {parseTokenValue} from '@sanity/ui/theme'
60
26
  import {PartialThemeColorBuilderOpts} from '@sanity/ui/theme'
61
27
  import {PointerEventHandler} from 'react'
62
28
  import {PropsWithChildren} from 'react'
@@ -66,34 +32,20 @@ import {ReactNode} from 'react'
66
32
  import {Ref} from 'react'
67
33
  import {RefAttributes} from 'react'
68
34
  import {RefCallback} from 'react'
69
- import {RGB} from '@sanity/ui/theme'
70
- import {RGBA} from '@sanity/ui/theme'
71
- import {rgba} from '@sanity/ui/theme'
72
- import {rgbaToRGBA} from '@sanity/ui/theme'
73
- import {rgbToHex} from '@sanity/ui/theme'
74
- import {rgbToHsl} from '@sanity/ui/theme'
75
- import {RootTheme} from '@sanity/ui/theme'
76
- import {screen as screen_2} from '@sanity/ui/theme'
77
- import {defaultTheme as studioTheme} from '@sanity/ui/theme'
78
- import {Theme} from '@sanity/ui/theme'
79
- import {THEME_COLOR_BLEND_MODES} from '@sanity/ui/theme'
80
- import {THEME_COLOR_BUTTON_MODES} from '@sanity/ui/theme'
81
- import {THEME_COLOR_CARD_TONES} from '@sanity/ui/theme'
82
- import {THEME_COLOR_STATE_TONES} from '@sanity/ui/theme'
83
- import {THEME_COLOR_STATES} from '@sanity/ui/theme'
35
+ import {RGB as RGB_2} from '@sanity/ui/theme'
36
+ import {RootTheme as RootTheme_2} from '@sanity/ui/theme'
37
+ import {Theme as Theme_2} from '@sanity/ui/theme'
84
38
  import {Theme_v2} from '@sanity/ui/theme'
85
39
  import {ThemeAvatar} from '@sanity/ui/theme'
40
+ import {ThemeBoxShadow} from '@sanity/ui/theme'
86
41
  import {ThemeColor} from '@sanity/ui/theme'
87
42
  import {ThemeColorAvatarColorKey} from '@sanity/ui/theme'
88
43
  import {ThemeColorBase} from '@sanity/ui/theme'
89
- import {ThemeColorBaseTokens} from '@sanity/ui/theme'
90
- import {ThemeColorBlendModeKey} from '@sanity/ui/theme'
91
44
  import {ThemeColorBuilderOpts} from '@sanity/ui/theme'
92
45
  import {ThemeColorButton} from '@sanity/ui/theme'
93
- import {ThemeColorButtonModeKey} from '@sanity/ui/theme'
46
+ import {ThemeColorButtonModeKey as ThemeColorButtonModeKey_2} from '@sanity/ui/theme'
94
47
  import {ThemeColorButtonState} from '@sanity/ui/theme'
95
48
  import {ThemeColorButtonStates} from '@sanity/ui/theme'
96
- import {ThemeColorButtonTokens} from '@sanity/ui/theme'
97
49
  import {ThemeColorButtonTones} from '@sanity/ui/theme'
98
50
  import {ThemeColorCard} from '@sanity/ui/theme'
99
51
  import {ThemeColorCardState} from '@sanity/ui/theme'
@@ -106,7 +58,7 @@ import {ThemeColorMuted} from '@sanity/ui/theme'
106
58
  import {ThemeColorMutedTone} from '@sanity/ui/theme'
107
59
  import {ThemeColorName} from '@sanity/ui/theme'
108
60
  import {ThemeColorScheme} from '@sanity/ui/theme'
109
- import {ThemeColorSchemeKey} from '@sanity/ui/theme'
61
+ import {ThemeColorSchemeKey as ThemeColorSchemeKey_2} from '@sanity/ui/theme'
110
62
  import {ThemeColorSchemes} from '@sanity/ui/theme'
111
63
  import {ThemeColorSelectable} from '@sanity/ui/theme'
112
64
  import {ThemeColorSelectableState} from '@sanity/ui/theme'
@@ -115,33 +67,19 @@ import {ThemeColorSolid} from '@sanity/ui/theme'
115
67
  import {ThemeColorSolidTone} from '@sanity/ui/theme'
116
68
  import {ThemeColorSpot} from '@sanity/ui/theme'
117
69
  import {ThemeColorSpotKey} from '@sanity/ui/theme'
118
- import {ThemeColorStateKey} from '@sanity/ui/theme'
119
- import {ThemeColorStatesTokens} from '@sanity/ui/theme'
120
- import {ThemeColorStateTokens} from '@sanity/ui/theme'
121
70
  import {ThemeColorStateToneKey} from '@sanity/ui/theme'
122
- import {ThemeColorSyntax} from '@sanity/ui/theme'
123
- import {ThemeColorTokens} from '@sanity/ui/theme'
124
- import {ThemeColorTokenValue} from '@sanity/ui/theme'
71
+ import {ThemeColorSyntax as ThemeColorSyntax_2} from '@sanity/ui/theme'
125
72
  import {ThemeColorToneKey} from '@sanity/ui/theme'
126
- import {ThemeConfig} from '@sanity/ui/theme'
127
- import {ThemeFocusRing} from '@sanity/ui/theme'
128
- import {ThemeFont} from '@sanity/ui/theme'
129
- import {ThemeFontKey} from '@sanity/ui/theme'
130
- import {ThemeFonts} from '@sanity/ui/theme'
131
- import {ThemeFontSize} from '@sanity/ui/theme'
132
- import {ThemeFontWeight} from '@sanity/ui/theme'
133
- import {ThemeFontWeightKey} from '@sanity/ui/theme'
73
+ import {ThemeFont as ThemeFont_2} from '@sanity/ui/theme'
74
+ import {ThemeFontKey as ThemeFontKey_2} from '@sanity/ui/theme'
75
+ import {ThemeFonts as ThemeFonts_2} from '@sanity/ui/theme'
76
+ import {ThemeFontSize as ThemeFontSize_2} from '@sanity/ui/theme'
77
+ import {ThemeFontWeight as ThemeFontWeight_2} from '@sanity/ui/theme'
78
+ import {ThemeFontWeightKey as ThemeFontWeightKey_2} from '@sanity/ui/theme'
134
79
  import {ThemeInput} from '@sanity/ui/theme'
135
- import {ThemeLayer} from '@sanity/ui/theme'
136
- import {ThemeShadow} from '@sanity/ui/theme'
80
+ import {ThemeLayer as ThemeLayer_2} from '@sanity/ui/theme'
81
+ import {ThemeShadow as ThemeShadow_2} from '@sanity/ui/theme'
137
82
  import {ThemeStyles} from '@sanity/ui/theme'
138
- import {TokenBaseKeyNode} from '@sanity/ui/theme'
139
- import {TokenBlendModeValueNode} from '@sanity/ui/theme'
140
- import {TokenButtonKeyNode} from '@sanity/ui/theme'
141
- import {TokenColorValueNode} from '@sanity/ui/theme'
142
- import {TokenHueValueNode} from '@sanity/ui/theme'
143
- import {TokenKeyNode} from '@sanity/ui/theme'
144
- import {TokenValueNode} from '@sanity/ui/theme'
145
83
  import {TouchEventHandler} from 'react'
146
84
  import {TransitionEventHandler} from 'react'
147
85
  import {UIEventHandler} from 'react'
@@ -178,24 +116,24 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
178
116
  props: AutocompleteProps<Option> &
179
117
  Omit<
180
118
  HTMLProps<HTMLInputElement>,
181
- | 'value'
182
- | 'ref'
183
119
  | 'id'
184
- | 'spellCheck'
120
+ | 'type'
185
121
  | 'role'
186
- | 'prefix'
187
- | 'autoCapitalize'
188
- | 'autoCorrect'
189
- | 'inputMode'
190
122
  | 'aria-activedescendant'
191
123
  | 'aria-autocomplete'
192
124
  | 'aria-expanded'
193
125
  | 'aria-owns'
194
126
  | 'onChange'
195
127
  | 'onSelect'
128
+ | 'value'
129
+ | 'ref'
130
+ | 'spellCheck'
131
+ | 'prefix'
132
+ | 'autoCapitalize'
133
+ | 'autoCorrect'
134
+ | 'inputMode'
196
135
  | 'as'
197
136
  | 'autoComplete'
198
- | 'type'
199
137
  > & {
200
138
  ref?: Ref<HTMLInputElement> | undefined
201
139
  },
@@ -475,7 +413,11 @@ export declare interface BaseAutocompleteOption {
475
413
  value: string
476
414
  }
477
415
 
478
- export {BaseTheme}
416
+ /**
417
+ * @public
418
+ * @deprecated Use `BaseTheme` from `@sanity/ui/theme` instead.
419
+ */
420
+ export declare type BaseTheme = BaseTheme_2
479
421
 
480
422
  /**
481
423
  * @public
@@ -539,7 +481,11 @@ export declare interface BoxProps
539
481
  forwardedAs?: React.ElementType | keyof JSX.IntrinsicElements
540
482
  }
541
483
 
542
- export {BoxShadow}
484
+ /**
485
+ * @public
486
+ * @deprecated Use `ThemeBoxShadow` from `@sanity/ui/theme` instead.
487
+ */
488
+ export declare type BoxShadow = ThemeBoxShadow
543
489
 
544
490
  /**
545
491
  * @public
@@ -551,7 +497,7 @@ export declare type BoxSizing = 'content' | 'border'
551
497
  */
552
498
  export declare const Breadcrumbs: ForwardRefExoticComponent<
553
499
  BreadcrumbsProps &
554
- Omit<HTMLProps<HTMLOListElement>, 'ref' | 'as' | 'type'> &
500
+ Omit<HTMLProps<HTMLOListElement>, 'type' | 'ref' | 'as'> &
555
501
  RefAttributes<HTMLOListElement>
556
502
  >
557
503
 
@@ -564,8 +510,6 @@ export declare interface BreadcrumbsProps {
564
510
  space?: number | number[]
565
511
  }
566
512
 
567
- export {buildTheme}
568
-
569
513
  /**
570
514
  * @public
571
515
  */
@@ -577,7 +521,7 @@ export declare const Button: ForwardRefExoticComponent<
577
521
  /**
578
522
  * @public
579
523
  */
580
- export declare type ButtonMode = ThemeColorButtonModeKey
524
+ export declare type ButtonMode = ThemeColorButtonModeKey_2
581
525
 
582
526
  /**
583
527
  * @public
@@ -648,7 +592,7 @@ export declare interface CardProps
648
592
  */
649
593
  __unstable_focusRing?: boolean
650
594
  pressed?: boolean
651
- scheme?: ThemeColorSchemeKey
595
+ scheme?: ThemeColorSchemeKey_2
652
596
  tone?: CardTone
653
597
  }
654
598
 
@@ -672,7 +616,7 @@ export declare type CardTone = ThemeColorCardToneKey | 'inherit'
672
616
  * @public
673
617
  */
674
618
  export declare const Checkbox: ForwardRefExoticComponent<
675
- Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & CheckboxProps, 'ref'> &
619
+ Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & CheckboxProps, 'ref'> &
676
620
  RefAttributes<HTMLInputElement>
677
621
  >
678
622
 
@@ -713,7 +657,7 @@ export declare interface CodeProps {
713
657
  */
714
658
  export declare const CodeSkeleton: ForwardRefExoticComponent<
715
659
  Omit<
716
- CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'height' | 'as'>,
660
+ CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'children' | 'size' | 'as'>,
717
661
  'ref'
718
662
  > &
719
663
  RefAttributes<HTMLDivElement>
@@ -727,31 +671,18 @@ export declare interface CodeSkeletonProps extends SkeletonProps {
727
671
  size?: number | number[]
728
672
  }
729
673
 
730
- export {COLOR_CONFIG_BLEND_KEYS}
731
-
732
- export {COLOR_CONFIG_CARD_KEYS}
733
-
734
- export {COLOR_CONFIG_CARD_TONES}
735
-
736
- export {COLOR_CONFIG_STATE_KEYS}
737
-
738
- export {COLOR_CONFIG_STATE_TONES}
739
-
740
- export {ColorBlendModeTokenValue}
741
-
742
- export {ColorConfigBlendKey}
743
-
744
- export {ColorConfigCardKey}
745
-
746
- export {ColorConfigCardTone}
747
-
748
- export {ColorConfigOpacityValue}
749
-
750
- export {ColorConfigStateKey}
751
-
752
- export {ColorConfigStateTone}
753
-
754
- export {ColorConfigValue}
674
+ /**
675
+ * @internal
676
+ */
677
+ export declare function ConditionalWrapper({
678
+ children,
679
+ condition,
680
+ wrapper,
681
+ }: {
682
+ children: React.ReactNode
683
+ condition: boolean
684
+ wrapper: (children: React.ReactNode) => React.ReactNode
685
+ }): React.ReactNode
755
686
 
756
687
  /**
757
688
  * The `Container` component wraps content layout in a defined set of widths.
@@ -773,9 +704,11 @@ export declare interface ContainerProps extends BoxProps, ResponsiveWidthProps {
773
704
  */
774
705
  export declare function containsOrEqualsElement(element: HTMLElement, node: Node): boolean
775
706
 
776
- export {createColorTheme}
777
-
778
- export {CSSObject}
707
+ /**
708
+ * @public
709
+ * @deprecated Use `createColorTheme` from `@sanity/ui/theme` instead.
710
+ */
711
+ export declare const createColorTheme: any
779
712
 
780
713
  /**
781
714
  * @public
@@ -841,7 +774,7 @@ export declare interface DialogProps extends ResponsivePaddingProps, ResponsiveW
841
774
  onClose?: () => void
842
775
  portal?: string
843
776
  position?: DialogPosition | DialogPosition[]
844
- scheme?: ThemeColorSchemeKey
777
+ scheme?: ThemeColorSchemeKey_2
845
778
  zOffset?: number | number[]
846
779
  /**
847
780
  * Whether the dialog should animate in on mount.
@@ -1019,7 +952,7 @@ export declare function focusLastDescendant(element: HTMLElement): boolean
1019
952
  * @internal
1020
953
  */
1021
954
  export declare interface FontWeightStyleProps {
1022
- $weight?: ThemeFontWeightKey
955
+ $weight?: ThemeFontWeightKey_2
1023
956
  }
1024
957
 
1025
958
  /**
@@ -1031,7 +964,7 @@ export declare function _getArrayProp<T = number>(val: T | T[] | undefined, defa
1031
964
  * @internal
1032
965
  */
1033
966
  export declare function _getResponsiveSpace(
1034
- theme: Theme,
967
+ theme: Theme_2,
1035
968
  props: string[],
1036
969
  spaceIndexes?: number[],
1037
970
  ): CSSObject[] | null
@@ -1126,7 +1059,7 @@ export declare interface HeadingProps {
1126
1059
  * @beta
1127
1060
  */
1128
1061
  textOverflow?: 'ellipsis'
1129
- weight?: ThemeFontWeightKey
1062
+ weight?: ThemeFontWeightKey_2
1130
1063
  }
1131
1064
 
1132
1065
  /**
@@ -1135,7 +1068,7 @@ export declare interface HeadingProps {
1135
1068
  */
1136
1069
  export declare const HeadingSkeleton: ForwardRefExoticComponent<
1137
1070
  Omit<
1138
- HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'height' | 'as'>,
1071
+ HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'children' | 'size' | 'as'>,
1139
1072
  'ref'
1140
1073
  > &
1141
1074
  RefAttributes<HTMLDivElement>
@@ -1149,7 +1082,11 @@ export declare interface HeadingSkeletonProps extends SkeletonProps {
1149
1082
  size?: number | number[]
1150
1083
  }
1151
1084
 
1152
- export {hexToRgb}
1085
+ /**
1086
+ * @public
1087
+ * @deprecated Use `hexToRgb` from `@sanity/ui/theme` instead.
1088
+ */
1089
+ export declare const hexToRgb: any
1153
1090
 
1154
1091
  /**
1155
1092
  * Represent hotkeys (a keyboard combination) with semantic `<kbd>` elements.
@@ -1171,9 +1108,17 @@ export declare interface HotkeysProps {
1171
1108
  keys?: string[]
1172
1109
  }
1173
1110
 
1174
- export {HSL}
1111
+ /**
1112
+ * @public
1113
+ * @deprecated Use `HSL` from `@sanity/ui/theme` instead.
1114
+ */
1115
+ export declare type HSL = HSL_2
1175
1116
 
1176
- export {hslToRgb}
1117
+ /**
1118
+ * @public
1119
+ * @deprecated Use `hslToRgb` from `@sanity/ui/theme` instead.
1120
+ */
1121
+ export declare const hslToRgb: any
1177
1122
 
1178
1123
  /**
1179
1124
  * The `Inline` component is a layout utility for aligning and spacing items horizontally.
@@ -1192,30 +1137,6 @@ export declare interface InlineProps extends Omit<BoxProps, 'display'> {
1192
1137
  space?: number | number[]
1193
1138
  }
1194
1139
 
1195
- export {isColorBlendModeValue}
1196
-
1197
- export {isColorButtonMode}
1198
-
1199
- export {isColorConfigBaseKey}
1200
-
1201
- export {isColorConfigBaseTone}
1202
-
1203
- export {isColorConfigBlendKey}
1204
-
1205
- export {isColorConfigStateKey}
1206
-
1207
- export {isColorConfigStateTone}
1208
-
1209
- export {isColorHueKey}
1210
-
1211
- export {isColorOpacityValue}
1212
-
1213
- export {isColorTintKey}
1214
-
1215
- export {isColorTokenValue}
1216
-
1217
- export {isColorValue}
1218
-
1219
1140
  /**
1220
1141
  * @internal
1221
1142
  */
@@ -1305,7 +1226,7 @@ export declare interface LabelProps {
1305
1226
  * @beta
1306
1227
  */
1307
1228
  textOverflow?: 'ellipsis'
1308
- weight?: ThemeFontWeightKey
1229
+ weight?: ThemeFontWeightKey_2
1309
1230
  }
1310
1231
 
1311
1232
  /**
@@ -1314,7 +1235,7 @@ export declare interface LabelProps {
1314
1235
  */
1315
1236
  export declare const LabelSkeleton: ForwardRefExoticComponent<
1316
1237
  Omit<
1317
- LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'height' | 'as'>,
1238
+ LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'children' | 'size' | 'as'>,
1318
1239
  'ref'
1319
1240
  > &
1320
1241
  RefAttributes<HTMLDivElement>
@@ -1391,7 +1312,7 @@ export declare interface _MediaStore {
1391
1312
  * @public
1392
1313
  */
1393
1314
  export declare const Menu: ForwardRefExoticComponent<
1394
- Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'tabIndex' | 'role' | 'as'>, 'ref'> &
1315
+ Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'role' | 'tabIndex' | 'as'>, 'ref'> &
1395
1316
  RefAttributes<HTMLDivElement>
1396
1317
  >
1397
1318
 
@@ -1429,7 +1350,7 @@ export declare interface MenuButtonProps {
1429
1350
  /**
1430
1351
  * @deprecated Use `popover={{scheme: 'dark'}}` instead.
1431
1352
  */
1432
- popoverScheme?: ThemeColorSchemeKey
1353
+ popoverScheme?: ThemeColorSchemeKey_2
1433
1354
  /**
1434
1355
  * @deprecated Use `popover={{radius: 2}}` instead.
1435
1356
  */
@@ -1474,7 +1395,7 @@ export declare const MenuDivider: IStyledComponent<
1474
1395
  style?: CSSProperties | undefined
1475
1396
  tabIndex?: number | undefined
1476
1397
  title?: string | undefined
1477
- translate?: 'yes' | 'no' | undefined
1398
+ translate?: 'no' | 'yes' | undefined
1478
1399
  radioGroup?: string | undefined
1479
1400
  role?: AriaRole | undefined
1480
1401
  about?: string | undefined
@@ -1499,7 +1420,7 @@ export declare const MenuDivider: IStyledComponent<
1499
1420
  itemRef?: string | undefined
1500
1421
  results?: number | undefined
1501
1422
  security?: string | undefined
1502
- unselectable?: 'on' | 'off' | undefined
1423
+ unselectable?: 'off' | 'on' | undefined
1503
1424
  inputMode?:
1504
1425
  | 'none'
1505
1426
  | 'text'
@@ -1513,7 +1434,7 @@ export declare const MenuDivider: IStyledComponent<
1513
1434
  is?: string | undefined
1514
1435
  'aria-activedescendant'?: string | undefined
1515
1436
  'aria-atomic'?: (boolean | 'false' | 'true') | undefined
1516
- 'aria-autocomplete'?: 'none' | 'both' | 'inline' | 'list' | undefined
1437
+ 'aria-autocomplete'?: 'none' | 'inline' | 'both' | 'list' | undefined
1517
1438
  'aria-braillelabel'?: string | undefined
1518
1439
  'aria-brailleroledescription'?: string | undefined
1519
1440
  'aria-busy'?: (boolean | 'false' | 'true') | undefined
@@ -1528,16 +1449,16 @@ export declare const MenuDivider: IStyledComponent<
1528
1449
  | 'page'
1529
1450
  | 'false'
1530
1451
  | 'true'
1531
- | 'time'
1532
1452
  | 'step'
1533
1453
  | 'location'
1534
1454
  | 'date'
1455
+ | 'time'
1535
1456
  | undefined
1536
1457
  'aria-describedby'?: string | undefined
1537
1458
  'aria-description'?: string | undefined
1538
1459
  'aria-details'?: string | undefined
1539
1460
  'aria-disabled'?: (boolean | 'false' | 'true') | undefined
1540
- 'aria-dropeffect'?: 'none' | 'link' | 'copy' | 'move' | 'execute' | 'popup' | undefined
1461
+ 'aria-dropeffect'?: 'none' | 'copy' | 'move' | 'link' | 'execute' | 'popup' | undefined
1541
1462
  'aria-errormessage'?: string | undefined
1542
1463
  'aria-expanded'?: (boolean | 'false' | 'true') | undefined
1543
1464
  'aria-flowto'?: string | undefined
@@ -1569,8 +1490,8 @@ export declare const MenuDivider: IStyledComponent<
1569
1490
  'aria-pressed'?: boolean | 'mixed' | 'false' | 'true' | undefined
1570
1491
  'aria-readonly'?: (boolean | 'false' | 'true') | undefined
1571
1492
  'aria-relevant'?:
1572
- | 'text'
1573
1493
  | 'all'
1494
+ | 'text'
1574
1495
  | 'additions'
1575
1496
  | 'additions removals'
1576
1497
  | 'additions text'
@@ -1792,7 +1713,7 @@ export declare interface MenuGroupProps {
1792
1713
  */
1793
1714
  export declare const MenuItem: ForwardRefExoticComponent<
1794
1715
  MenuItemProps &
1795
- Omit<HTMLProps<HTMLDivElement>, 'ref' | 'height' | 'tabIndex' | 'as' | 'selected'> &
1716
+ Omit<HTMLProps<HTMLDivElement>, 'height' | 'tabIndex' | 'ref' | 'as' | 'selected'> &
1796
1717
  RefAttributes<HTMLDivElement>
1797
1718
  >
1798
1719
 
@@ -1834,13 +1755,17 @@ export declare interface MenuProps extends ResponsivePaddingProps {
1834
1755
  space?: number | number[]
1835
1756
  }
1836
1757
 
1837
- export {multiply}
1838
-
1839
- export {parseColor}
1840
-
1841
- export {parseTokenKey}
1758
+ /**
1759
+ * @public
1760
+ * @deprecated Use `multiply` from `@sanity/ui/theme` instead.
1761
+ */
1762
+ export declare const multiply: any
1842
1763
 
1843
- export {parseTokenValue}
1764
+ /**
1765
+ * @public
1766
+ * @deprecated Use `parseColor` from `@sanity/ui/theme` instead.
1767
+ */
1768
+ export declare const parseColor: any
1844
1769
 
1845
1770
  export {PartialThemeColorBuilderOpts}
1846
1771
 
@@ -1871,7 +1796,7 @@ export declare type Placement =
1871
1796
  export declare const Popover: MemoExoticComponent<
1872
1797
  ForwardRefExoticComponent<
1873
1798
  Omit<
1874
- PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'content' | 'children' | 'width' | 'as'>,
1799
+ PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'content' | 'width' | 'children' | 'as'>,
1875
1800
  'ref'
1876
1801
  > &
1877
1802
  RefAttributes<HTMLDivElement>
@@ -1890,15 +1815,41 @@ export declare interface PopoverProps
1890
1815
  ResponsiveShadowProps {
1891
1816
  /** @beta */
1892
1817
  __unstable_margins?: PopoverMargins
1818
+ /**
1819
+ * Whether the popover should animate in and out.
1820
+ *
1821
+ * @beta
1822
+ * @defaultValue false
1823
+ */
1824
+ animate?: boolean
1893
1825
  arrow?: boolean
1894
1826
  /** @deprecated Use `floatingBoundary` and/or `referenceBoundary` instead */
1895
1827
  boundaryElement?: HTMLElement | null
1896
1828
  children?: React.ReactElement
1829
+ /**
1830
+ * When `true`, prevent overflow within the current boundary:
1831
+ * - by flipping on its side axis
1832
+ * - by resizing
1833
+ /*
1834
+ * Note that:
1835
+ * - setting `preventOverflow` to `true` also prevents overflow on its side axis
1836
+ * - setting `matchReferenceWidth` to `true` also causes the popover to resize
1837
+ *
1838
+ * @defaultValue false
1839
+ */
1897
1840
  constrainSize?: boolean
1898
1841
  content?: React.ReactNode
1899
1842
  disabled?: boolean
1900
1843
  fallbackPlacements?: Placement[]
1901
1844
  floatingBoundary?: HTMLElement | null
1845
+ /**
1846
+ * When `true`, set the maximum width to match the reference element, and also prevent overflow within
1847
+ * the current boundary by resizing.
1848
+ *
1849
+ * Note that setting `constrainSize` to `true` also causes the popover to resize
1850
+ *
1851
+ * @defaultValue false
1852
+ */
1902
1853
  matchReferenceWidth?: boolean
1903
1854
  open?: boolean
1904
1855
  overflow?: BoxOverflow
@@ -1909,7 +1860,7 @@ export declare interface PopoverProps
1909
1860
  preventOverflow?: boolean
1910
1861
  referenceBoundary?: HTMLElement | null
1911
1862
  referenceElement?: HTMLElement | null
1912
- scheme?: ThemeColorSchemeKey
1863
+ scheme?: ThemeColorSchemeKey_2
1913
1864
  tone?: CardTone
1914
1865
  /** @beta */
1915
1866
  updateRef?:
@@ -1977,7 +1928,7 @@ export declare interface PortalProviderProps {
1977
1928
  * @public
1978
1929
  */
1979
1930
  export declare const Radio: ForwardRefExoticComponent<
1980
- Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & RadioProps, 'ref'> &
1931
+ Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & RadioProps, 'ref'> &
1981
1932
  RefAttributes<HTMLInputElement>
1982
1933
  >
1983
1934
 
@@ -2216,20 +2167,41 @@ export declare interface ResponsiveWidthStyleProps {
2216
2167
  $width: (number | 'auto')[]
2217
2168
  }
2218
2169
 
2219
- export {RGB}
2220
-
2221
- export {RGBA}
2222
-
2223
- export {rgba}
2170
+ /**
2171
+ * @public
2172
+ * @deprecated Use `RGB` from `@sanity/ui/theme` instead.
2173
+ */
2174
+ export declare type RGB = RGB_2
2224
2175
 
2225
- export {rgbaToRGBA}
2176
+ /**
2177
+ * @public
2178
+ * @deprecated Use `rgba` from `@sanity/ui/theme` instead.
2179
+ */
2180
+ export declare const rgba: any
2226
2181
 
2227
- export {rgbToHex}
2182
+ /**
2183
+ * @public
2184
+ * @deprecated Use `rgbToHex` from `@sanity/ui/theme` instead.
2185
+ */
2186
+ export declare const rgbToHex: any
2228
2187
 
2229
- export {rgbToHsl}
2188
+ /**
2189
+ * @public
2190
+ * @deprecated Use `rgbToHsl` from `@sanity/ui/theme` instead.
2191
+ */
2192
+ export declare const rgbToHsl: any
2230
2193
 
2231
- export {RootTheme}
2194
+ /**
2195
+ * @public
2196
+ * @deprecated Use `RootTheme` from `@sanity/ui/theme` instead.
2197
+ */
2198
+ export declare type RootTheme = RootTheme_2
2232
2199
 
2200
+ /**
2201
+ * @public
2202
+ * @deprecated Use `screen` from `@sanity/ui/theme` instead.
2203
+ */
2204
+ declare const screen_2: any
2233
2205
  export {screen_2 as screen}
2234
2206
 
2235
2207
  /**
@@ -2326,7 +2298,17 @@ export declare interface StackProps extends BoxProps {
2326
2298
  space?: number | number[]
2327
2299
  }
2328
2300
 
2329
- export {studioTheme}
2301
+ /**
2302
+ * @public
2303
+ * @deprecated Use `buildTheme` from `@sanity/ui/theme` instead.
2304
+ */
2305
+ export declare const studioTheme: any
2306
+
2307
+ /**
2308
+ * @public
2309
+ * @deprecated Use `ThemeStyles` from `@sanity/ui/theme` instead.
2310
+ */
2311
+ export declare type Styles = ThemeStyles
2330
2312
 
2331
2313
  /**
2332
2314
  * The `Switch` component allows the user to toggle a setting on and off.
@@ -2336,7 +2318,7 @@ export {studioTheme}
2336
2318
  * @public
2337
2319
  */
2338
2320
  export declare const Switch: ForwardRefExoticComponent<
2339
- Omit<Omit<HTMLProps<HTMLInputElement>, 'as' | 'type'> & SwitchProps, 'ref'> &
2321
+ Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & SwitchProps, 'ref'> &
2340
2322
  RefAttributes<HTMLInputElement>
2341
2323
  >
2342
2324
 
@@ -2355,7 +2337,7 @@ export declare const Tab: ForwardRefExoticComponent<
2355
2337
  TabProps &
2356
2338
  Omit<
2357
2339
  HTMLProps<HTMLButtonElement>,
2358
- 'label' | 'width' | 'id' | 'aria-controls' | 'as' | 'type'
2340
+ 'width' | 'id' | 'type' | 'aria-controls' | 'label' | 'as'
2359
2341
  >,
2360
2342
  'ref'
2361
2343
  > &
@@ -2452,7 +2434,7 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
2452
2434
  customValidity?: string
2453
2435
  fontSize?: number | number[]
2454
2436
  padding?: number | number[]
2455
- weight?: ThemeFontWeightKey
2437
+ weight?: ThemeFontWeightKey_2
2456
2438
  }
2457
2439
 
2458
2440
  /**
@@ -2461,7 +2443,7 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
2461
2443
  * @public
2462
2444
  */
2463
2445
  export declare const TextInput: ForwardRefExoticComponent<
2464
- Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'prefix' | 'as' | 'type'>, 'ref'> &
2446
+ Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'type' | 'prefix' | 'as'>, 'ref'> &
2465
2447
  RefAttributes<HTMLInputElement>
2466
2448
  >
2467
2449
 
@@ -2498,7 +2480,7 @@ export declare interface TextInputProps {
2498
2480
  space?: number | number[]
2499
2481
  suffix?: React.ReactNode
2500
2482
  type?: TextInputType
2501
- weight?: ThemeFontWeightKey
2483
+ weight?: ThemeFontWeightKey_2
2502
2484
  }
2503
2485
 
2504
2486
  /**
@@ -2534,7 +2516,7 @@ export declare interface TextProps {
2534
2516
  * @beta
2535
2517
  */
2536
2518
  textOverflow?: 'ellipsis'
2537
- weight?: ThemeFontWeightKey
2519
+ weight?: ThemeFontWeightKey_2
2538
2520
  }
2539
2521
 
2540
2522
  /**
@@ -2543,7 +2525,7 @@ export declare interface TextProps {
2543
2525
  */
2544
2526
  export declare const TextSkeleton: ForwardRefExoticComponent<
2545
2527
  Omit<
2546
- TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'children' | 'height' | 'as'>,
2528
+ TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'children' | 'size' | 'as'>,
2547
2529
  'ref'
2548
2530
  > &
2549
2531
  RefAttributes<HTMLDivElement>
@@ -2557,17 +2539,11 @@ export declare interface TextSkeletonProps extends SkeletonProps {
2557
2539
  size?: number | number[]
2558
2540
  }
2559
2541
 
2560
- export {Theme}
2561
-
2562
- export {THEME_COLOR_BLEND_MODES}
2563
-
2564
- export {THEME_COLOR_BUTTON_MODES}
2565
-
2566
- export {THEME_COLOR_CARD_TONES}
2567
-
2568
- export {THEME_COLOR_STATE_TONES}
2569
-
2570
- export {THEME_COLOR_STATES}
2542
+ /**
2543
+ * @public
2544
+ * @deprecated Use `Theme` from `@sanity/ui/theme` instead.
2545
+ */
2546
+ export declare type Theme = Theme_2
2571
2547
 
2572
2548
  export {ThemeAvatar}
2573
2549
 
@@ -2575,30 +2551,26 @@ export {ThemeColor}
2575
2551
 
2576
2552
  export {ThemeColorBase}
2577
2553
 
2578
- export {ThemeColorBaseTokens}
2579
-
2580
- export {ThemeColorBlendModeKey}
2581
-
2582
2554
  export {ThemeColorBuilderOpts}
2583
2555
 
2584
2556
  export {ThemeColorButton}
2585
2557
 
2586
- export {ThemeColorButtonModeKey}
2558
+ /**
2559
+ * @public
2560
+ * @deprecated Use `ThemeColorButtonModeKey` from `@sanity/ui/theme` instead.
2561
+ */
2562
+ export declare type ThemeColorButtonModeKey = ThemeColorButtonModeKey_2
2587
2563
 
2588
2564
  export {ThemeColorButtonState}
2589
2565
 
2590
2566
  export {ThemeColorButtonStates}
2591
2567
 
2592
- export {ThemeColorButtonTokens}
2593
-
2594
2568
  export {ThemeColorButtonTones}
2595
2569
 
2596
2570
  export {ThemeColorCard}
2597
2571
 
2598
2572
  export {ThemeColorCardState}
2599
2573
 
2600
- export {ThemeColorCardToneKey}
2601
-
2602
2574
  export {ThemeColorGenericState}
2603
2575
 
2604
2576
  export {ThemeColorInput}
@@ -2623,13 +2595,17 @@ export declare function ThemeColorProvider(props: ThemeColorProviderProps): Reac
2623
2595
  */
2624
2596
  export declare interface ThemeColorProviderProps {
2625
2597
  children?: React.ReactNode
2626
- scheme?: ThemeColorSchemeKey
2598
+ scheme?: ThemeColorSchemeKey_2
2627
2599
  tone?: ThemeColorCardToneKey
2628
2600
  }
2629
2601
 
2630
2602
  export {ThemeColorScheme}
2631
2603
 
2632
- export {ThemeColorSchemeKey}
2604
+ /**
2605
+ * @public
2606
+ * @deprecated Use `ThemeColorSchemeKey` from `@sanity/ui/theme` instead.
2607
+ */
2608
+ export declare type ThemeColorSchemeKey = ThemeColorSchemeKey_2
2633
2609
 
2634
2610
  export {ThemeColorSchemes}
2635
2611
 
@@ -2647,58 +2623,74 @@ export {ThemeColorSpot}
2647
2623
 
2648
2624
  export {ThemeColorSpotKey}
2649
2625
 
2650
- export {ThemeColorStateKey}
2651
-
2652
- export {ThemeColorStatesTokens}
2653
-
2654
- export {ThemeColorStateTokens}
2655
-
2656
- export {ThemeColorStateToneKey}
2657
-
2658
- export {ThemeColorSyntax}
2659
-
2660
- export {ThemeColorTokens}
2661
-
2662
- export {ThemeColorTokenValue}
2626
+ /**
2627
+ * @public
2628
+ * @deprecated Use `ThemeColorSyntax` from `@sanity/ui/theme` instead.
2629
+ */
2630
+ export declare type ThemeColorSyntax = ThemeColorSyntax_2
2663
2631
 
2664
2632
  export {ThemeColorToneKey}
2665
2633
 
2666
- export {ThemeConfig}
2667
-
2668
2634
  /**
2669
2635
  * @public
2670
2636
  */
2671
2637
  export declare interface ThemeContextValue {
2672
2638
  /** @deprecated No longer used */
2673
2639
  version: 0.0
2674
- scheme: ThemeColorSchemeKey
2675
- theme: RootTheme
2640
+ scheme: ThemeColorSchemeKey_2
2641
+ theme: RootTheme_2
2676
2642
  tone: ThemeColorCardToneKey
2677
2643
  }
2678
2644
 
2679
- export {ThemeFocusRing}
2680
-
2681
- export {ThemeFont}
2645
+ /**
2646
+ * @public
2647
+ * @deprecated Use `ThemeFont` from `@sanity/ui/theme` instead.
2648
+ */
2649
+ export declare type ThemeFont = ThemeFont_2
2682
2650
 
2683
- export {ThemeFontKey}
2651
+ /**
2652
+ * @public
2653
+ * @deprecated Use `ThemeFontKey` from `@sanity/ui/theme` instead.
2654
+ */
2655
+ export declare type ThemeFontKey = ThemeFontKey_2
2684
2656
 
2685
- export {ThemeFonts}
2657
+ /**
2658
+ * @public
2659
+ * @deprecated Use `ThemeFonts` from `@sanity/ui/theme` instead.
2660
+ */
2661
+ export declare type ThemeFonts = ThemeFonts_2
2686
2662
 
2687
- export {ThemeFontSize}
2663
+ /**
2664
+ * @public
2665
+ * @deprecated Use `ThemeFontSize` from `@sanity/ui/theme` instead.
2666
+ */
2667
+ export declare type ThemeFontSize = ThemeFontSize_2
2688
2668
 
2689
- export {ThemeFontWeight}
2669
+ /**
2670
+ * @public
2671
+ * @deprecated Use `ThemeFontWeight` from `@sanity/ui/theme` instead.
2672
+ */
2673
+ export declare type ThemeFontWeight = ThemeFontWeight_2
2690
2674
 
2691
- export {ThemeFontWeightKey}
2675
+ /**
2676
+ * @public
2677
+ * @deprecated Use `ThemeFontWeightKey` from `@sanity/ui/theme` instead.
2678
+ */
2679
+ export declare type ThemeFontWeightKey = ThemeFontWeightKey_2
2692
2680
 
2693
2681
  export {ThemeInput}
2694
2682
 
2695
- export {ThemeLayer}
2683
+ /**
2684
+ * @public
2685
+ * @deprecated Use `ThemeLayer` from `@sanity/ui/theme` instead.
2686
+ */
2687
+ export declare type ThemeLayer = ThemeLayer_2
2696
2688
 
2697
2689
  /**
2698
2690
  * @internal
2699
2691
  */
2700
2692
  export declare interface ThemeProps {
2701
- theme: Theme
2693
+ theme: Theme_2
2702
2694
  }
2703
2695
 
2704
2696
  /**
@@ -2711,14 +2703,16 @@ export declare function ThemeProvider(props: ThemeProviderProps): React.ReactEle
2711
2703
  */
2712
2704
  export declare interface ThemeProviderProps {
2713
2705
  children?: React.ReactNode
2714
- scheme?: ThemeColorSchemeKey
2715
- theme?: RootTheme
2706
+ scheme?: ThemeColorSchemeKey_2
2707
+ theme?: RootTheme_2
2716
2708
  tone?: ThemeColorCardToneKey
2717
2709
  }
2718
2710
 
2719
- export {ThemeShadow}
2720
-
2721
- export {ThemeStyles}
2711
+ /**
2712
+ * @public
2713
+ * @deprecated Use `ThemeShadow` from `@sanity/ui/theme` instead.
2714
+ */
2715
+ export declare type ThemeShadow = ThemeShadow_2
2722
2716
 
2723
2717
  /**
2724
2718
  * The `Toast` component gives feedback to users when an action has taken place.
@@ -2780,20 +2774,6 @@ export declare interface ToastProviderProps {
2780
2774
  zOffset?: number | number[]
2781
2775
  }
2782
2776
 
2783
- export {TokenBaseKeyNode}
2784
-
2785
- export {TokenBlendModeValueNode}
2786
-
2787
- export {TokenButtonKeyNode}
2788
-
2789
- export {TokenColorValueNode}
2790
-
2791
- export {TokenHueValueNode}
2792
-
2793
- export {TokenKeyNode}
2794
-
2795
- export {TokenValueNode}
2796
-
2797
2777
  /**
2798
2778
  * Tooltips display information when hovering, focusing or tapping.
2799
2779
  *
@@ -2864,7 +2844,7 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
2864
2844
  /** Whether or not to render the tooltip in a portal element. */
2865
2845
  portal?: boolean | string
2866
2846
  radius?: number | number[]
2867
- scheme?: ThemeColorSchemeKey
2847
+ scheme?: ThemeColorSchemeKey_2
2868
2848
  shadow?: number | number[]
2869
2849
  /**
2870
2850
  * Adds a delay to open or close the tooltip.
@@ -2893,7 +2873,7 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
2893
2873
  export declare const Tree: MemoExoticComponent<
2894
2874
  ForwardRefExoticComponent<
2895
2875
  TreeProps &
2896
- Omit<HTMLProps<HTMLDivElement>, 'wrap' | 'ref' | 'height' | 'role' | 'as' | 'align'> &
2876
+ Omit<HTMLProps<HTMLDivElement>, 'height' | 'role' | 'wrap' | 'ref' | 'as' | 'align'> &
2897
2877
  RefAttributes<HTMLDivElement>
2898
2878
  >
2899
2879
  >
@@ -2918,7 +2898,7 @@ export declare interface TreeContextValue {
2918
2898
  * @beta
2919
2899
  */
2920
2900
  export declare const TreeItem: NamedExoticComponent<
2921
- TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'ref' | 'role' | 'as'>
2901
+ TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'role' | 'ref' | 'as'>
2922
2902
  >
2923
2903
 
2924
2904
  /**
@@ -2935,7 +2915,7 @@ export declare interface TreeItemProps {
2935
2915
  padding?: number | number[]
2936
2916
  space?: number | number[]
2937
2917
  text?: React.ReactNode
2938
- weight?: ThemeFontWeightKey
2918
+ weight?: ThemeFontWeightKey_2
2939
2919
  }
2940
2920
 
2941
2921
  /**
@@ -3060,7 +3040,7 @@ export declare function useRootTheme(): ThemeContextValue
3060
3040
  /**
3061
3041
  * @public
3062
3042
  */
3063
- export declare function useTheme(): Theme
3043
+ export declare function useTheme(): Theme_2
3064
3044
 
3065
3045
  /**
3066
3046
  * @public
@@ -3088,7 +3068,7 @@ export declare function useTree(): TreeContextValue
3088
3068
  export declare const VirtualList: ForwardRefExoticComponent<
3089
3069
  VirtualListProps<any> &
3090
3070
  StackProps &
3091
- Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref' | 'onChange' | 'as'> &
3071
+ Omit<HTMLProps<HTMLDivElement>, 'children' | 'onChange' | 'ref' | 'as'> &
3092
3072
  RefAttributes<HTMLDivElement>
3093
3073
  >
3094
3074