@sanity/ui 3.0.0-static.9 → 3.0.0

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 (1062) hide show
  1. package/dist/_chunks-cjs/_visual-editing.js +3550 -1279
  2. package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
  3. package/dist/_chunks-cjs/refractor.js +3 -7
  4. package/dist/_chunks-cjs/refractor.js.map +1 -1
  5. package/dist/_chunks-es/_visual-editing.mjs +3562 -1292
  6. package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
  7. package/dist/_chunks-es/refractor.mjs +2 -2
  8. package/dist/_chunks-es/refractor.mjs.map +1 -1
  9. package/dist/_visual-editing.d.mts +439 -239
  10. package/dist/_visual-editing.d.ts +439 -239
  11. package/dist/index.d.mts +638 -544
  12. package/dist/index.d.ts +638 -544
  13. package/dist/index.js +501 -315
  14. package/dist/index.js.map +1 -1
  15. package/dist/index.mjs +504 -309
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/theme.d.mts +76 -425
  18. package/dist/theme.d.ts +76 -425
  19. package/dist/theme.js +2237 -1325
  20. package/dist/theme.js.map +1 -1
  21. package/dist/theme.mjs +2284 -1372
  22. package/dist/theme.mjs.map +1 -1
  23. package/exports/_visual-editing.ts +27 -27
  24. package/exports/index.ts +1 -1
  25. package/package.json +91 -97
  26. package/src/core/__workshop__/constants.ts +293 -0
  27. package/src/core/_compat.ts +264 -0
  28. package/src/core/components/autocomplete/__workshop__/async.tsx +156 -0
  29. package/src/core/components/autocomplete/__workshop__/constrainedHeight.tsx +137 -0
  30. package/src/core/components/autocomplete/__workshop__/custom.tsx +89 -0
  31. package/src/core/components/autocomplete/__workshop__/example.tsx +79 -0
  32. package/src/core/components/autocomplete/__workshop__/fullscreen.tsx +294 -0
  33. package/src/core/components/autocomplete/autocomplete.styles.tsx +39 -0
  34. package/src/core/components/autocomplete/autocomplete.tsx +729 -0
  35. package/src/core/components/autocomplete/autocompleteOption.tsx +45 -0
  36. package/src/core/components/autocomplete/types.ts +108 -0
  37. package/src/core/components/breadcrumbs/breadcrumbs.styles.ts +18 -0
  38. package/src/core/components/breadcrumbs/breadcrumbs.tsx +99 -0
  39. package/src/core/components/dialog/__workshop__/nested.tsx +72 -0
  40. package/src/core/components/dialog/__workshop__/onScroll.tsx +39 -0
  41. package/src/core/components/dialog/__workshop__/position.tsx +30 -0
  42. package/src/core/components/dialog/__workshop__/props.tsx +75 -0
  43. package/src/core/components/dialog/dialog.tsx +434 -0
  44. package/src/core/components/dialog/dialogProvider.tsx +35 -0
  45. package/src/core/components/dialog/styles.ts +77 -0
  46. package/src/core/components/hotkeys/hotkeys.tsx +62 -0
  47. package/src/core/components/menu/__workshop__/menuButton.tsx +80 -0
  48. package/src/core/components/menu/__workshop__/tones.tsx +25 -0
  49. package/src/core/components/menu/menu.test.tsx +128 -0
  50. package/src/core/components/menu/menu.tsx +177 -0
  51. package/src/core/components/menu/menuButton.tsx +268 -0
  52. package/src/core/components/menu/menuContext.ts +29 -0
  53. package/src/core/components/menu/menuDivider.ts +12 -0
  54. package/src/core/components/menu/menuGroup.tsx +217 -0
  55. package/src/core/components/menu/menuItem.tsx +180 -0
  56. package/src/core/components/menu/useMenuController.ts +231 -0
  57. package/src/core/components/skeleton/__workshop__/delay.tsx +70 -0
  58. package/src/core/components/skeleton/__workshop__/skeleton.tsx +64 -0
  59. package/src/core/components/skeleton/skeleton.tsx +57 -0
  60. package/src/core/components/skeleton/styles.ts +50 -0
  61. package/src/core/components/skeleton/textSkeleton.tsx +123 -0
  62. package/src/core/components/tab/tab.tsx +101 -0
  63. package/src/core/components/tab/tabList.tsx +70 -0
  64. package/src/core/components/tab/tabPanel.tsx +39 -0
  65. package/src/core/components/toast/__workshop__/toast.tsx +26 -0
  66. package/src/core/components/toast/styles.ts +77 -0
  67. package/src/core/components/toast/toast.tsx +198 -0
  68. package/src/core/components/toast/toastLayer.tsx +51 -0
  69. package/src/core/components/toast/types.ts +26 -0
  70. package/src/core/components/tree/style.ts +105 -0
  71. package/src/core/components/tree/tree.tsx +237 -0
  72. package/src/core/components/tree/treeGroup.tsx +30 -0
  73. package/src/core/components/tree/treeItem.tsx +205 -0
  74. package/src/core/components/tree/types.ts +21 -0
  75. package/src/core/constants.ts +79 -0
  76. package/src/core/helpers/index.ts +4 -0
  77. package/src/core/hooks/useArrayProp.ts +31 -0
  78. package/src/core/hooks/useClickOutside.test.tsx +482 -0
  79. package/src/core/hooks/useForwardedRef.ts +19 -0
  80. package/src/core/hooks/useMatchMedia.ts +28 -0
  81. package/src/core/hooks/useMediaIndex/useMediaIndex.test.tsx +36 -0
  82. package/src/core/hooks/useMediaIndex/useMediaIndex.ts +102 -0
  83. package/src/core/hooks/usePrefersDark.ts +16 -0
  84. package/src/core/hooks/usePrefersReducedMotion.ts +16 -0
  85. package/src/core/index.ts +10 -0
  86. package/src/core/primitives/_selectable/selectable.tsx +15 -0
  87. package/src/core/primitives/_selectable/style.ts +115 -0
  88. package/src/core/primitives/avatar/__workshop__/asButton.tsx +14 -0
  89. package/src/core/primitives/avatar/__workshop__/stack.tsx +25 -0
  90. package/src/core/primitives/avatar/__workshop__/withinButton.tsx +63 -0
  91. package/src/core/primitives/avatar/__workshop__/withinMenuItem.tsx +70 -0
  92. package/src/core/primitives/avatar/avatar.tsx +192 -0
  93. package/src/core/primitives/avatar/avatarCounter.tsx +94 -0
  94. package/src/core/primitives/avatar/avatarStack.tsx +101 -0
  95. package/src/core/primitives/avatar/styles.ts +167 -0
  96. package/src/core/primitives/badge/__workshop__/props.tsx +30 -0
  97. package/src/core/primitives/badge/__workshop__/tones.tsx +21 -0
  98. package/src/core/primitives/badge/badge.tsx +62 -0
  99. package/src/core/primitives/badge/styles.ts +20 -0
  100. package/src/core/primitives/box/__workshop__/props.tsx +20 -0
  101. package/src/core/primitives/box/box.tsx +131 -0
  102. package/src/core/primitives/button/__workshop__/custom.tsx +51 -0
  103. package/src/core/primitives/button/__workshop__/props.tsx +55 -0
  104. package/src/core/primitives/button/__workshop__/stacked.tsx +58 -0
  105. package/src/core/primitives/button/button.tsx +187 -0
  106. package/src/core/primitives/button/styles.ts +117 -0
  107. package/src/core/primitives/card/__workshop__/allTones.tsx +25 -0
  108. package/src/core/primitives/card/__workshop__/asButton.tsx +107 -0
  109. package/src/core/primitives/card/__workshop__/props.tsx +53 -0
  110. package/src/core/primitives/card/__workshop__/selected.tsx +94 -0
  111. package/src/core/primitives/card/card.tsx +116 -0
  112. package/src/core/primitives/card/styles.ts +147 -0
  113. package/src/core/primitives/card/types.ts +11 -0
  114. package/src/core/primitives/checkbox/checkbox.tsx +73 -0
  115. package/src/core/primitives/checkbox/styles.ts +128 -0
  116. package/src/core/primitives/code/__workshop__/props.tsx +21 -0
  117. package/src/core/primitives/code/code.tsx +40 -0
  118. package/src/core/primitives/code/refractor.tsx +20 -0
  119. package/src/core/primitives/code/styles.ts +77 -0
  120. package/src/core/primitives/container/__workshop__/example.tsx +20 -0
  121. package/src/core/primitives/container/container.tsx +41 -0
  122. package/src/core/primitives/container/styles.ts +23 -0
  123. package/src/core/primitives/flex/__workshop__/example.tsx +34 -0
  124. package/src/core/primitives/flex/__workshop__/gap.tsx +25 -0
  125. package/src/core/primitives/flex/flex.tsx +54 -0
  126. package/src/core/primitives/grid/grid.tsx +48 -0
  127. package/src/core/primitives/heading/__workshop__/plain.tsx +32 -0
  128. package/src/core/primitives/heading/heading.tsx +80 -0
  129. package/src/core/primitives/heading/styles.ts +64 -0
  130. package/src/core/primitives/heading/types.ts +7 -0
  131. package/src/core/primitives/inline/__workshop__/plain.tsx +27 -0
  132. package/src/core/primitives/inline/inline.tsx +47 -0
  133. package/src/core/primitives/inline/styles.ts +32 -0
  134. package/src/core/primitives/kbd/kbd.tsx +61 -0
  135. package/src/core/primitives/label/__workshop__/opticalAlignment.tsx +48 -0
  136. package/src/core/primitives/label/__workshop__/plain.tsx +24 -0
  137. package/src/core/primitives/label/label.tsx +79 -0
  138. package/src/core/primitives/label/styles.ts +45 -0
  139. package/src/core/primitives/popover/__workshop__/AlignedStory.tsx +77 -0
  140. package/src/core/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +32 -0
  141. package/src/core/primitives/popover/__workshop__/OpenOnMountStory.tsx +11 -0
  142. package/src/core/primitives/popover/__workshop__/PlainStory.tsx +71 -0
  143. package/src/core/primitives/popover/__workshop__/RecursiveStory.tsx +71 -0
  144. package/src/core/primitives/popover/__workshop__/SidePanelStory.tsx +89 -0
  145. package/src/core/primitives/popover/__workshop__/TestStory.tsx +97 -0
  146. package/src/core/primitives/popover/helpers.ts +31 -0
  147. package/src/core/primitives/popover/popover.tsx +484 -0
  148. package/src/core/primitives/popover/popoverCard.tsx +168 -0
  149. package/src/core/primitives/radio/radio.tsx +51 -0
  150. package/src/core/primitives/radio/styles.ts +117 -0
  151. package/src/core/primitives/select/__workshop__/plain.tsx +27 -0
  152. package/src/core/primitives/select/select.tsx +87 -0
  153. package/src/core/primitives/select/styles.ts +166 -0
  154. package/src/core/primitives/spinner/__workshop__/Props.tsx +15 -0
  155. package/src/core/primitives/spinner/spinner.tsx +46 -0
  156. package/src/core/primitives/stack/__workshop__/plain.tsx +32 -0
  157. package/src/core/primitives/stack/stack.tsx +43 -0
  158. package/src/core/primitives/stack/styles.ts +32 -0
  159. package/src/core/primitives/switch/styles.ts +173 -0
  160. package/src/core/primitives/switch/switch.tsx +68 -0
  161. package/src/core/primitives/text/__workshop__/colored.tsx +30 -0
  162. package/src/core/primitives/text/__workshop__/example.tsx +39 -0
  163. package/src/core/primitives/text/styles.ts +74 -0
  164. package/src/core/primitives/text/text.tsx +81 -0
  165. package/src/core/primitives/textArea/__workshop__/plain.tsx +50 -0
  166. package/src/core/primitives/textArea/textArea.tsx +119 -0
  167. package/src/core/primitives/textInput/__workshop__/plain.tsx +98 -0
  168. package/src/core/primitives/textInput/__workshop__/typed.tsx +23 -0
  169. package/src/core/primitives/textInput/textInput.tsx +389 -0
  170. package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +102 -0
  171. package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +74 -0
  172. package/src/core/primitives/tooltip/__workshop__/props.tsx +107 -0
  173. package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +86 -0
  174. package/src/core/primitives/tooltip/tooltip.test.tsx +452 -0
  175. package/src/core/primitives/tooltip/tooltip.tsx +465 -0
  176. package/src/core/primitives/tooltip/tooltipCard.tsx +111 -0
  177. package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +57 -0
  178. package/src/core/primitives/types.ts +146 -0
  179. package/src/core/styles/border/borderStyle.ts +56 -0
  180. package/src/core/styles/border/index.ts +2 -0
  181. package/src/core/styles/border/types.ts +10 -0
  182. package/src/core/styles/box/boxStyle.ts +69 -0
  183. package/src/core/styles/box/index.ts +2 -0
  184. package/src/core/styles/box/types.ts +11 -0
  185. package/src/core/styles/card/_cardColorStyle.ts +108 -0
  186. package/src/core/styles/card/index.ts +1 -0
  187. package/src/core/styles/flex/flexItemStyle.ts +27 -0
  188. package/src/core/styles/flex/flexStyle.ts +70 -0
  189. package/src/core/styles/flex/index.ts +3 -0
  190. package/src/core/styles/flex/types.ts +25 -0
  191. package/src/core/styles/focusRing/index.ts +25 -0
  192. package/src/core/styles/font/codeFontStyle.ts +13 -0
  193. package/src/core/styles/font/headingFontStyle.ts +13 -0
  194. package/src/core/styles/font/index.ts +6 -0
  195. package/src/core/styles/font/labelFontStyle.ts +13 -0
  196. package/src/core/styles/font/responsiveFont.ts +101 -0
  197. package/src/core/styles/font/textAlignStyle.ts +19 -0
  198. package/src/core/styles/font/textFontStyle.ts +13 -0
  199. package/src/core/styles/font/types.ts +35 -0
  200. package/src/core/styles/grid/gridItemStyle.ts +82 -0
  201. package/src/core/styles/grid/gridStyle.ts +108 -0
  202. package/src/core/styles/grid/index.ts +3 -0
  203. package/src/core/styles/grid/types.ts +37 -0
  204. package/src/core/styles/helpers.ts +72 -0
  205. package/src/core/styles/index.ts +5 -0
  206. package/src/core/styles/input/index.ts +2 -0
  207. package/src/core/styles/input/responsiveInputPaddingStyle.ts +78 -0
  208. package/src/core/styles/input/textInputStyle.ts +263 -0
  209. package/src/core/styles/internal.ts +12 -0
  210. package/src/core/styles/margin/index.ts +2 -0
  211. package/src/core/styles/margin/marginStyle.ts +21 -0
  212. package/src/core/styles/margin/marginsStyle.test.ts +33 -0
  213. package/src/core/styles/margin/types.ts +9 -0
  214. package/src/core/styles/padding/index.ts +2 -0
  215. package/src/core/styles/padding/paddingStyle.test.ts +33 -0
  216. package/src/core/styles/padding/paddingStyle.ts +21 -0
  217. package/src/core/styles/padding/types.ts +12 -0
  218. package/src/core/styles/radius/index.ts +2 -0
  219. package/src/core/styles/radius/radiusStyle.ts +23 -0
  220. package/src/core/styles/radius/types.ts +8 -0
  221. package/src/core/styles/shadow/index.ts +2 -0
  222. package/src/core/styles/shadow/shadowStyle.ts +29 -0
  223. package/src/core/styles/shadow/types.ts +6 -0
  224. package/src/core/styles/types.ts +8 -0
  225. package/src/core/theme/__workshop__/build/Root.tsx +367 -0
  226. package/src/core/theme/__workshop__/build/helpers.ts +46 -0
  227. package/src/core/theme/__workshop__/build/story.tsx +465 -0
  228. package/src/core/theme/__workshop__/canvas.tsx +351 -0
  229. package/src/core/theme/__workshop__/color.tsx +62 -0
  230. package/src/core/theme/__workshop__/debug/story.tsx +408 -0
  231. package/src/core/theme/__workshop__/index.ts +39 -0
  232. package/src/core/theme/__workshop__/layer.tsx +78 -0
  233. package/src/core/theme/__workshop__/nestedProvider.tsx +15 -0
  234. package/src/core/theme/theme.test.tsx +73 -0
  235. package/src/core/theme/themeColorProvider.tsx +29 -0
  236. package/src/core/theme/themeContext.ts +10 -0
  237. package/src/core/theme/themeProvider.tsx +62 -0
  238. package/src/core/types/avatar.ts +14 -0
  239. package/src/core/types/box.ts +19 -0
  240. package/src/core/types/button.ts +21 -0
  241. package/src/core/types/flex.ts +30 -0
  242. package/src/core/types/grid.ts +14 -0
  243. package/src/core/types/gridItem.ts +29 -0
  244. package/src/core/types/index.ts +14 -0
  245. package/src/core/types/radius.ts +4 -0
  246. package/src/core/types/selectable.ts +6 -0
  247. package/src/core/types/text.ts +4 -0
  248. package/src/core/utils/arrow/arrow.tsx +123 -0
  249. package/src/core/utils/boundaryElement/boundaryElementProvider.tsx +24 -0
  250. package/src/core/utils/conditionalWrapper/conditionalWrapper.tsx +21 -0
  251. package/src/core/utils/elementQuery/elementQuery.tsx +53 -0
  252. package/src/core/utils/errorBoundary.tsx +48 -0
  253. package/src/core/utils/layer/layer.tsx +98 -0
  254. package/src/core/utils/layer/layerProvider.tsx +110 -0
  255. package/src/core/utils/portal/portal.ts +32 -0
  256. package/src/core/utils/portal/portalProvider.tsx +79 -0
  257. package/src/core/utils/srOnly/srOnly.tsx +36 -0
  258. package/src/core/utils/virtualList/virtualList.tsx +174 -0
  259. package/src/theme/build/_deprecated/color/_selectable/createSelectableTones.ts +1 -1
  260. package/src/theme/build/_deprecated/color/_solid/createSolidTones.ts +1 -1
  261. package/src/theme/build/_deprecated/color/button/createButtonModes.ts +6 -1
  262. package/src/theme/build/_deprecated/color/button/createButtonTones.ts +2 -2
  263. package/src/theme/build/_deprecated/color/card/createCardStates.ts +1 -1
  264. package/src/theme/build/_deprecated/color/factory.ts +3 -2
  265. package/src/theme/build/_deprecated/color/input/createInputModes.ts +1 -1
  266. package/src/theme/build/_deprecated/color/muted/createMuted.ts +1 -1
  267. package/src/theme/build/_deprecated/color/spot/createSpot.ts +1 -1
  268. package/src/theme/build/buildColorTheme.ts +1 -1
  269. package/src/theme/build/buildTheme.ts +32 -8
  270. package/src/theme/build/lib/color-fns/rgba.ts +0 -4
  271. package/src/theme/build/renderColorTheme.ts +4 -4
  272. package/src/theme/build/renderColorValue.ts +1 -1
  273. package/src/theme/build/resolveColorTokens.ts +1 -1
  274. package/src/theme/config/system.ts +1 -1
  275. package/src/theme/config/tokens/color/types.ts +1 -1
  276. package/src/theme/config/tokens/parseTokenKey.ts +1 -1
  277. package/src/theme/config/tokens/parseTokenValue.ts +1 -1
  278. package/src/theme/config/tokens/types.ts +1 -1
  279. package/src/theme/config/types.ts +3 -2
  280. package/src/theme/defaults/config.ts +2 -2
  281. package/src/theme/defaults/fonts.ts +16 -17
  282. package/src/theme/getScopedTheme.ts +9 -6
  283. package/src/theme/index.ts +1 -7
  284. package/src/theme/system/avatar.ts +14 -0
  285. package/src/theme/system/font.ts +52 -0
  286. package/src/theme/system/index.ts +11 -0
  287. package/src/theme/system/input.ts +33 -0
  288. package/src/theme/system/theme.ts +138 -0
  289. package/src/theme/system/v0/color/_generic.ts +35 -0
  290. package/src/theme/system/v0/color/color.ts +40 -0
  291. package/src/theme/system/v0/color/input.ts +34 -0
  292. package/src/theme/system/v0/color/spot.ts +13 -0
  293. package/src/theme/system/v0/index.ts +3 -0
  294. package/src/theme/versioning/getTheme_v2.ts +1 -2
  295. package/src/theme/versioning/index.ts +4 -0
  296. package/src/theme/versioning/is_v0.ts +1 -2
  297. package/src/theme/versioning/is_v2.ts +1 -2
  298. package/src/theme/versioning/themeColor_v0_v2.ts +4 -6
  299. package/src/theme/versioning/themeColor_v2_v2_9.ts +1 -1
  300. package/src/theme/versioning/v0_v2.ts +1 -2
  301. package/src/theme/versioning/v2_v0.ts +6 -6
  302. package/bin/ui.js +0 -5
  303. package/dist/_chunks-cjs/buildCommand.js +0 -32
  304. package/dist/_chunks-cjs/buildCommand.js.map +0 -1
  305. package/dist/cli.d.ts +0 -1
  306. package/dist/cli.js +0 -357
  307. package/dist/cli.js.map +0 -1
  308. package/dist/css.d.mts +0 -1471
  309. package/dist/css.d.ts +0 -1471
  310. package/dist/css.js +0 -4830
  311. package/dist/css.js.map +0 -1
  312. package/dist/css.mjs +0 -4831
  313. package/dist/css.mjs.map +0 -1
  314. package/dist/sanity-palette.css +0 -1
  315. package/dist/sanity-theme.css +0 -1
  316. package/dist/system.css +0 -23238
  317. package/exports/css.ts +0 -1
  318. package/src/cli/buildCommand.ts +0 -48
  319. package/src/cli/index.ts +0 -38
  320. package/src/css/_comp.test.ts +0 -7
  321. package/src/css/_comp.ts +0 -11
  322. package/src/css/_mergeStyles.ts +0 -31
  323. package/src/css/_resp.ts +0 -38
  324. package/src/css/_responsiveRule.ts +0 -38
  325. package/src/css/aspects/border/border.style.ts +0 -13
  326. package/src/css/aspects/border/border.ts +0 -14
  327. package/src/css/aspects/border/index.ts +0 -2
  328. package/src/css/aspects/border/types.ts +0 -10
  329. package/src/css/aspects/display/display.style.ts +0 -34
  330. package/src/css/aspects/display/display.ts +0 -7
  331. package/src/css/aspects/display/index.ts +0 -2
  332. package/src/css/aspects/display/types.ts +0 -17
  333. package/src/css/aspects/flex/flex.style.ts +0 -30
  334. package/src/css/aspects/flex/flex.ts +0 -13
  335. package/src/css/aspects/flex/flexAlign.style.ts +0 -12
  336. package/src/css/aspects/flex/flexDirection.style.ts +0 -11
  337. package/src/css/aspects/flex/flexJustify.style.ts +0 -13
  338. package/src/css/aspects/flex/flexWrap.style.ts +0 -10
  339. package/src/css/aspects/flex/index.ts +0 -2
  340. package/src/css/aspects/flex/types.ts +0 -35
  341. package/src/css/aspects/flexItem/flex.style.ts +0 -22
  342. package/src/css/aspects/flexItem/flexItem.ts +0 -8
  343. package/src/css/aspects/flexItem/index.ts +0 -2
  344. package/src/css/aspects/flexItem/types.ts +0 -27
  345. package/src/css/aspects/font/font.style.ts +0 -151
  346. package/src/css/aspects/font/font.ts +0 -12
  347. package/src/css/aspects/font/index.ts +0 -2
  348. package/src/css/aspects/font/types.ts +0 -12
  349. package/src/css/aspects/gap/gap.style.ts +0 -21
  350. package/src/css/aspects/gap/gap.ts +0 -8
  351. package/src/css/aspects/gap/index.ts +0 -2
  352. package/src/css/aspects/gap/types.ts +0 -10
  353. package/src/css/aspects/grid/grid.ts +0 -13
  354. package/src/css/aspects/grid/gridAutoColumns.style.ts +0 -11
  355. package/src/css/aspects/grid/gridAutoFlow.style.ts +0 -11
  356. package/src/css/aspects/grid/gridAutoRows.style.ts +0 -11
  357. package/src/css/aspects/grid/gridColumns.style.ts +0 -18
  358. package/src/css/aspects/grid/gridRows.style.ts +0 -18
  359. package/src/css/aspects/grid/index.ts +0 -2
  360. package/src/css/aspects/grid/types.ts +0 -29
  361. package/src/css/aspects/gridItem/gridColumn.style.ts +0 -20
  362. package/src/css/aspects/gridItem/gridColumnEnd.style.ts +0 -20
  363. package/src/css/aspects/gridItem/gridColumnStart.style.ts +0 -20
  364. package/src/css/aspects/gridItem/gridItem.ts +0 -15
  365. package/src/css/aspects/gridItem/gridRow.style.ts +0 -20
  366. package/src/css/aspects/gridItem/gridRowEnd.style.ts +0 -20
  367. package/src/css/aspects/gridItem/gridRowStart.style.ts +0 -20
  368. package/src/css/aspects/gridItem/index.ts +0 -2
  369. package/src/css/aspects/gridItem/types.ts +0 -41
  370. package/src/css/aspects/height/height.style.ts +0 -9
  371. package/src/css/aspects/height/height.ts +0 -17
  372. package/src/css/aspects/height/index.ts +0 -1
  373. package/src/css/aspects/height/rules.ts +0 -7
  374. package/src/css/aspects/index.ts +0 -21
  375. package/src/css/aspects/inset/index.ts +0 -2
  376. package/src/css/aspects/inset/inset.style.ts +0 -12
  377. package/src/css/aspects/inset/inset.ts +0 -13
  378. package/src/css/aspects/inset/types.ts +0 -13
  379. package/src/css/aspects/margin/index.ts +0 -2
  380. package/src/css/aspects/margin/margin.style.ts +0 -46
  381. package/src/css/aspects/margin/margin.ts +0 -15
  382. package/src/css/aspects/margin/types.ts +0 -11
  383. package/src/css/aspects/maxWidth/index.ts +0 -2
  384. package/src/css/aspects/maxWidth/maxWidth.style.ts +0 -16
  385. package/src/css/aspects/maxWidth/maxWidth.ts +0 -6
  386. package/src/css/aspects/maxWidth/types.ts +0 -7
  387. package/src/css/aspects/minWidth/index.ts +0 -2
  388. package/src/css/aspects/minWidth/minWidth.style.ts +0 -13
  389. package/src/css/aspects/minWidth/minWidth.ts +0 -6
  390. package/src/css/aspects/minWidth/types.ts +0 -7
  391. package/src/css/aspects/outline/outline.style.ts +0 -9
  392. package/src/css/aspects/overflow/index.ts +0 -2
  393. package/src/css/aspects/overflow/overflow.style.ts +0 -11
  394. package/src/css/aspects/overflow/overflow.ts +0 -11
  395. package/src/css/aspects/overflow/types.ts +0 -11
  396. package/src/css/aspects/padding/index.ts +0 -2
  397. package/src/css/aspects/padding/padding.style.ts +0 -46
  398. package/src/css/aspects/padding/padding.ts +0 -15
  399. package/src/css/aspects/padding/types.ts +0 -14
  400. package/src/css/aspects/pointerEvents/index.ts +0 -2
  401. package/src/css/aspects/pointerEvents/pointerEvents.style.ts +0 -13
  402. package/src/css/aspects/pointerEvents/pointerEvents.ts +0 -6
  403. package/src/css/aspects/pointerEvents/types.ts +0 -7
  404. package/src/css/aspects/position/index.ts +0 -2
  405. package/src/css/aspects/position/position.style.ts +0 -12
  406. package/src/css/aspects/position/position.ts +0 -7
  407. package/src/css/aspects/position/types.ts +0 -9
  408. package/src/css/aspects/radius/index.ts +0 -2
  409. package/src/css/aspects/radius/radius.style.ts +0 -16
  410. package/src/css/aspects/radius/radius.ts +0 -8
  411. package/src/css/aspects/radius/types.ts +0 -8
  412. package/src/css/aspects/shadow/index.ts +0 -2
  413. package/src/css/aspects/shadow/shadow.style.ts +0 -49
  414. package/src/css/aspects/shadow/shadow.ts +0 -7
  415. package/src/css/aspects/shadow/types.ts +0 -8
  416. package/src/css/aspects/textOverflow/index.ts +0 -2
  417. package/src/css/aspects/textOverflow/textOverflow.style.ts +0 -21
  418. package/src/css/aspects/textOverflow/textOverflow.ts +0 -6
  419. package/src/css/aspects/textOverflow/types.ts +0 -8
  420. package/src/css/aspects/width/index.ts +0 -2
  421. package/src/css/aspects/width/rules.ts +0 -8
  422. package/src/css/aspects/width/types.ts +0 -9
  423. package/src/css/aspects/width/width.style.ts +0 -11
  424. package/src/css/aspects/width/width.ts +0 -6
  425. package/src/css/compile/compilePalette.ts +0 -27
  426. package/src/css/compile/compileRule.ts +0 -97
  427. package/src/css/compile/compileRules.test.ts +0 -36
  428. package/src/css/compile/compileRules.ts +0 -43
  429. package/src/css/compile/compileStyle.ts +0 -148
  430. package/src/css/compile/compileSystem.ts +0 -10
  431. package/src/css/compile/compileTheme.ts +0 -15
  432. package/src/css/compile/compileTheme_v3.ts +0 -401
  433. package/src/css/compile/types.ts +0 -6
  434. package/src/css/components/breadcrumbs/breadcrumbs.style.ts +0 -9
  435. package/src/css/components/breadcrumbs/breadcrumbs.ts +0 -5
  436. package/src/css/components/breadcrumbs/rules.ts +0 -25
  437. package/src/css/components/dialog/dialog.style.ts +0 -79
  438. package/src/css/components/dialog/dialog.ts +0 -30
  439. package/src/css/components/dialog/index.ts +0 -1
  440. package/src/css/components/dialog/rules.ts +0 -78
  441. package/src/css/components/menu/index.ts +0 -1
  442. package/src/css/components/menu/menu.style.ts +0 -17
  443. package/src/css/components/menu/menu.ts +0 -9
  444. package/src/css/components/menu/rules.ts +0 -15
  445. package/src/css/components/skeleton/index.ts +0 -2
  446. package/src/css/components/skeleton/rules.ts +0 -113
  447. package/src/css/components/skeleton/skeleton.style.ts +0 -96
  448. package/src/css/components/skeleton/skeleton.ts +0 -31
  449. package/src/css/components/skeleton/types.ts +0 -26
  450. package/src/css/components/toast/index.ts +0 -1
  451. package/src/css/components/toast/rules.ts +0 -18
  452. package/src/css/components/toast/toast.style.ts +0 -20
  453. package/src/css/components/toast/toast.ts +0 -21
  454. package/src/css/components/tree/index.ts +0 -1
  455. package/src/css/components/tree/rules.ts +0 -168
  456. package/src/css/components/tree/tree.style.ts +0 -55
  457. package/src/css/components/tree/tree.ts +0 -5
  458. package/src/css/composeClassNames.ts +0 -17
  459. package/src/css/constants.ts +0 -1
  460. package/src/css/index.ts +0 -41
  461. package/src/css/primitives/_arrow/_arrow.style.ts +0 -73
  462. package/src/css/primitives/_arrow/_arrow.ts +0 -14
  463. package/src/css/primitives/_arrow/index.ts +0 -1
  464. package/src/css/primitives/_input/__workshop__/customInput.tsx +0 -16
  465. package/src/css/primitives/_input/__workshop__/index.ts +0 -14
  466. package/src/css/primitives/_input/_input.style.ts +0 -162
  467. package/src/css/primitives/_input/index.ts +0 -2
  468. package/src/css/primitives/_input/input.ts +0 -25
  469. package/src/css/primitives/_input/types.ts +0 -12
  470. package/src/css/primitives/_selectable/__style.ts +0 -117
  471. package/src/css/primitives/_selectable/_contants.ts +0 -11
  472. package/src/css/primitives/_selectable/_selectable.style.ts +0 -132
  473. package/src/css/primitives/_selectable/index.ts +0 -2
  474. package/src/css/primitives/_selectable/selectable.ts +0 -9
  475. package/src/css/primitives/_selectable/types.ts +0 -8
  476. package/src/css/primitives/avatar/avatar.style.ts +0 -175
  477. package/src/css/primitives/avatar/avatar.ts +0 -27
  478. package/src/css/primitives/avatar/index.ts +0 -2
  479. package/src/css/primitives/avatar/rules.ts +0 -176
  480. package/src/css/primitives/avatar/types.ts +0 -8
  481. package/src/css/primitives/badge/badge.style.ts +0 -22
  482. package/src/css/primitives/badge/badge.ts +0 -8
  483. package/src/css/primitives/badge/index.ts +0 -2
  484. package/src/css/primitives/badge/types.ts +0 -8
  485. package/src/css/primitives/box/box.style.ts +0 -31
  486. package/src/css/primitives/box/box.ts +0 -52
  487. package/src/css/primitives/box/index.ts +0 -2
  488. package/src/css/primitives/box/types.ts +0 -51
  489. package/src/css/primitives/button/_constants.ts +0 -17
  490. package/src/css/primitives/button/button.style.ts +0 -201
  491. package/src/css/primitives/button/button.ts +0 -41
  492. package/src/css/primitives/button/rules.ts +0 -302
  493. package/src/css/primitives/card/_constants.ts +0 -13
  494. package/src/css/primitives/card/card.style.ts +0 -270
  495. package/src/css/primitives/card/card.ts +0 -14
  496. package/src/css/primitives/card/types.ts +0 -10
  497. package/src/css/primitives/checkbox/__styles.ts +0 -129
  498. package/src/css/primitives/checkbox/checkbox.style.ts +0 -154
  499. package/src/css/primitives/checkbox/checkbox.ts +0 -9
  500. package/src/css/primitives/checkbox/rules.ts +0 -152
  501. package/src/css/primitives/code/code.style.ts +0 -62
  502. package/src/css/primitives/code/code.ts +0 -9
  503. package/src/css/primitives/code/index.ts +0 -2
  504. package/src/css/primitives/code/rules.ts +0 -96
  505. package/src/css/primitives/code/types.ts +0 -10
  506. package/src/css/primitives/container/container.style.ts +0 -10
  507. package/src/css/primitives/container/container.ts +0 -7
  508. package/src/css/primitives/container/rules.ts +0 -8
  509. package/src/css/primitives/container/types.ts +0 -7
  510. package/src/css/primitives/heading/heading.style.ts +0 -47
  511. package/src/css/primitives/heading/heading.ts +0 -17
  512. package/src/css/primitives/heading/index.ts +0 -2
  513. package/src/css/primitives/heading/rules.ts +0 -155
  514. package/src/css/primitives/heading/types.ts +0 -12
  515. package/src/css/primitives/kbd/index.ts +0 -2
  516. package/src/css/primitives/kbd/kbd.style.ts +0 -22
  517. package/src/css/primitives/kbd/kbd.ts +0 -7
  518. package/src/css/primitives/kbd/rules.ts +0 -20
  519. package/src/css/primitives/kbd/types.ts +0 -7
  520. package/src/css/primitives/label/index.ts +0 -2
  521. package/src/css/primitives/label/label.style.ts +0 -48
  522. package/src/css/primitives/label/label.ts +0 -16
  523. package/src/css/primitives/label/rules.ts +0 -137
  524. package/src/css/primitives/label/types.ts +0 -12
  525. package/src/css/primitives/popover/index.ts +0 -1
  526. package/src/css/primitives/popover/popover.style.ts +0 -5
  527. package/src/css/primitives/popover/popover.ts +0 -9
  528. package/src/css/primitives/popover/rules.ts +0 -5
  529. package/src/css/primitives/radio/radio.style.ts +0 -123
  530. package/src/css/primitives/radio/radio.ts +0 -5
  531. package/src/css/primitives/radio/rules.ts +0 -121
  532. package/src/css/primitives/select/index.ts +0 -2
  533. package/src/css/primitives/select/rules.ts +0 -22
  534. package/src/css/primitives/select/select.style.ts +0 -24
  535. package/src/css/primitives/select/select.ts +0 -12
  536. package/src/css/primitives/select/types.ts +0 -5
  537. package/src/css/primitives/spinner/rules.ts +0 -21
  538. package/src/css/primitives/spinner/spinner.style.ts +0 -22
  539. package/src/css/primitives/spinner/spinner.ts +0 -9
  540. package/src/css/primitives/stack/stack.style.ts +0 -9
  541. package/src/css/primitives/stack/stack.ts +0 -6
  542. package/src/css/primitives/switch/rules.ts +0 -340
  543. package/src/css/primitives/switch/switch.style.ts +0 -94
  544. package/src/css/primitives/switch/switch.ts +0 -21
  545. package/src/css/primitives/text/index.ts +0 -2
  546. package/src/css/primitives/text/rules.ts +0 -164
  547. package/src/css/primitives/text/text.style.ts +0 -64
  548. package/src/css/primitives/text/text.ts +0 -17
  549. package/src/css/primitives/text/types.ts +0 -11
  550. package/src/css/primitives/textArea/index.ts +0 -2
  551. package/src/css/primitives/textArea/rules.ts +0 -7
  552. package/src/css/primitives/textArea/textArea.style.ts +0 -9
  553. package/src/css/primitives/textArea/textArea.ts +0 -8
  554. package/src/css/primitives/textArea/types.ts +0 -5
  555. package/src/css/primitives/textInput/index.ts +0 -2
  556. package/src/css/primitives/textInput/rules.ts +0 -224
  557. package/src/css/primitives/textInput/textInput.style.ts +0 -167
  558. package/src/css/primitives/textInput/textInput.ts +0 -8
  559. package/src/css/primitives/textInput/types.ts +0 -11
  560. package/src/css/primitives/token/rules.ts +0 -45
  561. package/src/css/primitives/token/token.style.ts +0 -49
  562. package/src/css/primitives/tooltip/index.ts +0 -1
  563. package/src/css/primitives/tooltip/rules.ts +0 -19
  564. package/src/css/primitives/tooltip/tooltip.style.ts +0 -21
  565. package/src/css/primitives/tooltip/tooltip.ts +0 -9
  566. package/src/css/responsiveRules.ts +0 -25
  567. package/src/css/scopeClassName.ts +0 -6
  568. package/src/css/system.style.ts +0 -158
  569. package/src/css/types.ts +0 -850
  570. package/src/css/util.ts +0 -27
  571. package/src/css/utils/srOnly/srOnly.style.ts +0 -14
  572. package/src/css/utils/srOnly/srOnly.ts +0 -5
  573. package/src/css/varNames.ts +0 -496
  574. package/src/css/vars.ts +0 -465
  575. package/src/theme/_constants.ts +0 -26
  576. package/src/theme/_types.ts +0 -41
  577. package/src/theme/palette/constants.ts +0 -13
  578. package/src/theme/palette/index.ts +0 -2
  579. package/src/theme/palette/types.ts +0 -4
  580. package/src/theme/types.ts +0 -32
  581. package/src/theme/v0/color/_generic.ts +0 -35
  582. package/src/theme/v0/color/color.ts +0 -40
  583. package/src/theme/v0/color/input.ts +0 -34
  584. package/src/theme/v0/color/spot.ts +0 -13
  585. package/src/theme/v0/font.ts +0 -53
  586. package/src/theme/v0/index.ts +0 -10
  587. package/src/theme/v0/theme.ts +0 -72
  588. package/src/theme/v2/avatar.ts +0 -14
  589. package/src/theme/v2/index.ts +0 -4
  590. package/src/theme/v2/input.ts +0 -33
  591. package/src/theme/v2/theme.ts +0 -49
  592. package/src/theme/v3/buildTheme_v3.test.ts +0 -40
  593. package/src/theme/v3/buildTheme_v3.ts +0 -29
  594. package/src/theme/v3/color/buildColor_v3.ts +0 -198
  595. package/src/theme/v3/color/card.ts +0 -121
  596. package/src/theme/v3/color/color.ts +0 -98
  597. package/src/theme/v3/color/element.ts +0 -19
  598. package/src/theme/v3/color/index.ts +0 -7
  599. package/src/theme/v3/color/parseColor.test.ts +0 -79
  600. package/src/theme/v3/color/parseColor.ts +0 -167
  601. package/src/theme/v3/color/renderColor.test.ts +0 -19
  602. package/src/theme/v3/color/renderColor.ts +0 -33
  603. package/src/theme/v3/color/token.ts +0 -17
  604. package/src/theme/v3/color/tokens.ts +0 -5
  605. package/src/theme/v3/defaults.ts +0 -202
  606. package/src/theme/v3/index.ts +0 -6
  607. package/src/theme/v3/merge.ts +0 -22
  608. package/src/theme/v3/resolveTokens.ts +0 -204
  609. package/src/theme/v3/tokens.ts +0 -16
  610. package/src/theme/v3/types.ts +0 -45
  611. package/src/theme/versioning/themeColor_v3_v2.ts +0 -206
  612. package/src/theme/versioning/v3_v2.ts +0 -108
  613. package/src/ui/StyleTags.tsx +0 -24
  614. package/src/ui/_compat/index.ts +0 -9
  615. package/src/ui/_compat/styles/_responsive.ts +0 -19
  616. package/src/ui/_compat/styles/index.ts +0 -1
  617. package/src/ui/_compat/theme/theme.test.tsx +0 -73
  618. package/src/ui/_compat/theme/themeColorProvider.tsx +0 -30
  619. package/src/ui/_compat/theme/themeContext.ts +0 -10
  620. package/src/ui/_compat/theme/themeProvider.tsx +0 -74
  621. package/src/ui/_compat/types.ts +0 -274
  622. package/src/ui/components/autocomplete/__workshop__/async.tsx +0 -156
  623. package/src/ui/components/autocomplete/__workshop__/constrainedHeight.tsx +0 -131
  624. package/src/ui/components/autocomplete/__workshop__/custom.tsx +0 -90
  625. package/src/ui/components/autocomplete/__workshop__/example.tsx +0 -80
  626. package/src/ui/components/autocomplete/__workshop__/fullscreen.tsx +0 -293
  627. package/src/ui/components/autocomplete/autocomplete.tsx +0 -722
  628. package/src/ui/components/autocomplete/autocompleteOption.tsx +0 -45
  629. package/src/ui/components/autocomplete/types.ts +0 -108
  630. package/src/ui/components/breadcrumbs/breadcrumbs.tsx +0 -127
  631. package/src/ui/components/breadcrumbs/index.ts +0 -1
  632. package/src/ui/components/dialog/__workshop__/nested.tsx +0 -72
  633. package/src/ui/components/dialog/__workshop__/onScroll.tsx +0 -39
  634. package/src/ui/components/dialog/__workshop__/position.tsx +0 -30
  635. package/src/ui/components/dialog/__workshop__/props.tsx +0 -77
  636. package/src/ui/components/dialog/dialog.tsx +0 -432
  637. package/src/ui/components/dialog/dialogProvider.tsx +0 -35
  638. package/src/ui/components/hotkeys/hotkeys.tsx +0 -54
  639. package/src/ui/components/menu/__workshop__/menuButton.tsx +0 -80
  640. package/src/ui/components/menu/__workshop__/tones.tsx +0 -25
  641. package/src/ui/components/menu/menu.test.tsx +0 -128
  642. package/src/ui/components/menu/menu.tsx +0 -200
  643. package/src/ui/components/menu/menuButton.tsx +0 -275
  644. package/src/ui/components/menu/menuContext.ts +0 -31
  645. package/src/ui/components/menu/menuDivider.tsx +0 -22
  646. package/src/ui/components/menu/menuGroup.tsx +0 -228
  647. package/src/ui/components/menu/menuItem.tsx +0 -180
  648. package/src/ui/components/menu/useMenuController.ts +0 -241
  649. package/src/ui/components/skeleton/__workshop__/delay.tsx +0 -70
  650. package/src/ui/components/skeleton/__workshop__/skeleton.tsx +0 -64
  651. package/src/ui/components/skeleton/skeleton.tsx +0 -53
  652. package/src/ui/components/skeleton/textSkeleton.tsx +0 -132
  653. package/src/ui/components/tab/tab.tsx +0 -105
  654. package/src/ui/components/tab/tabList.tsx +0 -74
  655. package/src/ui/components/tab/tabPanel.tsx +0 -40
  656. package/src/ui/components/toast/__workshop__/toast.tsx +0 -26
  657. package/src/ui/components/toast/toast.tsx +0 -211
  658. package/src/ui/components/toast/toastLayer.tsx +0 -38
  659. package/src/ui/components/toast/types.ts +0 -28
  660. package/src/ui/components/tree/tree.tsx +0 -244
  661. package/src/ui/components/tree/treeGroup.tsx +0 -30
  662. package/src/ui/components/tree/treeItem.tsx +0 -220
  663. package/src/ui/components/tree/types.ts +0 -25
  664. package/src/ui/constants.ts +0 -85
  665. package/src/ui/helpers/index.ts +0 -5
  666. package/src/ui/helpers/props.ts +0 -10
  667. package/src/ui/hooks/useArrayProp.ts +0 -29
  668. package/src/ui/hooks/useClickOutside.test.tsx +0 -482
  669. package/src/ui/hooks/useForwardedRef.ts +0 -19
  670. package/src/ui/hooks/useMatchMedia.ts +0 -28
  671. package/src/ui/hooks/useMediaIndex/useMediaIndex.test.tsx +0 -36
  672. package/src/ui/hooks/useMediaIndex/useMediaIndex.ts +0 -102
  673. package/src/ui/hooks/usePrefersDark.ts +0 -16
  674. package/src/ui/hooks/usePrefersReducedMotion.ts +0 -16
  675. package/src/ui/index.ts +0 -9
  676. package/src/ui/primitives/_selectable/selectable.tsx +0 -31
  677. package/src/ui/primitives/avatar/__workshop__/asButton.tsx +0 -14
  678. package/src/ui/primitives/avatar/__workshop__/stack.tsx +0 -25
  679. package/src/ui/primitives/avatar/__workshop__/withinButton.tsx +0 -63
  680. package/src/ui/primitives/avatar/__workshop__/withinMenuItem.tsx +0 -72
  681. package/src/ui/primitives/avatar/avatar.tsx +0 -158
  682. package/src/ui/primitives/avatar/avatarCounter.tsx +0 -62
  683. package/src/ui/primitives/avatar/avatarStack.tsx +0 -82
  684. package/src/ui/primitives/badge/__workshop__/props.tsx +0 -30
  685. package/src/ui/primitives/badge/__workshop__/tones.tsx +0 -21
  686. package/src/ui/primitives/badge/badge.tsx +0 -64
  687. package/src/ui/primitives/box/__workshop__/props.tsx +0 -20
  688. package/src/ui/primitives/box/box.tsx +0 -162
  689. package/src/ui/primitives/button/__workshop__/custom.tsx +0 -50
  690. package/src/ui/primitives/button/__workshop__/props.tsx +0 -58
  691. package/src/ui/primitives/button/__workshop__/stacked.tsx +0 -59
  692. package/src/ui/primitives/button/button.tsx +0 -207
  693. package/src/ui/primitives/button/index.ts +0 -1
  694. package/src/ui/primitives/card/__workshop__/allTones.tsx +0 -27
  695. package/src/ui/primitives/card/__workshop__/asButton.tsx +0 -107
  696. package/src/ui/primitives/card/__workshop__/props.tsx +0 -55
  697. package/src/ui/primitives/card/__workshop__/selected.tsx +0 -93
  698. package/src/ui/primitives/card/card.tsx +0 -118
  699. package/src/ui/primitives/card/cardContext.ts +0 -10
  700. package/src/ui/primitives/card/cardProvider.tsx +0 -19
  701. package/src/ui/primitives/card/index.ts +0 -4
  702. package/src/ui/primitives/card/types.ts +0 -27
  703. package/src/ui/primitives/card/useCard.ts +0 -7
  704. package/src/ui/primitives/checkbox/checkbox.tsx +0 -74
  705. package/src/ui/primitives/checkbox/index.ts +0 -1
  706. package/src/ui/primitives/code/__workshop__/props.tsx +0 -21
  707. package/src/ui/primitives/code/code.tsx +0 -49
  708. package/src/ui/primitives/code/refractor.tsx +0 -20
  709. package/src/ui/primitives/container/__workshop__/example.tsx +0 -20
  710. package/src/ui/primitives/container/container.tsx +0 -35
  711. package/src/ui/primitives/container/index.ts +0 -2
  712. package/src/ui/primitives/flex/__workshop__/example.tsx +0 -34
  713. package/src/ui/primitives/flex/__workshop__/gap.tsx +0 -25
  714. package/src/ui/primitives/flex/flex.tsx +0 -29
  715. package/src/ui/primitives/grid/grid.tsx +0 -30
  716. package/src/ui/primitives/heading/__workshop__/plain.tsx +0 -32
  717. package/src/ui/primitives/heading/heading.tsx +0 -62
  718. package/src/ui/primitives/inline/__workshop__/plain.tsx +0 -27
  719. package/src/ui/primitives/inline/inline.tsx +0 -50
  720. package/src/ui/primitives/kbd/kbd.tsx +0 -55
  721. package/src/ui/primitives/label/__workshop__/opticalAlignment.tsx +0 -54
  722. package/src/ui/primitives/label/__workshop__/plain.tsx +0 -37
  723. package/src/ui/primitives/label/label.tsx +0 -67
  724. package/src/ui/primitives/popover/__workshop__/AlignedStory.tsx +0 -77
  725. package/src/ui/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -32
  726. package/src/ui/primitives/popover/__workshop__/OpenOnMountStory.tsx +0 -11
  727. package/src/ui/primitives/popover/__workshop__/PlainStory.tsx +0 -71
  728. package/src/ui/primitives/popover/__workshop__/RecursiveStory.tsx +0 -70
  729. package/src/ui/primitives/popover/__workshop__/SidePanelStory.tsx +0 -93
  730. package/src/ui/primitives/popover/__workshop__/TestStory.tsx +0 -98
  731. package/src/ui/primitives/popover/helpers.ts +0 -32
  732. package/src/ui/primitives/popover/popover.tsx +0 -422
  733. package/src/ui/primitives/popover/popoverCard.tsx +0 -161
  734. package/src/ui/primitives/radio/index.ts +0 -1
  735. package/src/ui/primitives/radio/radio.tsx +0 -49
  736. package/src/ui/primitives/select/__workshop__/plain.tsx +0 -30
  737. package/src/ui/primitives/select/select.tsx +0 -85
  738. package/src/ui/primitives/spinner/__workshop__/Props.tsx +0 -16
  739. package/src/ui/primitives/spinner/animatedSpinnerIcon.tsx +0 -16
  740. package/src/ui/primitives/spinner/index.ts +0 -1
  741. package/src/ui/primitives/spinner/spinner.tsx +0 -33
  742. package/src/ui/primitives/stack/__workshop__/plain.tsx +0 -32
  743. package/src/ui/primitives/stack/index.ts +0 -1
  744. package/src/ui/primitives/stack/stack.tsx +0 -45
  745. package/src/ui/primitives/switch/index.ts +0 -1
  746. package/src/ui/primitives/switch/switch.tsx +0 -75
  747. package/src/ui/primitives/text/__workshop__/colored.tsx +0 -23
  748. package/src/ui/primitives/text/__workshop__/example.tsx +0 -39
  749. package/src/ui/primitives/text/text.tsx +0 -64
  750. package/src/ui/primitives/textArea/__workshop__/plain.tsx +0 -50
  751. package/src/ui/primitives/textArea/textArea.tsx +0 -71
  752. package/src/ui/primitives/textInput/__workshop__/plain.tsx +0 -104
  753. package/src/ui/primitives/textInput/__workshop__/typed.tsx +0 -23
  754. package/src/ui/primitives/textInput/textInput.tsx +0 -286
  755. package/src/ui/primitives/tooltip/__workshop__/customPortal.tsx +0 -102
  756. package/src/ui/primitives/tooltip/__workshop__/overflowingBoundary.tsx +0 -74
  757. package/src/ui/primitives/tooltip/__workshop__/props.tsx +0 -111
  758. package/src/ui/primitives/tooltip/__workshop__/resizableBoundary.tsx +0 -86
  759. package/src/ui/primitives/tooltip/tooltip.test.tsx +0 -453
  760. package/src/ui/primitives/tooltip/tooltip.tsx +0 -466
  761. package/src/ui/primitives/tooltip/tooltipCard.tsx +0 -115
  762. package/src/ui/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +0 -55
  763. package/src/ui/primitives/types.ts +0 -166
  764. package/src/ui/types/avatar.ts +0 -19
  765. package/src/ui/types/box.ts +0 -22
  766. package/src/ui/types/button.ts +0 -24
  767. package/src/ui/types/flex.ts +0 -27
  768. package/src/ui/types/grid.ts +0 -17
  769. package/src/ui/types/gridItem.ts +0 -32
  770. package/src/ui/types/index.ts +0 -15
  771. package/src/ui/types/props.ts +0 -18
  772. package/src/ui/types/radius.ts +0 -7
  773. package/src/ui/types/selectable.ts +0 -7
  774. package/src/ui/types/text.ts +0 -7
  775. package/src/ui/utils/arrow/arrow.tsx +0 -59
  776. package/src/ui/utils/boundaryElement/boundaryElementProvider.tsx +0 -24
  777. package/src/ui/utils/conditionalWrapper/conditionalWrapper.tsx +0 -23
  778. package/src/ui/utils/elementQuery/elementQuery.tsx +0 -53
  779. package/src/ui/utils/errorBoundary.tsx +0 -48
  780. package/src/ui/utils/layer/layer.tsx +0 -112
  781. package/src/ui/utils/layer/layerProvider.tsx +0 -110
  782. package/src/ui/utils/portal/portal.ts +0 -46
  783. package/src/ui/utils/portal/portalProvider.tsx +0 -79
  784. package/src/ui/utils/srOnly/index.ts +0 -1
  785. package/src/ui/utils/srOnly/srOnly.tsx +0 -35
  786. package/src/ui/utils/virtualList/virtualList.tsx +0 -189
  787. /package/src/{ui → core}/components/autocomplete/__mocks__/apiStore.ts +0 -0
  788. /package/src/{ui → core}/components/autocomplete/__mocks__/countries.ts +0 -0
  789. /package/src/{ui → core}/components/autocomplete/__workshop__/focusAndBlur.tsx +0 -0
  790. /package/src/{ui → core}/components/autocomplete/__workshop__/index.ts +0 -0
  791. /package/src/{ui → core}/components/autocomplete/__workshop__/types.ts +0 -0
  792. /package/src/{ui → core}/components/autocomplete/autocompleteReducer.ts +0 -0
  793. /package/src/{ui → core}/components/autocomplete/constants.ts +0 -0
  794. /package/src/{ui → core}/components/autocomplete/index.ts +0 -0
  795. /package/src/{ui → core}/components/breadcrumbs/__workshop__/example.tsx +0 -0
  796. /package/src/{ui → core}/components/breadcrumbs/__workshop__/index.ts +0 -0
  797. /package/src/{css → core}/components/breadcrumbs/index.ts +0 -0
  798. /package/src/{ui → core}/components/dialog/__workshop__/activate.tsx +0 -0
  799. /package/src/{ui → core}/components/dialog/__workshop__/autoFocus.tsx +0 -0
  800. /package/src/{ui → core}/components/dialog/__workshop__/index.ts +0 -0
  801. /package/src/{ui → core}/components/dialog/__workshop__/layering.tsx +0 -0
  802. /package/src/{ui → core}/components/dialog/__workshop__/panes.tsx +0 -0
  803. /package/src/{ui → core}/components/dialog/__workshop__/provider.tsx +0 -0
  804. /package/src/{ui → core}/components/dialog/__workshop__/wrapped.tsx +0 -0
  805. /package/src/{ui → core}/components/dialog/dialogContext.ts +0 -0
  806. /package/src/{ui → core}/components/dialog/index.ts +0 -0
  807. /package/src/{ui → core}/components/dialog/useDialog.ts +0 -0
  808. /package/src/{ui → core}/components/hotkeys/__workshop__/index.ts +0 -0
  809. /package/src/{ui → core}/components/hotkeys/__workshop__/plain.tsx +0 -0
  810. /package/src/{ui → core}/components/hotkeys/index.ts +0 -0
  811. /package/src/{ui → core}/components/index.ts +0 -0
  812. /package/src/{ui → core}/components/menu/__workshop__/asComponent.tsx +0 -0
  813. /package/src/{ui → core}/components/menu/__workshop__/avatarMenu.tsx +0 -0
  814. /package/src/{ui → core}/components/menu/__workshop__/closableMenuButton.tsx +0 -0
  815. /package/src/{ui → core}/components/menu/__workshop__/constrainedInBoundary.tsx +0 -0
  816. /package/src/{ui → core}/components/menu/__workshop__/customMenuItem.tsx +0 -0
  817. /package/src/{ui → core}/components/menu/__workshop__/customSelectedState.tsx +0 -0
  818. /package/src/{ui → core}/components/menu/__workshop__/disableFocusOnClose.tsx +0 -0
  819. /package/src/{ui → core}/components/menu/__workshop__/groups.tsx +0 -0
  820. /package/src/{ui → core}/components/menu/__workshop__/index.ts +0 -0
  821. /package/src/{ui → core}/components/menu/__workshop__/menuGroupRight.tsx +0 -0
  822. /package/src/{ui → core}/components/menu/__workshop__/nestedMenu.tsx +0 -0
  823. /package/src/{ui → core}/components/menu/__workshop__/onCloseMenuButton.tsx +0 -0
  824. /package/src/{ui → core}/components/menu/__workshop__/selectedItem.tsx +0 -0
  825. /package/src/{ui → core}/components/menu/__workshop__/shouldFocus.tsx +0 -0
  826. /package/src/{ui → core}/components/menu/__workshop__/withoutArrow.tsx +0 -0
  827. /package/src/{ui → core}/components/menu/helpers.ts +0 -0
  828. /package/src/{ui → core}/components/menu/index.ts +0 -0
  829. /package/src/{ui → core}/components/menu/useMenu.ts +0 -0
  830. /package/src/{ui → core}/components/skeleton/__workshop__/index.ts +0 -0
  831. /package/src/{ui → core}/components/skeleton/index.ts +0 -0
  832. /package/src/{ui → core}/components/tab/__workshop__/example.tsx +0 -0
  833. /package/src/{ui → core}/components/tab/__workshop__/index.ts +0 -0
  834. /package/src/{ui → core}/components/tab/index.ts +0 -0
  835. /package/src/{ui → core}/components/toast/__workshop__/hook.tsx +0 -0
  836. /package/src/{ui → core}/components/toast/__workshop__/index.ts +0 -0
  837. /package/src/{ui → core}/components/toast/index.ts +0 -0
  838. /package/src/{ui → core}/components/toast/toast.test.tsx +0 -0
  839. /package/src/{ui → core}/components/toast/toastContext.ts +0 -0
  840. /package/src/{ui → core}/components/toast/toastProvider.tsx +0 -0
  841. /package/src/{ui → core}/components/toast/toastState.ts +0 -0
  842. /package/src/{ui → core}/components/toast/useToast.ts +0 -0
  843. /package/src/{ui → core}/components/tree/__workshop__/basic.perf.ts +0 -0
  844. /package/src/{ui → core}/components/tree/__workshop__/basic.tsx +0 -0
  845. /package/src/{ui → core}/components/tree/__workshop__/index.ts +0 -0
  846. /package/src/{ui → core}/components/tree/__workshop__/tabFromElement.tsx +0 -0
  847. /package/src/{ui → core}/components/tree/helpers.ts +0 -0
  848. /package/src/{ui → core}/components/tree/index.ts +0 -0
  849. /package/src/{ui → core}/components/tree/treeContext.ts +0 -0
  850. /package/src/{ui → core}/components/tree/useTree.ts +0 -0
  851. /package/src/{ui → core}/global.ts +0 -0
  852. /package/src/{ui → core}/helpers/animation.ts +0 -0
  853. /package/src/{ui → core}/helpers/element.ts +0 -0
  854. /package/src/{ui → core}/helpers/focus.ts +0 -0
  855. /package/src/{ui → core}/helpers/scroll.ts +0 -0
  856. /package/src/{ui → core}/hooks/index.ts +0 -0
  857. /package/src/{ui → core}/hooks/useClickOutside.ts +0 -0
  858. /package/src/{ui → core}/hooks/useClickOutsideEvent.test.tsx +0 -0
  859. /package/src/{ui → core}/hooks/useClickOutsideEvent.ts +0 -0
  860. /package/src/{ui → core}/hooks/useCustomValidity.ts +0 -0
  861. /package/src/{ui → core}/hooks/useDelayed.test.ts +0 -0
  862. /package/src/{ui → core}/hooks/useDelayedState.ts +0 -0
  863. /package/src/{ui → core}/hooks/useElementRect/__workshop__/example.tsx +0 -0
  864. /package/src/{ui → core}/hooks/useElementRect/__workshop__/index.ts +0 -0
  865. /package/src/{ui → core}/hooks/useElementRect/index.ts +0 -0
  866. /package/src/{ui → core}/hooks/useElementRect/useElementRect.ts +0 -0
  867. /package/src/{ui → core}/hooks/useElementSize.ts +0 -0
  868. /package/src/{ui → core}/hooks/useGlobalKeyDown.ts +0 -0
  869. /package/src/{ui → core}/hooks/useIsomorphicEffect.ts +0 -0
  870. /package/src/{ui → core}/hooks/useMediaIndex/__workshop__/index.ts +0 -0
  871. /package/src/{ui → core}/hooks/useMediaIndex/__workshop__/test.tsx +0 -0
  872. /package/src/{ui → core}/hooks/useMediaIndex/index.ts +0 -0
  873. /package/src/{ui → core}/hooks/useMounted.ts +0 -0
  874. /package/src/{ui → core}/hooks/usePrefersDark.hydration.test.tsx +0 -0
  875. /package/src/{ui → core}/hooks/usePrefersDark.test.tsx +0 -0
  876. /package/src/{ui → core}/hooks/usePrefersReducedMotion.hydration.test.tsx +0 -0
  877. /package/src/{ui → core}/hooks/usePrefersReducedMotion.test.tsx +0 -0
  878. /package/src/{ui → core}/lib/createGlobalScopedContext.ts +0 -0
  879. /package/src/{ui → core}/lib/globalScope.ts +0 -0
  880. /package/src/{ui → core}/lib/isRecord.ts +0 -0
  881. /package/src/{ui → core}/middleware/origin.ts +0 -0
  882. /package/src/{ui → core}/observers/elementSizeObserver.ts +0 -0
  883. /package/src/{ui → core}/observers/index.ts +0 -0
  884. /package/src/{ui → core}/observers/resizeObserver.ts +0 -0
  885. /package/src/{ui → core}/primitives/_selectable/index.ts +0 -0
  886. /package/src/{ui → core}/primitives/avatar/__workshop__/index.ts +0 -0
  887. /package/src/{ui → core}/primitives/avatar/index.ts +0 -0
  888. /package/src/{ui → core}/primitives/avatar/types.ts +0 -0
  889. /package/src/{ui → core}/primitives/badge/__workshop__/index.ts +0 -0
  890. /package/src/{ui → core}/primitives/badge/badge.test.tsx +0 -0
  891. /package/src/{ui → core}/primitives/badge/index.ts +0 -0
  892. /package/src/{ui → core}/primitives/badge/types.ts +0 -0
  893. /package/src/{ui → core}/primitives/box/__workshop__/index.ts +0 -0
  894. /package/src/{ui → core}/primitives/box/__workshop__/responsive.tsx +0 -0
  895. /package/src/{ui → core}/primitives/box/index.ts +0 -0
  896. /package/src/{ui → core}/primitives/button/__workshop__/customIcons.tsx +0 -0
  897. /package/src/{ui → core}/primitives/button/__workshop__/disabled.tsx +0 -0
  898. /package/src/{ui → core}/primitives/button/__workshop__/index.ts +0 -0
  899. /package/src/{ui → core}/primitives/button/__workshop__/mixedChildren.tsx +0 -0
  900. /package/src/{ui → core}/primitives/button/__workshop__/sanityUploadButton.tsx +0 -0
  901. /package/src/{ui → core}/primitives/button/__workshop__/styled1.tsx +0 -0
  902. /package/src/{ui → core}/primitives/button/__workshop__/styled2.tsx +0 -0
  903. /package/src/{ui → core}/primitives/button/__workshop__/uploadButton.tsx +0 -0
  904. /package/src/{ui → core}/primitives/button/button.test.tsx +0 -0
  905. /package/src/{css → core}/primitives/button/index.ts +0 -0
  906. /package/src/{ui → core}/primitives/card/__workshop__/asComponent.tsx +0 -0
  907. /package/src/{ui → core}/primitives/card/__workshop__/checkered.tsx +0 -0
  908. /package/src/{ui → core}/primitives/card/__workshop__/index.ts +0 -0
  909. /package/src/{ui → core}/primitives/card/__workshop__/interactive.tsx +0 -0
  910. /package/src/{ui → core}/primitives/card/__workshop__/listNavigation.tsx +0 -0
  911. /package/src/{ui → core}/primitives/card/__workshop__/styled.tsx +0 -0
  912. /package/src/{css → core}/primitives/card/index.ts +0 -0
  913. /package/src/{ui → core}/primitives/checkbox/__workshop__/example.tsx +0 -0
  914. /package/src/{ui → core}/primitives/checkbox/__workshop__/index.ts +0 -0
  915. /package/src/{ui → core}/primitives/checkbox/__workshop__/props.tsx +0 -0
  916. /package/src/{ui → core}/primitives/checkbox/__workshop__/readOnly.tsx +0 -0
  917. /package/src/{ui → core}/primitives/checkbox/__workshop__/tones.tsx +0 -0
  918. /package/src/{css → core}/primitives/checkbox/index.ts +0 -0
  919. /package/src/{ui → core}/primitives/code/__workshop__/index.ts +0 -0
  920. /package/src/{ui → core}/primitives/code/__workshop__/opticalAlignment.tsx +0 -0
  921. /package/src/{ui → core}/primitives/code/index.ts +0 -0
  922. /package/src/{ui → core}/primitives/container/__workshop__/index.ts +0 -0
  923. /package/src/{css → core}/primitives/container/index.ts +0 -0
  924. /package/src/{ui → core}/primitives/container/types.ts +0 -0
  925. /package/src/{ui → core}/primitives/flex/__workshop__/index.ts +0 -0
  926. /package/src/{ui → core}/primitives/flex/index.ts +0 -0
  927. /package/src/{ui → core}/primitives/grid/__workshop__/index.ts +0 -0
  928. /package/src/{ui → core}/primitives/grid/__workshop__/responsive.tsx +0 -0
  929. /package/src/{ui → core}/primitives/grid/index.ts +0 -0
  930. /package/src/{ui → core}/primitives/heading/__workshop__/index.ts +0 -0
  931. /package/src/{ui → core}/primitives/heading/__workshop__/opticalAlignment.tsx +0 -0
  932. /package/src/{ui → core}/primitives/heading/index.ts +0 -0
  933. /package/src/{ui → core}/primitives/index.ts +0 -0
  934. /package/src/{ui → core}/primitives/inline/__workshop__/index.ts +0 -0
  935. /package/src/{ui → core}/primitives/inline/index.ts +0 -0
  936. /package/src/{ui → core}/primitives/inline/types.ts +0 -0
  937. /package/src/{ui → core}/primitives/kbd/__workshop__/index.ts +0 -0
  938. /package/src/{ui → core}/primitives/kbd/__workshop__/plain.tsx +0 -0
  939. /package/src/{ui → core}/primitives/kbd/index.ts +0 -0
  940. /package/src/{ui → core}/primitives/label/__workshop__/index.ts +0 -0
  941. /package/src/{ui → core}/primitives/label/index.ts +0 -0
  942. /package/src/{ui → core}/primitives/popover/__workshop__/MarginsStory.tsx +0 -0
  943. /package/src/{ui → core}/primitives/popover/__workshop__/index.ts +0 -0
  944. /package/src/{ui → core}/primitives/popover/constants.ts +0 -0
  945. /package/src/{ui → core}/primitives/popover/floating-ui/size.ts +0 -0
  946. /package/src/{ui → core}/primitives/popover/index.ts +0 -0
  947. /package/src/{ui → core}/primitives/popover/types.ts +0 -0
  948. /package/src/{ui → core}/primitives/radio/__workshop__/example.tsx +0 -0
  949. /package/src/{ui → core}/primitives/radio/__workshop__/index.ts +0 -0
  950. /package/src/{ui → core}/primitives/radio/__workshop__/plain.tsx +0 -0
  951. /package/src/{css → core}/primitives/radio/index.ts +0 -0
  952. /package/src/{ui → core}/primitives/select/__workshop__/index.ts +0 -0
  953. /package/src/{ui → core}/primitives/select/__workshop__/readOnly.tsx +0 -0
  954. /package/src/{ui → core}/primitives/select/index.ts +0 -0
  955. /package/src/{ui → core}/primitives/spinner/__workshop__/index.ts +0 -0
  956. /package/src/{css → core}/primitives/spinner/index.ts +0 -0
  957. /package/src/{ui → core}/primitives/stack/__workshop__/index.ts +0 -0
  958. /package/src/{css → core}/primitives/stack/index.ts +0 -0
  959. /package/src/{ui → core}/primitives/switch/__workshop__/example.tsx +0 -0
  960. /package/src/{ui → core}/primitives/switch/__workshop__/index.ts +0 -0
  961. /package/src/{ui → core}/primitives/switch/__workshop__/props.tsx +0 -0
  962. /package/src/{css → core}/primitives/switch/index.ts +0 -0
  963. /package/src/{ui → core}/primitives/text/__workshop__/index.ts +0 -0
  964. /package/src/{ui → core}/primitives/text/__workshop__/opticalAlignment.tsx +0 -0
  965. /package/src/{ui → core}/primitives/text/index.ts +0 -0
  966. /package/src/{ui → core}/primitives/textArea/__workshop__/index.ts +0 -0
  967. /package/src/{ui → core}/primitives/textArea/index.ts +0 -0
  968. /package/src/{ui → core}/primitives/textInput/__workshop__/clearButton.tsx +0 -0
  969. /package/src/{ui → core}/primitives/textInput/__workshop__/customValidity.tsx +0 -0
  970. /package/src/{ui → core}/primitives/textInput/__workshop__/index.ts +0 -0
  971. /package/src/{ui → core}/primitives/textInput/__workshop__/readOnly.tsx +0 -0
  972. /package/src/{ui → core}/primitives/textInput/__workshop__/states.tsx +0 -0
  973. /package/src/{ui → core}/primitives/textInput/__workshop__/tones.tsx +0 -0
  974. /package/src/{ui → core}/primitives/textInput/index.ts +0 -0
  975. /package/src/{ui → core}/primitives/tooltip/__workshop__/index.ts +0 -0
  976. /package/src/{ui → core}/primitives/tooltip/constants.ts +0 -0
  977. /package/src/{ui → core}/primitives/tooltip/index.ts +0 -0
  978. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/index.ts +0 -0
  979. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +0 -0
  980. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/types.ts +0 -0
  981. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -0
  982. /package/src/{ui/_compat → core}/theme/index.ts +0 -0
  983. /package/src/{ui/_compat → core}/theme/types.ts +0 -0
  984. /package/src/{ui/_compat → core}/theme/useRootTheme.ts +0 -0
  985. /package/src/{ui/_compat → core}/theme/useTheme.ts +0 -0
  986. /package/src/{ui → core}/types/badge.ts +0 -0
  987. /package/src/{ui → core}/types/card.ts +0 -0
  988. /package/src/{ui → core}/types/dialog.ts +0 -0
  989. /package/src/{ui → core}/types/placement.ts +0 -0
  990. /package/src/{ui → core}/types/popover.ts +0 -0
  991. /package/src/{ui → core}/utils/arrow/cmds.ts +0 -0
  992. /package/src/{ui → core}/utils/arrow/index.ts +0 -0
  993. /package/src/{ui → core}/utils/boundaryElement/__workshop__/index.ts +0 -0
  994. /package/src/{ui → core}/utils/boundaryElement/__workshop__/plain.tsx +0 -0
  995. /package/src/{ui → core}/utils/boundaryElement/boundaryElement.test.tsx +0 -0
  996. /package/src/{ui → core}/utils/boundaryElement/boundaryElementContext.ts +0 -0
  997. /package/src/{ui → core}/utils/boundaryElement/index.ts +0 -0
  998. /package/src/{ui → core}/utils/boundaryElement/types.ts +0 -0
  999. /package/src/{ui → core}/utils/boundaryElement/useBoundaryElement.ts +0 -0
  1000. /package/src/{ui → core}/utils/conditionalWrapper/index.ts +0 -0
  1001. /package/src/{ui → core}/utils/elementQuery/__workshop__/customMedia.tsx +0 -0
  1002. /package/src/{ui → core}/utils/elementQuery/__workshop__/index.ts +0 -0
  1003. /package/src/{ui → core}/utils/elementQuery/helpers.ts +0 -0
  1004. /package/src/{ui → core}/utils/elementQuery/index.ts +0 -0
  1005. /package/src/{ui → core}/utils/getElementRef.ts +0 -0
  1006. /package/src/{ui → core}/utils/index.ts +0 -0
  1007. /package/src/{ui → core}/utils/layer/__workshop__/_debug.tsx +0 -0
  1008. /package/src/{ui → core}/utils/layer/__workshop__/index.ts +0 -0
  1009. /package/src/{ui → core}/utils/layer/__workshop__/multipleRoots.tsx +0 -0
  1010. /package/src/{ui → core}/utils/layer/__workshop__/nested.tsx +0 -0
  1011. /package/src/{ui → core}/utils/layer/__workshop__/responsiveZOffset.tsx +0 -0
  1012. /package/src/{ui → core}/utils/layer/getLayerContext.test.ts +0 -0
  1013. /package/src/{ui → core}/utils/layer/getLayerContext.ts +0 -0
  1014. /package/src/{ui → core}/utils/layer/index.ts +0 -0
  1015. /package/src/{ui → core}/utils/layer/layer.test.tsx +0 -0
  1016. /package/src/{ui → core}/utils/layer/layerContext.ts +0 -0
  1017. /package/src/{ui → core}/utils/layer/types.ts +0 -0
  1018. /package/src/{ui → core}/utils/layer/useLayer.ts +0 -0
  1019. /package/src/{ui → core}/utils/portal/__workshop__/index.ts +0 -0
  1020. /package/src/{ui → core}/utils/portal/__workshop__/named.tsx +0 -0
  1021. /package/src/{ui → core}/utils/portal/index.ts +0 -0
  1022. /package/src/{ui → core}/utils/portal/portal.test.tsx +0 -0
  1023. /package/src/{ui → core}/utils/portal/portalContext.ts +0 -0
  1024. /package/src/{ui → core}/utils/portal/types.ts +0 -0
  1025. /package/src/{ui → core}/utils/portal/usePortal.ts +0 -0
  1026. /package/src/{ui → core}/utils/spanWithTextOverflow.tsx +0 -0
  1027. /package/src/{css → core}/utils/srOnly/index.ts +0 -0
  1028. /package/src/{ui → core}/utils/virtualList/__workshop__/changingProps.tsx +0 -0
  1029. /package/src/{ui → core}/utils/virtualList/__workshop__/elementScroll.tsx +0 -0
  1030. /package/src/{ui → core}/utils/virtualList/__workshop__/index.ts +0 -0
  1031. /package/src/{ui → core}/utils/virtualList/__workshop__/infiniteList.tsx +0 -0
  1032. /package/src/{ui → core}/utils/virtualList/__workshop__/windowScrolll.tsx +0 -0
  1033. /package/src/{ui → core}/utils/virtualList/index.ts +0 -0
  1034. /package/src/theme/{v2 → system}/color/_constants.ts +0 -0
  1035. /package/src/theme/{v2 → system}/color/_helpers.ts +0 -0
  1036. /package/src/theme/{v2 → system}/color/_system.ts +0 -0
  1037. /package/src/theme/{v2 → system}/color/avatar.ts +0 -0
  1038. /package/src/theme/{v2 → system}/color/badge.ts +0 -0
  1039. /package/src/theme/{v2 → system}/color/button.ts +0 -0
  1040. /package/src/theme/{v2 → system}/color/color.ts +0 -0
  1041. /package/src/theme/{v2 → system}/color/index.ts +0 -0
  1042. /package/src/theme/{v2 → system}/color/input.ts +0 -0
  1043. /package/src/theme/{v2 → system}/color/kbd.ts +0 -0
  1044. /package/src/theme/{v2 → system}/color/selectable.ts +0 -0
  1045. /package/src/theme/{v2 → system}/color/shadow.ts +0 -0
  1046. /package/src/theme/{v2 → system}/color/state.ts +0 -0
  1047. /package/src/theme/{v2 → system}/color/syntax.ts +0 -0
  1048. /package/src/theme/{v0 → system}/css.ts +0 -0
  1049. /package/src/theme/{v0 → system}/focusRing.ts +0 -0
  1050. /package/src/theme/{v0 → system}/layer.ts +0 -0
  1051. /package/src/theme/{v0 → system}/shadow.ts +0 -0
  1052. /package/src/theme/{v0 → system}/styles.ts +0 -0
  1053. /package/src/theme/{v0 → system/v0}/avatar.ts +0 -0
  1054. /package/src/theme/{v0 → system/v0}/color/_system.ts +0 -0
  1055. /package/src/theme/{v0 → system/v0}/color/base.ts +0 -0
  1056. /package/src/theme/{v0 → system/v0}/color/button.ts +0 -0
  1057. /package/src/theme/{v0 → system/v0}/color/card.ts +0 -0
  1058. /package/src/theme/{v0 → system/v0}/color/index.ts +0 -0
  1059. /package/src/theme/{v0 → system/v0}/color/muted.ts +0 -0
  1060. /package/src/theme/{v0 → system/v0}/color/selectable.ts +0 -0
  1061. /package/src/theme/{v0 → system/v0}/color/solid.ts +0 -0
  1062. /package/src/theme/{v0 → system/v0}/input.ts +0 -0
