@sanity/ui 3.0.0-static.20 → 3.0.0-static.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (500) hide show
  1. package/README.md +2 -1
  2. package/dist/_chunks-cjs/_visual-editing.cjs +198 -862
  3. package/dist/_chunks-cjs/_visual-editing.cjs.map +1 -1
  4. package/dist/_chunks-cjs/refractor.cjs +0 -1
  5. package/dist/_chunks-cjs/refractor.cjs.map +1 -1
  6. package/dist/_chunks-es/_visual-editing.js +211 -874
  7. package/dist/_chunks-es/_visual-editing.js.map +1 -1
  8. package/dist/_chunks-es/refractor.js +0 -1
  9. package/dist/_chunks-es/refractor.js.map +1 -1
  10. package/dist/_visual-editing.d.cts +34 -100
  11. package/dist/_visual-editing.d.ts +34 -100
  12. package/dist/css.cjs +368 -4123
  13. package/dist/css.cjs.map +1 -1
  14. package/dist/css.d.cts +13095 -8462
  15. package/dist/css.d.ts +13095 -8462
  16. package/dist/css.js +368 -4124
  17. package/dist/css.js.map +1 -1
  18. package/dist/index.cjs +769 -141
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +93 -287
  21. package/dist/index.d.ts +93 -287
  22. package/dist/index.js +740 -112
  23. package/dist/index.js.map +1 -1
  24. package/dist/theme.cjs +31 -10
  25. package/dist/theme.cjs.map +1 -1
  26. package/dist/theme.d.cts +2 -2
  27. package/dist/theme.d.ts +2 -2
  28. package/dist/theme.js +31 -10
  29. package/dist/theme.js.map +1 -1
  30. package/dist/ui.css +21459 -24610
  31. package/package.json +17 -12
  32. package/src/cli/buildCommand.ts +1 -91
  33. package/src/core/_compat/theme/themeColorProvider.tsx +0 -2
  34. package/src/core/_compat/theme/themeProvider.tsx +0 -2
  35. package/src/core/components/autocomplete/autocomplete.tsx +15 -15
  36. package/src/core/components/autocomplete/autocompleteOption.tsx +0 -2
  37. package/src/core/components/breadcrumbs/breadcrumbs.tsx +2 -4
  38. package/src/core/components/dialog/dialog.tsx +9 -13
  39. package/src/core/components/dialog/dialogCard.tsx +2 -10
  40. package/src/core/components/dialog/dialogContext.ts +4 -2
  41. package/src/core/components/dialog/dialogProvider.tsx +3 -4
  42. package/src/core/components/hotkeys/hotkeys.tsx +0 -2
  43. package/src/core/components/menu/menu.tsx +2 -4
  44. package/src/core/components/menu/menuButton.tsx +0 -2
  45. package/src/core/components/menu/menuDivider.tsx +2 -4
  46. package/src/core/components/menu/menuGroup.tsx +0 -2
  47. package/src/core/components/menu/menuItem.tsx +2 -4
  48. package/src/core/components/skeleton/codeSkeleton.tsx +6 -10
  49. package/src/core/components/skeleton/headingSkeleton.tsx +6 -10
  50. package/src/core/components/skeleton/labelSkeleton.tsx +6 -10
  51. package/src/core/components/skeleton/skeleton.tsx +4 -8
  52. package/src/core/components/skeleton/textSkeleton.tsx +6 -10
  53. package/src/core/components/tab/tab.tsx +0 -2
  54. package/src/core/components/tab/tabList.tsx +0 -2
  55. package/src/core/components/tab/tabPanel.tsx +0 -2
  56. package/src/core/components/toast/toast.tsx +6 -36
  57. package/src/core/components/toast/toastLayer.tsx +0 -2
  58. package/src/core/components/toast/toastProvider.tsx +2 -3
  59. package/src/core/components/tree/tree.tsx +0 -2
  60. package/src/core/components/tree/treeGroup.tsx +0 -2
  61. package/src/core/components/tree/treeItem.tsx +3 -5
  62. package/src/core/helpers/props.ts +18 -0
  63. package/src/core/hooks/index.ts +1 -0
  64. package/src/core/hooks/useArrayProp.ts +1 -4
  65. package/src/core/hooks/useResponsiveProp.ts +28 -0
  66. package/src/core/index.ts +0 -1
  67. package/src/core/lib/isArray.ts +3 -0
  68. package/src/core/primitives/_selectable/selectable.tsx +2 -6
  69. package/src/core/primitives/avatar/avatar.tsx +15 -17
  70. package/src/core/primitives/avatar/avatarCounter.tsx +14 -15
  71. package/src/core/primitives/avatar/avatarStack.tsx +14 -22
  72. package/src/core/primitives/badge/badge.tsx +3 -10
  73. package/src/core/primitives/box/box.tsx +90 -70
  74. package/src/core/primitives/button/button.tsx +10 -21
  75. package/src/core/primitives/card/card.tsx +5 -11
  76. package/src/core/primitives/card/cardProvider.tsx +2 -2
  77. package/src/core/primitives/card/useCard.ts +1 -0
  78. package/src/core/primitives/checkbox/checkbox.tsx +4 -6
  79. package/src/core/primitives/code/code.tsx +5 -10
  80. package/src/core/primitives/code/refractor.tsx +0 -2
  81. package/src/core/primitives/container/container.tsx +2 -11
  82. package/src/core/primitives/flex/flex.tsx +29 -4
  83. package/src/core/primitives/grid/grid.tsx +0 -2
  84. package/src/core/primitives/heading/heading.tsx +8 -13
  85. package/src/core/primitives/inline/inline.tsx +22 -6
  86. package/src/core/primitives/kbd/kbd.tsx +2 -4
  87. package/src/core/primitives/label/label.tsx +7 -12
  88. package/src/core/primitives/popover/popover.tsx +11 -9
  89. package/src/core/primitives/popover/popoverLayer.tsx +1 -3
  90. package/src/core/primitives/radio/radio.tsx +4 -5
  91. package/src/core/primitives/select/select.tsx +0 -2
  92. package/src/core/primitives/spinner/animatedSpinnerIcon.tsx +6 -10
  93. package/src/core/primitives/spinner/spinner.tsx +6 -6
  94. package/src/core/primitives/stack/stack.tsx +16 -6
  95. package/src/core/primitives/switch/switch.tsx +1 -4
  96. package/src/core/primitives/text/text.tsx +9 -19
  97. package/src/core/primitives/textArea/textArea.tsx +0 -2
  98. package/src/core/primitives/textInput/textInput.tsx +40 -47
  99. package/src/core/primitives/tooltip/tooltip.tsx +4 -12
  100. package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +0 -2
  101. package/src/core/primitives/tooltip/tooltipLayer.tsx +0 -2
  102. package/src/core/primitives/types.ts +6 -6
  103. package/src/core/types/flex.ts +3 -3
  104. package/src/core/utils/arrow/arrow.tsx +11 -5
  105. package/src/core/utils/boundaryElement/boundaryElementProvider.tsx +0 -2
  106. package/src/core/utils/elementQuery/elementQuery.tsx +0 -2
  107. package/src/core/utils/layer/layer.tsx +3 -3
  108. package/src/core/utils/layer/layerCard.tsx +0 -2
  109. package/src/core/utils/layer/layerProvider.tsx +6 -7
  110. package/src/core/utils/portal/portal.tsx +0 -2
  111. package/src/core/utils/portal/portalProvider.tsx +0 -2
  112. package/src/core/utils/srOnly/srOnly.tsx +2 -9
  113. package/src/core/utils/virtualList/virtualList.tsx +0 -2
  114. package/src/css/__theme/index.ts +16 -0
  115. package/src/css/__theme/lib/contract/buildVarContract.ts +78 -0
  116. package/src/css/__theme/lib/contract/index.ts +4 -0
  117. package/src/css/__theme/lib/contract/types.ts +17 -0
  118. package/src/css/__theme/resolveTheme.ts +865 -0
  119. package/src/css/_responsiveClassName.ts +45 -0
  120. package/src/css/_responsiveStyle.css.ts +34 -0
  121. package/src/css/_style.css.ts +9 -0
  122. package/src/css/components/breadcrumbs/breadcrumbs.css.ts +6 -0
  123. package/src/css/components/breadcrumbs/breadcrumbs.ts +4 -3
  124. package/src/css/components/dialog/dialog.css.ts +81 -0
  125. package/src/css/components/dialog/dialog.ts +12 -12
  126. package/src/css/components/index.ts +6 -0
  127. package/src/css/components/menu/menu.css.ts +14 -0
  128. package/src/css/components/menu/menu.ts +6 -5
  129. package/src/css/components/skeleton/skeleton.css.ts +132 -0
  130. package/src/css/components/skeleton/skeleton.ts +8 -8
  131. package/src/css/components/skeleton/types.ts +9 -3
  132. package/src/css/components/toast/toast.css.ts +16 -0
  133. package/src/css/components/toast/toast.ts +3 -18
  134. package/src/css/components/tree/tree.css.ts +65 -0
  135. package/src/css/components/tree/tree.ts +4 -3
  136. package/src/css/defaultTheme.css.ts +468 -0
  137. package/src/css/index.ts +11 -37
  138. package/src/css/layers.css.ts +9 -0
  139. package/src/css/primitives/_arrow/_arrow.css.ts +68 -0
  140. package/src/css/primitives/_arrow/_arrow.ts +10 -5
  141. package/src/css/primitives/_input/_input.css.ts +258 -0
  142. package/src/css/primitives/_input/input.ts +10 -12
  143. package/src/css/primitives/_input/types.ts +1 -1
  144. package/src/css/primitives/_selectable/_selectable.css.ts +121 -0
  145. package/src/css/primitives/_selectable/selectable.ts +3 -3
  146. package/src/css/primitives/_selectable/types.ts +2 -1
  147. package/src/css/primitives/avatar/avatar.css.ts +175 -0
  148. package/src/css/primitives/avatar/avatar.ts +45 -10
  149. package/src/css/primitives/avatar/types.ts +1 -0
  150. package/src/css/primitives/badge/badge.css.ts +26 -0
  151. package/src/css/primitives/badge/badge.ts +2 -6
  152. package/src/css/primitives/badge/types.ts +4 -3
  153. package/src/css/primitives/box/box.css.ts +19 -0
  154. package/src/css/primitives/box/box.ts +39 -9
  155. package/src/css/primitives/box/types.ts +35 -8
  156. package/src/css/primitives/button/button.css.ts +285 -0
  157. package/src/css/primitives/button/button.ts +10 -7
  158. package/src/css/primitives/button/types.ts +10 -4
  159. package/src/css/primitives/card/card.css.ts +365 -0
  160. package/src/css/primitives/card/card.ts +5 -4
  161. package/src/css/primitives/card/types.ts +2 -3
  162. package/src/css/primitives/checkbox/checkbox.css.ts +193 -0
  163. package/src/css/primitives/checkbox/checkbox.ts +11 -5
  164. package/src/css/primitives/code/code.css.ts +271 -0
  165. package/src/css/primitives/code/code.ts +8 -4
  166. package/src/css/primitives/code/types.ts +3 -2
  167. package/src/css/primitives/container/container.css.ts +4 -0
  168. package/src/css/primitives/container/container.ts +9 -3
  169. package/src/css/primitives/container/types.ts +1 -0
  170. package/src/css/primitives/heading/heading.css.ts +85 -0
  171. package/src/css/primitives/heading/heading.ts +9 -10
  172. package/src/css/primitives/heading/types.ts +3 -2
  173. package/src/css/primitives/index.ts +24 -0
  174. package/src/css/primitives/kbd/kbd.css.ts +16 -0
  175. package/src/css/primitives/kbd/kbd.ts +3 -3
  176. package/src/css/primitives/kbd/types.ts +2 -3
  177. package/src/css/primitives/label/label.css.ts +85 -0
  178. package/src/css/primitives/label/label.ts +9 -4
  179. package/src/css/primitives/label/types.ts +3 -2
  180. package/src/css/primitives/popover/popover.css.ts +6 -0
  181. package/src/css/primitives/popover/popover.ts +6 -5
  182. package/src/css/primitives/radio/radio.css.ts +78 -0
  183. package/src/css/primitives/radio/radio.ts +14 -3
  184. package/src/css/primitives/select/select.css.ts +24 -0
  185. package/src/css/primitives/select/select.ts +3 -3
  186. package/src/css/primitives/spinner/index.ts +1 -0
  187. package/src/css/primitives/spinner/spinner.css.ts +23 -0
  188. package/src/css/primitives/spinner/spinner.ts +7 -5
  189. package/src/css/primitives/spinner/types.ts +4 -0
  190. package/src/css/primitives/stack/stack.css.ts +6 -0
  191. package/src/css/primitives/stack/stack.ts +4 -3
  192. package/src/css/primitives/switch/switch.css.ts +98 -0
  193. package/src/css/primitives/switch/switch.ts +8 -7
  194. package/src/css/primitives/text/text.css.ts +85 -0
  195. package/src/css/primitives/text/text.ts +9 -5
  196. package/src/css/primitives/text/types.ts +3 -2
  197. package/src/css/primitives/textArea/textArea.css.ts +4 -0
  198. package/src/css/primitives/textArea/textArea.ts +2 -2
  199. package/src/css/primitives/textArea/types.ts +4 -2
  200. package/src/css/primitives/textInput/textInput.css.ts +41 -0
  201. package/src/css/primitives/textInput/textInput.ts +5 -5
  202. package/src/css/primitives/textInput/types.ts +4 -2
  203. package/src/css/primitives/tooltip/index.ts +1 -0
  204. package/src/css/primitives/tooltip/tooltip.css.ts +6 -0
  205. package/src/css/primitives/tooltip/tooltip.ts +7 -3
  206. package/src/css/primitives/tooltip/types.ts +4 -0
  207. package/src/css/props/alignItems/alignItems.css.ts +22 -0
  208. package/src/css/props/alignItems/alignItems.ts +8 -0
  209. package/src/css/props/alignItems/index.ts +2 -0
  210. package/src/css/props/alignItems/types.ts +9 -0
  211. package/src/css/props/border/border.css.ts +65 -0
  212. package/src/css/props/border/border.ts +36 -0
  213. package/src/css/props/border/types.ts +13 -0
  214. package/src/css/props/boxSizing/boxSizing.css.ts +11 -0
  215. package/src/css/props/boxSizing/boxSizing.ts +10 -0
  216. package/src/css/{aspects → props}/boxSizing/types.ts +1 -3
  217. package/src/css/props/display/display.css.ts +56 -0
  218. package/src/css/props/display/display.ts +17 -0
  219. package/src/css/props/flex/flex.css.ts +52 -0
  220. package/src/css/props/flex/flex.ts +8 -0
  221. package/src/css/props/flex/types.ts +9 -0
  222. package/src/css/props/flexDirection/flexDirection.css.ts +19 -0
  223. package/src/css/props/flexDirection/flexDirection.ts +8 -0
  224. package/src/css/props/flexDirection/index.ts +2 -0
  225. package/src/css/props/flexDirection/types.ts +9 -0
  226. package/src/css/props/flexWrap/flexWrap.css.ts +16 -0
  227. package/src/css/props/flexWrap/flexWrap.ts +8 -0
  228. package/src/css/props/flexWrap/index.ts +2 -0
  229. package/src/css/props/flexWrap/types.ts +9 -0
  230. package/src/css/props/font/font.css.ts +93 -0
  231. package/src/css/props/font/font.ts +8 -0
  232. package/src/css/props/gap/gap.css.ts +40 -0
  233. package/src/css/props/gap/gap.ts +13 -0
  234. package/src/css/props/gridAutoColumns/gridAutoColumns.css.ts +19 -0
  235. package/src/css/props/gridAutoColumns/gridAutoColumns.ts +8 -0
  236. package/src/css/props/gridAutoColumns/index.ts +2 -0
  237. package/src/css/props/gridAutoColumns/types.ts +19 -0
  238. package/src/css/props/gridAutoFlow/gridAutoFlow.css.ts +19 -0
  239. package/src/css/props/gridAutoFlow/gridAutoFlow.ts +8 -0
  240. package/src/css/props/gridAutoFlow/index.ts +2 -0
  241. package/src/css/props/gridAutoFlow/types.ts +13 -0
  242. package/src/css/props/gridAutoRows/gridAutoRows.css.ts +19 -0
  243. package/src/css/props/gridAutoRows/gridAutoRows.ts +8 -0
  244. package/src/css/props/gridAutoRows/index.ts +2 -0
  245. package/src/css/props/gridAutoRows/types.ts +13 -0
  246. package/src/css/props/gridColumn/gridColumn.css.ts +49 -0
  247. package/src/css/props/gridColumn/gridColumn.ts +8 -0
  248. package/src/css/props/gridColumn/index.ts +2 -0
  249. package/src/css/props/gridColumn/types.ts +19 -0
  250. package/src/css/props/gridColumnEnd/gridColumnEnd.css.ts +46 -0
  251. package/src/css/props/gridColumnEnd/gridColumnEnd.ts +8 -0
  252. package/src/css/props/gridColumnEnd/index.ts +2 -0
  253. package/src/css/props/gridColumnEnd/types.ts +19 -0
  254. package/src/css/props/gridColumnStart/gridColumnStart.css.ts +46 -0
  255. package/src/css/props/gridColumnStart/gridColumnStart.ts +11 -0
  256. package/src/css/props/gridColumnStart/index.ts +2 -0
  257. package/src/css/props/gridColumnStart/types.ts +19 -0
  258. package/src/css/props/gridRow/gridRow.css.ts +49 -0
  259. package/src/css/props/gridRow/gridRow.ts +8 -0
  260. package/src/css/props/gridRow/index.ts +2 -0
  261. package/src/css/props/gridRow/types.ts +19 -0
  262. package/src/css/props/gridRowEnd/gridRowEnd.css.ts +46 -0
  263. package/src/css/props/gridRowEnd/gridRowEnd.ts +8 -0
  264. package/src/css/props/gridRowEnd/index.ts +2 -0
  265. package/src/css/props/gridRowEnd/types.ts +19 -0
  266. package/src/css/props/gridRowStart/gridRowStart.css.ts +46 -0
  267. package/src/css/props/gridRowStart/gridRowStart.ts +8 -0
  268. package/src/css/props/gridRowStart/index.ts +2 -0
  269. package/src/css/props/gridRowStart/types.ts +19 -0
  270. package/src/css/props/gridTemplateColumns/gridTemplateColumns.css.ts +43 -0
  271. package/src/css/props/gridTemplateColumns/gridTemplateColumns.ts +8 -0
  272. package/src/css/props/gridTemplateColumns/index.ts +2 -0
  273. package/src/css/props/gridTemplateColumns/types.ts +19 -0
  274. package/src/css/props/gridTemplateRows/gridTemplateRows.css.ts +43 -0
  275. package/src/css/props/gridTemplateRows/gridTemplateRows.ts +8 -0
  276. package/src/css/props/gridTemplateRows/index.ts +2 -0
  277. package/src/css/props/gridTemplateRows/types.ts +19 -0
  278. package/src/css/props/height/height.css.ts +25 -0
  279. package/src/css/props/height/height.ts +8 -0
  280. package/src/css/{aspects → props}/height/index.ts +1 -0
  281. package/src/css/props/height/types.ts +15 -0
  282. package/src/css/{aspects → props}/index.ts +16 -3
  283. package/src/css/props/inset/inset.css.ts +37 -0
  284. package/src/css/props/inset/inset.ts +21 -0
  285. package/src/css/props/justifyContent/index.ts +2 -0
  286. package/src/css/props/justifyContent/justifyContent.css.ts +25 -0
  287. package/src/css/props/justifyContent/justifyContent.ts +8 -0
  288. package/src/css/props/justifyContent/types.ts +15 -0
  289. package/src/css/props/margin/margin.css.ts +117 -0
  290. package/src/css/props/margin/margin.ts +25 -0
  291. package/src/css/props/maxWidth/maxWidth.css.ts +32 -0
  292. package/src/css/props/maxWidth/maxWidth.ts +8 -0
  293. package/src/css/{aspects → props}/maxWidth/types.ts +4 -1
  294. package/src/css/props/minHeight/minHeight.css.ts +13 -0
  295. package/src/css/props/minHeight/minHeight.ts +8 -0
  296. package/src/css/props/minWidth/minWidth.css.ts +25 -0
  297. package/src/css/props/minWidth/minWidth.ts +8 -0
  298. package/src/css/props/outline/index.ts +2 -0
  299. package/src/css/props/outline/outline.css.ts +10 -0
  300. package/src/css/props/outline/outline.ts +8 -0
  301. package/src/css/props/outline/types.ts +7 -0
  302. package/src/css/props/overflow/overflow.css.ts +16 -0
  303. package/src/css/props/overflow/overflow.ts +8 -0
  304. package/src/css/props/overflow/types.ts +17 -0
  305. package/src/css/props/padding/padding.css.ts +87 -0
  306. package/src/css/props/padding/padding.ts +25 -0
  307. package/src/css/props/padding/types.ts +17 -0
  308. package/src/css/props/pointerEvents/pointerEvents.css.ts +13 -0
  309. package/src/css/props/pointerEvents/pointerEvents.ts +8 -0
  310. package/src/css/props/position/position.css.ts +22 -0
  311. package/src/css/props/position/position.ts +8 -0
  312. package/src/css/props/radius/radius.css.ts +21 -0
  313. package/src/css/props/radius/radius.ts +8 -0
  314. package/src/css/props/shadow/shadow.css.ts +23 -0
  315. package/src/css/props/shadow/shadow.ts +8 -0
  316. package/src/css/props/textAlign/textAlign.css.ts +22 -0
  317. package/src/css/props/textAlign/textAlign.ts +8 -0
  318. package/src/css/props/textOverflow/textOverflow.css.ts +13 -0
  319. package/src/css/props/textOverflow/textOverflow.ts +8 -0
  320. package/src/css/{aspects → props}/textOverflow/types.ts +5 -2
  321. package/src/css/{aspects → props}/width/types.ts +1 -1
  322. package/src/css/props/width/width.css.ts +28 -0
  323. package/src/css/props/width/width.ts +8 -0
  324. package/src/css/types.ts +223 -42
  325. package/src/css/util.ts +0 -10
  326. package/src/css/utils/index.ts +1 -0
  327. package/src/css/utils/srOnly/srOnly.css.ts +10 -0
  328. package/src/css/utils/srOnly/srOnly.ts +3 -3
  329. package/src/css/vars.css.ts +676 -0
  330. package/src/theme/v3/buildTheme_v3.ts +7 -2
  331. package/src/theme/v3/defaultFonts.ts +4 -4
  332. package/src/theme/v3/defaultTokens.ts +3 -3
  333. package/src/theme/v3/types.ts +3 -2
  334. package/src/theme/versioning/v3_v2.ts +24 -3
  335. package/dist/_chunks-cjs/buildCommand.cjs +0 -71
  336. package/dist/_chunks-cjs/buildCommand.cjs.map +0 -1
  337. package/dist/cli.cjs +0 -357
  338. package/dist/cli.cjs.map +0 -1
  339. package/dist/cli.d.cts +0 -1
  340. package/dist/ui-system.css +0 -24528
  341. package/dist/ui-system.min.css +0 -1
  342. package/dist/ui-theme.css +0 -1184
  343. package/dist/ui-theme.min.css +0 -1
  344. package/dist/ui.min.css +0 -1
  345. package/src/core/StyleTags.tsx +0 -18
  346. package/src/css/_compileStyle.ts +0 -156
  347. package/src/css/_compileSystem.ts +0 -7
  348. package/src/css/_compileTheme.ts +0 -13
  349. package/src/css/_hash.ts +0 -9
  350. package/src/css/_mergeStyles.ts +0 -24
  351. package/src/css/_resp.ts +0 -31
  352. package/src/css/_responsiveRule.ts +0 -38
  353. package/src/css/_scopeClassName.ts +0 -9
  354. package/src/css/_scopeClassNames.ts +0 -12
  355. package/src/css/_system.style.ts +0 -166
  356. package/src/css/aspects/border/border.style.ts +0 -13
  357. package/src/css/aspects/border/border.ts +0 -14
  358. package/src/css/aspects/border/types.ts +0 -10
  359. package/src/css/aspects/boxSizing/boxSizing.style.ts +0 -10
  360. package/src/css/aspects/boxSizing/boxSizing.ts +0 -8
  361. package/src/css/aspects/display/display.style.ts +0 -34
  362. package/src/css/aspects/display/display.ts +0 -8
  363. package/src/css/aspects/flex/flex.ts +0 -13
  364. package/src/css/aspects/flex/flexAlign.style.ts +0 -12
  365. package/src/css/aspects/flex/flexDirection.style.ts +0 -11
  366. package/src/css/aspects/flex/flexJustify.style.ts +0 -13
  367. package/src/css/aspects/flex/flexWrap.style.ts +0 -10
  368. package/src/css/aspects/flex/types.ts +0 -27
  369. package/src/css/aspects/flexItem/flex.style.ts +0 -22
  370. package/src/css/aspects/flexItem/flexItem.ts +0 -8
  371. package/src/css/aspects/flexItem/index.ts +0 -2
  372. package/src/css/aspects/flexItem/types.ts +0 -25
  373. package/src/css/aspects/font/font.style.ts +0 -83
  374. package/src/css/aspects/font/font.ts +0 -7
  375. package/src/css/aspects/gap/gap.style.ts +0 -21
  376. package/src/css/aspects/gap/gap.ts +0 -8
  377. package/src/css/aspects/grid/grid.ts +0 -14
  378. package/src/css/aspects/grid/gridAutoColumns.style.ts +0 -11
  379. package/src/css/aspects/grid/gridAutoFlow.style.ts +0 -11
  380. package/src/css/aspects/grid/gridAutoRows.style.ts +0 -11
  381. package/src/css/aspects/grid/gridColumns.style.ts +0 -18
  382. package/src/css/aspects/grid/gridRows.style.ts +0 -18
  383. package/src/css/aspects/grid/index.ts +0 -2
  384. package/src/css/aspects/grid/types.ts +0 -25
  385. package/src/css/aspects/gridItem/gridColumn.style.ts +0 -20
  386. package/src/css/aspects/gridItem/gridColumnEnd.style.ts +0 -20
  387. package/src/css/aspects/gridItem/gridColumnStart.style.ts +0 -20
  388. package/src/css/aspects/gridItem/gridItem.ts +0 -15
  389. package/src/css/aspects/gridItem/gridRow.style.ts +0 -20
  390. package/src/css/aspects/gridItem/gridRowEnd.style.ts +0 -20
  391. package/src/css/aspects/gridItem/gridRowStart.style.ts +0 -20
  392. package/src/css/aspects/gridItem/index.ts +0 -2
  393. package/src/css/aspects/gridItem/types.ts +0 -30
  394. package/src/css/aspects/height/height.style.ts +0 -9
  395. package/src/css/aspects/height/height.ts +0 -16
  396. package/src/css/aspects/inset/inset.style.ts +0 -12
  397. package/src/css/aspects/inset/inset.ts +0 -14
  398. package/src/css/aspects/margin/margin.style.ts +0 -56
  399. package/src/css/aspects/margin/margin.ts +0 -16
  400. package/src/css/aspects/maxWidth/maxWidth.style.ts +0 -16
  401. package/src/css/aspects/maxWidth/maxWidth.ts +0 -8
  402. package/src/css/aspects/minHeight/minHeight.style.ts +0 -9
  403. package/src/css/aspects/minHeight/minHeight.ts +0 -8
  404. package/src/css/aspects/minWidth/minWidth.style.ts +0 -13
  405. package/src/css/aspects/minWidth/minWidth.ts +0 -8
  406. package/src/css/aspects/outline/outline.style.ts +0 -9
  407. package/src/css/aspects/overflow/overflow.style.ts +0 -11
  408. package/src/css/aspects/overflow/overflow.ts +0 -12
  409. package/src/css/aspects/overflow/types.ts +0 -11
  410. package/src/css/aspects/padding/padding.style.ts +0 -43
  411. package/src/css/aspects/padding/padding.ts +0 -16
  412. package/src/css/aspects/padding/types.ts +0 -14
  413. package/src/css/aspects/pointerEvents/pointerEvents.style.ts +0 -13
  414. package/src/css/aspects/pointerEvents/pointerEvents.ts +0 -7
  415. package/src/css/aspects/position/position.style.ts +0 -12
  416. package/src/css/aspects/position/position.ts +0 -8
  417. package/src/css/aspects/radius/radius.style.ts +0 -16
  418. package/src/css/aspects/radius/radius.ts +0 -8
  419. package/src/css/aspects/shadow/shadow.style.ts +0 -24
  420. package/src/css/aspects/shadow/shadow.ts +0 -8
  421. package/src/css/aspects/textAlign/textAlign.style.ts +0 -26
  422. package/src/css/aspects/textAlign/textAlign.ts +0 -8
  423. package/src/css/aspects/textOverflow/textOverflow.style.ts +0 -21
  424. package/src/css/aspects/textOverflow/textOverflow.ts +0 -7
  425. package/src/css/aspects/width/width.style.ts +0 -11
  426. package/src/css/aspects/width/width.ts +0 -8
  427. package/src/css/components/breadcrumbs/breadcrumbs.style.ts +0 -9
  428. package/src/css/components/dialog/dialog.style.ts +0 -77
  429. package/src/css/components/menu/menu.style.ts +0 -17
  430. package/src/css/components/skeleton/skeleton.style.ts +0 -104
  431. package/src/css/components/toast/toast.style.ts +0 -20
  432. package/src/css/components/tree/tree.style.ts +0 -39
  433. package/src/css/prefix/constants.ts +0 -6
  434. package/src/css/prefix/index.ts +0 -2
  435. package/src/css/prefix/types.ts +0 -1
  436. package/src/css/primitives/_arrow/_arrow.style.ts +0 -69
  437. package/src/css/primitives/_input/_input.style.ts +0 -235
  438. package/src/css/primitives/_selectable/_selectable.style.ts +0 -129
  439. package/src/css/primitives/avatar/avatar.style.ts +0 -171
  440. package/src/css/primitives/badge/badge.style.ts +0 -21
  441. package/src/css/primitives/box/box.style.ts +0 -22
  442. package/src/css/primitives/button/button.style.ts +0 -275
  443. package/src/css/primitives/card/card.style.ts +0 -295
  444. package/src/css/primitives/checkbox/checkbox.style.ts +0 -178
  445. package/src/css/primitives/code/code.style.ts +0 -61
  446. package/src/css/primitives/container/container.style.ts +0 -10
  447. package/src/css/primitives/heading/heading.style.ts +0 -56
  448. package/src/css/primitives/kbd/kbd.style.ts +0 -19
  449. package/src/css/primitives/label/label.style.ts +0 -52
  450. package/src/css/primitives/popover/popover.style.ts +0 -9
  451. package/src/css/primitives/radio/radio.style.ts +0 -84
  452. package/src/css/primitives/select/select.style.ts +0 -24
  453. package/src/css/primitives/spinner/spinner.style.ts +0 -22
  454. package/src/css/primitives/stack/stack.style.ts +0 -13
  455. package/src/css/primitives/switch/switch.style.ts +0 -102
  456. package/src/css/primitives/text/text.style.ts +0 -65
  457. package/src/css/primitives/textArea/textArea.style.ts +0 -11
  458. package/src/css/primitives/textInput/textInput.style.ts +0 -46
  459. package/src/css/primitives/token/token.style.ts +0 -50
  460. package/src/css/primitives/tooltip/tooltip.style.ts +0 -9
  461. package/src/css/renderColor.ts +0 -31
  462. package/src/css/responsiveRules.ts +0 -18
  463. package/src/css/theme/index.ts +0 -14
  464. package/src/css/theme/lib/contract/buildVarContract.ts +0 -76
  465. package/src/css/theme/lib/contract/index.ts +0 -2
  466. package/src/css/theme/lib/contract/types.ts +0 -15
  467. package/src/css/theme/resolveTheme.ts +0 -863
  468. package/src/css/utils/srOnly/srOnly.style.ts +0 -14
  469. package/src/css/{aspects → props}/border/index.ts +0 -0
  470. package/src/css/{aspects → props}/boxSizing/index.ts +0 -0
  471. package/src/css/{aspects → props}/display/index.ts +0 -0
  472. package/src/css/{aspects → props}/display/types.ts +0 -0
  473. package/src/css/{aspects → props}/flex/index.ts +0 -0
  474. package/src/css/{aspects → props}/font/index.ts +0 -0
  475. package/src/css/{aspects → props}/font/types.ts +0 -0
  476. package/src/css/{aspects → props}/gap/index.ts +0 -0
  477. package/src/css/{aspects → props}/gap/types.ts +0 -0
  478. package/src/css/{aspects → props}/inset/index.ts +0 -0
  479. package/src/css/{aspects → props}/inset/types.ts +0 -0
  480. package/src/css/{aspects → props}/margin/index.ts +0 -0
  481. package/src/css/{aspects → props}/margin/types.ts +2 -2
  482. /package/src/css/{aspects → props}/maxWidth/index.ts +0 -0
  483. /package/src/css/{aspects → props}/minHeight/index.ts +0 -0
  484. /package/src/css/{aspects → props}/minHeight/types.ts +0 -0
  485. /package/src/css/{aspects → props}/minWidth/index.ts +0 -0
  486. /package/src/css/{aspects → props}/minWidth/types.ts +0 -0
  487. /package/src/css/{aspects → props}/overflow/index.ts +0 -0
  488. /package/src/css/{aspects → props}/padding/index.ts +0 -0
  489. /package/src/css/{aspects → props}/pointerEvents/index.ts +0 -0
  490. /package/src/css/{aspects → props}/pointerEvents/types.ts +0 -0
  491. /package/src/css/{aspects → props}/position/index.ts +0 -0
  492. /package/src/css/{aspects → props}/position/types.ts +0 -0
  493. /package/src/css/{aspects → props}/radius/index.ts +0 -0
  494. /package/src/css/{aspects → props}/radius/types.ts +0 -0
  495. /package/src/css/{aspects → props}/shadow/index.ts +0 -0
  496. /package/src/css/{aspects → props}/shadow/types.ts +0 -0
  497. /package/src/css/{aspects → props}/textAlign/index.ts +0 -0
  498. /package/src/css/{aspects → props}/textAlign/types.ts +0 -0
  499. /package/src/css/{aspects → props}/textOverflow/index.ts +0 -0
  500. /package/src/css/{aspects → props}/width/index.ts +0 -0
