@sanity/ui 3.0.0-static.33 → 3.0.0-static.35

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 (579) hide show
  1. package/README.md +1 -1
  2. package/dist/_chunks-cjs/_visual-editing.cjs +263 -375
  3. package/dist/_chunks-cjs/_visual-editing.cjs.map +1 -1
  4. package/dist/_chunks-cjs/refractor.cjs.map +1 -1
  5. package/dist/_chunks-es/_visual-editing.js +263 -377
  6. package/dist/_chunks-es/_visual-editing.js.map +1 -1
  7. package/dist/_chunks-es/refractor.js.map +1 -1
  8. package/dist/_visual-editing.cjs +0 -2
  9. package/dist/_visual-editing.cjs.map +1 -1
  10. package/dist/_visual-editing.d.cts +34 -85
  11. package/dist/_visual-editing.d.ts +34 -85
  12. package/dist/_visual-editing.js +2 -4
  13. package/dist/css/index.cjs +12 -12
  14. package/dist/css/index.cjs.map +1 -1
  15. package/dist/css/index.css +1 -1
  16. package/dist/css/index.d.cts +383 -13934
  17. package/dist/css/index.d.ts +383 -13934
  18. package/dist/css/index.js +12 -12
  19. package/dist/css/index.js.map +1 -1
  20. package/dist/index.cjs +241 -366
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +107 -817
  23. package/dist/index.d.ts +107 -817
  24. package/dist/index.js +243 -360
  25. package/dist/index.js.map +1 -1
  26. package/dist/theme.cjs +367 -4288
  27. package/dist/theme.cjs.map +1 -1
  28. package/dist/theme.d.cts +180 -1582
  29. package/dist/theme.d.ts +180 -1582
  30. package/dist/theme.js +371 -4292
  31. package/dist/theme.js.map +1 -1
  32. package/exports/_visual-editing.ts +0 -2
  33. package/package.json +3 -4
  34. package/src/core/Root.tsx +4 -2
  35. package/src/core/RootProvider.tsx +4 -4
  36. package/src/core/__workshop__/boundary.tsx +1 -1
  37. package/src/core/__workshop__/index.ts +5 -3
  38. package/src/core/components/autocomplete/__workshop__/async.tsx +1 -1
  39. package/src/core/components/autocomplete/__workshop__/constrainedHeight.tsx +2 -2
  40. package/src/core/components/autocomplete/__workshop__/custom.tsx +2 -2
  41. package/src/core/components/autocomplete/__workshop__/example.tsx +2 -2
  42. package/src/core/components/autocomplete/__workshop__/focusAndBlur.tsx +1 -1
  43. package/src/core/components/autocomplete/__workshop__/fullscreen.tsx +1 -1
  44. package/src/core/components/autocomplete/__workshop__/index.ts +5 -3
  45. package/src/core/components/autocomplete/__workshop__/mock/apiStore.ts +1 -1
  46. package/src/core/components/autocomplete/__workshop__/mock/countries.ts +1 -1
  47. package/src/core/components/autocomplete/autocomplete.tsx +2 -2
  48. package/src/core/components/autocomplete/autocompleteOption.tsx +2 -2
  49. package/src/core/components/autocomplete/constants.ts +2 -2
  50. package/src/core/components/breadcrumbs/__workshop__/example.tsx +1 -1
  51. package/src/core/components/breadcrumbs/__workshop__/index.ts +5 -3
  52. package/src/core/components/breadcrumbs/breadcrumbs.tsx +6 -11
  53. package/src/core/components/dialog/__workshop__/activate.tsx +1 -1
  54. package/src/core/components/dialog/__workshop__/autoFocus.tsx +1 -1
  55. package/src/core/components/dialog/__workshop__/index.ts +5 -3
  56. package/src/core/components/dialog/__workshop__/layering.tsx +1 -1
  57. package/src/core/components/dialog/__workshop__/nested.tsx +2 -3
  58. package/src/core/components/dialog/__workshop__/onScroll.tsx +1 -1
  59. package/src/core/components/dialog/__workshop__/panes.tsx +1 -1
  60. package/src/core/components/dialog/__workshop__/position.tsx +1 -1
  61. package/src/core/components/dialog/__workshop__/props.tsx +1 -1
  62. package/src/core/components/dialog/__workshop__/provider.tsx +1 -1
  63. package/src/core/components/dialog/__workshop__/wrapped.tsx +1 -1
  64. package/src/core/components/dialog/dialog.tsx +5 -6
  65. package/src/core/components/dialog/dialogCard.tsx +2 -2
  66. package/src/core/components/dialog/dialogContext.ts +3 -4
  67. package/src/core/components/dialog/dialogProvider.tsx +2 -2
  68. package/src/core/components/hotkeys/__workshop__/index.ts +5 -3
  69. package/src/core/components/hotkeys/__workshop__/plain.tsx +1 -1
  70. package/src/core/components/hotkeys/hotkeys.tsx +4 -15
  71. package/src/core/components/menu/__workshop__/asComponent.tsx +1 -1
  72. package/src/core/components/menu/__workshop__/avatarMenu.tsx +1 -1
  73. package/src/core/components/menu/__workshop__/closableMenuButton.tsx +1 -1
  74. package/src/core/components/menu/__workshop__/constrainedInBoundary.tsx +3 -3
  75. package/src/core/components/menu/__workshop__/customMenuItem.tsx +1 -1
  76. package/src/core/components/menu/__workshop__/customSelectedState.tsx +1 -1
  77. package/src/core/components/menu/__workshop__/disableFocusOnClose.tsx +1 -1
  78. package/src/core/components/menu/__workshop__/groups.tsx +1 -1
  79. package/src/core/components/menu/__workshop__/index.ts +5 -3
  80. package/src/core/components/menu/__workshop__/menuButton.tsx +2 -2
  81. package/src/core/components/menu/__workshop__/menuGroupRight.tsx +1 -1
  82. package/src/core/components/menu/__workshop__/nestedMenu.tsx +1 -1
  83. package/src/core/components/menu/__workshop__/onCloseMenuButton.tsx +1 -1
  84. package/src/core/components/menu/__workshop__/selectedItem.tsx +1 -1
  85. package/src/core/components/menu/__workshop__/shouldFocus.tsx +1 -1
  86. package/src/core/components/menu/__workshop__/tones.tsx +3 -3
  87. package/src/core/components/menu/__workshop__/withoutArrow.tsx +1 -1
  88. package/src/core/components/menu/menu.test.tsx +2 -1
  89. package/src/core/components/menu/menu.tsx +7 -22
  90. package/src/core/components/menu/menuButton.tsx +4 -50
  91. package/src/core/components/menu/menuContext.ts +3 -15
  92. package/src/core/components/menu/menuDivider.tsx +2 -2
  93. package/src/core/components/menu/menuGroup.tsx +10 -15
  94. package/src/core/components/menu/menuItem.tsx +7 -18
  95. package/src/core/components/tab/__workshop__/example.tsx +1 -1
  96. package/src/core/components/tab/__workshop__/index.ts +5 -3
  97. package/src/core/components/tab/tab.tsx +6 -4
  98. package/src/core/components/tab/tabList.tsx +3 -8
  99. package/src/core/components/tab/tabPanel.tsx +2 -2
  100. package/src/core/components/toast/__workshop__/hook.tsx +1 -1
  101. package/src/core/components/toast/__workshop__/index.ts +5 -3
  102. package/src/core/components/toast/__workshop__/toast.tsx +1 -1
  103. package/src/core/components/toast/toast.test.tsx +2 -1
  104. package/src/core/components/toast/toast.tsx +2 -2
  105. package/src/core/components/toast/toastContext.ts +4 -4
  106. package/src/core/components/toast/toastLayer.tsx +3 -3
  107. package/src/core/components/tree/__workshop__/basic.perf.ts +1 -1
  108. package/src/core/components/tree/__workshop__/basic.tsx +1 -1
  109. package/src/core/components/tree/__workshop__/index.ts +5 -3
  110. package/src/core/components/tree/__workshop__/tabFromElement.tsx +1 -1
  111. package/src/core/components/tree/tree.tsx +8 -9
  112. package/src/core/components/tree/treeContext.ts +4 -4
  113. package/src/core/components/tree/treeGroup.tsx +6 -8
  114. package/src/core/components/tree/treeItem.tsx +4 -4
  115. package/src/core/components/tree/types.ts +1 -1
  116. package/src/core/components/virtualList/__workshop__/changingProps.tsx +1 -1
  117. package/src/core/components/virtualList/__workshop__/elementScroll.tsx +1 -1
  118. package/src/core/components/virtualList/__workshop__/index.ts +5 -3
  119. package/src/core/components/virtualList/__workshop__/infiniteList.tsx +1 -1
  120. package/src/core/components/virtualList/__workshop__/windowScrolll.tsx +1 -1
  121. package/src/core/components/virtualList/virtualList.tsx +2 -2
  122. package/src/core/constants.ts +0 -18
  123. package/src/core/hooks/useMediaIndex/__workshop__/index.ts +5 -3
  124. package/src/core/hooks/useMediaIndex/__workshop__/test.tsx +1 -1
  125. package/src/core/hooks/useMediaIndex/useMediaIndex.ts +6 -1
  126. package/src/core/index.ts +1 -24
  127. package/src/core/lib/createGlobalScopedContext.ts +1 -1
  128. package/src/core/lib/globalScope.ts +1 -1
  129. package/src/core/observers/elementSize.ts +1 -1
  130. package/src/core/primitives/arrow/arrow.tsx +2 -2
  131. package/src/core/primitives/avatar/__workshop__/asButton.tsx +1 -1
  132. package/src/core/primitives/avatar/__workshop__/index.ts +5 -3
  133. package/src/core/primitives/avatar/__workshop__/stack.tsx +1 -1
  134. package/src/core/primitives/avatar/__workshop__/withinButton.tsx +1 -1
  135. package/src/core/primitives/avatar/__workshop__/withinMenuItem.tsx +1 -1
  136. package/src/core/primitives/avatar/avatar.tsx +3 -10
  137. package/src/core/primitives/avatar/avatarCounter.tsx +2 -2
  138. package/src/core/primitives/avatar/avatarStack.tsx +2 -4
  139. package/src/core/primitives/avatar/types.ts +0 -32
  140. package/src/core/primitives/badge/__workshop__/index.ts +5 -3
  141. package/src/core/primitives/badge/__workshop__/props.tsx +1 -1
  142. package/src/core/primitives/badge/__workshop__/tones.tsx +3 -3
  143. package/src/core/primitives/badge/badge.test.tsx +2 -1
  144. package/src/core/primitives/badge/badge.tsx +12 -11
  145. package/src/core/primitives/box/__workshop__/index.ts +5 -3
  146. package/src/core/primitives/box/__workshop__/props.tsx +1 -1
  147. package/src/core/primitives/box/__workshop__/responsive.tsx +1 -1
  148. package/src/core/primitives/box/box.tsx +28 -32
  149. package/src/core/primitives/button/__workshop__/custom.tsx +5 -5
  150. package/src/core/primitives/button/__workshop__/customIcons.tsx +1 -1
  151. package/src/core/primitives/button/__workshop__/disabled.tsx +3 -3
  152. package/src/core/primitives/button/__workshop__/index.ts +5 -3
  153. package/src/core/primitives/button/__workshop__/mixedChildren.tsx +1 -1
  154. package/src/core/primitives/button/__workshop__/props.tsx +1 -1
  155. package/src/core/primitives/button/__workshop__/sanityUploadButton.tsx +1 -1
  156. package/src/core/primitives/button/__workshop__/stacked.tsx +1 -1
  157. package/src/core/primitives/button/__workshop__/styled1.tsx +1 -1
  158. package/src/core/primitives/button/__workshop__/styled2.tsx +1 -1
  159. package/src/core/primitives/button/__workshop__/textOverflow.tsx +1 -1
  160. package/src/core/primitives/button/__workshop__/uploadButton.tsx +1 -1
  161. package/src/core/primitives/button/button.test.tsx +2 -1
  162. package/src/core/primitives/button/button.tsx +4 -7
  163. package/src/core/primitives/button/types.ts +0 -20
  164. package/src/core/primitives/card/__workshop__/asButton.tsx +2 -2
  165. package/src/core/primitives/card/__workshop__/asComponent.tsx +1 -1
  166. package/src/core/primitives/card/__workshop__/checkered.tsx +3 -3
  167. package/src/core/primitives/card/__workshop__/index.ts +5 -3
  168. package/src/core/primitives/card/__workshop__/interactive.tsx +1 -1
  169. package/src/core/primitives/card/__workshop__/listNavigation.tsx +1 -1
  170. package/src/core/primitives/card/__workshop__/props.tsx +1 -1
  171. package/src/core/primitives/card/__workshop__/selected.tsx +1 -1
  172. package/src/core/primitives/card/__workshop__/styled.tsx +1 -1
  173. package/src/core/primitives/card/__workshop__/tones.tsx +3 -3
  174. package/src/core/primitives/card/card.tsx +4 -2
  175. package/src/core/primitives/card/cardContext.ts +1 -1
  176. package/src/core/primitives/card/cardProvider.tsx +4 -4
  177. package/src/core/primitives/card/types.ts +5 -19
  178. package/src/core/primitives/checkbox/__workshop__/example.tsx +1 -1
  179. package/src/core/primitives/checkbox/__workshop__/index.ts +5 -3
  180. package/src/core/primitives/checkbox/__workshop__/props.tsx +1 -1
  181. package/src/core/primitives/checkbox/__workshop__/readOnly.tsx +1 -1
  182. package/src/core/primitives/checkbox/__workshop__/tones.tsx +3 -3
  183. package/src/core/primitives/checkbox/checkbox.tsx +2 -2
  184. package/src/core/primitives/code/__workshop__/index.ts +5 -3
  185. package/src/core/primitives/code/__workshop__/opticalAlignment.tsx +1 -1
  186. package/src/core/primitives/code/__workshop__/props.tsx +1 -1
  187. package/src/core/primitives/code/code.tsx +4 -2
  188. package/src/core/primitives/code/refractor.tsx +1 -1
  189. package/src/core/primitives/container/__workshop__/example.tsx +1 -1
  190. package/src/core/primitives/container/__workshop__/index.ts +5 -3
  191. package/src/core/primitives/container/container.tsx +2 -2
  192. package/src/core/primitives/flex/__workshop__/example.tsx +1 -1
  193. package/src/core/primitives/flex/__workshop__/gap.tsx +1 -1
  194. package/src/core/primitives/flex/__workshop__/index.ts +5 -3
  195. package/src/core/primitives/flex/flex.tsx +4 -2
  196. package/src/core/primitives/grid/__workshop__/index.ts +5 -3
  197. package/src/core/primitives/grid/__workshop__/responsive.tsx +3 -3
  198. package/src/core/primitives/grid/grid.tsx +4 -2
  199. package/src/core/primitives/heading/__workshop__/index.ts +5 -3
  200. package/src/core/primitives/heading/__workshop__/opticalAlignment.tsx +1 -1
  201. package/src/core/primitives/heading/__workshop__/plain.tsx +1 -1
  202. package/src/core/primitives/heading/heading.tsx +2 -4
  203. package/src/core/primitives/inline/__workshop__/index.ts +5 -3
  204. package/src/core/primitives/inline/__workshop__/plain.tsx +1 -1
  205. package/src/core/primitives/inline/inline.tsx +4 -11
  206. package/src/core/primitives/kbd/__workshop__/index.ts +5 -3
  207. package/src/core/primitives/kbd/__workshop__/plain.tsx +1 -1
  208. package/src/core/primitives/kbd/kbd.tsx +4 -2
  209. package/src/core/primitives/label/__workshop__/index.ts +5 -3
  210. package/src/core/primitives/label/__workshop__/opticalAlignment.tsx +1 -1
  211. package/src/core/primitives/label/__workshop__/plain.tsx +1 -1
  212. package/src/core/primitives/label/label.tsx +2 -4
  213. package/src/core/primitives/layer/__workshop__/_debug.tsx +1 -1
  214. package/src/core/primitives/layer/__workshop__/index.ts +5 -3
  215. package/src/core/primitives/layer/__workshop__/multipleRoots.tsx +1 -1
  216. package/src/core/primitives/layer/__workshop__/nested.tsx +1 -1
  217. package/src/core/primitives/layer/__workshop__/responsiveZOffset.tsx +1 -1
  218. package/src/core/primitives/layer/layer.test.tsx +2 -1
  219. package/src/core/primitives/layer/layer.tsx +2 -2
  220. package/src/core/primitives/layer/layerCard.tsx +2 -2
  221. package/src/core/primitives/layer/layerContext.ts +4 -4
  222. package/src/core/primitives/layer/layerProvider.tsx +2 -10
  223. package/src/core/primitives/popover/__workshop__/AlignedStory.tsx +2 -2
  224. package/src/core/primitives/popover/__workshop__/MarginsStory.tsx +1 -1
  225. package/src/core/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +1 -1
  226. package/src/core/primitives/popover/__workshop__/OpenOnMountStory.tsx +1 -1
  227. package/src/core/primitives/popover/__workshop__/PlainStory.tsx +2 -2
  228. package/src/core/primitives/popover/__workshop__/RecursiveStory.tsx +3 -3
  229. package/src/core/primitives/popover/__workshop__/SidePanelStory.tsx +3 -3
  230. package/src/core/primitives/popover/__workshop__/index.ts +5 -3
  231. package/src/core/primitives/popover/popover.tsx +4 -9
  232. package/src/core/primitives/popover/popoverLayer.tsx +2 -2
  233. package/src/core/primitives/radio/__workshop__/example.tsx +1 -1
  234. package/src/core/primitives/radio/__workshop__/index.ts +5 -3
  235. package/src/core/primitives/radio/__workshop__/plain.tsx +1 -1
  236. package/src/core/primitives/radio/radio.tsx +2 -2
  237. package/src/core/primitives/select/__workshop__/index.ts +5 -3
  238. package/src/core/primitives/select/__workshop__/plain.tsx +1 -1
  239. package/src/core/primitives/select/__workshop__/readOnly.tsx +1 -1
  240. package/src/core/primitives/select/select.tsx +5 -15
  241. package/src/core/primitives/selectable/selectable.tsx +4 -4
  242. package/src/core/primitives/skeleton/__workshop__/delay.tsx +1 -1
  243. package/src/core/primitives/skeleton/__workshop__/index.ts +5 -3
  244. package/src/core/primitives/skeleton/__workshop__/skeleton.tsx +2 -2
  245. package/src/core/primitives/skeleton/codeSkeleton.tsx +2 -2
  246. package/src/core/primitives/skeleton/headingSkeleton.tsx +2 -2
  247. package/src/core/primitives/skeleton/labelSkeleton.tsx +2 -2
  248. package/src/core/primitives/skeleton/skeleton.tsx +2 -2
  249. package/src/core/primitives/skeleton/textSkeleton.tsx +2 -2
  250. package/src/core/primitives/spinner/__workshop__/Props.tsx +1 -1
  251. package/src/core/primitives/spinner/__workshop__/index.ts +5 -3
  252. package/src/core/primitives/spinner/animatedSpinnerIcon.tsx +2 -2
  253. package/src/core/primitives/spinner/spinner.tsx +2 -2
  254. package/src/core/primitives/srOnly/srOnly.tsx +2 -2
  255. package/src/core/primitives/stack/__workshop__/index.ts +5 -3
  256. package/src/core/primitives/stack/__workshop__/plain.tsx +1 -1
  257. package/src/core/primitives/stack/stack.tsx +5 -10
  258. package/src/core/primitives/switch/__workshop__/example.tsx +1 -1
  259. package/src/core/primitives/switch/__workshop__/index.ts +5 -3
  260. package/src/core/primitives/switch/__workshop__/props.tsx +1 -1
  261. package/src/core/primitives/switch/switch.tsx +2 -2
  262. package/src/core/primitives/text/__workshop__/colored.tsx +1 -1
  263. package/src/core/primitives/text/__workshop__/example.tsx +1 -1
  264. package/src/core/primitives/text/__workshop__/index.ts +5 -3
  265. package/src/core/primitives/text/__workshop__/opticalAlignment.tsx +1 -1
  266. package/src/core/primitives/text/text.tsx +4 -4
  267. package/src/core/primitives/textArea/__workshop__/index.ts +5 -3
  268. package/src/core/primitives/textArea/__workshop__/plain.tsx +1 -1
  269. package/src/core/primitives/textArea/textArea.tsx +5 -15
  270. package/src/core/primitives/textInput/__workshop__/clearButton.tsx +1 -1
  271. package/src/core/primitives/textInput/__workshop__/customValidity.tsx +1 -1
  272. package/src/core/primitives/textInput/__workshop__/index.ts +5 -3
  273. package/src/core/primitives/textInput/__workshop__/plain.tsx +1 -1
  274. package/src/core/primitives/textInput/__workshop__/readOnly.tsx +1 -1
  275. package/src/core/primitives/textInput/__workshop__/states.tsx +1 -1
  276. package/src/core/primitives/textInput/__workshop__/tones.tsx +1 -1
  277. package/src/core/primitives/textInput/__workshop__/typed.tsx +1 -1
  278. package/src/core/primitives/textInput/textInput.tsx +6 -9
  279. package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +1 -1
  280. package/src/core/primitives/tooltip/__workshop__/index.ts +5 -3
  281. package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +1 -1
  282. package/src/core/primitives/tooltip/__workshop__/props.tsx +1 -1
  283. package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +1 -1
  284. package/src/core/primitives/tooltip/constants.ts +1 -1
  285. package/src/core/primitives/tooltip/tooltip.test.tsx +2 -4
  286. package/src/core/primitives/tooltip/tooltip.tsx +5 -9
  287. package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +4 -2
  288. package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +5 -3
  289. package/src/core/primitives/tooltip/tooltipLayer.tsx +2 -2
  290. package/src/core/{types/props.ts → types.ts} +27 -0
  291. package/src/core/utils/boundaryElement/__workshop__/index.ts +5 -3
  292. package/src/core/utils/boundaryElement/__workshop__/plain.tsx +1 -1
  293. package/src/core/utils/boundaryElement/boundaryElement.test.tsx +2 -1
  294. package/src/core/utils/boundaryElement/boundaryElementContext.ts +7 -4
  295. package/src/core/utils/boundaryElement/boundaryElementProvider.tsx +2 -2
  296. package/src/core/utils/elementQuery/__workshop__/customMedia.tsx +1 -1
  297. package/src/core/utils/elementQuery/__workshop__/index.ts +5 -3
  298. package/src/core/utils/elementQuery/elementQuery.tsx +2 -2
  299. package/src/core/utils/getElementRef.ts +1 -1
  300. package/src/core/utils/portal/__workshop__/index.ts +5 -3
  301. package/src/core/utils/portal/__workshop__/named.tsx +1 -1
  302. package/src/core/utils/portal/portal.test.tsx +2 -1
  303. package/src/core/utils/portal/portalContext.ts +5 -2
  304. package/src/core/utils/portal/portalProvider.tsx +5 -9
  305. package/src/css/_responsiveClassName.ts +2 -2
  306. package/src/css/_style.css.ts +1 -1
  307. package/src/css/components/breadcrumbs/breadcrumbs.css.ts +1 -1
  308. package/src/css/components/dialog/dialog.css.ts +9 -17
  309. package/src/css/components/menu/menu.css.ts +2 -2
  310. package/src/css/components/menu/menu.ts +2 -2
  311. package/src/css/components/skeleton/skeleton.css.ts +2 -6
  312. package/src/css/components/toast/toast.css.ts +2 -2
  313. package/src/css/components/toast/toast.ts +2 -2
  314. package/src/css/components/tree/tree.css.ts +1 -1
  315. package/src/css/components/tree/tree.ts +1 -1
  316. package/src/css/defaultTheme.css.ts +59 -60
  317. package/src/css/layers.css.ts +4 -1
  318. package/src/css/primitives/_arrow/_arrow.css.ts +5 -5
  319. package/src/css/primitives/_input/_input.css.ts +4 -4
  320. package/src/css/primitives/_selectable/_selectable.css.ts +4 -4
  321. package/src/css/primitives/_selectable/types.ts +2 -2
  322. package/src/css/primitives/avatar/avatar.css.ts +10 -10
  323. package/src/css/primitives/badge/badge.css.ts +4 -4
  324. package/src/css/primitives/badge/types.ts +8 -2
  325. package/src/css/primitives/box/box.css.ts +2 -2
  326. package/src/css/primitives/button/button.css.ts +6 -6
  327. package/src/css/primitives/button/button.ts +2 -2
  328. package/src/css/primitives/button/types.ts +3 -3
  329. package/src/css/primitives/card/__workshop__/color.tsx +9 -9
  330. package/src/css/primitives/card/__workshop__/index.ts +5 -3
  331. package/src/css/primitives/card/card.css.ts +12 -18
  332. package/src/css/primitives/card/types.ts +3 -3
  333. package/src/css/primitives/checkbox/checkbox.css.ts +3 -3
  334. package/src/css/primitives/checkbox/checkbox.ts +3 -3
  335. package/src/css/primitives/code/code.css.ts +4 -3
  336. package/src/css/primitives/code/types.ts +3 -4
  337. package/src/css/primitives/container/container.css.ts +1 -1
  338. package/src/css/primitives/heading/heading.css.ts +5 -4
  339. package/src/css/primitives/heading/types.ts +3 -6
  340. package/src/css/primitives/kbd/kbd.css.ts +1 -1
  341. package/src/css/primitives/label/label.css.ts +5 -4
  342. package/src/css/primitives/label/types.ts +0 -8
  343. package/src/css/primitives/popover/popover.css.ts +2 -2
  344. package/src/css/primitives/popover/popover.ts +2 -2
  345. package/src/css/primitives/radio/radio.css.ts +3 -3
  346. package/src/css/primitives/radio/radio.ts +3 -3
  347. package/src/css/primitives/root/root.css.ts +1 -1
  348. package/src/css/primitives/root/root.ts +1 -1
  349. package/src/css/primitives/root/types.ts +3 -3
  350. package/src/css/primitives/select/select.css.ts +3 -3
  351. package/src/css/primitives/spinner/spinner.css.ts +2 -6
  352. package/src/css/primitives/spinner/spinner.ts +2 -2
  353. package/src/css/primitives/srOnly/srOnly.css.ts +1 -1
  354. package/src/css/primitives/srOnly/srOnly.ts +1 -1
  355. package/src/css/primitives/stack/stack.css.ts +1 -1
  356. package/src/css/primitives/stack/stack.ts +1 -1
  357. package/src/css/primitives/switch/switch.css.ts +5 -5
  358. package/src/css/primitives/text/text.css.ts +5 -4
  359. package/src/css/primitives/text/types.ts +3 -5
  360. package/src/css/primitives/textArea/textArea.css.ts +1 -1
  361. package/src/css/primitives/textInput/textInput.css.ts +4 -4
  362. package/src/css/primitives/tooltip/tooltip.css.ts +1 -1
  363. package/src/css/props/alignItems/alignItems.ts +1 -1
  364. package/src/css/props/border/border.ts +1 -16
  365. package/src/css/props/boxSizing/boxSizing.css.ts +2 -1
  366. package/src/css/props/boxSizing/boxSizing.ts +0 -3
  367. package/src/css/props/display/display.ts +1 -10
  368. package/src/css/props/flex/flex.ts +1 -1
  369. package/src/css/props/flexDirection/flexDirection.ts +1 -1
  370. package/src/css/props/flexWrap/flexWrap.ts +1 -1
  371. package/src/css/props/font/font.css.ts +3 -2
  372. package/src/css/props/font/font.ts +1 -1
  373. package/src/css/props/gap/gap.ts +1 -1
  374. package/src/css/props/gridAutoColumns/gridAutoColumns.css.ts +2 -2
  375. package/src/css/props/gridAutoColumns/gridAutoColumns.ts +2 -2
  376. package/src/css/props/gridAutoColumns/types.ts +0 -10
  377. package/src/css/props/gridAutoFlow/gridAutoFlow.ts +2 -2
  378. package/src/css/props/gridAutoFlow/types.ts +0 -4
  379. package/src/css/props/gridAutoRows/gridAutoRows.ts +2 -2
  380. package/src/css/props/gridAutoRows/types.ts +0 -4
  381. package/src/css/props/gridColumn/gridColumn.ts +3 -3
  382. package/src/css/props/gridColumn/types.ts +0 -10
  383. package/src/css/props/gridColumnEnd/gridColumnEnd.ts +3 -3
  384. package/src/css/props/gridColumnEnd/types.ts +0 -10
  385. package/src/css/props/gridColumnStart/gridColumnStart.ts +3 -6
  386. package/src/css/props/gridColumnStart/types.ts +0 -10
  387. package/src/css/props/gridRow/gridRow.ts +3 -3
  388. package/src/css/props/gridRow/types.ts +0 -10
  389. package/src/css/props/gridRowEnd/gridRowEnd.ts +3 -3
  390. package/src/css/props/gridRowEnd/types.ts +0 -10
  391. package/src/css/props/gridRowStart/gridRowStart.ts +3 -3
  392. package/src/css/props/gridRowStart/types.ts +0 -10
  393. package/src/css/props/gridTemplateColumns/gridTemplateColumns.ts +2 -2
  394. package/src/css/props/gridTemplateColumns/types.ts +0 -10
  395. package/src/css/props/gridTemplateRows/gridTemplateRows.ts +2 -2
  396. package/src/css/props/gridTemplateRows/types.ts +0 -10
  397. package/src/css/props/height/height.ts +1 -1
  398. package/src/css/props/height/types.ts +0 -6
  399. package/src/css/props/inset/inset.ts +1 -1
  400. package/src/css/props/justifyContent/justifyContent.ts +1 -1
  401. package/src/css/props/margin/margin.ts +1 -1
  402. package/src/css/props/maxWidth/maxWidth.ts +1 -1
  403. package/src/css/props/minHeight/minHeight.ts +1 -1
  404. package/src/css/props/minWidth/minWidth.ts +1 -1
  405. package/src/css/props/outline/outline.ts +1 -1
  406. package/src/css/props/overflow/overflow.ts +1 -1
  407. package/src/css/props/overflow/types.ts +0 -6
  408. package/src/css/props/padding/padding.ts +1 -1
  409. package/src/css/props/pointerEvents/pointerEvents.ts +1 -1
  410. package/src/css/props/position/position.ts +1 -1
  411. package/src/css/props/radius/radius.ts +1 -1
  412. package/src/css/props/shadow/shadow.ts +1 -1
  413. package/src/css/props/textAlign/textAlign.ts +1 -1
  414. package/src/css/props/textOverflow/textOverflow.ts +1 -1
  415. package/src/css/props/width/width.ts +1 -1
  416. package/src/css/types.ts +225 -53
  417. package/src/css/util.ts +2 -2
  418. package/src/css/vars.css.ts +33 -36
  419. package/src/theme/{v3/_parseColorToken.ts → _parseColorToken.ts} +2 -2
  420. package/src/theme/buildTheme.ts +33 -0
  421. package/src/theme/constants.ts +90 -0
  422. package/src/theme/defaults/color.ts +197 -0
  423. package/src/theme/{v2/defaults/config.ts → defaults/common.ts} +3 -16
  424. package/src/theme/{v3/defaultFonts.ts → defaults/fonts.ts} +2 -2
  425. package/src/theme/index.ts +4 -5
  426. package/src/theme/{v3/resolveTokens.ts → resolveTokens.ts} +15 -15
  427. package/src/theme/types.ts +355 -15
  428. package/src/core/__DEV__.ts +0 -5
  429. package/src/core/_compat/helpers.ts +0 -72
  430. package/src/core/_compat/styles/_responsive.ts +0 -19
  431. package/src/core/_compat/theme/theme.test.tsx +0 -73
  432. package/src/core/_compat/theme/themeColorProvider.tsx +0 -24
  433. package/src/core/_compat/theme/themeContext.ts +0 -10
  434. package/src/core/_compat/theme/themeProvider.tsx +0 -68
  435. package/src/core/_compat/theme/types.ts +0 -10
  436. package/src/core/_compat/theme/useRootTheme.ts +0 -15
  437. package/src/core/_compat/theme/useTheme.ts +0 -12
  438. package/src/core/_compat/types.ts +0 -191
  439. package/src/core/hooks/useArrayProp.ts +0 -26
  440. package/src/core/hooks/useClickOutside.test.tsx +0 -481
  441. package/src/core/hooks/useClickOutside.ts +0 -113
  442. package/src/core/hooks/useElementRect/__workshop__/example.tsx +0 -30
  443. package/src/core/hooks/useElementRect/__workshop__/index.ts +0 -14
  444. package/src/core/hooks/useElementRect/useElementRect.ts +0 -13
  445. package/src/core/hooks/useForwardedRef.ts +0 -19
  446. package/src/core/hooks/useIsomorphicEffect.ts +0 -7
  447. package/src/core/primitives/badge/types.ts +0 -18
  448. package/src/core/primitives/box/types.ts +0 -22
  449. package/src/core/primitives/flex/types.ts +0 -27
  450. package/src/core/primitives/grid/types.ts +0 -17
  451. package/src/core/primitives/selectable/types.ts +0 -7
  452. package/src/core/primitives/types.ts +0 -153
  453. package/src/core/types/gridItem.ts +0 -32
  454. package/src/core/types/placement.ts +0 -18
  455. package/src/core/types/radius.ts +0 -7
  456. package/src/core/types/textAlign.ts +0 -7
  457. package/src/core/utils/spanWithTextOverflow.tsx +0 -10
  458. package/src/theme/getScopedTheme.ts +0 -88
  459. package/src/theme/v0/avatar.ts +0 -10
  460. package/src/theme/v0/color/_generic.ts +0 -35
  461. package/src/theme/v0/color/_system.ts +0 -17
  462. package/src/theme/v0/color/base.ts +0 -21
  463. package/src/theme/v0/color/button.ts +0 -42
  464. package/src/theme/v0/color/card.ts +0 -19
  465. package/src/theme/v0/color/color.ts +0 -40
  466. package/src/theme/v0/color/index.ts +0 -11
  467. package/src/theme/v0/color/input.ts +0 -34
  468. package/src/theme/v0/color/muted.ts +0 -26
  469. package/src/theme/v0/color/selectable.ts +0 -31
  470. package/src/theme/v0/color/solid.ts +0 -26
  471. package/src/theme/v0/color/spot.ts +0 -13
  472. package/src/theme/v0/css.ts +0 -10
  473. package/src/theme/v0/focusRing.ts +0 -5
  474. package/src/theme/v0/font.ts +0 -40
  475. package/src/theme/v0/index.ts +0 -10
  476. package/src/theme/v0/input.ts +0 -23
  477. package/src/theme/v0/layer.ts +0 -6
  478. package/src/theme/v0/shadow.ts +0 -15
  479. package/src/theme/v0/styles.ts +0 -13
  480. package/src/theme/v0/theme.ts +0 -72
  481. package/src/theme/v2/avatar.ts +0 -12
  482. package/src/theme/v2/build/_deprecated/color/_selectable/createSelectableTones.ts +0 -76
  483. package/src/theme/v2/build/_deprecated/color/_solid/createSolidTones.ts +0 -54
  484. package/src/theme/v2/build/_deprecated/color/button/createButtonModes.ts +0 -22
  485. package/src/theme/v2/build/_deprecated/color/button/createButtonTones.ts +0 -55
  486. package/src/theme/v2/build/_deprecated/color/card/createCardStates.ts +0 -60
  487. package/src/theme/v2/build/_deprecated/color/color.test.ts +0 -63
  488. package/src/theme/v2/build/_deprecated/color/defaults.ts +0 -390
  489. package/src/theme/v2/build/_deprecated/color/factory.ts +0 -141
  490. package/src/theme/v2/build/_deprecated/color/index.ts +0 -1
  491. package/src/theme/v2/build/_deprecated/color/input/createInputModes.ts +0 -86
  492. package/src/theme/v2/build/_deprecated/color/muted/createMuted.ts +0 -54
  493. package/src/theme/v2/build/_deprecated/color/spot/createSpot.ts +0 -20
  494. package/src/theme/v2/build/buildColorTheme.test.ts +0 -185
  495. package/src/theme/v2/build/buildColorTheme.ts +0 -494
  496. package/src/theme/v2/build/buildTheme.test.ts +0 -89
  497. package/src/theme/v2/build/buildTheme.ts +0 -37
  498. package/src/theme/v2/build/colorToken/colorToken.ts +0 -19
  499. package/src/theme/v2/build/colorToken/compileColorToken.ts +0 -21
  500. package/src/theme/v2/build/colorToken/index.ts +0 -2
  501. package/src/theme/v2/build/colorToken/types.ts +0 -6
  502. package/src/theme/v2/build/index.ts +0 -3
  503. package/src/theme/v2/build/lib/color-fns/blend/index.ts +0 -3
  504. package/src/theme/v2/build/lib/color-fns/blend/mix.ts +0 -21
  505. package/src/theme/v2/build/lib/color-fns/blend/multiply.ts +0 -18
  506. package/src/theme/v2/build/lib/color-fns/blend/screen.ts +0 -18
  507. package/src/theme/v2/build/lib/color-fns/color-fns.test.ts +0 -68
  508. package/src/theme/v2/build/lib/color-fns/contrastRatio.ts +0 -34
  509. package/src/theme/v2/build/lib/color-fns/convert.ts +0 -150
  510. package/src/theme/v2/build/lib/color-fns/index.ts +0 -6
  511. package/src/theme/v2/build/lib/color-fns/parse.ts +0 -60
  512. package/src/theme/v2/build/lib/color-fns/rgba.ts +0 -14
  513. package/src/theme/v2/build/lib/color-fns/types.ts +0 -28
  514. package/src/theme/v2/build/lib/isRecord.ts +0 -3
  515. package/src/theme/v2/build/lib/utils.ts +0 -19
  516. package/src/theme/v2/build/merge.ts +0 -28
  517. package/src/theme/v2/build/mixThemeColor.test.ts +0 -23
  518. package/src/theme/v2/build/mixThemeColor.ts +0 -53
  519. package/src/theme/v2/build/renderColorTheme.ts +0 -532
  520. package/src/theme/v2/build/renderColorValue.ts +0 -85
  521. package/src/theme/v2/build/resolveColorTokens.ts +0 -268
  522. package/src/theme/v2/color/_constants.ts +0 -45
  523. package/src/theme/v2/color/_helpers.ts +0 -24
  524. package/src/theme/v2/color/_system.ts +0 -38
  525. package/src/theme/v2/color/avatar.ts +0 -11
  526. package/src/theme/v2/color/badge.ts +0 -12
  527. package/src/theme/v2/color/button.ts +0 -11
  528. package/src/theme/v2/color/color.ts +0 -28
  529. package/src/theme/v2/color/index.ts +0 -13
  530. package/src/theme/v2/color/input.ts +0 -23
  531. package/src/theme/v2/color/kbd.ts +0 -6
  532. package/src/theme/v2/color/selectable.ts +0 -8
  533. package/src/theme/v2/color/shadow.ts +0 -7
  534. package/src/theme/v2/color/state.ts +0 -41
  535. package/src/theme/v2/color/syntax.ts +0 -39
  536. package/src/theme/v2/config/helpers.ts +0 -48
  537. package/src/theme/v2/config/index.ts +0 -4
  538. package/src/theme/v2/config/system.ts +0 -114
  539. package/src/theme/v2/config/tokens/color/index.ts +0 -1
  540. package/src/theme/v2/config/tokens/color/types.ts +0 -137
  541. package/src/theme/v2/config/tokens/index.ts +0 -3
  542. package/src/theme/v2/config/tokens/parseTokenValue.test.ts +0 -44
  543. package/src/theme/v2/config/tokens/parseTokenValue.ts +0 -133
  544. package/src/theme/v2/config/tokens/types.ts +0 -53
  545. package/src/theme/v2/config/types.ts +0 -47
  546. package/src/theme/v2/defaults/colorPalette.ts +0 -5
  547. package/src/theme/v2/defaults/colorTokens.ts +0 -648
  548. package/src/theme/v2/defaults/fonts.ts +0 -227
  549. package/src/theme/v2/index.ts +0 -6
  550. package/src/theme/v2/input.ts +0 -31
  551. package/src/theme/v2/theme.ts +0 -45
  552. package/src/theme/v3/_constants.ts +0 -29
  553. package/src/theme/v3/buildTheme_v3.ts +0 -39
  554. package/src/theme/v3/color/_constants.ts +0 -15
  555. package/src/theme/v3/color/avatar.ts +0 -14
  556. package/src/theme/v3/color/card.ts +0 -79
  557. package/src/theme/v3/color/color.ts +0 -98
  558. package/src/theme/v3/color/element.ts +0 -19
  559. package/src/theme/v3/color/index.ts +0 -7
  560. package/src/theme/v3/color/token.ts +0 -32
  561. package/src/theme/v3/color/tokens.ts +0 -5
  562. package/src/theme/v3/defaultTokens.ts +0 -199
  563. package/src/theme/v3/index.ts +0 -9
  564. package/src/theme/v3/palette/constants.ts +0 -15
  565. package/src/theme/v3/palette/index.ts +0 -2
  566. package/src/theme/v3/palette/types.ts +0 -7
  567. package/src/theme/v3/tokens.ts +0 -16
  568. package/src/theme/v3/types.ts +0 -133
  569. package/src/theme/versioning/getTheme_v2.ts +0 -58
  570. package/src/theme/versioning/index.ts +0 -1
  571. package/src/theme/versioning/is_v0.ts +0 -7
  572. package/src/theme/versioning/is_v2.ts +0 -7
  573. package/src/theme/versioning/themeColor_v0_v2.ts +0 -245
  574. package/src/theme/versioning/themeColor_v2_v2_9.ts +0 -49
  575. package/src/theme/versioning/themeColor_v3_v2.ts +0 -383
  576. package/src/theme/versioning/v0_v2.ts +0 -95
  577. package/src/theme/versioning/v2_v0.ts +0 -127
  578. package/src/theme/versioning/v3_v2.ts +0 -130
  579. /package/src/theme/{v3/merge.ts → merge.ts} +0 -0
