@sanity/ui 2.0.0-alpha.9 → 2.0.0-beta.10

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 (845) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +6 -3
  3. package/dist/index.cjs.mjs +3 -3
  4. package/dist/index.d.ts +436 -556
  5. package/dist/index.esm.js +1390 -6227
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.js +1393 -6230
  8. package/dist/index.js.map +1 -1
  9. package/dist/theme.cjs.mjs +54 -0
  10. package/dist/theme.d.ts +1495 -0
  11. package/dist/theme.esm.js +4382 -0
  12. package/dist/theme.esm.js.map +1 -0
  13. package/dist/theme.js +4437 -0
  14. package/dist/theme.js.map +1 -0
  15. package/exports/index.ts +1 -0
  16. package/exports/theme.ts +1 -0
  17. package/package.json +93 -69
  18. package/src/core/__workshop__/constants.ts +296 -0
  19. package/src/core/__workshop__/fontsPlugin.tsx +36 -0
  20. package/src/core/_compat.ts +264 -0
  21. package/src/core/components/autocomplete/__workshop__/async.tsx +155 -0
  22. package/src/core/components/autocomplete/__workshop__/constrainedHeight.tsx +136 -0
  23. package/src/core/components/autocomplete/__workshop__/custom.tsx +88 -0
  24. package/src/core/components/autocomplete/__workshop__/example.tsx +78 -0
  25. package/src/core/components/autocomplete/__workshop__/focusAndBlur.tsx +36 -0
  26. package/src/core/components/autocomplete/autocomplete.tsx +720 -0
  27. package/src/core/components/dialog/__workshop__/activate.tsx +133 -0
  28. package/src/core/components/dialog/__workshop__/layering.tsx +41 -0
  29. package/src/core/components/dialog/__workshop__/panes.tsx +81 -0
  30. package/src/core/components/dialog/dialog.tsx +434 -0
  31. package/src/core/components/dialog/styles.ts +76 -0
  32. package/src/core/components/hotkeys/hotkeys.tsx +60 -0
  33. package/src/core/components/menu/__workshop__/asComponent.tsx +44 -0
  34. package/src/core/components/menu/__workshop__/avatarMenu.tsx +50 -0
  35. package/src/core/components/menu/__workshop__/closableMenuButton.tsx +46 -0
  36. package/src/core/components/menu/__workshop__/customMenuItem.tsx +45 -0
  37. package/src/core/components/menu/__workshop__/disableFocusOnClose.tsx +40 -0
  38. package/src/core/components/menu/__workshop__/index.ts +84 -0
  39. package/src/core/components/menu/__workshop__/menuButton.tsx +79 -0
  40. package/src/core/components/menu/__workshop__/selectedItem.tsx +69 -0
  41. package/src/core/components/menu/menu.test.tsx +129 -0
  42. package/src/core/components/menu/menu.tsx +169 -0
  43. package/src/core/components/menu/menuButton.tsx +281 -0
  44. package/src/core/components/menu/menuDivider.ts +11 -0
  45. package/src/core/components/menu/menuGroup.tsx +200 -0
  46. package/src/core/components/menu/menuItem.tsx +178 -0
  47. package/src/core/components/skeleton/styles.ts +50 -0
  48. package/src/core/components/skeleton/textSkeleton.tsx +118 -0
  49. package/src/core/components/tab/tab.tsx +102 -0
  50. package/src/core/components/toast/toast.test.tsx +102 -0
  51. package/src/core/components/toast/toast.tsx +95 -0
  52. package/src/core/components/tree/__workshop__/tabFromElement.tsx +83 -0
  53. package/src/core/components/tree/style.ts +104 -0
  54. package/src/core/components/tree/treeItem.tsx +200 -0
  55. package/src/core/constants.ts +38 -0
  56. package/src/core/hooks/useElementRect/__workshop__/example.tsx +31 -0
  57. package/src/core/hooks/useMediaIndex/__workshop__/test.tsx +14 -0
  58. package/src/core/hooks/useMediaIndex/useMediaIndex.test.tsx +35 -0
  59. package/src/core/hooks/useMediaIndex/useMediaIndex.ts +109 -0
  60. package/src/core/index.ts +11 -0
  61. package/src/core/lib/isRecord.ts +3 -0
  62. package/src/core/middleware/origin.ts +47 -0
  63. package/src/core/primitives/_selectable/style.ts +114 -0
  64. package/src/core/primitives/avatar/__workshop__/asButton.tsx +13 -0
  65. package/src/core/primitives/avatar/__workshop__/stack.tsx +24 -0
  66. package/src/core/primitives/avatar/avatar.tsx +196 -0
  67. package/src/core/primitives/avatar/avatarCounter.tsx +92 -0
  68. package/src/core/primitives/avatar/avatarStack.tsx +99 -0
  69. package/src/core/primitives/avatar/styles.ts +169 -0
  70. package/src/core/primitives/avatar/types.ts +16 -0
  71. package/src/core/primitives/badge/__workshop__/props.tsx +29 -0
  72. package/src/core/primitives/badge/__workshop__/tones.tsx +27 -0
  73. package/src/core/primitives/badge/badge.test.tsx +15 -0
  74. package/src/core/primitives/badge/badge.tsx +60 -0
  75. package/src/core/primitives/badge/styles.ts +19 -0
  76. package/src/core/primitives/badge/types.ts +8 -0
  77. package/src/core/primitives/box/__workshop__/responsive.tsx +20 -0
  78. package/src/core/primitives/box/box.tsx +129 -0
  79. package/src/core/primitives/button/__workshop__/sanityUploadButton.tsx +36 -0
  80. package/src/core/primitives/button/__workshop__/stacked.tsx +57 -0
  81. package/src/core/primitives/button/button.test.tsx +43 -0
  82. package/src/core/primitives/button/button.tsx +182 -0
  83. package/src/core/primitives/button/styles.ts +116 -0
  84. package/src/core/primitives/card/__workshop__/asButton.tsx +88 -0
  85. package/src/core/primitives/card/__workshop__/asComponent.tsx +27 -0
  86. package/src/core/primitives/card/__workshop__/selected.tsx +91 -0
  87. package/src/core/primitives/card/card.tsx +111 -0
  88. package/src/core/primitives/card/styles.ts +146 -0
  89. package/src/core/primitives/card/types.ts +10 -0
  90. package/src/core/primitives/checkbox/__workshop__/example.tsx +25 -0
  91. package/src/core/primitives/checkbox/__workshop__/props.tsx +33 -0
  92. package/src/core/primitives/checkbox/__workshop__/readOnly.tsx +16 -0
  93. package/src/core/primitives/checkbox/checkbox.tsx +66 -0
  94. package/src/core/primitives/checkbox/styles.ts +127 -0
  95. package/src/core/primitives/code/code.tsx +39 -0
  96. package/src/core/primitives/code/styles.ts +77 -0
  97. package/src/core/primitives/container/container.tsx +39 -0
  98. package/src/core/primitives/container/styles.ts +22 -0
  99. package/src/core/primitives/flex/flex.tsx +52 -0
  100. package/src/core/primitives/grid/grid.tsx +46 -0
  101. package/src/core/primitives/heading/heading.tsx +85 -0
  102. package/src/core/primitives/heading/styles.ts +59 -0
  103. package/src/core/primitives/inline/inline.tsx +50 -0
  104. package/src/core/primitives/inline/styles.ts +31 -0
  105. package/src/core/primitives/kbd/kbd.tsx +59 -0
  106. package/src/core/primitives/label/label.tsx +84 -0
  107. package/src/core/primitives/label/styles.ts +44 -0
  108. package/src/core/primitives/popover/__workshop__/RecursiveStory.tsx +71 -0
  109. package/src/core/primitives/popover/__workshop__/TestStory.tsx +96 -0
  110. package/src/core/primitives/popover/constants.ts +22 -0
  111. package/src/core/primitives/popover/helpers.ts +31 -0
  112. package/src/core/primitives/popover/popover.tsx +445 -0
  113. package/src/core/primitives/popover/popoverCard.tsx +151 -0
  114. package/src/core/primitives/popover/types.ts +6 -0
  115. package/src/core/primitives/radio/radio.tsx +44 -0
  116. package/src/core/primitives/radio/styles.ts +116 -0
  117. package/src/core/primitives/select/select.tsx +80 -0
  118. package/src/core/primitives/select/styles.ts +166 -0
  119. package/src/core/primitives/spinner/spinner.tsx +44 -0
  120. package/src/core/primitives/stack/stack.tsx +38 -0
  121. package/src/core/primitives/stack/styles.ts +31 -0
  122. package/src/core/primitives/switch/__workshop__/example.tsx +23 -0
  123. package/src/core/primitives/switch/__workshop__/props.tsx +21 -0
  124. package/src/core/primitives/switch/styles.ts +172 -0
  125. package/src/core/primitives/switch/switch.tsx +62 -0
  126. package/src/core/primitives/text/__workshop__/colored.tsx +29 -0
  127. package/src/core/primitives/text/styles.ts +73 -0
  128. package/src/core/primitives/text/text.tsx +86 -0
  129. package/src/core/primitives/textArea/__workshop__/plain.tsx +49 -0
  130. package/src/core/primitives/textArea/textArea.tsx +106 -0
  131. package/src/core/primitives/textInput/__workshop__/plain.tsx +98 -0
  132. package/src/core/primitives/textInput/__workshop__/states.tsx +45 -0
  133. package/src/core/primitives/textInput/textInput.tsx +382 -0
  134. package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +99 -0
  135. package/src/core/primitives/tooltip/__workshop__/index.ts +29 -0
  136. package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +73 -0
  137. package/src/core/primitives/tooltip/__workshop__/props.tsx +106 -0
  138. package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +85 -0
  139. package/src/core/primitives/tooltip/constants.ts +23 -0
  140. package/src/core/primitives/tooltip/tooltip.test.tsx +450 -0
  141. package/src/core/primitives/tooltip/tooltip.tsx +446 -0
  142. package/src/core/primitives/tooltip/tooltipCard.tsx +104 -0
  143. package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +55 -0
  144. package/src/core/primitives/types.ts +146 -0
  145. package/src/core/styles/border/borderStyle.ts +55 -0
  146. package/src/core/styles/box/boxStyle.ts +68 -0
  147. package/src/core/styles/card/_cardColorStyle.ts +101 -0
  148. package/src/core/styles/card/index.ts +1 -0
  149. package/src/core/styles/flex/flexItemStyle.ts +26 -0
  150. package/src/core/styles/flex/flexStyle.ts +69 -0
  151. package/src/core/styles/focusRing/index.ts +25 -0
  152. package/src/core/styles/font/codeFontStyle.ts +12 -0
  153. package/src/core/styles/font/headingFontStyle.ts +12 -0
  154. package/src/core/styles/font/labelFontStyle.ts +12 -0
  155. package/src/core/styles/font/responsiveFont.ts +101 -0
  156. package/src/core/styles/font/textAlignStyle.ts +18 -0
  157. package/src/core/styles/font/textFontStyle.ts +12 -0
  158. package/src/core/styles/font/types.ts +34 -0
  159. package/src/core/styles/grid/gridItemStyle.ts +81 -0
  160. package/src/core/styles/grid/gridStyle.ts +107 -0
  161. package/src/core/styles/helpers.ts +72 -0
  162. package/src/core/styles/input/responsiveInputPaddingStyle.ts +77 -0
  163. package/src/core/styles/input/textInputStyle.ts +232 -0
  164. package/src/core/styles/margin/marginStyle.ts +20 -0
  165. package/src/core/styles/margin/marginsStyle.test.ts +32 -0
  166. package/src/core/styles/padding/paddingStyle.test.ts +32 -0
  167. package/src/core/styles/padding/paddingStyle.ts +20 -0
  168. package/src/core/styles/radius/radiusStyle.ts +22 -0
  169. package/src/core/styles/shadow/shadowStyle.ts +29 -0
  170. package/src/core/styles/types.ts +8 -0
  171. package/src/core/theme/__workshop__/build/Root.tsx +367 -0
  172. package/src/core/theme/__workshop__/build/helpers.ts +46 -0
  173. package/src/core/theme/__workshop__/build/story.tsx +459 -0
  174. package/src/core/theme/__workshop__/canvas.tsx +350 -0
  175. package/src/core/theme/__workshop__/color.tsx +62 -0
  176. package/src/core/theme/__workshop__/debug/story.tsx +159 -0
  177. package/src/core/theme/__workshop__/index.ts +39 -0
  178. package/src/core/theme/index.ts +5 -0
  179. package/src/core/theme/theme.test.tsx +73 -0
  180. package/src/core/theme/themeColorProvider.tsx +26 -0
  181. package/src/core/theme/themeContext.ts +12 -0
  182. package/src/core/theme/themeProvider.tsx +61 -0
  183. package/src/core/theme/types.ts +12 -0
  184. package/src/core/theme/useRootTheme.ts +16 -0
  185. package/src/core/theme/useTheme.ts +16 -0
  186. package/src/core/types/avatar.ts +14 -0
  187. package/src/core/types/badge.ts +12 -0
  188. package/src/core/types/button.ts +21 -0
  189. package/src/core/types/card.ts +6 -0
  190. package/src/core/types/index.ts +14 -0
  191. package/src/core/types/selectable.ts +6 -0
  192. package/src/core/utils/arrow/arrow.tsx +121 -0
  193. package/src/core/utils/arrow/cmds.ts +91 -0
  194. package/src/core/utils/arrow/index.ts +1 -0
  195. package/src/core/utils/boundaryElement/__workshop__/plain.tsx +19 -0
  196. package/src/core/utils/boundaryElement/boundaryElement.test.tsx +101 -0
  197. package/src/core/utils/conditionalWrapper/conditionalWrapper.tsx +18 -0
  198. package/src/core/utils/conditionalWrapper/index.ts +1 -0
  199. package/src/core/utils/elementQuery/__workshop__/customMedia.tsx +30 -0
  200. package/src/core/utils/elementQuery/elementQuery.tsx +53 -0
  201. package/src/core/utils/index.ts +9 -0
  202. package/src/core/utils/layer/__workshop__/_debug.tsx +17 -0
  203. package/src/core/utils/layer/layer.test.tsx +109 -0
  204. package/src/core/utils/portal/__workshop__/named.tsx +61 -0
  205. package/src/core/utils/portal/portal.test.tsx +104 -0
  206. package/src/core/utils/virtualList/virtualList.tsx +167 -0
  207. package/src/theme/build/_deprecated/color/_selectable/createSelectableTones.ts +76 -0
  208. package/src/theme/build/_deprecated/color/_solid/createSolidTones.ts +54 -0
  209. package/src/theme/build/_deprecated/color/button/createButtonModes.ts +22 -0
  210. package/src/theme/build/_deprecated/color/button/createButtonTones.ts +55 -0
  211. package/src/theme/build/_deprecated/color/card/createCardStates.ts +60 -0
  212. package/src/theme/build/_deprecated/color/color.test.ts +63 -0
  213. package/src/theme/build/_deprecated/color/defaults.ts +390 -0
  214. package/src/theme/build/_deprecated/color/factory.ts +142 -0
  215. package/src/theme/build/_deprecated/color/index.ts +1 -0
  216. package/src/theme/build/_deprecated/color/input/createInputModes.ts +81 -0
  217. package/src/theme/build/_deprecated/color/muted/createMuted.ts +54 -0
  218. package/src/theme/build/_deprecated/color/spot/createSpot.ts +20 -0
  219. package/src/theme/build/buildColorTheme.test.ts +183 -0
  220. package/src/theme/build/buildColorTheme.ts +484 -0
  221. package/src/theme/build/buildTheme.test.ts +87 -0
  222. package/src/theme/build/buildTheme.ts +36 -0
  223. package/src/theme/build/colorToken/colorToken.ts +19 -0
  224. package/src/theme/build/colorToken/compileColorToken.ts +21 -0
  225. package/src/theme/build/colorToken/index.ts +2 -0
  226. package/src/theme/build/colorToken/types.ts +6 -0
  227. package/src/theme/build/index.ts +3 -0
  228. package/src/theme/build/lib/color-fns/blend/index.ts +3 -0
  229. package/src/theme/build/lib/color-fns/blend/mix.ts +21 -0
  230. package/src/theme/build/lib/color-fns/blend/multiply.ts +18 -0
  231. package/src/theme/build/lib/color-fns/blend/screen.ts +18 -0
  232. package/src/theme/build/lib/color-fns/color-fns.test.ts +68 -0
  233. package/src/theme/build/lib/color-fns/contrastRatio.ts +31 -0
  234. package/src/theme/build/lib/color-fns/convert.ts +150 -0
  235. package/src/theme/build/lib/color-fns/index.ts +6 -0
  236. package/src/theme/build/lib/color-fns/rgba.ts +10 -0
  237. package/src/theme/build/lib/isRecord.ts +3 -0
  238. package/src/theme/build/lib/utils.ts +19 -0
  239. package/src/theme/build/merge.ts +28 -0
  240. package/src/theme/build/mixThemeColor.test.ts +21 -0
  241. package/src/theme/build/mixThemeColor.ts +53 -0
  242. package/src/theme/build/renderColorTheme.ts +535 -0
  243. package/src/theme/build/renderColorValue.ts +84 -0
  244. package/src/theme/build/resolveColorTokens.ts +331 -0
  245. package/src/theme/build/theme.test.ts +27 -0
  246. package/src/theme/config/helpers.ts +55 -0
  247. package/src/theme/config/index.ts +4 -0
  248. package/src/theme/config/system.ts +114 -0
  249. package/src/theme/config/tokens/color/index.ts +1 -0
  250. package/src/theme/config/tokens/color/types.ts +146 -0
  251. package/src/theme/config/tokens/index.ts +4 -0
  252. package/src/theme/config/tokens/parseTokenKey.test.ts +64 -0
  253. package/src/theme/config/tokens/parseTokenKey.ts +67 -0
  254. package/src/theme/config/tokens/parseTokenValue.test.ts +42 -0
  255. package/src/theme/config/tokens/parseTokenValue.ts +133 -0
  256. package/src/theme/config/tokens/types.ts +52 -0
  257. package/src/theme/config/types.ts +45 -0
  258. package/src/theme/defaults/colorPalette.ts +5 -0
  259. package/src/theme/defaults/colorTokens.ts +560 -0
  260. package/src/theme/defaults/config.ts +84 -0
  261. package/src/theme/defaults/fonts.ts +227 -0
  262. package/src/theme/getScopedTheme.ts +81 -0
  263. package/src/theme/index.ts +5 -8
  264. package/src/theme/system/avatar.ts +14 -0
  265. package/src/theme/system/color/_constants.ts +41 -0
  266. package/src/theme/system/color/_helpers.ts +23 -0
  267. package/src/theme/system/color/_system.ts +40 -0
  268. package/src/theme/system/color/avatar.ts +15 -0
  269. package/src/theme/system/color/badge.ts +20 -0
  270. package/src/theme/system/color/button.ts +17 -0
  271. package/src/theme/system/color/color.ts +34 -0
  272. package/src/theme/system/color/index.ts +13 -0
  273. package/src/theme/system/color/input.ts +25 -0
  274. package/src/theme/system/color/kbd.ts +8 -0
  275. package/src/theme/system/color/selectable.ts +12 -0
  276. package/src/theme/system/color/shadow.ts +7 -0
  277. package/src/theme/system/color/state.ts +37 -0
  278. package/src/theme/system/color/syntax.ts +41 -0
  279. package/src/theme/system/css.ts +9 -0
  280. package/src/theme/system/focusRing.ts +7 -0
  281. package/src/theme/system/index.ts +12 -0
  282. package/src/theme/system/input.ts +33 -0
  283. package/src/theme/system/layer.ts +8 -0
  284. package/src/theme/system/shadow.ts +19 -0
  285. package/src/theme/system/styles.ts +13 -0
  286. package/src/theme/system/theme.ts +130 -0
  287. package/src/theme/system/v0/avatar.ts +10 -0
  288. package/src/theme/system/v0/color/_generic.ts +35 -0
  289. package/src/theme/system/v0/color/_system.ts +13 -0
  290. package/src/theme/system/v0/color/base.ts +21 -0
  291. package/src/theme/system/v0/color/button.ts +42 -0
  292. package/src/theme/system/v0/color/card.ts +19 -0
  293. package/src/theme/system/v0/color/color.ts +40 -0
  294. package/src/theme/system/v0/color/index.ts +11 -0
  295. package/src/theme/system/v0/color/input.ts +34 -0
  296. package/src/theme/system/v0/color/muted.ts +26 -0
  297. package/src/theme/system/v0/color/selectable.ts +31 -0
  298. package/src/theme/system/v0/color/solid.ts +26 -0
  299. package/src/theme/system/v0/color/spot.ts +13 -0
  300. package/src/theme/system/v0/index.ts +3 -0
  301. package/src/theme/system/v0/input.ts +23 -0
  302. package/src/theme/versioning/getTheme_v2.ts +56 -0
  303. package/src/theme/versioning/index.ts +5 -0
  304. package/src/theme/versioning/is_v0.ts +6 -0
  305. package/src/theme/versioning/is_v2.ts +6 -0
  306. package/src/theme/versioning/themeColor_v0_v2.ts +217 -0
  307. package/src/theme/versioning/v0_v2.ts +90 -0
  308. package/src/theme/versioning/v2_v0.ts +126 -0
  309. package/src/__workshop__/constants.ts +0 -297
  310. package/src/components/autocomplete/__workshop__/async.tsx +0 -156
  311. package/src/components/autocomplete/__workshop__/constrainedHeight.tsx +0 -131
  312. package/src/components/autocomplete/__workshop__/custom.tsx +0 -83
  313. package/src/components/autocomplete/__workshop__/example.tsx +0 -78
  314. package/src/components/autocomplete/__workshop__/focusAndBlur.tsx +0 -34
  315. package/src/components/autocomplete/autocomplete.tsx +0 -714
  316. package/src/components/dialog/__workshop__/activate.tsx +0 -134
  317. package/src/components/dialog/__workshop__/layering.tsx +0 -37
  318. package/src/components/dialog/__workshop__/panes.tsx +0 -86
  319. package/src/components/dialog/constants.ts +0 -4
  320. package/src/components/dialog/dialog.tsx +0 -496
  321. package/src/components/dialog/styles.ts +0 -37
  322. package/src/components/hotkeys/hotkeys.tsx +0 -56
  323. package/src/components/menu/__workshop__/asComponent.tsx +0 -44
  324. package/src/components/menu/__workshop__/closableMenuButton.tsx +0 -46
  325. package/src/components/menu/__workshop__/customMenuItem.tsx +0 -39
  326. package/src/components/menu/__workshop__/disableFocusOnClose.tsx +0 -40
  327. package/src/components/menu/__workshop__/index.ts +0 -79
  328. package/src/components/menu/__workshop__/menuButton.tsx +0 -79
  329. package/src/components/menu/__workshop__/selectedItem.tsx +0 -64
  330. package/src/components/menu/menu.test.tsx +0 -129
  331. package/src/components/menu/menu.tsx +0 -167
  332. package/src/components/menu/menuButton.tsx +0 -268
  333. package/src/components/menu/menuDivider.ts +0 -12
  334. package/src/components/menu/menuGroup.tsx +0 -200
  335. package/src/components/menu/menuItem.tsx +0 -172
  336. package/src/components/skeleton/styles.ts +0 -51
  337. package/src/components/skeleton/textSkeleton.tsx +0 -120
  338. package/src/components/tab/tab.tsx +0 -100
  339. package/src/components/toast/toast.test.tsx +0 -102
  340. package/src/components/toast/toast.tsx +0 -86
  341. package/src/components/tree/__workshop__/tabFromElement.tsx +0 -83
  342. package/src/components/tree/style.ts +0 -106
  343. package/src/components/tree/treeItem.tsx +0 -200
  344. package/src/constants.ts +0 -19
  345. package/src/hooks/useElementRect/__workshop__/example.tsx +0 -29
  346. package/src/hooks/useMediaIndex/__workshop__/test.tsx +0 -14
  347. package/src/hooks/useMediaIndex/useMediaIndex.test.tsx +0 -31
  348. package/src/hooks/useMediaIndex/useMediaIndex.ts +0 -110
  349. package/src/index.ts +0 -9
  350. package/src/lib/isRecord.ts +0 -3
  351. package/src/primitives/_selectable/style.ts +0 -116
  352. package/src/primitives/avatar/__workshop__/asButton.tsx +0 -13
  353. package/src/primitives/avatar/__workshop__/stack.tsx +0 -24
  354. package/src/primitives/avatar/avatar.tsx +0 -177
  355. package/src/primitives/avatar/avatarCounter.tsx +0 -82
  356. package/src/primitives/avatar/avatarStack.tsx +0 -99
  357. package/src/primitives/avatar/spotColors.ts +0 -53
  358. package/src/primitives/avatar/styles.ts +0 -160
  359. package/src/primitives/avatar/types.ts +0 -29
  360. package/src/primitives/badge/__workshop__/props.tsx +0 -29
  361. package/src/primitives/badge/__workshop__/tones.tsx +0 -27
  362. package/src/primitives/badge/badge.test.tsx +0 -15
  363. package/src/primitives/badge/badge.tsx +0 -59
  364. package/src/primitives/badge/styles.ts +0 -19
  365. package/src/primitives/badge/types.ts +0 -9
  366. package/src/primitives/box/__workshop__/responsive.tsx +0 -20
  367. package/src/primitives/box/box.tsx +0 -126
  368. package/src/primitives/button/__workshop__/sanityUploadButton.tsx +0 -35
  369. package/src/primitives/button/__workshop__/stacked.tsx +0 -57
  370. package/src/primitives/button/button.test.tsx +0 -43
  371. package/src/primitives/button/button.tsx +0 -179
  372. package/src/primitives/button/styles.ts +0 -166
  373. package/src/primitives/card/__workshop__/asButton.tsx +0 -88
  374. package/src/primitives/card/__workshop__/asComponent.tsx +0 -27
  375. package/src/primitives/card/__workshop__/selected.tsx +0 -100
  376. package/src/primitives/card/card.tsx +0 -142
  377. package/src/primitives/card/styles.ts +0 -160
  378. package/src/primitives/card/types.ts +0 -12
  379. package/src/primitives/checkbox/__workshop__/example.tsx +0 -25
  380. package/src/primitives/checkbox/__workshop__/props.tsx +0 -33
  381. package/src/primitives/checkbox/__workshop__/readOnly.tsx +0 -16
  382. package/src/primitives/checkbox/checkbox.tsx +0 -64
  383. package/src/primitives/checkbox/styles.ts +0 -127
  384. package/src/primitives/code/code.tsx +0 -50
  385. package/src/primitives/code/styles.ts +0 -83
  386. package/src/primitives/container/container.tsx +0 -37
  387. package/src/primitives/container/styles.ts +0 -23
  388. package/src/primitives/flex/flex.tsx +0 -51
  389. package/src/primitives/grid/grid.tsx +0 -44
  390. package/src/primitives/heading/heading.tsx +0 -83
  391. package/src/primitives/heading/styles.ts +0 -58
  392. package/src/primitives/inline/inline.tsx +0 -47
  393. package/src/primitives/inline/styles.ts +0 -31
  394. package/src/primitives/kbd/kbd.tsx +0 -51
  395. package/src/primitives/label/label.tsx +0 -82
  396. package/src/primitives/label/styles.ts +0 -44
  397. package/src/primitives/popover/__workshop__/RecursiveStory.tsx +0 -78
  398. package/src/primitives/popover/__workshop__/TestStory.tsx +0 -93
  399. package/src/primitives/popover/constants.ts +0 -21
  400. package/src/primitives/popover/helpers.ts +0 -32
  401. package/src/primitives/popover/popover.tsx +0 -383
  402. package/src/primitives/popover/popoverArrow.tsx +0 -77
  403. package/src/primitives/popover/popoverCard.tsx +0 -138
  404. package/src/primitives/popover/types.ts +0 -6
  405. package/src/primitives/radio/radio.tsx +0 -42
  406. package/src/primitives/radio/styles.ts +0 -118
  407. package/src/primitives/select/select.tsx +0 -78
  408. package/src/primitives/select/styles.ts +0 -167
  409. package/src/primitives/spinner/spinner.tsx +0 -42
  410. package/src/primitives/stack/stack.tsx +0 -36
  411. package/src/primitives/stack/styles.ts +0 -32
  412. package/src/primitives/switch/__workshop__/example.tsx +0 -23
  413. package/src/primitives/switch/__workshop__/props.tsx +0 -41
  414. package/src/primitives/switch/styles.ts +0 -170
  415. package/src/primitives/switch/switch.tsx +0 -58
  416. package/src/primitives/text/__workshop__/colored.tsx +0 -27
  417. package/src/primitives/text/styles.ts +0 -69
  418. package/src/primitives/text/text.tsx +0 -83
  419. package/src/primitives/textArea/__workshop__/plain.tsx +0 -49
  420. package/src/primitives/textArea/textArea.tsx +0 -98
  421. package/src/primitives/textInput/__workshop__/plain.tsx +0 -98
  422. package/src/primitives/textInput/__workshop__/states.tsx +0 -45
  423. package/src/primitives/textInput/textInput.tsx +0 -372
  424. package/src/primitives/tooltip/__workshop__/index.ts +0 -14
  425. package/src/primitives/tooltip/__workshop__/props.tsx +0 -123
  426. package/src/primitives/tooltip/constants.ts +0 -16
  427. package/src/primitives/tooltip/tooltip.test.tsx +0 -278
  428. package/src/primitives/tooltip/tooltip.tsx +0 -333
  429. package/src/primitives/tooltip/tooltipArrow.tsx +0 -90
  430. package/src/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +0 -61
  431. package/src/primitives/types.ts +0 -142
  432. package/src/styles/border/borderStyle.ts +0 -58
  433. package/src/styles/box/boxStyle.ts +0 -72
  434. package/src/styles/colorVars/colorVarsStyle.ts +0 -84
  435. package/src/styles/colorVars/index.ts +0 -1
  436. package/src/styles/flex/flexItemStyle.ts +0 -27
  437. package/src/styles/flex/flexStyle.ts +0 -74
  438. package/src/styles/focusRing/index.ts +0 -27
  439. package/src/styles/font/codeFontStyle.ts +0 -12
  440. package/src/styles/font/headingFontStyle.ts +0 -12
  441. package/src/styles/font/labelFontStyle.ts +0 -12
  442. package/src/styles/font/responsiveFont.ts +0 -101
  443. package/src/styles/font/textAlignStyle.ts +0 -18
  444. package/src/styles/font/textFontStyle.ts +0 -12
  445. package/src/styles/font/types.ts +0 -34
  446. package/src/styles/grid/gridItemStyle.ts +0 -87
  447. package/src/styles/grid/gridStyle.ts +0 -115
  448. package/src/styles/helpers.ts +0 -70
  449. package/src/styles/input/responsiveInputPaddingStyle.ts +0 -77
  450. package/src/styles/input/textInputStyle.ts +0 -214
  451. package/src/styles/margin/marginStyle.ts +0 -20
  452. package/src/styles/margin/marginsStyle.test.ts +0 -32
  453. package/src/styles/padding/paddingStyle.test.ts +0 -32
  454. package/src/styles/padding/paddingStyle.ts +0 -20
  455. package/src/styles/radius/radiusStyle.ts +0 -23
  456. package/src/styles/shadow/shadowStyle.ts +0 -28
  457. package/src/styles/types.ts +0 -8
  458. package/src/theme/__workshop__/color.tsx +0 -65
  459. package/src/theme/__workshop__/index.ts +0 -24
  460. package/src/theme/defaults.ts +0 -7
  461. package/src/theme/lib/color-fns/blend/index.ts +0 -2
  462. package/src/theme/lib/color-fns/blend/multiply.ts +0 -22
  463. package/src/theme/lib/color-fns/blend/screen.ts +0 -22
  464. package/src/theme/lib/color-fns/color-fns.test.ts +0 -65
  465. package/src/theme/lib/color-fns/convert.ts +0 -141
  466. package/src/theme/lib/color-fns/helpers/index.ts +0 -1
  467. package/src/theme/lib/color-fns/helpers/rgba.ts +0 -10
  468. package/src/theme/lib/color-fns/index.ts +0 -5
  469. package/src/theme/lib/theme/avatar.ts +0 -12
  470. package/src/theme/lib/theme/color/_legacy/createColorTheme.ts +0 -7
  471. package/src/theme/lib/theme/color/_legacy/index.ts +0 -1
  472. package/src/theme/lib/theme/color/_legacy/legacyColor.ts +0 -3997
  473. package/src/theme/lib/theme/color/cssVariables/cardVariables.ts +0 -88
  474. package/src/theme/lib/theme/color/cssVariables/createCssVars.ts +0 -31
  475. package/src/theme/lib/theme/color/cssVariables/cssVars.test.ts +0 -262
  476. package/src/theme/lib/theme/color/cssVariables/index.ts +0 -1
  477. package/src/theme/lib/theme/color/cssVariables/tints.ts +0 -312
  478. package/src/theme/lib/theme/color/cssVariables/tones.ts +0 -67
  479. package/src/theme/lib/theme/color/cssVariables/utils.test.ts +0 -15
  480. package/src/theme/lib/theme/color/cssVariables/utils.ts +0 -9
  481. package/src/theme/lib/theme/color/index.ts +0 -5
  482. package/src/theme/lib/theme/color/types.ts +0 -41
  483. package/src/theme/lib/theme/index.ts +0 -7
  484. package/src/theme/lib/theme/input.ts +0 -33
  485. package/src/theme/lib/theme/layer.ts +0 -9
  486. package/src/theme/lib/theme/shadow.ts +0 -20
  487. package/src/theme/lib/theme/theme.ts +0 -43
  488. package/src/theme/studioTheme/color.ts +0 -11
  489. package/src/theme/studioTheme/fonts.ts +0 -219
  490. package/src/theme/studioTheme/helpers.ts +0 -31
  491. package/src/theme/studioTheme/index.ts +0 -1
  492. package/src/theme/studioTheme/theme.ts +0 -88
  493. package/src/theme/theme.test.tsx +0 -106
  494. package/src/theme/themeColorProvider.tsx +0 -28
  495. package/src/theme/themeContext.ts +0 -12
  496. package/src/theme/themeProvider.tsx +0 -81
  497. package/src/theme/toneContext/toneContext.ts +0 -12
  498. package/src/theme/toneContext/toneProvider.tsx +0 -31
  499. package/src/theme/toneContext/types.ts +0 -10
  500. package/src/theme/toneContext/useToneContext.tsx +0 -26
  501. package/src/theme/types.ts +0 -45
  502. package/src/theme/useRootTheme.ts +0 -25
  503. package/src/theme/useTheme.ts +0 -10
  504. package/src/types/avatar.ts +0 -14
  505. package/src/types/badge.ts +0 -9
  506. package/src/types/button.ts +0 -14
  507. package/src/types/card.ts +0 -6
  508. package/src/types/index.ts +0 -15
  509. package/src/types/selectable.ts +0 -4
  510. package/src/types/styled.ts +0 -9
  511. package/src/utils/boundaryElement/__workshop__/plain.tsx +0 -23
  512. package/src/utils/boundaryElement/boundaryElement.test.tsx +0 -101
  513. package/src/utils/elementQuery/__workshop__/customMedia.tsx +0 -31
  514. package/src/utils/elementQuery/elementQuery.tsx +0 -53
  515. package/src/utils/index.ts +0 -7
  516. package/src/utils/layer/__workshop__/_debug.tsx +0 -17
  517. package/src/utils/layer/layer.test.tsx +0 -109
  518. package/src/utils/portal/__workshop__/named.tsx +0 -61
  519. package/src/utils/portal/portal.test.tsx +0 -104
  520. package/src/utils/virtualList/virtualList.tsx +0 -167
  521. /package/src/{components → core/components}/autocomplete/__fixtures__/countries.ts +0 -0
  522. /package/src/{components → core/components}/autocomplete/__mocks__/apiStore.ts +0 -0
  523. /package/src/{components → core/components}/autocomplete/__workshop__/.eslintrc +0 -0
  524. /package/src/{components → core/components}/autocomplete/__workshop__/fullscreen.tsx +0 -0
  525. /package/src/{components → core/components}/autocomplete/__workshop__/index.ts +0 -0
  526. /package/src/{components → core/components}/autocomplete/__workshop__/types.ts +0 -0
  527. /package/src/{components → core/components}/autocomplete/autocomplete.styles.tsx +0 -0
  528. /package/src/{components → core/components}/autocomplete/autocompleteOption.tsx +0 -0
  529. /package/src/{components → core/components}/autocomplete/autocompleteReducer.ts +0 -0
  530. /package/src/{components → core/components}/autocomplete/constants.ts +0 -0
  531. /package/src/{components → core/components}/autocomplete/index.ts +0 -0
  532. /package/src/{components → core/components}/autocomplete/types.ts +0 -0
  533. /package/src/{components → core/components}/breadcrumbs/__workshop__/.eslintrc +0 -0
  534. /package/src/{components → core/components}/breadcrumbs/__workshop__/example.tsx +0 -0
  535. /package/src/{components → core/components}/breadcrumbs/__workshop__/index.ts +0 -0
  536. /package/src/{components → core/components}/breadcrumbs/breadcrumbs.styles.ts +0 -0
  537. /package/src/{components → core/components}/breadcrumbs/breadcrumbs.tsx +0 -0
  538. /package/src/{components → core/components}/breadcrumbs/index.ts +0 -0
  539. /package/src/{components → core/components}/dialog/__workshop__/.eslintrc +0 -0
  540. /package/src/{components → core/components}/dialog/__workshop__/autoFocus.tsx +0 -0
  541. /package/src/{components → core/components}/dialog/__workshop__/index.ts +0 -0
  542. /package/src/{components → core/components}/dialog/__workshop__/nested.tsx +0 -0
  543. /package/src/{components → core/components}/dialog/__workshop__/onScroll.tsx +0 -0
  544. /package/src/{components → core/components}/dialog/__workshop__/position.tsx +0 -0
  545. /package/src/{components → core/components}/dialog/__workshop__/props.tsx +0 -0
  546. /package/src/{components → core/components}/dialog/__workshop__/provider.tsx +0 -0
  547. /package/src/{components → core/components}/dialog/__workshop__/wrapped.tsx +0 -0
  548. /package/src/{components → core/components}/dialog/dialogContext.ts +0 -0
  549. /package/src/{components → core/components}/dialog/dialogProvider.tsx +0 -0
  550. /package/src/{components → core/components}/dialog/index.ts +0 -0
  551. /package/src/{components → core/components}/dialog/useDialog.ts +0 -0
  552. /package/src/{components → core/components}/hotkeys/__workshop__/.eslintrc +0 -0
  553. /package/src/{components → core/components}/hotkeys/__workshop__/index.ts +0 -0
  554. /package/src/{components → core/components}/hotkeys/__workshop__/plain.tsx +0 -0
  555. /package/src/{components → core/components}/hotkeys/index.ts +0 -0
  556. /package/src/{components → core/components}/index.ts +0 -0
  557. /package/src/{components → core/components}/menu/__workshop__/.eslintrc +0 -0
  558. /package/src/{components → core/components}/menu/__workshop__/constrainedInBoundary.tsx +0 -0
  559. /package/src/{components → core/components}/menu/__workshop__/groups.tsx +0 -0
  560. /package/src/{components → core/components}/menu/__workshop__/menuGroupRight.tsx +0 -0
  561. /package/src/{components → core/components}/menu/__workshop__/nestedMenu.tsx +0 -0
  562. /package/src/{components → core/components}/menu/__workshop__/onCloseMenuButton.tsx +0 -0
  563. /package/src/{components → core/components}/menu/__workshop__/shouldFocus.tsx +0 -0
  564. /package/src/{components → core/components}/menu/__workshop__/tones.tsx +0 -0
  565. /package/src/{components → core/components}/menu/__workshop__/withoutArrow.tsx +0 -0
  566. /package/src/{components → core/components}/menu/helpers.ts +0 -0
  567. /package/src/{components → core/components}/menu/index.ts +0 -0
  568. /package/src/{components → core/components}/menu/menuContext.ts +0 -0
  569. /package/src/{components → core/components}/menu/useMenu.ts +0 -0
  570. /package/src/{components → core/components}/menu/useMenuController.ts +0 -0
  571. /package/src/{components → core/components}/skeleton/__workshop__/.eslintrc +0 -0
  572. /package/src/{components → core/components}/skeleton/__workshop__/delay.tsx +0 -0
  573. /package/src/{components → core/components}/skeleton/__workshop__/index.ts +0 -0
  574. /package/src/{components → core/components}/skeleton/__workshop__/skeleton.tsx +0 -0
  575. /package/src/{components → core/components}/skeleton/index.ts +0 -0
  576. /package/src/{components → core/components}/skeleton/skeleton.tsx +0 -0
  577. /package/src/{components → core/components}/tab/__workshop__/.eslintrc +0 -0
  578. /package/src/{components → core/components}/tab/__workshop__/example.tsx +0 -0
  579. /package/src/{components → core/components}/tab/__workshop__/index.ts +0 -0
  580. /package/src/{components → core/components}/tab/index.ts +0 -0
  581. /package/src/{components → core/components}/tab/tabList.tsx +0 -0
  582. /package/src/{components → core/components}/tab/tabPanel.tsx +0 -0
  583. /package/src/{components → core/components}/toast/__workshop__/.eslintrc +0 -0
  584. /package/src/{components → core/components}/toast/__workshop__/hook.tsx +0 -0
  585. /package/src/{components → core/components}/toast/__workshop__/index.ts +0 -0
  586. /package/src/{components → core/components}/toast/__workshop__/toast.tsx +0 -0
  587. /package/src/{components → core/components}/toast/index.ts +0 -0
  588. /package/src/{components → core/components}/toast/toastContext.ts +0 -0
  589. /package/src/{components → core/components}/toast/toastProvider.tsx +0 -0
  590. /package/src/{components → core/components}/toast/types.ts +0 -0
  591. /package/src/{components → core/components}/toast/useToast.ts +0 -0
  592. /package/src/{components → core/components}/tree/__workshop__/.eslintrc +0 -0
  593. /package/src/{components → core/components}/tree/__workshop__/basic.perf.ts +0 -0
  594. /package/src/{components → core/components}/tree/__workshop__/basic.tsx +0 -0
  595. /package/src/{components → core/components}/tree/__workshop__/index.ts +0 -0
  596. /package/src/{components → core/components}/tree/helpers.ts +0 -0
  597. /package/src/{components → core/components}/tree/index.ts +0 -0
  598. /package/src/{components → core/components}/tree/tree.tsx +0 -0
  599. /package/src/{components → core/components}/tree/treeContext.ts +0 -0
  600. /package/src/{components → core/components}/tree/treeGroup.tsx +0 -0
  601. /package/src/{components → core/components}/tree/types.ts +0 -0
  602. /package/src/{components → core/components}/tree/useTree.ts +0 -0
  603. /package/src/{global.ts → core/global.ts} +0 -0
  604. /package/src/{helpers → core/helpers}/animation.ts +0 -0
  605. /package/src/{helpers → core/helpers}/element.ts +0 -0
  606. /package/src/{helpers → core/helpers}/focus.ts +0 -0
  607. /package/src/{helpers → core/helpers}/index.ts +0 -0
  608. /package/src/{helpers → core/helpers}/scroll.ts +0 -0
  609. /package/src/{hooks → core/hooks}/_internal/index.ts +0 -0
  610. /package/src/{hooks → core/hooks}/_internal/useUnique.ts +0 -0
  611. /package/src/{hooks → core/hooks}/index.ts +0 -0
  612. /package/src/{hooks → core/hooks}/useArrayProp.ts +0 -0
  613. /package/src/{hooks → core/hooks}/useClickOutside.ts +0 -0
  614. /package/src/{hooks → core/hooks}/useCustomValidity.ts +0 -0
  615. /package/src/{hooks → core/hooks}/useDelayed.test.ts +0 -0
  616. /package/src/{hooks → core/hooks}/useDelayedState.ts +0 -0
  617. /package/src/{hooks → core/hooks}/useElementRect/__workshop__/.eslintrc +0 -0
  618. /package/src/{hooks → core/hooks}/useElementRect/__workshop__/index.ts +0 -0
  619. /package/src/{hooks → core/hooks}/useElementRect/index.ts +0 -0
  620. /package/src/{hooks → core/hooks}/useElementRect/useElementRect.ts +0 -0
  621. /package/src/{hooks → core/hooks}/useElementSize.ts +0 -0
  622. /package/src/{hooks → core/hooks}/useForwardedRef.ts +0 -0
  623. /package/src/{hooks → core/hooks}/useGlobalKeyDown.ts +0 -0
  624. /package/src/{hooks → core/hooks}/useIsomorphicEffect.ts +0 -0
  625. /package/src/{hooks → core/hooks}/useMediaIndex/__workshop__/.eslintrc +0 -0
  626. /package/src/{hooks → core/hooks}/useMediaIndex/__workshop__/index.ts +0 -0
  627. /package/src/{hooks → core/hooks}/useMediaIndex/index.ts +0 -0
  628. /package/src/{hooks → core/hooks}/useMounted.ts +0 -0
  629. /package/src/{hooks → core/hooks}/usePrefersDark.hydration.test.tsx +0 -0
  630. /package/src/{hooks → core/hooks}/usePrefersDark.test.tsx +0 -0
  631. /package/src/{hooks → core/hooks}/usePrefersDark.ts +0 -0
  632. /package/src/{hooks → core/hooks}/usePrefersReducedMotion.hydration.test.tsx +0 -0
  633. /package/src/{hooks → core/hooks}/usePrefersReducedMotion.test.tsx +0 -0
  634. /package/src/{hooks → core/hooks}/usePrefersReducedMotion.ts +0 -0
  635. /package/src/{lib → core/lib}/globalScope.ts +0 -0
  636. /package/src/{observers → core/observers}/elementSizeObserver.ts +0 -0
  637. /package/src/{observers → core/observers}/index.ts +0 -0
  638. /package/src/{observers → core/observers}/resizeObserver.ts +0 -0
  639. /package/src/{primitives → core/primitives}/_selectable/index.ts +0 -0
  640. /package/src/{primitives → core/primitives}/_selectable/selectable.tsx +0 -0
  641. /package/src/{primitives → core/primitives}/avatar/__workshop__/.eslintrc +0 -0
  642. /package/src/{primitives → core/primitives}/avatar/__workshop__/index.ts +0 -0
  643. /package/src/{primitives → core/primitives}/avatar/index.ts +0 -0
  644. /package/src/{primitives → core/primitives}/badge/__workshop__/.eslintrc +0 -0
  645. /package/src/{primitives → core/primitives}/badge/__workshop__/index.ts +0 -0
  646. /package/src/{primitives → core/primitives}/badge/index.ts +0 -0
  647. /package/src/{primitives → core/primitives}/box/__workshop__/.eslintrc +0 -0
  648. /package/src/{primitives → core/primitives}/box/__workshop__/index.ts +0 -0
  649. /package/src/{primitives → core/primitives}/box/__workshop__/props.tsx +0 -0
  650. /package/src/{primitives → core/primitives}/box/index.ts +0 -0
  651. /package/src/{primitives → core/primitives}/button/__workshop__/.eslintrc +0 -0
  652. /package/src/{primitives → core/primitives}/button/__workshop__/custom.tsx +0 -0
  653. /package/src/{primitives → core/primitives}/button/__workshop__/customIcons.tsx +0 -0
  654. /package/src/{primitives → core/primitives}/button/__workshop__/index.ts +0 -0
  655. /package/src/{primitives → core/primitives}/button/__workshop__/mixedChildren.tsx +0 -0
  656. /package/src/{primitives → core/primitives}/button/__workshop__/props.tsx +0 -0
  657. /package/src/{primitives → core/primitives}/button/__workshop__/styled1.tsx +0 -0
  658. /package/src/{primitives → core/primitives}/button/__workshop__/styled2.tsx +0 -0
  659. /package/src/{primitives → core/primitives}/button/__workshop__/uploadButton.tsx +0 -0
  660. /package/src/{primitives → core/primitives}/button/index.ts +0 -0
  661. /package/src/{primitives → core/primitives}/card/__workshop__/.eslintrc +0 -0
  662. /package/src/{primitives → core/primitives}/card/__workshop__/allTones.tsx +0 -0
  663. /package/src/{primitives → core/primitives}/card/__workshop__/checkered.tsx +0 -0
  664. /package/src/{primitives → core/primitives}/card/__workshop__/index.ts +0 -0
  665. /package/src/{primitives → core/primitives}/card/__workshop__/interactive.tsx +0 -0
  666. /package/src/{primitives → core/primitives}/card/__workshop__/listNavigation.tsx +0 -0
  667. /package/src/{primitives → core/primitives}/card/__workshop__/props.tsx +0 -0
  668. /package/src/{primitives → core/primitives}/card/__workshop__/styled.tsx +0 -0
  669. /package/src/{primitives → core/primitives}/card/index.ts +0 -0
  670. /package/src/{primitives → core/primitives}/checkbox/__workshop__/.eslintrc +0 -0
  671. /package/src/{primitives → core/primitives}/checkbox/__workshop__/index.ts +0 -0
  672. /package/src/{primitives → core/primitives}/checkbox/__workshop__/tones.tsx +0 -0
  673. /package/src/{primitives → core/primitives}/checkbox/index.ts +0 -0
  674. /package/src/{primitives → core/primitives}/code/__workshop__/.eslintrc +0 -0
  675. /package/src/{primitives → core/primitives}/code/__workshop__/index.ts +0 -0
  676. /package/src/{primitives → core/primitives}/code/__workshop__/opticalAlignment.tsx +0 -0
  677. /package/src/{primitives → core/primitives}/code/__workshop__/props.tsx +0 -0
  678. /package/src/{primitives → core/primitives}/code/index.ts +0 -0
  679. /package/src/{primitives → core/primitives}/container/__workshop__/.eslintrc +0 -0
  680. /package/src/{primitives → core/primitives}/container/__workshop__/example.tsx +0 -0
  681. /package/src/{primitives → core/primitives}/container/__workshop__/index.ts +0 -0
  682. /package/src/{primitives → core/primitives}/container/index.ts +0 -0
  683. /package/src/{primitives → core/primitives}/container/types.ts +0 -0
  684. /package/src/{primitives → core/primitives}/flex/__workshop__/.eslintrc +0 -0
  685. /package/src/{primitives → core/primitives}/flex/__workshop__/example.tsx +0 -0
  686. /package/src/{primitives → core/primitives}/flex/__workshop__/gap.tsx +0 -0
  687. /package/src/{primitives → core/primitives}/flex/__workshop__/index.ts +0 -0
  688. /package/src/{primitives → core/primitives}/flex/index.ts +0 -0
  689. /package/src/{primitives → core/primitives}/grid/__workshop__/.eslintrc +0 -0
  690. /package/src/{primitives → core/primitives}/grid/__workshop__/index.ts +0 -0
  691. /package/src/{primitives → core/primitives}/grid/__workshop__/responsive.tsx +0 -0
  692. /package/src/{primitives → core/primitives}/grid/index.ts +0 -0
  693. /package/src/{primitives → core/primitives}/heading/__workshop__/.eslintrc +0 -0
  694. /package/src/{primitives → core/primitives}/heading/__workshop__/index.ts +0 -0
  695. /package/src/{primitives → core/primitives}/heading/__workshop__/opticalAlignment.tsx +0 -0
  696. /package/src/{primitives → core/primitives}/heading/__workshop__/plain.tsx +0 -0
  697. /package/src/{primitives → core/primitives}/heading/index.ts +0 -0
  698. /package/src/{primitives → core/primitives}/heading/types.ts +0 -0
  699. /package/src/{primitives → core/primitives}/helpers.ts +0 -0
  700. /package/src/{primitives → core/primitives}/index.ts +0 -0
  701. /package/src/{primitives → core/primitives}/inline/__workshop__/.eslintrc +0 -0
  702. /package/src/{primitives → core/primitives}/inline/__workshop__/index.ts +0 -0
  703. /package/src/{primitives → core/primitives}/inline/__workshop__/plain.tsx +0 -0
  704. /package/src/{primitives → core/primitives}/inline/index.ts +0 -0
  705. /package/src/{primitives → core/primitives}/inline/types.ts +0 -0
  706. /package/src/{primitives → core/primitives}/kbd/__workshop__/.eslintrc +0 -0
  707. /package/src/{primitives → core/primitives}/kbd/__workshop__/index.ts +0 -0
  708. /package/src/{primitives → core/primitives}/kbd/__workshop__/plain.tsx +0 -0
  709. /package/src/{primitives → core/primitives}/kbd/index.tsx +0 -0
  710. /package/src/{primitives → core/primitives}/label/__workshop__/.eslintrc +0 -0
  711. /package/src/{primitives → core/primitives}/label/__workshop__/index.ts +0 -0
  712. /package/src/{primitives → core/primitives}/label/__workshop__/opticalAlignment.tsx +0 -0
  713. /package/src/{primitives → core/primitives}/label/__workshop__/plain.tsx +0 -0
  714. /package/src/{primitives → core/primitives}/label/index.ts +0 -0
  715. /package/src/{primitives → core/primitives}/popover/__workshop__/.eslintrc +0 -0
  716. /package/src/{primitives → core/primitives}/popover/__workshop__/AlignedStory.tsx +0 -0
  717. /package/src/{primitives → core/primitives}/popover/__workshop__/MarginsStory.tsx +0 -0
  718. /package/src/{primitives → core/primitives}/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -0
  719. /package/src/{primitives → core/primitives}/popover/__workshop__/OpenOnMountStory.tsx +0 -0
  720. /package/src/{primitives → core/primitives}/popover/__workshop__/PlainStory.tsx +0 -0
  721. /package/src/{primitives → core/primitives}/popover/__workshop__/SidePanelStory.tsx +0 -0
  722. /package/src/{primitives → core/primitives}/popover/__workshop__/index.ts +0 -0
  723. /package/src/{primitives → core/primitives}/popover/floating-ui/size.ts +0 -0
  724. /package/src/{primitives → core/primitives}/popover/index.ts +0 -0
  725. /package/src/{primitives → core/primitives}/radio/__workshop__/.eslintrc +0 -0
  726. /package/src/{primitives → core/primitives}/radio/__workshop__/example.tsx +0 -0
  727. /package/src/{primitives → core/primitives}/radio/__workshop__/index.ts +0 -0
  728. /package/src/{primitives → core/primitives}/radio/__workshop__/plain.tsx +0 -0
  729. /package/src/{primitives → core/primitives}/radio/index.ts +0 -0
  730. /package/src/{primitives → core/primitives}/select/__workshop__/.eslintrc +0 -0
  731. /package/src/{primitives → core/primitives}/select/__workshop__/index.ts +0 -0
  732. /package/src/{primitives → core/primitives}/select/__workshop__/plain.tsx +0 -0
  733. /package/src/{primitives → core/primitives}/select/__workshop__/readOnly.tsx +0 -0
  734. /package/src/{primitives → core/primitives}/select/index.ts +0 -0
  735. /package/src/{primitives → core/primitives}/spinner/__workshop__/.eslintrc +0 -0
  736. /package/src/{primitives → core/primitives}/spinner/__workshop__/Props.tsx +0 -0
  737. /package/src/{primitives → core/primitives}/spinner/__workshop__/index.ts +0 -0
  738. /package/src/{primitives → core/primitives}/spinner/index.ts +0 -0
  739. /package/src/{primitives → core/primitives}/stack/__workshop__/.eslintrc +0 -0
  740. /package/src/{primitives → core/primitives}/stack/__workshop__/index.ts +0 -0
  741. /package/src/{primitives → core/primitives}/stack/__workshop__/plain.tsx +0 -0
  742. /package/src/{primitives → core/primitives}/stack/index.ts +0 -0
  743. /package/src/{primitives → core/primitives}/switch/__workshop__/.eslintrc +0 -0
  744. /package/src/{primitives → core/primitives}/switch/__workshop__/index.ts +0 -0
  745. /package/src/{primitives → core/primitives}/switch/index.ts +0 -0
  746. /package/src/{primitives → core/primitives}/text/__workshop__/.eslintrc +0 -0
  747. /package/src/{primitives → core/primitives}/text/__workshop__/example.tsx +0 -0
  748. /package/src/{primitives → core/primitives}/text/__workshop__/index.ts +0 -0
  749. /package/src/{primitives → core/primitives}/text/__workshop__/opticalAlignment.tsx +0 -0
  750. /package/src/{primitives → core/primitives}/text/index.ts +0 -0
  751. /package/src/{primitives → core/primitives}/textArea/__workshop__/.eslintrc +0 -0
  752. /package/src/{primitives → core/primitives}/textArea/__workshop__/index.ts +0 -0
  753. /package/src/{primitives → core/primitives}/textArea/index.ts +0 -0
  754. /package/src/{primitives → core/primitives}/textInput/__workshop__/.eslintrc +0 -0
  755. /package/src/{primitives → core/primitives}/textInput/__workshop__/clearButton.tsx +0 -0
  756. /package/src/{primitives → core/primitives}/textInput/__workshop__/customValidity.tsx +0 -0
  757. /package/src/{primitives → core/primitives}/textInput/__workshop__/index.ts +0 -0
  758. /package/src/{primitives → core/primitives}/textInput/__workshop__/multipleTones.tsx +0 -0
  759. /package/src/{primitives → core/primitives}/textInput/__workshop__/readOnly.tsx +0 -0
  760. /package/src/{primitives → core/primitives}/textInput/__workshop__/tones.tsx +0 -0
  761. /package/src/{primitives → core/primitives}/textInput/__workshop__/typed.tsx +0 -0
  762. /package/src/{primitives → core/primitives}/textInput/index.ts +0 -0
  763. /package/src/{primitives → core/primitives}/tooltip/__workshop__/.eslintrc +0 -0
  764. /package/src/{primitives → core/primitives}/tooltip/index.ts +0 -0
  765. /package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/index.ts +0 -0
  766. /package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +0 -0
  767. /package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/types.ts +0 -0
  768. /package/src/{primitives → core/primitives}/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -0
  769. /package/src/{styles → core/styles}/border/index.ts +0 -0
  770. /package/src/{styles → core/styles}/border/types.ts +0 -0
  771. /package/src/{styles → core/styles}/box/index.ts +0 -0
  772. /package/src/{styles → core/styles}/box/types.ts +0 -0
  773. /package/src/{styles → core/styles}/flex/index.ts +0 -0
  774. /package/src/{styles → core/styles}/flex/types.ts +0 -0
  775. /package/src/{styles → core/styles}/font/index.ts +0 -0
  776. /package/src/{styles → core/styles}/grid/index.ts +0 -0
  777. /package/src/{styles → core/styles}/grid/types.ts +0 -0
  778. /package/src/{styles → core/styles}/index.ts +0 -0
  779. /package/src/{styles → core/styles}/input/index.ts +0 -0
  780. /package/src/{styles → core/styles}/internal.ts +0 -0
  781. /package/src/{styles → core/styles}/margin/index.ts +0 -0
  782. /package/src/{styles → core/styles}/margin/types.ts +0 -0
  783. /package/src/{styles → core/styles}/padding/index.ts +0 -0
  784. /package/src/{styles → core/styles}/padding/types.ts +0 -0
  785. /package/src/{styles → core/styles}/radius/index.ts +0 -0
  786. /package/src/{styles → core/styles}/radius/types.ts +0 -0
  787. /package/src/{styles → core/styles}/shadow/index.ts +0 -0
  788. /package/src/{styles → core/styles}/shadow/types.ts +0 -0
  789. /package/src/{theme → core/theme}/__workshop__/.eslintrc +0 -0
  790. /package/src/{theme → core/theme}/__workshop__/layer.tsx +0 -0
  791. /package/src/{theme → core/theme}/__workshop__/nestedProvider.tsx +0 -0
  792. /package/src/{types → core/types}/box.ts +0 -0
  793. /package/src/{types → core/types}/dialog.ts +0 -0
  794. /package/src/{types → core/types}/flex.ts +0 -0
  795. /package/src/{types → core/types}/grid.ts +0 -0
  796. /package/src/{types → core/types}/gridItem.ts +0 -0
  797. /package/src/{types → core/types}/placement.ts +0 -0
  798. /package/src/{types → core/types}/popover.ts +0 -0
  799. /package/src/{types → core/types}/radius.ts +0 -0
  800. /package/src/{types → core/types}/text.ts +0 -0
  801. /package/src/{utils → core/utils}/boundaryElement/__workshop__/.eslintrc +0 -0
  802. /package/src/{utils → core/utils}/boundaryElement/__workshop__/index.ts +0 -0
  803. /package/src/{utils → core/utils}/boundaryElement/boundaryElementContext.ts +0 -0
  804. /package/src/{utils → core/utils}/boundaryElement/boundaryElementProvider.tsx +0 -0
  805. /package/src/{utils → core/utils}/boundaryElement/index.ts +0 -0
  806. /package/src/{utils → core/utils}/boundaryElement/types.ts +0 -0
  807. /package/src/{utils → core/utils}/boundaryElement/useBoundaryElement.ts +0 -0
  808. /package/src/{utils → core/utils}/elementQuery/__workshop__/.eslintrc +0 -0
  809. /package/src/{utils → core/utils}/elementQuery/__workshop__/index.ts +0 -0
  810. /package/src/{utils → core/utils}/elementQuery/helpers.ts +0 -0
  811. /package/src/{utils → core/utils}/elementQuery/index.ts +0 -0
  812. /package/src/{utils → core/utils}/errorBoundary.tsx +0 -0
  813. /package/src/{utils → core/utils}/layer/__workshop__/.eslintrc +0 -0
  814. /package/src/{utils → core/utils}/layer/__workshop__/index.ts +0 -0
  815. /package/src/{utils → core/utils}/layer/__workshop__/multipleRoots.tsx +0 -0
  816. /package/src/{utils → core/utils}/layer/__workshop__/nested.tsx +0 -0
  817. /package/src/{utils → core/utils}/layer/__workshop__/responsiveZOffset.tsx +0 -0
  818. /package/src/{utils → core/utils}/layer/getLayerContext.test.ts +0 -0
  819. /package/src/{utils → core/utils}/layer/getLayerContext.ts +0 -0
  820. /package/src/{utils → core/utils}/layer/index.ts +0 -0
  821. /package/src/{utils → core/utils}/layer/layer.tsx +0 -0
  822. /package/src/{utils → core/utils}/layer/layerContext.ts +0 -0
  823. /package/src/{utils → core/utils}/layer/layerProvider.tsx +0 -0
  824. /package/src/{utils → core/utils}/layer/types.ts +0 -0
  825. /package/src/{utils → core/utils}/layer/useLayer.ts +0 -0
  826. /package/src/{utils → core/utils}/portal/__workshop__/.eslintrc +0 -0
  827. /package/src/{utils → core/utils}/portal/__workshop__/index.ts +0 -0
  828. /package/src/{utils → core/utils}/portal/index.ts +0 -0
  829. /package/src/{utils → core/utils}/portal/portal.ts +0 -0
  830. /package/src/{utils → core/utils}/portal/portalContext.ts +0 -0
  831. /package/src/{utils → core/utils}/portal/portalProvider.tsx +0 -0
  832. /package/src/{utils → core/utils}/portal/types.ts +0 -0
  833. /package/src/{utils → core/utils}/portal/usePortal.ts +0 -0
  834. /package/src/{utils → core/utils}/srOnly/index.ts +0 -0
  835. /package/src/{utils → core/utils}/srOnly/srOnly.tsx +0 -0
  836. /package/src/{utils → core/utils}/virtualList/__workshop__/.eslintrc +0 -0
  837. /package/src/{utils → core/utils}/virtualList/__workshop__/changingProps.tsx +0 -0
  838. /package/src/{utils → core/utils}/virtualList/__workshop__/elementScroll.tsx +0 -0
  839. /package/src/{utils → core/utils}/virtualList/__workshop__/index.ts +0 -0
  840. /package/src/{utils → core/utils}/virtualList/__workshop__/infiniteList.tsx +0 -0
  841. /package/src/{utils → core/utils}/virtualList/__workshop__/windowScrolll.tsx +0 -0
  842. /package/src/{utils → core/utils}/virtualList/index.ts +0 -0
  843. /package/src/theme/{lib → build/lib}/color-fns/parse.ts +0 -0
  844. /package/src/theme/{lib → build/lib}/color-fns/types.ts +0 -0
  845. /package/src/theme/{lib/theme/fonts.ts → system/font.ts} +0 -0