package/dist/index.d.cts CHANGED
@@ -9,6 +9,7 @@ import type {BoxStyleProps} from '@sanity/ui/css'
9
9
  import {Breakpoint} from '@sanity/ui/css'
10
10
  import type {ButtonStyleProps} from '@sanity/ui/css'
11
11
  import {CardStyleProps as CardStyleProps_2} from '@sanity/ui/css'
12
+ import {CodeStyleProps} from '@sanity/ui/css'
12
13
  import {Component} from 'react'
13
14
  import type {ComponentClass} from 'react'
14
15
  import type {ComponentProps} from 'react'
@@ -22,16 +23,14 @@ import type {DisplayStyleProps} from '@sanity/ui/css'
22
23
  import {ElementType as ElementType_2} from 'react'
23
24
  import {ErrorInfo} from 'react'
24
25
  import type {ExoticComponent} from 'react'
25
- import {FlexAlign} from '@sanity/ui/css'
26
+ import {AlignItems as FlexAlign} from '@sanity/ui/css'
26
27
  import {FlexDirection} from '@sanity/ui/css'
27
- import {FlexJustify} from '@sanity/ui/css'
28
- import type {FlexStyleProps} from '@sanity/ui/css'
29
- import {FlexValue} from '@sanity/ui/css'
28
+ import {JustifyContent as FlexJustify} from '@sanity/ui/css'
29
+ import {Flex as FlexValue} from '@sanity/ui/css'
30
30
  import {FlexWrap} from '@sanity/ui/css'