package/dist/index.d.cts CHANGED
@@ -1,145 +1,70 @@
1
+ import type {AlignItems} from '@sanity/ui/css'
1
2
  import type {AvatarColor} from '@sanity/ui/theme'
2
- import {AvatarSize} from '@sanity/ui/theme'
3
- import {BaseTheme as BaseTheme_2} from '@sanity/ui/theme'
4
- import {Display as BoxDisplay} from '@sanity/ui/css'
5
- import {BoxHeight} from '@sanity/ui/css'
6
- import {BoxOverflow} from '@sanity/ui/css'
7
- import {BoxSizing} from '@sanity/ui/css'
8
- import type {BoxStyleProps} from '@sanity/ui/css'
3
+ import type {AvatarSize} from '@sanity/ui/theme'
4
+ import {BadgeStyleProps} from '@sanity/ui/css'
5
+ import {BoxStyleProps} from '@sanity/ui/css'
9
6
  import {Breakpoint} from '@sanity/ui/css'
10
7
  import type {ButtonStyleProps} from '@sanity/ui/css'
11
- import {CardStyleProps as CardStyleProps_2} from '@sanity/ui/css'
8
+ import {CardStyleProps} from '@sanity/ui/css'
9
+ import type {CardTone} from '@sanity/ui/theme'
12
10
  import {CodeStyleProps} from '@sanity/ui/css'