package/dist/index.d.ts CHANGED
@@ -2,16 +2,18 @@
2
2
 
3
3
  import {AnimationEventHandler} from 'react'
4
4
  import {AriaRole} from 'react'
5
+ import {BaseTheme as BaseTheme_2} from '@sanity/ui/theme'
5
6
  import {ClipboardEventHandler} from 'react'
6
- import {ColorTints} from '@sanity/color'
7
7
  import {Component} from 'react'
8
8
  import {CompositionEventHandler} from 'react'
9
+ import {CSSObject} from '@sanity/ui/theme'
9
10
  import {CSSProperties} from 'react'
10
11
  import {DragEventHandler} from 'react'
11
12
  import {ElementType} from 'react'
12
13
  import {FocusEventHandler} from 'react'
13
14
  import {FormEventHandler} from 'react'
14
15
  import {ForwardRefExoticComponent} from 'react'
16
+ import {HSL as HSL_2} from '@sanity/ui/theme'
15
17
  import {HTMLProps} from 'react'
16
18
  import {IStyledComponent} from 'styled-components'
17
19
  import {Key} from 'react'
@@ -21,6 +23,7 @@ import {MemoExoticComponent} from 'react'
21
23
  import {MouseEventHandler} from 'react'
22
24
  import {MutableRefObject} from 'react'