31
31
  import type {FontCodeSize} from '@sanity/ui/theme'
32
32
  import type {FontHeadingSize} from '@sanity/ui/theme'
33
33
  import type {FontLabelSize} from '@sanity/ui/theme'
34
- import {FontStyleProps} from '@sanity/ui/css'
35
34
  import type {FontTextSize} from '@sanity/ui/theme'
36
35
  import {ForwardedRef} from 'react'
37
36
  import type {FunctionComponent} from 'react'
@@ -45,7 +44,6 @@ import {GridItemColumnStart} from '@sanity/ui/css'
45
44
  import {GridItemRow} from '@sanity/ui/css'
46
45
  import {GridItemRowEnd} from '@sanity/ui/css'
47
46
  import {GridItemRowStart} from '@sanity/ui/css'
48
- import type {GridStyleProps} from '@sanity/ui/css'
49
47
  import {HeadingStyleProps} from '@sanity/ui/css'
50
48
  import {hexToRgb as hexToRgb_2} from '@sanity/ui/theme'
51
49
  import {HSL as HSL_2} from '@sanity/ui/theme'
@@ -55,6 +53,7 @@ import {InputStyleProps} from '@sanity/ui/css'
55
53
  import type {InsetStyleProps} from '@sanity/ui/css'
56
54
  import {JSX} from 'react'