11
+ import type {ColorScheme} from '@sanity/ui/theme'
13
12
  import {Component} from 'react'
14
13
  import type {ComponentClass} from 'react'
15
14
  import type {ComponentProps} from 'react'
16
15
  import type {ComponentType as ComponentType_2} from 'react'
17
16
  import {ContainerStyleProps} from '@sanity/ui/css'
18
17
  import type {ContainerWidth} from '@sanity/ui/theme'
19
- import {Context} from 'react'
20
- import {createColorTheme as createColorTheme_2} from '@sanity/ui/theme'
21
- import type {CSSObject} from '@sanity/ui/theme'
18
+ import type {Context} from 'react'
22
19
  import type {DisplayStyleProps} from '@sanity/ui/css'
20
+ import type {ElementTone} from '@sanity/ui/theme'
23
21
  import {ElementType as ElementType_2} from 'react'
24
22
  import {ErrorInfo} from 'react'
25
23
  import type {ExoticComponent} from 'react'
26
- import {AlignItems as FlexAlign} from '@sanity/ui/css'
27
- import {FlexDirection} from '@sanity/ui/css'
28
- import {JustifyContent as FlexJustify} from '@sanity/ui/css'
29
- import {Flex as FlexValue} from '@sanity/ui/css'
30
- import {FlexWrap} from '@sanity/ui/css'
24
+ import type {FlexDirection} from '@sanity/ui/css'
25
+ import {FlexStyleProps} from '@sanity/ui/css'
26
+ import type {FlexWrap} from '@sanity/ui/css'
31
27
  import type {FontCodeSize} from '@sanity/ui/theme'
32
28
  import type {FontHeadingSize} from '@sanity/ui/theme'
33
29
  import type {FontLabelSize} from '@sanity/ui/theme'
34
30
  import type {FontTextSize} from '@sanity/ui/theme'
31
+ import type {FontWeight} from '@sanity/ui/theme'
35
32
  import {ForwardedRef} from 'react'
36
33
  import type {FunctionComponent} from 'react'
37
34
  import {GapStyleProps} from '@sanity/ui/css'
38
- import {GridAutoCols} from '@sanity/ui/css'
39
- import {GridAutoFlow} from '@sanity/ui/css'
40
- import {GridAutoRows} from '@sanity/ui/css'
41
- import {GridItemColumn} from '@sanity/ui/css'
42
- import {GridItemColumnEnd} from '@sanity/ui/css'
43
- import {GridItemColumnStart} from '@sanity/ui/css'
44
- import {GridItemRow} from '@sanity/ui/css'
45
- import {GridItemRowEnd} from '@sanity/ui/css'
46
- import {GridItemRowStart} from '@sanity/ui/css'
47
35
  import {HeadingStyleProps} from '@sanity/ui/css'
48
- import {hexToRgb as hexToRgb_2} from '@sanity/ui/theme'
49
- import {HSL as HSL_2} from '@sanity/ui/theme'
50
- import {hslToRgb as hslToRgb_2} from '@sanity/ui/theme'
51
36
  import {HTMLAttributes} from 'react'
52
37
  import {InputStyleProps} from '@sanity/ui/css'
53
- import type {InsetStyleProps} from '@sanity/ui/css'
54
- import {JSX} from 'react'
38
+ import type {JSX} from 'react'
39
+ import type {JustifyContent} from '@sanity/ui/css'
55
40
  import {LabelStyleProps} from '@sanity/ui/css'