23
25
  import {NamedExoticComponent} from 'react'
26
+ import {PartialThemeColorBuilderOpts} from '@sanity/ui/theme'
24
27
  import {PointerEventHandler} from 'react'
25
28
  import {PropsWithChildren} from 'react'
26
29
  import {ReactElement} from 'react'
@@ -29,7 +32,54 @@ import {ReactNode} from 'react'
29
32
  import {Ref} from 'react'
30
33
  import {RefAttributes} from 'react'
31
34
  import {RefCallback} from 'react'
32
- import type {StyledObject} from 'styled-components'
35
+ import {RGB as RGB_2} from '@sanity/ui/theme'
36
+ import {RootTheme as RootTheme_2} from '@sanity/ui/theme'
37
+ import {Theme as Theme_2} from '@sanity/ui/theme'
38
+ import {Theme_v2} from '@sanity/ui/theme'
39
+ import {ThemeAvatar} from '@sanity/ui/theme'
40
+ import {ThemeBoxShadow} from '@sanity/ui/theme'
41
+ import {ThemeColor} from '@sanity/ui/theme'
42
+ import {ThemeColorAvatarColorKey} from '@sanity/ui/theme'
43
+ import {ThemeColorBase} from '@sanity/ui/theme'
44
+ import {ThemeColorBuilderOpts} from '@sanity/ui/theme'
45
+ import {ThemeColorButton} from '@sanity/ui/theme'
46
+ import {ThemeColorButtonModeKey as ThemeColorButtonModeKey_2} from '@sanity/ui/theme'
47
+ import {ThemeColorButtonState} from '@sanity/ui/theme'
48
+ import {ThemeColorButtonStates} from '@sanity/ui/theme'
49
+ import {ThemeColorButtonTones} from '@sanity/ui/theme'
50
+ import {ThemeColorCard} from '@sanity/ui/theme'
51
+ import {ThemeColorCardState} from '@sanity/ui/theme'
52
+ import {ThemeColorCardToneKey} from '@sanity/ui/theme'
53
+ import {ThemeColorGenericState} from '@sanity/ui/theme'
54
+ import {ThemeColorInput} from '@sanity/ui/theme'
55
+ import {ThemeColorInputState} from '@sanity/ui/theme'
56
+ import {ThemeColorInputStates} from '@sanity/ui/theme'
57
+ import {ThemeColorMuted} from '@sanity/ui/theme'
58
+ import {ThemeColorMutedTone} from '@sanity/ui/theme'
59
+ import {ThemeColorName} from '@sanity/ui/theme'
60
+ import {ThemeColorScheme} from '@sanity/ui/theme'
61
+ import {ThemeColorSchemeKey as ThemeColorSchemeKey_2} from '@sanity/ui/theme'
62
+ import {ThemeColorSchemes} from '@sanity/ui/theme'
63
+ import {ThemeColorSelectable} from '@sanity/ui/theme'
64
+ import {ThemeColorSelectableState} from '@sanity/ui/theme'
65
+ import {ThemeColorSelectableStates} from '@sanity/ui/theme'
66
+ import {ThemeColorSolid} from '@sanity/ui/theme'
67
+ import {ThemeColorSolidTone} from '@sanity/ui/theme'
68
+ import {ThemeColorSpot} from '@sanity/ui/theme'
69
+ import {ThemeColorSpotKey} from '@sanity/ui/theme'
70
+ import {ThemeColorStateToneKey} from '@sanity/ui/theme'
71
+ import {ThemeColorSyntax as ThemeColorSyntax_2} from '@sanity/ui/theme'
72
+ import {ThemeColorToneKey} from '@sanity/ui/theme'
73
+ import {ThemeFont as ThemeFont_2} from '@sanity/ui/theme'
74
+ import {ThemeFontKey as ThemeFontKey_2} from '@sanity/ui/theme'
75
+ import {ThemeFonts as ThemeFonts_2} from '@sanity/ui/theme'
76
+ import {ThemeFontSize as ThemeFontSize_2} from '@sanity/ui/theme'
77
+ import {ThemeFontWeight as ThemeFontWeight_2} from '@sanity/ui/theme'
78
+ import {ThemeFontWeightKey as ThemeFontWeightKey_2} from '@sanity/ui/theme'
79
+ import {ThemeInput} from '@sanity/ui/theme'
80
+ import {ThemeLayer as ThemeLayer_2} from '@sanity/ui/theme'
81
+ import {ThemeShadow as ThemeShadow_2} from '@sanity/ui/theme'
82
+ import {ThemeStyles} from '@sanity/ui/theme'
33
83
  import {TouchEventHandler} from 'react'