57
55
  import {LabelStyleProps} from '@sanity/ui/css'
56
+ import {MaxWidth} from '@sanity/ui/css'
58
57
  import {MouseEventHandler} from 'react'
59
58
  import {multiply as multiply_2} from '@sanity/ui/theme'
60
59
  import {MutableRefObject} from 'react'
@@ -140,10 +139,6 @@ export declare function Arrow<E extends ArrowElementType = typeof DEFAULT_ARROW_
140
139
  props: ArrowProps<E>,
141
140
  ): JSX.Element
142
141
 
143
- export declare namespace Arrow {
144
- var displayName: string
145
- }
146
-
147
142
  /** @internal */
148
143
  export declare type ArrowElementType = 'div' | 'span' | ComponentType
149
144
 
@@ -183,10 +178,6 @@ export declare function Autocomplete<
183
178
  O extends BaseAutocompleteOption = BaseAutocompleteOption,
184
179
  >(props: AutocompleteProps<E, O>): JSX.Element
185
180
 
186
- export declare namespace Autocomplete {
187
- var displayName: string
188
- }
189
-
190
181
  /** @public */
191
182
  export declare type AutocompleteElementType = 'input' | ComponentType
192
183
 
@@ -346,19 +337,11 @@ export declare function Avatar<E extends AvatarElementType = typeof DEFAULT_AVAT
346
337
  props: AvatarProps<E>,
347
338
  ): JSX.Element
348
339
 
349
- export declare namespace Avatar {
350
- var displayName: string
351
- }
352
-
353
340
  /** @public */
354
341
  export declare function AvatarCounter<
355
342
  E extends AvatarCounterElementType = typeof DEFAULT_AVATAR_COUNTER_ELEMENT,
356
343
  >(props: AvatarCounterProps<E>): JSX.Element
357
344
 
358
- export declare namespace AvatarCounter {
359
- var displayName: string
360
- }
361
-
362
345
  /** @public */
363
346
  export declare type AvatarCounterElementType = 'button' | 'div' | 'span' | ComponentType
364
347
 
@@ -419,10 +402,6 @@ export declare function AvatarStack<
419
402
  E extends AvatarStackElementType = typeof DEFAULT_AVATAR_STACK_ELEMENT,
420
403
  >(props: AvatarStackProps<E>): JSX.Element
421
404
 
422
- export declare namespace AvatarStack {
423
- var displayName: string
424
- }
425
-
426
405
  /** @public */
427
406
  export declare type AvatarStackChild = ReactElement<AvatarProps<'div'>> | null | undefined | false
428
407
 
@@ -430,7 +409,10 @@ export declare type AvatarStackChild = ReactElement<AvatarProps<'div'>> | null |
430
409
  export declare type AvatarStackElementType = 'div' | 'span' | ComponentType
431
410
 
432
411
  /** @public */