56
41
  import {MaxWidth} from '@sanity/ui/css'
57
42
  import {MouseEventHandler} from 'react'
58
- import {multiply as multiply_2} from '@sanity/ui/theme'
59
- import {MutableRefObject} from 'react'
60
43
  import {PaddingStyleProps} from '@sanity/ui/css'
61
- import {parseColor as parseColor_2} from '@sanity/ui/theme'
62
- import {PartialThemeColorBuilderOpts} from '@sanity/ui/theme'
63
- import type {PositionStyleProps} from '@sanity/ui/css'
64
44
  import {PropsWithChildren} from 'react'
65
- import {px} from '@sanity/ui/css'
66
- import {Radius} from '@sanity/ui/theme'
45
+ import type {Radius} from '@sanity/ui/theme'
67
46
  import {RadiusStyleProps} from '@sanity/ui/css'
68
47
  import {ReactElement} from 'react'
69
48
  import {ReactNode} from 'react'
70
49
  import type {ReactPortal} from 'react'
71
50
  import {Ref} from 'react'
72
51
  import {RefAttributes} from 'react'
73
- import {rem} from '@sanity/ui/css'
74
52
  import {ResponsiveProp} from '@sanity/ui/css'
75
- import {RGB as RGB_2} from '@sanity/ui/theme'
76
- import {rgba as rgba_2} from '@sanity/ui/theme'
77
- import {rgbToHex as rgbToHex_2} from '@sanity/ui/theme'
78
- import {rgbToHsl as rgbToHsl_2} from '@sanity/ui/theme'
79
53
  import {RootStyleProps} from '@sanity/ui/css'
80
- import {RootTheme as RootTheme_2} from '@sanity/ui/theme'
81
- import {screen as screen_3} from '@sanity/ui/theme'
82
54
  import {SelectableStyleProps} from '@sanity/ui/css'
83
55
  import {SelectStyleProps} from '@sanity/ui/css'
84
56
  import {ShadowStyleProps} from '@sanity/ui/css'
85
57
  import {SkeletonStyleProps} from '@sanity/ui/css'
86
58
  import type {Space} from '@sanity/ui/theme'
87
- import {TextAlign} from '@sanity/ui/css'
88
59
  import {TextAreaStyleProps} from '@sanity/ui/css'
89
60
  import {TextOverflowStyleProps} from '@sanity/ui/css'
90
61
  import {TextStyleProps} from '@sanity/ui/css'
91
- import {Theme as Theme_2} from '@sanity/ui/theme'
92
- import {Theme_v2} from '@sanity/ui/theme'
93
- import {ThemeAvatar} from '@sanity/ui/theme'
94
- import {ThemeBoxShadow} from '@sanity/ui/theme'
95
- import {ThemeColor} from '@sanity/ui/theme'
96
- import type {ThemeColorAvatarColorKey} from '@sanity/ui/theme'
97
- import {ThemeColorBase} from '@sanity/ui/theme'
98
- import {ThemeColorBuilderOpts} from '@sanity/ui/theme'
99
- import {ThemeColorButton} from '@sanity/ui/theme'
100
- import {ThemeColorButtonModeKey as ThemeColorButtonModeKey_2} from '@sanity/ui/theme'
101
- import {ThemeColorButtonState} from '@sanity/ui/theme'
102
- import {ThemeColorButtonStates} from '@sanity/ui/theme'
103
- import {ThemeColorButtonTones} from '@sanity/ui/theme'
104
- import {ThemeColorCard} from '@sanity/ui/theme'
105
- import {ThemeColorCardState} from '@sanity/ui/theme'
106
- import {ThemeColorCardToneKey} from '@sanity/ui/theme'
107
- import {ThemeColorGenericState} from '@sanity/ui/theme'
108
- import {ThemeColorInput} from '@sanity/ui/theme'
109
- import {ThemeColorInputState} from '@sanity/ui/theme'
110
- import {ThemeColorInputStates} from '@sanity/ui/theme'
111
- import {ThemeColorMuted} from '@sanity/ui/theme'
112
- import {ThemeColorMutedTone} from '@sanity/ui/theme'
113
- import {ThemeColorName} from '@sanity/ui/theme'
114
- import {ThemeColorScheme} from '@sanity/ui/theme'
115
- import {ThemeColorSchemeKey as ThemeColorSchemeKey_2} from '@sanity/ui/theme'
116
- import {ThemeColorSchemes} from '@sanity/ui/theme'
117
- import {ThemeColorSelectable} from '@sanity/ui/theme'
118
- import {ThemeColorSelectableState} from '@sanity/ui/theme'
119
- import {ThemeColorSelectableStates} from '@sanity/ui/theme'
120
- import {ThemeColorSolid} from '@sanity/ui/theme'
121
- import {ThemeColorSolidTone} from '@sanity/ui/theme'
122
- import {ThemeColorSpot} from '@sanity/ui/theme'
123
- import {ThemeColorSpotKey} from '@sanity/ui/theme'
124
- import type {ThemeColorStateToneKey} from '@sanity/ui/theme'
125
- import {ThemeColorSyntax as ThemeColorSyntax_2} from '@sanity/ui/theme'
126
- import {ThemeColorToneKey} from '@sanity/ui/theme'
127
- import {ThemeFont as ThemeFont_2} from '@sanity/ui/theme'
128
- import {ThemeFontKey as ThemeFontKey_2} from '@sanity/ui/theme'
129
- import {ThemeFonts as ThemeFonts_2} from '@sanity/ui/theme'
130
- import {ThemeFontSize as ThemeFontSize_2} from '@sanity/ui/theme'
131
- import {ThemeFontWeight as ThemeFontWeight_2} from '@sanity/ui/theme'
132
- import {ThemeFontWeightKey as ThemeFontWeightKey_2} from '@sanity/ui/theme'
133
- import {ThemeInput} from '@sanity/ui/theme'
134
- import {ThemeLayer as ThemeLayer_2} from '@sanity/ui/theme'
135
- import {ThemeShadow as ThemeShadow_2} from '@sanity/ui/theme'
136
- import {ThemeStyles} from '@sanity/ui/theme'
137
62
  import type {Width} from '@sanity/ui/css'
138
63
 
139
64
  /** @internal */
140
65
  export declare function Arrow<E extends ArrowElementType = typeof DEFAULT_ARROW_ELEMENT>(
141
66
  props: ArrowProps<E>,
142
- ): JSX.Element
67
+ ): React.JSX.Element
143
68
 
144
69
  /** @internal */
145
70
  export declare type ArrowElementType = 'div' | 'span' | ComponentType
@@ -178,7 +103,7 @@ export declare function attemptFocus(element: HTMLElement): boolean
178
103
  export declare function Autocomplete<
179
104
  E extends AutocompleteElementType = typeof DEFAULT_AUTOCOMPLETE_ELEMENT,
180
105
  O extends BaseAutocompleteOption = BaseAutocompleteOption,
181
- >(props: AutocompleteProps<E, O>): JSX.Element
106
+ >(props: AutocompleteProps<E, O>): React.JSX.Element
182
107
 
183
108
  /** @public */
184
109
  export declare type AutocompleteElementType = 'input' | ComponentType
@@ -337,12 +262,12 @@ export declare interface AutocompleteValueChangeMsg {
337
262
  */
338
263
  export declare function Avatar<E extends AvatarElementType = typeof DEFAULT_AVATAR_ELEMENT>(
339
264
  props: AvatarProps<E>,
340
- ): JSX.Element
265
+ ): React.JSX.Element
341
266
 
342
267
  /** @public */
343
268
  export declare function AvatarCounter<
344
269
  E extends AvatarCounterElementType = typeof DEFAULT_AVATAR_COUNTER_ELEMENT,
345
- >(props: AvatarCounterProps<E>): JSX.Element
270
+ >(props: AvatarCounterProps<E>): React.JSX.Element
346
271
 
347
272
  /** @public */
348
273
  export declare type AvatarCounterElementType = 'button' | 'div' | 'span' | ComponentType
@@ -372,11 +297,6 @@ export declare interface AvatarOwnProps {
372
297
  onImageLoadError?: (event: Error) => void
373
298
  size?: ResponsiveProp<AvatarSize>
374
299
  src?: string
375
- /**
376
- * The status of the entity this Avatar represents.
377
- * @deprecated Will be removed in next major version.
378
- */
379
- status?: AvatarStatus
380
300
  title?: string
381
301
  }
382
302
 
@@ -389,20 +309,10 @@ export declare type AvatarProps<E extends AvatarElementType = AvatarElementType>
389
309
  E
390
310
  >
391
311
 
392
- /**
393
- * @internal
394
- * @deprecated This will be removed in next major version.
395
- */
396
- export declare interface AvatarRootStyleProps {
397
- $color: ThemeColorAvatarColorKey
398
- }
399
-
400
- export {AvatarSize}
401
-
402
312
  /** @public */
403
313
  export declare function AvatarStack<
404
314
  E extends AvatarStackElementType = typeof DEFAULT_AVATAR_STACK_ELEMENT,
405
- >(props: AvatarStackProps<E>): JSX.Element
315
+ >(props: AvatarStackProps<E>): React.JSX.Element
406
316
 
407
317
  /** @public */
408
318
  export declare type AvatarStackChild = ReactElement<AvatarProps<'div'>> | null | undefined | false
@@ -418,21 +328,12 @@ export declare type AvatarStackOwnProps = Omit<
418
328
  children: AvatarStackChild | AvatarStackChild[]
419
329
  maxLength?: number
420
330
  size?: ResponsiveProp<AvatarSize>
421
- /** @deprecated No longer supported. */
422
- tone?: 'navbar'
423
331
  }
424
332
 
425
333
  /** @public */
426
334
  export declare type AvatarStackProps<E extends AvatarStackElementType = AvatarStackElementType> =
427
335
  Props<AvatarStackOwnProps, E>
428
336
 
429
- /** @public */
430
- /**
431
- * @public
432
- * @deprecated Will be removed in next major version.
433
- */
434
- export declare type AvatarStatus = 'online' | 'editing' | 'inactive'
435
-
436
337
  /**
437
338
  * Badges are used to tag resources.
438
339
  *
@@ -440,17 +341,16 @@ export declare type AvatarStatus = 'online' | 'editing' | 'inactive'
440
341
  */
441
342
  export declare function Badge<E extends BadgeElementType = typeof DEFAULT_BADGE_ELEMENT>(
442
343
  props: BadgeProps<E>,
443
- ): JSX.Element
344
+ ): React.JSX.Element
444
345
 
445
346
  /** @public */
446
347
  export declare type BadgeElementType = 'div' | 'span' | ComponentType
447
348
 
448
349
  /** @public */
449
- export declare type BadgeOwnProps = PaddingStyleProps &
450
- RadiusStyleProps & {
451
- fontSize?: ResponsiveProp<FontTextSize>
452
- tone?: BadgeTone
453
- }
350
+ export declare type BadgeOwnProps = BadgeStyleProps &
351
+ FlexStyleProps &
352
+ PaddingStyleProps &
353
+ RadiusStyleProps
454
354
 
455
355
  /** @public */
456
356
  export declare type BadgeProps<E extends BadgeElementType = BadgeElementType> = Props<
@@ -458,20 +358,11 @@ export declare type BadgeProps<E extends BadgeElementType = BadgeElementType> =
458
358
  E
459
359
  >
460
360
 
461
- /** @public */
462
- declare type BadgeTone = ThemeColorStateToneKey
463
-
464
361
  /** @public */
465
362
  export declare interface BaseAutocompleteOption {
466
363
  value: string
467
364
  }
468
365
 
469
- /**
470
- * @public
471
- * @deprecated Use `BaseTheme` from `@sanity/ui/theme` instead.
472
- */
473
- export declare type BaseTheme = BaseTheme_2
474
-
475
366
  /** @public */
476
367
  export declare interface BoundaryElementContextValue {
477
368
  version: 0.0
@@ -479,7 +370,9 @@ export declare interface BoundaryElementContextValue {
479
370
  }
480
371
 
481
372
  /** @public */
482
- export declare function BoundaryElementProvider(props: BoundaryElementProviderProps): ReactElement
373
+ export declare function BoundaryElementProvider(
374
+ props: BoundaryElementProviderProps,
375
+ ): React.JSX.Element
483
376
 
484
377
  /** @public */
485
378
  export declare interface BoundaryElementProviderProps {
@@ -495,9 +388,7 @@ export declare interface BoundaryElementProviderProps {
495
388
  */
496
389
  export declare function Box<E extends BoxElementType = typeof DEFAULT_BOX_ELEMENT>(
497
390
  props: BoxProps<E>,
498
- ): JSX.Element
499
-
500
- export {BoxDisplay}
391
+ ): React.JSX.Element
501
392
 
502
393
  /** @public */
503
394
  export declare type BoxElementType =
@@ -531,31 +422,16 @@ export declare type BoxElementType =
531
422
  | 'ul'
532
423
  | ComponentType
533
424
 
534
- export {BoxHeight}
535
-
536
- export {BoxOverflow}
537
-
538
425
  /** @public */
539
- export declare type BoxOwnProps = BoxStyleProps &
540
- GapStyleProps &
541
- InsetStyleProps &
542
- PositionStyleProps
426
+ export declare type BoxOwnProps = BoxStyleProps
543
427
 
544
428
  /** @public */
545
429
  export declare type BoxProps<E extends BoxElementType = BoxElementType> = Props<BoxOwnProps, E>
546
430
 
547
- /**
548
- * @public
549
- * @deprecated Use `ThemeBoxShadow` from `@sanity/ui/theme` instead.
550
- */
551
- export declare type BoxShadow = ThemeBoxShadow
552
-
553
- export {BoxSizing}
554
-
555
431
  /** @beta */
556
432
  export declare function Breadcrumbs<
557
433
  E extends BreadcrumbsElementType = typeof DEFAULT_BREADCRUMBS_ELEMENT,
558
- >(props: BreadcrumbsProps<E>): JSX.Element
434
+ >(props: BreadcrumbsProps<E>): React.JSX.Element
559
435
 
560
436
  /** @beta */
561
437
  export declare type BreadcrumbsElementType = 'div' | 'nav' | ComponentType
@@ -565,8 +441,6 @@ export declare type BreadcrumbsOwnProps = GapStyleProps & {
565
441
  expandButton?: Omit<ButtonProps<'button'>, 'as' | 'onClick' | 'selected'>
566
442
  maxLength?: number
567
443
  separator?: ReactNode
568
- /** @deprecated - Use `gap`, `gapX`, `gapY` instead */
569
- space?: number | number[]
570
444
  }
571
445
 
572
446
  /** @beta */
@@ -576,17 +450,11 @@ export declare type BreadcrumbsProps<E extends BreadcrumbsElementType = Breadcru
576
450
  /** @public */
577
451
  export declare function Button<E extends ButtonElementType = typeof DEFAULT_BUTTON_ELEMENT>(
578
452
  props: ButtonProps<E>,
579
- ): JSX.Element
453
+ ): React.JSX.Element
580
454
 
581
455
  /** @public */
582
456
  export declare type ButtonElementType = 'a' | 'button' | 'label' | ComponentType
583
457
 
584
- /**
585
- * @public
586
- * @deprecated Use `ThemeColorButtonModeKey` instead
587
- */
588
- export declare type ButtonMode = ThemeColorButtonModeKey_2
589
-
590
458
  /** @public */
591
459
  export declare type ButtonOwnProps = ButtonStyleProps &
592
460
  DisplayStyleProps &
@@ -602,8 +470,6 @@ export declare type ButtonOwnProps = ButtonStyleProps &
602
470
  /** @beta Do not use in production, as this might change.*/
603
471
  'loading'?: boolean
604
472
  'selected'?: boolean
605
- /** @deprecated Use `gap` instead. */
606
- 'space'?: ResponsiveProp<Space>
607
473
  'textAlign'?: ButtonTextAlign
608
474
  'muted'?: boolean
609
475
  'target'?: string
@@ -622,18 +488,6 @@ export declare type ButtonProps<E extends ButtonElementType = ButtonElementType>
622
488
  /** @public */
623
489
  export declare type ButtonTextAlign = 'left' | 'right' | 'center'
624
490
 
625
- /**
626
- * @public
627
- * @deprecated Use `ThemeColorStateToneKey` instead
628
- */
629
- export declare type ButtonTone = ThemeColorStateToneKey
630
-
631
- /**
632
- * @public
633
- * @deprecated Use `Width` from `@sanity/ui/css` instead.
634
- */
635
- export declare type ButtonWidth = 'fill'
636
-
637
491
  /**
638
492
  * The `Card` component acts much like a `Box`, but with a background and foreground color.
639
493
  * Components within a `Card` inherit its colors.
@@ -642,19 +496,19 @@ export declare type ButtonWidth = 'fill'
642
496
  */
643
497
  export declare function Card<E extends CardElementType = typeof DEFAULT_CARD_ELEMENT>(
644
498
  props: CardProps<E>,
645
- ): JSX.Element
499
+ ): React.JSX.Element
646
500
 