34
84
  import {TransitionEventHandler} from 'react'
35
85
  import {UIEventHandler} from 'react'
@@ -38,35 +88,51 @@ import {WheelEventHandler} from 'react'
38
88
  /** @beta */
39
89
  export declare type ArrayPropPrimitive = string | number | boolean | undefined | null
40
90
 
91
+ /** @internal */
92
+ export declare const Arrow: ForwardRefExoticComponent<
93
+ Omit<
94
+ {
95
+ width: number
96
+ height: number
97
+ radius?: number | undefined
98
+ } & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width'>,
99
+ 'ref'
100
+ > &
101
+ RefAttributes<HTMLDivElement>
102
+ >
103
+
41
104
  /**
42
105
  * @internal
43
106
  */
44
107
  export declare function attemptFocus(element: HTMLElement): boolean
45
108
 
46
109
  /**
110
+ * The Autocomplete component is typically used for search components.
111
+ * It consists of a text input for writing a query, and properties for rendering suggestions.
112
+ *
47
113
  * @public
48
114
  */
49
115
  export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
50
116
  props: AutocompleteProps<Option> &
51
117
  Omit<
52
118
  HTMLProps<HTMLInputElement>,
53
- | 'type'
54
- | 'value'
55
- | 'ref'
56
- | 'as'
57
119
  | 'id'