package/dist/index.d.mts CHANGED
@@ -1,91 +1,36 @@
1
- import {AvatarSize} from '@sanity/ui/theme'
2
1
  import {BaseTheme as BaseTheme_2} from '@sanity/ui/theme'
3
- import {Display as BoxDisplay} from '@sanity/ui/css'
4
- import {BoxHeight} from '@sanity/ui/css'
5
- import {BoxOverflow} from '@sanity/ui/css'
6
- import {BoxSizing} from '@sanity/ui/css'
7
- import {BoxStyleProps} from '@sanity/ui/css'
8
- import {ButtonStyleProps} from '@sanity/ui/css'
9
- import {CardContextValue as CardContextValue_2} from './types'
10
- import {CardStyleProps as CardStyleProps_2} from '@sanity/ui/css'
11
2
  import {Component} from 'react'
12
- import type {ComponentProps} from 'react'
13
- import {ComponentType} from 'react'
14
- import {ContainerStyleProps} from '@sanity/ui/css'
15
3
  import {Context} from 'react'
16
4
  import {createColorTheme as createColorTheme_2} from '@sanity/ui/theme'
17
5
  import {CSSObject} from '@sanity/ui/theme'
18
- import {DisplayStyleProps} from '@sanity/ui/css'
19
- import {ElementProps as ElementProps_2} from '../..'
6
+ import {DetailedHTMLProps} from 'react'
20
7
  import {ElementType} from 'react'