647
501
  /** @internal */
648
502
  export declare type _CardCompatProviderComponent = ComponentType_2<{
649
503
  children?: ReactNode
650
- tone: ThemeColorCardToneKey
651
- scheme: ThemeColorSchemeKey_2
504
+ tone: CardTone | 'inherit'
505
+ scheme: ColorScheme
652
506
  }>
653
507
 
654
508
  /** @public */
655
509
  export declare interface CardContextValue {
656
- tone: ThemeColorCardToneKey
657
- scheme: ThemeColorSchemeKey_2
510
+ tone: CardTone
511
+ scheme: ColorScheme
658
512
  /** @internal */
659
513
  unstable_CompatProvider?: _CardCompatProviderComponent
660
514
  }
@@ -663,7 +517,7 @@ export declare interface CardContextValue {
663
517
  export declare type CardElementType = BoxElementType
664
518
 
665
519
  /** @public */
666
- export declare interface CardOwnProps extends BoxOwnProps, CardStyleProps_2 {
520
+ export declare interface CardOwnProps extends BoxOwnProps, CardStyleProps {
667
521
  /**
668
522
  * Do not use in production.
669
523
  * @beta
@@ -686,25 +540,11 @@ export declare type CardProps<E extends CardElementType = CardElementType> = Pro
686
540
  /** @public */
687
541
  export declare function CardProvider(props: {
688
542
  children?: ReactNode
689
- tone: ThemeColorCardToneKey
690
- scheme: ThemeColorSchemeKey_2
543
+ tone: CardTone
544
+ scheme: ColorScheme
691
545
  /** @internal */
692
546
  unstable_CompatProvider?: _CardCompatProviderComponent
693
- }): JSX.Element
694
-
695
- /**
696
- * @internal
697
- * @deprecated Use `CardStyleProps` from `@sanity/ui/css` instead.
698
- */
699
- export declare interface CardStyleProps {
700
- $checkered: boolean
701
- $focusRing: boolean
702
- $muted: boolean
703
- $tone: ThemeColorCardToneKey
704
- }
705
-
706
- /** @public */
707
- export declare type CardTone = ThemeColorCardToneKey | 'inherit'
547
+ }): React.JSX.Element
708
548
 
709
549
  /**
710
550
  * Checkboxes allow the user to select one or more items from a set.
@@ -713,7 +553,7 @@ export declare type CardTone = ThemeColorCardToneKey | 'inherit'
713
553
  */
714
554
  export declare function Checkbox<E extends CheckboxElementType = typeof DEFAULT_CHECKBOX_ELEMENT>(
715
555
  props: CheckboxProps<E>,
716
- ): JSX.Element
556
+ ): React.JSX.Element
717
557
 
718
558
  /** @public */
719
559
  export declare type CheckboxElementType = 'input' | ComponentType
@@ -730,22 +570,16 @@ export declare type CheckboxProps<E extends CheckboxElementType = CheckboxElemen
730
570
  E
731
571
  >
732
572
 
733
- /** @public */
734
- export declare type ClickOutsideElements = (HTMLElement | null | (HTMLElement | null)[])[]
735
-
736
573
  /** @public */
737
574
  export declare type ClickOutsideEventElements = (HTMLElement | null | (HTMLElement | null)[])[]
738
575
 
739
576
  /** @public */
740
577
  export declare type ClickOutsideEventListener = (event: MouseEvent) => void
741
578
 
742
- /** @public */
743
- export declare type ClickOutsideListener = (event: MouseEvent) => void
744
-
745
579
  /** @public */
746
580
  export declare function Code<E extends CodeElementType = typeof DEFAULT_CODE_ELEMENT>(
747
581
  props: CodeProps<E>,
748
- ): JSX.Element
582
+ ): React.JSX.Element
749
583
 
750
584
  /** @public */
751
585
  export declare type CodeElementType = 'div' | 'pre' | ComponentType
@@ -766,7 +600,7 @@ export declare type CodeProps<E extends CodeElementType = CodeElementType> = Pro
766
600
  */
767
601
  export declare function CodeSkeleton<
768
602
  E extends CodeSkeletonElementType = typeof DEFAULT_CODE_SKELETON_ELEMENT,
769
- >(props: CodeSkeletonProps<E>): JSX.Element
603
+ >(props: CodeSkeletonProps<E>): React.JSX.Element
770
604
 
771
605
  /** @beta */
772
606
  export declare type CodeSkeletonElementType = SkeletonElementType
@@ -796,7 +630,7 @@ export declare type ComponentType<P = any> =
796
630
  */
797
631
  export declare function Container<
798
632
  E extends ContainerElementType = typeof DEFAULT_CONTAINER_ELEMENT,
799
- >(props: ContainerProps<E>): JSX.Element
633
+ >(props: ContainerProps<E>): React.JSX.Element
800
634
 
801
635
  /** @public */
802
636
  export declare type ContainerElementType = BoxElementType
@@ -815,12 +649,6 @@ export declare type ContainerProps<E extends ContainerElementType = ContainerEle
815
649
  */
816
650
  export declare function containsOrEqualsElement(element: HTMLElement, node: Node): boolean
817
651
 
818
- /**
819
- * @public
820
- * @deprecated Use `createColorTheme` from `@sanity/ui/theme` instead.
821
- */
822
- export declare const createColorTheme: typeof createColorTheme_2
823
-
824
652
  /** @internal */
825
653
  export declare const DEFAULT_ARROW_ELEMENT = 'div'
826
654
 
@@ -992,7 +820,7 @@ export declare type Delay =
992
820
  */
993
821
  export declare function Dialog<E extends DialogElementType = typeof DEFAULT_DIALOG_ELEMENT>(
994
822
  props: DialogProps<E>,
995
- ): JSX.Element
823
+ ): React.JSX.Element
996
824
 
997
825
  /**
998
826
  * @internal
@@ -1042,8 +870,8 @@ export declare type DialogOwnProps = ContainerStyleProps &
1042
870
  open?: boolean
1043
871
  portal?: string
1044
872
  position?: ResponsiveProp<DialogPosition>
1045
- scheme?: ThemeColorSchemeKey_2
1046
- tone?: CardTone
873
+ scheme?: ColorScheme
874
+ tone?: CardTone | 'inherit'
1047
875
  zOffset?: number | number[]
1048
876
  }
1049
877
 
@@ -1060,7 +888,7 @@ export declare type DialogProps<E extends DialogElementType = DialogElementType>
1060
888
  * This API might change. DO NOT USE IN PRODUCTION.
1061
889
  * @beta
1062
890
  */
1063
- export declare function DialogProvider(props: DialogProviderProps): ReactElement
891
+ export declare function DialogProvider(props: DialogProviderProps): React.JSX.Element
1064
892
 
1065
893
  /**
1066
894
  * This API might change. DO NOT USE IN PRODUCTION.
@@ -1078,7 +906,7 @@ export declare interface DialogProviderProps {
1078
906
  */
1079
907
  export declare function ElementQuery<
1080
908
  E extends ElementQueryElementType = typeof DEFAULT_ELEMENT_QUERY_ELEMENT,
1081
- >(props: ElementQueryProps<E>): JSX.Element
909
+ >(props: ElementQueryProps<E>): React.JSX.Element
1082
910
 
1083
911
  /** @beta */
1084
912
  export declare type ElementQueryElementType = 'div' | ComponentType
@@ -1181,35 +1009,25 @@ export declare interface ErrorBoundaryState {
1181
1009
  */
1182
1010
  export declare function Flex<E extends FlexElementType = typeof DEFAULT_FLEX_ELEMENT>(
1183
1011
  props: FlexProps<E>,
1184
- ): JSX.Element
1185
-
1186
- export {FlexAlign}
1187
-
1188
- export {FlexDirection}
1012
+ ): React.JSX.Element
1189
1013
 
1190
1014
  /** @public */
1191
1015
  export declare type FlexElementType = BoxElementType
1192
1016
 
1193
- export {FlexJustify}
1194
-
1195
1017
  /** @public */
1196
1018
  export declare type FlexOwnProps = Omit<
1197
1019
  BoxOwnProps,
1198
1020
  'align' | 'display' | 'flexDirection' | 'flexWrap'
1199
1021
  > & {
1200
- align?: ResponsiveProp<FlexAlign>
1022
+ align?: ResponsiveProp<AlignItems>
1201
1023
  direction?: ResponsiveProp<FlexDirection>
1202
- justify?: ResponsiveProp<FlexJustify>
1024
+ justify?: ResponsiveProp<JustifyContent>
1203
1025
  wrap?: ResponsiveProp<FlexWrap>
1204
1026
  }
1205
1027
 
1206
1028
  /** @public */
1207
1029
  export declare type FlexProps<E extends FlexElementType = FlexElementType> = Props<FlexOwnProps, E>
1208
1030
 
1209
- export {FlexValue}
1210
-
1211
- export {FlexWrap}
1212
-
1213
1031
  /**
1214
1032
  * @internal
1215
1033
  */
@@ -1240,29 +1058,11 @@ export declare function _getResponsiveProp<T>(
1240
1058
  */
1241
1059
  export declare function Grid<E extends GridElementType = typeof DEFAULT_GRID_ELEMENT>(
1242
1060
  props: GridProps<E>,
1243
- ): JSX.Element
1244
-
1245
- export {GridAutoCols}
1246
-
1247
- export {GridAutoFlow}
1248
-
1249
- export {GridAutoRows}
1061
+ ): React.JSX.Element
1250
1062
 
1251
1063
  /** @public */
1252
1064
  export declare type GridElementType = BoxElementType
1253
1065
 
1254
- export {GridItemColumn}
1255
-
1256
- export {GridItemColumnEnd}
1257
-
1258
- export {GridItemColumnStart}
1259
-
1260
- export {GridItemRow}
1261
-
1262
- export {GridItemRowEnd}
1263
-
1264
- export {GridItemRowStart}
1265
-
1266
1066
  /** @public */
1267
1067
  export declare type GridOwnProps = Omit<BoxOwnProps, 'display'>
1268
1068
 
@@ -1281,7 +1081,7 @@ export declare function _hasFocus(element: HTMLElement): boolean
1281
1081
  */
1282
1082
  export declare function Heading<E extends HeadingElementType = typeof DEFAULT_HEADING_ELEMENT>(
1283
1083
  props: HeadingProps<E>,
1284
- ): JSX.Element
1084
+ ): React.JSX.Element
1285
1085
 
1286
1086
  /** @public */
1287
1087
  export declare type HeadingElementType =
@@ -1311,7 +1111,7 @@ export declare type HeadingProps<E extends HeadingElementType = HeadingElementTy
1311
1111
  */
1312
1112
  export declare function HeadingSkeleton<
1313
1113
  E extends HeadingSkeletonElementType = typeof DEFAULT_HEADING_SKELETON_ELEMENT,
1314
- >(props: HeadingSkeletonProps<E>): JSX.Element
1114
+ >(props: HeadingSkeletonProps<E>): React.JSX.Element
1315
1115
 
1316
1116
  /** @beta */
1317
1117
  export declare type HeadingSkeletonElementType = SkeletonElementType
@@ -1329,12 +1129,6 @@ export declare type HeadingSkeletonProps<
1329
1129
  E extends HeadingSkeletonElementType = HeadingSkeletonElementType,
1330
1130
  > = Props<HeadingSkeletonOwnProps, E>
1331
1131
 
1332
- /**
1333
- * @public
1334
- * @deprecated Use `hexToRgb` from `@sanity/ui/theme` instead.
1335
- */
1336
- export declare const hexToRgb: typeof hexToRgb_2
1337
-
1338
1132
  /**
1339
1133
  * Represent hotkeys (a keyboard combination) with semantic `<kbd>` elements.
1340
1134
  *
@@ -1342,7 +1136,7 @@ export declare const hexToRgb: typeof hexToRgb_2
1342
1136
  */
1343
1137
  export declare function Hotkeys<E extends HotkeysElementType = typeof DEFAULT_HOTKEYS_ELEMENT>(
1344
1138
  props: HotkeysProps<E>,
1345
- ): JSX.Element | undefined
1139
+ ): React.JSX.Element | undefined
1346
1140
 
1347
1141
  /** @public */
1348
1142
  export declare type HotkeysElementType = 'kbd' | ComponentType
@@ -1351,8 +1145,6 @@ export declare type HotkeysElementType = 'kbd' | ComponentType
1351
1145
  export declare interface HotkeysOwnProps extends GapStyleProps, RadiusStyleProps {
1352
1146
  fontSize?: ResponsiveProp<FontTextSize>
1353
1147
  padding?: ResponsiveProp<Space>
1354
- /** @deprecated Use `gap` instead. */
1355
- space?: ResponsiveProp<Space>
1356
1148
  keys?: string[]
1357
1149
  }
1358
1150
 
@@ -1362,18 +1154,6 @@ export declare type HotkeysProps<E extends HotkeysElementType = HotkeysElementTy
1362
1154
  E
1363
1155
  >
1364
1156
 
1365
- /**
1366
- * @public
1367
- * @deprecated Use `HSL` from `@sanity/ui/theme` instead.
1368
- */
1369
- export declare type HSL = HSL_2
1370
-
1371
- /**
1372
- * @public
1373
- * @deprecated Use `hslToRgb` from `@sanity/ui/theme` instead.
1374
- */
1375
- export declare const hslToRgb: typeof hslToRgb_2
1376
-
1377
1157
  /**
1378
1158
  * The `Inline` component is a layout utility for aligning and spacing items horizontally.
1379
1159
  *
@@ -1381,7 +1161,7 @@ export declare const hslToRgb: typeof hslToRgb_2
1381
1161
  */
1382
1162
  export declare function Inline<E extends InlineElementType = typeof DEFAULT_INLINE_ELEMENT>(
1383
1163
  props: InlineProps<E>,
1384
- ): JSX.Element
1164
+ ): React.JSX.Element
1385
1165
 
1386
1166
  /** @public */
1387
1167
  export declare type InlineElementType = BoxElementType
@@ -1404,10 +1184,7 @@ export declare type InlineOwnProps = Omit<
1404
1184
  | 'gridRow'
1405
1185
  | 'gridTemplateColumns'
1406
1186
  | 'gridTemplateRows'