58
- | 'spellCheck'
120
+ | 'type'
59
121
  | 'role'
60
- | 'prefix'
61
- | 'autoCapitalize'
62
- | 'autoCorrect'
63
- | 'inputMode'
64
122
  | 'aria-activedescendant'
65
123
  | 'aria-autocomplete'
66
124
  | 'aria-expanded'
67
125
  | 'aria-owns'
68
126
  | 'onChange'
69
127
  | 'onSelect'
128
+ | 'value'
129
+ | 'ref'
130
+ | 'spellCheck'
131
+ | 'prefix'
132
+ | 'autoCapitalize'
133
+ | 'autoCorrect'
134
+ | 'inputMode'
135
+ | 'as'
70
136
  | 'autoComplete'
71
137
  > & {
72
138
  ref?: Ref<HTMLInputElement> | undefined
@@ -128,6 +194,7 @@ export declare interface AutocompleteProps<
128
194
  onSelect?: (value: string) => void
129
195
  /** @beta */
130
196
  openButton?: boolean | AutocompleteOpenButtonProps
197
+ /** The options to render. */
131
198
  options?: Option[]
132
199
  padding?: number | number[]
133
200
  popover?: Omit<PopoverProps, 'content' | 'onMouseEnter' | 'onMouseLeave' | 'open'> &
@@ -136,6 +203,7 @@ export declare interface AutocompleteProps<
136
203
  radius?: Radius | Radius[]
137
204
  /** @beta */
138
205
  relatedElements?: HTMLElement[]
206
+ /** The callback function for rendering each option. */
139
207
  renderOption?: (option: Option) => ReactElement
140
208
  /** @beta */
141
209
  renderPopover?: (
@@ -150,6 +218,7 @@ export declare interface AutocompleteProps<
150
218
  ) => ReactNode
151
219
  renderValue?: (value: string, option?: Option) => string
152
220
  suffix?: ReactNode
221
+ /** The current value. */
153
222
  value?: string
154
223
  }
155
224
 
@@ -219,6 +288,8 @@ export declare interface AutocompleteValueChangeMsg {
219
288
  }
220
289
 
221
290
  /**
291
+ * Avatars are used to represent people and other agents (e.g. bots).
292
+ *
222
293
  * @public
223
294
  */
224
295
  export declare const Avatar: ForwardRefExoticComponent<
@@ -251,10 +322,12 @@ export declare type AvatarPosition = 'top' | 'bottom' | 'inside'
251
322
  * @public
252
323
  */
