@sanity/ui 3.0.0-static.0 → 3.0.0-static.10

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