1407
- > & {
1408
- /** @deprecated Use `gap` instead. */
1409
- space?: ResponsiveProp<Space>
1410
- }
1187
+ >
1411
1188
 
1412
1189
  /** @public */
1413
1190
  export declare type InlineProps<E extends InlineElementType = InlineElementType> = Props<
@@ -1467,7 +1244,7 @@ export declare function _isScrollable(el: Node): boolean
1467
1244
  */
1468
1245
  export declare function KBD<E extends KBDElementType = typeof DEFAULT_KBD_ELEMENT>(
1469
1246
  props: KBDProps<E>,
1470
- ): JSX.Element
1247
+ ): React.JSX.Element
1471
1248
 
1472
1249
  /** @public */
1473
1250
  export declare type KBDElementType = 'kbd' | ComponentType
@@ -1488,7 +1265,7 @@ export declare type KBDProps<E extends KBDElementType = KBDElementType> = Props<
1488
1265
  */
1489
1266
  export declare function Label<E extends LabelElementType = typeof DEFAULT_LABEL_ELEMENT>(
1490
1267
  props: LabelProps<E>,
1491
- ): JSX.Element
1268
+ ): React.JSX.Element
1492
1269
 
1493
1270
  /** @public */
1494
1271
  export declare type LabelElementType =
@@ -1520,7 +1297,7 @@ export declare type LabelProps<E extends LabelElementType = LabelElementType> =
1520
1297
  */
1521
1298
  export declare function LabelSkeleton<
1522
1299
  E extends LabelSkeletonElementType = typeof DEFAULT_LABEL_SKELETON_ELEMENT,
1523
- >(props: LabelSkeletonProps<E>): JSX.Element
1300
+ >(props: LabelSkeletonProps<E>): React.JSX.Element
1524
1301
 
1525
1302
  /** @beta */
1526
1303
  export declare type LabelSkeletonElementType = SkeletonElementType
@@ -1541,7 +1318,7 @@ export declare type LabelSkeletonProps<
1541
1318
  /** @public */
1542
1319
  export declare function Layer<E extends LayerElementType = typeof DEFAULT_LAYER_ELEMENT>(
1543
1320
  props: LayerProps<E>,
1544
- ): JSX.Element
1321
+ ): React.JSX.Element
1545
1322
 
1546
1323
  /** @public */
1547
1324
  export declare interface LayerContextValue {
@@ -1570,7 +1347,7 @@ export declare type LayerProps<E extends LayerElementType = LayerElementType> =
1570
1347
  >
1571
1348
 
1572
1349
  /** @public */
1573
- export declare function LayerProvider(props: LayerProviderProps): ReactElement
1350
+ export declare function LayerProvider(props: LayerProviderProps): React.JSX.Element
1574
1351
 
1575
1352
  /** @public */
1576
1353
  export declare interface LayerProviderProps {
@@ -1593,14 +1370,14 @@ export declare interface _MediaStore {
1593
1370
  */
1594
1371
  export declare function Menu<E extends MenuElementType = typeof DEFAULT_MENU_ELEMENT>(
1595
1372
  props: MenuProps<E>,
1596
- ): JSX.Element
1373
+ ): React.JSX.Element
1597
1374
 
1598
1375
  /**
1599
1376
  * The `MenuButton` component follows the WAI-ARIA specification for menu buttons.
1600
1377
  *
1601
1378
  * @public
1602
1379
  */
1603
- export declare function MenuButton(props: MenuButtonProps): JSX.Element
1380
+ export declare function MenuButton(props: MenuButtonProps): React.JSX.Element
1604
1381
 
1605
1382
  /** @public */
1606
1383
  export declare type MenuButtonProps = {
@@ -1608,44 +1385,19 @@ export declare type MenuButtonProps = {
1608
1385
  * @beta Do not use in production.
1609
1386
  */
1610
1387
  __unstable_disableRestoreFocusOnClose?: boolean
1611
- /**
1612
- * @deprecated Use `popover={{boundaryElement: element}}` instead.
1613
- */
1614
- boundaryElement?: HTMLElement
1615
1388
  button: ReactElement<ButtonProps>
1616
1389
  id: string
1617
1390
  menu?: ReactElement
1618
1391
  onClose?: () => void
1619
1392
  onOpen?: () => void
1620
- /**
1621
- * @deprecated Use `popover={{placement: 'top'}}` instead.
1622
- */
1623
- placement?: Placement
1624
1393
  popover?: Omit<PopoverProps, 'content' | 'open'>
1625
- /**
1626
- * @deprecated Use `popover={{scheme: 'dark'}}` instead.
1627
- */
1628
- popoverScheme?: ThemeColorSchemeKey_2
1629
- /**
1630
- * @deprecated Use `popover={{radius: 2}}` instead.
1631
- */
1632
- popoverRadius?: Radius | Radius[]
1633
- /**
1634
- * @beta Do not use in production.
1635
- * @deprecated Use `popover={{portal: true}}` instead.
1636
- */
1637
- portal?: boolean
1638
- /**
1639
- * @deprecated Use `popover={{preventOverflow: true}}` instead.
1640
- */
1641
- preventOverflow?: boolean
1642
1394
  ref?: ForwardedRef<HTMLButtonElement | null>
1643
1395
  }
1644
1396
 
1645
1397
  /** @public */
1646
1398
  export declare function MenuDivider<
1647
1399
  E extends MenuDividerElementType = typeof DEFAULT_MENU_DIVIDER_ELEMENT,
1648
- >(props: MenuDividerProps<E>): JSX.Element
1400
+ >(props: MenuDividerProps<E>): React.JSX.Element
1649
1401
 
1650
1402
  /** @public */
1651
1403
  export declare type MenuDividerElementType = 'div' | 'hr' | 'span' | ComponentType
@@ -1663,7 +1415,7 @@ export declare type MenuElementType = 'div' | 'span' | ComponentType
1663
1415
  /** @public */
1664
1416
  export declare function MenuGroup<
1665
1417
  E extends MenuGroupElementType = typeof DEFAULT_MENU_GROUP_ELEMENT,
1666
- >(props: MenuGroupProps<E>): JSX.Element
1418
+ >(props: MenuGroupProps<E>): React.JSX.Element
1667
1419
 
1668
1420
  /** @public */
1669
1421
  export declare type MenuGroupElementType = 'button' | ComponentType
@@ -1687,10 +1439,8 @@ export declare type MenuGroupOwnProps = RadiusStyleProps & {
1687
1439
  >
1688
1440
  padding?: ResponsiveProp<Space>
1689
1441
  popover?: Omit<PopoverProps, 'content' | 'open'>
1690
- /** @deprecated Use `gap` instead. */
1691
- space?: ResponsiveProp<Space>
1692
1442
  text?: ReactNode
1693
- tone?: ThemeColorStateToneKey
1443
+ tone?: ElementTone
1694
1444
  }
1695
1445
 
1696
1446
  /** @public */
@@ -1702,7 +1452,7 @@ export declare type MenuGroupProps<E extends MenuGroupElementType = MenuGroupEle
1702
1452
  /** @public */
1703
1453
  export declare function MenuItem<E extends MenuItemElementType = typeof DEFAULT_MENU_ITEM_ELEMENT>(
1704
1454
  props: MenuItemProps<E>,
1705
- ): JSX.Element
1455
+ ): React.JSX.Element
1706
1456
 
1707
1457
  /** @public */
1708
1458
  export declare type MenuItemElementType = 'button' | 'a' | ComponentType
@@ -1718,10 +1468,8 @@ export declare type MenuItemOwnProps = GapStyleProps &
1718
1468
  iconRight?: ElementType_2 | ReactNode
1719
1469
  pressed?: boolean
1720
1470
  selected?: boolean
1721
- /** @deprecated Use `gap` instead. */
1722
- space?: ResponsiveProp<Space>
1723
1471
  text?: ReactNode
1724
- tone?: ThemeColorStateToneKey
1472
+ tone?: ElementTone
1725
1473
  }
1726
1474
 
1727
1475
  /** @public */
@@ -1732,14 +1480,6 @@ export declare type MenuItemProps<E extends MenuItemElementType = MenuItemElemen
1732
1480
 
1733
1481
  /** @public */
1734
1482
  export declare type MenuOwnProps = PaddingStyleProps & {
1735
- /**
1736
- * @deprecated Use `shouldFocus="first"` instead.
1737
- */
1738
- 'focusFirst'?: boolean
1739
- /**
1740
- * @deprecated Use `shouldFocus="last"` instead.
1741
- */
1742
- 'focusLast'?: boolean
1743
1483
  'gap'?: ResponsiveProp<Space>
1744
1484
  'onClickOutside'?: (event: MouseEvent) => void
1745
1485
  'onEscape'?: () => void
@@ -1748,28 +1488,12 @@ export declare type MenuOwnProps = PaddingStyleProps & {
1748
1488
  'originElement'?: HTMLElement | null
1749
1489
  'registerElement'?: (el: HTMLElement) => () => void
1750
1490
  'shouldFocus'?: 'first' | 'last' | null
1751
- /** @deprecated Use `gap` property instead. */
1752
- 'space'?: ResponsiveProp<Space>
1753
1491
  'aria-labelledby'?: string
1754
1492
  }
1755
1493
 
1756
1494
  /** @public */
1757
1495
  export declare type MenuProps<E extends MenuElementType = MenuElementType> = Props<MenuOwnProps, E>
1758
1496
 
1759
- /**
1760
- * @public
1761
- * @deprecated Use `multiply` from `@sanity/ui/theme` instead.
1762
- */
1763
- export declare const multiply: typeof multiply_2
1764
-
1765
- /**
1766
- * @public
1767
- * @deprecated Use `parseColor` from `@sanity/ui/theme` instead.
1768
- */
1769
- export declare const parseColor: typeof parseColor_2
1770
-
1771
- export {PartialThemeColorBuilderOpts}
1772
-
1773
1497
  /**
1774
1498
  * Placement of floating UI elements.
1775
1499
  *
@@ -1796,7 +1520,7 @@ export declare type Placement =
1796
1520
  */
1797
1521
  export declare function Popover<E extends PopoverElementType = typeof DEFAULT_POPOVER_ELEMENT>(
1798
1522
  props: PopoverProps<E>,
1799
- ): JSX.Element
1523
+ ): React.JSX.Element
1800
1524
 
1801
1525
  /** @public */
1802
1526
  export declare type PopoverElementType = 'div' | ComponentType
@@ -1818,8 +1542,6 @@ export declare type PopoverOwnProps = Omit<LayerOwnProps, 'maxWidth'> & {
1818
1542
  */
1819
1543
  animate?: boolean
1820
1544
  arrow?: boolean
1821
- /** @deprecated Use `floatingBoundary` and/or `referenceBoundary` instead */
1822
- boundaryElement?: HTMLElement | null
1823
1545
  children?: ReactElement<{
1824
1546
  ref: ForwardedRef<HTMLElement>
1825
1547
  }>
@@ -1914,14 +1636,10 @@ export declare interface PortalProps {
1914
1636
  }
1915
1637
 
1916
1638
  /** @public */
1917
- export declare function PortalProvider(props: PortalProviderProps): ReactElement
1639
+ export declare function PortalProvider(props: PortalProviderProps): React.JSX.Element
1918
1640
 
1919
1641
  /** @public */
1920
1642
  export declare interface PortalProviderProps {
1921
- /**
1922
- * @deprecated Use `<BoundaryElementProvider element={...} />` instead
1923
- */
1924
- boundaryElement?: HTMLElement | null
1925
1643
  children: ReactNode
1926
1644
  element?: HTMLElement | null
1927
1645
  /**
@@ -1938,8 +1656,6 @@ export declare type Props<P extends EmptyProps, E extends ElementType<P>> = Assi
1938
1656
  }
1939
1657
  >
1940
1658
 
1941
- export {px}
1942
-
1943
1659
  /**
1944
1660
  * The `Radio` component allows the user to select one option from a set.
1945
1661
  *
@@ -1947,7 +1663,7 @@ export {px}
1947
1663
  */
1948
1664
  export declare function Radio<E extends RadioElementType = typeof DEFAULT_RADIO_ELEMENT>(
1949
1665
  props: RadioProps<E>,
1950
- ): JSX.Element
1666
+ ): React.JSX.Element
1951
1667
 
1952
1668
  /** @public */
1953
1669
  export declare type RadioElementType = 'input' | ComponentType
@@ -1963,8 +1679,6 @@ export declare type RadioProps<E extends RadioElementType = RadioElementType> =
1963
1679
  E
1964
1680
  >
1965
1681
 
1966
- export {Radius}
1967
-
1968
1682
  /**
1969
1683
  * @internal
1970
1684
  */
@@ -1975,154 +1689,11 @@ export declare function _raf(fn: () => void): () => void
1975
1689
  */
1976
1690
  export declare function _raf2(fn: () => void): () => void
1977
1691
 
1978
- export {rem}
1979
-
1980
1692
  /**
1981
1693
  * @internal
1982
1694
  */
1983
1695
  export declare const _ResizeObserver: typeof ResizeObserver
1984
1696
 
1985
- /**
1986
- * @internal
1987
- * @deprecated do not use
1988
- */
1989
- export declare function _responsive<T>(
1990
- media: number[],
1991
- values: T[],
1992
- callback: (value: T, index: number, array: T[]) => CSSObject,
1993
- ): CSSObject[]
1994
-
1995
- /**
1996
- * @internal
1997
- * @deprecated This will be removed in next major version.
1998
- */
1999
- export declare interface ResponsiveAvatarSizeStyleProps {
2000
- $size: AvatarSize[]
2001
- }
2002
-
2003
- /**
2004
- * @public
2005
- * @deprecated No longer used.
2006
- */
2007
- export declare interface ResponsiveBorderProps {
2008
- border?: boolean | boolean[]
2009
- borderTop?: boolean | boolean[]
2010
- borderRight?: boolean | boolean[]
2011
- borderBottom?: boolean | boolean[]
2012
- borderLeft?: boolean | boolean[]
2013
- }
2014
-
2015
- /**
2016
- * @public
2017
- * @deprecated No longer used.
2018
- */
2019
- export declare interface ResponsiveBoxProps {
2020
- display?: BoxDisplay | BoxDisplay[]
2021
- height?: BoxHeight | BoxHeight[]
2022
- overflow?: BoxOverflow | BoxOverflow[]
2023
- sizing?: BoxSizing | BoxSizing[]
2024
- }
2025
-
2026
- /**
2027
- * @public
2028
- * @deprecated No longer used.
2029
- */
2030
- export declare interface ResponsiveFlexItemProps {
2031
- /** Sets the flex CSS attribute. The property is responsive. */
2032
- flex?: FlexValue | FlexValue[]
2033
- }
2034
-
2035
- /**
2036
- * @public
2037
- * @deprecated No longer used.
2038
- */
2039
- export declare interface ResponsiveFlexProps {
2040
- align?: FlexAlign | FlexAlign[]
2041
- direction?: FlexDirection | FlexDirection[]
2042
- justify?: FlexJustify | FlexJustify[]
2043
- wrap?: FlexWrap | FlexWrap[]
2044
- }
2045
-
2046
- /**
2047
- * @public
2048
- * @deprecated No longer used.
2049
- */
2050
- export declare interface ResponsiveGridItemProps {
2051
- column?: GridItemColumn | GridItemColumn[]
2052
- columnStart?: GridItemColumnStart | GridItemColumnStart[]
2053
- columnEnd?: GridItemColumnEnd | GridItemColumnEnd[]
2054
- row?: GridItemRow | GridItemRow[]
2055
- rowStart?: GridItemRowStart | GridItemRowStart[]
2056
- rowEnd?: GridItemRowEnd | GridItemRowEnd[]
2057
- }
2058
-
2059
- /**
2060
- * @public
2061
- * @deprecated No longer used.
2062
- */
2063
- export declare interface ResponsiveGridProps {
2064
- autoRows?: GridAutoRows | GridAutoRows[]
2065
- autoCols?: GridAutoCols | GridAutoCols[]
2066
- autoFlow?: GridAutoFlow | GridAutoFlow[]
2067
- columns?: number | number[]
2068
- rows?: number | number[]
2069
- }
2070
-
2071
- /**
2072
- * @public
2073
- * @deprecated No longer used.
2074
- */
2075
- export declare interface ResponsiveMarginProps {
2076
- /** Applies margins to all sides. The property is responsive. */
2077
- margin?: number | number[]
2078
- /** Applies margins to the left and right sides. The property is responsive. */
2079
- marginX?: number | number[]
2080
- /** Applies margins to the top and bottom sides. The property is responsive. */
2081
- marginY?: number | number[]
2082
- marginTop?: number | number[]
2083
- marginRight?: number | number[]
2084
- marginBottom?: number | number[]
2085
- marginLeft?: number | number[]
2086
- }
2087
-
2088
- /**
2089
- * @public
2090
- * @deprecated No longer used.
2091
- */
2092
- export declare interface ResponsivePaddingProps {
2093
- padding?: number | number[]
2094
- paddingX?: number | number[]
2095
- paddingY?: number | number[]
2096
- paddingTop?: number | number[]
2097
- paddingRight?: number | number[]
2098
- paddingBottom?: number | number[]
2099
- paddingLeft?: number | number[]
2100
- }
2101
-
2102
- /**
2103
- * @public
2104
- * @deprecated No longer used.
2105
- */
2106
- export declare interface ResponsiveRadiusProps {
2107
- radius?: Radius | Radius[]
2108
- }
2109
-
2110
- /**
2111
- * @public
2112
- * @deprecated No longer used.
2113
- */
2114
- export declare interface ResponsiveShadowProps {
2115
- shadow?: number | number[]
2116
- }
2117
-
2118
- /**
2119
- * @public
2120
- * @deprecated No longer used.
2121
- */
2122
- export declare interface ResponsiveWidthProps {
2123
- width?: number | 'auto' | (number | 'auto')[]
2124
- }
2125
-
2126
1697
  /**
2127
1698
  * @internal
2128
1699
  */
@@ -2130,30 +1701,6 @@ export declare interface ResponsiveWidthStyleProps {
2130
1701
  $width: (number | 'auto')[]
2131
1702
  }
2132
1703
 
2133
- /**
2134
- * @public
2135
- * @deprecated Use `RGB` from `@sanity/ui/theme` instead.
2136
- */
2137
- export declare type RGB = RGB_2
2138
-
2139
- /**
2140
- * @public
2141
- * @deprecated Use `rgba` from `@sanity/ui/theme` instead.
2142
- */
2143
- export declare const rgba: typeof rgba_2
2144
-
2145
- /**
2146
- * @public
2147
- * @deprecated Use `rgbToHex` from `@sanity/ui/theme` instead.
2148
- */
2149
- export declare const rgbToHex: typeof rgbToHex_2
2150
-
2151
- /**
2152
- * @public
2153
- * @deprecated Use `rgbToHsl` from `@sanity/ui/theme` instead.
2154
- */
2155
- export declare const rgbToHsl: typeof rgbToHsl_2
2156
-
2157
1704
  /**
2158
1705
  * The `Root` component.
2159
1706
  *
@@ -2161,7 +1708,7 @@ export declare const rgbToHsl: typeof rgbToHsl_2
2161
1708
  */
2162
1709
  export declare function Root<E extends RootElementType = typeof DEFAULT_ROOT_ELEMENT>(
2163
1710
  props: RootProps<E>,
2164
- ): JSX.Element
1711
+ ): React.JSX.Element
2165
1712
 
2166
1713
  /** @public */
2167
1714
  export declare type RootElementType = 'html' | 'body' | 'div'
@@ -2173,30 +1720,17 @@ export declare interface RootOwnProps extends BoxOwnProps, RootStyleProps {}
2173
1720
  export declare type RootProps<E extends RootElementType = RootElementType> = Props<RootOwnProps, E>
2174
1721
 
2175
1722
  /** @public */
2176
- export declare function RootProvider(props: RootProviderProps): JSX.Element
1723
+ export declare function RootProvider(props: RootProviderProps): React.JSX.Element
2177
1724
 
2178
1725
  /** @public */
2179
1726
  export declare interface RootProviderProps {
2180
1727
  boundaryElement?: HTMLElement | null
2181
1728
  children?: ReactNode
2182
1729
  portalElement?: HTMLElement | null
2183
- scheme?: ThemeColorSchemeKey_2
2184
- tone?: ThemeColorCardToneKey
1730
+ scheme?: ColorScheme
1731
+ tone?: CardTone
2185
1732
  }
2186
1733
 
2187
- /**
2188
- * @public
2189
- * @deprecated Use `RootTheme` from `@sanity/ui/theme` instead.
2190
- */
2191
- export declare type RootTheme = RootTheme_2
2192
-
2193
- /**
2194
- * @public
2195
- * @deprecated Use `screen` from `@sanity/ui/theme` instead.
2196
- */
2197
- declare const screen_2: typeof screen_3
2198
- export {screen_2 as screen}
2199
-
2200
1734
  /**
2201
1735
  * The `Select` component provides control of options.
2202
1736
  *
@@ -2204,12 +1738,12 @@ export {screen_2 as screen}
2204
1738
  */
2205
1739
  export declare function Select<E extends SelectElementType = typeof DEFAULT_SELECT_ELEMENT>(
2206
1740
  props: SelectProps<E>,
2207
- ): JSX.Element
1741
+ ): React.JSX.Element
2208
1742
 
