@sanity/ui 3.0.0-static.2 → 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 (829) hide show
  1. package/README.md +7 -6
  2. package/bin/{ui.js → sanity-ui.cjs} +1 -1
  3. package/dist/_chunks-cjs/_visual-editing.cjs +2488 -0
  4. package/dist/_chunks-cjs/_visual-editing.cjs.map +1 -0
  5. package/dist/_chunks-cjs/{refractor.js → refractor.cjs} +1 -2
  6. package/dist/_chunks-cjs/refractor.cjs.map +1 -0
  7. package/dist/_chunks-es/_visual-editing.js +2500 -0
  8. package/dist/_chunks-es/_visual-editing.js.map +1 -0
  9. package/dist/_chunks-es/{refractor.mjs → refractor.js} +1 -2
  10. package/dist/_chunks-es/refractor.js.map +1 -0
  11. package/dist/_visual-editing.cjs +30 -0
  12. package/dist/_visual-editing.cjs.map +1 -0
  13. package/dist/_visual-editing.d.cts +893 -0
  14. package/dist/_visual-editing.d.ts +503 -416
  15. package/dist/_visual-editing.js +29 -30
  16. package/dist/_visual-editing.js.map +1 -1
  17. package/dist/css.cjs +598 -0
  18. package/dist/css.cjs.map +1 -0
  19. package/dist/css.d.cts +14884 -0
  20. package/dist/css.d.ts +14379 -1630
  21. package/dist/css.js +480 -4594
  22. package/dist/css.js.map +1 -1
  23. package/dist/index.cjs +2222 -0
  24. package/dist/index.cjs.map +1 -0
  25. package/dist/{index.d.mts → index.d.cts} +1284 -961
  26. package/dist/index.d.ts +1284 -961
  27. package/dist/index.js +1270 -592
  28. package/dist/index.js.map +1 -1
  29. package/dist/{theme.mjs → theme.cjs} +2843 -2571
  30. package/dist/theme.cjs.map +1 -0
  31. package/dist/{theme.d.mts → theme.d.cts} +331 -311
  32. package/dist/theme.d.ts +331 -311
  33. package/dist/theme.js +2843 -2569
  34. package/dist/theme.js.map +1 -1
  35. package/dist/ui.css +22564 -0
  36. package/exports/_visual-editing.ts +0 -1
  37. package/package.json +84 -79
  38. package/src/cli/buildCommand.ts +3 -41
  39. package/src/cli/index.ts +2 -14
  40. package/src/core/_compat/helpers.ts +72 -0
  41. package/src/core/_compat/index.ts +1 -6
  42. package/src/core/_compat/styles/_responsive.ts +1 -1
  43. package/src/core/_compat/theme/theme.test.tsx +4 -5
  44. package/src/core/_compat/theme/themeColorProvider.tsx +4 -10
  45. package/src/core/_compat/theme/themeContext.ts +5 -5
  46. package/src/core/_compat/theme/themeProvider.tsx +19 -13
  47. package/src/core/_compat/theme/types.ts +2 -4
  48. package/src/core/_compat/theme/useRootTheme.ts +2 -4
  49. package/src/core/_compat/theme/useTheme.ts +3 -7
  50. package/src/core/_compat/types.ts +0 -73
  51. package/src/core/components/autocomplete/__workshop__/async.tsx +6 -6
  52. package/src/core/components/autocomplete/__workshop__/constrainedHeight.tsx +11 -18
  53. package/src/core/components/autocomplete/__workshop__/custom.tsx +21 -20
  54. package/src/core/components/autocomplete/__workshop__/example.tsx +17 -17
  55. package/src/core/components/autocomplete/__workshop__/focusAndBlur.tsx +5 -5
  56. package/src/core/components/autocomplete/__workshop__/fullscreen.tsx +57 -59
  57. package/src/core/components/autocomplete/autocomplete.tsx +106 -140
  58. package/src/core/components/autocomplete/autocompleteOption.tsx +1 -1
  59. package/src/core/components/autocomplete/autocompleteReducer.ts +1 -1
  60. package/src/core/components/autocomplete/constants.ts +1 -1
  61. package/src/core/components/autocomplete/types.ts +4 -9
  62. package/src/core/components/breadcrumbs/__workshop__/example.tsx +2 -3
  63. package/src/core/components/breadcrumbs/breadcrumbs.tsx +32 -28
  64. package/src/core/components/dialog/__workshop__/activate.tsx +4 -4
  65. package/src/core/components/dialog/__workshop__/autoFocus.tsx +2 -2
  66. package/src/core/components/dialog/__workshop__/onScroll.tsx +16 -4
  67. package/src/core/components/dialog/__workshop__/position.tsx +4 -4
  68. package/src/core/components/dialog/__workshop__/props.tsx +7 -7
  69. package/src/core/components/dialog/__workshop__/wrapped.tsx +2 -2
  70. package/src/core/components/dialog/dialog.tsx +104 -304
  71. package/src/core/components/dialog/dialogCard.tsx +190 -0
  72. package/src/core/components/dialog/dialogContext.ts +5 -3
  73. package/src/core/components/dialog/dialogProvider.tsx +6 -7
  74. package/src/core/components/dialog/isTargetWithinScope.ts +14 -0
  75. package/src/core/components/dialog/useDialog.ts +1 -1
  76. package/src/core/components/hotkeys/hotkeys.tsx +41 -27
  77. package/src/core/components/menu/__workshop__/asComponent.tsx +6 -6
  78. package/src/core/components/menu/__workshop__/closableMenuButton.tsx +5 -4
  79. package/src/core/components/menu/__workshop__/constrainedInBoundary.tsx +2 -2
  80. package/src/core/components/menu/__workshop__/customMenuItem.tsx +3 -3
  81. package/src/core/components/menu/__workshop__/disableFocusOnClose.tsx +1 -1
  82. package/src/core/components/menu/__workshop__/groups.tsx +2 -2
  83. package/src/core/components/menu/__workshop__/menuButton.tsx +4 -4
  84. package/src/core/components/menu/__workshop__/menuGroupRight.tsx +1 -1
  85. package/src/core/components/menu/__workshop__/nestedMenu.tsx +1 -1
  86. package/src/core/components/menu/__workshop__/onCloseMenuButton.tsx +13 -4
  87. package/src/core/components/menu/__workshop__/selectedItem.tsx +2 -2
  88. package/src/core/components/menu/__workshop__/tones.tsx +3 -3
  89. package/src/core/components/menu/__workshop__/withoutArrow.tsx +1 -1
  90. package/src/core/components/menu/menu.test.tsx +6 -7
  91. package/src/core/components/menu/menu.tsx +27 -35
  92. package/src/core/components/menu/menuButton.tsx +18 -24
  93. package/src/core/components/menu/menuContext.ts +1 -1
  94. package/src/core/components/menu/menuDivider.tsx +25 -15
  95. package/src/core/components/menu/menuGroup.tsx +39 -33
  96. package/src/core/components/menu/menuItem.tsx +58 -46
  97. package/src/core/components/menu/useMenu.ts +1 -1
  98. package/src/core/components/menu/useMenuController.ts +4 -4
  99. package/src/core/components/skeleton/__workshop__/delay.tsx +3 -3
  100. package/src/core/components/skeleton/__workshop__/skeleton.tsx +4 -4
  101. package/src/core/components/skeleton/codeSkeleton.tsx +49 -0
  102. package/src/core/components/skeleton/headingSkeleton.tsx +48 -0
  103. package/src/core/components/skeleton/index.ts +3 -0
  104. package/src/core/components/skeleton/labelSkeleton.tsx +47 -0
  105. package/src/core/components/skeleton/skeleton.tsx +37 -18
  106. package/src/core/components/skeleton/textSkeleton.tsx +29 -112
  107. package/src/core/components/tab/__workshop__/example.tsx +2 -2
  108. package/src/core/components/tab/tab.tsx +28 -26
  109. package/src/core/components/tab/tabList.tsx +49 -28
  110. package/src/core/components/tab/tabPanel.tsx +29 -22
  111. package/src/core/components/toast/__workshop__/hook.tsx +1 -1
  112. package/src/core/components/toast/__workshop__/toast.tsx +5 -5
  113. package/src/core/components/toast/toast.test.tsx +5 -5
  114. package/src/core/components/toast/toast.tsx +30 -57
  115. package/src/core/components/toast/toastContext.ts +1 -1
  116. package/src/core/components/toast/toastLayer.tsx +29 -13
  117. package/src/core/components/toast/toastProvider.tsx +5 -10
  118. package/src/core/components/toast/types.ts +3 -7
  119. package/src/core/components/toast/useToast.ts +2 -4
  120. package/src/core/components/tree/__workshop__/basic.perf.ts +1 -1
  121. package/src/core/components/tree/__workshop__/basic.tsx +1 -1
  122. package/src/core/components/tree/__workshop__/tabFromElement.tsx +1 -1
  123. package/src/core/components/tree/helpers.ts +1 -1
  124. package/src/core/components/tree/tree.tsx +196 -191
  125. package/src/core/components/tree/treeContext.ts +1 -1
  126. package/src/core/components/tree/treeGroup.tsx +24 -6
  127. package/src/core/components/tree/treeItem.tsx +44 -34
  128. package/src/core/components/tree/types.ts +2 -2
  129. package/src/core/components/tree/useTree.ts +1 -1
  130. package/src/core/constants.ts +6 -0
  131. package/src/core/helpers/props.ts +18 -0
  132. package/src/core/hooks/index.ts +1 -0
  133. package/src/core/hooks/useArrayProp.ts +1 -4
  134. package/src/core/hooks/useClickOutside.test.tsx +15 -16
  135. package/src/core/hooks/useClickOutside.ts +2 -6
  136. package/src/core/hooks/useClickOutsideEvent.test.tsx +4 -5
  137. package/src/core/hooks/useClickOutsideEvent.ts +3 -9
  138. package/src/core/hooks/useDelayed.test.ts +6 -7
  139. package/src/core/hooks/useDelayedState.ts +1 -1
  140. package/src/core/hooks/useElementRect/__workshop__/example.tsx +1 -1
  141. package/src/core/hooks/useElementSize.ts +1 -1
  142. package/src/core/hooks/useForwardedRef.ts +1 -1
  143. package/src/core/hooks/useMatchMedia.ts +13 -31
  144. package/src/core/hooks/useMediaIndex/__workshop__/test.tsx +1 -1
  145. package/src/core/hooks/useMediaIndex/useMediaIndex.test.tsx +3 -18
  146. package/src/core/hooks/useMediaIndex/useMediaIndex.ts +12 -12
  147. package/src/core/hooks/usePrefersDark.hydration.test.tsx +4 -4
  148. package/src/core/hooks/usePrefersDark.test.tsx +1 -0
  149. package/src/core/hooks/usePrefersReducedMotion.hydration.test.tsx +4 -4
  150. package/src/core/hooks/usePrefersReducedMotion.test.tsx +1 -0
  151. package/src/core/hooks/useResponsiveProp.ts +28 -0
  152. package/src/core/index.ts +0 -1
  153. package/src/core/lib/isArray.ts +3 -0
  154. package/src/core/middleware/origin.ts +1 -1
  155. package/src/core/primitives/_selectable/selectable.tsx +33 -24
  156. package/src/core/primitives/avatar/__workshop__/asButton.tsx +2 -2
  157. package/src/core/primitives/avatar/__workshop__/stack.tsx +2 -2
  158. package/src/core/primitives/avatar/__workshop__/withinButton.tsx +2 -2
  159. package/src/core/primitives/avatar/__workshop__/withinMenuItem.tsx +1 -1
  160. package/src/core/primitives/avatar/avatar.tsx +43 -48
  161. package/src/core/primitives/avatar/avatarCounter.tsx +46 -39
  162. package/src/core/primitives/avatar/avatarStack.tsx +44 -45
  163. package/src/core/primitives/avatar/types.ts +3 -3
  164. package/src/core/primitives/badge/__workshop__/props.tsx +6 -17
  165. package/src/core/primitives/badge/__workshop__/tones.tsx +1 -6
  166. package/src/core/primitives/badge/badge.test.tsx +2 -3
  167. package/src/core/primitives/badge/badge.tsx +34 -40
  168. package/src/core/primitives/badge/types.ts +2 -1
  169. package/src/core/primitives/box/__workshop__/props.tsx +2 -2
  170. package/src/core/primitives/box/__workshop__/responsive.tsx +2 -1
  171. package/src/core/primitives/box/box.tsx +153 -88
  172. package/src/core/primitives/button/__workshop__/custom.tsx +19 -42
  173. package/src/core/primitives/button/__workshop__/customIcons.tsx +3 -3
  174. package/src/core/primitives/button/__workshop__/disabled.tsx +9 -9
  175. package/src/core/primitives/button/__workshop__/props.tsx +19 -22
  176. package/src/core/primitives/button/__workshop__/sanityUploadButton.tsx +3 -3
  177. package/src/core/primitives/button/__workshop__/stacked.tsx +15 -16
  178. package/src/core/primitives/button/__workshop__/uploadButton.tsx +2 -1
  179. package/src/core/primitives/button/button.test.tsx +3 -18
  180. package/src/core/primitives/button/button.tsx +67 -76
  181. package/src/core/primitives/card/__workshop__/asButton.tsx +14 -14
  182. package/src/core/primitives/card/__workshop__/asComponent.tsx +3 -3
  183. package/src/core/primitives/card/__workshop__/checkered.tsx +1 -1
  184. package/src/core/primitives/card/__workshop__/index.ts +1 -1
  185. package/src/core/primitives/card/__workshop__/interactive.tsx +3 -4
  186. package/src/core/primitives/card/__workshop__/listNavigation.tsx +3 -3
  187. package/src/core/primitives/card/__workshop__/props.tsx +14 -17
  188. package/src/core/primitives/card/__workshop__/selected.tsx +10 -41
  189. package/src/core/primitives/card/__workshop__/{allTones.tsx → tones.tsx} +3 -3
  190. package/src/core/primitives/card/card.tsx +52 -48
  191. package/src/core/primitives/card/cardContext.ts +10 -0
  192. package/src/core/primitives/card/cardProvider.tsx +27 -0
  193. package/src/core/primitives/card/index.ts +2 -0
  194. package/src/core/primitives/card/types.ts +19 -3
  195. package/src/core/primitives/card/useCard.ts +9 -0
  196. package/src/core/primitives/checkbox/__workshop__/props.tsx +6 -4
  197. package/src/core/primitives/checkbox/__workshop__/tones.tsx +11 -20
  198. package/src/core/primitives/checkbox/checkbox.tsx +30 -23
  199. package/src/core/primitives/code/__workshop__/opticalAlignment.tsx +1 -1
  200. package/src/core/primitives/code/__workshop__/props.tsx +4 -7
  201. package/src/core/primitives/code/code.tsx +27 -30
  202. package/src/core/primitives/code/refractor.tsx +0 -2
  203. package/src/core/primitives/container/__workshop__/example.tsx +2 -2
  204. package/src/core/primitives/container/container.tsx +27 -25
  205. package/src/core/primitives/flex/__workshop__/example.tsx +2 -2
  206. package/src/core/primitives/flex/flex.tsx +44 -17
  207. package/src/core/primitives/grid/grid.tsx +20 -17
  208. package/src/core/primitives/heading/__workshop__/opticalAlignment.tsx +2 -2
  209. package/src/core/primitives/heading/__workshop__/plain.tsx +12 -15
  210. package/src/core/primitives/heading/heading.tsx +51 -33
  211. package/src/core/primitives/inline/__workshop__/plain.tsx +2 -5
  212. package/src/core/primitives/inline/inline.tsx +46 -27
  213. package/src/core/primitives/inline/types.ts +1 -0
  214. package/src/core/primitives/kbd/kbd.tsx +28 -28
  215. package/src/core/primitives/label/__workshop__/plain.tsx +8 -17
  216. package/src/core/primitives/label/label.tsx +49 -39
  217. package/src/core/primitives/popover/__workshop__/AlignedStory.tsx +6 -6
  218. package/src/core/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +3 -3
  219. package/src/core/primitives/popover/__workshop__/OpenOnMountStory.tsx +1 -1
  220. package/src/core/primitives/popover/__workshop__/PlainStory.tsx +3 -3
  221. package/src/core/primitives/popover/__workshop__/RecursiveStory.tsx +3 -4
  222. package/src/core/primitives/popover/__workshop__/SidePanelStory.tsx +10 -6
  223. package/src/core/primitives/popover/__workshop__/TestStory.tsx +5 -4
  224. package/src/core/primitives/popover/constants.ts +1 -1
  225. package/src/core/primitives/popover/floating-ui/size.ts +2 -2
  226. package/src/core/primitives/popover/helpers.ts +1 -1
  227. package/src/core/primitives/popover/popover.tsx +299 -335
  228. package/src/core/primitives/popover/popoverLayer.tsx +147 -0
  229. package/src/core/primitives/popover/types.ts +3 -2
  230. package/src/core/primitives/radio/__workshop__/example.tsx +3 -3
  231. package/src/core/primitives/radio/__workshop__/plain.tsx +3 -3
  232. package/src/core/primitives/radio/radio.tsx +34 -19
  233. package/src/core/primitives/select/__workshop__/plain.tsx +15 -6
  234. package/src/core/primitives/select/__workshop__/readOnly.tsx +1 -1
  235. package/src/core/primitives/select/select.tsx +28 -28
  236. package/src/core/primitives/spinner/__workshop__/Props.tsx +4 -5
  237. package/src/core/primitives/spinner/animatedSpinnerIcon.tsx +7 -9
  238. package/src/core/primitives/spinner/spinner.tsx +27 -15
  239. package/src/core/primitives/stack/__workshop__/plain.tsx +2 -2
  240. package/src/core/primitives/stack/stack.tsx +44 -20
  241. package/src/core/primitives/switch/switch.tsx +31 -17
  242. package/src/core/primitives/text/__workshop__/colored.tsx +6 -6
  243. package/src/core/primitives/text/__workshop__/example.tsx +9 -20
  244. package/src/core/primitives/text/__workshop__/opticalAlignment.tsx +1 -1
  245. package/src/core/primitives/text/text.tsx +52 -44
  246. package/src/core/primitives/textArea/__workshop__/plain.tsx +44 -33
  247. package/src/core/primitives/textArea/textArea.tsx +47 -22
  248. package/src/core/primitives/textInput/__workshop__/customValidity.tsx +2 -2
  249. package/src/core/primitives/textInput/__workshop__/plain.tsx +36 -30
  250. package/src/core/primitives/textInput/__workshop__/states.tsx +5 -5
  251. package/src/core/primitives/textInput/__workshop__/tones.tsx +2 -2
  252. package/src/core/primitives/textInput/__workshop__/typed.tsx +2 -2
  253. package/src/core/primitives/textInput/textInput.tsx +80 -106
  254. package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +5 -5
  255. package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +2 -2
  256. package/src/core/primitives/tooltip/__workshop__/props.tsx +9 -8
  257. package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +1 -1
  258. package/src/core/primitives/tooltip/constants.ts +1 -1
  259. package/src/core/primitives/tooltip/tooltip.test.tsx +61 -60
  260. package/src/core/primitives/tooltip/tooltip.tsx +107 -90
  261. package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +1 -1
  262. package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +3 -5
  263. package/src/core/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +1 -1
  264. package/src/core/primitives/tooltip/tooltipLayer.tsx +105 -0
  265. package/src/core/primitives/types.ts +19 -30
  266. package/src/core/types/avatar.ts +3 -6
  267. package/src/core/types/badge.ts +2 -4
  268. package/src/core/types/button.ts +2 -4
  269. package/src/core/types/card.ts +2 -4
  270. package/src/core/types/dialog.ts +1 -3
  271. package/src/core/types/flex.ts +3 -3
  272. package/src/core/types/props.ts +20 -10
  273. package/src/core/types/selectable.ts +1 -1
  274. package/src/core/utils/arrow/arrow.tsx +43 -28
  275. package/src/core/utils/boundaryElement/boundaryElement.test.tsx +5 -5
  276. package/src/core/utils/boundaryElement/boundaryElementContext.ts +1 -1
  277. package/src/core/utils/boundaryElement/boundaryElementProvider.tsx +4 -10
  278. package/src/core/utils/boundaryElement/types.ts +1 -3
  279. package/src/core/utils/boundaryElement/useBoundaryElement.ts +2 -4
  280. package/src/core/utils/elementQuery/__workshop__/customMedia.tsx +15 -8
  281. package/src/core/utils/elementQuery/elementQuery.tsx +41 -19
  282. package/src/core/utils/errorBoundary.tsx +6 -4
  283. package/src/core/utils/index.ts +0 -1
  284. package/src/core/utils/layer/__workshop__/multipleRoots.tsx +5 -5
  285. package/src/core/utils/layer/__workshop__/nested.tsx +3 -3
  286. package/src/core/utils/layer/__workshop__/responsiveZOffset.tsx +9 -5
  287. package/src/core/utils/layer/getLayerContext.test.ts +3 -1
  288. package/src/core/utils/layer/getLayerContext.ts +1 -1
  289. package/src/core/utils/layer/layer.test.tsx +5 -5
  290. package/src/core/utils/layer/layer.tsx +25 -95
  291. package/src/core/utils/layer/layerCard.tsx +90 -0
  292. package/src/core/utils/layer/layerContext.ts +1 -1
  293. package/src/core/utils/layer/layerProvider.tsx +20 -17
  294. package/src/core/utils/layer/useLayer.ts +2 -4
  295. package/src/core/utils/portal/__workshop__/named.tsx +3 -3
  296. package/src/core/utils/portal/portal.test.tsx +5 -5
  297. package/src/core/utils/portal/{portal.ts → portal.tsx} +17 -11
  298. package/src/core/utils/portal/portalContext.ts +1 -1
  299. package/src/core/utils/portal/portalProvider.tsx +4 -10
  300. package/src/core/utils/portal/types.ts +1 -3
  301. package/src/core/utils/portal/usePortal.ts +2 -4
  302. package/src/core/utils/srOnly/srOnly.tsx +25 -27
  303. package/src/core/utils/virtualList/__workshop__/infiniteList.tsx +1 -1
  304. package/src/core/utils/virtualList/virtualList.tsx +71 -55
  305. package/src/css/__theme/index.ts +16 -0
  306. package/src/css/__theme/lib/contract/buildVarContract.ts +78 -0
  307. package/src/css/__theme/lib/contract/index.ts +4 -0
  308. package/src/css/__theme/lib/contract/types.ts +17 -0
  309. package/src/css/__theme/resolveTheme.ts +865 -0
  310. package/src/css/_assign.ts +3 -0
  311. package/src/css/_composeClassNames.ts +12 -0
  312. package/src/css/_fromEntries.ts +3 -0
  313. package/src/css/_getClassNames.ts +9 -0
  314. package/src/css/_responsiveClassName.ts +45 -0
  315. package/src/css/_responsiveStyle.css.ts +34 -0
  316. package/src/css/_style.css.ts +9 -0
  317. package/src/css/components/breadcrumbs/breadcrumbs.css.ts +6 -0
  318. package/src/css/components/breadcrumbs/breadcrumbs.ts +5 -3
  319. package/src/css/components/dialog/dialog.css.ts +81 -0
  320. package/src/css/components/dialog/dialog.ts +20 -11
  321. package/src/css/components/index.ts +6 -0
  322. package/src/css/components/menu/menu.css.ts +14 -0
  323. package/src/css/components/menu/menu.ts +8 -5
  324. package/src/css/components/skeleton/skeleton.css.ts +132 -0
  325. package/src/css/components/skeleton/skeleton.ts +14 -9
  326. package/src/css/components/skeleton/types.ts +13 -5
  327. package/src/css/components/toast/toast.css.ts +16 -0
  328. package/src/css/components/toast/toast.ts +5 -15
  329. package/src/css/components/tree/tree.css.ts +65 -0
  330. package/src/css/components/tree/tree.ts +5 -3
  331. package/src/css/constants.ts +10 -0
  332. package/src/css/defaultTheme.css.ts +468 -0
  333. package/src/css/index.ts +12 -38
  334. package/src/css/layers.css.ts +9 -0
  335. package/src/css/primitives/_arrow/_arrow.css.ts +68 -0
  336. package/src/css/primitives/_arrow/_arrow.ts +18 -6
  337. package/src/css/primitives/_input/_input.css.ts +258 -0
  338. package/src/css/primitives/_input/input.ts +17 -14
  339. package/src/css/primitives/_input/types.ts +3 -3
  340. package/src/css/primitives/_selectable/_selectable.css.ts +121 -0
  341. package/src/css/primitives/_selectable/selectable.ts +5 -5
  342. package/src/css/primitives/_selectable/types.ts +3 -2
  343. package/src/css/primitives/avatar/avatar.css.ts +175 -0
  344. package/src/css/primitives/avatar/avatar.ts +52 -11
  345. package/src/css/primitives/avatar/types.ts +5 -3
  346. package/src/css/primitives/badge/badge.css.ts +26 -0
  347. package/src/css/primitives/badge/badge.ts +4 -4
  348. package/src/css/primitives/badge/types.ts +5 -4
  349. package/src/css/primitives/box/box.css.ts +19 -0
  350. package/src/css/primitives/box/box.ts +52 -16
  351. package/src/css/primitives/box/types.ts +46 -22
  352. package/src/css/primitives/button/button.css.ts +285 -0
  353. package/src/css/primitives/button/button.ts +15 -33
  354. package/src/css/primitives/button/index.ts +1 -0
  355. package/src/css/primitives/button/types.ts +19 -0
  356. package/src/css/primitives/card/card.css.ts +365 -0
  357. package/src/css/primitives/card/card.ts +9 -12
  358. package/src/css/primitives/card/types.ts +4 -6
  359. package/src/css/primitives/checkbox/checkbox.css.ts +193 -0
  360. package/src/css/primitives/checkbox/checkbox.ts +13 -5
  361. package/src/css/primitives/code/code.css.ts +271 -0
  362. package/src/css/primitives/code/code.ts +13 -5
  363. package/src/css/primitives/code/types.ts +4 -3
  364. package/src/css/primitives/container/container.css.ts +4 -0
  365. package/src/css/primitives/container/container.ts +12 -4
  366. package/src/css/primitives/container/types.ts +4 -2
  367. package/src/css/primitives/heading/heading.css.ts +85 -0
  368. package/src/css/primitives/heading/heading.ts +13 -11
  369. package/src/css/primitives/heading/types.ts +6 -3
  370. package/src/css/primitives/index.ts +24 -0
  371. package/src/css/primitives/kbd/kbd.css.ts +16 -0
  372. package/src/css/primitives/kbd/kbd.ts +6 -4
  373. package/src/css/primitives/kbd/types.ts +2 -3
  374. package/src/css/primitives/label/label.css.ts +85 -0
  375. package/src/css/primitives/label/label.ts +13 -10
  376. package/src/css/primitives/label/types.ts +13 -5
  377. package/src/css/primitives/popover/popover.css.ts +6 -0
  378. package/src/css/primitives/popover/popover.ts +10 -3
  379. package/src/css/primitives/radio/radio.css.ts +78 -0
  380. package/src/css/primitives/radio/radio.ts +15 -3
  381. package/src/css/primitives/select/select.css.ts +24 -0
  382. package/src/css/primitives/select/select.ts +7 -4
  383. package/src/css/primitives/select/types.ts +1 -1
  384. package/src/css/primitives/spinner/index.ts +1 -0
  385. package/src/css/primitives/spinner/spinner.css.ts +23 -0
  386. package/src/css/primitives/spinner/spinner.ts +9 -5
  387. package/src/css/primitives/spinner/types.ts +4 -0
  388. package/src/css/primitives/stack/index.ts +1 -0
  389. package/src/css/primitives/stack/stack.css.ts +6 -0
  390. package/src/css/primitives/stack/stack.ts +7 -0
  391. package/src/css/primitives/switch/switch.css.ts +98 -0
  392. package/src/css/primitives/switch/switch.ts +13 -7
  393. package/src/css/primitives/text/text.css.ts +85 -0
  394. package/src/css/primitives/text/text.ts +13 -11
  395. package/src/css/primitives/text/types.ts +9 -3
  396. package/src/css/primitives/textArea/textArea.css.ts +4 -0
  397. package/src/css/primitives/textArea/textArea.ts +5 -3
  398. package/src/css/primitives/textArea/types.ts +5 -3
  399. package/src/css/primitives/textInput/textInput.css.ts +41 -0
  400. package/src/css/primitives/textInput/textInput.ts +20 -4
  401. package/src/css/primitives/textInput/types.ts +3 -7
  402. package/src/css/primitives/tooltip/index.ts +1 -0
  403. package/src/css/primitives/tooltip/tooltip.css.ts +6 -0
  404. package/src/css/primitives/tooltip/tooltip.ts +8 -7
  405. package/src/css/primitives/tooltip/types.ts +4 -0
  406. package/src/css/props/alignItems/alignItems.css.ts +22 -0
  407. package/src/css/props/alignItems/alignItems.ts +8 -0
  408. package/src/css/props/alignItems/index.ts +2 -0
  409. package/src/css/props/alignItems/types.ts +9 -0
  410. package/src/css/props/border/border.css.ts +65 -0
  411. package/src/css/props/border/border.ts +36 -0
  412. package/src/css/props/border/types.ts +13 -0
  413. package/src/css/props/boxSizing/boxSizing.css.ts +11 -0
  414. package/src/css/props/boxSizing/boxSizing.ts +10 -0
  415. package/src/css/props/boxSizing/index.ts +2 -0
  416. package/src/css/props/boxSizing/types.ts +7 -0
  417. package/src/css/props/display/display.css.ts +56 -0
  418. package/src/css/props/display/display.ts +17 -0
  419. package/src/css/{styles → props}/display/types.ts +3 -4
  420. package/src/css/props/flex/flex.css.ts +52 -0
  421. package/src/css/props/flex/flex.ts +8 -0
  422. package/src/css/props/flex/types.ts +9 -0
  423. package/src/css/props/flexDirection/flexDirection.css.ts +19 -0
  424. package/src/css/props/flexDirection/flexDirection.ts +8 -0
  425. package/src/css/props/flexDirection/index.ts +2 -0
  426. package/src/css/props/flexDirection/types.ts +9 -0
  427. package/src/css/props/flexWrap/flexWrap.css.ts +16 -0
  428. package/src/css/props/flexWrap/flexWrap.ts +8 -0
  429. package/src/css/props/flexWrap/index.ts +2 -0
  430. package/src/css/props/flexWrap/types.ts +9 -0
  431. package/src/css/props/font/font.css.ts +93 -0
  432. package/src/css/props/font/font.ts +8 -0
  433. package/src/css/props/font/types.ts +6 -0
  434. package/src/css/props/gap/gap.css.ts +40 -0
  435. package/src/css/props/gap/gap.ts +13 -0
  436. package/src/css/{styles → props}/gap/types.ts +2 -2
  437. package/src/css/props/gridAutoColumns/gridAutoColumns.css.ts +19 -0
  438. package/src/css/props/gridAutoColumns/gridAutoColumns.ts +8 -0
  439. package/src/css/props/gridAutoColumns/index.ts +2 -0
  440. package/src/css/props/gridAutoColumns/types.ts +19 -0
  441. package/src/css/props/gridAutoFlow/gridAutoFlow.css.ts +19 -0
  442. package/src/css/props/gridAutoFlow/gridAutoFlow.ts +8 -0
  443. package/src/css/props/gridAutoFlow/index.ts +2 -0
  444. package/src/css/props/gridAutoFlow/types.ts +13 -0
  445. package/src/css/props/gridAutoRows/gridAutoRows.css.ts +19 -0
  446. package/src/css/props/gridAutoRows/gridAutoRows.ts +8 -0
  447. package/src/css/props/gridAutoRows/index.ts +2 -0
  448. package/src/css/props/gridAutoRows/types.ts +13 -0
  449. package/src/css/props/gridColumn/gridColumn.css.ts +49 -0
  450. package/src/css/props/gridColumn/gridColumn.ts +8 -0
  451. package/src/css/props/gridColumn/index.ts +2 -0
  452. package/src/css/props/gridColumn/types.ts +19 -0
  453. package/src/css/props/gridColumnEnd/gridColumnEnd.css.ts +46 -0
  454. package/src/css/props/gridColumnEnd/gridColumnEnd.ts +8 -0
  455. package/src/css/props/gridColumnEnd/index.ts +2 -0
  456. package/src/css/props/gridColumnEnd/types.ts +19 -0
  457. package/src/css/props/gridColumnStart/gridColumnStart.css.ts +46 -0
  458. package/src/css/props/gridColumnStart/gridColumnStart.ts +11 -0
  459. package/src/css/props/gridColumnStart/index.ts +2 -0
  460. package/src/css/props/gridColumnStart/types.ts +19 -0
  461. package/src/css/props/gridRow/gridRow.css.ts +49 -0
  462. package/src/css/props/gridRow/gridRow.ts +8 -0
  463. package/src/css/props/gridRow/index.ts +2 -0
  464. package/src/css/props/gridRow/types.ts +19 -0
  465. package/src/css/props/gridRowEnd/gridRowEnd.css.ts +46 -0
  466. package/src/css/props/gridRowEnd/gridRowEnd.ts +8 -0
  467. package/src/css/props/gridRowEnd/index.ts +2 -0
  468. package/src/css/props/gridRowEnd/types.ts +19 -0
  469. package/src/css/props/gridRowStart/gridRowStart.css.ts +46 -0
  470. package/src/css/props/gridRowStart/gridRowStart.ts +8 -0
  471. package/src/css/props/gridRowStart/index.ts +2 -0
  472. package/src/css/props/gridRowStart/types.ts +19 -0
  473. package/src/css/props/gridTemplateColumns/gridTemplateColumns.css.ts +43 -0
  474. package/src/css/props/gridTemplateColumns/gridTemplateColumns.ts +8 -0
  475. package/src/css/props/gridTemplateColumns/index.ts +2 -0
  476. package/src/css/props/gridTemplateColumns/types.ts +19 -0
  477. package/src/css/props/gridTemplateRows/gridTemplateRows.css.ts +43 -0
  478. package/src/css/props/gridTemplateRows/gridTemplateRows.ts +8 -0
  479. package/src/css/props/gridTemplateRows/index.ts +2 -0
  480. package/src/css/props/gridTemplateRows/types.ts +19 -0
  481. package/src/css/props/height/height.css.ts +25 -0
  482. package/src/css/props/height/height.ts +8 -0
  483. package/src/css/props/height/index.ts +2 -0
  484. package/src/css/props/height/types.ts +15 -0
  485. package/src/css/props/index.ts +37 -0
  486. package/src/css/props/inset/inset.css.ts +37 -0
  487. package/src/css/props/inset/inset.ts +21 -0
  488. package/src/css/{styles → props}/inset/types.ts +1 -1
  489. package/src/css/props/justifyContent/index.ts +2 -0
  490. package/src/css/props/justifyContent/justifyContent.css.ts +25 -0
  491. package/src/css/props/justifyContent/justifyContent.ts +8 -0
  492. package/src/css/props/justifyContent/types.ts +15 -0
  493. package/src/css/props/margin/margin.css.ts +117 -0
  494. package/src/css/props/margin/margin.ts +25 -0
  495. package/src/css/props/margin/types.ts +17 -0
  496. package/src/css/props/maxWidth/maxWidth.css.ts +32 -0
  497. package/src/css/props/maxWidth/maxWidth.ts +8 -0
  498. package/src/css/props/maxWidth/types.ts +11 -0
  499. package/src/css/props/minHeight/index.ts +2 -0
  500. package/src/css/props/minHeight/minHeight.css.ts +13 -0
  501. package/src/css/props/minHeight/minHeight.ts +8 -0
  502. package/src/css/props/minHeight/types.ts +9 -0
  503. package/src/css/props/minWidth/index.ts +2 -0
  504. package/src/css/props/minWidth/minWidth.css.ts +25 -0
  505. package/src/css/props/minWidth/minWidth.ts +8 -0
  506. package/src/css/props/minWidth/types.ts +9 -0
  507. package/src/css/props/outline/index.ts +2 -0
  508. package/src/css/props/outline/outline.css.ts +10 -0
  509. package/src/css/props/outline/outline.ts +8 -0
  510. package/src/css/props/outline/types.ts +7 -0
  511. package/src/css/props/overflow/overflow.css.ts +16 -0
  512. package/src/css/props/overflow/overflow.ts +8 -0
  513. package/src/css/props/overflow/types.ts +17 -0
  514. package/src/css/props/padding/padding.css.ts +87 -0
  515. package/src/css/props/padding/padding.ts +25 -0
  516. package/src/css/props/padding/types.ts +17 -0
  517. package/src/css/props/pointerEvents/pointerEvents.css.ts +13 -0
  518. package/src/css/props/pointerEvents/pointerEvents.ts +8 -0
  519. package/src/css/props/position/position.css.ts +22 -0
  520. package/src/css/props/position/position.ts +8 -0
  521. package/src/css/{styles → props}/position/types.ts +1 -1
  522. package/src/css/props/radius/radius.css.ts +21 -0
  523. package/src/css/props/radius/radius.ts +8 -0
  524. package/src/css/props/radius/types.ts +8 -0
  525. package/src/css/props/shadow/shadow.css.ts +23 -0
  526. package/src/css/props/shadow/shadow.ts +8 -0
  527. package/src/css/props/shadow/types.ts +8 -0
  528. package/src/css/props/textAlign/index.ts +2 -0
  529. package/src/css/props/textAlign/textAlign.css.ts +22 -0
  530. package/src/css/props/textAlign/textAlign.ts +8 -0
  531. package/src/css/props/textAlign/types.ts +7 -0
  532. package/src/css/props/textOverflow/textOverflow.css.ts +13 -0
  533. package/src/css/props/textOverflow/textOverflow.ts +8 -0
  534. package/src/css/{styles → props}/textOverflow/types.ts +5 -1
  535. package/src/css/props/width/types.ts +11 -0
  536. package/src/css/props/width/width.css.ts +28 -0
  537. package/src/css/props/width/width.ts +8 -0
  538. package/src/css/types.ts +221 -766
  539. package/src/css/util.ts +3 -8
  540. package/src/css/utils/index.ts +1 -0
  541. package/src/css/utils/srOnly/srOnly.css.ts +10 -0
  542. package/src/css/utils/srOnly/srOnly.ts +5 -3
  543. package/src/css/vars.css.ts +676 -0
  544. package/src/theme/getScopedTheme.ts +4 -4
  545. package/src/theme/index.ts +0 -5
  546. package/src/theme/types.ts +6 -10
  547. package/src/theme/v0/color/_generic.ts +1 -1
  548. package/src/theme/v0/color/button.ts +1 -1
  549. package/src/theme/v0/color/card.ts +1 -1
  550. package/src/theme/v0/color/color.ts +11 -11
  551. package/src/theme/v0/color/input.ts +1 -1
  552. package/src/theme/v0/color/muted.ts +1 -1
  553. package/src/theme/v0/color/selectable.ts +1 -1
  554. package/src/theme/v0/color/solid.ts +1 -1
  555. package/src/theme/v0/color/spot.ts +1 -1
  556. package/src/theme/v0/focusRing.ts +1 -3
  557. package/src/theme/v0/font.ts +6 -19
  558. package/src/theme/v0/layer.ts +1 -3
  559. package/src/theme/v0/shadow.ts +2 -6
  560. package/src/theme/v0/styles.ts +1 -1
  561. package/src/theme/v0/theme.ts +7 -7
  562. package/src/theme/v2/avatar.ts +2 -4
  563. package/src/theme/{build → v2/build}/_deprecated/color/_selectable/createSelectableTones.ts +3 -3
  564. package/src/theme/{build → v2/build}/_deprecated/color/_solid/createSolidTones.ts +2 -2
  565. package/src/theme/{build → v2/build}/_deprecated/color/button/createButtonModes.ts +7 -2
  566. package/src/theme/{build → v2/build}/_deprecated/color/button/createButtonTones.ts +4 -4
  567. package/src/theme/{build → v2/build}/_deprecated/color/card/createCardStates.ts +3 -3
  568. package/src/theme/{build → v2/build}/_deprecated/color/color.test.ts +1 -1
  569. package/src/theme/{build → v2/build}/_deprecated/color/defaults.ts +1 -1
  570. package/src/theme/{build → v2/build}/_deprecated/color/factory.ts +3 -3
  571. package/src/theme/{build → v2/build}/_deprecated/color/input/createInputModes.ts +7 -2
  572. package/src/theme/{build → v2/build}/_deprecated/color/muted/createMuted.ts +2 -2
  573. package/src/theme/{build → v2/build}/_deprecated/color/spot/createSpot.ts +2 -2
  574. package/src/theme/{build → v2/build}/buildColorTheme.test.ts +3 -1
  575. package/src/theme/{build → v2/build}/buildColorTheme.ts +24 -24
  576. package/src/theme/{build → v2/build}/buildTheme.test.ts +10 -8
  577. package/src/theme/v2/build/buildTheme.ts +12 -0
  578. package/src/theme/{build → v2/build}/colorToken/colorToken.ts +2 -2
  579. package/src/theme/{build → v2/build}/colorToken/compileColorToken.ts +1 -1
  580. package/src/theme/{build → v2/build}/colorToken/types.ts +2 -2
  581. package/src/theme/{build → v2/build}/lib/color-fns/blend/mix.ts +1 -1
  582. package/src/theme/{build → v2/build}/lib/color-fns/blend/multiply.ts +1 -1
  583. package/src/theme/{build → v2/build}/lib/color-fns/blend/screen.ts +1 -1
  584. package/src/theme/{build → v2/build}/lib/color-fns/color-fns.test.ts +1 -1
  585. package/src/theme/{build → v2/build}/lib/color-fns/contrastRatio.ts +5 -2
  586. package/src/theme/{build → v2/build}/lib/color-fns/convert.ts +1 -1
  587. package/src/theme/{build → v2/build}/lib/color-fns/parse.ts +1 -1
  588. package/src/theme/{build → v2/build}/mixThemeColor.test.ts +2 -0
  589. package/src/theme/{build → v2/build}/mixThemeColor.ts +1 -1
  590. package/src/theme/{build → v2/build}/renderColorTheme.ts +27 -27
  591. package/src/theme/{build → v2/build}/renderColorValue.ts +3 -3
  592. package/src/theme/{build → v2/build}/resolveColorTokens.ts +13 -13
  593. package/src/theme/v2/color/_helpers.ts +2 -2
  594. package/src/theme/v2/color/_system.ts +2 -4
  595. package/src/theme/v2/color/avatar.ts +3 -7
  596. package/src/theme/v2/color/badge.ts +3 -7
  597. package/src/theme/v2/color/button.ts +5 -11
  598. package/src/theme/v2/color/color.ts +10 -16
  599. package/src/theme/v2/color/input.ts +8 -10
  600. package/src/theme/v2/color/kbd.ts +1 -3
  601. package/src/theme/v2/color/selectable.ts +4 -8
  602. package/src/theme/v2/color/state.ts +5 -7
  603. package/src/theme/v2/color/syntax.ts +1 -3
  604. package/src/theme/{config → v2/config}/helpers.ts +6 -13
  605. package/src/theme/{config → v2/config}/system.ts +11 -12
  606. package/src/theme/{config → v2/config}/tokens/color/types.ts +14 -10
  607. package/src/theme/{config → v2/config}/tokens/index.ts +0 -1
  608. package/src/theme/{config → v2/config}/tokens/parseTokenValue.test.ts +2 -0
  609. package/src/theme/{config → v2/config}/tokens/parseTokenValue.ts +2 -2
  610. package/src/theme/{config → v2/config}/tokens/types.ts +3 -3
  611. package/src/theme/{config → v2/config}/types.ts +8 -6
  612. package/src/theme/{defaults → v2/defaults}/colorPalette.ts +1 -1
  613. package/src/theme/{defaults → v2/defaults}/colorTokens.ts +3 -3
  614. package/src/theme/{defaults → v2/defaults}/config.ts +2 -2
  615. package/src/theme/{defaults → v2/defaults}/fonts.ts +5 -6
  616. package/src/theme/v2/index.ts +2 -0
  617. package/src/theme/v2/input.ts +2 -4
  618. package/src/theme/v2/theme.ts +10 -14
  619. package/src/theme/{_constants.ts → v3/_constants.ts} +6 -3
  620. package/src/theme/v3/{color/parseColor.ts → _parseColorToken.ts} +59 -46
  621. package/src/theme/v3/buildTheme_v3.ts +20 -11
  622. package/src/theme/v3/color/_constants.ts +15 -0
  623. package/src/theme/v3/color/avatar.ts +14 -0
  624. package/src/theme/v3/color/card.ts +58 -95
  625. package/src/theme/v3/color/color.ts +75 -71
  626. package/src/theme/v3/color/element.ts +8 -8
  627. package/src/theme/v3/color/index.ts +2 -2
  628. package/src/theme/v3/color/token.ts +19 -4
  629. package/src/theme/v3/color/tokens.ts +2 -2
  630. package/src/theme/v3/defaultFonts.ts +250 -0
  631. package/src/theme/v3/defaultTokens.ts +199 -0
  632. package/src/theme/v3/index.ts +4 -1
  633. package/src/theme/{palette → v3/palette}/constants.ts +3 -3
  634. package/src/theme/v3/palette/types.ts +7 -0
  635. package/src/theme/v3/resolveTokens.ts +70 -65
  636. package/src/theme/v3/tokens.ts +2 -2
  637. package/src/theme/v3/types.ts +97 -12
  638. package/src/theme/versioning/getTheme_v2.ts +3 -3
  639. package/src/theme/versioning/is_v0.ts +2 -2
  640. package/src/theme/versioning/is_v2.ts +2 -2
  641. package/src/theme/versioning/themeColor_v0_v2.ts +2 -2
  642. package/src/theme/versioning/themeColor_v2_v2_9.ts +1 -1
  643. package/src/theme/versioning/themeColor_v3_v2.ts +229 -52
  644. package/src/theme/versioning/v0_v2.ts +3 -3
  645. package/src/theme/versioning/v2_v0.ts +4 -4
  646. package/src/theme/versioning/v3_v2.ts +62 -40
  647. package/dist/_chunks-cjs/_visual-editing.js +0 -3059
  648. package/dist/_chunks-cjs/_visual-editing.js.map +0 -1
  649. package/dist/_chunks-cjs/buildCommand.js +0 -32
  650. package/dist/_chunks-cjs/buildCommand.js.map +0 -1
  651. package/dist/_chunks-cjs/refractor.js.map +0 -1
  652. package/dist/_chunks-cjs/v3_v2.js +0 -251
  653. package/dist/_chunks-cjs/v3_v2.js.map +0 -1
  654. package/dist/_chunks-es/_visual-editing.mjs +0 -3066
  655. package/dist/_chunks-es/_visual-editing.mjs.map +0 -1
  656. package/dist/_chunks-es/refractor.mjs.map +0 -1
  657. package/dist/_chunks-es/v3_v2.mjs +0 -252
  658. package/dist/_chunks-es/v3_v2.mjs.map +0 -1
  659. package/dist/_visual-editing.d.mts +0 -806
  660. package/dist/_visual-editing.mjs +0 -31
  661. package/dist/_visual-editing.mjs.map +0 -1
  662. package/dist/cli.d.ts +0 -1
  663. package/dist/cli.js +0 -357
  664. package/dist/cli.js.map +0 -1
  665. package/dist/css.d.mts +0 -2135
  666. package/dist/css.mjs +0 -4713
  667. package/dist/css.mjs.map +0 -1
  668. package/dist/index.mjs +0 -1542
  669. package/dist/index.mjs.map +0 -1
  670. package/dist/sanity-palette.css +0 -9
  671. package/dist/sanity-theme.css +0 -1
  672. package/dist/system.css +0 -3577
  673. package/dist/theme.mjs.map +0 -1
  674. package/src/core/StyleTags.tsx +0 -24
  675. package/src/core/primitives/popover/popoverCard.tsx +0 -148
  676. package/src/core/primitives/tooltip/tooltipCard.tsx +0 -115
  677. package/src/core/utils/conditionalWrapper/conditionalWrapper.tsx +0 -23
  678. package/src/core/utils/conditionalWrapper/index.ts +0 -1
  679. package/src/css/_resp.ts +0 -31
  680. package/src/css/compile/compilePalette.ts +0 -60
  681. package/src/css/compile/compileRule.ts +0 -90
  682. package/src/css/compile/compileRules.test.ts +0 -35
  683. package/src/css/compile/compileRules.ts +0 -40
  684. package/src/css/compile/compileSystem.ts +0 -7
  685. package/src/css/compile/compileTheme.ts +0 -15
  686. package/src/css/compile/compileTheme_v3.ts +0 -410
  687. package/src/css/compile/types.ts +0 -6
  688. package/src/css/components/breadcrumbs/rules.ts +0 -25
  689. package/src/css/components/dialog/rules.ts +0 -76
  690. package/src/css/components/menu/rules.ts +0 -15
  691. package/src/css/components/skeleton/rules.ts +0 -112
  692. package/src/css/components/toast/rules.ts +0 -17
  693. package/src/css/components/tree/rules.ts +0 -168
  694. package/src/css/composeClassNames.ts +0 -13
  695. package/src/css/primitives/_arrow/rules.ts +0 -71
  696. package/src/css/primitives/_input/rules.ts +0 -163
  697. package/src/css/primitives/_selectable/__style.ts +0 -117
  698. package/src/css/primitives/_selectable/_contants.ts +0 -11
  699. package/src/css/primitives/_selectable/rules.ts +0 -129
  700. package/src/css/primitives/avatar/rules.ts +0 -176
  701. package/src/css/primitives/badge/rules.ts +0 -22
  702. package/src/css/primitives/box/rules.ts +0 -28
  703. package/src/css/primitives/button/_constants.ts +0 -17
  704. package/src/css/primitives/button/rules.ts +0 -293
  705. package/src/css/primitives/card/_constants.ts +0 -13
  706. package/src/css/primitives/card/rules.ts +0 -471
  707. package/src/css/primitives/checkbox/__styles.ts +0 -129
  708. package/src/css/primitives/checkbox/rules.ts +0 -152
  709. package/src/css/primitives/code/rules.ts +0 -96
  710. package/src/css/primitives/container/rules.ts +0 -8
  711. package/src/css/primitives/heading/rules.ts +0 -155
  712. package/src/css/primitives/kbd/rules.ts +0 -20
  713. package/src/css/primitives/label/rules.ts +0 -137
  714. package/src/css/primitives/popover/rules.ts +0 -5
  715. package/src/css/primitives/radio/rules.ts +0 -121
  716. package/src/css/primitives/select/rules.ts +0 -22
  717. package/src/css/primitives/spinner/rules.ts +0 -20
  718. package/src/css/primitives/switch/rules.ts +0 -340
  719. package/src/css/primitives/text/rules.ts +0 -164
  720. package/src/css/primitives/textArea/rules.ts +0 -7
  721. package/src/css/primitives/textInput/rules.ts +0 -224
  722. package/src/css/primitives/token/rules.ts +0 -45
  723. package/src/css/primitives/tooltip/rules.ts +0 -19
  724. package/src/css/responsiveRules.ts +0 -25
  725. package/src/css/rules.ts +0 -113
  726. package/src/css/styles/border/border.ts +0 -22
  727. package/src/css/styles/border/rules.ts +0 -24
  728. package/src/css/styles/border/types.ts +0 -10
  729. package/src/css/styles/display/display.ts +0 -7
  730. package/src/css/styles/display/rules.ts +0 -62
  731. package/src/css/styles/flex/flex.ts +0 -20
  732. package/src/css/styles/flex/rules.ts +0 -28
  733. package/src/css/styles/flex/types.ts +0 -35
  734. package/src/css/styles/flexItem/flexItem.ts +0 -8
  735. package/src/css/styles/flexItem/index.ts +0 -2
  736. package/src/css/styles/flexItem/rules.ts +0 -12
  737. package/src/css/styles/flexItem/types.ts +0 -11
  738. package/src/css/styles/font/font.ts +0 -17
  739. package/src/css/styles/font/rules.ts +0 -148
  740. package/src/css/styles/font/types.ts +0 -12
  741. package/src/css/styles/gap/gap.ts +0 -8
  742. package/src/css/styles/gap/rules.ts +0 -34
  743. package/src/css/styles/grid/grid.ts +0 -13
  744. package/src/css/styles/grid/index.ts +0 -2
  745. package/src/css/styles/grid/rules.ts +0 -146
  746. package/src/css/styles/grid/types.ts +0 -29
  747. package/src/css/styles/gridItem/gridItem.ts +0 -15
  748. package/src/css/styles/gridItem/index.ts +0 -2
  749. package/src/css/styles/gridItem/rules.ts +0 -96
  750. package/src/css/styles/gridItem/types.ts +0 -41
  751. package/src/css/styles/height/rules.ts +0 -7
  752. package/src/css/styles/index.ts +0 -19
  753. package/src/css/styles/inset/inset.ts +0 -13
  754. package/src/css/styles/inset/rules.ts +0 -16
  755. package/src/css/styles/margin/margin.ts +0 -15
  756. package/src/css/styles/margin/rules.ts +0 -64
  757. package/src/css/styles/margin/types.ts +0 -11
  758. package/src/css/styles/maxWidth/maxWidth.ts +0 -6
  759. package/src/css/styles/maxWidth/rules.ts +0 -13
  760. package/src/css/styles/maxWidth/types.ts +0 -7
  761. package/src/css/styles/outline/rules.ts +0 -7
  762. package/src/css/styles/overflow/overflow.ts +0 -11
  763. package/src/css/styles/overflow/rules.ts +0 -9
  764. package/src/css/styles/overflow/types.ts +0 -11
  765. package/src/css/styles/padding/padding.ts +0 -15
  766. package/src/css/styles/padding/rules.ts +0 -62
  767. package/src/css/styles/padding/types.ts +0 -14
  768. package/src/css/styles/pointerEvents/pointerEvents.ts +0 -6
  769. package/src/css/styles/pointerEvents/rules.ts +0 -11
  770. package/src/css/styles/position/position.ts +0 -7
  771. package/src/css/styles/position/rules.ts +0 -24
  772. package/src/css/styles/radius/radius.ts +0 -8
  773. package/src/css/styles/radius/rules.ts +0 -13
  774. package/src/css/styles/radius/types.ts +0 -8
  775. package/src/css/styles/shadow/rules.ts +0 -53
  776. package/src/css/styles/shadow/shadow.ts +0 -7
  777. package/src/css/styles/shadow/types.ts +0 -8
  778. package/src/css/styles/textOverflow/rules.ts +0 -17
  779. package/src/css/styles/textOverflow/textOverflow.ts +0 -6
  780. package/src/css/styles/width/rules.ts +0 -7
  781. package/src/css/styles/width/types.ts +0 -9
  782. package/src/css/styles/width/width.ts +0 -6
  783. package/src/css/utils/srOnly/rules.ts +0 -11
  784. package/src/css/varNames.ts +0 -473
  785. package/src/css/vars.ts +0 -443
  786. package/src/theme/_types.ts +0 -41
  787. package/src/theme/build/buildTheme.ts +0 -12
  788. package/src/theme/build/theme.test.ts +0 -27
  789. package/src/theme/config/tokens/parseTokenKey.test.ts +0 -64
  790. package/src/theme/config/tokens/parseTokenKey.ts +0 -67
  791. package/src/theme/palette/types.ts +0 -16
  792. package/src/theme/v3/buildTheme_v3.test.ts +0 -40
  793. package/src/theme/v3/color/buildColor_v3.ts +0 -193
  794. package/src/theme/v3/color/parseColor.test.ts +0 -79
  795. package/src/theme/v3/color/renderColor.test.ts +0 -19
  796. package/src/theme/v3/color/renderColor.ts +0 -33
  797. package/src/theme/v3/defaults.ts +0 -205
  798. /package/src/core/components/autocomplete/{__mocks__ → __workshop__/mock}/apiStore.ts +0 -0
  799. /package/src/core/components/autocomplete/{__mocks__ → __workshop__/mock}/countries.ts +0 -0
  800. /package/src/css/{styles → props}/border/index.ts +0 -0
  801. /package/src/css/{styles → props}/display/index.ts +0 -0
  802. /package/src/css/{styles → props}/flex/index.ts +0 -0
  803. /package/src/css/{styles → props}/font/index.ts +0 -0
  804. /package/src/css/{styles → props}/gap/index.ts +0 -0
  805. /package/src/css/{styles → props}/inset/index.ts +0 -0
  806. /package/src/css/{styles → props}/margin/index.ts +0 -0
  807. /package/src/css/{styles → props}/maxWidth/index.ts +0 -0
  808. /package/src/css/{styles → props}/overflow/index.ts +0 -0
  809. /package/src/css/{styles → props}/padding/index.ts +0 -0
  810. /package/src/css/{styles → props}/pointerEvents/index.ts +0 -0
  811. /package/src/css/{styles → props}/pointerEvents/types.ts +0 -0
  812. /package/src/css/{styles → props}/position/index.ts +0 -0
  813. /package/src/css/{styles → props}/radius/index.ts +0 -0
  814. /package/src/css/{styles → props}/shadow/index.ts +0 -0
  815. /package/src/css/{styles → props}/textOverflow/index.ts +0 -0
  816. /package/src/css/{styles → props}/width/index.ts +0 -0
  817. /package/src/theme/{build → v2/build}/_deprecated/color/index.ts +0 -0
  818. /package/src/theme/{build → v2/build}/colorToken/index.ts +0 -0
  819. /package/src/theme/{build → v2/build}/index.ts +0 -0
  820. /package/src/theme/{build → v2/build}/lib/color-fns/blend/index.ts +0 -0
  821. /package/src/theme/{build → v2/build}/lib/color-fns/index.ts +0 -0
  822. /package/src/theme/{build → v2/build}/lib/color-fns/rgba.ts +0 -0
  823. /package/src/theme/{build → v2/build}/lib/color-fns/types.ts +0 -0
  824. /package/src/theme/{build → v2/build}/lib/isRecord.ts +0 -0
  825. /package/src/theme/{build → v2/build}/lib/utils.ts +0 -0
  826. /package/src/theme/{build → v2/build}/merge.ts +0 -0
  827. /package/src/theme/{config → v2/config}/index.ts +0 -0
  828. /package/src/theme/{config → v2/config}/tokens/color/index.ts +0 -0
  829. /package/src/theme/{palette → v3/palette}/index.ts +0 -0