433
- export declare type AvatarStackOwnProps = Omit<BoxOwnProps, 'align' | 'display'> & {
412
+ export declare type AvatarStackOwnProps = Omit<
413
+ BoxOwnProps,
414
+ 'align' | 'alignItems' | 'display' | 'justify' | 'justifyContent'
415
+ > & {
434
416
  children: AvatarStackChild | AvatarStackChild[]
435
417
  maxLength?: number
436
418
  size?: ResponsiveProp<AvatarSize>
@@ -458,10 +440,6 @@ export declare function Badge<E extends BadgeElementType = typeof DEFAULT_BADGE_
458
440
  props: BadgeProps<E>,
459
441
  ): JSX.Element
460
442
 
461
- export declare namespace Badge {
462
- var displayName: string
463
- }
464
-
465
443
  /** @public */
466
444
  export declare type BadgeElementType = 'div' | 'span' | ComponentType
467
445
 
@@ -507,10 +485,6 @@ export declare interface BoundaryElementContextValue {
507
485
  /** @public */
508
486
  export declare function BoundaryElementProvider(props: BoundaryElementProviderProps): ReactElement
509
487
 
510
- export declare namespace BoundaryElementProvider {
511
- var displayName: string
512
- }
513
-
514
488
  /** @public */
515
489
  export declare interface BoundaryElementProviderProps {
516
490
  children: ReactNode
@@ -527,10 +501,6 @@ export declare function Box<E extends BoxElementType = typeof DEFAULT_BOX_ELEMEN
527
501
  props: BoxProps<E>,
528
502
  ): JSX.Element
529
503
 
530
- export declare namespace Box {
531
- var displayName: string
532
- }
533
-
534
504
  export {BoxDisplay}
535
505
 
536
506
  /** @public */
@@ -591,10 +561,6 @@ export declare function Breadcrumbs<
591
561
  E extends BreadcrumbsElementType = typeof DEFAULT_BREADCRUMBS_ELEMENT,
592
562
  >(props: BreadcrumbsProps<E>): JSX.Element
593
563
 
594
- export declare namespace Breadcrumbs {
595
- var displayName: string
596
- }
597
-
598
564
  /** @beta */
599
565
  export declare type BreadcrumbsElementType = 'div' | 'nav' | ComponentType
600
566
 
@@ -616,10 +582,6 @@ export declare function Button<E extends ButtonElementType = typeof DEFAULT_BUTT
616
582
  props: ButtonProps<E>,
617
583
  ): JSX.Element
618
584
 
619
- export declare namespace Button {
620
- var displayName: string
621
- }
622
-
623
585
  /** @public */
624
586
  export declare type ButtonElementType = 'a' | 'button' | 'label' | ComponentType
625
587
 
@@ -634,14 +596,13 @@ export declare type ButtonOwnProps = ButtonStyleProps &
634
596
  DisplayStyleProps &
635
597
  GapStyleProps &
636
598
  PaddingStyleProps & {
637
- 'align'?: FlexStyleProps['align']
599
+ 'align'?: BoxStyleProps['alignItems']
638
600
  'data-ui'?: string
639
601
  'disabled'?: boolean
640
602
  'fontSize'?: ResponsiveProp<FontTextSize>
641
- 'mode'?: ThemeColorButtonModeKey_2
642
603
  'icon'?: ElementType_2 | ReactNode
643
604
  'iconRight'?: ElementType_2 | ReactNode
644
- 'justify'?: FlexStyleProps['justify']
605
+ 'justify'?: BoxStyleProps['justifyContent']
645
606
  /** @beta Do not use in production, as this might change.*/
646
607
  'loading'?: boolean
647
608
  'selected'?: boolean
@@ -653,7 +614,6 @@ export declare type ButtonOwnProps = ButtonStyleProps &
653
614
  'text'?: ReactNode
654
615
  'textOverflow'?: TextOwnProps['textOverflow']
655
616
  'textWeight'?: TextOwnProps['weight']
656
- 'tone'?: ThemeColorStateToneKey
657
617
  'width'?: ResponsiveProp<Width>
658
618
  }
659
619
 
@@ -688,10 +648,6 @@ export declare function Card<E extends CardElementType = typeof DEFAULT_CARD_ELE
688
648
  props: CardProps<E>,
689
649
  ): JSX.Element
690
650
 
691
- export declare namespace Card {
692
- var displayName: string
693
- }
694
-
695
651
  /** @internal */
696
652
  export declare type _CardCompatProviderComponent = ComponentType_2<{
697
653
  children?: ReactNode
@@ -731,17 +687,15 @@ export declare interface CardOwnProps extends BoxOwnProps, CardStyleProps_2 {
731
687
  /** @public */
732
688
  export declare type CardProps<E extends CardElementType = CardElementType> = Props<CardOwnProps, E>
733
689
 
690
+ /** @public */
734
691
  export declare function CardProvider(props: {
735
692
  children?: ReactNode
736
693
  tone: ThemeColorCardToneKey
737
694
  scheme: ThemeColorSchemeKey_2
695
+ /** @internal */
738
696
  unstable_CompatProvider?: _CardCompatProviderComponent
739
697
  }): JSX.Element
740
698
 
741
- export declare namespace CardProvider {
742
- var displayName: string
743
- }
744
-
745
699
  /**
746
700
  * @internal
747
701
  * @deprecated Use `CardStyleProps` from `@sanity/ui/css` instead.
@@ -765,10 +719,6 @@ export declare function Checkbox<E extends CheckboxElementType = typeof DEFAULT_
765
719
  props: CheckboxProps<E>,
766
720
  ): JSX.Element
767
721
 
768
- export declare namespace Checkbox {
769
- var displayName: string
770
- }
771
-
772
722
  /** @public */
773
723
  export declare type CheckboxElementType = 'input' | ComponentType
774
724
 
@@ -801,18 +751,14 @@ export declare function Code<E extends CodeElementType = typeof DEFAULT_CODE_ELE
801
751
  props: CodeProps<E>,
802
752
  ): JSX.Element
803
753
 
804
- export declare namespace Code {
805
- var displayName: string
806
- }
807
-
808
754
  /** @public */
809
755
  export declare type CodeElementType = 'div' | 'pre' | ComponentType
810
756
 
811
757
  /** @public */
812
- export declare type CodeOwnProps = Omit<FontStyleProps, 'align'> & {
758
+ export declare type CodeOwnProps = CodeStyleProps & {
813
759
  /** Define the language to use for syntax highlighting. */
814
760
  language?: string
815
- size?: number | number[]
761
+ size?: ResponsiveProp<FontCodeSize>
816
762
  }
817
763
 
818
764
  /** @public */
@@ -826,11 +772,7 @@ export declare function CodeSkeleton<
826
772
  E extends CodeSkeletonElementType = typeof DEFAULT_CODE_SKELETON_ELEMENT,
827
773
  >(props: CodeSkeletonProps<E>): JSX.Element
828
774
 
829
- export declare namespace CodeSkeleton {
830
- var displayName: string
831
- }
832
-
833
- /** @public */
775
+ /** @beta */
834
776
  export declare type CodeSkeletonElementType = SkeletonElementType
835
777
 
836
778
  /** @beta */
@@ -860,10 +802,6 @@ export declare function Container<
860
802
  E extends ContainerElementType = typeof DEFAULT_CONTAINER_ELEMENT,
861
803
  >(props: ContainerProps<E>): JSX.Element
862
804
 
863
- export declare namespace Container {
864
- var displayName: string
865
- }
866
-
867
805
  /** @public */
868
806
  export declare type ContainerElementType = BoxElementType
869
807
 
@@ -897,7 +835,7 @@ export declare const DEFAULT_AUTOCOMPLETE_ELEMENT = 'input'
897
835
  export declare const DEFAULT_AVATAR_COUNTER_ELEMENT = 'div'
898
836
 
899
837
  /** @public */
900
- export declare const DEFAULT_AVATAR_ELEMENT = 'div'
838
+ export declare const DEFAULT_AVATAR_ELEMENT = 'span'
901
839
 
902
840
  /** @public */
903
841
  export declare const DEFAULT_AVATAR_STACK_ELEMENT = 'div'
@@ -923,7 +861,7 @@ export declare const DEFAULT_CHECKBOX_ELEMENT = 'input'
923
861
  /** @public */
924
862
  export declare const DEFAULT_CODE_ELEMENT = 'pre'
925
863
 
926
- /** @public */
864
+ /** @beta */
927
865
  export declare const DEFAULT_CODE_SKELETON_ELEMENT = 'div'
928
866
 
929
867
  /** @public */
@@ -944,7 +882,7 @@ export declare const DEFAULT_GRID_ELEMENT = 'div'
944
882
  /** @public */
945
883
  export declare const DEFAULT_HEADING_ELEMENT = 'div'
946
884
 
947
- /** @public */
885
+ /** @beta */
948
886
  export declare const DEFAULT_HEADING_SKELETON_ELEMENT = 'div'
949
887
 
950
888
  /** @public */
@@ -959,7 +897,7 @@ export declare const DEFAULT_KBD_ELEMENT = 'kbd'
959
897
  /** @public */
960
898
  export declare const DEFAULT_LABEL_ELEMENT = 'div'
961
899
 
962
- /** @public */
900
+ /** @beta */
963
901
  export declare const DEFAULT_LABEL_SKELETON_ELEMENT = 'div'
964
902
 
965
903
  /** @public */
@@ -1019,7 +957,7 @@ export declare const DEFAULT_TEXT_ELEMENT = 'div'
1019
957
  /** @public */
1020
958
  export declare const DEFAULT_TEXT_INPUT_ELEMENT = 'input'
1021
959
 
1022
- /** @public */
960
+ /** @beta */
1023
961
  export declare const DEFAULT_TEXT_SKELETON_ELEMENT = 'div'
1024
962
 
1025
963
  /** @public */
@@ -1054,10 +992,6 @@ export declare function Dialog<E extends DialogElementType = typeof DEFAULT_DIAL
1054
992
  props: DialogProps<E>,
1055
993
  ): JSX.Element
1056
994
 
1057
- export declare namespace Dialog {
1058
- var displayName: string
1059
- }
1060
-
1061
995
  /**
1062
996
  * @internal
1063
997
  */
@@ -1069,8 +1003,8 @@ export declare const DialogContext: Context<DialogContextValue>
1069
1003
  */
1070
1004
  export declare interface DialogContextValue {
1071
1005
  version: 0.0
1072
- position?: DialogPosition | DialogPosition[]
1073
- zOffset?: number | number[]
1006
+ position?: ResponsiveProp<DialogPosition>
1007
+ zOffset?: ResponsiveProp<number>
1074
1008
  }
1075
1009
 
1076
1010
  /** @public */
@@ -1105,7 +1039,7 @@ export declare type DialogOwnProps = ContainerStyleProps &
1105
1039
  onClose?: () => void
1106
1040
  open?: boolean
1107
1041
  portal?: string
1108
- position?: DialogPosition | DialogPosition[]
1042
+ position?: ResponsiveProp<DialogPosition>
1109
1043
  scheme?: ThemeColorSchemeKey_2
1110
1044
  tone?: CardTone
1111
1045
  zOffset?: number | number[]
@@ -1126,18 +1060,14 @@ export declare type DialogProps<E extends DialogElementType = DialogElementType>
1126
1060
  */
1127
1061
  export declare function DialogProvider(props: DialogProviderProps): ReactElement
1128
1062
 
1129
- export declare namespace DialogProvider {
1130
- var displayName: string
1131
- }
1132
-
1133
1063
  /**
1134
1064
  * This API might change. DO NOT USE IN PRODUCTION.
1135
1065
  * @beta
1136
1066
  */
1137
1067
  export declare interface DialogProviderProps {
1138
1068
  children?: ReactNode
1139
- position?: DialogPosition | DialogPosition[]
1140
- zOffset?: number | number[]
1069
+ position?: ResponsiveProp<DialogPosition>
1070
+ zOffset?: ResponsiveProp<number>
1141
1071
  }
1142
1072
 
1143
1073
  /**
@@ -1148,10 +1078,6 @@ export declare function ElementQuery<
1148
1078
  E extends ElementQueryElementType = typeof DEFAULT_ELEMENT_QUERY_ELEMENT,
1149
1079
  >(props: ElementQueryProps<E>): JSX.Element
1150
1080
 
1151
- export declare namespace ElementQuery {
1152
- var displayName: string
1153
- }
1154
-
1155
1081
  /** @beta */
1156
1082
  export declare type ElementQueryElementType = 'div' | ComponentType
1157
1083
 
@@ -1255,10 +1181,6 @@ export declare function Flex<E extends FlexElementType = typeof DEFAULT_FLEX_ELE
1255
1181
  props: FlexProps<E>,
1256
1182
  ): JSX.Element