2209
1743
  /** @internal */
2210
1744
  export declare function Selectable<
2211
1745
  E extends SelectableElementType = typeof DEFAULT_SELECTABLE_ELEMENT,
2212
- >(props: SelectableProps<E>): JSX.Element
1746
+ >(props: SelectableProps<E>): React.JSX.Element
2213
1747
 
2214
1748
  /** @internal */
2215
1749
  export declare type SelectableElementType = 'button' | 'a' | ComponentType
@@ -2220,7 +1754,7 @@ export declare type SelectableOwnProps = BoxOwnProps &
2220
1754
  disabled?: boolean
2221
1755
  href?: string
2222
1756
  selected?: boolean
2223
- tone?: ThemeColorStateToneKey
1757
+ tone?: ElementTone
2224
1758
  type?: 'button'
2225
1759
  }
2226
1760
 
@@ -2228,12 +1762,6 @@ export declare type SelectableOwnProps = BoxOwnProps &
2228
1762
  export declare type SelectableProps<E extends SelectableElementType = SelectableElementType> =
2229
1763
  Props<SelectableOwnProps, E>
2230
1764
 
2231
- /**
2232
- * @internal
2233
- * @deprecated Use `ThemeColorStateToneKey` instead
2234
- */
2235
- export declare type SelectableTone = ThemeColorStateToneKey
2236
-
2237
1765
  /** @public */
2238
1766
  export declare type SelectElementType = 'select' | ComponentType
2239
1767
 
@@ -2241,8 +1769,6 @@ export declare type SelectElementType = 'select' | ComponentType
2241
1769
  export declare type SelectOwnProps = SelectStyleProps & {
2242
1770
  customValidity?: string
2243
1771
  readOnly?: boolean
2244
- /** @deprecated Use `gap` instead. */
2245
- space?: ResponsiveProp<Space>
2246
1772
  }
2247
1773
 
2248
1774
  /** @public */
@@ -2257,7 +1783,7 @@ export declare type SelectProps<E extends SelectElementType = SelectElementType>
2257
1783
  */
2258
1784
  export declare function Skeleton<E extends SkeletonElementType = typeof DEFAULT_SKELETON_ELEMENT>(
2259
1785
  props: SkeletonProps<E>,
2260
- ): JSX.Element
1786
+ ): React.JSX.Element
2261
1787
 
2262
1788
  /** @beta */
2263
1789
  export declare type SkeletonElementType = 'div' | 'span' | ComponentType
@@ -2284,7 +1810,7 @@ export declare type SkeletonProps<E extends SkeletonElementType = SkeletonElemen
2284
1810
  */
2285
1811
  export declare function Spinner<E extends SpinnerElementType = typeof DEFAULT_SPINNER_ELEMENT>(
2286
1812
  props: SpinnerProps<E>,
2287
- ): JSX.Element
1813
+ ): React.JSX.Element
2288
1814
 
2289
1815
  /** @public */
2290
1816
  export declare type SpinnerElementType = 'div' | 'span' | ComponentType
@@ -2304,7 +1830,7 @@ export declare type SpinnerProps<E extends SpinnerElementType = SpinnerElementTy
2304
1830
  /** @public */
2305
1831
  export declare function SrOnly<E extends SrOnlyElementType = typeof DEFAULT_SR_ONLY_ELEMENT>(
2306
1832
  props: SrOnlyProps<E>,
2307
- ): JSX.Element
1833
+ ): React.JSX.Element
2308
1834
 
2309
1835
  /** @public */
2310
1836
  export declare type SrOnlyElementType = 'span' | ComponentType
@@ -2325,7 +1851,7 @@ export declare type SrOnlyProps<E extends SrOnlyElementType = SrOnlyElementType>
2325
1851
  */
2326
1852
  export declare function Stack<E extends StackElementType = typeof DEFAULT_STACK_ELEMENT>(
2327
1853
  props: StackProps<E>,
2328
- ): JSX.Element
1854
+ ): React.JSX.Element
2329
1855
 
2330
1856
  /** @public */
2331
1857
  export declare type StackElementType = BoxElementType
@@ -2347,10 +1873,7 @@ export declare type StackOwnProps = Omit<
2347
1873
  | 'justifyContent'
2348
1874
  | 'rows'
2349
1875
  | 'gridTemplateRows'
2350
- > & {
2351
- /** @deprecated Use `gap` instead. */
2352
- space?: ResponsiveProp<Space>
2353
- }
1876
+ >
2354
1877
 
2355
1878
  /** @public */
2356
1879
  export declare type StackProps<E extends StackElementType = StackElementType> = Props<
@@ -2358,12 +1881,6 @@ export declare type StackProps<E extends StackElementType = StackElementType> =
2358
1881
  E
2359
1882
  >
2360
1883
 
2361
- /**
2362
- * @public
2363
- * @deprecated Use `ThemeStyles` from `@sanity/ui/theme` instead.
2364
- */
2365
- export declare type Styles = ThemeStyles
2366
-
2367
1884
  /**
2368
1885
  * The `Switch` component allows the user to toggle a setting on and off.
2369
1886
  *
@@ -2373,7 +1890,7 @@ export declare type Styles = ThemeStyles
2373
1890
  */
2374
1891
  export declare function Switch<E extends SwitchElementType = typeof DEFAULT_SWITCH_ELEMENT>(
2375
1892
  props: SwitchProps<E>,
2376
- ): JSX.Element
1893
+ ): React.JSX.Element
2377
1894
 
2378
1895
  /** @public */
2379
1896
  export declare type SwitchElementType = 'input' | ComponentType
@@ -2392,7 +1909,7 @@ export declare type SwitchProps<E extends SwitchElementType = SwitchElementType>
2392
1909
  /** @public */
2393
1910
  export declare function Tab<E extends TabElementType = typeof DEFAULT_TAB_ELEMENT>(
2394
1911
  props: TabProps<E>,
2395
- ): JSX.Element
1912
+ ): React.JSX.Element
2396
1913
 
2397
1914
  /** @public */
2398
1915
  export declare type TabElementType = 'button' | ComponentType
@@ -2400,7 +1917,7 @@ export declare type TabElementType = 'button' | ComponentType
2400
1917
  /** @public */
2401
1918
  export declare function TabList<E extends TabListElementType = typeof DEFAULT_TAB_LIST_ELEMENT>(
2402
1919
  props: TabListProps<E>,
2403
- ): JSX.Element
1920
+ ): React.JSX.Element
2404
1921
 
2405
1922
  /** @public */
2406
1923
  export declare type TabListChild =
@@ -2415,8 +1932,6 @@ export declare type TabListElementType = 'div' | 'span' | ComponentType
2415
1932
  /** @public */
2416
1933
  export declare type TabListOwnProps = Omit<FlexOwnProps, 'as' | 'height'> & {
2417
1934
  children: TabListChild[]
2418
- /** @deprecated Use `gap` instead */
2419
- space?: ResponsiveProp<Space>
2420
1935
  }
2421
1936
 
2422
1937
  /** @public */
@@ -2438,13 +1953,13 @@ export declare type TabOwnProps = {
2438
1953
  'label'?: ReactNode
2439
1954
  'padding'?: ResponsiveProp<Space>
2440
1955
  'selected'?: boolean
2441
- 'tone'?: ThemeColorStateToneKey
1956
+ 'tone'?: ElementTone
2442
1957
  }
2443
1958
 
2444
1959
  /** @public */
2445
1960
  export declare function TabPanel<E extends TabPanelElementType = typeof DEFAULT_TAB_PANEL_ELEMENT>(
2446
1961
  props: TabPanelProps<E>,
2447
- ): JSX.Element
1962
+ ): React.JSX.Element
2448
1963
 
2449
1964
  /** @public */
2450
1965
  export declare type TabPanelElementType = 'div' | 'span' | ComponentType
@@ -2477,11 +1992,9 @@ export declare type TagType = keyof JSX.IntrinsicElements
2477
1992
  */
2478
1993
  declare function Text_2<E extends TextElementType = typeof DEFAULT_TEXT_ELEMENT>(
2479
1994
  props: TextProps<E>,
2480
- ): JSX.Element
1995
+ ): React.JSX.Element
2481
1996
  export {Text_2 as Text}
2482
1997
 
2483
- export {TextAlign}
2484
-
2485
1998
  /**
2486
1999
  * A multiline text input.
2487
2000
  *
@@ -2489,7 +2002,7 @@ export {TextAlign}
2489
2002
  */
2490
2003
  export declare function TextArea<E extends TextAreaElementType = typeof DEFAULT_TEXT_AREA_ELEMENT>(
2491
2004
  props: TextAreaProps<E>,
2492
- ): JSX.Element
2005
+ ): React.JSX.Element
2493
2006
 
2494
2007
  /** @public */
2495
2008
  export declare type TextAreaElementType = 'textarea' | ComponentType
@@ -2501,8 +2014,6 @@ export declare type TextAreaOwnProps = TextAreaStyleProps & {
2501
2014
  */
2502
2015
  __unstable_disableFocusRing?: boolean
2503
2016
  customValidity?: string
2504
- /** @deprecated Use `gap` instead. */
2505
- space?: ResponsiveProp<Space>
2506
2017
  }
2507
2018
 
2508
2019
  /** @public */
@@ -2533,7 +2044,7 @@ export declare type TextElementType =
2533
2044
  */
2534
2045
  export declare function TextInput<
2535
2046
  E extends TextInputElementType = typeof DEFAULT_TEXT_INPUT_ELEMENT,
2536
- >(props: TextInputProps<E>): JSX.Element
2047
+ >(props: TextInputProps<E>): React.JSX.Element
2537
2048
 
2538
2049
  /** @public */
2539
2050
  export declare type TextInputClearButtonProps = Omit<
@@ -2562,10 +2073,8 @@ export declare type TextInputOwnProps = InputStyleProps & {
2562
2073
  */
2563
2074
  onClear?: () => void
2564
2075
  prefix?: ReactNode
2565
- /** @deprecated Use `gap` instead. */
2566
- space?: ResponsiveProp<Space>
2567
2076
  suffix?: ReactNode
2568
- weight?: ThemeFontWeightKey_2
2077
+ weight?: FontWeight
2569
2078
  }