package/dist/css.d.mts DELETED
@@ -1,2135 +0,0 @@
1
- import {AvatarSize} from '@sanity/ui/theme'
2
- import {ColorHueKey} from '@sanity/color'
3
- import {ContainerWidth} from '@sanity/ui/theme'
4
- import {default as CSS_2} from 'csstype'
5
- import {FontCodeSize} from '@sanity/ui/theme'
6
- import {FontHeadingSize} from '@sanity/ui/theme'
7
- import {FontLabelSize} from '@sanity/ui/theme'
8
- import {FontTextSize} from '@sanity/ui/theme'
9
- import {FontWeight} from '@sanity/ui/theme'
10
- import {Hue as Hue_2} from '@sanity/ui/theme'
11
- import {PaletteConfig as PaletteConfig_2} from '@sanity/ui/theme'
12
- import {Radius} from '@sanity/ui/theme'
13
- import {RootTheme} from '@sanity/ui/theme'
14
- import {Shadow} from '@sanity/ui/theme'
15
- import {Space} from '@sanity/ui/theme'
16
- import type {StyledObject} from 'styled-components'
17
- import {ThemeBoxShadow as ThemeBoxShadow_2} from '@sanity/ui/theme'
18
- import {ThemeColorAvatarColorKey as ThemeColorAvatarColorKey_2} from '@sanity/ui/theme'
19
- import {ThemeColorButtonModeKey as ThemeColorButtonModeKey_2} from '@sanity/ui/theme'
20
- import {ThemeColorCardToneKey as ThemeColorCardToneKey_2} from '@sanity/ui/theme'
21
- import {ThemeColorSchemeKey as ThemeColorSchemeKey_2} from '@sanity/ui/theme'
22
- import {ThemeColorStateToneKey as ThemeColorStateToneKey_2} from '@sanity/ui/theme'
23
- import {Tint as Tint_2} from '@sanity/ui/theme'
24
-
25
- export declare function animatedSpinnerIcon(): string | undefined
26
-
27
- /** @internal */
28
- export declare function _arrow(): string | undefined
29
-
30
- export declare function _arrowShape(): string
31
-
32
- export declare function _arrowStroke(): string
33
-
34
- export declare function avatar(props: AvatarStyleProps): string | undefined
35
-
36
- export declare function avatarArrow(): string | undefined
37
-
38
- export declare function avatarCounter(props: {size?: AvatarStyleProps['size']}): string | undefined
39
-
40
- export declare function avatarImage(): string | undefined
41
-
42
- export declare function avatarInitials(): string | undefined
43
-
44
- export declare type AvatarScopedVarName =
45
- | `--avatar-bg-color`
46
- | `--avatar-fg-color`
47
- | `--avatar-distance`
48
- | `--avatar-size`
49
-
50
- export declare function avatarStack(props: {size?: AvatarStyleProps['size']}): string | undefined
51
-
52
- export declare interface AvatarStyleProps {
53
- color: ThemeColorAvatarColorKey_2
54
- size: ResponsiveProp<AvatarSize>
55
- }
56
-
57
- /** @public */
58
- export declare function badge(props: BadgeStyleProps): string | undefined
59
-
60
- /** @public */
61
- export declare interface BadgeStyleProps extends RadiusStyleProps {
62
- tone: ThemeColorStateToneKey_2
63
- }
64
-
65
- /** @public */
66
- export declare function border(props: BorderStyleProps): string | undefined
67
-
68
- /** @public */
69
- export declare interface BorderStyleProps {
70
- border?: ResponsiveProp<boolean>
71
- borderTop?: ResponsiveProp<boolean>
72
- borderRight?: ResponsiveProp<boolean>
73
- borderBottom?: ResponsiveProp<boolean>
74
- borderLeft?: ResponsiveProp<boolean>
75
- }
76
-
77
- /** @public */
78
- export declare function box(props: BoxStyleProps): string | undefined
79
-
80
- /**
81
- * @public
82
- */
83
- export declare type BoxHeight = 'stretch' | 'fill'
84
-
85
- /** @public */
86
- export declare type BoxOverflow = 'visible' | 'hidden' | 'auto'
87
-
88
- /**
89
- * @public
90
- */
91
- export declare type BoxSizing = 'content' | 'border'
92
-
93
- /** @public */
94
- export declare interface BoxStyleProps
95
- extends BorderStyleProps,
96
- DisplayStyleProps,
97
- FlexStyleProps,
98
- FlexItemStyleProps,
99
- GapStyleProps,
100
- GridStyleProps,
101
- GridItemStyleProps,
102
- InsetStyleProps,
103
- MarginStyleProps,
104
- MaxWidthStyleProps,
105
- OverflowStyleProps,
106
- PaddingStyleProps,
107
- PointerEventsStyleProps,
108
- PositionStyleProps,
109
- RadiusStyleProps,
110
- WidthStyleProps {
111
- height?: ResponsiveProp<BoxHeight>
112
- muted?: boolean
113
- outline?: 'none'
114
- sizing?: ResponsiveProp<BoxSizing>
115
- }
116
-
117
- export declare function breadcrumbs(): string | undefined
118
-
119
- export declare function button(props: ButtonStyleProps): string | undefined
120
-
121
- export declare function buttonLoadingBox(): string | undefined
122
-
123
- export declare interface ButtonStyleProps
124
- extends DisplayStyleProps,
125
- FlexItemStyleProps,
126
- RadiusStyleProps,
127
- WidthStyleProps {
128
- mode?: ThemeColorButtonModeKey_2
129
- tone?: ThemeColorStateToneKey_2
130
- }
131
-
132
- export declare function card(props: CardStyleProps): string | undefined
133
-
134
- /** @public */
135
- declare interface CardColorTokens {
136
- _hue: Hue
137
- avatar: Record<
138
- Hue,
139
- {
140
- _hue: Hue
141
- bg: [ColorToken, ColorToken]
142
- fg: [ColorToken, ColorToken]
143
- }
144
- >
145
- backdrop: [ColorToken, ColorToken]
146
- focusRing: [ColorToken, ColorToken]
147
- link: {
148
- fg: [ColorToken, ColorToken]
149
- }
150
- shadow: {
151
- outline: [ColorToken, ColorToken]
152
- umbra: [ColorToken, ColorToken]
153
- penumbra: [ColorToken, ColorToken]
154
- ambient: [ColorToken, ColorToken]
155
- }
156
- skeleton: {
157
- from: [ColorToken, ColorToken]
158
- to: [ColorToken, ColorToken]
159
- }
160
- token: {
161
- atrule: [ColorToken, ColorToken]
162
- attrName: [ColorToken, ColorToken]
163
- attrValue: [ColorToken, ColorToken]
164
- attribute: [ColorToken, ColorToken]
165
- boolean: [ColorToken, ColorToken]
166
- builtin: [ColorToken, ColorToken]
167
- cdata: [ColorToken, ColorToken]
168
- char: [ColorToken, ColorToken]
169
- class: [ColorToken, ColorToken]
170
- className: [ColorToken, ColorToken]
171
- comment: [ColorToken, ColorToken]
172
- constant: [ColorToken, ColorToken]
173
- deleted: [ColorToken, ColorToken]
174
- doctype: [ColorToken, ColorToken]
175
- entity: [ColorToken, ColorToken]
176
- function: [ColorToken, ColorToken]
177
- hexcode: [ColorToken, ColorToken]
178
- id: [ColorToken, ColorToken]
179
- important: [ColorToken, ColorToken]
180
- inserted: [ColorToken, ColorToken]
181
- keyword: [ColorToken, ColorToken]
182
- number: [ColorToken, ColorToken]
183
- operator: [ColorToken, ColorToken]
184
- prolog: [ColorToken, ColorToken]
185
- property: [ColorToken, ColorToken]
186
- pseudoClass: [ColorToken, ColorToken]
187
- pseudoElement: [ColorToken, ColorToken]
188
- punctuation: [ColorToken, ColorToken]
189
- regex: [ColorToken, ColorToken]
190
- selector: [ColorToken, ColorToken]
191
- string: [ColorToken, ColorToken]
192
- symbol: [ColorToken, ColorToken]
193
- tag: [ColorToken, ColorToken]
194
- unit: [ColorToken, ColorToken]
195
- url: [ColorToken, ColorToken]
196
- variable: [ColorToken, ColorToken]
197
- }
198
- variant: {
199
- solid: Record<'*' | ThemeColorStateToneKey, ElementColorTokens>
200
- tinted: Record<'*' | ThemeColorStateToneKey, ElementColorTokens>
201
- }
202
- }
203
-
204
- /** @public */
205
- export declare type CardScopedVarName =
206
- | `--color-accent-fg`
207
- | `--color-avatar-bg`
208
- | `--color-avatar-fg`
209
- | `--color-avatar-${ThemeColorAvatarColorKey_2}-bg`
210
- | `--color-avatar-${ThemeColorAvatarColorKey_2}-fg`
211
- | `--color-backdrop`
212
- | `--color-${ElementColorVariant}-${ThemeColorStateToneKey_2}-${ElementColorVariantKey}`
213
- | `--color-bg`
214
- | `--color-border`
215
- | `--color-code-bg`
216
- | `--color-code-fg`
217
- | `--color-fg`
218
- | `--color-focus-ring`
219
- | `--color-link-fg`
220
- | `--color-muted-bg`
221
- | `--color-muted-fg`
222
- | `--color-shadow-outline`
223
- | `--color-shadow-umbra`
224
- | `--color-shadow-penumbra`
225
- | `--color-shadow-ambient`
226
- | `--color-skeleton-from`
227
- | `--color-skeleton-to`
228
- | `--color-token-atrule`
229
- | `--color-token-attr-name`
230
- | `--color-token-attr-value`
231
- | `--color-token-attribute`
232
- | `--color-token-boolean`
233
- | `--color-token-builtin`
234
- | `--color-token-cdata`
235
- | `--color-token-char`
236
- | `--color-token-class`
237
- | `--color-token-class-name`
238
- | `--color-token-comment`
239
- | `--color-token-constant`
240
- | `--color-token-deleted`
241
- | `--color-token-doctype`
242
- | `--color-token-entity`
243
- | `--color-token-function`
244
- | `--color-token-hexcode`
245
- | `--color-token-id`
246
- | `--color-token-important`
247
- | `--color-token-inserted`
248
- | `--color-token-keyword`
249
- | `--color-token-number`
250
- | `--color-token-operator`
251
- | `--color-token-prolog`
252
- | `--color-token-property`
253
- | `--color-token-pseudo-class`
254
- | `--color-token-pseudo-element`
255
- | `--color-token-punctuation`
256
- | `--color-token-regex`
257
- | `--color-token-selector`
258
- | `--color-token-string`
259
- | `--color-token-symbol`
260
- | `--color-token-tag`
261
- | `--color-token-unit`
262
- | `--color-token-url`
263
- | `--color-token-variable`
264
- | `--color-checkbox-bg`
265
- | `--color-checkbox-fg`
266
- | `--color-checkbox-border`
267
- | `--font-ascender-height`
268
- | `--font-descender-height`
269
- | `--font-family`
270
- | `--font-feature-settings`
271
- | `--font-icon-offset`
272
- | `--font-icon-size`
273
- | `--font-letter-spacing`
274
- | `--font-line-height`
275
- | `--font-size`
276
- | `--font-skeleton-line-height`
277
- | `--font-skeleton-ascender-height`
278
- | `--font-skeleton-descender-height`
279
- | `--font-weight-regular`
280
- | `--font-weight-medium`
281
- | `--font-weight-semibold`
282
- | `--font-weight-bold`
283
- | `--font-weight`
284
- | `--fg-color`
285
- | `--padding-top`
286
- | `--padding-right`
287
- | `--padding-bottom`
288
- | `--padding-left`
289
-
290
- export declare interface CardStyleProps extends BoxStyleProps, ShadowStyleProps {
291
- checkered?: boolean
292
- selectable?: boolean
293
- scheme?: ThemeColorSchemeKey_2
294
- tone?: ThemeColorCardToneKey_2 | 'inherit'
295
- }
296
-
297
- export declare function checkbox(): string | undefined
298
-
299
- export declare function checkboxInput(): string | undefined
300
-
301
- /** @public */
302
- export declare function code(props: CodeStyleProps): string | undefined
303
-
304
- /** @public */
305
- export declare type CodeSize = number
306
-
307
- export declare function codeSkeleton(props: CodeSkeletonStyleProps): string | undefined
308
-
309
- export declare interface CodeSkeletonStyleProps {
310
- size?: ResponsiveProp<FontCodeSize>
311
- }
312
-
313
- /** @public */
314
- export declare interface CodeStyleProps extends FontStyleProps {
315
- size?: ResponsiveProp<CodeSize>
316
- }
317
-
318
- /** @public */
319
- export declare interface ColorAvatarColorVarNames {
320
- bg: CSSVarName
321
- fg: CSSVarName
322
- }
323
-
324
- /** @public */
325
- export declare interface ColorAvatarColorVars {
326
- bg: CSSVar
327
- fg: CSSVar
328
- }
329
-
330
- /** @public */
331
- export declare type ColorAvatarVars = Record<ThemeColorAvatarColorKey_2, ColorAvatarColorVars>
332
-
333
- /** @public */
334
- export declare interface ColorBadgeToneVars {
335
- bg: CSSVar
336
- dot: CSSVar
337
- fg: CSSVar
338
- icon: CSSVar
339
- }
340
-
341
- /** @public */
342
- export declare type ColorBadgeVars = Record<ThemeColorStateToneKey_2, ColorBadgeToneVars>
343
-
344
- export declare type ColorCardToneScopedVarName =
345
- | `--color-${ThemeColorCardToneKey_2}-accent-fg`
346
- | `--color-${ThemeColorCardToneKey_2}-avatar-${ThemeColorAvatarColorKey_2}-bg`
347
- | `--color-${ThemeColorCardToneKey_2}-avatar-${ThemeColorAvatarColorKey_2}-fg`
348
- | `--color-${ThemeColorCardToneKey_2}-backdrop`
349
- | `--color-${ThemeColorCardToneKey_2}-focus-ring`
350
- | `--color-${ThemeColorCardToneKey_2}-link-fg`
351
- | `--color-${ThemeColorCardToneKey_2}-muted-bg`
352
- | `--color-${ThemeColorCardToneKey_2}-muted-fg`
353
- | `--color-${ThemeColorCardToneKey_2}-${ElementColorVariant}-${ThemeColorStateToneKey_2}-${ElementColorVariantKey}`
354
- | `--color-${ThemeColorCardToneKey_2}-shadow-outline`
355
- | `--color-${ThemeColorCardToneKey_2}-shadow-umbra`
356
- | `--color-${ThemeColorCardToneKey_2}-shadow-penumbra`
357
- | `--color-${ThemeColorCardToneKey_2}-shadow-ambient`
358
- | `--color-${ThemeColorCardToneKey_2}-skeleton-from`
359
- | `--color-${ThemeColorCardToneKey_2}-skeleton-to`
360
- | `--color-${ThemeColorCardToneKey_2}-token-atrule`
361
- | `--color-${ThemeColorCardToneKey_2}-token-attr-name`
362
- | `--color-${ThemeColorCardToneKey_2}-token-attr-value`
363
- | `--color-${ThemeColorCardToneKey_2}-token-attribute`
364
- | `--color-${ThemeColorCardToneKey_2}-token-boolean`
365
- | `--color-${ThemeColorCardToneKey_2}-token-builtin`
366
- | `--color-${ThemeColorCardToneKey_2}-token-cdata`
367
- | `--color-${ThemeColorCardToneKey_2}-token-char`
368
- | `--color-${ThemeColorCardToneKey_2}-token-class`
369
- | `--color-${ThemeColorCardToneKey_2}-token-class-name`
370
- | `--color-${ThemeColorCardToneKey_2}-token-comment`
371
- | `--color-${ThemeColorCardToneKey_2}-token-constant`
372
- | `--color-${ThemeColorCardToneKey_2}-token-deleted`
373
- | `--color-${ThemeColorCardToneKey_2}-token-doctype`
374
- | `--color-${ThemeColorCardToneKey_2}-token-entity`
375
- | `--color-${ThemeColorCardToneKey_2}-token-function`
376
- | `--color-${ThemeColorCardToneKey_2}-token-hexcode`
377
- | `--color-${ThemeColorCardToneKey_2}-token-id`
378
- | `--color-${ThemeColorCardToneKey_2}-token-important`
379
- | `--color-${ThemeColorCardToneKey_2}-token-inserted`
380
- | `--color-${ThemeColorCardToneKey_2}-token-keyword`
381
- | `--color-${ThemeColorCardToneKey_2}-token-number`
382
- | `--color-${ThemeColorCardToneKey_2}-token-operator`
383
- | `--color-${ThemeColorCardToneKey_2}-token-prolog`
384
- | `--color-${ThemeColorCardToneKey_2}-token-property`
385
- | `--color-${ThemeColorCardToneKey_2}-token-pseudo-class`
386
- | `--color-${ThemeColorCardToneKey_2}-token-pseudo-element`
387
- | `--color-${ThemeColorCardToneKey_2}-token-punctuation`
388
- | `--color-${ThemeColorCardToneKey_2}-token-regex`
389
- | `--color-${ThemeColorCardToneKey_2}-token-selector`
390
- | `--color-${ThemeColorCardToneKey_2}-token-string`
391
- | `--color-${ThemeColorCardToneKey_2}-token-symbol`
392
- | `--color-${ThemeColorCardToneKey_2}-token-tag`
393
- | `--color-${ThemeColorCardToneKey_2}-token-unit`
394
- | `--color-${ThemeColorCardToneKey_2}-token-url`
395
- | `--color-${ThemeColorCardToneKey_2}-token-variable`
396
-
397
- export declare type ColorCardVarName =
398
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-accent-fg`
399
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-avatar-${ThemeColorAvatarColorKey_2}-bg`
400
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-avatar-${ThemeColorAvatarColorKey_2}-fg`
401
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-backdrop`
402
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-focus-ring`
403
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-link-fg`
404
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-muted-bg`
405
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-muted-fg`
406
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-${ElementColorVariant}-${ThemeColorStateToneKey_2}-${ElementColorVariantKey}`
407
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-shadow-outline`
408
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-shadow-umbra`
409
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-shadow-penumbra`
410
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-shadow-ambient`
411
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-skeleton-from`
412
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-skeleton-to`
413
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-atrule`
414
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-attr-name`
415
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-attr-value`
416
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-attribute`
417
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-boolean`
418
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-builtin`
419
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-cdata`
420
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-char`
421
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-class`
422
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-class-name`
423
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-comment`
424
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-constant`
425
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-deleted`
426
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-doctype`
427
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-entity`
428
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-function`
429
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-hexcode`
430
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-id`
431
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-important`
432
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-inserted`
433
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-keyword`
434
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-number`
435
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-operator`
436
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-prolog`
437
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-property`
438
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-pseudo-class`
439
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-pseudo-element`
440
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-punctuation`
441
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-regex`
442
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-selector`
443
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-string`
444
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-symbol`
445
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-tag`
446
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-unit`
447
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-url`
448
- | `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-variable`
449
-
450
- /** @public */
451
- export declare interface ColorCardVarNames {
452
- accent: {
453
- fg: CSSVarName
454
- }
455
- avatar: Record<ThemeColorAvatarColorKey_2, ColorAvatarColorVarNames>
456
- backdrop: CSSVarName
457
- focusRing: CSSVarName
458
- link: {
459
- fg: CSSVarName
460
- }
461
- muted: {
462
- bg: CSSVarName
463
- fg: CSSVarName
464
- }
465
- shadow: {
466
- outline: CSSVarName
467
- umbra: CSSVarName
468
- penumbra: CSSVarName
469
- ambient: CSSVarName
470
- }
471
- skeleton: {
472
- from: CSSVarName
473
- to: CSSVarName
474
- }
475
- token: {
476
- atrule: CSSVarName
477
- attrName: CSSVarName
478
- attrValue: CSSVarName
479
- attribute: CSSVarName
480
- boolean: CSSVarName
481
- builtin: CSSVarName
482
- cdata: CSSVarName
483
- char: CSSVarName
484
- class: CSSVarName
485
- className: CSSVarName
486
- comment: CSSVarName
487
- constant: CSSVarName
488
- deleted: CSSVarName
489
- doctype: CSSVarName
490
- entity: CSSVarName
491
- function: CSSVarName
492
- hexcode: CSSVarName
493
- id: CSSVarName
494
- important: CSSVarName
495
- inserted: CSSVarName
496
- keyword: CSSVarName
497
- number: CSSVarName
498
- operator: CSSVarName
499
- prolog: CSSVarName
500
- property: CSSVarName
501
- pseudoClass: CSSVarName
502
- pseudoElement: CSSVarName
503
- punctuation: CSSVarName
504
- regex: CSSVarName
505
- selector: CSSVarName
506
- string: CSSVarName
507
- symbol: CSSVarName
508
- tag: CSSVarName
509
- unit: CSSVarName
510
- url: CSSVarName
511
- variable: CSSVarName
512
- }
513
- solid: ColorVariantVarNames
514
- tinted: ColorVariantVarNames
515
- }
516
-
517
- /** @public */
518
- export declare interface ColorCardVars {
519
- accent: {
520
- fg: CSSVar
521
- }
522
- avatar: ColorAvatarVars
523
- backdrop: CSSVar
524
- focusRing: CSSVar
525
- link: {
526
- fg: CSSVar
527
- }
528
- muted: {
529
- bg: CSSVar
530
- fg: CSSVar
531
- }
532
- shadow: {
533
- outline: CSSVar
534
- umbra: CSSVar
535
- penumbra: CSSVar
536
- ambient: CSSVar
537
- }
538
- skeleton: {
539
- from: CSSVar
540
- to: CSSVar
541
- }
542
- token: {
543
- atrule: CSSVar
544
- attrName: CSSVar
545
- attrValue: CSSVar
546
- attribute: CSSVar
547
- boolean: CSSVar
548
- builtin: CSSVar
549
- cdata: CSSVar
550
- char: CSSVar
551
- class: CSSVar
552
- className: CSSVar
553
- comment: CSSVar
554
- constant: CSSVar
555
- deleted: CSSVar
556
- doctype: CSSVar
557
- entity: CSSVar
558
- function: CSSVar
559
- hexcode: CSSVar
560
- id: CSSVar
561
- important: CSSVar
562
- inserted: CSSVar
563
- keyword: CSSVar
564
- number: CSSVar
565
- operator: CSSVar
566
- prolog: CSSVar
567
- property: CSSVar
568
- pseudoClass: CSSVar
569
- pseudoElement: CSSVar
570
- punctuation: CSSVar
571
- regex: CSSVar
572
- selector: CSSVar
573
- string: CSSVar
574
- symbol: CSSVar
575
- tag: CSSVar
576
- unit: CSSVar
577
- url: CSSVar
578
- variable: CSSVar
579
- }
580
- solid: ColorVariantVars
581
- tinted: ColorVariantVars
582
- }
583
-
584
- /** @public */
585
- export declare interface ColorElementVarNames {
586
- bg: {
587
- 0: CSSVarName
588
- 1: CSSVarName
589
- 2: CSSVarName
590
- 3: CSSVarName
591
- 4: CSSVarName
592
- }
593
- border: {
594
- 0: CSSVarName
595
- 1: CSSVarName
596
- 2: CSSVarName
597
- 3: CSSVarName
598
- 4: CSSVarName
599
- }
600
- fg: {
601
- 0: CSSVarName
602
- 1: CSSVarName
603
- 2: CSSVarName
604
- 3: CSSVarName
605
- 4: CSSVarName
606
- }
607
- }
608
-
609
- /** @public */
610
- export declare interface ColorElementVars {
611
- bg: {
612
- 0: CSSVar
613
- 1: CSSVar
614
- 2: CSSVar
615
- 3: CSSVar
616
- 4: CSSVar
617
- }
618
- border: {
619
- 0: CSSVar
620
- 1: CSSVar
621
- 2: CSSVar
622
- 3: CSSVar
623
- 4: CSSVar
624
- }
625
- fg: {
626
- 0: CSSVar
627
- 1: CSSVar
628
- 2: CSSVar
629
- 3: CSSVar
630
- 4: CSSVar
631
- }
632
- }
633
-
634
- /** @public */
635
- export declare interface ColorInputStateVars {
636
- bg: CSSVar
637
- border: CSSVar
638
- fg: CSSVar
639
- muted: {
640
- bg: CSSVar
641
- }
642
- placeholder: CSSVar
643
- }
644
-
645
- /** @public */
646
- export declare type ColorSchemeVarNames = Record<ThemeColorCardToneKey_2, ColorCardVarNames>
647
-
648
- /** @public */
649
- export declare interface ColorSchemeVars extends Record<ThemeColorCardToneKey_2, ColorCardVars> {}
650
-
651
- /** @public */
652
- declare type ColorToken =
653
- | `black`
654
- | `black/${ColorTokenOpacityValue}`
655
- | `white`
656
- | `white/${ColorTokenOpacityValue}`
657
- | `${Hue}/${Tint}`
658
- | `${Hue}/${Tint}/${ColorTokenOpacityValue}`
659
- | `${Hue}/${Tint} ${number}%`
660
- | `${Tint}`
661
- | `${Tint}/${ColorTokenOpacityValue}`
662
- | `${Tint} ${number}%`
663
-
664
- /** @public */
665
- declare type ColorTokenOpacityValue = `0` | `0.${number}` | `1`
666
-
667
- /** @public */
668
- declare type ColorTokens = Record<'*' | ThemeColorCardToneKey, CardColorTokens>
669
-
670
- export declare interface ColorVariantVarNames
671
- extends ColorElementVarNames,
672
- Record<ThemeColorStateToneKey_2, ColorElementVarNames> {}
673
-
674
- /** @public */
675
- export declare interface ColorVariantVars
676
- extends Record<ThemeColorStateToneKey_2, ColorElementVars>,
677
- ColorElementVars {}
678
-
679
- export declare type Columns = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12
680
-
681
- export declare function compilePalette(config: PaletteConfig_2): string
682
-
683
- /** @public */
684
- export declare function compileSystem(): string
685
-
686
- export declare function compileTheme(theme: RootTheme): string
687
-
688
- export declare function composeClassNames(
689
- ...classNames: Array<string | false | undefined>
690
- ): string | undefined
691
-
692
- export declare function container(props: ContainerStyleProps): string | undefined
693
-
694
- export declare interface ContainerStyleProps {
695
- width?: ResponsiveProp<ContainerWidth>
696
- }
697
-
698
- /**
699
- * Work around types that are missing in `styled-components@6`
700
- * https://github.com/styled-components/styled-components/issues/4062
701
- * @internal
702
- */
703
- declare type CSSObject = StyledObject<any>
704
-
705
- /** @public */
706
- export declare type CSSVar = `var(${CSSVarName})`
707
-
708
- /** @public */
709
- export declare type CSSVarName =
710
- | AvatarScopedVarName
711
- | LegacyCardScopedVarName
712
- | PaletteVarName
713
- | ThemeVarName
714
- | ColorCardVarName
715
- | ColorCardToneScopedVarName
716
- | CardScopedVarName
717
- | ElementColorVariantScopedVarName
718
- | InputScopedVarName
719
- | SwitchScopedVarName
720
-
721
- /** @public */
722
- export declare interface CustomCSSProperties extends Record<CSSVarName, string> {}
723
-
724
- export declare function dialog(): string | undefined
725
-
726
- export declare function dialogCardRoot(): string | undefined
727
-
728
- export declare function dialogContainer(): string | undefined
729
-
730
- export declare function dialogContent(): string | undefined
731
-
732
- export declare function dialogFooter(): string | undefined
733
-
734
- export declare function dialogHeader(): string | undefined
735
-
736
- export declare function dialogLayout(): string | undefined
737
-
738
- /**
739
- * @public
740
- */
741
- export declare type Display =
742
- | 'block'
743
- | 'inline-block'
744
- | 'flex'
745
- | 'inline-flex'
746
- | 'grid'
747
- | 'inline-grid'
748
- | 'none'
749
-
750
- export declare function display(props: DisplayStyleProps): string | undefined
751
-
752
- export declare interface DisplayStyleProps {
753
- display?: ResponsiveProp<Display>
754
- }
755
-
756
- /** @public */
757
- declare interface ElementColorTokens {
758
- _hue: Hue
759
- bg: {
760
- 0: [ColorToken, ColorToken]
761
- 4: [ColorToken, ColorToken]
762
- }
763
- border: {
764
- 0: [ColorToken, ColorToken]
765
- 4: [ColorToken, ColorToken]
766
- }
767
- fg: {
768
- 0: [ColorToken, ColorToken]
769
- 4: [ColorToken, ColorToken]
770
- }
771
- }
772
-
773
- /** @public */
774
- export declare type ElementColorVariant = 'solid' | 'tinted'
775
-
776
- /** @public */
777
- export declare type ElementColorVariantKey =
778
- | 'bg-0'
779
- | 'bg-1'
780
- | 'bg-2'
781
- | 'bg-3'
782
- | 'bg-4'
783
- | 'border-0'
784
- | 'border-1'
785
- | 'border-2'
786
- | 'border-3'
787
- | 'border-4'
788
- | 'fg-0'
789
- | 'fg-1'
790
- | 'fg-2'
791
- | 'fg-3'
792
- | 'fg-4'
793
-
794
- /** @public */
795
- export declare type ElementColorVariantScopedVarName =
796
- `--color-${ElementColorVariant}-${ElementColorVariantKey}`
797
-
798
- /** @public */
799
- export declare function flex(props: FlexStyleProps): string | undefined
800
-
801
- /**
802
- * @public
803
- */
804
- export declare type FlexAlign = 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch'
805
-
806
- /**
807
- * @public
808
- */
809
- export declare type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse'
810
-
811
- /** @public */
812
- export declare function flexItem(props: FlexItemStyleProps): string | undefined
813
-
814
- /** @public */
815
- export declare interface FlexItemStyleProps {
816
- flex?: ResponsiveProp<FlexValue>
817
- }
818
-
819
- /**
820
- * @public
821
- */
822
- export declare type FlexJustify =
823
- | 'flex-start'
824
- | 'flex-end'
825
- | 'center'
826
- | 'space-between'
827
- | 'space-around'
828
- | 'space-evenly'
829
-
830
- /** @public */
831
- export declare interface FlexStyleProps {
832
- align?: ResponsiveProp<FlexAlign>
833
- direction?: ResponsiveProp<FlexDirection>
834
- justify?: ResponsiveProp<FlexJustify>
835
- wrap?: ResponsiveProp<FlexWrap>
836
- }
837
-
838
- /**
839
- * @public
840
- */
841
- export declare type FlexValue = number | 'none' | 'auto' | 'initial'
842
-
843
- /**
844
- * @public
845
- */
846
- export declare type FlexWrap = 'wrap' | 'wrap-reverse' | 'nowrap'
847
-
848
- /** @public */
849
- export declare function font(props: FontStyleProps): string | undefined
850
-
851
- /** @public */
852
- export declare interface FontSizeVarNames {
853
- ascenderHeight: CSSVarName
854
- descenderHeight: CSSVarName
855
- fontSize: CSSVarName
856
- lineHeight: CSSVarName
857
- letterSpacing: CSSVarName
858
- iconSize: CSSVarName
859
- }
860
-
861
- /** @public */
862
- export declare interface FontSizeVars {
863
- ascenderHeight: CSSVar
864
- descenderHeight: CSSVar
865
- fontSize: CSSVar
866
- lineHeight: CSSVar
867
- letterSpacing: CSSVar
868
- iconSize: CSSVar
869
- }
870
-
871
- /** @public */
872
- export declare interface FontStyleProps {
873
- align?: TextAlign
874
- weight?: FontWeight
875
- }
876
-
877
- export declare interface FontVarNames<Size extends number> {
878
- family: CSSVarName
879
- sizes: Record<Size, FontSizeVarNames>
880
- }
881
-
882
- /** @public */
883
- export declare interface FontVars<Size extends number> {
884
- family: CSSVar
885
- sizes: Record<Size, FontSizeVars>
886
- }
887
-
888
- /** @public */
889
- export declare function gap(props: GapStyleProps): string | undefined
890
-
891
- /** @public */
892
- export declare interface GapStyleProps {
893
- gap?: ResponsiveProp<Space>
894
- gapX?: ResponsiveProp<Space>
895
- gapY?: ResponsiveProp<Space>
896
- }
897
-
898
- export declare function grid(props: GridStyleProps): string | undefined
899
-
900
- /**
901
- * @public
902
- */
903
- export declare type GridAutoCols = 'auto' | 'min' | 'max' | 'fr'
904
-
905
- /**
906
- * @public
907
- */
908
- export declare type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dense'
909
-
910
- /**
911
- * @public
912
- */
913
- export declare type GridAutoRows = 'auto' | 'min' | 'max' | 'fr'
914
-
915
- /** @public */
916
- export declare function gridItem(props: GridItemStyleProps): string | undefined
917
-
918
- /**
919
- * @public
920
- */
921
- export declare type GridItemColumn = 'auto' | 'full' | number
922
-
923
- /**
924
- * @public
925
- */
926
- export declare type GridItemColumnEnd = 'auto' | number
927
-
928
- /**
929
- * @public
930
- */
931
- export declare type GridItemColumnStart = 'auto' | number
932
-
933
- /**
934
- * @public
935
- */
936
- export declare type GridItemRow = 'auto' | 'full' | number
937
-
938
- /**
939
- * @public
940
- */
941
- export declare type GridItemRowEnd = 'auto' | number
942
-
943
- /**
944
- * @public
945
- */
946
- export declare type GridItemRowStart = 'auto' | number
947
-
948
- export declare interface GridItemStyleProps {
949
- column?: ResponsiveProp<GridItemColumn>
950
- columnStart?: ResponsiveProp<GridItemColumnStart>
951
- columnEnd?: ResponsiveProp<GridItemColumnEnd>
952
- row?: ResponsiveProp<GridItemRow>
953
- rowStart?: ResponsiveProp<GridItemRowStart>
954
- rowEnd?: ResponsiveProp<GridItemRowEnd>
955
- }
956
-
957
- /** @public */
958
- export declare interface GridStyleProps {
959
- autoRows?: ResponsiveProp<GridAutoRows>
960
- autoCols?: ResponsiveProp<GridAutoCols>
961
- autoFlow?: ResponsiveProp<GridAutoFlow>
962
- columns?: ResponsiveProp<Columns>
963
- rows?: ResponsiveProp<Rows>
964
- }
965
-
966
- /** @public */
967
- export declare function heading(props: HeadingStyleProps): string | undefined
968
-
969
- /** @public */
970
- export declare type HeadingSize = number
971
-
972
- export declare function headingSkeleton(props: HeadingSkeletonStyleProps): string | undefined
973
-
974
- export declare interface HeadingSkeletonStyleProps {
975
- size?: ResponsiveProp<FontHeadingSize>
976
- }
977
-
978
- /** @public */
979
- export declare interface HeadingStyleProps extends FontStyleProps, FlexItemStyleProps {
980
- accent?: boolean
981
- muted?: boolean
982
- size?: ResponsiveProp<HeadingSize>
983
- }
984
-
985
- declare type Hue = (typeof HUES)[number]
986
-
987
- declare const HUES: readonly [
988
- 'gray',
989
- 'blue',
990
- 'purple',
991
- 'magenta',
992
- 'red',
993
- 'orange',
994
- 'yellow',
995
- 'green',
996
- 'cyan',
997
- ]
998
-
999
- /** @internal */
1000
- export declare function _input(props: InputStyleProps): string | undefined
1001
-
1002
- export declare function _inputElement(): string
1003
-
1004
- export declare function _inputPresentation(): string
1005
-
1006
- /** @public */
1007
- export declare type InputScopedVarName =
1008
- | `--color-input-bg`
1009
- | `--color-input-border`
1010
- | `--color-input-fg`
1011
- | `--color-input-placeholder`
1012
- | `--input-ascender-height`
1013
- | `--input-descender-height`
1014
- | `--input-font-size`
1015
- | `--input-gap`
1016
- | `--input-letter-spacing`
1017
- | `--input-line-height`
1018
- | `--input-padding`
1019
-
1020
- /** @public */
1021
- export declare interface InputStyleProps extends RadiusStyleProps, WidthStyleProps {
1022
- border?: boolean
1023
- fontSize?: ResponsiveProp<FontTextSize>
1024
- gap?: ResponsiveProp<Space>
1025
- padding?: ResponsiveProp<Space>
1026
- }
1027
-
1028
- /** @public */
1029
- export declare type Inset = 0
1030
-
1031
- export declare function inset(props: InsetStyleProps): string | undefined
1032
-
1033
- /** @public */
1034
- export declare interface InsetStyleProps {
1035
- inset?: ResponsiveProp<Inset>
1036
- insetTop?: ResponsiveProp<Inset>
1037
- insetRight?: ResponsiveProp<Inset>
1038
- insetBottom?: ResponsiveProp<Inset>
1039
- insetLeft?: ResponsiveProp<Inset>
1040
- }
1041
-
1042
- export declare function isArray(value: unknown): value is unknown[]
1043
-
1044
- export declare function isRecord(value: unknown): value is Record<string, unknown>
1045
-
1046
- export declare function kbd(props: KBDStyleProps): string | undefined
1047
-
1048
- /** @public */
1049
- export declare interface KBDStyleProps extends RadiusStyleProps {}
1050
-
1051
- /** @public */
1052
- export declare function label(props: LabelStyleProps): string | undefined
1053
-
1054
- /** @public */
1055
- export declare type LabelSize = number
1056
-
1057
- export declare function labelSkeleton(props: LabelSkeletonStyleProps): string | undefined
1058
-
1059
- export declare interface LabelSkeletonStyleProps {
1060
- size?: ResponsiveProp<FontLabelSize>
1061
- }
1062
-
1063
- /** @public */
1064
- export declare interface LabelStyleProps extends FontStyleProps {
1065
- accent?: boolean
1066
- muted?: boolean
1067
- size?: ResponsiveProp<LabelSize>
1068
- }
1069
-
1070
- export declare type LegacyCardScopedVarName =
1071
- | `--card-accent-fg-color`
1072
- | `--card-avatar-${ThemeColorAvatarColorKey_2}-bg-color`
1073
- | `--card-avatar-${ThemeColorAvatarColorKey_2}-fg-color`
1074
- | `--card-backdrop-color`
1075
- | `--card-badge-${ThemeColorStateToneKey_2}-bg-color`
1076
- | `--card-badge-${ThemeColorStateToneKey_2}-dot-color`
1077
- | `--card-badge-${ThemeColorStateToneKey_2}-fg-color`
1078
- | `--card-badge-${ThemeColorStateToneKey_2}-icon-color`
1079
- | `--card-bg-color`
1080
- | `--card-bg-image`
1081
- | `--card-bg2-color`
1082
- | `--card-border-color`
1083
- | `--card-code-bg-color`
1084
- | `--card-code-fg-color`
1085
- | `--card-fg-color`
1086
- | `--card-focus-ring-color`
1087
- | `--card-hairline-soft-color`
1088
- | `--card-hairline-hard-color`
1089
- | `--card-icon-color`
1090
- | `--card-kbd-bg-color`
1091
- | `--card-kbd-border-color`
1092
- | `--card-kbd-fg-color`
1093
- | `--card-link-color`
1094
- | `--card-link-fg-color`
1095
- | `--card-muted-bg-color`
1096
- | `--card-muted-fg-color`
1097
- | `--card-shadow-outline-color`
1098
- | `--card-shadow-umbra-color`
1099
- | `--card-shadow-penumbra-color`
1100
- | `--card-shadow-ambient-color`
1101
- | `--card-skeleton-from-color`
1102
- | `--card-skeleton-to-color`
1103
-
1104
- export declare function margin(props: MarginStyleProps): string | undefined
1105
-
1106
- export declare interface MarginStyleProps {
1107
- margin?: ResponsiveProp<number>
1108
- marginTop?: ResponsiveProp<number>
1109
- marginRight?: ResponsiveProp<number>
1110
- marginBottom?: ResponsiveProp<number>
1111
- marginLeft?: ResponsiveProp<number>
1112
- marginX?: ResponsiveProp<number>
1113
- marginY?: ResponsiveProp<number>
1114
- }
1115
-
1116
- export declare function maxWidth(props: MaxWidthStyleProps): string
1117
-
1118
- export declare interface MaxWidthStyleProps {
1119
- maxWidth?: ResponsiveProp<ContainerWidth>
1120
- }
1121
-
1122
- export declare function menu(): string | undefined
1123
-
1124
- export declare function menuDivider(): string | undefined
1125
-
1126
- export declare function overflow(props: OverflowStyleProps): string | undefined
1127
-
1128
- /** @public */
1129
- export declare interface OverflowStyleProps {
1130
- overflow?: ResponsiveProp<BoxOverflow>
1131
- overflowX?: ResponsiveProp<BoxOverflow>
1132
- overflowY?: ResponsiveProp<BoxOverflow>
1133
- }
1134
-
1135
- export declare function padding(props: PaddingStyleProps): string | undefined
1136
-
1137
- /** @public */
1138
- export declare interface PaddingStyleProps {
1139
- padding?: ResponsiveProp<Space>
1140
- paddingTop?: ResponsiveProp<Space>
1141
- paddingRight?: ResponsiveProp<Space>
1142
- paddingBottom?: ResponsiveProp<Space>
1143
- paddingLeft?: ResponsiveProp<Space>
1144
- paddingX?: ResponsiveProp<Space>
1145
- paddingY?: ResponsiveProp<Space>
1146
- }
1147
-
1148
- declare type PaletteConfig = {
1149
- chroma: {
1150
- min: number
1151
- max: number
1152
- }
1153
- luminosity: {
1154
- min: number
1155
- max: number
1156
- }
1157
- hues: Record<
1158
- Hue,
1159
- {
1160
- h: number
1161
- c: number
1162
- }
1163
- >
1164
- }
1165
-
1166
- /** @public */
1167
- export declare type PaletteVarName = `--black` | `--white` | `--${Hue_2}-${Tint_2}`
1168
-
1169
- /** @public */
1170
- export declare type PointerEvents = 'auto' | 'none'
1171
-
1172
- export declare function pointerEvents(props: PointerEventsStyleProps): string | undefined
1173
-
1174
- /** @public */
1175
- export declare interface PointerEventsStyleProps {
1176
- pointerEvents?: PointerEvents
1177
- }
1178
-
1179
- export declare function popover(): string | undefined
1180
-
1181
- /** @public */
1182
- export declare type Position = 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky'
1183
-
1184
- export declare function position(props: PositionStyleProps): string | undefined
1185
-
1186
- /** @public */
1187
- export declare interface PositionStyleProps {
1188
- position?: ResponsiveProp<Position>
1189
- }
1190
-
1191
- /** @public */
1192
- export declare interface Properties extends CSS_2.PropertiesFallback, Partial<CustomCSSProperties> {
1193
- '@keyframes'?: Record<string, Record<string, Properties>>
1194
- '@media'?: Record<string, Properties>
1195
- '@nest'?: Record<string, Properties>
1196
- }
1197
-
1198
- export declare function px(value: number): string
1199
-
1200
- export declare function radio(): string | undefined
1201
-
1202
- /** @public */
1203
- export declare function radius(props: RadiusStyleProps): string | undefined
1204
-
1205
- /** @public */
1206
- export declare interface RadiusStyleProps {
1207
- radius?: ResponsiveProp<Radius>
1208
- }
1209
-
1210
- export declare function rem(value: number): string
1211
-
1212
- /** @public */
1213
- export declare type ResponsiveProp<T> = T | Array<T | null | undefined>
1214
-
1215
- /**
1216
- * @public
1217
- */
1218
- declare interface RootTheme_v2 {
1219
- _version: 2
1220
- avatar: ThemeAvatar_v2
1221
- button: {
1222
- border: {
1223
- width: number
1224
- }
1225
- focusRing: ThemeFocusRing
1226
- textWeight: ThemeFontWeightKey
1227
- }
1228
- card: {
1229
- border: {
1230
- width: number
1231
- }
1232
- focusRing: ThemeFocusRing
1233
- shadow: {
1234
- outline: number
1235
- }
1236
- }
1237
- color: ThemeColorSchemes_v2
1238
- container: number[]
1239
- font: ThemeFonts
1240
- input: ThemeInput_v2
1241
- layer: ThemeLayer
1242
- media: number[]
1243
- radius: number[]
1244
- shadow: Array<ThemeShadow | null>
1245
- space: number[]
1246
- /** @internal */
1247
- style?: ThemeStyles
1248
- }
1249
-
1250
- export declare type Rows = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12
1251
-
1252
- /** @public */
1253
- export declare interface Rules {
1254
- [className: string]: Properties
1255
- }
1256
-
1257
- export declare interface ScopedColorVarNames extends Omit<ColorCardVarNames, 'avatar'> {
1258
- accent: {
1259
- fg: CSSVarName
1260
- }
1261
- avatar: Record<ThemeColorAvatarColorKey_2, ColorAvatarColorVarNames> & ColorAvatarColorVarNames
1262
- bg: CSSVarName
1263
- border: CSSVarName
1264
- fg: CSSVarName
1265
- input: {
1266
- bg: CSSVarName
1267
- border: CSSVarName
1268
- fg: CSSVarName
1269
- placeholder: CSSVarName
1270
- }
1271
- }
1272
-
1273
- export declare interface ScopedColorVars extends Omit<ColorCardVars, 'avatar'> {
1274
- avatar: ColorAvatarVars & ColorAvatarColorVars
1275
- bg: CSSVar
1276
- border: CSSVar
1277
- fg: CSSVar
1278
- input: {
1279
- bg: CSSVar
1280
- border: CSSVar
1281
- fg: CSSVar
1282
- placeholder: CSSVar
1283
- }
1284
- }
1285
-
1286
- export declare function select(props: SelectStyleProps): string | undefined
1287
-
1288
- /** @internal */
1289
- export declare function _selectable(props: SelectableStyleProps): string | undefined
1290
-
1291
- /** @internal */
1292
- export declare interface SelectableStyleProps extends RadiusStyleProps {
1293
- tone?: ThemeColorStateToneKey_2
1294
- }
1295
-
1296
- export declare function selectPresentation(): string | undefined
1297
-
1298
- /** @public */
1299
- export declare interface SelectStyleProps extends InputStyleProps {}
1300
-
1301
- export declare function shadow(props: ShadowStyleProps): string | undefined
1302
-
1303
- /** @public */
1304
- export declare interface ShadowStyleProps {
1305
- shadow?: ResponsiveProp<Shadow>
1306
- }
1307
-
1308
- /** @beta */
1309
- export declare function skeleton(props: SkeletonStyleProps): string | undefined
1310
-
1311
- /** @beta */
1312
- export declare interface SkeletonStyleProps extends RadiusStyleProps {}
1313
-
1314
- export declare function spinner(): string | undefined
1315
-
1316
- export declare function srOnly(): string | undefined
1317
-
1318
- export declare function _switch(): string | undefined
1319
-
1320
- export declare function _switchElement(): string | undefined
1321
-
1322
- export declare function _switchPresentation(): string | undefined
1323
-
1324
- /** @public */
1325
- export declare type SwitchScopedVarName =
1326
- | `--switch-bg-color`
1327
- | `--switch-fg-color`
1328
- | '--switch-thumb-offset'
1329
- | '--switch-thumb-size'
1330
-
1331
- export declare function _switchThumb(): string | undefined
1332
-
1333
- export declare function _switchTrack(): string | undefined
1334
-
1335
- /** @public */
1336
- export declare function text(props: TextStyleProps): string | undefined
1337
-
1338
- /**
1339
- * @public
1340
- */
1341
- export declare type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'initial'
1342
-
1343
- export declare function textArea(props: TextAreaStyleProps): string | undefined
1344
-
1345
- /** @public */
1346
- export declare interface TextAreaStyleProps extends InputStyleProps {}
1347
-
1348
- export declare function textInput(props: TextInputStyleProps): string | undefined
1349
-
1350
- /** @public */
1351
- export declare interface TextInputStyleProps extends InputStyleProps {}
1352
-
1353
- export declare function textOverflow(props: TextOverflowStyleProps): string | undefined
1354
-
1355
- export declare interface TextOverflowStyleProps {
1356
- /**
1357
- * Controls how overflowing text is treated.
1358
- * Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
1359
- * @beta
1360
- */
1361
- textOverflow?: 'ellipsis' | 'clip'
1362
- }
1363
-
1364
- export declare type TextSize = number
1365
-
1366
- export declare function textSkeleton(props: TextSkeletonStyleProps): string | undefined
1367
-
1368
- export declare interface TextSkeletonStyleProps {
1369
- size?: ResponsiveProp<FontTextSize>
1370
- }
1371
-
1372
- /** @public */
1373
- export declare interface TextStyleProps extends FlexItemStyleProps, FontStyleProps {
1374
- accent?: boolean
1375
- muted?: boolean
1376
- size?: ResponsiveProp<TextSize>
1377
- }
1378
-
1379
- /** @public */
1380
- declare const THEME_COLOR_AVATAR_COLORS: ColorHueKey[]
1381
-
1382
- /** @public */
1383
- declare const THEME_COLOR_BLEND_MODES: readonly ['multiply', 'screen']
1384
-
1385
- /** @public */
1386
- declare const THEME_COLOR_BUTTON_MODES: readonly ['default', 'ghost', 'bleed']
1387
-
1388
- /** @public */
1389
- declare const THEME_COLOR_CARD_TONES: readonly [
1390
- 'transparent',
1391
- 'default',
1392
- 'neutral',
1393
- 'primary',
1394
- 'suggest',
1395
- 'positive',
1396
- 'caution',
1397
- 'critical',
1398
- ]
1399
-
1400
- /** @public */
1401
- declare const THEME_COLOR_INPUT_MODES: readonly ['default', 'invalid']
1402
-
1403
- /** @public */
1404
- declare const THEME_COLOR_INPUT_STATES: readonly ['enabled', 'hovered', 'readOnly', 'disabled']
1405
-
1406
- /** @public */
1407
- declare const THEME_COLOR_SCHEMES: readonly ['light', 'dark']
1408
-
1409
- /** @public */
1410
- declare const THEME_COLOR_STATE_TONES: readonly [
1411
- 'default',
1412
- 'neutral',
1413
- 'primary',
1414
- 'suggest',
1415
- 'positive',
1416
- 'caution',
1417
- 'critical',
1418
- ]
1419
-
1420
- /** @public */
1421
- declare const THEME_COLOR_STATES: readonly ['enabled', 'hovered', 'pressed', 'selected', 'disabled']
1422
-
1423
- /**
1424
- * Supersedes `RootTheme` and `RootTheme_v2`.
1425
- *
1426
- * @public
1427
- */
1428
- declare interface Theme_v3 {
1429
- _version: 3
1430
- _palette: PaletteConfig
1431
- _tokens: Tokens
1432
- avatar: ThemeAvatar_v2
1433
- button: {
1434
- border: {
1435
- width: number
1436
- }
1437
- focusRing: ThemeFocusRing
1438
- textWeight: ThemeFontWeightKey
1439
- }
1440
- card: {
1441
- border: {
1442
- width: number
1443
- }
1444
- focusRing: ThemeFocusRing
1445
- shadow: {
1446
- outline: number
1447
- }
1448
- }
1449
- color: ThemeColor_v3
1450
- container: number[]
1451
- font: ThemeFonts
1452
- input: ThemeInput_v2
1453
- layer: ThemeLayer
1454
- media: number[]
1455
- radius: number[]
1456
- shadow: Array<ThemeShadow | null>
1457
- space: number[]
1458
- }
1459
-
1460
- /**
1461
- * @public
1462
- */
1463
- declare interface ThemeAvatar_v2 {
1464
- sizes: {
1465
- /** Spacing between avatars in an <AvatarStack> component (px) */
1466
- distance: number
1467
- /** Diameter of the avatar (px) */
1468
- size: number
1469
- }[]
1470
- focusRing: ThemeFocusRing
1471
- }
1472
-
1473
- /**
1474
- * @public
1475
- */
1476
- declare type ThemeBoxShadow = [number, number, number, number]
1477
-
1478
- declare type ThemeColor_v3 = Record<ThemeColorSchemeKey, ThemeColorScheme_v3>
1479
-
1480
- /**
1481
- * @public
1482
- */
1483
- declare type ThemeColorAvatar_v2 = Record<ThemeColorAvatarColorKey, ThemeColorAvatarHue_v2>
1484
-
1485
- /** @public */
1486
- declare type ThemeColorAvatarColorKey = (typeof THEME_COLOR_AVATAR_COLORS)[number]
1487
-
1488
- /**
1489
- * @public
1490
- */
1491
- declare interface ThemeColorAvatarHue_v2 {
1492
- _blend?: ThemeColorBlendModeKey
1493
- bg: string
1494
- fg: string
1495
- }
1496
-
1497
- /**
1498
- * @public
1499
- */
1500
- declare type ThemeColorBadge_v2 = Record<ThemeColorStateToneKey, ThemeColorBadgeTone_v2>
1501
-
1502
- /**
1503
- * @public
1504
- */
1505
- declare interface ThemeColorBadgeTone_v2 {
1506
- bg: string
1507
- fg: string
1508
- dot: string
1509
- icon: string
1510
- }
1511
-
1512
- /** @public */
1513
- declare type ThemeColorBlendModeKey = (typeof THEME_COLOR_BLEND_MODES)[number]
1514
-
1515
- /**
1516
- * @public
1517
- */
1518
- declare type ThemeColorButton_v2 = Record<ThemeColorButtonModeKey, ThemeColorButtonMode_v2>
1519
-
1520
- /**
1521
- * @public
1522
- */
1523
- declare type ThemeColorButtonMode_v2 = Record<ThemeColorStateToneKey, ThemeColorButtonTone_v2>
1524
-
1525
- /** @public */
1526
- declare type ThemeColorButtonModeKey = (typeof THEME_COLOR_BUTTON_MODES)[number]
1527
-
1528
- /**
1529
- * @public
1530
- */
1531
- declare type ThemeColorButtonTone_v2 = Record<ThemeColorStateKey, ThemeColorState_v2>
1532
-
1533
- /**
1534
- * @public
1535
- */
1536
- declare interface ThemeColorCard_v2 extends ThemeColorState_v2 {
1537
- /** @internal */
1538
- _blend: ThemeColorBlendModeKey
1539
- _dark: boolean
1540
- backdrop: string
1541
- button: ThemeColorButton_v2
1542
- focusRing: string
1543
- input: ThemeColorInput_v2
1544
- selectable: ThemeColorSelectable_v2
1545
- shadow: ThemeColorShadow
1546
- syntax: ThemeColorSyntax
1547
- }
1548
-
1549
- declare interface ThemeColorCard_v3 {
1550
- _hue: Hue
1551
- avatar: ThemeColorAvatar_v2
1552
- backdrop: string
1553
- focusRing: string
1554
- shadow: {
1555
- outline: string
1556
- umbra: string
1557
- penumbra: string
1558
- ambient: string
1559
- }
1560
- token: {
1561
- atrule: string
1562
- attrName: string
1563
- attrValue: string
1564
- attribute: string
1565
- boolean: string
1566
- builtin: string
1567
- cdata: string
1568
- char: string
1569
- class: string
1570
- className: string
1571
- comment: string
1572
- constant: string
1573
- deleted: string
1574
- doctype: string
1575
- entity: string
1576
- function: string
1577
- hexcode: string
1578
- id: string
1579
- important: string
1580
- inserted: string
1581
- keyword: string
1582
- number: string
1583
- operator: string
1584
- prolog: string
1585
- property: string
1586
- pseudoClass: string
1587
- pseudoElement: string
1588
- punctuation: string
1589
- regex: string
1590
- selector: string
1591
- string: string
1592
- symbol: string
1593
- tag: string
1594
- unit: string
1595
- url: string
1596
- variable: string
1597
- }
1598
- skeleton: {
1599
- from: string
1600
- to: string
1601
- }
1602
- variant: Record<ThemeColorVariantKey, ThemeColorVariant>
1603
- }
1604
-
1605
- /** @public */
1606
- declare type ThemeColorCardToneKey = (typeof THEME_COLOR_CARD_TONES)[number]
1607
-
1608
- declare interface ThemeColorElement {
1609
- _hue: Hue
1610
- bg: {
1611
- 0: string
1612
- 4: string
1613
- }
1614
- border: {
1615
- 0: string
1616
- 4: string
1617
- }
1618
- fg: {
1619
- 0: string
1620
- 4: string
1621
- }
1622
- }
1623
-
1624
- /**
1625
- * @public
1626
- */
1627
- declare type ThemeColorInput_v2 = Record<ThemeColorInputModeKey, ThemeColorInputMode_v2>
1628
-
1629
- /**
1630
- * @public
1631
- */
1632
- declare type ThemeColorInputMode_v2 = Record<ThemeColorInputStateKey, ThemeColorInputState_v2>
1633
-
1634
- /** @public */
1635
- declare type ThemeColorInputModeKey = (typeof THEME_COLOR_INPUT_MODES)[number]
1636
-
1637
- /**
1638
- * @public
1639
- */
1640
- declare interface ThemeColorInputState_v2 {
1641
- _blend?: ThemeColorBlendModeKey
1642
- bg: string
1643
- border: string
1644
- fg: string
1645
- muted: {
1646
- bg: string
1647
- }
1648
- placeholder: string
1649
- }
1650
-
1651
- /** @public */
1652
- declare type ThemeColorInputStateKey = (typeof THEME_COLOR_INPUT_STATES)[number]
1653
-
1654
- /**
1655
- * @public
1656
- */
1657
- declare interface ThemeColorKBD {
1658
- bg: string
1659
- fg: string
1660
- border: string
1661
- }
1662
-
1663
- /**
1664
- * @public
1665
- */
1666
- declare type ThemeColorScheme_v2 = Record<ThemeColorCardToneKey, ThemeColorCard_v2>
1667
-
1668
- declare interface ThemeColorScheme_v3 {
1669
- card: Record<ThemeColorCardToneKey, ThemeColorCard_v3>
1670
- }
1671
-
1672
- /**
1673
- * @public
1674
- */
1675
- declare type ThemeColorSchemeKey = (typeof THEME_COLOR_SCHEMES)[number]
1676
-
1677
- /**
1678
- * @public
1679
- */
1680
- declare type ThemeColorSchemes_v2 = Record<ThemeColorSchemeKey, ThemeColorScheme_v2>
1681
-
1682
- /**
1683
- * @public
1684
- */
1685
- declare type ThemeColorSelectable_v2 = Record<ThemeColorStateToneKey, ThemeColorSelectableTone_v2>
1686
-
1687
- /**
1688
- * @public
1689
- */
1690
- declare type ThemeColorSelectableTone_v2 = Record<ThemeColorStateKey, ThemeColorState_v2>
1691
-
1692
- /** @public */
1693
- declare interface ThemeColorShadow {
1694
- outline: string
1695
- umbra: string
1696
- penumbra: string
1697
- ambient: string
1698
- }
1699
-
1700
- /**
1701
- * @public
1702
- */
1703
- declare interface ThemeColorState_v2 {
1704
- /** @internal */
1705
- _blend?: ThemeColorBlendModeKey
1706
- accent: {
1707
- fg: string
1708
- }
1709
- /**
1710
- * @internal This may be removed in a future release
1711
- * */
1712
- avatar: ThemeColorAvatar_v2
1713
- /**
1714
- * @internal This may be removed in a future release
1715
- * */
1716
- badge: ThemeColorBadge_v2
1717
- bg: string
1718
- border: string
1719
- code: {
1720
- bg: string
1721
- fg: string
1722
- }
1723
- fg: string
1724
- icon: string
1725
- kbd: ThemeColorKBD
1726
- link: {
1727
- fg: string
1728
- }
1729
- muted: {
1730
- bg: string
1731
- fg: string
1732
- }
1733
- skeleton: {
1734
- from: string
1735
- to: string
1736
- }
1737
- }
1738
-
1739
- /** @public */
1740
- declare type ThemeColorStateKey = (typeof THEME_COLOR_STATES)[number]
1741
-
1742
- /** @public */
1743
- declare type ThemeColorStateToneKey = (typeof THEME_COLOR_STATE_TONES)[number]
1744
-
1745
- /**
1746
- * @public
1747
- */
1748
- declare interface ThemeColorSyntax {
1749
- atrule: string
1750
- attrName: string
1751
- attrValue: string
1752
- attribute: string
1753
- boolean: string
1754
- builtin: string
1755
- cdata: string
1756
- char: string
1757
- class: string
1758
- className: string
1759
- comment: string
1760
- constant: string
1761
- deleted: string
1762
- doctype: string
1763
- entity: string
1764
- function: string
1765
- hexcode: string
1766
- id: string
1767
- important: string
1768
- inserted: string
1769
- keyword: string
1770
- number: string
1771
- operator: string
1772
- prolog: string
1773
- property: string
1774
- pseudoClass: string
1775
- pseudoElement: string
1776
- punctuation: string
1777
- regex: string
1778
- selector: string
1779
- string: string
1780
- symbol: string
1781
- tag: string
1782
- unit: string
1783
- url: string
1784
- variable: string
1785
- }
1786
-
1787
- declare type ThemeColorVariant = Record<ThemeColorStateToneKey, ThemeColorElement>
1788
-
1789
- declare type ThemeColorVariantKey = 'tinted' | 'solid'
1790
-
1791
- /**
1792
- * @public
1793
- */
1794
- declare interface ThemeFocusRing {
1795
- offset: number
1796
- width: number
1797
- }
1798
-
1799
- /**
1800
- * @public
1801
- */
1802
- declare interface ThemeFont {
1803
- family: string
1804
- featureSettings?: string
1805
- weights: ThemeFontWeight
1806
- sizes: ThemeFontSize[]
1807
- /** @deprecated No longer supported. */
1808
- horizontalOffset?: number
1809
- }
1810
-
1811
- /**
1812
- * @public
1813
- */
1814
- declare interface ThemeFonts {
1815
- code: ThemeFont
1816
- heading: ThemeFont
1817
- label: ThemeFont
1818
- text: ThemeFont
1819
- }
1820
-
1821
- /**
1822
- * @public
1823
- */
1824
- declare interface ThemeFontSize {
1825
- ascenderHeight: number
1826
- descenderHeight: number
1827
- fontSize: number
1828
- iconSize: number
1829
- letterSpacing: number
1830
- lineHeight: number
1831
- }
1832
-
1833
- /**
1834
- * @public
1835
- */
1836
- declare interface ThemeFontWeight {
1837
- regular: number
1838
- medium: number
1839
- semibold: number
1840
- bold: number
1841
- }
1842
-
1843
- /**
1844
- * @public
1845
- */
1846
- declare type ThemeFontWeightKey = 'regular' | 'medium' | 'semibold' | 'bold'
1847
-
1848
- /**
1849
- * @public
1850
- */
1851
- declare interface ThemeInput_v2 {
1852
- checkbox: {
1853
- size: number
1854
- focusRing: ThemeFocusRing
1855
- }
1856
- radio: {
1857
- size: number
1858
- markSize: number
1859
- focusRing: ThemeFocusRing
1860
- }
1861
- switch: {
1862
- width: number
1863
- height: number
1864
- padding: number
1865
- transitionDurationMs: number
1866
- transitionTimingFunction: string
1867
- focusRing: ThemeFocusRing
1868
- }
1869
- border: {
1870
- width: number
1871
- }
1872
- select: {
1873
- focusRing: ThemeFocusRing
1874
- }
1875
- text: {
1876
- focusRing: ThemeFocusRing
1877
- }
1878
- }
1879
-
1880
- /**
1881
- * @public
1882
- */
1883
- declare interface ThemeLayer {
1884
- dialog: {
1885
- zOffset: number
1886
- }
1887
- popover: {
1888
- zOffset: number
1889
- }
1890
- tooltip: {
1891
- zOffset: number
1892
- }
1893
- }
1894
-
1895
- /**
1896
- * @public
1897
- */
1898
- declare interface ThemeShadow {
1899
- umbra: ThemeBoxShadow
1900
- penumbra: ThemeBoxShadow
1901
- ambient: ThemeBoxShadow
1902
- }
1903
-
1904
- /**
1905
- * @internal
1906
- */
1907
- declare interface ThemeStyles {
1908
- button?: {
1909
- root?: CSSObject
1910
- }
1911
- card?: {
1912
- root?: CSSObject
1913
- }
1914
- }
1915
-
1916
- /** @public */
1917
- export declare type ThemeVarName =
1918
- | `--avatar-focus-ring-offset`
1919
- | `--avatar-focus-ring-width`
1920
- | `--avatar-${AvatarSize}-distance`
1921
- | `--avatar-${AvatarSize}-size`
1922
- | `--button-border-width`
1923
- | `--button-focus-ring-offset`
1924
- | `--button-focus-ring-width`
1925
- | `--button-text-weight`
1926
- | `--card-border-width`
1927
- | `--card-focus-ring-offset`
1928
- | `--card-focus-ring-width`
1929
- | `--shadow-outline`
1930
- | `--container-${ContainerWidth}`
1931
- | `--font-code-family`
1932
- | `--font-code-feature-settings`
1933
- | `--font-code-weight-${FontWeight}`
1934
- | `--font-code-${FontCodeSize}-ascender-height`
1935
- | `--font-code-${FontCodeSize}-descender-height`
1936
- | `--font-code-${FontCodeSize}-size`
1937
- | `--font-code-${FontCodeSize}-line-height`
1938
- | `--font-code-${FontCodeSize}-letter-spacing`
1939
- | `--font-code-${FontCodeSize}-icon-size`
1940
- | `--font-heading-family`
1941
- | `--font-heading-feature-settings`
1942
- | `--font-heading-weight-${FontWeight}`
1943
- | `--font-heading-${FontHeadingSize}-ascender-height`
1944
- | `--font-heading-${FontHeadingSize}-descender-height`
1945
- | `--font-heading-${FontHeadingSize}-size`
1946
- | `--font-heading-${FontHeadingSize}-line-height`
1947
- | `--font-heading-${FontHeadingSize}-letter-spacing`
1948
- | `--font-heading-${FontHeadingSize}-icon-size`
1949
- | `--font-label-family`
1950
- | `--font-label-feature-settings`
1951
- | `--font-label-weight-${FontWeight}`
1952
- | `--font-label-${FontLabelSize}-ascender-height`
1953
- | `--font-label-${FontLabelSize}-descender-height`
1954
- | `--font-label-${FontLabelSize}-size`
1955
- | `--font-label-${FontLabelSize}-line-height`
1956
- | `--font-label-${FontLabelSize}-letter-spacing`
1957
- | `--font-label-${FontLabelSize}-icon-size`
1958
- | `--font-text-family`
1959
- | `--font-text-feature-settings`
1960
- | `--font-text-weight-${FontWeight}`
1961
- | `--font-text-${FontTextSize}-ascender-height`
1962
- | `--font-text-${FontTextSize}-descender-height`
1963
- | `--font-text-${FontTextSize}-size`
1964
- | `--font-text-${FontTextSize}-line-height`
1965
- | `--font-text-${FontTextSize}-letter-spacing`
1966
- | `--font-text-${FontTextSize}-icon-size`
1967
- | `--input-border-width`
1968
- | `--input-box-shadow`
1969
- | `--input-checkbox-focus-ring-offset`
1970
- | `--input-checkbox-focus-ring-width`
1971
- | `--input-checkbox-size`
1972
- | `--input-radio-focus-ring-offset`
1973
- | `--input-radio-focus-ring-width`
1974
- | `--input-radio-mark-size`
1975
- | `--input-radio-size`
1976
- | `--input-select-focus-ring-offset`
1977
- | `--input-select-focus-ring-width`
1978
- | `--input-switch-focus-ring-offset`
1979
- | `--input-switch-focus-ring-width`
1980
- | '--input-switch-width'
1981
- | '--input-switch-height'
1982
- | '--input-switch-padding'
1983
- | '--input-switch-transition-duration-ms'
1984
- | '--input-switch-transition-timing-function'
1985
- | '--input-text-focus-ring-offset'
1986
- | '--input-text-focus-ring-width'
1987
- | '--layer-dialog-z-offset'
1988
- | `--radius-${Radius}`
1989
- | `--space-${Exclude<Space, 0.5> | '0_5'}`
1990
- | `--shadow-${Shadow}-umbra`
1991
- | `--shadow-${Shadow}-penumbra`
1992
- | `--shadow-${Shadow}-ambient`
1993
-
1994
- declare type Tint = (typeof TINTS)[number]
1995
-
1996
- declare const TINTS: readonly [
1997
- 50,
1998
- 100,
1999
- 150,
2000
- 200,
2001
- 250,
2002
- 300,
2003
- 350,
2004
- 400,
2005
- 450,
2006
- 500,
2007
- 550,
2008
- 600,
2009
- 650,
2010
- 700,
2011
- 750,
2012
- 800,
2013
- 850,
2014
- 900,
2015
- 950,
2016
- ]
2017
-
2018
- export declare function toast(): string | undefined
2019
-
2020
- export declare function toastLayer(): string | undefined
2021
-
2022
- export declare function toastLoadingBar(): string | undefined
2023
-
2024
- export declare function toastLoadingBarMask(): string | undefined
2025
-
2026
- export declare function toastLoadingBarProgress(): string | undefined
2027
-
2028
- export declare function toBoxShadow(value: ThemeBoxShadow_2 | undefined): string
2029
-
2030
- /** @public */
2031
- declare interface Tokens {
2032
- color: ColorTokens
2033
- }
2034
-
2035
- export declare function tooltip(): string | undefined
2036
-
2037
- export declare function tooltipCard(): string | undefined
2038
-
2039
- export declare function treeItem(): string | undefined
2040
-
2041
- export declare function v3_v2(theme_v3: Theme_v3): RootTheme_v2
2042
-
2043
- /** @public */
2044
- export declare interface VarNames {
2045
- color: Record<ThemeColorSchemeKey_2, ColorSchemeVarNames> &
2046
- ScopedColorVarNames &
2047
- Record<ThemeColorCardToneKey_2, ColorCardVarNames>
2048
- avatar: {
2049
- distance: CSSVarName
2050
- focusRing: {
2051
- offset: CSSVarName
2052
- width: CSSVarName
2053
- }
2054
- size: CSSVarName
2055
- sizes: Record<
2056
- AvatarSize,
2057
- {
2058
- distance: CSSVarName
2059
- size: CSSVarName
2060
- }
2061
- >
2062
- }
2063
- font: {
2064
- code: FontVarNames<FontCodeSize>
2065
- heading: FontVarNames<FontHeadingSize>
2066
- label: FontVarNames<FontLabelSize>
2067
- text: FontVarNames<FontTextSize>
2068
- }
2069
- input: {
2070
- fontSize: CSSVarName
2071
- lineHeight: CSSVarName
2072
- letterSpacing: CSSVarName
2073
- ascenderHeight: CSSVarName
2074
- descenderHeight: CSSVarName
2075
- gap: CSSVarName
2076
- padding: CSSVarName
2077
- }
2078
- space: Record<Space, CSSVarName>
2079
- }
2080
-
2081
- export declare const varNames: VarNames
2082
-
2083
- /** @public */
2084
- export declare interface Vars {
2085
- avatar: {
2086
- distance: CSSVar
2087
- size: CSSVar
2088
- sizes: Record<
2089
- AvatarSize,
2090
- {
2091
- distance: CSSVar
2092
- size: CSSVar
2093
- }
2094
- >
2095
- }
2096
- color: {
2097
- dark: ColorSchemeVars
2098
- light: ColorSchemeVars
2099
- } & ScopedColorVars &
2100
- Record<ThemeColorCardToneKey_2, ColorCardVars>
2101
- font: {
2102
- code: FontVars<FontCodeSize>
2103
- heading: FontVars<FontHeadingSize>
2104
- label: FontVars<FontLabelSize>
2105
- text: FontVars<FontTextSize>
2106
- }
2107
- input: {
2108
- fontSize: CSSVar
2109
- lineHeight: CSSVar
2110
- letterSpacing: CSSVar
2111
- ascenderHeight: CSSVar
2112
- descenderHeight: CSSVar
2113
- gap: CSSVar
2114
- padding: CSSVar
2115
- text: {
2116
- focusRing: {
2117
- offset: CSSVar
2118
- width: CSSVar
2119
- }
2120
- }
2121
- }
2122
- space: Record<Space, CSSVar>
2123
- }
2124
-
2125
- export declare const vars: Vars
2126
-
2127
- export declare type Width = ContainerWidth
2128
-
2129
- export declare function width(props: WidthStyleProps): string
2130
-
2131
- export declare interface WidthStyleProps {
2132
- width?: ResponsiveProp<Width>
2133
- }
2134
-
2135
- export {}