253
324
  export declare interface AvatarProps {
325
+ /** @beta */
326
+ __unstable_hideInnerStroke?: boolean
254
327
  animateArrowFrom?: AvatarPosition
255
328
  arrowPosition?: AvatarPosition
256
329
  as?: React.ElementType | keyof JSX.IntrinsicElements
257
- color?: ThemeColorSpotKey
330
+ color?: ThemeColorAvatarColorKey
258
331
  initials?: string
259
332
  onImageLoadError?: (event: Error) => void
260
333
  size?: AvatarSize | AvatarSize[]
@@ -271,13 +344,13 @@ export declare interface AvatarProps {
271
344
  * @internal
272
345
  */
273
346
  export declare interface AvatarRootStyleProps {
274
- $color: string
347
+ $color: ThemeColorAvatarColorKey
275
348
  }
276
349
 
277
350
  /**
278
351
  * @public
279
352
  */
280
- export declare type AvatarSize = 0 | 1 | 2
353
+ export declare type AvatarSize = 0 | 1 | 2 | 3
281
354
 
282
355
  /**
283
356
  * @public
@@ -303,6 +376,8 @@ export declare interface AvatarStackProps {
303
376
  export declare type AvatarStatus = 'online' | 'editing' | 'inactive'
304
377
 
305
378
  /**
379
+ * Badges are used to tag resources.
380
+ *
306
381
  * @public
307
382
  */
308
383
  export declare const Badge: ForwardRefExoticComponent<
@@ -311,6 +386,7 @@ export declare const Badge: ForwardRefExoticComponent<
311
386
 
312
387
  /**
313
388
  * @public
389
+ * @deprecated No longer used
314
390
  */
315
391
  export declare type BadgeMode = 'default' | 'outline'
316
392
 
@@ -320,6 +396,7 @@ export declare type BadgeMode = 'default' | 'outline'
320
396
  export declare interface BadgeProps extends BoxProps, ResponsiveRadiusProps {
321
397
  as?: React.ElementType | keyof JSX.IntrinsicElements
322
398
  fontSize?: number | number[]
399
+ /** @deprecated No longer used. */
323
400
  mode?: BadgeMode
324
401
  tone?: BadgeTone
325
402
  }
@@ -327,7 +404,7 @@ export declare interface BadgeProps extends BoxProps, ResponsiveRadiusProps {
327
404
  /**
328
405
  * @public
329
406
  */
330
- export declare type BadgeTone = 'default' | 'primary' | 'positive' | 'caution' | 'critical'
407
+ export declare type BadgeTone = ThemeColorStateToneKey
331
408
 
332
409
  /**
333
410
  * @public
@@ -338,36 +415,9 @@ export declare interface BaseAutocompleteOption {
338
415
 
339
416
  /**
340
417
  * @public
418
+ * @deprecated Use `BaseTheme` from `@sanity/ui/theme` instead.
341
419
  */
342
- export declare interface BaseTheme<Styles extends {} = {}> {
343
- avatar: ThemeAvatar
344
- button: {
345
- textWeight: ThemeFontWeightKey
346
- focusRing: FocusRing
347
- }
348
- card: {
349
- focusRing: FocusRing
350
- }
351
- color: ThemeColorSchemes
352
- container: number[]
353
- /** @deprecated Use component-specific `focusRing` values instead */
354
- focusRing: {
355
- offset: number
356
- width: number
357
- }
358
- fonts: ThemeFonts
359
- input: ThemeInput
360
- /**
361
- * THIS API MAY BE UNSTABLE. DO NOT USE IN PRODUCTION.
362
- * @beta
363
- */
364
- layer?: ThemeLayer
365
- media: number[]
366
- radius: number[]
367
- shadows: Array<ThemeShadow | null>
368
- space: number[]
369
- styles?: Styles
370
- }
420
+ export declare type BaseTheme = BaseTheme_2
371
421
 
372
422
  /**
373
423
  * @public
@@ -393,10 +443,13 @@ export declare interface BoundaryElementProviderProps {
393
443
  }
394
444
 
395
445
  /**
446
+ * The `Box` component is a basic layout wrapper component which provides utility properties
447
+ * for flex, margins and padding.
448
+ *
396
449
  * @public
397
450
  */
398
451
  export declare const Box: ForwardRefExoticComponent<
399
- Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
452
+ Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
400
453
  RefAttributes<HTMLDivElement>
401
454
  >
402
455
 
@@ -429,10 +482,10 @@ export declare interface BoxProps
429
482
  }
430
483
 
431
484
  /**
432
- * TODO: Rename to `ThemeBoxShadow`
433
485
  * @public
486
+ * @deprecated Use `ThemeBoxShadow` from `@sanity/ui/theme` instead.
434
487
  */
435
- export declare type BoxShadow = [number, number, number, number]
488
+ export declare type BoxShadow = ThemeBoxShadow
436
489
 
437
490
  /**
438
491
  * @public
@@ -461,14 +514,14 @@ export declare interface BreadcrumbsProps {
461
514
  * @public
462
515
  */
463
516
  export declare const Button: ForwardRefExoticComponent<
464
- Omit<ButtonProps & Omit<HTMLProps<HTMLButtonElement>, 'as'>, 'ref'> &
517
+ Omit<ButtonProps & Omit<HTMLProps<HTMLButtonElement>, 'width' | 'as'>, 'ref'> &
465
518
  RefAttributes<HTMLButtonElement>
466
519
  >
467
520
 
468
521
  /**
469
522
  * @public
470
523
  */
471
- export declare type ButtonMode = 'default' | 'ghost' | 'bleed'
524
+ export declare type ButtonMode = ThemeColorButtonModeKey_2
472
525
 
473
526
  /**
474
527
  * @public
@@ -491,6 +544,7 @@ export declare interface ButtonProps extends ResponsivePaddingProps, ResponsiveR
491
544
  text?: React.ReactNode
492
545
  tone?: ButtonTone
493
546
  type?: 'button' | 'reset' | 'submit'
547
+ width?: ButtonWidth
494
548
  }
495
549
 
496
550
  /**
@@ -501,13 +555,21 @@ export declare type ButtonTextAlign = 'left' | 'right' | 'center'
501
555
  /**
502
556
  * @public
503
557
  */
504
- export declare type ButtonTone = 'default' | 'primary' | 'positive' | 'caution' | 'critical'
558
+ export declare type ButtonTone = ThemeColorStateToneKey
559
+
560
+ /**
561
+ * @public
562
+ */
563
+ export declare type ButtonWidth = 'fill'
505
564
 
506
565
  /**
566
+ * The `Card` component acts much like a `Box`, but with a background and foreground color.
567
+ * Components within a `Card` inherit its colors.
568
+ *
507
569
  * @public
508
570
  */
509
571
  export declare const Card: ForwardRefExoticComponent<
510
- Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
572
+ Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
511
573
  RefAttributes<HTMLDivElement>
512
574
  >
513
575
 
@@ -530,14 +592,8 @@ export declare interface CardProps
530
592
  */
531
593
  __unstable_focusRing?: boolean
532
594
  pressed?: boolean
533
- scheme?: ThemeColorSchemeKey
595
+ scheme?: ThemeColorSchemeKey_2
534
596
  tone?: CardTone
535
- /**
536
- * @internal
537
- * Used by the popover, as it creates a new html element that it's ouside of the previous scope of the card.
538
- * So if it's inheriting styles from the parent, it needs to create a new cars context
539
- */
540
- updateCssVars?: boolean
541
597
  }
542
598
 
543
599
  /**
@@ -547,16 +603,16 @@ export declare interface CardStyleProps {
547
603
  $checkered: boolean
548
604
  $focusRing: boolean
549
605
  $tone: ThemeColorToneKey
550
- $scheme: ThemeColorSchemeKey
551
- $updateCssVars: boolean
552
606
  }
553
607
 
554
608
  /**
555
609
  * @public
556
610
  */
557
- export declare type CardTone = ThemeColorToneKey | 'inherit'
611
+ export declare type CardTone = ThemeColorCardToneKey | 'inherit'
558
612
 
559
613
  /**
614
+ * Checkboxes allow the user to select one or more items from a set.
615
+ *
560
616
  * @public
561
617
  */
562
618
  export declare const Checkbox: ForwardRefExoticComponent<
@@ -581,7 +637,7 @@ export declare type ClickOutsideListener = (event: MouseEvent) => void
581
637
  * @public
582
638
  */
583
639
  export declare const Code: ForwardRefExoticComponent<
584
- Omit<CodeProps & Omit<HTMLProps<HTMLElement>, 'as' | 'size'>, 'ref'> & RefAttributes<HTMLElement>
640
+ Omit<CodeProps & Omit<HTMLProps<HTMLElement>, 'size' | 'as'>, 'ref'> & RefAttributes<HTMLElement>
585
641
  >
586
642
 
587
643
  /**
@@ -589,6 +645,7 @@ export declare const Code: ForwardRefExoticComponent<
589
645
  */
590
646
  export declare interface CodeProps {
591
647
  as?: React.ElementType | keyof JSX.IntrinsicElements
648
+ /** Define the language to use for syntax highlighting. */
592
649
  language?: string
593
650
  size?: number | number[]
594
651
  weight?: string
@@ -600,7 +657,7 @@ export declare interface CodeProps {
600
657
  */
601
658
  export declare const CodeSkeleton: ForwardRefExoticComponent<
602
659
  Omit<
603
- CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'size' | 'height'>,
660
+ CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'children' | 'size' | 'as'>,
604
661
  'ref'
605
662
  > &
606
663
  RefAttributes<HTMLDivElement>
@@ -615,10 +672,25 @@ export declare interface CodeSkeletonProps extends SkeletonProps {
615
672
  }
616
673
 
617
674
  /**
675
+ * @internal
676
+ */
677
+ export declare function ConditionalWrapper({
678
+ children,
679
+ condition,
680
+ wrapper,
681
+ }: {
682
+ children: React.ReactNode
683
+ condition: boolean
684
+ wrapper: (children: React.ReactNode) => React.ReactNode
685
+ }): React.ReactNode
686
+
687
+ /**
688
+ * The `Container` component wraps content layout in a defined set of widths.
689
+ *
618
690
  * @public
619
691
  */
620
692
  export declare const Container: ForwardRefExoticComponent<
621
- Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'width'>, 'ref'> &
693
+ Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'as'>, 'ref'> &
622
694
  RefAttributes<HTMLDivElement>
623
695
  >
624
696
 
@@ -633,239 +705,10 @@ export declare interface ContainerProps extends BoxProps, ResponsiveWidthProps {
633
705
  export declare function containsOrEqualsElement(element: HTMLElement, node: Node): boolean
634
706
 
635
707
  /**
636
- * @internal
637
- * @deprecated Use studioTheme instead.
638
- */
639
- export declare function createColorTheme(): null
640
-
641
- /**
642
- * @beta
643
- */
644
- export declare const createCssVars: (
645
- scheme: ThemeColorSchemeKey,
646
- tones: Record<ThemeColorName, ColorTints>,
647
- defaultTone?: ThemeColorName,
648
- ) => Record<string, string>
649
-
650
- /** @internal */
651
- export declare type CSSObject = StyledObject<any>
652
-
653
- /**
654
- * @beta
655
- */
656
- export declare type CSSVariableKey = ThemeColorName & ('spot' | 'syntax' | 'mutable')
657
-
658
- /**
659
- * @beta
708
+ * @public
709
+ * @deprecated Use `createColorTheme` from `@sanity/ui/theme` instead.
660
710
  */
661
- export declare const cssVars: {
662
- /**
663
- * This variables are mutable, they can be updated by other components.
664
- * The main component that updates them is the card, these are the only ones that should be exposed for use from the cards.
665
- */
666
- mutable: Record<
667
- 'bg-color' | 'muted-fg-color' | 'icon-color' | 'fg-color' | 'bg-image' | 'accent-color',
668
- string
669
- >
670
- default: Record<
671
- | 'text-primary'
672
- | 'text-secondary'
673
- | 'text-inactive'
674
- | 'text-code'
675
- | 'text-muted'
676
- | 'text-link'
677
- | 'text-accent'
678
- | 'bg-base'
679
- | 'bg-base-hover'
680
- | 'bg-base-active'
681
- | 'bg-accent'
682
- | 'bg-accent-hover'
683
- | 'bg-accent-active'
684
- | 'bg-tint'
685
- | 'bg-tint-code'
686
- | 'icon-default'
687
- | 'icon-inverted'
688
- | 'border-base'
689
- | 'border-base-hover'
690
- | 'border-accent'
691
- | 'border-accent-inverted'
692
- | 'base-bg-card'
693
- | 'base-bg-raw'
694
- | 'base-shadow-outline-color'
695
- | 'base-shadow-umbra-color'
696
- | 'base-shadow-penumbra-color'
697
- | 'base-shadow-ambient-color'
698
- | 'base-text-color'
699
- | 'skeleton-from'
700
- | 'skeleton-to',
701
- string
702
- >
703
- transparent: Record<
704
- | 'text-primary'
705
- | 'text-secondary'
706
- | 'text-inactive'
707
- | 'text-code'
708
- | 'text-muted'
709
- | 'text-link'
710
- | 'text-accent'
711
- | 'bg-base'
712
- | 'bg-base-hover'
713
- | 'bg-base-active'
714
- | 'bg-accent'
715
- | 'bg-accent-hover'
716
- | 'bg-accent-active'
717
- | 'bg-tint'
718
- | 'bg-tint-code'
719
- | 'icon-default'
720
- | 'icon-inverted'
721
- | 'border-base'
722
- | 'border-base-hover'
723
- | 'border-accent'
724
- | 'border-accent-inverted'
725
- | 'base-bg-card'
726
- | 'base-bg-raw'
727
- | 'base-shadow-outline-color'
728
- | 'base-shadow-umbra-color'
729
- | 'base-shadow-penumbra-color'
730
- | 'base-shadow-ambient-color'
731
- | 'base-text-color'
732
- | 'skeleton-from'
733
- | 'skeleton-to',
734
- string
735
- >
736
- primary: Record<
737
- | 'text-primary'
738
- | 'text-secondary'
739
- | 'text-inactive'
740
- | 'text-code'
741
- | 'text-muted'
742
- | 'text-link'
743
- | 'text-accent'
744
- | 'bg-base'
745
- | 'bg-base-hover'
746
- | 'bg-base-active'
747
- | 'bg-accent'
748
- | 'bg-accent-hover'
749
- | 'bg-accent-active'
750
- | 'bg-tint'
751
- | 'bg-tint-code'
752
- | 'icon-default'
753
- | 'icon-inverted'
754
- | 'border-base'
755
- | 'border-base-hover'
756
- | 'border-accent'
757
- | 'border-accent-inverted'
758
- | 'base-bg-card'
759
- | 'base-bg-raw'
760
- | 'base-shadow-outline-color'
761
- | 'base-shadow-umbra-color'
762
- | 'base-shadow-penumbra-color'
763
- | 'base-shadow-ambient-color'
764
- | 'base-text-color'
765
- | 'skeleton-from'
766
- | 'skeleton-to',
767
- string
768
- >
769
- positive: Record<
770
- | 'text-primary'
771
- | 'text-secondary'
772
- | 'text-inactive'
773
- | 'text-code'
774
- | 'text-muted'
775
- | 'text-link'
776
- | 'text-accent'
777
- | 'bg-base'
778
- | 'bg-base-hover'
779
- | 'bg-base-active'
780
- | 'bg-accent'
781
- | 'bg-accent-hover'
782
- | 'bg-accent-active'
783
- | 'bg-tint'
784
- | 'bg-tint-code'
785
- | 'icon-default'
786
- | 'icon-inverted'
787
- | 'border-base'
788
- | 'border-base-hover'
789
- | 'border-accent'
790
- | 'border-accent-inverted'
791
- | 'base-bg-card'
792
- | 'base-bg-raw'
793
- | 'base-shadow-outline-color'
794
- | 'base-shadow-umbra-color'
795
- | 'base-shadow-penumbra-color'
796
- | 'base-shadow-ambient-color'
797
- | 'base-text-color'
798
- | 'skeleton-from'
799
- | 'skeleton-to',
800
- string
801
- >
802
- caution: Record<
803
- | 'text-primary'
804
- | 'text-secondary'
805
- | 'text-inactive'
806
- | 'text-code'
807
- | 'text-muted'
808
- | 'text-link'
809
- | 'text-accent'
810
- | 'bg-base'
811
- | 'bg-base-hover'
812
- | 'bg-base-active'
813
- | 'bg-accent'
814
- | 'bg-accent-hover'
815
- | 'bg-accent-active'
816
- | 'bg-tint'
817
- | 'bg-tint-code'
818
- | 'icon-default'
819
- | 'icon-inverted'
820
- | 'border-base'
821
- | 'border-base-hover'
822
- | 'border-accent'
823
- | 'border-accent-inverted'
824
- | 'base-bg-card'
825
- | 'base-bg-raw'
826
- | 'base-shadow-outline-color'
827
- | 'base-shadow-umbra-color'
828
- | 'base-shadow-penumbra-color'
829
- | 'base-shadow-ambient-color'
830
- | 'base-text-color'
831
- | 'skeleton-from'
832
- | 'skeleton-to',
833
- string
834
- >
835
- critical: Record<
836
- | 'text-primary'
837
- | 'text-secondary'
838
- | 'text-inactive'
839
- | 'text-code'
840
- | 'text-muted'
841
- | 'text-link'
842
- | 'text-accent'
843
- | 'bg-base'
844
- | 'bg-base-hover'
845
- | 'bg-base-active'
846
- | 'bg-accent'
847
- | 'bg-accent-hover'
848
- | 'bg-accent-active'
849
- | 'bg-tint'
850
- | 'bg-tint-code'
851
- | 'icon-default'
852
- | 'icon-inverted'
853
- | 'border-base'
854
- | 'border-base-hover'
855
- | 'border-accent'
856
- | 'border-accent-inverted'
857
- | 'base-bg-card'
858
- | 'base-bg-raw'
859
- | 'base-shadow-outline-color'
860
- | 'base-shadow-umbra-color'
861
- | 'base-shadow-penumbra-color'
862
- | 'base-shadow-ambient-color'
863
- | 'base-text-color'
864
- | 'skeleton-from'
865
- | 'skeleton-to',
866
- string
867
- >
868
- }
711
+ export declare const createColorTheme: any
869
712
 
870
713
  /**
871
714
  * @public
@@ -878,10 +721,12 @@ export declare type Delay =
878
721
  }>
879
722
 
880
723
  /**
724
+ * The Dialog component.
725
+ *
881
726
  * @public
882
727
  */
883
728
  export declare const Dialog: ForwardRefExoticComponent<
884
- Omit<DialogProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'width' | 'id'>, 'ref'> &
729
+ Omit<DialogProps & Omit<HTMLProps<HTMLDivElement>, 'width' | 'id' | 'as'>, 'ref'> &
885
730
  RefAttributes<HTMLDivElement>
886
731
  >
887
732
 
@@ -929,8 +774,15 @@ export declare interface DialogProps extends ResponsivePaddingProps, ResponsiveW
929
774
  onClose?: () => void
930
775
  portal?: string
931
776
  position?: DialogPosition | DialogPosition[]
932
- scheme?: ThemeColorSchemeKey
777
+ scheme?: ThemeColorSchemeKey_2
933
778
  zOffset?: number | number[]
779
+ /**
780
+ * Whether the dialog should animate in on mount.
781
+ *
782
+ * @beta
783
+ * @defaultValue false
784
+ */
785
+ animate?: boolean
934
786
  }
935
787
 
936
788
  /**
@@ -1036,10 +888,12 @@ export declare function _fillCSSObject(
1036
888
  ): CSSObject
1037
889
 
1038
890
  /**
891
+ * The `Flex` component is a wrapper component for flexible elements (`Box`, `Card` and `Flex`).
892
+ *
1039
893
  * @public
1040
894
  */
1041
895
  export declare const Flex: ForwardRefExoticComponent<
1042
- Omit<FlexProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'wrap'>, 'ref'> &
896
+ Omit<FlexProps & Omit<HTMLProps<HTMLDivElement>, 'wrap' | 'as'>, 'ref'> &
1043
897
  RefAttributes<HTMLDivElement>
1044
898
  >
1045
899
 
@@ -1094,19 +948,11 @@ export declare function focusFirstDescendant(element: HTMLElement): boolean
1094
948
  */
1095
949
  export declare function focusLastDescendant(element: HTMLElement): boolean
1096
950
 
1097
- /**
1098
- * @public
1099
- */
1100
- export declare interface FocusRing {
1101
- offset: number
1102
- width: number
1103
- }
1104
-
1105
951
  /**
1106
952
  * @internal
1107
953
  */
1108
954
  export declare interface FontWeightStyleProps {
1109
- $weight?: ThemeFontWeightKey
955
+ $weight?: ThemeFontWeightKey_2
1110
956
  }
1111
957
 
1112
958
  /**
@@ -1118,16 +964,18 @@ export declare function _getArrayProp<T = number>(val: T | T[] | undefined, defa
1118
964
  * @internal
1119
965
  */
1120
966
  export declare function _getResponsiveSpace(
1121
- theme: Theme,
967
+ theme: Theme_2,
1122
968
  props: string[],
1123
969
  spaceIndexes?: number[],
1124
970
  ): CSSObject[] | null
1125
971
 
1126
972
  /**
973
+ * The `Grid` component is for building 2-dimensional layers (based on CSS grid).
974
+ *
1127
975
  * @public
1128
976
  */
1129
977
  export declare const Grid: ForwardRefExoticComponent<
1130
- Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'rows'>, 'ref'> &
978
+ Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as' | 'rows'>, 'ref'> &
1131
979
  RefAttributes<HTMLDivElement>
1132
980
  >
1133
981
 
@@ -1187,10 +1035,12 @@ export declare interface GridProps extends Omit<BoxProps, 'display'>, Responsive
1187
1035
  export declare function _hasFocus(element: HTMLElement): boolean
1188
1036
 
1189
1037
  /**
1038
+ * Typographic headings.
1039
+ *
1190
1040
  * @public
1191
1041
  */
1192
1042
  export declare const Heading: ForwardRefExoticComponent<
1193
- Omit<HeadingProps & Omit<HTMLProps<HTMLElement>, 'as' | 'size'>, 'ref'> &
1043
+ Omit<HeadingProps & Omit<HTMLProps<HTMLElement>, 'size' | 'as'>, 'ref'> &
1194
1044
  RefAttributes<HTMLElement>
1195
1045
  >
1196
1046
 
@@ -1209,7 +1059,7 @@ export declare interface HeadingProps {
1209
1059
  * @beta
1210
1060
  */
1211
1061
  textOverflow?: 'ellipsis'
1212
- weight?: ThemeFontWeightKey
1062
+ weight?: ThemeFontWeightKey_2
1213
1063
  }
1214
1064
 
1215
1065
  /**
@@ -1218,7 +1068,7 @@ export declare interface HeadingProps {
1218
1068
  */
1219
1069
  export declare const HeadingSkeleton: ForwardRefExoticComponent<
1220
1070
  Omit<
1221
- HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'size' | 'height'>,
1071
+ HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'children' | 'size' | 'as'>,
1222
1072
  'ref'
1223
1073
  > &
1224
1074
  RefAttributes<HTMLDivElement>
@@ -1233,15 +1083,18 @@ export declare interface HeadingSkeletonProps extends SkeletonProps {
1233
1083
  }
1234
1084
 
1235
1085
  /**
1236
- * @internal
1086
+ * @public
1087
+ * @deprecated Use `hexToRgb` from `@sanity/ui/theme` instead.
1237
1088
  */
1238
- export declare function hexToRgb(hex: string): RGB
1089
+ export declare const hexToRgb: any
1239
1090
 
1240
1091
  /**
1092
+ * Represent hotkeys (a keyboard combination) with semantic `<kbd>` elements.
1093
+ *
1241
1094
  * @public
1242
1095
  */
1243
1096
  export declare const Hotkeys: ForwardRefExoticComponent<
1244
- HotkeysProps & Omit<HTMLProps<HTMLElement>, 'ref' | 'as' | 'size'> & RefAttributes<HTMLElement>
1097
+ HotkeysProps & Omit<HTMLProps<HTMLElement>, 'size' | 'ref' | 'as'> & RefAttributes<HTMLElement>
1245
1098
  >
1246
1099
 
1247
1100
  /**
@@ -1256,20 +1109,20 @@ export declare interface HotkeysProps {
1256
1109
  }
1257
1110
 
1258
1111
  /**
1259
- * @internal
1112
+ * @public
1113
+ * @deprecated Use `HSL` from `@sanity/ui/theme` instead.
1260
1114
  */
1261
- export declare interface HSL {
1262
- h: number
1263
- s: number
1264
- l: number
1265
- }
1115
+ export declare type HSL = HSL_2
1266
1116
 
1267
1117
  /**
1268
- * @internal
1118
+ * @public
1119
+ * @deprecated Use `hslToRgb` from `@sanity/ui/theme` instead.
1269
1120
  */
1270
- export declare function hslToRgb(hsl: HSL): RGB
1121
+ export declare const hslToRgb: any
1271
1122
 
1272
1123
  /**
1124
+ * The `Inline` component is a layout utility for aligning and spacing items horizontally.
1125
+ *
1273
1126
  * @public
1274
1127
  */
1275
1128
  export declare const Inline: ForwardRefExoticComponent<
@@ -1280,6 +1133,7 @@ export declare const Inline: ForwardRefExoticComponent<
1280
1133
  * @public
1281
1134
  */
1282
1135
  export declare interface InlineProps extends Omit<BoxProps, 'display'> {
1136
+ /** The spacing between children. */
1283
1137
  space?: number | number[]
1284
1138
  }
1285
1139
 
@@ -1329,10 +1183,12 @@ export declare function isHTMLTextAreaElement(element: unknown): element is HTML
1329
1183
  export declare function _isScrollable(el: Node): boolean
1330
1184
 
1331
1185
  /**
1186
+ * Used to define some text as keyboard input.
1187
+ *
1332
1188
  * @public
1333
1189
  */
1334
1190
  export declare const KBD: ForwardRefExoticComponent<
1335
- KBDProps & Omit<HTMLProps<HTMLElement>, 'ref' | 'as' | 'size'> & RefAttributes<HTMLDivElement>
1191
+ KBDProps & Omit<HTMLProps<HTMLElement>, 'size' | 'ref' | 'as'> & RefAttributes<HTMLDivElement>
1336
1192
  >
1337
1193
 
1338
1194
  /**
@@ -1346,10 +1202,12 @@ export declare interface KBDProps {
1346
1202
  }
1347
1203
 
1348
1204
  /**
1205
+ * Typographic labels.
1206
+ *
1349
1207
  * @public
1350
1208
  */
1351
1209
  export declare const Label: ForwardRefExoticComponent<
1352
- Omit<LabelProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'size'>, 'ref'> &
1210
+ Omit<LabelProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>, 'ref'> &
1353
1211
  RefAttributes<HTMLDivElement>
1354
1212
  >
1355
1213
 
@@ -1368,7 +1226,7 @@ export declare interface LabelProps {
1368
1226
  * @beta
1369
1227
  */
1370
1228
  textOverflow?: 'ellipsis'
1371
- weight?: ThemeFontWeightKey
1229
+ weight?: ThemeFontWeightKey_2
1372
1230
  }
1373
1231
 
1374
1232
  /**
@@ -1377,7 +1235,7 @@ export declare interface LabelProps {
1377
1235
  */
1378
1236
  export declare const LabelSkeleton: ForwardRefExoticComponent<
1379
1237
  Omit<
1380
- LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'size' | 'height'>,
1238
+ LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'children' | 'size' | 'as'>,
1381
1239
  'ref'
1382
1240
  > &
1383
1241
  RefAttributes<HTMLDivElement>
@@ -1449,14 +1307,18 @@ export declare interface _MediaStore {
1449
1307
  }
1450
1308
 
1451
1309
  /**
1310
+ * The `Menu` component is a building block for application menus.
1311
+ *
1452
1312
  * @public
1453
1313
  */
1454
1314
  export declare const Menu: ForwardRefExoticComponent<
1455
- Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'tabIndex' | 'role'>, 'ref'> &
1315
+ Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'role' | 'tabIndex' | 'as'>, 'ref'> &
1456
1316
  RefAttributes<HTMLDivElement>
1457
1317
  >
1458
1318
 
1459
1319
  /**
1320
+ * The `MenuButton` component follows the WAI-ARIA specification for menu buttons.
1321
+ *
1460
1322
  * @public
1461
1323
  */
1462
1324
  export declare const MenuButton: ForwardRefExoticComponent<
@@ -1488,7 +1350,7 @@ export declare interface MenuButtonProps {
1488
1350
  /**
1489
1351
  * @deprecated Use `popover={{scheme: 'dark'}}` instead.
1490
1352
  */
1491
- popoverScheme?: ThemeColorSchemeKey
1353
+ popoverScheme?: ThemeColorSchemeKey_2
1492
1354
  /**
1493
1355
  * @deprecated Use `popover={{radius: 2}}` instead.
1494
1356
  */
@@ -1519,7 +1381,7 @@ export declare const MenuDivider: IStyledComponent<
1519
1381
  accessKey?: string | undefined
1520
1382
  autoFocus?: boolean | undefined
1521
1383
  className?: string | undefined
1522
- contentEditable?: 'inherit' | (boolean | 'false' | 'true') | undefined
1384
+ contentEditable?: 'inherit' | (boolean | 'false' | 'true') | 'plaintext-only' | undefined
1523
1385
  contextMenu?: string | undefined
1524
1386
  dir?: string | undefined
1525
1387
  draggable?: (boolean | 'false' | 'true') | undefined
@@ -1533,7 +1395,7 @@ export declare const MenuDivider: IStyledComponent<
1533
1395
  style?: CSSProperties | undefined
1534
1396
  tabIndex?: number | undefined
1535
1397
  title?: string | undefined
1536
- translate?: 'yes' | 'no' | undefined
1398
+ translate?: 'no' | 'yes' | undefined
1537
1399
  radioGroup?: string | undefined
1538
1400
  role?: AriaRole | undefined
1539
1401
  about?: string | undefined
@@ -1558,11 +1420,11 @@ export declare const MenuDivider: IStyledComponent<
1558
1420
  itemRef?: string | undefined
1559
1421
  results?: number | undefined
1560
1422
  security?: string | undefined
1561
- unselectable?: 'on' | 'off' | undefined
1423
+ unselectable?: 'off' | 'on' | undefined
1562
1424
  inputMode?:
1563
- | 'search'
1564
- | 'text'
1565
1425
  | 'none'
1426
+ | 'text'
1427
+ | 'search'
1566
1428
  | 'tel'
1567
1429
  | 'url'
1568
1430
  | 'email'
@@ -1572,7 +1434,7 @@ export declare const MenuDivider: IStyledComponent<
1572
1434
  is?: string | undefined
1573
1435
  'aria-activedescendant'?: string | undefined
1574
1436
  'aria-atomic'?: (boolean | 'false' | 'true') | undefined
1575
- 'aria-autocomplete'?: 'both' | 'none' | 'inline' | 'list' | undefined
1437
+ 'aria-autocomplete'?: 'none' | 'inline' | 'both' | 'list' | undefined
1576
1438
  'aria-braillelabel'?: string | undefined
1577
1439
  'aria-brailleroledescription'?: string | undefined
1578
1440
  'aria-busy'?: (boolean | 'false' | 'true') | undefined
@@ -1584,31 +1446,31 @@ export declare const MenuDivider: IStyledComponent<
1584
1446
  'aria-controls'?: string | undefined
1585
1447
  'aria-current'?:
1586
1448
  | boolean
1587
- | 'time'
1588
1449
  | 'page'
1589
1450
  | 'false'
1590
1451
  | 'true'
1591
1452
  | 'step'
1592
1453
  | 'location'
1593
1454
  | 'date'
1455
+ | 'time'
1594
1456
  | undefined
1595
1457
  'aria-describedby'?: string | undefined
1596
1458
  'aria-description'?: string | undefined
1597
1459
  'aria-details'?: string | undefined
1598
1460
  'aria-disabled'?: (boolean | 'false' | 'true') | undefined
1599
- 'aria-dropeffect'?: 'link' | 'none' | 'copy' | 'move' | 'execute' | 'popup' | undefined
1461
+ 'aria-dropeffect'?: 'none' | 'copy' | 'move' | 'link' | 'execute' | 'popup' | undefined
1600
1462
  'aria-errormessage'?: string | undefined
1601
1463
  'aria-expanded'?: (boolean | 'false' | 'true') | undefined
1602
1464
  'aria-flowto'?: string | undefined
1603
1465
  'aria-grabbed'?: (boolean | 'false' | 'true') | undefined
1604
1466
  'aria-haspopup'?:
1605
1467
  | boolean
1606
- | 'dialog'
1607
- | 'menu'
1608
- | 'listbox'
1609
1468
  | 'grid'
1469
+ | 'listbox'
1470
+ | 'menu'
1610
1471
  | 'false'
1611
1472
  | 'true'
1473
+ | 'dialog'
1612
1474
  | 'tree'
1613
1475
  | undefined
1614
1476
  'aria-hidden'?: (boolean | 'false' | 'true') | undefined
@@ -1628,8 +1490,8 @@ export declare const MenuDivider: IStyledComponent<
1628
1490
  'aria-pressed'?: boolean | 'mixed' | 'false' | 'true' | undefined
1629
1491
  'aria-readonly'?: (boolean | 'false' | 'true') | undefined
1630
1492
  'aria-relevant'?:
1631
- | 'text'
1632
1493
  | 'all'
1494
+ | 'text'
1633
1495
  | 'additions'
1634
1496
  | 'additions removals'
1635
1497
  | 'additions text'
@@ -1851,7 +1713,7 @@ export declare interface MenuGroupProps {
1851
1713
  */
1852
1714
  export declare const MenuItem: ForwardRefExoticComponent<
1853
1715
  MenuItemProps &
1854
- Omit<HTMLProps<HTMLDivElement>, 'ref' | 'as' | 'height' | 'tabIndex' | 'selected'> &
1716
+ Omit<HTMLProps<HTMLDivElement>, 'height' | 'tabIndex' | 'ref' | 'as' | 'selected'> &
1855
1717
  RefAttributes<HTMLDivElement>
1856
1718
  >
1857
1719
 
@@ -1868,7 +1730,7 @@ export declare interface MenuItemProps extends ResponsivePaddingProps, Responsiv
1868
1730
  selected?: boolean
1869
1731
  space?: number | number[]
1870
1732
  text?: React.ReactNode
1871
- tone?: ThemeColorToneKey
1733
+ tone?: SelectableTone
1872
1734
  }
1873
1735
 
1874
1736
  /**
@@ -1894,16 +1756,18 @@ export declare interface MenuProps extends ResponsivePaddingProps {
1894
1756
  }
1895
1757
 
1896
1758
  /**
1897
- * Apply the \`multiply\` blend mode
1898
- * Source: https://www.w3.org/TR/compositing-1/#blendingmultiply
1899
- * @internal
1759
+ * @public
1760
+ * @deprecated Use `multiply` from `@sanity/ui/theme` instead.
1900
1761
  */
1901
- export declare function multiply(b: RGB | RGBA, s: RGB | RGBA): RGB
1762
+ export declare const multiply: any
1902
1763
 
1903
1764
  /**
1904
- * @internal
1765
+ * @public
1766
+ * @deprecated Use `parseColor` from `@sanity/ui/theme` instead.
1905
1767
  */
1906
- export declare function parseColor(color: unknown): RGB | RGBA
1768
+ export declare const parseColor: any
1769
+
1770
+ export {PartialThemeColorBuilderOpts}
1907
1771
 
1908
1772
  /**
1909
1773
  * Placement of floating UI elements.
@@ -1924,11 +1788,15 @@ export declare type Placement =
1924
1788
  | 'left-start'
1925
1789
  | 'left-end'
1926
1790
 
1927
- /** @public */
1791
+ /**
1792
+ * The `Popover` component is used to display some content on top of another.
1793
+ *
1794
+ * @public
1795
+ */
1928
1796
  export declare const Popover: MemoExoticComponent<
1929
1797
  ForwardRefExoticComponent<
1930
1798
  Omit<
1931
- PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'content' | 'width'>,
1799
+ PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'content' | 'width' | 'children' | 'as'>,
1932
1800
  'ref'
1933
1801
  > &
1934
1802
  RefAttributes<HTMLDivElement>
@@ -1947,25 +1815,52 @@ export declare interface PopoverProps
1947
1815
  ResponsiveShadowProps {
1948
1816
  /** @beta */
1949
1817
  __unstable_margins?: PopoverMargins
1818
+ /**
1819
+ * Whether the popover should animate in and out.
1820
+ *
1821
+ * @beta
1822
+ * @defaultValue false
1823
+ */
1824
+ animate?: boolean
1950
1825
  arrow?: boolean
1951
1826
  /** @deprecated Use `floatingBoundary` and/or `referenceBoundary` instead */
1952
1827
  boundaryElement?: HTMLElement | null
1953
1828
  children?: React.ReactElement
1829
+ /**
1830
+ * When `true`, prevent overflow within the current boundary:
1831
+ * - by flipping on its side axis
1832
+ * - by resizing
1833
+ /*
1834
+ * Note that:
1835
+ * - setting `preventOverflow` to `true` also prevents overflow on its side axis
1836
+ * - setting `matchReferenceWidth` to `true` also causes the popover to resize
1837
+ *
1838
+ * @defaultValue false
1839
+ */
1954
1840
  constrainSize?: boolean
1955
1841
  content?: React.ReactNode
1956
1842
  disabled?: boolean
1957
1843
  fallbackPlacements?: Placement[]
1958
1844
  floatingBoundary?: HTMLElement | null
1845
+ /**
1846
+ * When `true`, set the maximum width to match the reference element, and also prevent overflow within
1847
+ * the current boundary by resizing.
1848
+ *
1849
+ * Note that setting `constrainSize` to `true` also causes the popover to resize
1850
+ *
1851
+ * @defaultValue false
1852
+ */
1959
1853
  matchReferenceWidth?: boolean
1960
1854
  open?: boolean
1961
1855
  overflow?: BoxOverflow
1962
1856
  padding?: number | number[]
1963
1857
  placement?: Placement
1858
+ /** Whether or not to render the popover in a portal element. */
1964
1859
  portal?: boolean | string
1965
1860
  preventOverflow?: boolean
1966
1861
  referenceBoundary?: HTMLElement | null
1967
1862
  referenceElement?: HTMLElement | null
1968
- scheme?: ThemeColorSchemeKey
1863
+ scheme?: ThemeColorSchemeKey_2
1969
1864
  tone?: CardTone
1970
1865
  /** @beta */
1971
1866
  updateRef?:
@@ -2028,6 +1923,8 @@ export declare interface PortalProviderProps {
2028
1923
  }
2029
1924
 
2030
1925
  /**
1926
+ * The `Radio` component allows the user to select one option from a set.
1927
+ *
2031
1928
  * @public
2032
1929
  */
2033
1930
  export declare const Radio: ForwardRefExoticComponent<
@@ -2116,6 +2013,7 @@ export declare function responsiveCodeFontStyle(
2116
2013
  * @public
2117
2014
  */
2118
2015
  export declare interface ResponsiveFlexItemProps {
2016
+ /** Sets the flex CSS attribute. The property is responsive. */
2119
2017
  flex?: FlexValue | FlexValue[]
2120
2018
  }
2121
2019
 
@@ -2193,8 +2091,11 @@ export declare function responsiveLabelFont(
2193
2091
  * @public
2194
2092
  */
2195
2093
  export declare interface ResponsiveMarginProps {
2094
+ /** Applies margins to all sides. The property is responsive. */
2196
2095
  margin?: number | number[]
2096
+ /** Applies margins to the left and right sides. The property is responsive. */
2197
2097
  marginX?: number | number[]
2098
+ /** Applies margins to the top and bottom sides. The property is responsive. */
2198
2099
  marginY?: number | number[]
2199
2100
  marginTop?: number | number[]
2200
2101
  marginRight?: number | number[]
@@ -2267,60 +2168,45 @@ export declare interface ResponsiveWidthStyleProps {
2267
2168
  }
2268
2169
 
2269
2170
  /**
2270
- * @internal
2271
- */
2272
- export declare interface RGB {
2273
- r: number
2274
- g: number
2275
- b: number
2276
- a?: undefined
2277
- }
2278
-
2279
- /**
2280
- * @internal
2281
- */
2282
- export declare interface RGBA {
2283
- r: number
2284
- g: number
2285
- b: number
2286
- a: number
2287
- }
2288
-
2289
- /**
2290
- * @internal
2171
+ * @public
2172
+ * @deprecated Use `RGB` from `@sanity/ui/theme` instead.
2291
2173
  */
2292
- export declare function rgba(color: unknown, a: number): string
2174
+ export declare type RGB = RGB_2
2293
2175
 
2294
2176
  /**
2295
- * @internal
2177
+ * @public
2178
+ * @deprecated Use `rgba` from `@sanity/ui/theme` instead.
2296
2179
  */
2297
- export declare function rgbaToRGBA(rgba: string): RGBA
2180
+ export declare const rgba: any
2298
2181
 
2299
2182
  /**
2300
- * @internal
2183
+ * @public
2184
+ * @deprecated Use `rgbToHex` from `@sanity/ui/theme` instead.
2301
2185
  */
2302
- export declare function rgbToHex({r, g, b}: RGB): string
2186
+ export declare const rgbToHex: any
2303
2187
 
2304
2188
  /**
2305
- * @internal
2306
- * @see https://css-tricks.com/converting-color-spaces-in-javascript/
2189
+ * @public
2190
+ * @deprecated Use `rgbToHsl` from `@sanity/ui/theme` instead.
2307
2191
  */
2308
- export declare function rgbToHsl({r, g, b}: RGB): HSL
2192
+ export declare const rgbToHsl: any
2309
2193
 
2310
2194
  /**
2311
2195
  * @public
2196
+ * @deprecated Use `RootTheme` from `@sanity/ui/theme` instead.
2312
2197
  */
2313
- export declare type RootTheme = BaseTheme<Styles>
2198
+ export declare type RootTheme = RootTheme_2
2314
2199
 
2315
2200
  /**
2316
- * Apply the \`screen\` blend mode
2317
- * Source: https://www.w3.org/TR/compositing-1/#blendingscreen
2318
- * @internal
2201
+ * @public
2202
+ * @deprecated Use `screen` from `@sanity/ui/theme` instead.
2319
2203
  */
2320
- declare function screen_2(b: RGB | RGBA, s: RGB | RGBA): RGB
2204
+ declare const screen_2: any
2321
2205
  export {screen_2 as screen}
2322
2206
 
2323
2207
  /**
2208
+ * The `Select` component provides control of options.
2209
+ *
2324
2210
  * @public
2325
2211
  */
2326
2212
  export declare const Select: ForwardRefExoticComponent<
@@ -2331,7 +2217,7 @@ export declare const Select: ForwardRefExoticComponent<
2331
2217
  /**
2332
2218
  * @public
2333
2219
  */
2334
- export declare type SelectableTone = 'default' | 'primary' | 'positive' | 'caution' | 'critical'
2220
+ export declare type SelectableTone = ThemeColorStateToneKey
2335
2221
 
2336
2222
  /**
2337
2223
  * @public
@@ -2362,10 +2248,12 @@ export declare interface SkeletonProps extends ResponsiveRadiusProps, Omit<BoxPr
2362
2248
  }
2363
2249
 
2364
2250
  /**
2251
+ * Indicate that something is loading for an indeterminate amount of time.
2252
+ *
2365
2253
  * @public
2366
2254
  */
2367
2255
  export declare const Spinner: ForwardRefExoticComponent<
2368
- Omit<SpinnerProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'size'>, 'ref'> &
2256
+ Omit<SpinnerProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>, 'ref'> &
2369
2257
  RefAttributes<HTMLDivElement>
2370
2258
  >
2371
2259
 
@@ -2381,7 +2269,7 @@ export declare interface SpinnerProps {
2381
2269
  * @public
2382
2270
  */
2383
2271
  export declare const SrOnly: ForwardRefExoticComponent<
2384
- Omit<SrOnlyProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'aria-hidden'>, 'ref'> &
2272
+ Omit<SrOnlyProps & Omit<HTMLProps<HTMLDivElement>, 'aria-hidden' | 'as'>, 'ref'> &
2385
2273
  RefAttributes<HTMLDivElement>
2386
2274
  >
2387
2275
 
@@ -2394,6 +2282,8 @@ export declare interface SrOnlyProps {
2394
2282
  }
2395
2283
 
2396
2284
  /**
2285
+ * The `Stack` component is used to place elements on top of each other.
2286
+ *
2397
2287
  * @public
2398
2288
  */
2399
2289
  export declare const Stack: ForwardRefExoticComponent<
@@ -2410,23 +2300,21 @@ export declare interface StackProps extends BoxProps {
2410
2300
 
2411
2301
  /**
2412
2302
  * @public
2303
+ * @deprecated Use `buildTheme` from `@sanity/ui/theme` instead.
2413
2304
  */
2414
- export declare const studioTheme: RootTheme
2305
+ export declare const studioTheme: any
2415
2306
 
2416
2307
  /**
2417
- * TODO: Rename to `ThemeStyles`
2418
2308
  * @public
2309
+ * @deprecated Use `ThemeStyles` from `@sanity/ui/theme` instead.
2419
2310
  */
2420
- export declare interface Styles {
2421
- button?: {
2422
- root?: CSSObject
2423
- }
2424
- card?: {
2425
- root?: CSSObject
2426
- }
2427
- }
2311
+ export declare type Styles = ThemeStyles
2428
2312
 
2429
2313
  /**
2314
+ * The `Switch` component allows the user to toggle a setting on and off.
2315
+ *
2316
+ * Extends all properties of an `<input type="checkbox" />` element, except type.
2317
+ *
2430
2318
  * @public
2431
2319
  */
2432
2320
  export declare const Switch: ForwardRefExoticComponent<
@@ -2446,7 +2334,11 @@ export declare interface SwitchProps {
2446
2334
  */
2447
2335
  export declare const Tab: ForwardRefExoticComponent<
2448
2336
  Omit<
2449
- TabProps & Omit<HTMLProps<HTMLButtonElement>, 'type' | 'label' | 'as' | 'id' | 'aria-controls'>,
2337
+ TabProps &
2338
+ Omit<
2339
+ HTMLProps<HTMLButtonElement>,
2340
+ 'width' | 'id' | 'type' | 'aria-controls' | 'label' | 'as'
2341
+ >,
2450
2342
  'ref'
2451
2343
  > &
2452
2344
  RefAttributes<HTMLButtonElement>
@@ -2456,7 +2348,7 @@ export declare const Tab: ForwardRefExoticComponent<
2456
2348
  * @public
2457
2349
  */
2458
2350
  export declare const TabList: ForwardRefExoticComponent<
2459
- Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height'>, 'ref'> &
2351
+ Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
2460
2352
  RefAttributes<unknown>
2461
2353
  >
2462
2354
 
@@ -2472,7 +2364,7 @@ export declare interface TabListProps extends Omit<InlineProps, 'as' | 'height'>
2472
2364
  */
2473
2365
  export declare const TabPanel: ForwardRefExoticComponent<
2474
2366
  Omit<
2475
- TabPanelProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'id' | 'role' | 'aria-labelledby'>,
2367
+ TabPanelProps & Omit<HTMLProps<HTMLDivElement>, 'id' | 'role' | 'aria-labelledby' | 'as'>,
2476
2368
  'ref'
2477
2369
  > &
2478
2370
  RefAttributes<HTMLDivElement>
@@ -2508,10 +2400,12 @@ export declare interface TabProps {
2508
2400
  }
2509
2401
 
2510
2402
  /**
2403
+ * The `Text` component is an agile, themed typographic element.
2404
+ *
2511
2405
  * @public
2512
2406
  */
2513
2407
  declare const Text_2: ForwardRefExoticComponent<
2514
- Omit<TextProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'size'>, 'ref'> &
2408
+ Omit<TextProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>, 'ref'> &
2515
2409
  RefAttributes<HTMLDivElement>
2516
2410
  >
2517
2411
  export {Text_2 as Text}
@@ -2522,6 +2416,9 @@ export {Text_2 as Text}
2522
2416
  export declare type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'initial'
2523
2417
 
2524
2418
  /**
2419
+ * A multiline text input.
2420
+ *
2421
+
2525
2422
  * @public
2526
2423
  */
2527
2424
  export declare const TextArea: ForwardRefExoticComponent<
@@ -2537,15 +2434,16 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
2537
2434
  customValidity?: string
2538
2435
  fontSize?: number | number[]
2539
2436
  padding?: number | number[]
2540
- weight?: ThemeFontWeightKey
2541
- tone?: ThemeColorToneKey
2437
+ weight?: ThemeFontWeightKey_2
2542
2438
  }
2543
2439
 
2544
2440
  /**
2441
+ * Single line text input.
2442
+ *
2545
2443
  * @public
2546
2444
  */
2547
2445
  export declare const TextInput: ForwardRefExoticComponent<
2548
- Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'type' | 'as' | 'prefix'>, 'ref'> &
2446
+ Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'type' | 'prefix' | 'as'>, 'ref'> &
2549
2447
  RefAttributes<HTMLInputElement>
2550
2448
  >
2551
2449
 
@@ -2559,6 +2457,10 @@ export declare type TextInputClearButtonProps = Omit<ButtonProps, 'as'> &
2559
2457
  * @public
2560
2458
  */
2561
2459
  export declare interface TextInputProps {
2460
+ /**
2461
+ * @beta
2462
+ */
2463
+ __unstable_disableFocusRing?: boolean
2562
2464
  border?: boolean
2563
2465
  /**
2564
2466
  * @beta
@@ -2578,8 +2480,7 @@ export declare interface TextInputProps {
2578
2480
  space?: number | number[]
2579
2481
  suffix?: React.ReactNode
2580
2482
  type?: TextInputType
2581
- weight?: ThemeFontWeightKey
2582
- tone?: ThemeColorToneKey
2483
+ weight?: ThemeFontWeightKey_2
2583
2484
  }
2584
2485
 
2585
2486
  /**
@@ -2606,6 +2507,7 @@ export declare interface TextProps {
2606
2507
  accent?: boolean
2607
2508
  align?: TextAlign | TextAlign[]
2608
2509
  as?: React.ElementType | keyof JSX.IntrinsicElements
2510
+ /** When `true` the text color will be muted. */
2609
2511
  muted?: boolean
2610
2512
  size?: number | number[]
2611
2513
  /**
@@ -2614,7 +2516,7 @@ export declare interface TextProps {
2614
2516
  * @beta
2615
2517
  */
2616
2518
  textOverflow?: 'ellipsis'
2617
- weight?: ThemeFontWeightKey
2519
+ weight?: ThemeFontWeightKey_2
2618
2520
  }
2619
2521
 
2620
2522
  /**
@@ -2623,7 +2525,7 @@ export declare interface TextProps {
2623
2525
  */
2624
2526
  export declare const TextSkeleton: ForwardRefExoticComponent<
2625
2527
  Omit<
2626
- TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'size' | 'height'>,
2528
+ TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'children' | 'size' | 'as'>,
2627
2529
  'ref'
2628
2530
  > &
2629
2531
  RefAttributes<HTMLDivElement>
@@ -2639,202 +2541,156 @@ export declare interface TextSkeletonProps extends SkeletonProps {
2639
2541
 
2640
2542
  /**
2641
2543
  * @public
2544
+ * @deprecated Use `Theme` from `@sanity/ui/theme` instead.
2642
2545
  */
2643
- export declare interface Theme {
2644
- sanity: RootTheme
2645
- }
2546
+ export declare type Theme = Theme_2
2646
2547
 
2647
- /**
2648
- * @public
2649
- */
2650
- export declare interface ThemeAvatar {
2651
- sizes: {
2652
- distance: number
2653
- size: number
2654
- }[]
2655
- focusRing: FocusRing
2656
- }
2548
+ export {ThemeAvatar}
2549
+
2550
+ export {ThemeColor}
2551
+
2552
+ export {ThemeColorBase}
2553
+
2554
+ export {ThemeColorBuilderOpts}
2555
+
2556
+ export {ThemeColorButton}
2657
2557
 
2658
2558
  /**
2659
2559
  * @public
2560
+ * @deprecated Use `ThemeColorButtonModeKey` from `@sanity/ui/theme` instead.
2660
2561
  */
2661
- export declare type ThemeColorName =
2662
- | 'default'
2663
- | 'transparent'
2664
- | 'primary'
2665
- | 'positive'
2666
- | 'caution'
2667
- | 'critical'
2562
+ export declare type ThemeColorButtonModeKey = ThemeColorButtonModeKey_2
2563
+
2564
+ export {ThemeColorButtonState}
2565
+
2566
+ export {ThemeColorButtonStates}
2567
+
2568
+ export {ThemeColorButtonTones}
2569
+
2570
+ export {ThemeColorCard}
2571
+
2572
+ export {ThemeColorCardState}
2573
+
2574
+ export {ThemeColorGenericState}
2575
+
2576
+ export {ThemeColorInput}
2577
+
2578
+ export {ThemeColorInputState}
2579
+
2580
+ export {ThemeColorInputStates}
2581
+
2582
+ export {ThemeColorMuted}
2583
+
2584
+ export {ThemeColorMutedTone}
2585
+
2586
+ export {ThemeColorName}
2668
2587
 
2669
2588
  /**
2670
2589
  * @public
2671
- * @deprecated Use `toneContext` instead.
2672
2590
  */
2673
2591
  export declare function ThemeColorProvider(props: ThemeColorProviderProps): React.ReactElement
2674
2592
 
2675
2593
  /**
2676
2594
  * @public
2677
- * @deprecated
2678
2595
  */
2679
2596
  export declare interface ThemeColorProviderProps {
2680
2597
  children?: React.ReactNode
2681
- scheme?: ThemeColorSchemeKey
2682
- tone?: ThemeColorName
2598
+ scheme?: ThemeColorSchemeKey_2
2599
+ tone?: ThemeColorCardToneKey
2683
2600
  }
2684
2601
 
2685
- /**
2686
- * @public
2687
- */
2688
- export declare type ThemeColorSchemeKey = 'dark' | 'light'
2602
+ export {ThemeColorScheme}
2689
2603
 
2690
2604
  /**
2691
2605
  * @public
2606
+ * @deprecated Use `ThemeColorSchemeKey` from `@sanity/ui/theme` instead.
2692
2607
  */
2693
- export declare interface ThemeColorSchemes {
2694
- tones: Record<ThemeColorName, ColorTints>
2695
- }
2608
+ export declare type ThemeColorSchemeKey = ThemeColorSchemeKey_2
2696
2609
 
2697
- /**
2698
- * @public
2699
- */
2700
- export declare type ThemeColorSpotKey =
2701
- | 'gray'
2702
- | 'blue'
2703
- | 'purple'
2704
- | 'magenta'
2705
- | 'red'
2706
- | 'orange'
2707
- | 'yellow'
2708
- | 'green'
2709
- | 'cyan'
2610
+ export {ThemeColorSchemes}
2611
+
2612
+ export {ThemeColorSelectable}
2613
+
2614
+ export {ThemeColorSelectableState}
2615
+
2616
+ export {ThemeColorSelectableStates}
2617
+
2618
+ export {ThemeColorSolid}
2619
+
2620
+ export {ThemeColorSolidTone}
2621
+
2622
+ export {ThemeColorSpot}
2623
+
2624
+ export {ThemeColorSpotKey}
2710
2625
 
2711
2626
  /**
2712
2627
  * @public
2628
+ * @deprecated Use `ThemeColorSyntax` from `@sanity/ui/theme` instead.
2713
2629
  */
2714
- export declare type ThemeColorToneKey =
2715
- | 'default'
2716
- | 'transparent'
2717
- | 'primary'
2718
- | 'positive'
2719
- | 'caution'
2720
- | 'critical'
2630
+ export declare type ThemeColorSyntax = ThemeColorSyntax_2
2631
+
2632
+ export {ThemeColorToneKey}
2721
2633
 
2722
2634
  /**
2723
2635
  * @public
2724
2636
  */
2725
2637
  export declare interface ThemeContextValue {
2638
+ /** @deprecated No longer used */
2726
2639
  version: 0.0
2727
- scheme: ThemeColorSchemeKey
2728
- theme: RootTheme
2729
- tone: ThemeColorName
2640
+ scheme: ThemeColorSchemeKey_2
2641
+ theme: RootTheme_2
2642
+ tone: ThemeColorCardToneKey
2730
2643
  }
2731
2644
 
2732
2645
  /**
2733
2646
  * @public
2647
+ * @deprecated Use `ThemeFont` from `@sanity/ui/theme` instead.
2734
2648
  */
2735
- export declare interface ThemeFont {
2736
- family: string
2737
- weights: ThemeFontWeight
2738
- sizes: ThemeFontSize[]
2739
- /** @deprecated No longer supported. */
2740
- horizontalOffset?: number
2741
- }
2649
+ export declare type ThemeFont = ThemeFont_2
2742
2650
 
2743
2651
  /**
2744
2652
  * @public
2653
+ * @deprecated Use `ThemeFontKey` from `@sanity/ui/theme` instead.
2745
2654
  */
2746
- export declare type ThemeFontKey = 'code' | 'heading' | 'label' | 'text'
2655
+ export declare type ThemeFontKey = ThemeFontKey_2
2747
2656
 
2748
2657
  /**
2749
2658
  * @public
2659
+ * @deprecated Use `ThemeFonts` from `@sanity/ui/theme` instead.
2750
2660
  */
2751
- export declare interface ThemeFonts {
2752
- code: ThemeFont
2753
- heading: ThemeFont
2754
- label: ThemeFont
2755
- text: ThemeFont
2756
- }
2661
+ export declare type ThemeFonts = ThemeFonts_2
2757
2662
 
2758
2663
  /**
2759
2664
  * @public
2665
+ * @deprecated Use `ThemeFontSize` from `@sanity/ui/theme` instead.
2760
2666
  */
2761
- export declare interface ThemeFontSize {
2762
- ascenderHeight: number
2763
- descenderHeight: number
2764
- fontSize: number
2765
- iconSize: number
2766
- letterSpacing: number
2767
- lineHeight: number
2768
- }
2667
+ export declare type ThemeFontSize = ThemeFontSize_2
2769
2668
 
2770
2669
  /**
2771
2670
  * @public
2671
+ * @deprecated Use `ThemeFontWeight` from `@sanity/ui/theme` instead.
2772
2672
  */
2773
- export declare interface ThemeFontWeight {
2774
- regular: number
2775
- medium: number
2776
- semibold: number
2777
- bold: number
2778
- }
2673
+ export declare type ThemeFontWeight = ThemeFontWeight_2
2779
2674
 
2780
2675
  /**
2781
2676
  * @public
2677
+ * @deprecated Use `ThemeFontWeightKey` from `@sanity/ui/theme` instead.
2782
2678
  */
2783
- export declare type ThemeFontWeightKey = 'regular' | 'medium' | 'semibold' | 'bold'
2679
+ export declare type ThemeFontWeightKey = ThemeFontWeightKey_2
2784
2680
 
2785
- /**
2786
- * @public
2787
- */
2788
- export declare interface ThemeInput {
2789
- checkbox: {
2790
- size: number
2791
- focusRing: FocusRing
2792
- }
2793
- radio: {
2794
- size: number
2795
- markSize: number
2796
- focusRing: FocusRing
2797
- }
2798
- switch: {
2799
- width: number
2800
- height: number
2801
- padding: number
2802
- transitionDurationMs: number
2803
- transitionTimingFunction: string
2804
- focusRing: FocusRing
2805
- }
2806
- border: {
2807
- width: number
2808
- }
2809
- select: {
2810
- focusRing: FocusRing
2811
- }
2812
- text: {
2813
- focusRing: FocusRing
2814
- }
2815
- }
2681
+ export {ThemeInput}
2816
2682
 
2817
2683
  /**
2818
- * THIS API MAY BE UNSTABLE. DO NOT USE IN PRODUCTION.
2819
- * @beta
2684
+ * @public
2685
+ * @deprecated Use `ThemeLayer` from `@sanity/ui/theme` instead.
2820
2686
  */
2821
- export declare interface ThemeLayer {
2822
- dialog: {
2823
- zOffset: number
2824
- }
2825
- popover: {
2826
- zOffset: number
2827
- }
2828
- tooltip: {
2829
- zOffset: number
2830
- }
2831
- }
2687
+ export declare type ThemeLayer = ThemeLayer_2
2832
2688
 
2833
2689
  /**
2834
2690
  * @internal
2835
2691
  */
2836
2692
  export declare interface ThemeProps {
2837
- theme: Theme
2693
+ theme: Theme_2
2838
2694
  }
2839
2695
 
2840
2696
  /**
@@ -2847,21 +2703,22 @@ export declare function ThemeProvider(props: ThemeProviderProps): React.ReactEle
2847
2703
  */
2848
2704
  export declare interface ThemeProviderProps {
2849
2705
  children?: React.ReactNode
2850
- scheme?: ThemeColorSchemeKey
2851
- theme?: RootTheme
2852
- tone?: ThemeColorName
2706
+ scheme?: ThemeColorSchemeKey_2
2707
+ theme?: RootTheme_2
2708
+ tone?: ThemeColorCardToneKey
2853
2709
  }
2854
2710
 
2855
2711
  /**
2856
2712
  * @public
2713
+ * @deprecated Use `ThemeShadow` from `@sanity/ui/theme` instead.
2857
2714
  */
2858
- export declare interface ThemeShadow {
2859
- umbra: BoxShadow
2860
- penumbra: BoxShadow
2861
- ambient: BoxShadow
2862
- }
2715
+ export declare type ThemeShadow = ThemeShadow_2
2863
2716
 
2864
2717
  /**
2718
+ * The `Toast` component gives feedback to users when an action has taken place.
2719
+ *
2720
+ * Toasts can be closed with a close button, or auto-dismiss after a certain timeout.
2721
+ *
2865
2722
  * @public
2866
2723
  */
2867
2724
  export declare function Toast(
@@ -2896,6 +2753,7 @@ export declare interface ToastProps {
2896
2753
  closable?: boolean
2897
2754
  description?: React.ReactNode
2898
2755
  onClose?: () => void
2756
+ radius?: number | number[]
2899
2757
  title?: React.ReactNode
2900
2758
  status?: 'error' | 'warning' | 'success' | 'info'
2901
2759
  }
@@ -2917,10 +2775,12 @@ export declare interface ToastProviderProps {
2917
2775
  }
2918
2776
 
2919
2777
  /**
2778
+ * Tooltips display information when hovering, focusing or tapping.
2779
+ *
2920
2780
  * @public
2921
2781
  */
2922
2782
  export declare const Tooltip: ForwardRefExoticComponent<
2923
- Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'content'>, 'ref'> &
2783
+ Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, 'content' | 'children' | 'as'>, 'ref'> &
2924
2784
  RefAttributes<HTMLDivElement>
2925
2785
  >
2926
2786
 
@@ -2956,11 +2816,13 @@ export declare function TooltipDelayGroupProvider(
2956
2816
  export declare interface TooltipDelayGroupProviderProps {
2957
2817
  children?: React.ReactNode
2958
2818
  /**
2959
- * @public Handles the delays to open or close a tooltip inside a group
2819
+ * Handles the delays to open or close a tooltip inside a group
2960
2820
  *
2961
2821
  * If only a `number` is passed, it will be used for both opening and closing.
2962
2822
  *
2963
2823
  * If an object `{open: number; close:number}` is passed, it can be used to set different delays for each action.
2824
+ *
2825
+ * @public
2964
2826
  */
2965
2827
  delay: Delay
2966
2828
  }
@@ -2971,6 +2833,7 @@ export declare interface TooltipDelayGroupProviderProps {
2971
2833
  export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
2972
2834
  /** @deprecated Use `fallbackPlacements` instead. */
2973
2835
  allowedAutoPlacements?: Placement[]
2836
+ arrow?: boolean
2974
2837
  boundaryElement?: HTMLElement | null
2975
2838
  children?: React.ReactElement
2976
2839
  content?: React.ReactNode
@@ -2978,17 +2841,29 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
2978
2841
  fallbackPlacements?: Placement[]
2979
2842
  padding?: number | number[]
2980
2843
  placement?: Placement
2844
+ /** Whether or not to render the tooltip in a portal element. */
2981
2845
  portal?: boolean | string
2982
- scheme?: ThemeColorSchemeKey
2846
+ radius?: number | number[]
2847
+ scheme?: ThemeColorSchemeKey_2
2983
2848
  shadow?: number | number[]
2984
2849
  /**
2985
- * @public Adds a delay to open or close the tooltip. Defaults to 0.
2850
+ * Adds a delay to open or close the tooltip.
2986
2851
  *
2987
2852
  * If only a `number` is passed, it will be used for both opening and closing.
2988
2853
  *
2989
2854
  * If an object `{open: number; close:number}` is passed, it can be used to set different delays for each action.
2855
+ *
2856
+ * @public
2857
+ * @defaultValue 0
2990
2858
  */
2991
2859
  delay?: Delay
2860
+ /**
2861
+ * Whether the tooltip should animate in and out.
2862
+ *
2863
+ * @beta
2864
+ * @defaultValue false
2865
+ */
2866
+ animate?: boolean
2992
2867
  }
2993
2868
 
2994
2869
  /**
@@ -2998,7 +2873,7 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
2998
2873
  export declare const Tree: MemoExoticComponent<
2999
2874
  ForwardRefExoticComponent<
3000
2875
  TreeProps &
3001
- Omit<HTMLProps<HTMLDivElement>, 'ref' | 'as' | 'wrap' | 'height' | 'role' | 'align'> &
2876
+ Omit<HTMLProps<HTMLDivElement>, 'height' | 'role' | 'wrap' | 'ref' | 'as' | 'align'> &
3002
2877
  RefAttributes<HTMLDivElement>
3003
2878
  >
3004
2879
  >
@@ -3023,7 +2898,7 @@ export declare interface TreeContextValue {
3023
2898
  * @beta
3024
2899
  */
3025
2900
  export declare const TreeItem: NamedExoticComponent<
3026
- TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'ref' | 'as' | 'role'>
2901
+ TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'role' | 'ref' | 'as'>
3027
2902
  >
3028
2903
 
3029
2904
  /**
@@ -3040,7 +2915,7 @@ export declare interface TreeItemProps {
3040
2915
  padding?: number | number[]
3041
2916
  space?: number | number[]
3042
2917
  text?: React.ReactNode
3043
- weight?: ThemeFontWeightKey
2918
+ weight?: ThemeFontWeightKey_2
3044
2919
  }
3045
2920
 
3046
2921
  /**
@@ -3165,7 +3040,12 @@ export declare function useRootTheme(): ThemeContextValue
3165
3040
  /**
3166
3041
  * @public
3167
3042
  */
3168
- export declare function useTheme(): Theme
3043
+ export declare function useTheme(): Theme_2
3044
+
3045
+ /**
3046
+ * @public
3047
+ */
3048
+ export declare function useTheme_v2(): Theme_v2
3169
3049
 
3170
3050
  /**
3171
3051
  * @public
@@ -3188,7 +3068,7 @@ export declare function useTree(): TreeContextValue
3188
3068
  export declare const VirtualList: ForwardRefExoticComponent<
3189
3069
  VirtualListProps<any> &
3190
3070
  StackProps &
3191
- Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref' | 'as' | 'onChange'> &
3071
+ Omit<HTMLProps<HTMLDivElement>, 'children' | 'onChange' | 'ref' | 'as'> &
3192
3072
  RefAttributes<HTMLDivElement>
3193
3073
  >
3194
3074