2570
2079
 
2571
2080
  /** @public */
@@ -2586,7 +2095,7 @@ export declare type TextProps<E extends TextElementType = TextElementType> = Pro
2586
2095
  */
2587
2096
  export declare function TextSkeleton<
2588
2097
  E extends TextSkeletonElementType = typeof DEFAULT_TEXT_SKELETON_ELEMENT,
2589
- >(props: TextSkeletonProps<E>): JSX.Element
2098
+ >(props: TextSkeletonProps<E>): React.JSX.Element
2590
2099
 
2591
2100
  /** @beta */
2592
2101
  export declare type TextSkeletonElementType = SkeletonElementType
@@ -2603,164 +2112,6 @@ export declare type TextSkeletonOwnProps = SkeletonOwnProps & {
2603
2112
  export declare type TextSkeletonProps<E extends TextSkeletonElementType = TextSkeletonElementType> =
2604
2113
  Props<TextSkeletonOwnProps, E>
2605
2114
 
2606
- /**
2607
- * @public
2608
- * @deprecated Use `Theme` from `@sanity/ui/theme` instead.
2609
- */
2610
- export declare type Theme = Theme_2
2611
-
2612
- export {ThemeAvatar}
2613
-
2614
- export {ThemeColor}
2615
-
2616
- export {ThemeColorBase}
2617
-
2618
- export {ThemeColorBuilderOpts}
2619
-
2620
- export {ThemeColorButton}
2621
-
2622
- /**
2623
- * @public
2624
- * @deprecated Use `ThemeColorButtonModeKey` from `@sanity/ui/theme` instead.
2625
- */
2626
- export declare type ThemeColorButtonModeKey = ThemeColorButtonModeKey_2
2627
-
2628
- export {ThemeColorButtonState}
2629
-
2630
- export {ThemeColorButtonStates}
2631
-
2632
- export {ThemeColorButtonTones}
2633
-
2634
- export {ThemeColorCard}
2635
-
2636
- export {ThemeColorCardState}
2637
-
2638
- export {ThemeColorGenericState}
2639
-
2640
- export {ThemeColorInput}
2641
-
2642
- export {ThemeColorInputState}
2643
-
2644
- export {ThemeColorInputStates}
2645
-
2646
- export {ThemeColorMuted}
2647
-
2648
- export {ThemeColorMutedTone}
2649
-
2650
- export {ThemeColorName}
2651
-
2652
- /** @public */
2653
- export declare function ThemeColorProvider(props: ThemeColorProviderProps): ReactElement
2654
-
2655
- /** @public */
2656
- export declare interface ThemeColorProviderProps {
2657
- children?: ReactNode
2658
- scheme?: ThemeColorSchemeKey_2
2659
- tone?: ThemeColorCardToneKey
2660
- }
2661
-
2662
- export {ThemeColorScheme}
2663
-
2664
- /**
2665
- * @public
2666
- * @deprecated Use `ThemeColorSchemeKey` from `@sanity/ui/theme` instead.
2667
- */
2668
- export declare type ThemeColorSchemeKey = ThemeColorSchemeKey_2
2669
-
2670
- export {ThemeColorSchemes}
2671
-
2672
- export {ThemeColorSelectable}
2673
-
2674
- export {ThemeColorSelectableState}
2675
-
2676
- export {ThemeColorSelectableStates}
2677
-
2678
- export {ThemeColorSolid}
2679
-
2680
- export {ThemeColorSolidTone}
2681
-
2682
- export {ThemeColorSpot}
2683
-
2684
- export {ThemeColorSpotKey}
2685
-
2686
- /**
2687
- * @public
2688
- * @deprecated Use `ThemeColorSyntax` from `@sanity/ui/theme` instead.
2689
- */
2690
- export declare type ThemeColorSyntax = ThemeColorSyntax_2
2691
-
2692
- export {ThemeColorToneKey}
2693
-
2694
- /** @public */
2695
- export declare interface ThemeContextValue {
2696
- /** @deprecated No longer used */
2697
- version: 0.0
2698
- scheme: ThemeColorSchemeKey_2
2699
- theme: RootTheme_2
2700
- tone: ThemeColorCardToneKey
2701
- }
2702
-
2703
- /**
2704
- * @public
2705
- * @deprecated Use `ThemeFont` from `@sanity/ui/theme` instead.
2706
- */
2707
- export declare type ThemeFont = ThemeFont_2
2708
-
2709
- /**
2710
- * @public
2711
- * @deprecated Use `ThemeFontKey` from `@sanity/ui/theme` instead.
2712
- */
2713
- export declare type ThemeFontKey = ThemeFontKey_2
2714
-
2715
- /**
2716
- * @public
2717
- * @deprecated Use `ThemeFonts` from `@sanity/ui/theme` instead.
2718
- */
2719
- export declare type ThemeFonts = ThemeFonts_2
2720
-
2721
- /**
2722
- * @public
2723
- * @deprecated Use `ThemeFontSize` from `@sanity/ui/theme` instead.
2724
- */
2725
- export declare type ThemeFontSize = ThemeFontSize_2
2726
-
2727
- /**
2728
- * @public
2729
- * @deprecated Use `ThemeFontWeight` from `@sanity/ui/theme` instead.
2730
- */
2731
- export declare type ThemeFontWeight = ThemeFontWeight_2
2732
-
2733
- /**
2734
- * @public
2735
- * @deprecated Use `ThemeFontWeightKey` from `@sanity/ui/theme` instead.
2736
- */
2737
- export declare type ThemeFontWeightKey = ThemeFontWeightKey_2
2738
-
2739
- export {ThemeInput}
2740
-
2741
- /**
2742
- * @public
2743
- * @deprecated Use `ThemeLayer` from `@sanity/ui/theme` instead.
2744
- */
2745
- export declare type ThemeLayer = ThemeLayer_2
2746
-
2747
- /** @public */
2748
- export declare function ThemeProvider(props: ThemeProviderProps): ReactElement
2749
-
2750
- /** @public */
2751
- export declare interface ThemeProviderProps {
2752
- children?: ReactNode
2753
- scheme?: ThemeColorSchemeKey_2
2754
- theme?: RootTheme_2
2755
- tone?: ThemeColorCardToneKey
2756
- }
2757
-
2758
- /**
2759
- * @public
2760
- * @deprecated Use `ThemeShadow` from `@sanity/ui/theme` instead.
2761
- */
2762
- export declare type ThemeShadow = ThemeShadow_2
2763
-
2764
2115
  /**
2765
2116
  * The `Toast` component gives feedback to users when an action has taken place.
2766
2117
  *
@@ -2770,7 +2121,7 @@ export declare type ThemeShadow = ThemeShadow_2
2770
2121
  */
2771
2122
  export declare function Toast<E extends ToastElementType = typeof DEFAULT_TOAST_ELEMENT>(
2772
2123
  props: ToastProps<E>,
2773
- ): JSX.Element
2124
+ ): React.JSX.Element
2774
2125
 
2775
2126
  /** @public */
2776
2127
  export declare interface ToastContextValue {
@@ -2842,7 +2193,7 @@ export declare interface ToastProviderProps extends Omit<ToastLayerProps, 'child
2842
2193
  */
2843
2194
  export declare function Tooltip<E extends TooltipElementType = typeof DEFAULT_TOOLTIP_ELEMENT>(
2844
2195
  props: TooltipProps<E>,
2845
- ): JSX.Element
2196
+ ): React.JSX.Element
2846
2197
 
2847
2198
  /**
2848
2199
  * @beta
@@ -2867,7 +2218,7 @@ export declare interface TooltipDelayGroupContextValue {
2867
2218
  */
2868
2219
  export declare function TooltipDelayGroupProvider(
2869
2220
  props: TooltipDelayGroupProviderProps,
2870
- ): ReactElement
2221
+ ): React.JSX.Element
2871
2222
 
2872
2223
  /**
2873
2224
  * @public
@@ -2893,8 +2244,6 @@ export declare type TooltipElementType = 'div' | 'span' | ComponentType
2893
2244
  export declare type TooltipOwnProps = LayerOwnProps &
2894
2245
  RadiusStyleProps &
2895
2246
  ShadowStyleProps & {
2896
- /** @deprecated Use `fallbackPlacements` instead. */
2897
- allowedAutoPlacements?: Placement[]
2898
2247
  /**
2899
2248
  * Whether the tooltip should animate in and out.
2900
2249
  *
@@ -2922,8 +2271,8 @@ export declare type TooltipOwnProps = LayerOwnProps &
2922
2271
  placement?: Placement
2923
2272
  /** Whether or not to render the tooltip in a portal element. */
2924
2273
  portal?: boolean | string
2925
- scheme?: ThemeColorSchemeKey_2
2926
- tone?: ThemeColorCardToneKey
2274
+ scheme?: ColorScheme
2275
+ tone?: CardTone
2927
2276
  }
2928
2277
 
2929
2278
  /** @public */
@@ -2938,7 +2287,7 @@ export declare type TooltipProps<E extends TooltipElementType = TooltipElementTy
2938
2287
  */
2939
2288
  export declare function Tree<E extends TreeElementType = typeof DEFAULT_TREE_ELEMENT>(
2940
2289
  props: TreeProps<E>,
2941
- ): JSX.Element
2290
+ ): React.JSX.Element
2942
2291
 
2943
2292
  /**
2944
2293
  * @beta
@@ -2946,12 +2295,12 @@ export declare function Tree<E extends TreeElementType = typeof DEFAULT_TREE_ELE
2946
2295
  export declare interface TreeContextValue {
2947
2296
  version: 0.0
2948
2297
  focusedElement: HTMLElement | null
2298
+ gap: ResponsiveProp<Space>
2949
2299
  level: number
2950
2300
  path: string[]
2951
2301
  registerItem: (element: HTMLElement, path: string, expanded: boolean, selected: boolean) => void
2952
2302
  setExpanded: (path: string, expanded: boolean) => void
2953
2303
  setFocusedElement: (focusedElement: HTMLElement | null) => void
2954
- space: ResponsiveProp<Space>
2955
2304
  state: TreeState
2956
2305
  }
2957
2306
 
@@ -2964,7 +2313,7 @@ export declare type TreeElementType = 'div' | ComponentType
2964
2313
  */
2965
2314
  export declare function TreeItem<E extends TreeItemElementType = typeof DEFAULT_TREE_ITEM_ELEMENT>(
2966
2315
  props: TreeItemProps<E>,
2967
- ): JSX.Element
2316
+ ): React.JSX.Element
2968
2317
 
2969
2318
  /** @beta */
2970
2319
  export declare type TreeItemElementType = 'a' | 'li' | ComponentType
@@ -2983,7 +2332,7 @@ export declare type TreeItemOwnProps = CardOwnProps & {
2983
2332
  padding?: ResponsiveProp<Space>
2984
2333
  space?: ResponsiveProp<Space>
2985
2334
  text?: ReactNode
2986
- weight?: ThemeFontWeightKey_2
2335
+ weight?: FontWeight
2987
2336
  }
2988
2337
 
2989
2338
  /** @beta */
@@ -2998,8 +2347,6 @@ export declare type TreeItemProps<E extends TreeItemElementType = TreeItemElemen
2998
2347
  */
2999
2348
  export declare type TreeOwnProps = {
3000
2349
  gap?: ResponsiveProp<Space>
3001
- /** @deprecated Use `gap` instead. */
3002
- space?: ResponsiveProp<Space>
3003
2350
  }
3004
2351
 
3005
2352
  /** @beta */
@@ -3017,40 +2364,12 @@ export declare interface TreeState {
3017
2364
  | undefined
3018
2365
  }
3019
2366
 
3020
- /**
3021
- * This API might change. DO NOT USE IN PRODUCTION.
3022
- * @beta
3023
- * @deprecated Use `useResponsiveProp` instead.
3024
- */
3025
- export declare function useArrayProp<T>(val: T | T[] | undefined, defaultVal?: T[]): T[]
3026
-
3027
2367
  /** @public */
3028
2368
  export declare function useBoundaryElement(): BoundaryElementContextValue
3029
2369
 
3030
2370
  /** @public */
3031
2371
  export declare function useCard(): CardContextValue
3032
2372
 
3033
- /**
3034
- * @public
3035
- * @deprecated replaced by the new `useClickOutsideEvent` hook, instead of:
3036
- * ```tsx
3037
- * const [button, setButtonElement] = useState(null)
3038
- * useClickOutside((event) => {}, [button])
3039
- * return <button ref={setButtonElement} />
3040
- * ```
3041
- * do:
3042
- * ```tsx
3043
- * const buttonRef = useRef()
3044
- * useClickOutsideEvent((event) => {}, () => [buttonRef.current])
3045
- * return <button ref={buttonRef} />
3046
- * ```
3047
- */
3048
- export declare function useClickOutside(
3049
- listener: ClickOutsideListener,
3050
- elementsArg?: ClickOutsideElements,
3051
- boundaryElement?: HTMLElement | null,
3052
- ): (el: HTMLElement | null) => void
3053
-
3054
2373
  /** @public */
3055
2374
  export declare function useClickOutsideEvent(
3056
2375
  listener: ClickOutsideEventListener | false | undefined,
@@ -3076,32 +2395,12 @@ export declare function useCustomValidity(
3076
2395
  */
3077
2396
  export declare function useDialog(): DialogContextValue
3078
2397
 
3079
- /**
3080
- * Subscribe to the rect of a DOM element.
3081
- * @beta
3082
- *
3083
- * @deprecated Use `useElementSize` instead
3084
- */
3085
- export declare function useElementRect(element: HTMLElement | null): DOMRectReadOnly | null
3086
-
3087
2398
  /**
3088
2399
  * Subscribe to the size of a DOM element.
3089
2400
  * @beta
3090
2401
  */
3091
2402
  export declare function useElementSize(element: HTMLElement | null): ElementSize | null
3092
2403
 
3093
- /**
3094
- * @beta
3095
- * @deprecated use `useImperativeHandle` instead
3096
- * @example
3097
- * ```diff
3098
- * -const ref = useForwardedRef(forwardedRef)
3099
- * +const ref = useRef(null)
3100
- * +useImperativeHandle(forwardedRef, () => ref.current)
3101
- * ```
3102
- */
3103
- export declare function useForwardedRef<T>(ref: ForwardedRef<T>): MutableRefObject<T | null>
3104
-
3105
2404
  /**
3106
2405
  * @beta
3107
2406
  */
@@ -3166,15 +2465,6 @@ export declare function useResponsiveProp<T>(
3166
2465
  defaultVal?: Partial<Record<Breakpoint, T>>,
3167
2466
  ): Partial<Record<Breakpoint, T>>
3168
2467
 
3169
- /** @public */
3170
- export declare function useRootTheme(): ThemeContextValue
3171
-
3172
- /** @public */
3173
- export declare function useTheme(): Theme_2
3174
-
3175
- /** @public */
3176
- export declare function useTheme_v2(): Theme_v2
3177
-
3178
2468
  /** @public */
3179
2469
  export declare function useToast(): ToastContextValue
3180
2470
 
@@ -3191,7 +2481,7 @@ export declare function useTree(): TreeContextValue
3191
2481
  /** @beta */
3192
2482
  export declare function VirtualList<
3193
2483
  E extends VirtualListElementType = typeof DEFAULT_VIRTUAL_LIST_ELEMENT,
3194
- >(props: VirtualListProps<E>): JSX.Element
2484
+ >(props: VirtualListProps<E>): React.JSX.Element
3195
2485
 
3196
2486
  /** @beta */
3197
2487
  export declare interface VirtualListChangeOpts {