21
- import {ErrorInfo} from 'react'
22
- import {FlexAlign} from '@sanity/ui/css'
23
- import {FlexDirection} from '@sanity/ui/css'
24
- import {FlexJustify} from '@sanity/ui/css'
25
- import {FlexStyleProps} from '@sanity/ui/css'
26
- import {FlexValue} from '@sanity/ui/css'
27
- import {FlexWrap} from '@sanity/ui/css'
28
- import {FontCodeSize} from '@sanity/ui/theme'
29
- import {FontHeadingSize} from '@sanity/ui/theme'
30
- import {FontLabelSize} from '@sanity/ui/theme'
31
- import {FontStyleProps} from '@sanity/ui/css'
32
- import {FontTextSize} from '@sanity/ui/theme'
33
- import {ForwardedRef} from 'react'
8
+ import {FastOmit} from 'styled-components'
34
9
  import {ForwardRefExoticComponent} from 'react'
35
- import {GapStyleProps} from '@sanity/ui/css'
36
- import {GridAutoCols} from '@sanity/ui/css'
37
- import {GridAutoFlow} from '@sanity/ui/css'
38
- import {GridAutoRows} from '@sanity/ui/css'
39
- import {GridItemColumn} from '@sanity/ui/css'
40
- import {GridItemColumnEnd} from '@sanity/ui/css'
41
- import {GridItemColumnStart} from '@sanity/ui/css'
42
- import {GridItemRow} from '@sanity/ui/css'
43
- import {GridItemRowEnd} from '@sanity/ui/css'
44
- import {GridItemRowStart} from '@sanity/ui/css'
45
- import {HeadingStyleProps} from '@sanity/ui/css'
46
10
  import {hexToRgb as hexToRgb_2} from '@sanity/ui/theme'