1257
1183
 
1258
- export declare namespace Flex {
1259
- var displayName: string
1260
- }
1261
-
1262
1184
  export {FlexAlign}
1263
1185
 
1264
1186
  export {FlexDirection}
@@ -1269,7 +1191,15 @@ export declare type FlexElementType = BoxElementType
1269
1191
  export {FlexJustify}
1270
1192
 
1271
1193
  /** @public */
1272
- export declare type FlexOwnProps = Omit<BoxOwnProps, 'display'>
1194
+ export declare type FlexOwnProps = Omit<
1195
+ BoxOwnProps,
1196
+ 'align' | 'display' | 'flexDirection' | 'flexWrap'
1197
+ > & {
1198
+ align?: ResponsiveProp<FlexAlign>
1199
+ direction?: ResponsiveProp<FlexDirection>
1200
+ justify?: ResponsiveProp<FlexJustify>
1201
+ wrap?: ResponsiveProp<FlexWrap>
1202
+ }
1273
1203
 
1274
1204
  /** @public */
1275
1205
  export declare type FlexProps<E extends FlexElementType = FlexElementType> = Props<FlexOwnProps, E>
@@ -1293,6 +1223,14 @@ export declare function focusLastDescendant(element: HTMLElement): boolean
1293
1223
  */
1294
1224
  export declare function _getArrayProp<T>(val: T | T[] | undefined, defaultVal?: T[]): T[]
1295
1225
 
1226
+ /**
1227
+ * @internal
1228
+ */
1229
+ export declare function _getResponsiveProp<T>(
1230
+ val: ResponsiveProp<T> | undefined,
1231
+ defaultVal?: Partial<Record<Breakpoint, T>>,
1232
+ ): Partial<Record<Breakpoint, T>>
1233
+
1296
1234
  /**
1297
1235
  * The `Grid` component is for building 2-dimensional layers (based on CSS grid).
1298
1236
  *
@@ -1302,10 +1240,6 @@ export declare function Grid<E extends GridElementType = typeof DEFAULT_GRID_ELE
1302
1240
  props: GridProps<E>,
1303
1241
  ): JSX.Element
1304
1242
 
1305
- export declare namespace Grid {
1306
- var displayName: string
1307
- }
1308
-
1309
1243
  export {GridAutoCols}
1310
1244
 
1311
1245
  export {GridAutoFlow}
@@ -1347,10 +1281,6 @@ export declare function Heading<E extends HeadingElementType = typeof DEFAULT_HE
1347
1281
  props: HeadingProps<E>,
1348
1282
  ): JSX.Element
1349
1283
 
1350
- export declare namespace Heading {
1351
- var displayName: string
1352
- }
1353
-
1354
1284
  /** @public */
1355
1285
  export declare type HeadingElementType =
1356
1286
  | 'div'
@@ -1381,11 +1311,7 @@ export declare function HeadingSkeleton<
1381
1311
  E extends HeadingSkeletonElementType = typeof DEFAULT_HEADING_SKELETON_ELEMENT,
1382
1312
  >(props: HeadingSkeletonProps<E>): JSX.Element
1383
1313
 
1384
- export declare namespace HeadingSkeleton {
1385
- var displayName: string
1386
- }
1387
-
1388
- /** @public */
1314
+ /** @beta */
1389
1315
  export declare type HeadingSkeletonElementType = SkeletonElementType
1390
1316
 
1391
1317
  /** @beta */
@@ -1416,10 +1342,6 @@ export declare function Hotkeys<E extends HotkeysElementType = typeof DEFAULT_HO
1416
1342
  props: HotkeysProps<E>,
1417
1343
  ): JSX.Element | undefined
1418
1344
 
1419
- export declare namespace Hotkeys {
1420
- var displayName: string
1421
- }
1422
-
1423
1345
  /** @public */
1424
1346
  export declare type HotkeysElementType = 'kbd' | ComponentType
1425
1347
 
@@ -1459,17 +1381,27 @@ export declare function Inline<E extends InlineElementType = typeof DEFAULT_INLI
1459
1381
  props: InlineProps<E>,
1460
1382
  ): JSX.Element
1461
1383
 
1462
- export declare namespace Inline {
1463
- var displayName: string
1464
- }
1465
-
1466
1384
  /** @public */
1467
1385
  export declare type InlineElementType = BoxElementType
1468
1386
 
1469
1387
  /** @public */
1470
1388
  export declare type InlineOwnProps = Omit<
1471
1389
  BoxOwnProps,
1472
- keyof FlexStyleProps | keyof GridStyleProps
1390
+ | 'alignItems'
1391
+ | 'flexDirection'
1392
+ | 'flexWrap'
1393
+ | 'justifyContent'
1394
+ | 'gridAutoColumns'
1395
+ | 'gridAutoFlow'
1396
+ | 'gridAutoRows'
1397
+ | 'gridColumnEnd'
1398
+ | 'gridColumnStart'
1399
+ | 'gridColumn'
1400
+ | 'gridRowEnd'
1401
+ | 'gridRowStart'
1402
+ | 'gridRow'
1403
+ | 'gridTemplateColumns'
1404
+ | 'gridTemplateRows'
1473
1405
  > & {
1474
1406
  /** @deprecated Use `gap` instead. */
1475
1407
  space?: ResponsiveProp<Space>
@@ -1535,10 +1467,6 @@ export declare function KBD<E extends KBDElementType = typeof DEFAULT_KBD_ELEMEN
1535
1467
  props: KBDProps<E>,
1536
1468
  ): JSX.Element
1537
1469
 
1538
- export declare namespace KBD {
1539
- var displayName: string
1540
- }
1541
-
1542
1470
  /** @public */
1543
1471
  export declare type KBDElementType = 'kbd' | ComponentType
1544
1472
 
@@ -1560,10 +1488,6 @@ export declare function Label<E extends LabelElementType = typeof DEFAULT_LABEL_
1560
1488
  props: LabelProps<E>,
1561
1489
  ): JSX.Element
1562
1490
 
1563
- export declare namespace Label {
1564
- var displayName: string
1565
- }
1566
-
1567
1491
  /** @public */
1568
1492
  export declare type LabelElementType =
1569
1493
  | 'div'
@@ -1596,11 +1520,7 @@ export declare function LabelSkeleton<
1596
1520
  E extends LabelSkeletonElementType = typeof DEFAULT_LABEL_SKELETON_ELEMENT,
1597
1521
  >(props: LabelSkeletonProps<E>): JSX.Element
1598
1522
 
1599
- export declare namespace LabelSkeleton {
1600
- var displayName: string
1601
- }
1602
-
1603
- /** @public */
1523
+ /** @beta */
1604
1524
  export declare type LabelSkeletonElementType = SkeletonElementType
1605
1525
 
1606
1526
  /** @beta */
@@ -1621,10 +1541,6 @@ export declare function Layer<E extends LayerElementType = typeof DEFAULT_LAYER_
1621
1541
  props: LayerProps<E>,
1622
1542
  ): JSX.Element
1623
1543
 
1624
- export declare namespace Layer {
1625
- var displayName: string
1626
- }
1627
-
1628
1544
  /** @public */
1629
1545
  export declare interface LayerContextValue {
1630
1546
  version: 0.0
@@ -1642,7 +1558,7 @@ export declare type LayerElementType = CardElementType
1642
1558
  export declare type LayerOwnProps = CardOwnProps & {
1643
1559
  /** A callback that fires when the layer becomes the top layer when it was not the top layer before. */
1644
1560
  onActivate?: (props: {activeElement: HTMLElement | null}) => void
1645
- zOffset?: number | number[]
1561
+ zOffset?: ResponsiveProp<number>
1646
1562
  }
1647
1563
 
1648
1564
  /** @public */
@@ -1654,14 +1570,10 @@ export declare type LayerProps<E extends LayerElementType = LayerElementType> =
1654
1570
  /** @public */
1655
1571
  export declare function LayerProvider(props: LayerProviderProps): ReactElement
1656
1572
 
1657
- export declare namespace LayerProvider {
1658
- var displayName: string
1659
- }
1660
-
1661
1573
  /** @public */
1662
1574
  export declare interface LayerProviderProps {
1663
1575
  children?: ReactNode
1664
- zOffset?: number | number[]
1576
+ zOffset?: ResponsiveProp<number>
1665
1577
  }
1666
1578
 
1667
1579
  /**
@@ -1681,10 +1593,6 @@ export declare function Menu<E extends MenuElementType = typeof DEFAULT_MENU_ELE
1681
1593
  props: MenuProps<E>,
1682
1594
  ): JSX.Element
1683
1595
 
1684
- export declare namespace Menu {
1685
- var displayName: string
1686
- }
1687
-
1688
1596
  /**
1689
1597
  * The `MenuButton` component follows the WAI-ARIA specification for menu buttons.
1690
1598
  *
@@ -1692,10 +1600,6 @@ export declare namespace Menu {
1692
1600
  */
1693
1601
  export declare function MenuButton(props: MenuButtonProps): JSX.Element
1694
1602
 
1695
- export declare namespace MenuButton {
1696
- var displayName: string
1697
- }
1698
-
1699
1603
  /** @public */
1700
1604
  export declare type MenuButtonProps = {
1701
1605
  /**
@@ -1741,10 +1645,6 @@ export declare function MenuDivider<
1741
1645
  E extends MenuDividerElementType = typeof DEFAULT_MENU_DIVIDER_ELEMENT,
1742
1646
  >(props: MenuDividerProps<E>): JSX.Element
1743
1647
 
1744
- export declare namespace MenuDivider {
1745
- var displayName: string
1746
- }
1747
-
1748
1648
  /** @public */
1749
1649
  export declare type MenuDividerElementType = 'div' | 'hr' | 'span' | ComponentType
1750
1650
 
@@ -1763,10 +1663,6 @@ export declare function MenuGroup<
1763
1663
  E extends MenuGroupElementType = typeof DEFAULT_MENU_GROUP_ELEMENT,
1764
1664
  >(props: MenuGroupProps<E>): JSX.Element
1765
1665
 
1766
- export declare namespace MenuGroup {
1767
- var displayName: string
1768
- }
1769
-
1770
1666
  /** @public */
1771
1667
  export declare type MenuGroupElementType = 'button' | ComponentType
1772
1668
 
@@ -1806,10 +1702,6 @@ export declare function MenuItem<E extends MenuItemElementType = typeof DEFAULT_
1806
1702
  props: MenuItemProps<E>,
1807
1703
  ): JSX.Element
1808
1704
 
1809
- export declare namespace MenuItem {
1810
- var displayName: string
1811
- }
1812
-
1813
1705
  /** @public */
1814
1706
  export declare type MenuItemElementType = 'button' | 'a' | ComponentType
1815
1707
 
@@ -1818,7 +1710,7 @@ export declare type MenuItemOwnProps = GapStyleProps &
1818
1710
  PaddingStyleProps &
1819
1711
  RadiusStyleProps & {
1820
1712
  disabled?: boolean
1821
- fontSize?: number | number[]
1713
+ fontSize?: ResponsiveProp<FontTextSize>
1822
1714
  hotkeys?: string[]
1823
1715
  icon?: ElementType_2 | ReactNode
1824
1716
  iconRight?: ElementType_2 | ReactNode
@@ -1904,10 +1796,6 @@ export declare function Popover<E extends PopoverElementType = typeof DEFAULT_PO
1904
1796
  props: PopoverProps<E>,
1905
1797
  ): JSX.Element
1906
1798
 
1907
- export declare namespace Popover {
1908
- var displayName: string
1909
- }
1910
-
1911
1799
  /** @public */
1912
1800
  export declare type PopoverElementType = 'div' | ComponentType
1913
1801
 
@@ -1917,7 +1805,7 @@ export declare type PopoverElementType = 'div' | ComponentType
1917
1805
  export declare type PopoverMargins = [number, number, number, number]
1918
1806
 
1919
1807
  /** @public */
1920
- export declare type PopoverOwnProps = LayerOwnProps & {
1808
+ export declare type PopoverOwnProps = Omit<LayerOwnProps, 'maxWidth'> & {
1921
1809
  /** @beta */
1922
1810
  __unstable_margins?: PopoverMargins
1923
1811
  /**
@@ -1978,6 +1866,7 @@ export declare type PopoverOwnProps = LayerOwnProps & {
1978
1866
  referenceElement?: HTMLElement | null
1979
1867
  /** @beta */
1980
1868
  updateRef?: Ref<PopoverUpdateCallback | undefined>
1869
+ width?: ResponsiveProp<MaxWidth>
1981
1870
  }
1982
1871
 
1983
1872
  /** @public */
@@ -1995,10 +1884,6 @@ export declare type PopoverWidth = Exclude<ContainerWidth, 'auto'>
1995
1884
  /** @public */
1996
1885
  export declare function Portal(props: PortalProps): ReactPortal | null
1997
1886
 
1998
- export declare namespace Portal {
1999
- var displayName: string
2000
- }
2001
-
2002
1887
  /** @public */
2003
1888
  export declare interface PortalContextValue {
2004
1889
  version: 0.0
@@ -2019,10 +1904,6 @@ export declare interface PortalProps {
2019
1904
  /** @public */
2020
1905
  export declare function PortalProvider(props: PortalProviderProps): ReactElement
2021
1906
 
2022
- export declare namespace PortalProvider {
2023
- var displayName: string
2024
- }
2025
-
2026
1907
  /** @public */
2027
1908
  export declare interface PortalProviderProps {
2028
1909
  /**
@@ -2056,10 +1937,6 @@ export declare function Radio<E extends RadioElementType = typeof DEFAULT_RADIO_
2056
1937
  props: RadioProps<E>,
2057
1938
  ): JSX.Element
2058
1939
 
2059
- export declare namespace Radio {
2060
- var displayName: string
2061
- }
2062
-
2063
1940
  /** @public */
2064
1941
  export declare type RadioElementType = 'input' | ComponentType
2065
1942
 
@@ -2287,10 +2164,6 @@ export declare function Select<E extends SelectElementType = typeof DEFAULT_SELE
2287
2164
  props: SelectProps<E>,
2288
2165
  ): JSX.Element
2289
2166
 
2290
- export declare namespace Select {
2291
- var displayName: string
2292
- }
2293
-
2294
2167
  /** @internal */
2295
2168
  declare type SelectableElementType = 'button' | 'a' | ComponentType
2296
2169
 
@@ -2325,10 +2198,6 @@ export declare function Skeleton<E extends SkeletonElementType = typeof DEFAULT_
2325
2198
  props: SkeletonProps<E>,
2326
2199
  ): JSX.Element
2327
2200
 
2328
- export declare namespace Skeleton {
2329
- var displayName: string
2330
- }
2331
-
2332
2201
  /** @beta */
2333
2202
  export declare type SkeletonElementType = 'div' | 'span' | ComponentType
2334
2203
 
@@ -2357,10 +2226,6 @@ export declare function Spinner<E extends SpinnerElementType = typeof DEFAULT_SP
2357
2226
  props: SpinnerProps<E>,
2358
2227
  ): JSX.Element
2359
2228
 
2360
- export declare namespace Spinner {
2361
- var displayName: string
2362
- }
2363
-
2364
2229
  /** @public */
2365
2230
  export declare type SpinnerElementType = 'div' | 'span' | ComponentType
2366
2231
 
@@ -2381,10 +2246,6 @@ export declare function SrOnly<E extends SrOnlyElementType = typeof DEFAULT_SR_O
2381
2246
  props: SrOnlyProps<E>,
2382
2247
  ): JSX.Element
2383
2248
 
2384
- export declare namespace SrOnly {
2385
- var displayName: string
2386
- }
2387
-
2388
2249
  /** @public */
2389
2250
  export declare type SrOnlyElementType = 'span' | ComponentType
2390
2251
 
@@ -2406,17 +2267,25 @@ export declare function Stack<E extends StackElementType = typeof DEFAULT_STACK_
2406
2267
  props: StackProps<E>,
2407
2268
  ): JSX.Element
2408
2269
 
2409
- export declare namespace Stack {
2410
- var displayName: string
2411
- }
2412
-
2413
2270
  /** @public */
2414
2271
  export declare type StackElementType = BoxElementType
2415
2272
 
2416
2273
  /** @public */
2417
2274
  export declare type StackOwnProps = Omit<
2418
2275
  BoxOwnProps,
2419
- 'align' | 'columns' | 'direction' | 'display' | 'gapX' | 'gapY' | 'justify'
2276
+ | 'align'
2277
+ | 'alignItems'
2278
+ | 'columns'
2279
+ | 'gridTemplateColumns'
2280
+ | 'direction'
2281
+ | 'display'
2282
+ | 'flexDirection'
2283
+ | 'gapX'
2284
+ | 'gapY'
2285
+ | 'justify'
2286
+ | 'justifyContent'
2287
+ | 'rows'
2288
+ | 'gridTemplateRows'
2420
2289
  > & {
2421
2290
  /** @deprecated Use `gap` instead. */
2422
2291
  space?: ResponsiveProp<Space>
@@ -2434,13 +2303,6 @@ export declare type StackProps<E extends StackElementType = StackElementType> =
2434
2303
  */
2435
2304
  export declare type Styles = ThemeStyles
2436
2305
 
2437
- /** @beta */
2438
- export declare function StyleTags(): ReactNode
2439
-
2440
- export declare namespace StyleTags {
2441
- var displayName: string
2442
- }
2443
-
2444
2306
  /**
2445
2307
  * The `Switch` component allows the user to toggle a setting on and off.
2446
2308
  *
@@ -2452,10 +2314,6 @@ export declare function Switch<E extends SwitchElementType = typeof DEFAULT_SWIT
2452
2314
  props: SwitchProps<E>,
2453
2315
  ): JSX.Element
2454
2316
 
2455
- export declare namespace Switch {
2456
- var displayName: string
2457
- }
2458
-
2459
2317
  /** @public */
2460
2318
  export declare type SwitchElementType = 'input' | ComponentType
2461
2319
 
@@ -2475,10 +2333,6 @@ export declare function Tab<E extends TabElementType = typeof DEFAULT_TAB_ELEMEN
2475
2333
  props: TabProps<E>,
2476
2334
  ): JSX.Element