47
11
  import {HSL as HSL_2} from '@sanity/ui/theme'
48
12
  import {hslToRgb as hslToRgb_2} from '@sanity/ui/theme'
49
- import {InputStyleProps} from '@sanity/ui/css'
50
- import {InsetStyleProps} from '@sanity/ui/css'
51
- import {JSX} from 'react'
52
- import {LabelSize} from '@sanity/ui/css'
13
+ import {HTMLAttributes} from 'react'
14
+ import {HTMLProps} from 'react'
15
+ import {IStyledComponentBase} from 'styled-components/dist/types'
53
16
  import {multiply as multiply_2} from '@sanity/ui/theme'
54
17
  import {MutableRefObject} from 'react'
55
18
  import {NamedExoticComponent} from 'react'
56
- import {PaddingStyleProps} from '@sanity/ui/css'
57
19
  import {parseColor as parseColor_2} from '@sanity/ui/theme'
58
20
  import {PartialThemeColorBuilderOpts} from '@sanity/ui/theme'
59
- import {PolymorphicProps as PolymorphicProps_2} from '../..'
60
- import {PositionStyleProps} from '@sanity/ui/css'
61
21
  import {PropsWithChildren} from 'react'
62
- import {px} from '@sanity/ui/css'
63
- import {Radius} from '@sanity/ui/theme'
64
- import {RadiusStyleProps} from '@sanity/ui/css'
65
- import {ReactElement} from 'react'
66
22
  import {ReactNode} from 'react'
67
- import {ReactPortal} from 'react'
23
+ import {Ref} from 'react'
68
24
  import {RefAttributes} from 'react'
69
25
  import {RefCallback} from 'react'
70
- import {rem} from '@sanity/ui/css'
71
- import {ResponsiveProp} from '@sanity/ui/css'
72
26
  import {RGB as RGB_2} from '@sanity/ui/theme'
73
27
  import {rgba as rgba_2} from '@sanity/ui/theme'
74
28
  import {rgbToHex as rgbToHex_2} from '@sanity/ui/theme'
75
29
  import {rgbToHsl as rgbToHsl_2} from '@sanity/ui/theme'
76
30
  import {RootTheme as RootTheme_2} from '@sanity/ui/theme'
77
31
  import {screen as screen_3} from '@sanity/ui/theme'
78
- import {SelectStyleProps} from '@sanity/ui/css'
79
- import {ShadowStyleProps} from '@sanity/ui/css'
80
- import {SkeletonStyleProps} from '@sanity/ui/css'
81
- import {Space} from '@sanity/ui/theme'
82
- import {TextAlign} from '@sanity/ui/css'
83
- import {TextAreaStyleProps} from '@sanity/ui/css'
84
- import {TextOverflowStyleProps} from '@sanity/ui/css'
85
- import {TextStyleProps} from '@sanity/ui/css'
86
32
  import {Theme as Theme_2} from '@sanity/ui/theme'
87
33
  import {Theme_v2} from '@sanity/ui/theme'
88
- import {Theme_v3} from '@sanity/ui/theme'
89
34
  import {ThemeAvatar} from '@sanity/ui/theme'
90
35
  import {ThemeBoxShadow} from '@sanity/ui/theme'
91
36
  import {ThemeColor} from '@sanity/ui/theme'
@@ -130,20 +75,23 @@ import {ThemeInput} from '@sanity/ui/theme'
130
75
  import {ThemeLayer as ThemeLayer_2} from '@sanity/ui/theme'
131
76
  import {ThemeShadow as ThemeShadow_2} from '@sanity/ui/theme'
132
77
  import {ThemeStyles} from '@sanity/ui/theme'
133
- import {Width} from '@sanity/ui/css'
78
+
79
+ /** @beta */
80
+ export declare type ArrayPropPrimitive = string | number | boolean | undefined | null
134
81
 
135
82
  /** @internal */
136
83
  export declare const Arrow: ForwardRefExoticComponent<
137
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, 'radius' | 'height' | 'width'> & {
138
- width: number
139
- height: number
140
- radius?: number
141
- } & RefAttributes<HTMLDivElement>
84
+ Omit<
85
+ {
86
+ width: number
87
+ height: number
88
+ radius?: number
89
+ } & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width'>,
90
+ 'ref'
91
+ > &
92
+ RefAttributes<HTMLDivElement>
142
93
  >
143
94
 
144
- /** @public */
145
- export declare type Assign<T, U> = Omit<T, keyof U> & U
146
-
147
95
  /**
148
96
  * @internal
149
97
  */
@@ -156,21 +104,32 @@ export declare function attemptFocus(element: HTMLElement): boolean
156
104
  * @public
157
105
  */
158
106
  export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
159
- props: Omit<
160
- Props<AutocompleteProps<Option>, 'input'>,
161
- | 'aria-activedescendant'
162
- | 'aria-autocomplete'
163
- | 'aria-expanded'
164
- | 'aria-owns'
165
- | 'autoCapitalize'
166
- | 'autoComplete'
167
- | 'autoCorrect'
168
- | 'inputMode'
169
- | 'role'
170
- | 'spellCheck'
171
- | 'type'
172
- >,
173
- ) => ReactElement
107
+ props: AutocompleteProps<Option> &
108
+ Omit<
109
+ HTMLProps<HTMLInputElement>,
110
+ | 'aria-activedescendant'
111
+ | 'aria-autocomplete'
112
+ | 'aria-expanded'
113
+ | 'aria-owns'
114
+ | 'as'
115
+ | 'autoCapitalize'
116
+ | 'autoComplete'
117
+ | 'autoCorrect'
118
+ | 'id'
119
+ | 'inputMode'
120
+ | 'onChange'
121
+ | 'onSelect'
122
+ | 'popover'
123
+ | 'prefix'
124
+ | 'ref'
125
+ | 'role'
126
+ | 'spellCheck'
127
+ | 'type'
128
+ | 'value'
129
+ > & {
130
+ ref?: Ref<HTMLInputElement>
131
+ },
132
+ ) => React.JSX.Element
174
133
 
175
134
  /**
176
135
  * @internal
@@ -204,7 +163,8 @@ export declare type AutocompleteMsg =
204
163
  /**
205
164
  * @public
206
165
  */
207
- export declare type AutocompleteOpenButtonProps = Omit<Props<ButtonProps, 'button'>, 'as'>
166
+ export declare type AutocompleteOpenButtonProps = Omit<ButtonProps, 'as'> &
167
+ Omit<React.HTMLProps<HTMLButtonElement>, 'as' | 'ref'>
208
168
 
209
169
  /**
210
170
  * @public
@@ -214,9 +174,8 @@ export declare interface AutocompleteProps<
214
174
  > {
215
175
  border?: boolean
216
176
  customValidity?: string
217
- disabled?: boolean
218
177
  filterOption?: (query: string, option: Option) => boolean
219
- fontSize?: ResponsiveProp<FontTextSize>
178
+ fontSize?: number | number[]
220
179
  icon?: ElementType | ReactNode
221
180
  id: string
222
181
  /** @beta */
@@ -231,12 +190,11 @@ export declare interface AutocompleteProps<
231
190
  openOnFocus?: boolean
232
191
  /** The options to render. */
233
192
  options?: Option[]
234
- padding?: ResponsiveProp<Space>
235
- popover?: Omit<Props<PopoverProps, 'div'>, 'content' | 'onMouseEnter' | 'onMouseLeave' | 'open'>
193
+ padding?: number | number[]
194
+ popover?: Omit<PopoverProps, 'content' | 'onMouseEnter' | 'onMouseLeave' | 'open'> &
195
+ Omit<HTMLProps<HTMLDivElement>, 'as' | 'children' | 'content' | 'ref' | 'width'>
236
196
  prefix?: ReactNode
237
197
  radius?: Radius | Radius[]
238
- readOnly?: boolean
239
- ref?: ForwardedRef<HTMLInputElement>
240
198
  /** @beta */
241
199
  relatedElements?: HTMLElement[]
242
200
  /** The callback function for rendering each option. */
@@ -250,7 +208,7 @@ export declare interface AutocompleteProps<
250
208
  onMouseEnter: () => void
251
209
  onMouseLeave: () => void
252
210
  },
253
- ref: ForwardedRef<HTMLDivElement>,
211
+ ref: Ref<HTMLDivElement>,
254
212
  ) => ReactNode
255
213
  renderValue?: (value: string, option?: Option) => string
256
214
  suffix?: ReactNode
@@ -329,27 +287,22 @@ export declare interface AutocompleteValueChangeMsg {
329
287
  * @public
330
288
  */
331
289
  export declare const Avatar: ForwardRefExoticComponent<
332
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof AvatarProps> &
333
- AvatarProps &
334
- RefAttributes<HTMLDivElement>
290
+ AvatarProps & Omit<HTMLProps<HTMLDivElement>, 'ref' | 'as'> & RefAttributes<HTMLDivElement>
335
291
  >
336
292
 
337
293
  /**
338
294
  * @public
339
295
  */
340
296
  export declare const AvatarCounter: ForwardRefExoticComponent<
341
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof AvatarCounterProps> &
342
- AvatarCounterProps &
343
- RefAttributes<HTMLDivElement>
297
+ AvatarCounterProps & RefAttributes<HTMLDivElement>
344
298
  >
345
299
 
346
300
  /**
347
301
  * @public
348
302
  */
349
- export declare interface AvatarCounterProps
350
- extends Omit<BoxProps, 'align' | 'className' | 'display' | 'justify' | 'paddingX' | 'sizing'> {
303
+ export declare interface AvatarCounterProps {
351
304
  count: number
352
- size?: ResponsiveProp<AvatarSize>
305
+ size?: AvatarSize | AvatarSize[]
353
306
  /** @deprecated No longer supported. */
354
307
  tone?: 'navbar'
355
308
  }
@@ -367,10 +320,11 @@ export declare interface AvatarProps {
367
320
  __unstable_hideInnerStroke?: boolean
368
321
  animateArrowFrom?: AvatarPosition
369
322
  arrowPosition?: AvatarPosition
323
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements
370
324
  color?: ThemeColorAvatarColorKey
371
325
  initials?: string
372
326
  onImageLoadError?: (event: Error) => void
373
- size?: ResponsiveProp<AvatarSize>
327
+ size?: AvatarSize | AvatarSize[]
374
328
  src?: string
375
329
  /**
376
330
  * The status of the entity this Avatar represents.
@@ -387,41 +341,29 @@ export declare interface AvatarRootStyleProps {
387
341
  $color: ThemeColorAvatarColorKey
388
342
  }
389
343
 
390
- export {AvatarSize}
391
-
392
344
  /**
393
345
  * @public
394
346
  */
395
- export declare const AvatarStack: ForwardRefExoticComponent<
396
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof AvatarStackProps> &
397
- AvatarStackProps &
398
- RefAttributes<HTMLDivElement>
399
- >
347
+ export declare type AvatarSize = 0 | 1 | 2 | 3
400
348
 
401
349
  /**
402
350
  * @public
403
351
  */
404
- export declare type AvatarStackChild =
405
- | ReactElement<Props<AvatarProps, 'div'>>
406
- | null
407
- | undefined
408
- | false
352
+ export declare const AvatarStack: ForwardRefExoticComponent<
353
+ AvatarStackProps & Omit<HTMLProps<HTMLDivElement>, 'ref' | 'as'> & RefAttributes<HTMLDivElement>
354
+ >
409
355
 
410
356
  /**
411
357
  * @public
412
358
  */
413
- export declare interface AvatarStackProps
414
- extends Omit<BoxProps, 'align' | 'className' | 'display'> {
415
- children: AvatarStackChild | AvatarStackChild[]
359
+ export declare interface AvatarStackProps {
360
+ children: React.ReactNode
416
361
  maxLength?: number
417
- size?: ResponsiveProp<AvatarSize>
362
+ size?: AvatarSize | AvatarSize[]
418
363
  /** @deprecated No longer supported. */
419
364
  tone?: 'navbar'
420
365
  }
421
366
 
422
- /**
423
- * @public
424
- */
425
367
  /**
426
368
  * @public
427
369
  */
@@ -433,9 +375,7 @@ export declare type AvatarStatus = 'online' | 'editing' | 'inactive'
433
375
  * @public
434
376
  */
435
377
  export declare const Badge: ForwardRefExoticComponent<
436
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof BadgeProps> &
437
- BadgeProps &
438
- RefAttributes<HTMLDivElement>
378
+ Omit<BadgeProps & HTMLProps<HTMLDivElement>, 'ref'> & RefAttributes<unknown>
439
379
  >
440
380
 
441
381
  /**
@@ -447,11 +387,11 @@ export declare type BadgeMode = 'default' | 'outline'
447
387
  /**
448
388
  * @public
449
389
  */
450
- export declare interface BadgeProps extends BoxProps, RadiusStyleProps {
390
+ export declare interface BadgeProps extends BoxProps, ResponsiveRadiusProps {
391
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements
451
392
  fontSize?: number | number[]
452
393
  /** @deprecated No longer used. */
453
394
  mode?: BadgeMode
454
- textAlign?: TextProps['align']
455
395
  tone?: BadgeTone
456
396
  }
457
397
 
@@ -484,7 +424,9 @@ export declare interface BoundaryElementContextValue {
484
424
  /**
485
425
  * @public
486
426
  */
487
- export declare function BoundaryElementProvider(props: BoundaryElementProviderProps): ReactElement
427
+ export declare function BoundaryElementProvider(
428
+ props: BoundaryElementProviderProps,
429
+ ): React.JSX.Element
488
430
 
489
431
  export declare namespace BoundaryElementProvider {
490
432
  var displayName: string
@@ -494,7 +436,7 @@ export declare namespace BoundaryElementProvider {
494
436
  * @public
495
437
  */
496
438
  export declare interface BoundaryElementProviderProps {
497
- children: ReactNode
439
+ children: React.ReactNode
498
440
  element: HTMLElement | null
499
441
  }
500
442
 
@@ -505,25 +447,37 @@ export declare interface BoundaryElementProviderProps {
505
447
  * @public
506
448
  */
507
449
  export declare const Box: ForwardRefExoticComponent<
508
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof BoxProps> &
509
- BoxProps &
450
+ Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
510
451
  RefAttributes<HTMLDivElement>
511
452
  >
512
453
 
513
- export {BoxDisplay}
454
+ /**
455
+ * @public
456
+ */
457
+ export declare type BoxDisplay = 'none' | 'block' | 'grid' | 'flex' | 'inline-block'
514
458
 
515
- export {BoxHeight}
459
+ /**
460
+ * @public
461
+ */
462
+ export declare type BoxHeight = 'stretch' | 'fill'
516
463
 
517
- export {BoxOverflow}
464
+ /**
465
+ * @public
466
+ */
467
+ export declare type BoxOverflow = 'visible' | 'hidden' | 'auto'
518
468
 
519
469
  /**
520
470
  * @public
521
471
  */
522
472
  export declare interface BoxProps
523
- extends BoxStyleProps,
524
- GapStyleProps,
525
- InsetStyleProps,
526
- PositionStyleProps {}
473
+ extends ResponsiveFlexItemProps,
474
+ ResponsiveBoxProps,
475
+ ResponsiveGridItemProps,
476
+ ResponsiveMarginProps,
477
+ ResponsivePaddingProps {
478
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements
479
+ forwardedAs?: React.ElementType | keyof React.JSX.IntrinsicElements
480
+ }
527
481
 
528
482
  /**
529
483
  * @public
@@ -531,25 +485,26 @@ export declare interface BoxProps
531
485
  */
532
486
  export declare type BoxShadow = ThemeBoxShadow
533
487
 
534
- export {BoxSizing}
488
+ /**
489
+ * @public
490
+ */
491
+ export declare type BoxSizing = 'content' | 'border'
535
492
 
536
493
  /**
537
494
  * @beta
538
495
  */
539
496
  export declare const Breadcrumbs: ForwardRefExoticComponent<
540
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof BreadcrumbsProps> &
541
- BreadcrumbsProps &
542
- RefAttributes<HTMLDivElement>
497
+ BreadcrumbsProps &
498
+ Omit<HTMLProps<HTMLOListElement>, 'type' | 'ref' | 'as'> &
499
+ RefAttributes<HTMLOListElement>
543
500
  >
544
501
 
545
502
  /**
546
503
  * @beta
547
504
  */
548
- export declare interface BreadcrumbsProps extends GapStyleProps {
549
- expandButton?: Omit<ButtonProps, 'onClick' | 'selected'>
505
+ export declare interface BreadcrumbsProps {
550
506
  maxLength?: number
551
- separator?: ReactNode
552
- /** @deprecated - Use `gap`, `gapX`, `gapY` instead */
507
+ separator?: React.ReactNode
553
508
  space?: number | number[]
554
509
  }
555
510
 
@@ -557,46 +512,38 @@ export declare interface BreadcrumbsProps extends GapStyleProps {
557
512
  * @public
558
513
  */
559
514
  export declare const Button: ForwardRefExoticComponent<
560
- Omit<ElementProps_2<'button'> & PolymorphicProps_2, keyof ButtonProps> &
561
- ButtonProps &
515
+ Omit<ButtonProps & Omit<HTMLProps<HTMLButtonElement>, 'width' | 'as'>, 'ref'> &
562
516
  RefAttributes<HTMLButtonElement>
563
517
  >
564
518
 
565
519
  /**
566
520
  * @public
567
- * @deprecated Use `ThemeColorButtonModeKey` instead
568
521
  */
569
522
  export declare type ButtonMode = ThemeColorButtonModeKey_2
570
523
 
571
524
  /**
572
525
  * @public
573
526
  */
574
- export declare interface ButtonProps
575
- extends ButtonStyleProps,
576
- DisplayStyleProps,
577
- FlexStyleProps,
578
- GapStyleProps,
579
- PaddingStyleProps {
580
- 'data-ui'?: string
581
- 'fontSize'?: ResponsiveProp<FontTextSize>
582
- 'href'?: string
583
- 'mode'?: ButtonMode
584
- 'icon'?: ElementType | ReactNode
585
- 'iconRight'?: ElementType | ReactNode
586
- /** @beta Do not use in production, as this might change.*/
587
- 'loading'?: boolean
588
- 'selected'?: boolean
589
- /** @deprecated Use `gap` instead. */
590
- 'space'?: ResponsiveProp<Space>
591
- 'textAlign'?: ButtonTextAlign
592
- 'muted'?: boolean
593
- 'target'?: string
594
- 'text'?: ReactNode
595
- 'textOverflow'?: TextProps['textOverflow']
596
- 'textWeight'?: TextProps['weight']
597
- 'tone'?: ButtonTone
598
- 'type'?: 'button' | 'reset' | 'submit'
599
- 'width'?: ResponsiveProp<Width>
527
+ export declare interface ButtonProps extends ResponsivePaddingProps, ResponsiveRadiusProps {
528
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements
529
+ fontSize?: number | number[]
530
+ mode?: ButtonMode
531
+ icon?: React.ElementType | React.ReactNode
532
+ iconRight?: React.ElementType | React.ReactNode
533
+ justify?: FlexJustify | FlexJustify[]
534
+ /**
535
+ * @beta Do not use in production, as this might change.
536
+ */
537
+ loading?: boolean
538
+ selected?: boolean
539
+ space?: number | number[]
540
+ muted?: boolean
541
+ text?: React.ReactNode
542
+ textAlign?: ButtonTextAlign
543
+ textWeight?: ThemeFontWeightKey_2
544
+ tone?: ButtonTone
545
+ type?: 'button' | 'reset' | 'submit'
546
+ width?: ButtonWidth
600
547
  }
601
548
 
602
549
  /**
@@ -606,13 +553,11 @@ export declare type ButtonTextAlign = 'left' | 'right' | 'center'
606
553
 
607
554
  /**
608
555
  * @public
609
- * @deprecated Use `ThemeColorStateToneKey` instead
610
556
  */
611
557
  export declare type ButtonTone = ThemeColorStateToneKey
612
558
 
613
559
  /**
614
560
  * @public
615
- * @deprecated Use `Width` from `@sanity/ui/css` instead.
616
561
  */
617
562
  export declare type ButtonWidth = 'fill'
618
563
 
@@ -623,29 +568,18 @@ export declare type ButtonWidth = 'fill'
623
568
  * @public
624
569
  */
625
570
  export declare const Card: ForwardRefExoticComponent<
626
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof CardProps> &
627
- CardProps &
571
+ Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
628
572
  RefAttributes<HTMLDivElement>
629
573
  >
630
574
 
631
- export declare type CardCompatProviderComponent = ComponentType<{
632
- children?: ReactNode
633
- tone: ThemeColorCardToneKey
634
- scheme: ThemeColorSchemeKey_2
635
- }>
636
-
637
- /** @internal */
638
- export declare interface CardContextValue {
639
- compat_provider?: CardCompatProviderComponent
640
- rendered: boolean
641
- tone: ThemeColorCardToneKey
642
- scheme: ThemeColorSchemeKey_2
643
- }
644
-
645
575
  /**
646
576
  * @public
647
577
  */
648
- export declare interface CardProps extends BoxProps, CardStyleProps_2 {
578
+ export declare interface CardProps
579
+ extends BoxProps,
580
+ ResponsiveBorderProps,
581
+ ResponsiveRadiusProps,
582
+ ResponsiveShadowProps {
649
583
  /**
650
584
  * Do not use in production.
651
585
  * @beta
@@ -656,30 +590,20 @@ export declare interface CardProps extends BoxProps, CardStyleProps_2 {
656
590
  * @beta
657
591
  */
658
592
  __unstable_focusRing?: boolean
659
- disabled?: boolean
660
- href?: string
593
+ muted?: boolean
661
594
  pressed?: boolean
662
- selected?: boolean
663
- target?: string
595
+ scheme?: ThemeColorSchemeKey_2
596
+ tone?: CardTone
664
597
  }
665
598
 
666
- export declare function CardProvider(props: {
667
- compat_provider?: CardCompatProviderComponent
668
- children?: ReactNode
669
- rendered?: boolean
670
- tone: ThemeColorCardToneKey
671
- scheme: ThemeColorSchemeKey_2
672
- }): JSX.Element
673
-
674
599
  /**
675
600
  * @internal
676
- * @deprecated Use `CardStyleProps` from `@sanity/ui/css` instead.
677
601
  */
678
602
  export declare interface CardStyleProps {
679
603
  $checkered: boolean
680
604
  $focusRing: boolean
681
605
  $muted: boolean
682
- $tone: ThemeColorCardToneKey
606
+ $tone: ThemeColorToneKey
683
607
  }
684
608
 
685
609
  /**
@@ -693,8 +617,7 @@ export declare type CardTone = ThemeColorCardToneKey | 'inherit'
693
617
  * @public
694
618
  */
695
619
  export declare const Checkbox: ForwardRefExoticComponent<
696
- Omit<ElementProps_2<'input'> & PolymorphicProps_2, keyof CheckboxProps> &
697
- CheckboxProps &
620
+ Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & CheckboxProps, 'ref'> &
698
621
  RefAttributes<HTMLInputElement>
699
622
  >
700
623
 
@@ -730,18 +653,18 @@ export declare type ClickOutsideListener = (event: MouseEvent) => void
730
653
  * @public
731
654
  */
732
655
  export declare const Code: ForwardRefExoticComponent<
733
- Omit<ElementProps_2<'pre'> & PolymorphicProps_2, keyof CodeProps> &
734
- CodeProps &
735
- RefAttributes<HTMLPreElement>
656
+ Omit<CodeProps & Omit<HTMLProps<HTMLElement>, 'size' | 'as'>, 'ref'> & RefAttributes<HTMLElement>
736
657
  >
737
658
 
738
659
  /**
739
660
  * @public
740
661
  */
741
- export declare interface CodeProps extends Omit<FontStyleProps, 'align'> {
662
+ export declare interface CodeProps {
663
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements
742
664
  /** Define the language to use for syntax highlighting. */
743
665
  language?: string
744
666
  size?: number | number[]
667
+ weight?: string
745
668
  }
746
669
 
747
670
  /**
@@ -749,8 +672,10 @@ export declare interface CodeProps extends Omit<FontStyleProps, 'align'> {
749
672
  * @beta
750
673
  */
751
674
  export declare const CodeSkeleton: ForwardRefExoticComponent<
752
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof CodeSkeletonProps> &
753
- CodeSkeletonProps &
675
+ Omit<
676
+ CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
677
+ 'ref'
678
+ > &
754
679
  RefAttributes<HTMLDivElement>
755
680
  >
756
681
 
@@ -759,7 +684,7 @@ export declare const CodeSkeleton: ForwardRefExoticComponent<
759
684
  * @beta
760
685
  */
761
686
  export declare interface CodeSkeletonProps extends SkeletonProps {
762
- size?: ResponsiveProp<FontCodeSize>
687
+ size?: number | number[]
763
688
  }
764
689
 
765
690
  /**
@@ -771,10 +696,10 @@ export declare function ConditionalWrapper({
771
696
  condition,
772
697
  wrapper,
773
698
  }: {
774
- children: ReactNode
699
+ children: React.ReactNode
775
700
  condition: boolean
776
- wrapper: (children: ReactNode) => ReactNode
777
- }): ReactNode
701
+ wrapper: (children: React.ReactNode) => React.ReactNode
702
+ }): React.ReactNode
778
703
 
779
704
  export declare namespace ConditionalWrapper {
780
705
  var displayName: string
@@ -786,15 +711,14 @@ export declare namespace ConditionalWrapper {
786
711
  * @public
787
712
  */
788
713
  export declare const Container: ForwardRefExoticComponent<
789
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof ContainerProps> &
790
- ContainerProps &
714
+ Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'as'>, 'ref'> &
791
715
  RefAttributes<HTMLDivElement>
792
716
  >
793
717
 
794
718
  /**
795
719
  * @public
796
720
  */
797
- export declare interface ContainerProps extends Omit<BoxProps, 'width'>, ContainerStyleProps {}
721
+ export declare interface ContainerProps extends BoxProps, ResponsiveWidthProps {}
798
722
 
799
723
  /**
800
724
  * @internal
@@ -823,8 +747,7 @@ export declare type Delay =
823
747
  * @public
824
748
  */
825
749
  export declare const Dialog: ForwardRefExoticComponent<
826
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof DialogProps> &
827
- DialogProps &
750
+ Omit<DialogProps & Omit<HTMLProps<HTMLDivElement>, 'id' | 'width' | 'as'>, 'ref'> &
828
751
  RefAttributes<HTMLDivElement>
829
752
  >
830
753
 
@@ -851,10 +774,7 @@ export declare type DialogPosition = 'absolute' | 'fixed'
851
774
  /**
852
775
  * @public
853
776
  */
854
- export declare interface DialogProps
855
- extends ContainerStyleProps,
856
- PaddingStyleProps,
857
- ShadowStyleProps {
777
+ export declare interface DialogProps extends ResponsivePaddingProps, ResponsiveWidthProps {
858
778
  /**
859
779
  * @beta
860
780
  */
@@ -863,35 +783,34 @@ export declare interface DialogProps
863
783
  * @beta
864
784
  */
865
785
  __unstable_hideCloseButton?: boolean
866
- /**
867
- * Whether the dialog should animate in on mount.
868
- *
869
- * @beta
870
- * @defaultValue false
871
- */
872
- animate?: boolean
873
- cardRadius?: ResponsiveProp<Radius>
874
- contentRef?: ForwardedRef<HTMLDivElement>
875
- footer?: ReactNode
876
- header?: ReactNode
786
+ cardRadius?: Radius | Radius[]
787
+ cardShadow?: number | number[]
788
+ contentRef?: React.ForwardedRef<HTMLDivElement>
789
+ footer?: React.ReactNode
790
+ header?: React.ReactNode
877
791
  id: string
878
792
  /** A callback that fires when the dialog becomes the top layer when it was not the top layer before. */
879
793
  onActivate?: LayerProps['onActivate']
880
794
  onClickOutside?: () => void
881
795
  onClose?: () => void
882
- open?: boolean
883
796
  portal?: string
884
797
  position?: DialogPosition | DialogPosition[]
885
798
  scheme?: ThemeColorSchemeKey_2
886
- tone?: CardTone
887
799
  zOffset?: number | number[]
800
+ /**
801
+ * Whether the dialog should animate in on mount.
802
+ *
803
+ * @beta
804
+ * @defaultValue false
805
+ */
806
+ animate?: boolean
888
807
  }
889
808
 
890
809
  /**
891
810
  * This API might change. DO NOT USE IN PRODUCTION.
892
811
  * @beta
893
812
  */
894
- export declare function DialogProvider(props: DialogProviderProps): ReactElement
813
+ export declare function DialogProvider(props: DialogProviderProps): React.JSX.Element
895
814
 
896
815
  export declare namespace DialogProvider {
897
816
  var displayName: string
@@ -902,21 +821,17 @@ export declare namespace DialogProvider {
902
821
  * @beta
903
822
  */
904
823
  export declare interface DialogProviderProps {
905
- children?: ReactNode
824
+ children?: React.ReactNode
906
825
  position?: DialogPosition | DialogPosition[]
907
826
  zOffset?: number | number[]
908
827
  }
909
828
 
910
- /** @public */
911
- export declare type ElementProps<E extends ElementType> = Omit<ComponentProps<E>, 'as' | 'ref'>
912
-
913
829
  /**
914
830
  * DO NOT USE IN PRODUCTION.
915
831
  * @beta
916
832
  */
917
833
  export declare const ElementQuery: ForwardRefExoticComponent<
918
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, 'media'> &
919
- MediaQueryProps &
834
+ Omit<MediaQueryProps & Omit<HTMLProps<HTMLDivElement>, 'media' | 'as'>, 'ref'> &
920
835
  RefAttributes<HTMLDivElement>
921
836
  >
922
837
 
@@ -969,8 +884,8 @@ export declare type _ElementSizeSubscriber = (elementRect: ElementSize) => void
969
884
  export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
970
885
  state: ErrorBoundaryState
971
886
  static getDerivedStateFromError(error: Error): ErrorBoundaryState
972
- componentDidCatch(error: Error, info: ErrorInfo): void
973
- render(): ReactNode
887
+ componentDidCatch(error: Error, info: React.ErrorInfo): void
888
+ render(): React.ReactNode
974
889
  }
975
890
 
976
891
  /**
@@ -978,7 +893,7 @@ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBo
978
893
  * @beta
979
894
  */
980
895
  export declare type ErrorBoundaryProps = PropsWithChildren<{
981
- onCatch: (params: {error: Error; info: ErrorInfo}) => void
896
+ onCatch: (params: {error: Error; info: React.ErrorInfo}) => void
982
897
  }>
983
898
 
984
899
  /**
@@ -989,33 +904,64 @@ export declare interface ErrorBoundaryState {
989
904
  error: Error | null
990
905
  }
991
906
 
907
+ /**
908
+ * @internal
909
+ */
910
+ export declare function _fillCSSObject(
911
+ keys: string[],
912
+ value: string | number | CSSObject,
913
+ ): CSSObject
914
+
992
915
  /**
993
916
  * The `Flex` component is a wrapper component for flexible elements (`Box`, `Card` and `Flex`).
994
917
  *
995
918
  * @public
996
919
  */
997
920
  export declare const Flex: ForwardRefExoticComponent<
998
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof FlexProps> &
999
- FlexProps &
921
+ Omit<FlexProps & Omit<HTMLProps<HTMLDivElement>, 'wrap' | 'as'>, 'ref'> &
1000
922
  RefAttributes<HTMLDivElement>
1001
923
  >
1002
924
 
1003
- export {FlexAlign}
925
+ /**
926
+ * @public
927
+ */
928
+ export declare type FlexAlign = 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch'
1004
929
 
1005
- export {FlexDirection}
930
+ /**
931
+ * @public
932
+ */
933
+ export declare type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse'
1006
934
 
1007
- export {FlexJustify}
935
+ /**
936
+ * @public
937
+ */
938
+ export declare type FlexJustify =
939
+ | 'flex-start'
940
+ | 'flex-end'
941
+ | 'center'
942
+ | 'space-between'
943
+ | 'space-around'
944
+ | 'space-evenly'
1008
945
 
1009
946
  /**
1010
947
  * @public
1011
948
  */
1012
- export declare interface FlexProps extends Omit<BoxProps, 'display'> {
1013
- htmlFor?: string
949
+ export declare interface FlexProps
950
+ extends Omit<BoxProps, 'display'>,
951
+ ResponsiveFlexProps,
952
+ ResponsiveFlexItemProps {
953
+ gap?: number | number[]
1014
954
  }
1015
955
 
1016
- export {FlexValue}
956
+ /**
957
+ * @public
958
+ */
959
+ export declare type FlexValue = number | 'none' | 'auto' | 'initial'
1017
960
 
1018
- export {FlexWrap}
961
+ /**
962
+ * @public
963
+ */
964
+ export declare type FlexWrap = 'wrap' | 'wrap-reverse' | 'nowrap'
1019
965
 
1020
966
  /**
1021
967
  * @internal
@@ -1030,7 +976,23 @@ export declare function focusLastDescendant(element: HTMLElement): boolean
1030
976
  /**
1031
977
  * @internal
1032
978
  */
1033
- export declare function _getArrayProp<T>(val: T | T[] | undefined, defaultVal?: T[]): T[]
979
+ export declare interface FontWeightStyleProps {
980
+ $weight?: ThemeFontWeightKey_2
981
+ }
982
+
983
+ /**
984
+ * @internal
985
+ */
986
+ export declare function _getArrayProp<T = number>(val: T | T[] | undefined, defaultVal?: T[]): T[]
987
+
988
+ /**
989
+ * @internal
990
+ */
991
+ export declare function _getResponsiveSpace(
992
+ theme: Theme_2,
993
+ props: string[],
994
+ spaceIndexes?: number[],
995
+ ): CSSObject[] | null
1034
996
 
1035
997
  /**
1036
998
  * The `Grid` component is for building 2-dimensional layers (based on CSS grid).
@@ -1038,33 +1000,59 @@ export declare function _getArrayProp<T>(val: T | T[] | undefined, defaultVal?:
1038
1000
  * @public
1039
1001
  */
1040
1002
  export declare const Grid: ForwardRefExoticComponent<
1041
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof GridProps> &
1042
- GridProps &
1003
+ Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as' | 'rows'>, 'ref'> &
1043
1004
  RefAttributes<HTMLDivElement>
1044
1005
  >
1045
1006
 
1046
- export {GridAutoCols}
1007
+ /**
1008
+ * @public
1009
+ */
1010
+ export declare type GridAutoCols = 'auto' | 'min' | 'max' | 'fr'
1047
1011
 
1048
- export {GridAutoFlow}
1012
+ /**
1013
+ * @public
1014
+ */
1015
+ export declare type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dense'
1049
1016
 
1050
- export {GridAutoRows}
1017
+ /**
1018
+ * @public
1019
+ */
1020
+ export declare type GridAutoRows = 'auto' | 'min' | 'max' | 'fr'
1051
1021
 
1052
- export {GridItemColumn}
1022
+ /**
1023
+ * @public
1024
+ */
1025
+ export declare type GridItemColumn = 'auto' | 'full' | number
1053
1026
 
1054
- export {GridItemColumnEnd}
1027
+ /**
1028
+ * @public
1029
+ */
1030
+ export declare type GridItemColumnEnd = 'auto' | number
1055
1031
 
1056
- export {GridItemColumnStart}
1032
+ /**
1033
+ * @public
1034
+ */
1035
+ export declare type GridItemColumnStart = 'auto' | number
1057
1036
 
1058
- export {GridItemRow}
1037
+ /**
1038
+ * @public
1039
+ */
1040
+ export declare type GridItemRow = 'auto' | 'full' | number
1059
1041
 
1060
- export {GridItemRowEnd}
1042
+ /**
1043
+ * @public
1044
+ */
1045
+ export declare type GridItemRowEnd = 'auto' | number
1061
1046
 
1062
- export {GridItemRowStart}
1047
+ /**
1048
+ * @public
1049
+ */
1050
+ export declare type GridItemRowStart = 'auto' | number
1063
1051
 
1064
1052
  /**
1065
1053
  * @public
1066
1054
  */
1067
- export declare interface GridProps extends Omit<BoxProps, 'display'> {}
1055
+ export declare interface GridProps extends Omit<BoxProps, 'display'>, ResponsiveGridProps {}
1068
1056
 
1069
1057
  /**
1070
1058
  * @internal
@@ -1077,23 +1065,37 @@ export declare function _hasFocus(element: HTMLElement): boolean
1077
1065
  * @public
1078
1066
  */
1079
1067
  export declare const Heading: ForwardRefExoticComponent<
1080
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof HeadingProps> &
1081
- HeadingProps &
1068
+ Omit<HeadingProps & Omit<HTMLProps<HTMLElement>, 'size' | 'as'>, 'ref'> &
1082
1069
  RefAttributes<HTMLElement>
1083
1070
  >
1084
1071
 
1085
1072
  /**
1086
1073
  * @public
1087
1074
  */
1088
- export declare interface HeadingProps extends HeadingStyleProps, TextOverflowStyleProps {}
1075
+ export declare interface HeadingProps {
1076
+ accent?: boolean
1077
+ align?: TextAlign | TextAlign[]
1078
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements
1079
+ muted?: boolean
1080
+ size?: number | number[]
1081
+ /**
1082
+ * Controls how overflowing text is treated.
1083
+ * Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
1084
+ * @beta
1085
+ */
1086
+ textOverflow?: 'ellipsis'
1087
+ weight?: ThemeFontWeightKey_2
1088
+ }
1089
1089
 
1090
1090
  /**
1091
1091
  * This API might change. DO NOT USE IN PRODUCTION.
1092
1092
  * @beta
1093
1093
  */
1094
1094
  export declare const HeadingSkeleton: ForwardRefExoticComponent<
1095
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof HeadingSkeletonProps> &
1096
- HeadingSkeletonProps &
1095
+ Omit<
1096
+ HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
1097
+ 'ref'
1098
+ > &
1097
1099
  RefAttributes<HTMLDivElement>
1098
1100
  >
1099
1101
 
@@ -1102,7 +1104,7 @@ export declare const HeadingSkeleton: ForwardRefExoticComponent<
1102
1104
  * @beta
1103
1105
  */
1104
1106
  export declare interface HeadingSkeletonProps extends SkeletonProps {
1105
- size?: ResponsiveProp<FontHeadingSize>
1107
+ size?: number | number[]
1106
1108
  }
1107
1109
 
1108
1110
  /**
@@ -1117,19 +1119,17 @@ export declare const hexToRgb: typeof hexToRgb_2
1117
1119
  * @public
1118
1120
  */
1119
1121
  export declare const Hotkeys: ForwardRefExoticComponent<
1120
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof HotkeysProps> &
1121
- HotkeysProps &
1122
- RefAttributes<HTMLDivElement>
1122
+ HotkeysProps & Omit<HTMLProps<HTMLElement>, 'size' | 'ref' | 'as'> & RefAttributes<HTMLElement>
1123
1123
  >
1124
1124
 
1125
1125
  /**
1126
1126
  * @public
1127
1127
  */
1128
- export declare interface HotkeysProps extends GapStyleProps, RadiusStyleProps {
1129
- fontSize?: ResponsiveProp<FontTextSize>
1130
- padding?: ResponsiveProp<Space>
1131
- /** @deprecated Use `gap` instead. */
1132
- space?: ResponsiveProp<Space>
1128
+ export declare interface HotkeysProps {
1129
+ fontSize?: number | number[]
1130
+ padding?: number | number[]
1131
+ radius?: Radius | Radius[]
1132
+ space?: number | number[]
1133
1133
  keys?: string[]
1134
1134
  }
1135
1135
 
@@ -1151,17 +1151,15 @@ export declare const hslToRgb: typeof hslToRgb_2
1151
1151
  * @public
1152
1152
  */
1153
1153
  export declare const Inline: ForwardRefExoticComponent<
1154
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof InlineProps> &
1155
- InlineProps &
1156
- RefAttributes<HTMLDivElement>
1154
+ Omit<InlineProps & HTMLProps<HTMLDivElement>, 'ref'> & RefAttributes<unknown>
1157
1155
  >
1158
1156
 
1159
1157
  /**
1160
1158
  * @public
1161
1159
  */
1162
- export declare interface InlineProps extends Omit<BoxProps, 'align' | 'display' | 'justify'> {
1163
- /** @deprecated Use `gap` instead. */
1164
- space?: ResponsiveProp<Space>
1160
+ export declare interface InlineProps extends Omit<BoxProps, 'display'> {
1161
+ /** The spacing between children. */
1162
+ space?: number | number[]
1165
1163
  }
1166
1164
 
1167
1165
  /**
@@ -1215,17 +1213,17 @@ export declare function _isScrollable(el: Node): boolean
1215
1213
  * @public
1216
1214
  */
1217
1215
  export declare const KBD: ForwardRefExoticComponent<
1218
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof KBDProps> &
1219
- KBDProps &
1220
- RefAttributes<HTMLDivElement>
1216
+ KBDProps & Omit<HTMLProps<HTMLElement>, 'size' | 'ref' | 'as'> & RefAttributes<HTMLDivElement>
1221
1217
  >
1222
1218
 
1223
1219
  /**
1224
1220
  * @public
1225
1221
  */
1226
- export declare interface KBDProps extends BoxProps, RadiusStyleProps {
1227
- fontSize?: ResponsiveProp<FontTextSize>
1228
- padding?: ResponsiveProp<Space>
1222
+ export declare interface KBDProps {
1223
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements
1224
+ fontSize?: number | number[]
1225
+ padding?: number | number[]
1226
+ radius?: Radius | Radius[]
1229
1227
  }
1230
1228
 
1231
1229
  /**
@@ -1234,19 +1232,26 @@ export declare interface KBDProps extends BoxProps, RadiusStyleProps {
1234
1232
  * @public
1235
1233
  */
1236
1234
  export declare const Label: ForwardRefExoticComponent<
1237
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof LabelProps> &
1238
- LabelProps &
1235
+ Omit<LabelProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>, 'ref'> &
1239
1236
  RefAttributes<HTMLDivElement>
1240
1237
  >
1241
1238
 
1242
1239
  /**
1243
1240
  * @public
1244
1241
  */
1245
- export declare interface LabelProps extends FontStyleProps, TextOverflowStyleProps {
1242
+ export declare interface LabelProps {
1246
1243
  accent?: boolean
1247
- htmlFor?: string
1244
+ align?: TextAlign | TextAlign[]
1245
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements
1248
1246
  muted?: boolean
1249
- size?: ResponsiveProp<LabelSize>
1247
+ size?: number | number[]
1248
+ /**
1249
+ * Controls how overflowing text is treated.
1250
+ * Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
1251
+ * @beta
1252
+ */
1253
+ textOverflow?: 'ellipsis'
1254
+ weight?: ThemeFontWeightKey_2
1250
1255
  }
1251
1256
 
1252
1257
  /**
@@ -1254,8 +1259,10 @@ export declare interface LabelProps extends FontStyleProps, TextOverflowStylePro
1254
1259
  * @beta
1255
1260
  */
1256
1261
  export declare const LabelSkeleton: ForwardRefExoticComponent<
1257
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof LabelSkeletonProps> &
1258
- LabelSkeletonProps &
1262
+ Omit<
1263
+ LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
1264
+ 'ref'
1265
+ > &
1259
1266
  RefAttributes<HTMLDivElement>
1260
1267
  >
1261
1268
 
@@ -1264,16 +1271,14 @@ export declare const LabelSkeleton: ForwardRefExoticComponent<
1264
1271
  * @beta
1265
1272
  */
1266
1273
  export declare interface LabelSkeletonProps extends SkeletonProps {
1267
- size?: ResponsiveProp<FontLabelSize>
1274
+ size?: number | number[]
1268
1275
  }
1269
1276
 
1270
1277
  /**
1271
1278
  * @public
1272
1279
  */
1273
1280
  export declare const Layer: ForwardRefExoticComponent<
1274
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof LayerProps> &
1275
- LayerProps &
1276
- RefAttributes<HTMLDivElement>
1281
+ Omit<LayerProps & Omit<HTMLProps<HTMLDivElement>, 'as'>, 'ref'> & RefAttributes<HTMLDivElement>
1277
1282
  >
1278
1283
 
1279
1284
  /** @public */
@@ -1289,7 +1294,8 @@ export declare interface LayerContextValue {
1289
1294
  /**
1290
1295
  * @public
1291
1296
  */
1292
- export declare interface LayerProps extends BoxProps {
1297
+ export declare interface LayerProps {
1298
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements
1293
1299
  /** A callback that fires when the layer becomes the top layer when it was not the top layer before. */
1294
1300
  onActivate?: (props: {activeElement: HTMLElement | null}) => void
1295
1301
  zOffset?: number | number[]
@@ -1298,7 +1304,7 @@ export declare interface LayerProps extends BoxProps {
1298
1304
  /**
1299
1305
  * @public
1300
1306
  */
1301
- export declare function LayerProvider(props: LayerProviderProps): ReactElement
1307
+ export declare function LayerProvider(props: LayerProviderProps): React.JSX.Element
1302
1308
 
1303
1309
  export declare namespace LayerProvider {
1304
1310
  var displayName: string
@@ -1308,7 +1314,7 @@ export declare namespace LayerProvider {
1308
1314
  * @public
1309
1315
  */
1310
1316
  export declare interface LayerProviderProps {
1311
- children?: ReactNode
1317
+ children?: React.ReactNode
1312
1318
  zOffset?: number | number[]
1313
1319
  }
1314
1320
 
@@ -1317,6 +1323,7 @@ export declare interface LayerProviderProps {
1317
1323
  * @beta
1318
1324
  */
1319
1325
  export declare interface MediaQueryProps {
1326
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements
1320
1327
  media?: number[]
1321
1328
  }
1322
1329
 
@@ -1334,8 +1341,7 @@ export declare interface _MediaStore {
1334
1341
  * @public
1335
1342
  */
1336
1343
  export declare const Menu: ForwardRefExoticComponent<
1337
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof MenuProps> &
1338
- MenuProps &
1344
+ Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'tabIndex' | 'role' | 'as'>, 'ref'> &
1339
1345
  RefAttributes<HTMLDivElement>
1340
1346
  >
1341
1347
 
@@ -1360,9 +1366,9 @@ export declare interface MenuButtonProps {
1360
1366
  * @deprecated Use `popover={{boundaryElement: element}}` instead.
1361
1367
  */
1362
1368
  boundaryElement?: HTMLElement
1363
- button: ReactElement<Props<ButtonProps, 'button'>>
1369
+ button: React.JSX.Element
1364
1370
  id: string
1365
- menu?: ReactElement
1371
+ menu?: React.JSX.Element
1366
1372
  onClose?: () => void
1367
1373
  onOpen?: () => void
1368
1374
  /**
@@ -1392,19 +1398,19 @@ export declare interface MenuButtonProps {
1392
1398
  /**
1393
1399
  * @public
1394
1400
  */
1395
- export declare const MenuDivider: ForwardRefExoticComponent<
1396
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, never> &
1397
- MenuDividerProps &
1398
- RefAttributes<HTMLHRElement>
1399
- >
1400
-
1401
- /** @public */
1402
- export declare interface MenuDividerProps {}
1401
+ export declare const MenuDivider: IStyledComponentBase<
1402
+ 'web',
1403
+ FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never>
1404
+ > &
1405
+ string
1403
1406
 
1404
1407
  /**
1405
1408
  * @public
1406
1409
  */
1407
- export declare function MenuGroup(props: Props<MenuGroupProps, 'div'>): ReactElement
1410
+ export declare function MenuGroup(
1411
+ props: Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'height' | 'popover' | 'ref' | 'tabIndex'> &
1412
+ MenuGroupProps,
1413
+ ): React.JSX.Element
1408
1414
 
1409
1415
  export declare namespace MenuGroup {
1410
1416
  var displayName: string
@@ -1413,10 +1419,10 @@ export declare namespace MenuGroup {
1413
1419
  /**
1414
1420
  * @public
1415
1421
  */
1416
- export declare interface MenuGroupProps extends GapStyleProps {
1417
- disabled?: boolean
1418
- fontSize?: ResponsiveProp<FontTextSize>
1419
- icon?: ElementType | ReactNode
1422
+ export declare interface MenuGroupProps {
1423
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements
1424
+ fontSize?: number | number[]
1425
+ icon?: React.ElementType | React.ReactNode
1420
1426
  menu?: Omit<
1421
1427
  MenuProps,
1422
1428
  | 'onClickOutside'
@@ -1428,12 +1434,11 @@ export declare interface MenuGroupProps extends GapStyleProps {
1428
1434
  | 'shouldFocus'
1429
1435
  | 'onBlurCapture'
1430
1436
  >
1431
- padding?: ResponsiveProp<Space>
1437
+ padding?: number | number[]
1432
1438
  popover?: Omit<PopoverProps, 'content' | 'open'>
1433
1439
  radius?: Radius | Radius[]
1434
- /** @deprecated Use `gap` instead. */
1435
- space?: ResponsiveProp<Space>
1436
- text: ReactNode
1440
+ space?: number | number[]
1441
+ text: React.ReactNode
1437
1442
  tone?: SelectableTone
1438
1443
  }
1439
1444
 
@@ -1441,32 +1446,31 @@ export declare interface MenuGroupProps extends GapStyleProps {
1441
1446
  * @public
1442
1447
  */
1443
1448
  export declare const MenuItem: ForwardRefExoticComponent<
1444
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof MenuItemProps> &
1445
- MenuItemProps &
1449
+ MenuItemProps &
1450
+ Omit<HTMLProps<HTMLDivElement>, 'selected' | 'height' | 'ref' | 'tabIndex' | 'as'> &
1446
1451
  RefAttributes<HTMLDivElement>
1447
1452
  >
1448
1453
 
1449
1454
  /**
1450
1455
  * @public
1451
1456
  */
1452
- export declare interface MenuItemProps extends GapStyleProps, PaddingStyleProps, RadiusStyleProps {
1453
- disabled?: boolean
1457
+ export declare interface MenuItemProps extends ResponsivePaddingProps, ResponsiveRadiusProps {
1458
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements
1454
1459
  fontSize?: number | number[]
1455
1460
  hotkeys?: string[]
1456
- icon?: ElementType | ReactNode
1457
- iconRight?: ElementType | ReactNode
1461
+ icon?: React.ElementType | React.ReactNode
1462
+ iconRight?: React.ElementType | React.ReactNode
1458
1463
  pressed?: boolean
1459
1464
  selected?: boolean
1460
- /** @deprecated Use `gap` instead. */
1461
- space?: ResponsiveProp<Space>
1462
- text?: ReactNode
1465
+ space?: number | number[]
1466
+ text?: React.ReactNode
1463
1467
  tone?: SelectableTone
1464
1468
  }
1465
1469
 
1466
1470
  /**
1467
1471
  * @public
1468
1472
  */
1469
- export declare interface MenuProps extends PaddingStyleProps, Pick<GapStyleProps, 'gap'> {
1473
+ export declare interface MenuProps extends ResponsivePaddingProps {
1470
1474
  /**
1471
1475
  * @deprecated Use `shouldFocus="first"` instead.
1472
1476
  */
@@ -1482,9 +1486,9 @@ export declare interface MenuProps extends PaddingStyleProps, Pick<GapStyleProps
1482
1486
  'originElement'?: HTMLElement | null
1483
1487
  'registerElement'?: (el: HTMLElement) => () => void
1484
1488
  'shouldFocus'?: 'first' | 'last' | null
1485
- /** @deprecated Use `gap` property instead. */
1486
- 'space'?: ResponsiveProp<Space>
1489
+ 'space'?: number | number[]
1487
1490
  'aria-labelledby'?: string
1491
+ 'onBlurCapture'?: (event: FocusEvent) => void
1488
1492
  }
1489
1493
 
1490
1494
  /**
@@ -1520,18 +1524,16 @@ export declare type Placement =
1520
1524
  | 'left-start'
1521
1525
  | 'left-end'
1522
1526
 
1523
- export declare interface PolymorphicProps {
1524
- as?: ElementType
1525
- }
1526
-
1527
1527
  /**
1528
1528
  * The `Popover` component is used to display some content on top of another.
1529
1529
  *
1530
1530
  * @public
1531
1531
  */
1532
1532
  export declare const Popover: NamedExoticComponent<
1533
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof PopoverProps> &
1534
- PopoverProps &
1533
+ Omit<
1534
+ PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'content' | 'width' | 'children' | 'as'>,
1535
+ 'ref'
1536
+ > &
1535
1537
  RefAttributes<HTMLDivElement>
1536
1538
  >
1537
1539
 
@@ -1541,7 +1543,10 @@ export declare const Popover: NamedExoticComponent<
1541
1543
  export declare type PopoverMargins = [number, number, number, number]
1542
1544
 
1543
1545
  /** @public */
1544
- export declare interface PopoverProps extends CardProps, LayerProps {
1546
+ export declare interface PopoverProps
1547
+ extends Omit<LayerProps, 'as'>,
1548
+ ResponsiveRadiusProps,
1549
+ ResponsiveShadowProps {
1545
1550
  /** @beta */
1546
1551
  __unstable_margins?: PopoverMargins
1547
1552
  /**
@@ -1554,22 +1559,20 @@ export declare interface PopoverProps extends CardProps, LayerProps {
1554
1559
  arrow?: boolean
1555
1560
  /** @deprecated Use `floatingBoundary` and/or `referenceBoundary` instead */
1556
1561
  boundaryElement?: HTMLElement | null
1557
- children?: ReactElement<{
1558
- ref: ForwardedRef<HTMLElement>
1559
- }>
1562
+ children?: React.JSX.Element
1560
1563
  /**
1561
- * When `true`, prevent overflow within the current boundary:
1562
- * - by flipping on its side axis
1563
- * - by resizing
1564
- *
1565
- * Note that:
1566
- * - setting `preventOverflow` to `true` also prevents overflow on its side axis
1567
- * - setting `matchReferenceWidth` to `true` also causes the popover to resize
1568
- *
1569
- * @defaultValue false
1570
- */
1564
+ * When `true`, prevent overflow within the current boundary:
1565
+ * - by flipping on its side axis
1566
+ * - by resizing
1567
+ /*
1568
+ * Note that:
1569
+ * - setting `preventOverflow` to `true` also prevents overflow on its side axis
1570
+ * - setting `matchReferenceWidth` to `true` also causes the popover to resize
1571
+ *
1572
+ * @defaultValue false
1573
+ */
1571
1574
  constrainSize?: boolean
1572
- content?: ReactNode
1575
+ content?: React.ReactNode
1573
1576
  disabled?: boolean
1574
1577
  fallbackPlacements?: Placement[]
1575
1578
  floatingBoundary?: HTMLElement | null
@@ -1590,7 +1593,19 @@ export declare interface PopoverProps extends CardProps, LayerProps {
1590
1593
  */
1591
1594
  modal?: boolean
1592
1595
  open?: boolean
1596
+ overflow?: BoxOverflow
1597
+ padding?: number | number[]
1593
1598
  placement?: Placement
1599
+ /**
1600
+ * When 'flip' (default), the placement is determined from the initial placement and the
1601
+ * fallback placements in order. Whichever fits in the viewport first.
1602
+ *
1603
+ * When 'autoPlacement', the initial placement and all fallback placements are evaluated
1604
+ * and the placement with the most viewport space available.
1605
+ *
1606
+ * Option is only relevant if either `constrainSize` or `preventOverflow` is `true`
1607
+ */
1608
+ placementStrategy?: 'flip' | 'autoPlacement'
1594
1609
  /** Whether or not to render the popover in a portal element. */
1595
1610
  portal?: boolean | string
1596
1611
  preventOverflow?: boolean
@@ -1600,10 +1615,13 @@ export declare interface PopoverProps extends CardProps, LayerProps {
1600
1615
  * The children of the popover won't be rendered.
1601
1616
  */
1602
1617
  referenceElement?: HTMLElement | null
1618
+ scheme?: ThemeColorSchemeKey_2
1619
+ tone?: CardTone
1603
1620
  /** @beta */
1604
1621
  updateRef?:
1605
1622
  | MutableRefObject<PopoverUpdateCallback | undefined>
1606
1623
  | RefCallback<PopoverUpdateCallback | undefined>
1624
+ width?: PopoverWidth | PopoverWidth[]
1607
1625
  }
1608
1626
 
1609
1627
  /** @beta */
@@ -1615,7 +1633,7 @@ export declare type PopoverWidth = number | 'auto'
1615
1633
  /**
1616
1634
  * @public
1617
1635
  */
1618
- export declare function Portal(props: PortalProps): ReactPortal | null
1636
+ export declare function Portal(props: PortalProps): React.ReactPortal | null
1619
1637
 
1620
1638
  export declare namespace Portal {
1621
1639
  var displayName: string
@@ -1635,7 +1653,7 @@ export declare interface PortalContextValue {
1635
1653
  * @public
1636
1654
  */
1637
1655
  export declare interface PortalProps {
1638
- children: ReactNode
1656
+ children: React.ReactNode
1639
1657
  /**
1640
1658
  * @beta This API might change. DO NOT USE IN PRODUCTION.
1641
1659
  */
@@ -1645,7 +1663,7 @@ export declare interface PortalProps {
1645
1663
  /**
1646
1664
  * @public
1647
1665
  */
1648
- export declare function PortalProvider(props: PortalProviderProps): ReactElement
1666
+ export declare function PortalProvider(props: PortalProviderProps): React.JSX.Element
1649
1667
 
1650
1668
  export declare namespace PortalProvider {
1651
1669
  var displayName: string
@@ -1659,7 +1677,7 @@ export declare interface PortalProviderProps {
1659
1677
  * @deprecated Use `<BoundaryElementProvider element={...} />` instead
1660
1678
  */
1661
1679
  boundaryElement?: HTMLElement | null
1662
- children: ReactNode
1680
+ children: React.ReactNode
1663
1681
  element?: HTMLElement | null
1664
1682
  /**
1665
1683
  * @beta
@@ -1667,22 +1685,13 @@ export declare interface PortalProviderProps {
1667
1685
  __unstable_elements?: Record<string, HTMLElement | null | undefined>
1668
1686
  }
1669
1687
 
1670
- /** @public */
1671
- export declare type Props<P extends {} = {}, E extends ElementType = ElementType> = Assign<
1672
- ElementProps<E> & PolymorphicProps,
1673
- P
1674
- >
1675
-
1676
- export {px}
1677
-
1678
1688
  /**
1679
1689
  * The `Radio` component allows the user to select one option from a set.
1680
1690
  *
1681
1691
  * @public
1682
1692
  */
1683
1693
  export declare const Radio: ForwardRefExoticComponent<
1684
- Omit<ElementProps_2<'input'> & PolymorphicProps_2, 'customValidity'> &
1685
- RadioProps &
1694
+ Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & RadioProps, 'ref'> &
1686
1695
  RefAttributes<HTMLInputElement>
1687
1696
  >
1688
1697
 
@@ -1693,7 +1702,10 @@ export declare interface RadioProps {
1693
1702
  customValidity?: string
1694
1703
  }
1695
1704
 
1696
- export {Radius}
1705
+ /**
1706
+ * @public
1707
+ */
1708
+ export declare type Radius = number | 'full'
1697
1709
 
1698
1710
  /**
1699
1711
  * @internal
@@ -1705,7 +1717,10 @@ export declare function _raf(fn: () => void): () => void
1705
1717
  */
1706
1718
  export declare function _raf2(fn: () => void): () => void
1707
1719
 
1708
- export {rem}
1720
+ /**
1721
+ * @public
1722
+ */
1723
+ export declare function rem(pixelValue: number): string | 0
1709
1724
 
1710
1725
  /**
1711
1726
  * @internal
@@ -1714,7 +1729,6 @@ export declare const _ResizeObserver: typeof ResizeObserver
1714
1729
 
1715
1730
  /**
1716
1731
  * @internal
1717
- * @deprecated do not use
1718
1732
  */
1719
1733
  export declare function _responsive<T>(
1720
1734
  media: number[],
@@ -1731,7 +1745,6 @@ export declare interface ResponsiveAvatarSizeStyleProps {
1731
1745
 
1732
1746
  /**
1733
1747
  * @public
1734
- * @deprecated
1735
1748
  */
1736
1749
  export declare interface ResponsiveBorderProps {
1737
1750
  border?: boolean | boolean[]
@@ -1743,7 +1756,6 @@ export declare interface ResponsiveBorderProps {
1743
1756
 
1744
1757
  /**
1745
1758
  * @public
1746
- * @deprecated
1747
1759
  */
1748
1760
  export declare interface ResponsiveBoxProps {
1749
1761
  display?: BoxDisplay | BoxDisplay[]
@@ -1752,9 +1764,16 @@ export declare interface ResponsiveBoxProps {
1752
1764
  sizing?: BoxSizing | BoxSizing[]
1753
1765
  }
1754
1766
 
1767
+ /**
1768
+ * Get responsive CSS for the `code` font style.
1769
+ * @internal
1770
+ */
1771
+ export declare function responsiveCodeFontStyle(
1772
+ props: ResponsiveFontStyleProps & ThemeProps,
1773
+ ): CSSObject[]
1774
+
1755
1775
  /**
1756
1776
  * @public
1757
- * @deprecated
1758
1777
  */
1759
1778
  export declare interface ResponsiveFlexItemProps {
1760
1779
  /** Sets the flex CSS attribute. The property is responsive. */
@@ -1763,7 +1782,6 @@ export declare interface ResponsiveFlexItemProps {
1763
1782
 
1764
1783
  /**
1765
1784
  * @public
1766
- * @deprecated
1767
1785
  */
1768
1786
  export declare interface ResponsiveFlexProps {
1769
1787
  align?: FlexAlign | FlexAlign[]
@@ -1772,9 +1790,26 @@ export declare interface ResponsiveFlexProps {
1772
1790
  wrap?: FlexWrap | FlexWrap[]
1773
1791
  }
1774
1792
 
1793
+ /**
1794
+ * @internal
1795
+ */
1796
+ export declare interface ResponsiveFontSizeStyleProps {
1797
+ $size: number[]
1798
+ }
1799
+
1800
+ /**
1801
+ * @internal
1802
+ */
1803
+ export declare interface ResponsiveFontStyleProps
1804
+ extends FontWeightStyleProps,
1805
+ ResponsiveFontSizeStyleProps,
1806
+ ResponsiveTextAlignStyleProps {
1807
+ $accent?: boolean
1808
+ $muted?: boolean
1809
+ }
1810
+
1775
1811
  /**
1776
1812
  * @public
1777
- * @deprecated
1778
1813
  */
1779
1814
  export declare interface ResponsiveGridItemProps {
1780
1815
  column?: GridItemColumn | GridItemColumn[]
@@ -1787,19 +1822,36 @@ export declare interface ResponsiveGridItemProps {
1787
1822
 
1788
1823
  /**
1789
1824
  * @public
1790
- * @deprecated
1791
1825
  */
1792
1826
  export declare interface ResponsiveGridProps {
1793
1827
  autoRows?: GridAutoRows | GridAutoRows[]
1794
1828
  autoCols?: GridAutoCols | GridAutoCols[]
1795
1829
  autoFlow?: GridAutoFlow | GridAutoFlow[]
1796
1830
  columns?: number | number[]
1831
+ gap?: number | number[]
1832
+ gapX?: number | number[]
1833
+ gapY?: number | number[]
1797
1834
  rows?: number | number[]
1798
1835
  }
1799
1836
 
1837
+ /**
1838
+ * Get responsive CSS for the `heading` font style.
1839
+ * @internal
1840
+ */
1841
+ export declare function responsiveHeadingFont(
1842
+ props: ResponsiveFontStyleProps & ThemeProps,
1843
+ ): CSSObject[]
1844
+
1845
+ /**
1846
+ * Get responsive CSS for the `label` font style.
1847
+ * @internal
1848
+ */
1849
+ export declare function responsiveLabelFont(
1850
+ props: ResponsiveFontStyleProps & ThemeProps,
1851
+ ): CSSObject[]
1852
+
1800
1853
  /**
1801
1854
  * @public
1802
- * @deprecated
1803
1855
  */
1804
1856
  export declare interface ResponsiveMarginProps {
1805
1857
  /** Applies margins to all sides. The property is responsive. */
@@ -1816,7 +1868,6 @@ export declare interface ResponsiveMarginProps {
1816
1868
 
1817
1869
  /**
1818
1870
  * @public
1819
- * @deprecated
1820
1871
  */
1821
1872
  export declare interface ResponsivePaddingProps {
1822
1873
  padding?: number | number[]
@@ -1830,7 +1881,6 @@ export declare interface ResponsivePaddingProps {
1830
1881
 
1831
1882
  /**
1832
1883
  * @public
1833
- * @deprecated
1834
1884
  */
1835
1885
  export declare interface ResponsiveRadiusProps {
1836
1886
  radius?: Radius | Radius[]
@@ -1838,15 +1888,36 @@ export declare interface ResponsiveRadiusProps {
1838
1888
 
1839
1889
  /**
1840
1890
  * @public
1841
- * @deprecated
1842
1891
  */
1843
1892
  export declare interface ResponsiveShadowProps {
1844
1893
  shadow?: number | number[]
1845
1894
  }
1846
1895
 
1896
+ /**
1897
+ * Get responsive text align styles.
1898
+ * @internal
1899
+ */
1900
+ export declare function responsiveTextAlignStyle(
1901
+ props: ResponsiveTextAlignStyleProps & ThemeProps,
1902
+ ): CSSObject[]
1903
+
1904
+ /**
1905
+ * @internal
1906
+ */
1907
+ export declare interface ResponsiveTextAlignStyleProps {
1908
+ $align: TextAlign[]
1909
+ }
1910
+
1911
+ /**
1912
+ * Get responsive CSS for the `text` font style.
1913
+ * @internal
1914
+ */
1915
+ export declare function responsiveTextFont(
1916
+ props: ResponsiveFontStyleProps & ThemeProps,
1917
+ ): CSSObject[]
1918
+
1847
1919
  /**
1848
1920
  * @public
1849
- * @deprecated
1850
1921
  */
1851
1922
  export declare interface ResponsiveWidthProps {
1852
1923
  width?: number | 'auto' | (number | 'auto')[]
@@ -1902,25 +1973,24 @@ export {screen_2 as screen}
1902
1973
  * @public
1903
1974
  */
1904
1975
  export declare const Select: ForwardRefExoticComponent<
1905
- Omit<ElementProps_2<'select'> & PolymorphicProps_2, keyof SelectProps> &
1906
- SelectProps &
1976
+ Omit<SelectProps & Omit<HTMLProps<HTMLSelectElement>, 'as'>, 'ref'> &
1907
1977
  RefAttributes<HTMLSelectElement>
1908
1978
  >
1909
1979
 
1910
1980
  /**
1911
1981
  * @public
1912
- * @deprecated Use `ThemeColorStateToneKey` instead
1913
1982
  */
1914
1983
  export declare type SelectableTone = ThemeColorStateToneKey
1915
1984
 
1916
1985
  /**
1917
1986
  * @public
1918
1987
  */
1919
- export declare interface SelectProps extends SelectStyleProps {
1988
+ export declare interface SelectProps {
1989
+ fontSize?: number | number[]
1990
+ padding?: number | number[]
1991
+ radius?: Radius | Radius[]
1992
+ space?: number | number[]
1920
1993
  customValidity?: string
1921
- readOnly?: boolean
1922
- /** @deprecated Use `gap` instead. */
1923
- space?: ResponsiveProp<Space>
1924
1994
  }
1925
1995
 
1926
1996
  /**
@@ -1928,16 +1998,14 @@ export declare interface SelectProps extends SelectStyleProps {
1928
1998
  * @beta
1929
1999
  */
1930
2000
  export declare const Skeleton: ForwardRefExoticComponent<
1931
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof SkeletonProps> &
1932
- SkeletonProps &
1933
- RefAttributes<HTMLDivElement>
2001
+ Omit<SkeletonProps & HTMLProps<HTMLDivElement>, 'ref'> & RefAttributes<HTMLDivElement>
1934
2002
  >
1935
2003
 
1936
2004
  /**
1937
2005
  * This API might change. DO NOT USE IN PRODUCTION.
1938
2006
  * @beta
1939
2007
  */
1940
- export declare interface SkeletonProps extends SkeletonStyleProps, Omit<BoxProps, 'children'> {
2008
+ export declare interface SkeletonProps extends ResponsiveRadiusProps, Omit<BoxProps, 'children'> {
1941
2009
  animated?: boolean
1942
2010
  delay?: number
1943
2011
  }
@@ -1948,8 +2016,7 @@ export declare interface SkeletonProps extends SkeletonStyleProps, Omit<BoxProps
1948
2016
  * @public
1949
2017
  */
1950
2018
  export declare const Spinner: ForwardRefExoticComponent<
1951
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof SpinnerProps> &
1952
- SpinnerProps &
2019
+ Omit<SpinnerProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>, 'ref'> &
1953
2020
  RefAttributes<HTMLDivElement>
1954
2021
  >
1955
2022
 
@@ -1958,15 +2025,14 @@ export declare const Spinner: ForwardRefExoticComponent<
1958
2025
  */
1959
2026
  export declare interface SpinnerProps {
1960
2027
  muted?: boolean
1961
- size?: ResponsiveProp<FontTextSize>
2028
+ size?: number | number[]
1962
2029
  }
1963
2030
 
1964
2031
  /**
1965
2032
  * @public
1966
2033
  */
1967
2034
  export declare const SrOnly: ForwardRefExoticComponent<
1968
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, 'children'> &
1969
- SrOnlyProps &
2035
+ Omit<SrOnlyProps & Omit<HTMLProps<HTMLDivElement>, 'aria-hidden' | 'as'>, 'ref'> &
1970
2036
  RefAttributes<HTMLDivElement>
1971
2037
  >
1972
2038
 
@@ -1974,7 +2040,8 @@ export declare const SrOnly: ForwardRefExoticComponent<
1974
2040
  * @public
1975
2041
  */
1976
2042
  export declare interface SrOnlyProps {
1977
- children?: ReactNode
2043
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements
2044
+ children?: React.ReactNode
1978
2045
  }
1979
2046
 
1980
2047
  /**
@@ -1983,30 +2050,22 @@ export declare interface SrOnlyProps {
1983
2050
  * @public
1984
2051
  */
1985
2052
  export declare const Stack: ForwardRefExoticComponent<
1986
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof StackProps> &
1987
- StackProps &
1988
- RefAttributes<HTMLDivElement>
2053
+ StackProps & Omit<HTMLProps<HTMLDivElement>, 'ref' | 'as'> & RefAttributes<HTMLDivElement>
1989
2054
  >
1990
2055
 
1991
2056
  /**
1992
2057
  * @public
1993
2058
  */
1994
- export declare interface StackProps
1995
- extends Omit<
1996
- BoxProps,
1997
- 'align' | 'columns' | 'direction' | 'display' | 'gapX' | 'gapY' | 'justify'
1998
- > {
1999
- /** @deprecated Use `gap` instead. */
2000
- space?: ResponsiveProp<Space>
2059
+ export declare interface StackProps extends BoxProps {
2060
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements
2061
+ space?: number | number[]
2001
2062
  }
2002
2063
 
2003
2064
  /**
2004
2065
  * @public
2005
2066
  * @deprecated Use `buildTheme` from `@sanity/ui/theme` instead.
2006
2067
  */
2007
- export declare const studioTheme: {
2008
- readonly value: RootTheme_2
2009
- }
2068
+ export declare const studioTheme: BaseTheme_2
2010
2069
 
2011
2070
  /**
2012
2071
  * @public
@@ -2014,8 +2073,6 @@ export declare const studioTheme: {
2014
2073
  */
2015
2074
  export declare type Styles = ThemeStyles
2016
2075
 
2017
- export declare function StyleTags(props: {theme?: Theme_v3}): ReactNode
2018
-
2019
2076
  /**
2020
2077
  * The `Switch` component allows the user to toggle a setting on and off.
2021
2078
  *
@@ -2024,8 +2081,7 @@ export declare function StyleTags(props: {theme?: Theme_v3}): ReactNode
2024
2081
  * @public
2025
2082
  */
2026
2083
  export declare const Switch: ForwardRefExoticComponent<
2027
- Omit<ElementProps_2<'input'> & PolymorphicProps_2, 'indeterminate'> &
2028
- SwitchProps &
2084
+ Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & SwitchProps, 'ref'> &
2029
2085
  RefAttributes<HTMLInputElement>
2030
2086
  >
2031
2087
 
@@ -2040,8 +2096,14 @@ export declare interface SwitchProps {
2040
2096
  * @public
2041
2097
  */
2042
2098
  export declare const Tab: ForwardRefExoticComponent<
2043
- Omit<ElementProps_2<'button'> & PolymorphicProps_2, keyof TabProps> &
2099
+ Omit<
2044
2100
  TabProps &
2101
+ Omit<
2102
+ HTMLProps<HTMLButtonElement>,
2103
+ 'label' | 'id' | 'type' | 'width' | 'aria-controls' | 'as'
2104
+ >,
2105
+ 'ref'
2106
+ > &
2045
2107
  RefAttributes<HTMLButtonElement>
2046
2108
  >
2047
2109
 
@@ -2049,33 +2111,25 @@ export declare const Tab: ForwardRefExoticComponent<
2049
2111
  * @public
2050
2112
  */
2051
2113
  export declare const TabList: ForwardRefExoticComponent<
2052
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TabListProps> &
2053
- TabListProps &
2054
- RefAttributes<HTMLDivElement>
2114
+ Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
2115
+ RefAttributes<unknown>
2055
2116
  >
2056
2117
 
2057
- /**
2058
- * @public
2059
- */
2060
- export declare type TabListChild =
2061
- | ReactElement<Props<TabProps, 'button'>>
2062
- | null
2063
- | undefined
2064
- | false
2065
-
2066
2118
  /**
2067
2119
  * @public
2068
2120
  */
2069
2121
  export declare interface TabListProps extends Omit<InlineProps, 'as' | 'height'> {
2070
- children: TabListChild[]
2122
+ children: Array<React.JSX.Element | null | undefined | false>
2071
2123
  }
2072
2124
 
2073
2125
  /**
2074
2126
  * @public
2075
2127
  */
2076
2128
  export declare const TabPanel: ForwardRefExoticComponent<
2077
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TabPanelProps> &
2078
- TabPanelProps &
2129
+ Omit<
2130
+ TabPanelProps & Omit<HTMLProps<HTMLDivElement>, 'id' | 'role' | 'aria-labelledby' | 'as'>,
2131
+ 'ref'
2132
+ > &
2079
2133
  RefAttributes<HTMLDivElement>
2080
2134
  >
2081
2135
 
@@ -2095,15 +2149,15 @@ export declare interface TabPanelProps extends BoxProps {
2095
2149
  */
2096
2150
  export declare interface TabProps {
2097
2151
  /**
2098
- * The `id` of the corresponding `TabPanel` component.
2152
+ * The `id` of the correlating `TabPanel` component.
2099
2153
  */
2100
2154
  'aria-controls': string
2101
2155
  'id': string
2102
- 'icon'?: ElementType | ReactNode
2156
+ 'icon'?: React.ElementType | React.ReactNode
2103
2157
  'focused'?: boolean
2104
- 'fontSize'?: ResponsiveProp<FontTextSize>
2105
- 'label'?: ReactNode
2106
- 'padding'?: ResponsiveProp<Space>
2158
+ 'fontSize'?: number | number[]
2159
+ 'label'?: React.ReactNode
2160
+ 'padding'?: number | number[]
2107
2161
  'selected'?: boolean
2108
2162
  'tone'?: ButtonTone
2109
2163
  }
@@ -2114,36 +2168,39 @@ export declare interface TabProps {
2114
2168
  * @public
2115
2169
  */
2116
2170
  declare const Text_2: ForwardRefExoticComponent<
2117
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TextProps> &
2118
- TextProps &
2171
+ Omit<TextProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>, 'ref'> &
2119
2172
  RefAttributes<HTMLDivElement>
2120
2173
  >
2121
2174
  export {Text_2 as Text}
2122
2175
 
2123
- export {TextAlign}
2176
+ /**
2177
+ * @public
2178
+ */
2179
+ export declare type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'initial'
2124
2180
 
2125
2181
  /**
2126
2182
  * A multiline text input.
2127
2183
  *
2184
+
2128
2185
  * @public
2129
2186
  */
2130
2187
  export declare const TextArea: ForwardRefExoticComponent<
2131
- Omit<ElementProps_2<'textarea'> & PolymorphicProps_2, keyof TextAreaProps> &
2132
- TextAreaProps &
2188
+ Omit<TextAreaProps & Omit<HTMLProps<HTMLTextAreaElement>, 'as'>, 'ref'> &
2133
2189
  RefAttributes<HTMLTextAreaElement>
2134
2190
  >
2135
2191
 
2136
2192
  /**
2137
2193
  * @public
2138
2194
  */
2139
- export declare interface TextAreaProps extends TextAreaStyleProps {
2195
+ export declare interface TextAreaProps extends ResponsiveRadiusProps {
2140
2196
  /**
2141
2197
  * @beta
2142
2198
  */
2143
2199
  __unstable_disableFocusRing?: boolean
2200
+ border?: boolean
2144
2201
  customValidity?: string
2145
- /** @deprecated Use `gap` instead. */
2146
- space?: ResponsiveProp<Space>
2202
+ fontSize?: number | number[]
2203
+ padding?: number | number[]
2147
2204
  weight?: ThemeFontWeightKey_2
2148
2205
  }
2149
2206
 
@@ -2153,42 +2210,42 @@ export declare interface TextAreaProps extends TextAreaStyleProps {
2153
2210
  * @public
2154
2211
  */
2155
2212
  export declare const TextInput: ForwardRefExoticComponent<
2156
- Omit<ElementProps_2<'input'> & PolymorphicProps_2, keyof TextInputProps> &
2157
- TextInputProps &
2213
+ Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'type' | 'prefix' | 'as'>, 'ref'> &
2158
2214
  RefAttributes<HTMLInputElement>
2159
2215
  >
2160
2216
 
2161
2217
  /**
2162
2218
  * @public
2163
2219
  */
2164
- export declare type TextInputClearButtonProps = Omit<
2165
- Props<ButtonProps, 'button'>,
2166
- 'as' | 'onClick' | 'onMouseDown'
2167
- >
2220
+ export declare type TextInputClearButtonProps = Omit<ButtonProps, 'as'> &
2221
+ Omit<React.HTMLProps<HTMLButtonElement>, 'as' | 'onClick' | 'onMouseDown' | 'ref'>
2168
2222
 
2169
2223
  /**
2170
2224
  * @public
2171
2225
  */
2172
- export declare interface TextInputProps extends InputStyleProps {
2226
+ export declare interface TextInputProps {
2173
2227
  /**
2174
2228
  * @beta
2175
2229
  */
2176
2230
  __unstable_disableFocusRing?: boolean
2231
+ border?: boolean
2177
2232
  /**
2178
2233
  * @beta
2179
2234
  */
2180
2235
  clearButton?: boolean | TextInputClearButtonProps
2181
2236
  customValidity?: string
2182
- icon?: ElementType | ReactNode
2183
- iconRight?: ElementType | ReactNode
2237
+ fontSize?: number | number[]
2238
+ icon?: React.ElementType | React.ReactNode
2239
+ iconRight?: React.ElementType | React.ReactNode
2184
2240
  /**
2185
2241
  * @beta
2186
2242
  */
2187
2243
  onClear?: () => void
2188
- prefix?: ReactNode
2189
- /** @deprecated Use `gap` instead. */
2190
- space?: ResponsiveProp<Space>
2191
- suffix?: ReactNode
2244
+ padding?: number | number[]
2245
+ prefix?: React.ReactNode
2246
+ radius?: Radius | Radius[]
2247
+ space?: number | number[]
2248
+ suffix?: React.ReactNode
2192
2249
  type?: TextInputType
2193
2250
  weight?: ThemeFontWeightKey_2
2194
2251
  }
@@ -2214,8 +2271,20 @@ export declare type TextInputType =
2214
2271
  /**
2215
2272
  * @public
2216
2273
  */
2217
- export declare interface TextProps extends TextStyleProps, TextOverflowStyleProps {
2218
- htmlFor?: string
2274
+ export declare interface TextProps {
2275
+ accent?: boolean
2276
+ align?: TextAlign | TextAlign[]
2277
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements
2278
+ /** When `true` the text color will be muted. */
2279
+ muted?: boolean
2280
+ size?: number | number[]
2281
+ /**
2282
+ * Controls how overflowing text is treated.
2283
+ * Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
2284
+ * @beta
2285
+ */
2286
+ textOverflow?: 'ellipsis'
2287
+ weight?: ThemeFontWeightKey_2
2219
2288
  }
2220
2289
 
2221
2290
  /**
@@ -2223,8 +2292,10 @@ export declare interface TextProps extends TextStyleProps, TextOverflowStyleProp
2223
2292
  * @beta
2224
2293
  */
2225
2294
  export declare const TextSkeleton: ForwardRefExoticComponent<
2226
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TextSkeletonProps> &
2227
- TextSkeletonProps &
2295
+ Omit<
2296
+ TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
2297
+ 'ref'
2298
+ > &
2228
2299
  RefAttributes<HTMLDivElement>
2229
2300
  >
2230
2301
 
@@ -2233,7 +2304,7 @@ export declare const TextSkeleton: ForwardRefExoticComponent<
2233
2304
  * @beta
2234
2305
  */
2235
2306
  export declare interface TextSkeletonProps extends SkeletonProps {
2236
- size?: ResponsiveProp<FontTextSize>
2307
+ size?: number | number[]
2237
2308
  }
2238
2309
 
2239
2310
  /**
@@ -2285,7 +2356,7 @@ export {ThemeColorName}
2285
2356
  /**
2286
2357
  * @public
2287
2358
  */
2288
- export declare function ThemeColorProvider(props: ThemeColorProviderProps): ReactElement
2359
+ export declare function ThemeColorProvider(props: ThemeColorProviderProps): React.JSX.Element
2289
2360
 
2290
2361
  export declare namespace ThemeColorProvider {
2291
2362
  var displayName: string
@@ -2295,7 +2366,7 @@ export declare namespace ThemeColorProvider {
2295
2366
  * @public
2296
2367
  */
2297
2368
  export declare interface ThemeColorProviderProps {
2298
- children?: ReactNode
2369
+ children?: React.ReactNode
2299
2370
  scheme?: ThemeColorSchemeKey_2
2300
2371
  tone?: ThemeColorCardToneKey
2301
2372
  }
@@ -2387,10 +2458,17 @@ export {ThemeInput}
2387
2458
  */
2388
2459
  export declare type ThemeLayer = ThemeLayer_2
2389
2460
 
2461
+ /**
2462
+ * @internal
2463
+ */
2464
+ export declare interface ThemeProps {
2465
+ theme: Theme_2
2466
+ }
2467
+
2390
2468
  /**
2391
2469
  * @public
2392
2470
  */
2393
- export declare function ThemeProvider(props: ThemeProviderProps): ReactElement
2471
+ export declare function ThemeProvider(props: ThemeProviderProps): React.JSX.Element
2394
2472
 
2395
2473
  export declare namespace ThemeProvider {
2396
2474
  var displayName: string
@@ -2400,7 +2478,7 @@ export declare namespace ThemeProvider {
2400
2478
  * @public
2401
2479
  */
2402
2480
  export declare interface ThemeProviderProps {
2403
- children?: ReactNode
2481
+ children?: React.ReactNode
2404
2482
  scheme?: ThemeColorSchemeKey_2
2405
2483
  theme?: RootTheme_2
2406
2484
  tone?: ThemeColorCardToneKey
@@ -2420,11 +2498,19 @@ export declare type ThemeShadow = ThemeShadow_2
2420
2498
  * @public
2421
2499
  */
2422
2500
  export declare function Toast(
2423
- props: Omit<
2424
- Props<ToastProps, 'div'>,
2425
- 'onDrag' | 'onDragEnd' | 'onDragStart' | 'onAnimationStart'
2426
- >,
2427
- ): ReactElement
2501
+ props: ToastProps &
2502
+ Omit<
2503
+ React.HTMLProps<HTMLDivElement>,
2504
+ | 'as'
2505
+ | 'height'
2506
+ | 'ref'
2507
+ | 'title'
2508
+ | 'onAnimationStart'
2509
+ | 'onDragStart'
2510
+ | 'onDragEnd'
2511
+ | 'onDrag'
2512
+ >,
2513
+ ): React.JSX.Element
2428
2514
 
2429
2515
  export declare namespace Toast {
2430
2516
  var displayName: string
@@ -2447,8 +2533,12 @@ export declare interface ToastContextValue {
2447
2533
  /**
2448
2534
  * @public
2449
2535
  */
2450
- declare interface ToastLayerProps extends GapStyleProps, PaddingStyleProps {
2451
- children: ReactNode
2536
+ declare interface ToastLayerProps {
2537
+ children: React.ReactNode
2538
+ padding?: number | number[]
2539
+ paddingX?: number | number[]
2540
+ paddingY?: number | number[]
2541
+ gap?: number | number[]
2452
2542
  }
2453
2543
 
2454
2544
  /**
@@ -2456,22 +2546,23 @@ declare interface ToastLayerProps extends GapStyleProps, PaddingStyleProps {
2456
2546
  */
2457
2547
  export declare interface ToastParams {
2458
2548
  closable?: boolean
2459
- description?: ReactNode
2549
+ description?: React.ReactNode
2460
2550
  duration?: number
2461
2551
  id?: string
2462
2552
  onClose?: () => void
2463
- title?: ReactNode
2553
+ title?: React.ReactNode
2464
2554
  status?: 'error' | 'warning' | 'success' | 'info'
2465
2555
  }
2466
2556
 
2467
2557
  /**
2468
2558
  * @public
2469
2559
  */
2470
- export declare interface ToastProps extends RadiusStyleProps {
2560
+ export declare interface ToastProps {
2471
2561
  closable?: boolean
2472
- description?: ReactNode
2473
- onClose?: () => void
2474
- title?: ReactNode
2562
+ description?: React.ReactNode
2563
+ onClose: () => void
2564
+ radius?: number | number[]
2565
+ title?: React.ReactNode
2475
2566
  status?: 'error' | 'warning' | 'success' | 'info'
2476
2567
  duration?: number
2477
2568
  updatedAt?: number
@@ -2500,8 +2591,7 @@ export declare interface ToastProviderProps extends Omit<ToastLayerProps, 'child
2500
2591
  * @public
2501
2592
  */
2502
2593
  export declare const Tooltip: ForwardRefExoticComponent<
2503
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TooltipProps> &
2504
- TooltipProps &
2594
+ Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, 'content' | 'children' | 'as'>, 'ref'> &
2505
2595
  RefAttributes<HTMLDivElement>
2506
2596
  >
2507
2597
 
@@ -2528,7 +2618,7 @@ export declare interface TooltipDelayGroupContextValue {
2528
2618
  */
2529
2619
  export declare function TooltipDelayGroupProvider(
2530
2620
  props: TooltipDelayGroupProviderProps,
2531
- ): ReactElement
2621
+ ): React.JSX.Element
2532
2622
 
2533
2623
  export declare namespace TooltipDelayGroupProvider {
2534
2624
  var displayName: string
@@ -2538,7 +2628,7 @@ export declare namespace TooltipDelayGroupProvider {
2538
2628
  * @public
2539
2629
  * */
2540
2630
  export declare interface TooltipDelayGroupProviderProps {
2541
- children?: ReactNode
2631
+ children?: React.ReactNode
2542
2632
  /**
2543
2633
  * Handles the delays to open or close a tooltip inside a group
2544
2634
  *
@@ -2554,23 +2644,22 @@ export declare interface TooltipDelayGroupProviderProps {
2554
2644
  /**
2555
2645
  * @public
2556
2646
  */
2557
- export declare interface TooltipProps
2558
- extends Omit<LayerProps, 'as'>,
2559
- RadiusStyleProps,
2560
- ShadowStyleProps {
2647
+ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
2561
2648
  /** @deprecated Use `fallbackPlacements` instead. */
2562
2649
  allowedAutoPlacements?: Placement[]
2563
- /**
2564
- * Whether the tooltip should animate in and out.
2565
- *
2566
- * @beta
2567
- * @defaultValue false
2568
- */
2569
- animate?: boolean
2570
2650
  arrow?: boolean
2571
2651
  boundaryElement?: HTMLElement | null
2572
- children?: ReactElement<Props>
2573
- content?: ReactNode
2652
+ children?: React.JSX.Element
2653
+ content?: React.ReactNode
2654
+ disabled?: boolean
2655
+ fallbackPlacements?: Placement[]
2656
+ padding?: number | number[]
2657
+ placement?: Placement
2658
+ /** Whether or not to render the tooltip in a portal element. */
2659
+ portal?: boolean | string
2660
+ radius?: number | number[]
2661
+ scheme?: ThemeColorSchemeKey_2
2662
+ shadow?: number | number[]
2574
2663
  /**
2575
2664
  * Adds a delay to open or close the tooltip.
2576
2665
  *
@@ -2582,13 +2671,13 @@ export declare interface TooltipProps
2582
2671
  * @defaultValue 0
2583
2672
  */
2584
2673
  delay?: Delay
2585
- disabled?: boolean
2586
- fallbackPlacements?: Placement[]
2587
- placement?: Placement
2588
- /** Whether or not to render the tooltip in a portal element. */
2589
- portal?: boolean | string
2590
- scheme?: ThemeColorSchemeKey_2
2591
- tone?: ThemeColorCardToneKey
2674
+ /**
2675
+ * Whether the tooltip should animate in and out.
2676
+ *
2677
+ * @beta
2678
+ * @defaultValue false
2679
+ */
2680
+ animate?: boolean
2592
2681
  }
2593
2682
 
2594
2683
  /**
@@ -2596,8 +2685,8 @@ export declare interface TooltipProps
2596
2685
  * @beta
2597
2686
  */
2598
2687
  export declare const Tree: NamedExoticComponent<
2599
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof TreeProps> &
2600
- TreeProps &
2688
+ TreeProps &
2689
+ Omit<HTMLProps<HTMLDivElement>, 'height' | 'wrap' | 'ref' | 'role' | 'as' | 'align'> &
2601
2690
  RefAttributes<HTMLDivElement>
2602
2691
  >
2603
2692
 
@@ -2612,7 +2701,7 @@ export declare interface TreeContextValue {
2612
2701
  registerItem: (element: HTMLElement, path: string, expanded: boolean, selected: boolean) => void
2613
2702
  setExpanded: (path: string, expanded: boolean) => void
2614
2703
  setFocusedElement: (focusedElement: HTMLElement | null) => void
2615
- space: ResponsiveProp<Space>
2704
+ space: number | number[]
2616
2705
  state: TreeState
2617
2706
  }
2618
2707
 
@@ -2620,22 +2709,24 @@ export declare interface TreeContextValue {
2620
2709
  * This API might change. DO NOT USE IN PRODUCTION.
2621
2710
  * @beta
2622
2711
  */
2623
- export declare const TreeItem: NamedExoticComponent<Omit<Props<TreeItemProps, 'div'>, 'as'>>
2712
+ export declare const TreeItem: NamedExoticComponent<
2713
+ TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'ref' | 'role' | 'as'>
2714
+ >
2624
2715
 
2625
2716
  /**
2626
2717
  * @beta
2627
2718
  */
2628
- export declare interface TreeItemProps extends CardProps {
2719
+ export declare interface TreeItemProps {
2629
2720
  expanded?: boolean
2630
- fontSize?: ResponsiveProp<FontTextSize>
2631
- icon?: ElementType
2721
+ fontSize?: number | number[]
2722
+ icon?: React.ElementType
2632
2723
  /**
2633
2724
  * Allows passing a custom element type to the link component
2634
2725
  */
2635
- linkAs?: ElementType
2636
- padding?: ResponsiveProp<Space>
2637
- space?: ResponsiveProp<Space>
2638
- text?: ReactNode
2726
+ linkAs?: BoxProps['as']
2727
+ padding?: number | number[]
2728
+ space?: number | number[]
2729
+ text?: React.ReactNode
2639
2730
  weight?: ThemeFontWeightKey_2
2640
2731
  }
2641
2732
 
@@ -2643,9 +2734,8 @@ export declare interface TreeItemProps extends CardProps {
2643
2734
  * This API might change. DO NOT USE IN PRODUCTION.
2644
2735
  * @beta
2645
2736
  */
2646
- export declare interface TreeProps extends Pick<GapStyleProps, 'gap'> {
2647
- /** @deprecated Use `gap` instead. */
2648
- space?: ResponsiveProp<Space>
2737
+ export declare interface TreeProps {
2738
+ space?: number | number[]
2649
2739
  }
2650
2740
 
2651
2741
  /**
@@ -2660,20 +2750,20 @@ export declare interface TreeState {
2660
2750
  | undefined
2661
2751
  }
2662
2752
 
2663
- /** @beta */
2664
2753
  /**
2665
2754
  * This API might change. DO NOT USE IN PRODUCTION.
2666
2755
  * @beta
2667
2756
  */
2668
- export declare function useArrayProp<T>(val: T | T[] | undefined, defaultVal?: T[]): T[]
2757
+ export declare function useArrayProp<T extends ArrayPropPrimitive = ArrayPropPrimitive>(
2758
+ val: T | T[] | undefined,
2759
+ defaultVal?: T[],
2760
+ ): T[]
2669
2761
 
2670
2762
  /**
2671
2763
  * @public
2672
2764
  */
2673
2765
  export declare function useBoundaryElement(): BoundaryElementContextValue
2674
2766
 
2675
- export declare function useCard(): CardContextValue_2 | null
2676
-
2677
2767
  /**
2678
2768
  * @public
2679
2769
  * @deprecated replaced by the new `useClickOutsideEvent` hook, instead of:
@@ -2746,7 +2836,9 @@ export declare function useElementSize(element: HTMLElement | null): ElementSize
2746
2836
  * +useImperativeHandle(forwardedRef, () => ref.current)
2747
2837
  * ```
2748
2838
  */
2749
- export declare function useForwardedRef<T>(ref: ForwardedRef<T>): MutableRefObject<T | null>
2839
+ export declare function useForwardedRef<T>(
2840
+ ref: React.ForwardedRef<T>,
2841
+ ): React.MutableRefObject<T | null>
2750
2842
 
2751
2843
  /**
2752
2844
  * @beta
@@ -2761,7 +2853,7 @@ export declare function useLayer(): LayerContextValue
2761
2853
  /**
2762
2854
  * Efficiently subscribes to `window.matchMedia` queries
2763
2855
  *
2764
- * @param getServerSnapshot - Only called during server-side rendering, and hydration if using hydrateRoot. Required if the hook is called during SSR (https://dev/reference/react/useSyncExternalStore#adding-support-for-server-rendering)
2856
+ * @param getServerSnapshot - Only called during server-side rendering, and hydration if using hydrateRoot. Required if the hook is called during SSR (https://react.dev/reference/react/useSyncExternalStore#adding-support-for-server-rendering)
2765
2857
  *
2766
2858
  * @public
2767
2859
  */
@@ -2784,7 +2876,7 @@ export declare function usePortal(): PortalContextValue
2784
2876
  /**
2785
2877
  * Returns true if a dark color scheme is preferred, false if a light color scheme is preferred or the preference is not known.
2786
2878
  *
2787
- * @param getServerSnapshot - Only called during server-side rendering, and hydration if using hydrateRoot. Since the server environment doesn't have access to the DOM, we can't determine the current value of the media query and we assume `(prefers-color-scheme: light)` since it's the most common scheme (https://dev/reference/react/useSyncExternalStore#adding-support-for-server-rendering)
2879
+ * @param getServerSnapshot - Only called during server-side rendering, and hydration if using hydrateRoot. Since the server environment doesn't have access to the DOM, we can't determine the current value of the media query and we assume `(prefers-color-scheme: light)` since it's the most common scheme (https://react.dev/reference/react/useSyncExternalStore#adding-support-for-server-rendering)
2788
2880
  *
2789
2881
  * If you persist the detected preference in a cookie or a header then you may implement your own server snapshot to read it.
2790
2882
  * Chrome supports reading the `prefers-color-scheme` media query from a header if the server response: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Color-Scheme
@@ -2797,7 +2889,7 @@ export declare function usePrefersDark(getServerSnapshot?: () => boolean): boole
2797
2889
  /**
2798
2890
  * Returns true if motion should be reduced
2799
2891
  *
2800
- * @param getServerSnapshot - Only called during server-side rendering, and hydration if using hydrateRoot. Since the server environment doesn't have access to the DOM, we can't determine the current value of the media query and we assume `(prefers-reduced-motion: no-preference)` since it's the most common scheme (https://dev/reference/react/useSyncExternalStore#adding-support-for-server-rendering)
2892
+ * @param getServerSnapshot - Only called during server-side rendering, and hydration if using hydrateRoot. Since the server environment doesn't have access to the DOM, we can't determine the current value of the media query and we assume `(prefers-reduced-motion: no-preference)` since it's the most common scheme (https://react.dev/reference/react/useSyncExternalStore#adding-support-for-server-rendering)
2801
2893
  *
2802
2894
  * If you persist the detected preference in a cookie or a header then you may implement your own server snapshot to read it.
2803
2895
  * Chrome supports reading the `prefers-reduced-motion` media query from a header if the server response: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Motion
@@ -2841,8 +2933,9 @@ export declare function useTree(): TreeContextValue
2841
2933
  * @beta
2842
2934
  */
2843
2935
  export declare const VirtualList: ForwardRefExoticComponent<
2844
- Omit<ElementProps_2<'div'> & PolymorphicProps_2, keyof VirtualListProps<any>> &
2845
- VirtualListProps<any> &
2936
+ VirtualListProps<any> &
2937
+ StackProps &
2938
+ Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref' | 'onChange' | 'as'> &
2846
2939
  RefAttributes<HTMLDivElement>
2847
2940
  >
2848
2941
 
@@ -2861,12 +2954,13 @@ export declare interface VirtualListChangeOpts {
2861
2954
  /**
2862
2955
  * @beta
2863
2956
  */
2864
- export declare interface VirtualListProps<Item = any> extends Omit<StackProps, 'gap'> {
2957
+ export declare interface VirtualListProps<Item = any> {
2958
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements
2865
2959
  gap?: number
2866
2960
  getItemKey?: (item: Item, itemIndex: number) => string
2867
2961
  items?: Item[]
2868
2962
  onChange?: (opts: VirtualListChangeOpts) => void
2869
- renderItem?: (item: Item) => ReactNode
2963
+ renderItem?: (item: Item) => React.ReactNode
2870
2964
  }
2871
2965
 
2872
2966
  export {}