2477
2335
 
2478
- export declare namespace Tab {
2479
- var displayName: string
2480
- }
2481
-
2482
2336
  /** @public */
2483
2337
  export declare type TabElementType = 'button' | ComponentType
2484
2338
 
@@ -2487,10 +2341,6 @@ export declare function TabList<E extends TabListElementType = typeof DEFAULT_TA
2487
2341
  props: TabListProps<E>,
2488
2342
  ): JSX.Element
2489
2343
 
2490
- export declare namespace TabList {
2491
- var displayName: string
2492
- }
2493
-
2494
2344
  /** @public */
2495
2345
  export declare type TabListChild =
2496
2346
  | ReactElement<Props<TabProps, 'button'>>
@@ -2535,10 +2385,6 @@ export declare function TabPanel<E extends TabPanelElementType = typeof DEFAULT_
2535
2385
  props: TabPanelProps<E>,
2536
2386
  ): JSX.Element
2537
2387
 
2538
- export declare namespace TabPanel {
2539
- var displayName: string
2540
- }
2541
-
2542
2388
  /** @public */
2543
2389
  export declare type TabPanelElementType = 'div' | 'span' | ComponentType
2544
2390
 
@@ -2571,10 +2417,6 @@ export declare type TagType = keyof JSX.IntrinsicElements
2571
2417
  declare function Text_2<E extends TextElementType = typeof DEFAULT_TEXT_ELEMENT>(
2572
2418
  props: TextProps<E>,
2573
2419
  ): JSX.Element
2574
-
2575
- declare namespace Text_2 {
2576
- var displayName: string
2577
- }
2578
2420
  export {Text_2 as Text}
2579
2421
 
2580
2422
  export {TextAlign}
@@ -2588,10 +2430,6 @@ export declare function TextArea<E extends TextAreaElementType = typeof DEFAULT_
2588
2430
  props: TextAreaProps<E>,
2589
2431
  ): JSX.Element
2590
2432
 
2591
- export declare namespace TextArea {
2592
- var displayName: string
2593
- }
2594
-
2595
2433
  /** @public */
2596
2434
  export declare type TextAreaElementType = 'textarea' | ComponentType
2597
2435
 
@@ -2636,10 +2474,6 @@ export declare function TextInput<
2636
2474
  E extends TextInputElementType = typeof DEFAULT_TEXT_INPUT_ELEMENT,
2637
2475
  >(props: TextInputProps<E>): JSX.Element
2638
2476
 
2639
- export declare namespace TextInput {
2640
- var displayName: string
2641
- }
2642
-
2643
2477
  /** @public */
2644
2478
  export declare type TextInputClearButtonProps = Omit<
2645
2479
  ButtonProps<'button'>,
@@ -2693,11 +2527,7 @@ export declare function TextSkeleton<
2693
2527
  E extends TextSkeletonElementType = typeof DEFAULT_TEXT_SKELETON_ELEMENT,
2694
2528
  >(props: TextSkeletonProps<E>): JSX.Element
2695
2529
 
2696
- export declare namespace TextSkeleton {
2697
- var displayName: string
2698
- }
2699
-
2700
- /** @public */
2530
+ /** @beta */
2701
2531
  export declare type TextSkeletonElementType = SkeletonElementType
2702
2532
 
2703
2533
  /** @beta */
@@ -2761,10 +2591,6 @@ export {ThemeColorName}
2761
2591
  /** @public */
2762
2592
  export declare function ThemeColorProvider(props: ThemeColorProviderProps): ReactElement
2763
2593
 
2764
- export declare namespace ThemeColorProvider {
2765
- var displayName: string
2766
- }
2767
-
2768
2594
  /** @public */
2769
2595
  export declare interface ThemeColorProviderProps {
2770
2596
  children?: ReactNode
@@ -2860,10 +2686,6 @@ export declare type ThemeLayer = ThemeLayer_2
2860
2686
  /** @public */
2861
2687
  export declare function ThemeProvider(props: ThemeProviderProps): ReactElement
2862
2688
 
2863
- export declare namespace ThemeProvider {
2864
- var displayName: string
2865
- }
2866
-
2867
2689
  /** @public */
2868
2690
  export declare interface ThemeProviderProps {
2869
2691
  children?: ReactNode
@@ -2889,10 +2711,6 @@ export declare function Toast<E extends ToastElementType = typeof DEFAULT_TOAST_
2889
2711
  props: ToastProps<E>,
2890
2712
  ): JSX.Element
2891
2713
 
2892
- export declare namespace Toast {
2893
- var displayName: string
2894
- }
2895
-
2896
2714
  /** @public */
2897
2715
  export declare interface ToastContextValue {
2898
2716
  version: 0.0
@@ -2927,7 +2745,9 @@ export declare type ToastOwnProps = RadiusStyleProps & {
2927
2745
  onClose?: () => void
2928
2746
  title?: ReactNode
2929
2747
  status?: 'error' | 'warning' | 'success' | 'info'
2748
+ /** @deprecated */
2930
2749
  duration?: number
2750
+ /** @deprecated */
2931
2751
  updatedAt?: number
2932
2752
  }
2933
2753
 
@@ -2951,14 +2771,10 @@ export declare type ToastProps<E extends ToastElementType = ToastElementType> =
2951
2771
  /** @public */
2952
2772
  export declare function ToastProvider(props: ToastProviderProps): React.JSX.Element
2953
2773
 
2954
- export declare namespace ToastProvider {
2955
- var displayName: string
2956
- }
2957
-
2958
2774
  /** @public */
2959
2775
  export declare interface ToastProviderProps extends Omit<ToastLayerProps, 'children'> {
2960
2776
  children?: React.ReactNode
2961
- zOffset?: number | number[]
2777
+ zOffset?: ResponsiveProp<number>
2962
2778
  }
2963
2779
 
2964
2780
  /**
@@ -2970,10 +2786,6 @@ export declare function Tooltip<E extends TooltipElementType = typeof DEFAULT_TO
2970
2786
  props: TooltipProps<E>,
2971
2787
  ): JSX.Element
2972
2788
 
2973
- export declare namespace Tooltip {
2974
- var displayName: string
2975
- }
2976
-
2977
2789
  /**
2978
2790
  * @beta
2979
2791
  */
@@ -2999,10 +2811,6 @@ export declare function TooltipDelayGroupProvider(
2999
2811
  props: TooltipDelayGroupProviderProps,
3000
2812
  ): ReactElement
3001
2813
 
3002
- export declare namespace TooltipDelayGroupProvider {
3003
- var displayName: string
3004
- }
3005
-
3006
2814
  /**
3007
2815
  * @public
3008
2816
  * */
@@ -3074,10 +2882,6 @@ export declare function Tree<E extends TreeElementType = typeof DEFAULT_TREE_ELE
3074
2882
  props: TreeProps<E>,
3075
2883
  ): JSX.Element
3076
2884
 
3077
- export declare namespace Tree {
3078
- var displayName: string
3079
- }
3080
-
3081
2885
  /**
3082
2886
  * @beta
3083
2887
  */
@@ -3104,10 +2908,6 @@ export declare function TreeItem<E extends TreeItemElementType = typeof DEFAULT_
3104
2908
  props: TreeItemProps<E>,
3105
2909
  ): JSX.Element
3106
2910
 
3107
- export declare namespace TreeItem {
3108
- var displayName: string
3109
- }
3110
-
3111
2911
  /** @beta */
3112
2912
  export declare type TreeItemElementType = 'a' | 'li' | ComponentType
3113
2913
 
@@ -3158,16 +2958,17 @@ export declare interface TreeState {
3158
2958
  | undefined
3159
2959
  }
3160
2960
 
3161
- /** @beta */
3162
2961
  /**
3163
2962
  * This API might change. DO NOT USE IN PRODUCTION.
3164
2963
  * @beta
2964
+ * @deprecated Use `useResponsiveProp` instead.
3165
2965
  */
3166
2966
  export declare function useArrayProp<T>(val: T | T[] | undefined, defaultVal?: T[]): T[]
3167
2967
 
3168
2968
  /** @public */
3169
2969
  export declare function useBoundaryElement(): BoundaryElementContextValue
3170
2970
 
2971
+ /** @public */
3171
2972
  export declare function useCard(): CardContextValue | null
3172
2973
 
3173
2974
  /**
@@ -3297,6 +3098,15 @@ export declare function usePrefersDark(getServerSnapshot?: () => boolean): boole
3297
3098
  */
3298
3099
  export declare function usePrefersReducedMotion(getServerSnapshot?: () => boolean): boolean
3299
3100
 
3101
+ /**
3102
+ * This API might change. DO NOT USE IN PRODUCTION.
3103
+ * @beta
3104
+ */
3105
+ export declare function useResponsiveProp<T>(
3106
+ val: ResponsiveProp<T> | undefined,
3107
+ defaultVal?: Partial<Record<Breakpoint, T>>,
3108
+ ): Partial<Record<Breakpoint, T>>
3109
+
3300
3110
  /** @public */
3301
3111
  export declare function useRootTheme(): ThemeContextValue
3302
3112
 
@@ -3324,10 +3134,6 @@ export declare function VirtualList<
3324
3134
  E extends VirtualListElementType = typeof DEFAULT_VIRTUAL_LIST_ELEMENT,
3325
3135
  >(props: VirtualListProps<E>): JSX.Element
3326
3136
 
3327
- export declare namespace VirtualList {
3328
- var displayName: string
3329
- }
3330
-
3331
3137
  /** @beta */
3332
3138
  export declare interface VirtualListChangeOpts {
3333
3139
  fromIndex: number