@sanity/ui 3.0.0-static.1 → 3.0.0-static.11

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 (1221) hide show
  1. package/LICENSE +1 -1
  2. package/bin/ui.js +0 -1
  3. package/dist/_chunks-cjs/_visual-editing.js +3091 -0
  4. package/dist/_chunks-cjs/_visual-editing.js.map +1 -0
  5. package/dist/_chunks-cjs/buildCommand.js +14 -3524
  6. package/dist/_chunks-cjs/buildCommand.js.map +1 -1
  7. package/dist/_chunks-cjs/refractor.js +27 -0
  8. package/dist/_chunks-cjs/refractor.js.map +1 -0
  9. package/dist/_chunks-es/_visual-editing.mjs +3098 -0
  10. package/dist/_chunks-es/_visual-editing.mjs.map +1 -0
  11. package/dist/_chunks-es/refractor.mjs +26 -0
  12. package/dist/_chunks-es/refractor.mjs.map +1 -0
  13. package/dist/_visual-editing.d.mts +809 -0
  14. package/dist/_visual-editing.d.ts +809 -0
  15. package/dist/_visual-editing.js +31 -0
  16. package/dist/_visual-editing.js.map +1 -0
  17. package/dist/_visual-editing.mjs +31 -0
  18. package/dist/_visual-editing.mjs.map +1 -0
  19. package/dist/cli.js +337 -5
  20. package/dist/cli.js.map +1 -1
  21. package/dist/css.d.mts +978 -454
  22. package/dist/css.d.ts +978 -454
  23. package/dist/css.js +4533 -3312
  24. package/dist/css.js.map +1 -1
  25. package/dist/css.mjs +4535 -3313
  26. package/dist/css.mjs.map +1 -1
  27. package/dist/index.d.mts +462 -532
  28. package/dist/index.d.ts +462 -532
  29. package/dist/index.js +782 -4640
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.mjs +686 -4553
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/sanity-palette.css +1 -0
  34. package/dist/sanity-theme.css +1 -25
  35. package/dist/system.css +23466 -3377
  36. package/dist/theme.d.mts +399 -112
  37. package/dist/theme.d.ts +399 -112
  38. package/dist/theme.js +1378 -2380
  39. package/dist/theme.js.map +1 -1
  40. package/dist/theme.mjs +1422 -2424
  41. package/dist/theme.mjs.map +1 -1
  42. package/exports/_visual-editing.ts +31 -0
  43. package/exports/index.ts +1 -1
  44. package/package.json +93 -82
  45. package/src/cli/buildCommand.ts +48 -0
  46. package/src/cli/index.ts +38 -0
  47. package/src/css/_comp.test.ts +7 -0
  48. package/src/css/_comp.ts +11 -0
  49. package/src/css/_mergeStyles.ts +31 -0
  50. package/src/css/_resp.ts +15 -6
  51. package/src/css/_responsiveRule.ts +38 -0
  52. package/src/css/aspects/border/border.style.ts +13 -0
  53. package/src/css/aspects/border/border.ts +14 -0
  54. package/src/css/aspects/display/display.style.ts +34 -0
  55. package/src/css/aspects/display/display.ts +7 -0
  56. package/src/css/aspects/display/index.ts +2 -0
  57. package/src/css/aspects/display/types.ts +17 -0
  58. package/src/css/aspects/flex/flex.style.ts +30 -0
  59. package/src/css/aspects/flex/flex.ts +13 -0
  60. package/src/css/aspects/flex/flexAlign.style.ts +12 -0
  61. package/src/css/aspects/flex/flexDirection.style.ts +11 -0
  62. package/src/css/aspects/flex/flexJustify.style.ts +13 -0
  63. package/src/css/aspects/flex/flexWrap.style.ts +10 -0
  64. package/src/css/aspects/flexItem/flex.style.ts +22 -0
  65. package/src/css/aspects/flexItem/flexItem.ts +8 -0
  66. package/src/css/aspects/flexItem/types.ts +27 -0
  67. package/src/css/aspects/font/font.style.ts +92 -0
  68. package/src/css/aspects/font/font.ts +12 -0
  69. package/src/css/aspects/gap/gap.style.ts +21 -0
  70. package/src/css/aspects/gap/gap.ts +8 -0
  71. package/src/css/aspects/gap/types.ts +10 -0
  72. package/src/css/aspects/grid/grid.ts +13 -0
  73. package/src/css/aspects/grid/gridAutoColumns.style.ts +11 -0
  74. package/src/css/aspects/grid/gridAutoFlow.style.ts +11 -0
  75. package/src/css/aspects/grid/gridAutoRows.style.ts +11 -0
  76. package/src/css/aspects/grid/gridColumns.style.ts +18 -0
  77. package/src/css/aspects/grid/gridRows.style.ts +18 -0
  78. package/src/css/aspects/grid/types.ts +29 -0
  79. package/src/css/aspects/gridItem/gridColumn.style.ts +20 -0
  80. package/src/css/aspects/gridItem/gridColumnEnd.style.ts +20 -0
  81. package/src/css/aspects/gridItem/gridColumnStart.style.ts +20 -0
  82. package/src/css/aspects/gridItem/gridItem.ts +15 -0
  83. package/src/css/aspects/gridItem/gridRow.style.ts +20 -0
  84. package/src/css/aspects/gridItem/gridRowEnd.style.ts +20 -0
  85. package/src/css/aspects/gridItem/gridRowStart.style.ts +20 -0
  86. package/src/css/aspects/height/height.style.ts +9 -0
  87. package/src/css/aspects/height/height.ts +17 -0
  88. package/src/css/aspects/height/index.ts +1 -0
  89. package/src/css/aspects/index.ts +21 -0
  90. package/src/css/aspects/inset/index.ts +2 -0
  91. package/src/css/aspects/inset/inset.style.ts +12 -0
  92. package/src/css/aspects/inset/inset.ts +13 -0
  93. package/src/css/aspects/inset/types.ts +13 -0
  94. package/src/css/aspects/margin/margin.style.ts +46 -0
  95. package/src/css/aspects/margin/margin.ts +15 -0
  96. package/src/css/aspects/maxWidth/maxWidth.style.ts +16 -0
  97. package/src/css/aspects/maxWidth/types.ts +7 -0
  98. package/src/css/aspects/minWidth/index.ts +2 -0
  99. package/src/css/aspects/minWidth/minWidth.style.ts +13 -0
  100. package/src/css/aspects/minWidth/minWidth.ts +6 -0
  101. package/src/css/aspects/minWidth/types.ts +7 -0
  102. package/src/css/aspects/outline/outline.style.ts +9 -0
  103. package/src/css/aspects/overflow/overflow.style.ts +11 -0
  104. package/src/css/aspects/overflow/overflow.ts +11 -0
  105. package/src/css/aspects/padding/padding.style.ts +46 -0
  106. package/src/css/aspects/padding/padding.ts +15 -0
  107. package/src/css/aspects/padding/types.ts +14 -0
  108. package/src/css/aspects/pointerEvents/pointerEvents.style.ts +13 -0
  109. package/src/css/aspects/pointerEvents/pointerEvents.ts +6 -0
  110. package/src/css/aspects/position/position.style.ts +12 -0
  111. package/src/css/aspects/position/position.ts +7 -0
  112. package/src/css/aspects/position/types.ts +9 -0
  113. package/src/css/aspects/radius/radius.style.ts +16 -0
  114. package/src/css/aspects/radius/radius.ts +8 -0
  115. package/src/css/aspects/radius/types.ts +8 -0
  116. package/src/css/aspects/shadow/index.ts +2 -0
  117. package/src/css/aspects/shadow/shadow.style.ts +24 -0
  118. package/src/css/aspects/shadow/shadow.ts +7 -0
  119. package/src/css/aspects/shadow/types.ts +8 -0
  120. package/src/css/aspects/textOverflow/index.ts +2 -0
  121. package/src/css/aspects/textOverflow/textOverflow.style.ts +21 -0
  122. package/src/css/aspects/textOverflow/textOverflow.ts +6 -0
  123. package/src/css/aspects/textOverflow/types.ts +8 -0
  124. package/src/css/aspects/width/index.ts +2 -0
  125. package/src/css/aspects/width/rules.ts +8 -0
  126. package/src/css/aspects/width/types.ts +9 -0
  127. package/src/css/aspects/width/width.style.ts +11 -0
  128. package/src/css/compile/compilePalette.ts +28 -0
  129. package/src/css/compile/compileRule.ts +50 -11
  130. package/src/css/compile/compileRules.test.ts +36 -0
  131. package/src/css/compile/compileRules.ts +17 -30
  132. package/src/css/compile/compileStyle.ts +148 -0
  133. package/src/css/compile/compileSystem.ts +3 -3
  134. package/src/css/compile/compileTheme.ts +8 -505
  135. package/src/css/compile/compileTheme_v3.ts +415 -0
  136. package/src/css/compile/types.ts +6 -0
  137. package/src/css/components/breadcrumbs/breadcrumbs.style.ts +9 -0
  138. package/src/css/components/breadcrumbs/breadcrumbs.ts +3 -3
  139. package/src/css/components/dialog/dialog.style.ts +79 -0
  140. package/src/css/components/dialog/dialog.ts +30 -0
  141. package/src/css/components/dialog/index.ts +1 -1
  142. package/src/css/components/menu/menu.style.ts +17 -0
  143. package/src/css/components/menu/menu.ts +7 -3
  144. package/src/css/components/menu/rules.ts +6 -1
  145. package/src/css/components/skeleton/skeleton.style.ts +100 -0
  146. package/src/css/components/skeleton/skeleton.ts +12 -12
  147. package/src/css/components/skeleton/types.ts +3 -1
  148. package/src/css/components/toast/index.ts +1 -0
  149. package/src/css/components/toast/toast.style.ts +20 -0
  150. package/src/css/components/toast/toast.ts +21 -0
  151. package/src/css/components/tree/tree.style.ts +55 -0
  152. package/src/css/components/tree/tree.ts +3 -3
  153. package/src/css/composeClassNames.ts +16 -2
  154. package/src/css/constants.ts +10 -0
  155. package/src/css/index.ts +14 -23
  156. package/src/css/primitives/_arrow/_arrow.style.ts +71 -0
  157. package/src/css/primitives/_arrow/_arrow.ts +18 -0
  158. package/src/css/primitives/_arrow/index.ts +1 -0
  159. package/src/css/primitives/_input/__workshop__/customInput.tsx +16 -0
  160. package/src/css/primitives/_input/__workshop__/index.ts +14 -0
  161. package/src/css/primitives/_input/_input.style.ts +162 -0
  162. package/src/css/primitives/_input/index.ts +2 -0
  163. package/src/css/primitives/_input/input.ts +25 -0
  164. package/src/css/primitives/_input/types.ts +12 -0
  165. package/src/css/primitives/_selectable/__style.ts +117 -0
  166. package/src/css/primitives/_selectable/_contants.ts +11 -0
  167. package/src/css/primitives/_selectable/_selectable.style.ts +132 -0
  168. package/src/css/primitives/_selectable/selectable.ts +9 -0
  169. package/src/css/primitives/_selectable/types.ts +8 -0
  170. package/src/css/primitives/avatar/avatar.style.ts +175 -0
  171. package/src/css/primitives/avatar/avatar.ts +13 -18
  172. package/src/css/primitives/avatar/rules.ts +85 -99
  173. package/src/css/primitives/avatar/types.ts +1 -2
  174. package/src/css/primitives/badge/badge.style.ts +22 -0
  175. package/src/css/primitives/badge/badge.ts +4 -4
  176. package/src/css/primitives/badge/types.ts +2 -2
  177. package/src/css/primitives/box/box.style.ts +31 -0
  178. package/src/css/primitives/box/box.ts +31 -17
  179. package/src/css/primitives/box/types.ts +28 -25
  180. package/src/css/primitives/button/_constants.ts +17 -0
  181. package/src/css/primitives/button/button.style.ts +234 -0
  182. package/src/css/primitives/button/button.ts +29 -14
  183. package/src/css/primitives/button/rules.ts +284 -40
  184. package/src/css/primitives/card/_constants.ts +13 -0
  185. package/src/css/primitives/card/card.style.ts +270 -0
  186. package/src/css/primitives/card/card.ts +9 -16
  187. package/src/css/primitives/card/index.ts +1 -0
  188. package/src/css/primitives/card/types.ts +10 -0
  189. package/src/css/primitives/checkbox/checkbox.style.ts +154 -0
  190. package/src/css/primitives/checkbox/checkbox.ts +5 -5
  191. package/src/css/primitives/checkbox/rules.ts +31 -15
  192. package/src/css/primitives/code/code.style.ts +62 -0
  193. package/src/css/primitives/code/code.ts +4 -4
  194. package/src/css/primitives/code/rules.ts +27 -2
  195. package/src/css/primitives/code/types.ts +1 -1
  196. package/src/css/primitives/container/container.style.ts +10 -0
  197. package/src/css/primitives/container/container.ts +4 -4
  198. package/src/css/primitives/container/types.ts +1 -0
  199. package/src/css/primitives/heading/heading.style.ts +47 -0
  200. package/src/css/primitives/heading/heading.ts +6 -5
  201. package/src/css/primitives/heading/rules.ts +77 -6
  202. package/src/css/primitives/heading/types.ts +2 -2
  203. package/src/css/primitives/kbd/kbd.style.ts +22 -0
  204. package/src/css/primitives/kbd/kbd.ts +4 -4
  205. package/src/css/primitives/kbd/rules.ts +5 -5
  206. package/src/css/primitives/kbd/types.ts +3 -1
  207. package/src/css/primitives/label/label.style.ts +48 -0
  208. package/src/css/primitives/label/label.ts +4 -4
  209. package/src/css/primitives/label/rules.ts +54 -2
  210. package/src/css/primitives/label/types.ts +1 -1
  211. package/src/css/primitives/popover/popover.style.ts +5 -0
  212. package/src/css/primitives/popover/popover.ts +7 -3
  213. package/src/css/primitives/radio/radio.style.ts +123 -0
  214. package/src/css/primitives/radio/radio.ts +3 -3
  215. package/src/css/primitives/radio/rules.ts +117 -1
  216. package/src/css/primitives/select/index.ts +1 -0
  217. package/src/css/primitives/select/rules.ts +18 -1
  218. package/src/css/primitives/select/select.style.ts +24 -0
  219. package/src/css/primitives/select/select.ts +9 -2
  220. package/src/css/primitives/select/types.ts +5 -0
  221. package/src/css/primitives/spinner/spinner.style.ts +22 -0
  222. package/src/css/primitives/spinner/spinner.ts +5 -5
  223. package/src/css/primitives/stack/stack.style.ts +9 -0
  224. package/src/css/primitives/stack/stack.ts +6 -0
  225. package/src/css/primitives/switch/rules.ts +264 -56
  226. package/src/css/primitives/switch/switch.style.ts +94 -0
  227. package/src/css/primitives/switch/switch.ts +19 -3
  228. package/src/css/primitives/text/rules.ts +93 -4
  229. package/src/css/primitives/text/text.style.ts +64 -0
  230. package/src/css/primitives/text/text.ts +5 -4
  231. package/src/css/primitives/text/types.ts +2 -2
  232. package/src/css/primitives/textArea/index.ts +1 -0
  233. package/src/css/primitives/textArea/rules.ts +3 -1
  234. package/src/css/primitives/textArea/textArea.style.ts +9 -0
  235. package/src/css/primitives/textArea/textArea.ts +5 -2
  236. package/src/css/primitives/textArea/types.ts +5 -0
  237. package/src/css/primitives/textInput/rules.ts +33 -130
  238. package/src/css/primitives/textInput/textInput.style.ts +167 -0
  239. package/src/css/primitives/textInput/textInput.ts +4 -11
  240. package/src/css/primitives/textInput/types.ts +8 -5
  241. package/src/css/primitives/token/token.style.ts +50 -0
  242. package/src/css/primitives/tooltip/rules.ts +2 -0
  243. package/src/css/primitives/tooltip/tooltip.style.ts +21 -0
  244. package/src/css/primitives/tooltip/tooltip.ts +5 -5
  245. package/src/css/responsiveRules.ts +12 -19
  246. package/src/css/scopeClassName.ts +6 -0
  247. package/src/css/system.style.ts +158 -0
  248. package/src/css/types.ts +704 -375
  249. package/src/css/util.ts +27 -0
  250. package/src/css/utils/srOnly/srOnly.style.ts +14 -0
  251. package/src/css/utils/srOnly/srOnly.ts +5 -0
  252. package/src/css/varNames.ts +494 -258
  253. package/src/css/vars.ts +408 -282
  254. package/src/theme/_constants.ts +26 -0
  255. package/src/theme/_types.ts +41 -0
  256. package/src/theme/build/_deprecated/color/_selectable/createSelectableTones.ts +1 -1
  257. package/src/theme/build/_deprecated/color/_solid/createSolidTones.ts +1 -1
  258. package/src/theme/build/_deprecated/color/button/createButtonModes.ts +1 -6
  259. package/src/theme/build/_deprecated/color/button/createButtonTones.ts +2 -2
  260. package/src/theme/build/_deprecated/color/card/createCardStates.ts +2 -2
  261. package/src/theme/build/_deprecated/color/factory.ts +8 -9
  262. package/src/theme/build/_deprecated/color/input/createInputModes.ts +1 -1
  263. package/src/theme/build/_deprecated/color/muted/createMuted.ts +2 -2
  264. package/src/theme/build/_deprecated/color/spot/createSpot.ts +1 -1
  265. package/src/theme/build/buildColorTheme.ts +62 -52
  266. package/src/theme/build/buildTheme.ts +8 -32
  267. package/src/theme/build/colorToken/colorToken.ts +1 -1
  268. package/src/theme/build/lib/color-fns/rgba.ts +4 -0
  269. package/src/theme/build/merge.ts +0 -2
  270. package/src/theme/build/mixThemeColor.ts +1 -1
  271. package/src/theme/build/renderColorTheme.ts +34 -37
  272. package/src/theme/build/renderColorValue.ts +4 -3
  273. package/src/theme/build/resolveColorTokens.ts +57 -120
  274. package/src/theme/config/helpers.ts +2 -2
  275. package/src/theme/config/system.ts +3 -2
  276. package/src/theme/config/tokens/color/types.ts +5 -18
  277. package/src/theme/config/tokens/parseTokenKey.ts +1 -1
  278. package/src/theme/config/tokens/parseTokenValue.ts +1 -1
  279. package/src/theme/config/tokens/types.ts +3 -2
  280. package/src/theme/config/types.ts +4 -4
  281. package/src/theme/defaults/colorTokens.ts +8 -6
  282. package/src/theme/defaults/config.ts +2 -2
  283. package/src/theme/defaults/fonts.ts +17 -16
  284. package/src/theme/getScopedTheme.ts +10 -4
  285. package/src/theme/index.ts +7 -1
  286. package/src/theme/palette/constants.ts +13 -0
  287. package/src/theme/palette/index.ts +2 -0
  288. package/src/theme/palette/types.ts +4 -0
  289. package/src/theme/types.ts +32 -0
  290. package/src/theme/v0/color/_generic.ts +35 -0
  291. package/src/theme/v0/color/_system.ts +17 -0
  292. package/src/theme/v0/color/color.ts +40 -0
  293. package/src/theme/v0/color/index.ts +11 -0
  294. package/src/theme/v0/color/input.ts +34 -0
  295. package/src/theme/v0/color/spot.ts +13 -0
  296. package/src/theme/v0/css.ts +8 -0
  297. package/src/theme/v0/font.ts +53 -0
  298. package/src/theme/v0/index.ts +10 -0
  299. package/src/theme/v0/theme.ts +72 -0
  300. package/src/theme/v2/avatar.ts +14 -0
  301. package/src/theme/v2/color/_constants.ts +45 -0
  302. package/src/theme/v2/color/_helpers.ts +24 -0
  303. package/src/theme/v2/color/_system.ts +40 -0
  304. package/src/theme/v2/color/badge.ts +16 -0
  305. package/src/theme/v2/color/color.ts +34 -0
  306. package/src/theme/v2/index.ts +4 -0
  307. package/src/theme/v2/input.ts +33 -0
  308. package/src/theme/v2/theme.ts +49 -0
  309. package/src/theme/v3/buildTheme_v3.test.ts +40 -0
  310. package/src/theme/v3/buildTheme_v3.ts +29 -0
  311. package/src/theme/v3/color/buildColor_v3.ts +198 -0
  312. package/src/theme/v3/color/card.ts +121 -0
  313. package/src/theme/v3/color/color.ts +98 -0
  314. package/src/theme/v3/color/element.ts +19 -0
  315. package/src/theme/v3/color/index.ts +7 -0
  316. package/src/theme/v3/color/parseColor.test.ts +79 -0
  317. package/src/theme/v3/color/parseColor.ts +167 -0
  318. package/src/theme/v3/color/renderColor.test.ts +19 -0
  319. package/src/theme/v3/color/renderColor.ts +33 -0
  320. package/src/theme/v3/color/token.ts +17 -0
  321. package/src/theme/v3/color/tokens.ts +5 -0
  322. package/src/theme/v3/defaultTokens.ts +201 -0
  323. package/src/theme/v3/index.ts +6 -0
  324. package/src/theme/v3/merge.ts +22 -0
  325. package/src/theme/v3/resolveTokens.ts +204 -0
  326. package/src/theme/v3/tokens.ts +16 -0
  327. package/src/theme/v3/types.ts +45 -0
  328. package/src/theme/versioning/getTheme_v2.ts +2 -1
  329. package/src/theme/versioning/index.ts +0 -4
  330. package/src/theme/versioning/is_v0.ts +2 -1
  331. package/src/theme/versioning/is_v2.ts +2 -1
  332. package/src/theme/versioning/themeColor_v0_v2.ts +33 -5
  333. package/src/theme/versioning/themeColor_v2_v2_9.ts +49 -0
  334. package/src/theme/versioning/themeColor_v3_v2.ts +206 -0
  335. package/src/theme/versioning/v0_v2.ts +6 -1
  336. package/src/theme/versioning/v2_v0.ts +6 -6
  337. package/src/theme/versioning/v3_v2.ts +108 -0
  338. package/src/ui/RootClassNames.tsx +41 -0
  339. package/src/ui/StyleTags.tsx +24 -0
  340. package/src/ui/_compat/helpers.ts +72 -0
  341. package/src/ui/_compat/index.ts +5 -0
  342. package/src/ui/_compat/studioTheme.ts +7 -0
  343. package/src/ui/_compat/styles/_responsive.ts +19 -0
  344. package/src/ui/_compat/styles/index.ts +1 -0
  345. package/src/ui/_compat/theme/index.ts +5 -0
  346. package/src/ui/_compat/theme/theme.test.tsx +73 -0
  347. package/src/ui/_compat/theme/themeColorProvider.tsx +30 -0
  348. package/src/ui/_compat/theme/themeContext.ts +10 -0
  349. package/src/ui/_compat/theme/themeProvider.tsx +74 -0
  350. package/src/ui/_compat/theme/useRootTheme.ts +17 -0
  351. package/src/ui/_compat/theme/useTheme.ts +16 -0
  352. package/src/ui/_compat/types.ts +191 -0
  353. package/src/ui/components/autocomplete/__mocks__/apiStore.ts +49 -0
  354. package/src/ui/components/autocomplete/__workshop__/async.tsx +156 -0
  355. package/src/ui/components/autocomplete/__workshop__/constrainedHeight.tsx +131 -0
  356. package/src/ui/components/autocomplete/__workshop__/custom.tsx +90 -0
  357. package/src/ui/components/autocomplete/__workshop__/example.tsx +80 -0
  358. package/src/ui/components/autocomplete/__workshop__/fullscreen.tsx +293 -0
  359. package/src/ui/components/autocomplete/autocomplete.tsx +722 -0
  360. package/src/ui/components/autocomplete/autocompleteOption.tsx +45 -0
  361. package/src/ui/components/autocomplete/types.ts +108 -0
  362. package/src/ui/components/breadcrumbs/__workshop__/example.tsx +62 -0
  363. package/src/ui/components/breadcrumbs/breadcrumbs.tsx +127 -0
  364. package/src/ui/components/dialog/__workshop__/activate.tsx +134 -0
  365. package/src/ui/components/dialog/__workshop__/nested.tsx +72 -0
  366. package/src/ui/components/dialog/__workshop__/onScroll.tsx +39 -0
  367. package/src/ui/components/dialog/__workshop__/panes.tsx +82 -0
  368. package/src/ui/components/dialog/__workshop__/position.tsx +30 -0
  369. package/src/ui/components/dialog/__workshop__/props.tsx +77 -0
  370. package/src/ui/components/dialog/__workshop__/wrapped.tsx +76 -0
  371. package/src/ui/components/dialog/dialog.tsx +432 -0
  372. package/src/ui/components/dialog/dialogProvider.tsx +35 -0
  373. package/src/ui/components/dialog/useDialog.ts +11 -0
  374. package/src/ui/components/hotkeys/hotkeys.tsx +54 -0
  375. package/src/ui/components/menu/__workshop__/asComponent.tsx +45 -0
  376. package/src/ui/components/menu/__workshop__/avatarMenu.tsx +51 -0
  377. package/src/ui/components/menu/__workshop__/constrainedInBoundary.tsx +134 -0
  378. package/src/ui/components/menu/__workshop__/customSelectedState.tsx +39 -0
  379. package/src/ui/components/menu/__workshop__/menuButton.tsx +80 -0
  380. package/src/ui/components/menu/__workshop__/shouldFocus.tsx +47 -0
  381. package/src/ui/components/menu/__workshop__/tones.tsx +25 -0
  382. package/src/ui/components/menu/menu.test.tsx +128 -0
  383. package/src/ui/components/menu/menu.tsx +200 -0
  384. package/src/ui/components/menu/menuButton.tsx +275 -0
  385. package/src/ui/components/menu/menuContext.ts +31 -0
  386. package/src/ui/components/menu/menuDivider.tsx +22 -0
  387. package/src/ui/components/menu/menuGroup.tsx +228 -0
  388. package/src/ui/components/menu/menuItem.tsx +180 -0
  389. package/src/ui/components/menu/useMenu.ts +21 -0
  390. package/src/ui/components/menu/useMenuController.ts +241 -0
  391. package/src/ui/components/skeleton/__workshop__/delay.tsx +70 -0
  392. package/src/ui/components/skeleton/__workshop__/skeleton.tsx +64 -0
  393. package/src/ui/components/skeleton/skeleton.tsx +53 -0
  394. package/src/ui/components/skeleton/textSkeleton.tsx +132 -0
  395. package/src/ui/components/tab/tab.tsx +105 -0
  396. package/src/ui/components/tab/tabList.tsx +74 -0
  397. package/src/ui/components/tab/tabPanel.tsx +40 -0
  398. package/src/ui/components/toast/__workshop__/hook.tsx +71 -0
  399. package/src/ui/components/toast/__workshop__/toast.tsx +26 -0
  400. package/src/ui/components/toast/toast.test.tsx +101 -0
  401. package/src/ui/components/toast/toast.tsx +211 -0
  402. package/src/ui/components/toast/toastLayer.tsx +38 -0
  403. package/src/ui/components/toast/toastProvider.tsx +113 -0
  404. package/src/ui/components/toast/toastState.ts +6 -0
  405. package/src/ui/components/toast/types.ts +28 -0
  406. package/src/ui/components/toast/useToast.ts +25 -0
  407. package/src/ui/components/tree/__workshop__/basic.tsx +105 -0
  408. package/src/ui/components/tree/__workshop__/tabFromElement.tsx +84 -0
  409. package/src/ui/components/tree/tree.tsx +244 -0
  410. package/src/ui/components/tree/treeGroup.tsx +30 -0
  411. package/src/ui/components/tree/treeItem.tsx +220 -0
  412. package/src/ui/components/tree/useTree.ts +17 -0
  413. package/src/ui/constants.ts +85 -0
  414. package/src/ui/helpers/focus.ts +100 -0
  415. package/src/ui/helpers/index.ts +5 -0
  416. package/src/ui/helpers/props.ts +10 -0
  417. package/src/ui/hooks/useArrayProp.ts +29 -0
  418. package/src/ui/hooks/useClickOutside.test.tsx +482 -0
  419. package/src/ui/hooks/useClickOutside.ts +117 -0
  420. package/src/ui/hooks/useClickOutsideEvent.test.tsx +115 -0
  421. package/src/ui/hooks/useClickOutsideEvent.ts +73 -0
  422. package/src/ui/hooks/useDelayed.test.ts +68 -0
  423. package/src/ui/hooks/useDelayedState.ts +28 -0
  424. package/src/ui/hooks/useElementRect/__workshop__/example.tsx +32 -0
  425. package/src/ui/hooks/useElementSize.ts +19 -0
  426. package/src/ui/hooks/useForwardedRef.ts +19 -0
  427. package/src/ui/hooks/useGlobalKeyDown.ts +17 -0
  428. package/src/ui/hooks/useMatchMedia.ts +28 -0
  429. package/src/ui/hooks/useMediaIndex/useMediaIndex.test.tsx +36 -0
  430. package/src/ui/hooks/useMediaIndex/useMediaIndex.ts +102 -0
  431. package/src/ui/hooks/usePrefersDark.hydration.test.tsx +56 -0
  432. package/src/ui/hooks/usePrefersDark.test.tsx +19 -0
  433. package/src/ui/hooks/usePrefersDark.ts +16 -0
  434. package/src/ui/hooks/usePrefersReducedMotion.hydration.test.tsx +56 -0
  435. package/src/ui/hooks/usePrefersReducedMotion.test.tsx +19 -0
  436. package/src/ui/hooks/usePrefersReducedMotion.ts +16 -0
  437. package/src/ui/index.ts +10 -0
  438. package/src/ui/lib/createGlobalScopedContext.ts +34 -0
  439. package/src/ui/lib/globalScope.ts +19 -0
  440. package/src/ui/primitives/_selectable/selectable.tsx +31 -0
  441. package/src/ui/primitives/avatar/__workshop__/asButton.tsx +14 -0
  442. package/src/ui/primitives/avatar/__workshop__/stack.tsx +25 -0
  443. package/src/ui/primitives/avatar/__workshop__/withinButton.tsx +63 -0
  444. package/src/ui/primitives/avatar/__workshop__/withinMenuItem.tsx +72 -0
  445. package/src/ui/primitives/avatar/avatar.tsx +158 -0
  446. package/src/ui/primitives/avatar/avatarCounter.tsx +62 -0
  447. package/src/ui/primitives/avatar/avatarStack.tsx +82 -0
  448. package/src/ui/primitives/avatar/types.ts +17 -0
  449. package/src/ui/primitives/badge/__workshop__/props.tsx +30 -0
  450. package/src/ui/primitives/badge/__workshop__/tones.tsx +21 -0
  451. package/src/ui/primitives/badge/badge.test.tsx +16 -0
  452. package/src/ui/primitives/badge/badge.tsx +64 -0
  453. package/src/ui/primitives/box/__workshop__/props.tsx +20 -0
  454. package/src/ui/primitives/box/box.tsx +162 -0
  455. package/src/ui/primitives/button/__workshop__/custom.tsx +50 -0
  456. package/src/ui/primitives/button/__workshop__/disabled.tsx +74 -0
  457. package/src/ui/primitives/button/__workshop__/props.tsx +58 -0
  458. package/src/ui/primitives/button/__workshop__/stacked.tsx +59 -0
  459. package/src/ui/primitives/button/button.test.tsx +44 -0
  460. package/src/ui/primitives/button/button.tsx +206 -0
  461. package/src/ui/primitives/card/__workshop__/allTones.tsx +27 -0
  462. package/src/ui/primitives/card/__workshop__/asButton.tsx +107 -0
  463. package/src/ui/primitives/card/__workshop__/asComponent.tsx +27 -0
  464. package/src/ui/primitives/card/__workshop__/checkered.tsx +26 -0
  465. package/src/ui/primitives/card/__workshop__/interactive.tsx +30 -0
  466. package/src/ui/primitives/card/__workshop__/listNavigation.tsx +80 -0
  467. package/src/ui/primitives/card/__workshop__/props.tsx +55 -0
  468. package/src/ui/primitives/card/__workshop__/selected.tsx +93 -0
  469. package/src/ui/primitives/card/card.tsx +118 -0
  470. package/src/ui/primitives/card/cardContext.ts +10 -0
  471. package/src/ui/primitives/card/cardProvider.tsx +19 -0
  472. package/src/ui/primitives/card/index.ts +4 -0
  473. package/src/ui/primitives/card/types.ts +27 -0
  474. package/src/ui/primitives/card/useCard.ts +7 -0
  475. package/src/ui/primitives/checkbox/__workshop__/tones.tsx +28 -0
  476. package/src/ui/primitives/checkbox/checkbox.tsx +74 -0
  477. package/src/ui/primitives/code/__workshop__/props.tsx +21 -0
  478. package/src/ui/primitives/code/code.tsx +49 -0
  479. package/src/ui/primitives/code/refractor.tsx +20 -0
  480. package/src/ui/primitives/container/__workshop__/example.tsx +20 -0
  481. package/src/ui/primitives/container/container.tsx +35 -0
  482. package/src/ui/primitives/flex/__workshop__/example.tsx +34 -0
  483. package/src/ui/primitives/flex/__workshop__/gap.tsx +25 -0
  484. package/src/ui/primitives/flex/flex.tsx +29 -0
  485. package/src/ui/primitives/grid/__workshop__/responsive.tsx +54 -0
  486. package/src/ui/primitives/grid/grid.tsx +30 -0
  487. package/src/ui/primitives/heading/__workshop__/opticalAlignment.tsx +54 -0
  488. package/src/ui/primitives/heading/__workshop__/plain.tsx +32 -0
  489. package/src/ui/primitives/heading/heading.tsx +62 -0
  490. package/src/ui/primitives/inline/__workshop__/plain.tsx +27 -0
  491. package/src/ui/primitives/inline/inline.tsx +50 -0
  492. package/src/ui/primitives/kbd/kbd.tsx +55 -0
  493. package/src/ui/primitives/label/__workshop__/opticalAlignment.tsx +54 -0
  494. package/src/ui/primitives/label/__workshop__/plain.tsx +37 -0
  495. package/src/ui/primitives/label/label.tsx +67 -0
  496. package/src/ui/primitives/popover/__workshop__/AlignedStory.tsx +77 -0
  497. package/src/ui/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +32 -0
  498. package/src/ui/primitives/popover/__workshop__/OpenOnMountStory.tsx +11 -0
  499. package/src/ui/primitives/popover/__workshop__/PlainStory.tsx +71 -0
  500. package/src/ui/primitives/popover/__workshop__/SidePanelStory.tsx +93 -0
  501. package/src/ui/primitives/popover/__workshop__/TestStory.tsx +98 -0
  502. package/src/ui/primitives/popover/floating-ui/size.ts +83 -0
  503. package/src/ui/primitives/popover/helpers.ts +32 -0
  504. package/src/ui/primitives/popover/popover.tsx +440 -0
  505. package/src/ui/primitives/popover/popoverCard.tsx +162 -0
  506. package/src/ui/primitives/radio/__workshop__/plain.tsx +28 -0
  507. package/src/ui/primitives/radio/radio.tsx +49 -0
  508. package/src/ui/primitives/select/__workshop__/plain.tsx +30 -0
  509. package/src/ui/primitives/select/__workshop__/readOnly.tsx +23 -0
  510. package/src/ui/primitives/select/select.tsx +85 -0
  511. package/src/ui/primitives/spinner/__workshop__/Props.tsx +16 -0
  512. package/src/ui/primitives/spinner/spinner.tsx +33 -0
  513. package/src/ui/primitives/stack/__workshop__/plain.tsx +32 -0
  514. package/src/ui/primitives/stack/index.ts +1 -0
  515. package/src/ui/primitives/stack/stack.tsx +45 -0
  516. package/src/ui/primitives/switch/switch.tsx +75 -0
  517. package/src/ui/primitives/text/__workshop__/colored.tsx +23 -0
  518. package/src/ui/primitives/text/__workshop__/example.tsx +39 -0
  519. package/src/ui/primitives/text/__workshop__/opticalAlignment.tsx +48 -0
  520. package/src/ui/primitives/text/text.tsx +64 -0
  521. package/src/ui/primitives/textArea/__workshop__/plain.tsx +50 -0
  522. package/src/ui/primitives/textArea/textArea.tsx +71 -0
  523. package/src/ui/primitives/textInput/__workshop__/index.ts +44 -0
  524. package/src/ui/primitives/textInput/__workshop__/plain.tsx +104 -0
  525. package/src/ui/primitives/textInput/__workshop__/readOnly.tsx +9 -0
  526. package/src/ui/primitives/textInput/__workshop__/tones.tsx +277 -0
  527. package/src/ui/primitives/textInput/__workshop__/typed.tsx +23 -0
  528. package/src/ui/primitives/textInput/textInput.tsx +286 -0
  529. package/src/ui/primitives/tooltip/__workshop__/customPortal.tsx +102 -0
  530. package/src/ui/primitives/tooltip/__workshop__/overflowingBoundary.tsx +74 -0
  531. package/src/ui/primitives/tooltip/__workshop__/props.tsx +111 -0
  532. package/src/ui/primitives/tooltip/__workshop__/resizableBoundary.tsx +86 -0
  533. package/src/ui/primitives/tooltip/tooltip.test.tsx +453 -0
  534. package/src/ui/primitives/tooltip/tooltip.tsx +473 -0
  535. package/src/ui/primitives/tooltip/tooltipCard.tsx +115 -0
  536. package/src/ui/primitives/tooltip/tooltipDelayGroup/index.ts +4 -0
  537. package/src/ui/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +55 -0
  538. package/src/ui/primitives/tooltip/tooltipDelayGroup/types.ts +10 -0
  539. package/src/ui/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +13 -0
  540. package/src/ui/primitives/types.ts +166 -0
  541. package/src/ui/types/box.ts +22 -0
  542. package/src/ui/types/button.ts +24 -0
  543. package/src/ui/types/flex.ts +27 -0
  544. package/src/ui/types/grid.ts +17 -0
  545. package/src/ui/types/gridItem.ts +32 -0
  546. package/src/ui/types/index.ts +15 -0
  547. package/src/ui/types/props.ts +18 -0
  548. package/src/ui/types/selectable.ts +7 -0
  549. package/src/ui/utils/arrow/arrow.tsx +51 -0
  550. package/src/ui/utils/boundaryElement/boundaryElement.test.tsx +100 -0
  551. package/src/ui/utils/boundaryElement/boundaryElementProvider.tsx +24 -0
  552. package/src/ui/utils/boundaryElement/index.ts +3 -0
  553. package/src/ui/utils/boundaryElement/useBoundaryElement.ts +26 -0
  554. package/src/ui/utils/conditionalWrapper/conditionalWrapper.tsx +23 -0
  555. package/src/ui/utils/elementQuery/elementQuery.tsx +55 -0
  556. package/src/ui/utils/errorBoundary.tsx +48 -0
  557. package/src/ui/utils/getElementRef.ts +26 -0
  558. package/src/ui/utils/layer/__workshop__/multipleRoots.tsx +49 -0
  559. package/src/ui/utils/layer/__workshop__/nested.tsx +98 -0
  560. package/src/ui/utils/layer/__workshop__/responsiveZOffset.tsx +13 -0
  561. package/src/ui/utils/layer/index.ts +4 -0
  562. package/src/ui/utils/layer/layer.test.tsx +108 -0
  563. package/src/ui/utils/layer/layer.tsx +112 -0
  564. package/src/ui/utils/layer/layerProvider.tsx +110 -0
  565. package/src/ui/utils/layer/useLayer.ts +26 -0
  566. package/src/ui/utils/portal/portal.test.tsx +103 -0
  567. package/src/ui/utils/portal/portal.ts +46 -0
  568. package/src/ui/utils/portal/portalProvider.tsx +79 -0
  569. package/src/ui/utils/portal/usePortal.ts +25 -0
  570. package/src/ui/utils/spanWithTextOverflow.tsx +10 -0
  571. package/src/ui/utils/srOnly/index.ts +1 -0
  572. package/src/ui/utils/srOnly/srOnly.tsx +35 -0
  573. package/src/ui/utils/virtualList/virtualList.tsx +194 -0
  574. package/dist/css.esm.js +0 -3794
  575. package/dist/css.esm.js.map +0 -1
  576. package/dist/index.esm.js +0 -5431
  577. package/dist/index.esm.js.map +0 -1
  578. package/dist/theme.esm.js +0 -4201
  579. package/dist/theme.esm.js.map +0 -1
  580. package/src/core/__workshop__/constants.ts +0 -305
  581. package/src/core/__workshop__/fontsPlugin.tsx +0 -76
  582. package/src/core/_compat/index.ts +0 -2
  583. package/src/core/_compat/styles/border/borderStyle.ts +0 -61
  584. package/src/core/_compat/styles/border/index.ts +0 -2
  585. package/src/core/_compat/styles/border/types.ts +0 -11
  586. package/src/core/_compat/styles/box/boxStyle.ts +0 -74
  587. package/src/core/_compat/styles/box/index.ts +0 -2
  588. package/src/core/_compat/styles/box/types.ts +0 -11
  589. package/src/core/_compat/styles/card/_cardColorStyle.ts +0 -101
  590. package/src/core/_compat/styles/card/index.ts +0 -1
  591. package/src/core/_compat/styles/flex/flexItemStyle.ts +0 -26
  592. package/src/core/_compat/styles/flex/flexStyle.ts +0 -69
  593. package/src/core/_compat/styles/flex/index.ts +0 -3
  594. package/src/core/_compat/styles/flex/types.ts +0 -24
  595. package/src/core/_compat/styles/focusRing/index.ts +0 -25
  596. package/src/core/_compat/styles/font/codeFontStyle.ts +0 -12
  597. package/src/core/_compat/styles/font/headingFontStyle.ts +0 -12
  598. package/src/core/_compat/styles/font/index.ts +0 -6
  599. package/src/core/_compat/styles/font/labelFontStyle.ts +0 -12
  600. package/src/core/_compat/styles/font/responsiveFont.ts +0 -101
  601. package/src/core/_compat/styles/font/textAlignStyle.ts +0 -18
  602. package/src/core/_compat/styles/font/textFontStyle.ts +0 -12
  603. package/src/core/_compat/styles/font/types.ts +0 -34
  604. package/src/core/_compat/styles/grid/gridItemStyle.ts +0 -81
  605. package/src/core/_compat/styles/grid/gridStyle.ts +0 -97
  606. package/src/core/_compat/styles/grid/index.ts +0 -3
  607. package/src/core/_compat/styles/grid/types.ts +0 -37
  608. package/src/core/_compat/styles/helpers.ts +0 -81
  609. package/src/core/_compat/styles/index.ts +0 -5
  610. package/src/core/_compat/styles/input/index.ts +0 -2
  611. package/src/core/_compat/styles/input/responsiveInputPaddingStyle.ts +0 -77
  612. package/src/core/_compat/styles/input/textInputStyle.ts +0 -263
  613. package/src/core/_compat/styles/internal.ts +0 -12
  614. package/src/core/_compat/styles/margin/index.ts +0 -2
  615. package/src/core/_compat/styles/margin/marginStyle.ts +0 -20
  616. package/src/core/_compat/styles/margin/marginsStyle.test.ts +0 -32
  617. package/src/core/_compat/styles/margin/types.ts +0 -9
  618. package/src/core/_compat/styles/padding/index.ts +0 -2
  619. package/src/core/_compat/styles/padding/paddingStyle.test.ts +0 -32
  620. package/src/core/_compat/styles/padding/paddingStyle.ts +0 -20
  621. package/src/core/_compat/styles/padding/types.ts +0 -12
  622. package/src/core/_compat/styles/radius/index.ts +0 -2
  623. package/src/core/_compat/styles/radius/radiusStyle.ts +0 -22
  624. package/src/core/_compat/styles/radius/types.ts +0 -8
  625. package/src/core/_compat/styles/shadow/index.ts +0 -2
  626. package/src/core/_compat/styles/shadow/shadowStyle.ts +0 -29
  627. package/src/core/_compat/styles/shadow/types.ts +0 -6
  628. package/src/core/_compat/styles/types.ts +0 -8
  629. package/src/core/_compat/types.ts +0 -264
  630. package/src/core/components/autocomplete/__mocks__/apiStore.ts +0 -49
  631. package/src/core/components/autocomplete/__workshop__/.eslintrc +0 -5
  632. package/src/core/components/autocomplete/__workshop__/async.tsx +0 -155
  633. package/src/core/components/autocomplete/__workshop__/constrainedHeight.tsx +0 -136
  634. package/src/core/components/autocomplete/__workshop__/custom.tsx +0 -89
  635. package/src/core/components/autocomplete/__workshop__/example.tsx +0 -79
  636. package/src/core/components/autocomplete/__workshop__/fullscreen.tsx +0 -293
  637. package/src/core/components/autocomplete/autocomplete.tsx +0 -735
  638. package/src/core/components/autocomplete/autocompleteOption.tsx +0 -44
  639. package/src/core/components/autocomplete/types.ts +0 -108
  640. package/src/core/components/breadcrumbs/__workshop__/.eslintrc +0 -5
  641. package/src/core/components/breadcrumbs/__workshop__/example.tsx +0 -55
  642. package/src/core/components/breadcrumbs/breadcrumbs.tsx +0 -111
  643. package/src/core/components/dialog/__workshop__/.eslintrc +0 -5
  644. package/src/core/components/dialog/__workshop__/activate.tsx +0 -133
  645. package/src/core/components/dialog/__workshop__/nested.tsx +0 -72
  646. package/src/core/components/dialog/__workshop__/onScroll.tsx +0 -39
  647. package/src/core/components/dialog/__workshop__/panes.tsx +0 -81
  648. package/src/core/components/dialog/__workshop__/position.tsx +0 -29
  649. package/src/core/components/dialog/__workshop__/props.tsx +0 -76
  650. package/src/core/components/dialog/__workshop__/wrapped.tsx +0 -78
  651. package/src/core/components/dialog/dialog.tsx +0 -410
  652. package/src/core/components/dialog/dialogProvider.tsx +0 -34
  653. package/src/core/components/dialog/useDialog.ts +0 -10
  654. package/src/core/components/hotkeys/__workshop__/.eslintrc +0 -5
  655. package/src/core/components/hotkeys/hotkeys.tsx +0 -50
  656. package/src/core/components/menu/__workshop__/.eslintrc +0 -5
  657. package/src/core/components/menu/__workshop__/asComponent.tsx +0 -44
  658. package/src/core/components/menu/__workshop__/avatarMenu.tsx +0 -50
  659. package/src/core/components/menu/__workshop__/constrainedInBoundary.tsx +0 -133
  660. package/src/core/components/menu/__workshop__/customSelectedState.tsx +0 -38
  661. package/src/core/components/menu/__workshop__/menuButton.tsx +0 -79
  662. package/src/core/components/menu/__workshop__/shouldFocus.tsx +0 -46
  663. package/src/core/components/menu/__workshop__/tones.tsx +0 -25
  664. package/src/core/components/menu/menu.test.tsx +0 -129
  665. package/src/core/components/menu/menu.tsx +0 -173
  666. package/src/core/components/menu/menuButton.tsx +0 -289
  667. package/src/core/components/menu/menuContext.ts +0 -29
  668. package/src/core/components/menu/menuDivider.tsx +0 -16
  669. package/src/core/components/menu/menuGroup.tsx +0 -204
  670. package/src/core/components/menu/menuItem.tsx +0 -187
  671. package/src/core/components/menu/useMenu.ts +0 -20
  672. package/src/core/components/menu/useMenuController.ts +0 -230
  673. package/src/core/components/skeleton/__workshop__/.eslintrc +0 -5
  674. package/src/core/components/skeleton/__workshop__/delay.tsx +0 -69
  675. package/src/core/components/skeleton/__workshop__/skeleton.tsx +0 -63
  676. package/src/core/components/skeleton/skeleton.tsx +0 -52
  677. package/src/core/components/skeleton/textSkeleton.tsx +0 -146
  678. package/src/core/components/tab/__workshop__/.eslintrc +0 -5
  679. package/src/core/components/tab/tab.tsx +0 -98
  680. package/src/core/components/tab/tabList.tsx +0 -61
  681. package/src/core/components/tab/tabPanel.tsx +0 -39
  682. package/src/core/components/toast/__workshop__/.eslintrc +0 -5
  683. package/src/core/components/toast/__workshop__/hook.tsx +0 -71
  684. package/src/core/components/toast/__workshop__/toast.tsx +0 -25
  685. package/src/core/components/toast/toast.test.tsx +0 -102
  686. package/src/core/components/toast/toast.tsx +0 -122
  687. package/src/core/components/toast/toastProvider.tsx +0 -193
  688. package/src/core/components/toast/types.ts +0 -20
  689. package/src/core/components/toast/useToast.ts +0 -24
  690. package/src/core/components/tree/__workshop__/.eslintrc +0 -5
  691. package/src/core/components/tree/__workshop__/basic.tsx +0 -104
  692. package/src/core/components/tree/__workshop__/tabFromElement.tsx +0 -83
  693. package/src/core/components/tree/tree.tsx +0 -241
  694. package/src/core/components/tree/treeGroup.tsx +0 -32
  695. package/src/core/components/tree/treeItem.tsx +0 -213
  696. package/src/core/components/tree/useTree.ts +0 -16
  697. package/src/core/constants.ts +0 -57
  698. package/src/core/helpers/focus.ts +0 -100
  699. package/src/core/helpers/index.ts +0 -4
  700. package/src/core/hooks/useArrayProp.ts +0 -25
  701. package/src/core/hooks/useClickOutside.test.tsx +0 -483
  702. package/src/core/hooks/useClickOutside.ts +0 -116
  703. package/src/core/hooks/useClickOutsideEvent.test.tsx +0 -116
  704. package/src/core/hooks/useClickOutsideEvent.ts +0 -72
  705. package/src/core/hooks/useDelayed.test.ts +0 -67
  706. package/src/core/hooks/useDelayedState.ts +0 -29
  707. package/src/core/hooks/useElementRect/__workshop__/.eslintrc +0 -5
  708. package/src/core/hooks/useElementRect/__workshop__/example.tsx +0 -31
  709. package/src/core/hooks/useElementSize.ts +0 -18
  710. package/src/core/hooks/useForwardedRef.ts +0 -19
  711. package/src/core/hooks/useGlobalKeyDown.ts +0 -12
  712. package/src/core/hooks/useMatchMedia.ts +0 -46
  713. package/src/core/hooks/useMediaIndex/__workshop__/.eslintrc +0 -5
  714. package/src/core/hooks/useMediaIndex/useMediaIndex.test.tsx +0 -35
  715. package/src/core/hooks/useMediaIndex/useMediaIndex.ts +0 -101
  716. package/src/core/hooks/usePrefersDark.hydration.test.tsx +0 -57
  717. package/src/core/hooks/usePrefersDark.test.tsx +0 -18
  718. package/src/core/hooks/usePrefersDark.ts +0 -16
  719. package/src/core/hooks/usePrefersReducedMotion.hydration.test.tsx +0 -57
  720. package/src/core/hooks/usePrefersReducedMotion.test.tsx +0 -18
  721. package/src/core/hooks/usePrefersReducedMotion.ts +0 -16
  722. package/src/core/index.ts +0 -10
  723. package/src/core/lib/createGlobalScopedContext.ts +0 -33
  724. package/src/core/lib/globalScope.ts +0 -20
  725. package/src/core/lib/styled/elements.ts +0 -135
  726. package/src/core/lib/styled/index.ts +0 -2
  727. package/src/core/lib/styled/members.ts +0 -15
  728. package/src/core/lib/styled/styled.ts +0 -79
  729. package/src/core/primitives/_selectable/selectable.tsx +0 -27
  730. package/src/core/primitives/avatar/__workshop__/.eslintrc +0 -5
  731. package/src/core/primitives/avatar/__workshop__/asButton.tsx +0 -13
  732. package/src/core/primitives/avatar/__workshop__/stack.tsx +0 -24
  733. package/src/core/primitives/avatar/__workshop__/withinButton.tsx +0 -62
  734. package/src/core/primitives/avatar/__workshop__/withinMenuItem.tsx +0 -69
  735. package/src/core/primitives/avatar/avatar.tsx +0 -196
  736. package/src/core/primitives/avatar/avatarCounter.tsx +0 -93
  737. package/src/core/primitives/avatar/avatarStack.tsx +0 -100
  738. package/src/core/primitives/avatar/styles.ts +0 -166
  739. package/src/core/primitives/avatar/types.ts +0 -16
  740. package/src/core/primitives/badge/__workshop__/.eslintrc +0 -5
  741. package/src/core/primitives/badge/__workshop__/props.tsx +0 -29
  742. package/src/core/primitives/badge/__workshop__/tones.tsx +0 -20
  743. package/src/core/primitives/badge/badge.test.tsx +0 -15
  744. package/src/core/primitives/badge/badge.tsx +0 -59
  745. package/src/core/primitives/badge/styles.ts +0 -19
  746. package/src/core/primitives/box/__workshop__/.eslintrc +0 -5
  747. package/src/core/primitives/box/__workshop__/props.tsx +0 -19
  748. package/src/core/primitives/box/box.tsx +0 -121
  749. package/src/core/primitives/button/__workshop__/.eslintrc +0 -5
  750. package/src/core/primitives/button/__workshop__/custom.tsx +0 -47
  751. package/src/core/primitives/button/__workshop__/disabled.tsx +0 -73
  752. package/src/core/primitives/button/__workshop__/props.tsx +0 -53
  753. package/src/core/primitives/button/__workshop__/stacked.tsx +0 -58
  754. package/src/core/primitives/button/button.test.tsx +0 -43
  755. package/src/core/primitives/button/button.tsx +0 -181
  756. package/src/core/primitives/button/styles.ts +0 -116
  757. package/src/core/primitives/card/RootCardContext.ts +0 -3
  758. package/src/core/primitives/card/__workshop__/.eslintrc +0 -5
  759. package/src/core/primitives/card/__workshop__/allTones.tsx +0 -27
  760. package/src/core/primitives/card/__workshop__/asButton.tsx +0 -88
  761. package/src/core/primitives/card/__workshop__/asComponent.tsx +0 -27
  762. package/src/core/primitives/card/__workshop__/checkered.tsx +0 -16
  763. package/src/core/primitives/card/__workshop__/interactive.tsx +0 -23
  764. package/src/core/primitives/card/__workshop__/listNavigation.tsx +0 -77
  765. package/src/core/primitives/card/__workshop__/props.tsx +0 -49
  766. package/src/core/primitives/card/__workshop__/selected.tsx +0 -91
  767. package/src/core/primitives/card/card.tsx +0 -110
  768. package/src/core/primitives/card/index.ts +0 -2
  769. package/src/core/primitives/card/types.ts +0 -11
  770. package/src/core/primitives/checkbox/__workshop__/.eslintrc +0 -5
  771. package/src/core/primitives/checkbox/__workshop__/tones.tsx +0 -22
  772. package/src/core/primitives/checkbox/checkbox.tsx +0 -70
  773. package/src/core/primitives/code/__workshop__/.eslintrc +0 -5
  774. package/src/core/primitives/code/__workshop__/props.tsx +0 -20
  775. package/src/core/primitives/code/code.tsx +0 -49
  776. package/src/core/primitives/code/styles.ts +0 -77
  777. package/src/core/primitives/container/__workshop__/.eslintrc +0 -5
  778. package/src/core/primitives/container/__workshop__/example.tsx +0 -19
  779. package/src/core/primitives/container/container.tsx +0 -32
  780. package/src/core/primitives/container/styles.ts +0 -22
  781. package/src/core/primitives/flex/__workshop__/.eslintrc +0 -5
  782. package/src/core/primitives/flex/__workshop__/example.tsx +0 -33
  783. package/src/core/primitives/flex/__workshop__/gap.tsx +0 -25
  784. package/src/core/primitives/flex/flex.tsx +0 -32
  785. package/src/core/primitives/grid/__workshop__/.eslintrc +0 -5
  786. package/src/core/primitives/grid/__workshop__/responsive.tsx +0 -54
  787. package/src/core/primitives/grid/grid.tsx +0 -34
  788. package/src/core/primitives/heading/__workshop__/.eslintrc +0 -5
  789. package/src/core/primitives/heading/__workshop__/opticalAlignment.tsx +0 -66
  790. package/src/core/primitives/heading/__workshop__/plain.tsx +0 -31
  791. package/src/core/primitives/heading/heading.tsx +0 -82
  792. package/src/core/primitives/heading/styles.ts +0 -63
  793. package/src/core/primitives/heading/types.ts +0 -7
  794. package/src/core/primitives/inline/__workshop__/.eslintrc +0 -5
  795. package/src/core/primitives/inline/__workshop__/plain.tsx +0 -26
  796. package/src/core/primitives/inline/inline.tsx +0 -47
  797. package/src/core/primitives/inline/styles.ts +0 -31
  798. package/src/core/primitives/kbd/__workshop__/.eslintrc +0 -5
  799. package/src/core/primitives/kbd/kbd.tsx +0 -53
  800. package/src/core/primitives/label/__workshop__/.eslintrc +0 -5
  801. package/src/core/primitives/label/__workshop__/opticalAlignment.tsx +0 -48
  802. package/src/core/primitives/label/__workshop__/plain.tsx +0 -23
  803. package/src/core/primitives/label/label.tsx +0 -91
  804. package/src/core/primitives/label/styles.ts +0 -44
  805. package/src/core/primitives/popover/__workshop__/.eslintrc +0 -5
  806. package/src/core/primitives/popover/__workshop__/AlignedStory.tsx +0 -76
  807. package/src/core/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -31
  808. package/src/core/primitives/popover/__workshop__/OpenOnMountStory.tsx +0 -11
  809. package/src/core/primitives/popover/__workshop__/PlainStory.tsx +0 -70
  810. package/src/core/primitives/popover/__workshop__/SidePanelStory.tsx +0 -86
  811. package/src/core/primitives/popover/__workshop__/TestStory.tsx +0 -97
  812. package/src/core/primitives/popover/floating-ui/size.ts +0 -82
  813. package/src/core/primitives/popover/helpers.ts +0 -31
  814. package/src/core/primitives/popover/popover.tsx +0 -476
  815. package/src/core/primitives/popover/popoverCard.tsx +0 -153
  816. package/src/core/primitives/radio/__workshop__/.eslintrc +0 -5
  817. package/src/core/primitives/radio/__workshop__/plain.tsx +0 -28
  818. package/src/core/primitives/radio/radio.tsx +0 -50
  819. package/src/core/primitives/radio/styles.ts +0 -116
  820. package/src/core/primitives/select/__workshop__/.eslintrc +0 -5
  821. package/src/core/primitives/select/__workshop__/plain.tsx +0 -27
  822. package/src/core/primitives/select/__workshop__/readOnly.tsx +0 -23
  823. package/src/core/primitives/select/select.tsx +0 -86
  824. package/src/core/primitives/select/styles.ts +0 -166
  825. package/src/core/primitives/spinner/__workshop__/.eslintrc +0 -5
  826. package/src/core/primitives/spinner/__workshop__/Props.tsx +0 -15
  827. package/src/core/primitives/spinner/spinner.tsx +0 -31
  828. package/src/core/primitives/stack/__workshop__/.eslintrc +0 -5
  829. package/src/core/primitives/stack/__workshop__/plain.tsx +0 -31
  830. package/src/core/primitives/stack/stack.tsx +0 -41
  831. package/src/core/primitives/stack/styles.ts +0 -31
  832. package/src/core/primitives/switch/__workshop__/.eslintrc +0 -5
  833. package/src/core/primitives/switch/styles.ts +0 -172
  834. package/src/core/primitives/switch/switch.tsx +0 -66
  835. package/src/core/primitives/text/__workshop__/.eslintrc +0 -5
  836. package/src/core/primitives/text/__workshop__/colored.tsx +0 -29
  837. package/src/core/primitives/text/__workshop__/example.tsx +0 -38
  838. package/src/core/primitives/text/__workshop__/opticalAlignment.tsx +0 -58
  839. package/src/core/primitives/text/styles.ts +0 -73
  840. package/src/core/primitives/text/text.tsx +0 -82
  841. package/src/core/primitives/textArea/__workshop__/.eslintrc +0 -5
  842. package/src/core/primitives/textArea/__workshop__/plain.tsx +0 -49
  843. package/src/core/primitives/textArea/textArea.tsx +0 -118
  844. package/src/core/primitives/textInput/__workshop__/.eslintrc +0 -5
  845. package/src/core/primitives/textInput/__workshop__/index.ts +0 -49
  846. package/src/core/primitives/textInput/__workshop__/multipleTones.tsx +0 -20
  847. package/src/core/primitives/textInput/__workshop__/plain.tsx +0 -99
  848. package/src/core/primitives/textInput/__workshop__/readOnly.tsx +0 -5
  849. package/src/core/primitives/textInput/__workshop__/tones.tsx +0 -239
  850. package/src/core/primitives/textInput/__workshop__/typed.tsx +0 -22
  851. package/src/core/primitives/textInput/textInput.tsx +0 -373
  852. package/src/core/primitives/tooltip/__workshop__/.eslintrc +0 -5
  853. package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +0 -101
  854. package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +0 -73
  855. package/src/core/primitives/tooltip/__workshop__/props.tsx +0 -106
  856. package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +0 -85
  857. package/src/core/primitives/tooltip/tooltip.test.tsx +0 -451
  858. package/src/core/primitives/tooltip/tooltip.tsx +0 -464
  859. package/src/core/primitives/tooltip/tooltipCard.tsx +0 -110
  860. package/src/core/primitives/tooltip/tooltipDelayGroup/index.ts +0 -4
  861. package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +0 -57
  862. package/src/core/primitives/tooltip/tooltipDelayGroup/types.ts +0 -11
  863. package/src/core/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -12
  864. package/src/core/primitives/types.ts +0 -166
  865. package/src/core/theme/__workshop__/.eslintrc +0 -5
  866. package/src/core/theme/__workshop__/build/Root.tsx +0 -367
  867. package/src/core/theme/__workshop__/build/helpers.ts +0 -46
  868. package/src/core/theme/__workshop__/build/story.tsx +0 -457
  869. package/src/core/theme/__workshop__/canvas.tsx +0 -350
  870. package/src/core/theme/__workshop__/color.tsx +0 -62
  871. package/src/core/theme/__workshop__/debug/story.tsx +0 -401
  872. package/src/core/theme/__workshop__/index.ts +0 -39
  873. package/src/core/theme/__workshop__/layer.tsx +0 -78
  874. package/src/core/theme/__workshop__/nestedProvider.tsx +0 -15
  875. package/src/core/theme/index.ts +0 -5
  876. package/src/core/theme/theme.test.tsx +0 -73
  877. package/src/core/theme/themeColorProvider.tsx +0 -28
  878. package/src/core/theme/themeContext.ts +0 -10
  879. package/src/core/theme/themeProvider.tsx +0 -63
  880. package/src/core/theme/useRootTheme.ts +0 -16
  881. package/src/core/theme/useTheme.ts +0 -16
  882. package/src/core/types/box.ts +0 -25
  883. package/src/core/types/button.ts +0 -22
  884. package/src/core/types/flex.ts +0 -31
  885. package/src/core/types/grid.ts +0 -19
  886. package/src/core/types/gridItem.ts +0 -37
  887. package/src/core/types/index.ts +0 -14
  888. package/src/core/types/selectable.ts +0 -6
  889. package/src/core/utils/arrow/arrow.tsx +0 -122
  890. package/src/core/utils/boundaryElement/__workshop__/.eslintrc +0 -5
  891. package/src/core/utils/boundaryElement/boundaryElement.test.tsx +0 -101
  892. package/src/core/utils/boundaryElement/boundaryElementProvider.tsx +0 -23
  893. package/src/core/utils/boundaryElement/index.ts +0 -3
  894. package/src/core/utils/boundaryElement/useBoundaryElement.ts +0 -25
  895. package/src/core/utils/conditionalWrapper/conditionalWrapper.tsx +0 -21
  896. package/src/core/utils/elementQuery/__workshop__/.eslintrc +0 -5
  897. package/src/core/utils/elementQuery/elementQuery.tsx +0 -53
  898. package/src/core/utils/errorBoundary.tsx +0 -47
  899. package/src/core/utils/layer/__workshop__/.eslintrc +0 -5
  900. package/src/core/utils/layer/__workshop__/multipleRoots.tsx +0 -48
  901. package/src/core/utils/layer/__workshop__/nested.tsx +0 -97
  902. package/src/core/utils/layer/__workshop__/responsiveZOffset.tsx +0 -12
  903. package/src/core/utils/layer/index.ts +0 -4
  904. package/src/core/utils/layer/layer.test.tsx +0 -109
  905. package/src/core/utils/layer/layer.tsx +0 -108
  906. package/src/core/utils/layer/layerProvider.tsx +0 -109
  907. package/src/core/utils/layer/useLayer.ts +0 -25
  908. package/src/core/utils/portal/__workshop__/.eslintrc +0 -5
  909. package/src/core/utils/portal/portal.test.tsx +0 -104
  910. package/src/core/utils/portal/portal.ts +0 -31
  911. package/src/core/utils/portal/portalProvider.tsx +0 -78
  912. package/src/core/utils/portal/usePortal.ts +0 -24
  913. package/src/core/utils/srOnly/srOnly.tsx +0 -36
  914. package/src/core/utils/virtualList/__workshop__/.eslintrc +0 -5
  915. package/src/core/utils/virtualList/virtualList.tsx +0 -170
  916. package/src/css/cli/buildCommand.ts +0 -36
  917. package/src/css/cli/index.ts +0 -38
  918. package/src/css/components/breadcrumbs/rules.ts +0 -25
  919. package/src/css/components/dialog/classes.ts +0 -29
  920. package/src/css/components/dialog/rules.ts +0 -75
  921. package/src/css/components/skeleton/rules.ts +0 -106
  922. package/src/css/components/toast/rules.ts +0 -68
  923. package/src/css/components/tree/rules.ts +0 -167
  924. package/src/css/primitives/badge/rules.ts +0 -25
  925. package/src/css/primitives/box/rules.ts +0 -25
  926. package/src/css/primitives/card/rules.ts +0 -241
  927. package/src/css/primitives/popover/rules.ts +0 -5
  928. package/src/css/primitives/selectable/__style.ts +0 -117
  929. package/src/css/primitives/selectable/rules.ts +0 -27
  930. package/src/css/primitives/selectable/selectable.ts +0 -9
  931. package/src/css/primitives/selectable/types.ts +0 -6
  932. package/src/css/primitives/spinner/rules.ts +0 -20
  933. package/src/css/primitives/token/rules.ts +0 -45
  934. package/src/css/rules.ts +0 -99
  935. package/src/css/styles/border/border.ts +0 -22
  936. package/src/css/styles/border/rules.ts +0 -24
  937. package/src/css/styles/display/rules.ts +0 -62
  938. package/src/css/styles/flex/flex.ts +0 -20
  939. package/src/css/styles/flex/rules.ts +0 -28
  940. package/src/css/styles/flexItem/flexItem.ts +0 -8
  941. package/src/css/styles/flexItem/rules.ts +0 -11
  942. package/src/css/styles/flexItem/types.ts +0 -11
  943. package/src/css/styles/font/font.ts +0 -17
  944. package/src/css/styles/font/rules.ts +0 -148
  945. package/src/css/styles/gap/gap.ts +0 -8
  946. package/src/css/styles/gap/rules.ts +0 -33
  947. package/src/css/styles/gap/types.ts +0 -9
  948. package/src/css/styles/grid/grid.ts +0 -13
  949. package/src/css/styles/grid/rules.ts +0 -146
  950. package/src/css/styles/grid/types.ts +0 -29
  951. package/src/css/styles/gridItem/gridItem.ts +0 -15
  952. package/src/css/styles/gridItem/rules.ts +0 -96
  953. package/src/css/styles/margin/margin.ts +0 -15
  954. package/src/css/styles/margin/rules.ts +0 -63
  955. package/src/css/styles/maxWidth/rules.ts +0 -36
  956. package/src/css/styles/maxWidth/types.ts +0 -6
  957. package/src/css/styles/outline/rules.ts +0 -7
  958. package/src/css/styles/overflow/overflow.ts +0 -11
  959. package/src/css/styles/overflow/rules.ts +0 -9
  960. package/src/css/styles/padding/padding.ts +0 -15
  961. package/src/css/styles/padding/rules.ts +0 -61
  962. package/src/css/styles/padding/types.ts +0 -12
  963. package/src/css/styles/pointerEvents/pointerEvents.ts +0 -6
  964. package/src/css/styles/pointerEvents/rules.ts +0 -11
  965. package/src/css/styles/position/position.ts +0 -7
  966. package/src/css/styles/position/rules.ts +0 -31
  967. package/src/css/styles/position/types.ts +0 -13
  968. package/src/css/styles/radius/radius.ts +0 -8
  969. package/src/css/styles/radius/rules.ts +0 -13
  970. package/src/css/styles/radius/types.ts +0 -7
  971. package/src/css/styles/shadow/rules.ts +0 -53
  972. package/src/css/styles/width/index.ts +0 -2
  973. package/src/css/styles/width/rules.ts +0 -7
  974. package/src/css/styles/width/types.ts +0 -8
  975. package/src/theme/system/_constants.ts +0 -25
  976. package/src/theme/system/_types.ts +0 -41
  977. package/src/theme/system/avatar.ts +0 -14
  978. package/src/theme/system/color/_constants.ts +0 -41
  979. package/src/theme/system/color/_helpers.ts +0 -23
  980. package/src/theme/system/color/_system.ts +0 -40
  981. package/src/theme/system/color/badge.ts +0 -20
  982. package/src/theme/system/color/color.ts +0 -34
  983. package/src/theme/system/css.ts +0 -9
  984. package/src/theme/system/font.ts +0 -52
  985. package/src/theme/system/index.ts +0 -14
  986. package/src/theme/system/input.ts +0 -33
  987. package/src/theme/system/theme.ts +0 -138
  988. package/src/theme/system/v0/color/_generic.ts +0 -35
  989. package/src/theme/system/v0/color/_system.ts +0 -13
  990. package/src/theme/system/v0/color/color.ts +0 -39
  991. package/src/theme/system/v0/color/index.ts +0 -11
  992. package/src/theme/system/v0/color/input.ts +0 -34
  993. package/src/theme/system/v0/color/spot.ts +0 -13
  994. package/src/theme/system/v0/index.ts +0 -3
  995. package/theme.js +0 -2
  996. /package/src/css/{styles → aspects}/border/index.ts +0 -0
  997. /package/src/css/{styles → aspects}/border/types.ts +0 -0
  998. /package/src/css/{styles → aspects}/flex/index.ts +0 -0
  999. /package/src/css/{styles → aspects}/flex/types.ts +0 -0
  1000. /package/src/css/{styles → aspects}/flexItem/index.ts +0 -0
  1001. /package/src/css/{styles → aspects}/font/index.ts +0 -0
  1002. /package/src/css/{styles → aspects}/font/types.ts +0 -0
  1003. /package/src/css/{styles → aspects}/gap/index.ts +0 -0
  1004. /package/src/css/{styles → aspects}/grid/index.ts +0 -0
  1005. /package/src/css/{styles → aspects}/gridItem/index.ts +0 -0
  1006. /package/src/css/{styles → aspects}/gridItem/types.ts +0 -0
  1007. /package/src/css/{styles → aspects}/height/rules.ts +0 -0
  1008. /package/src/css/{styles → aspects}/margin/index.ts +0 -0
  1009. /package/src/css/{styles → aspects}/margin/types.ts +0 -0
  1010. /package/src/css/{styles → aspects}/maxWidth/index.ts +0 -0
  1011. /package/src/css/{styles → aspects}/maxWidth/maxWidth.ts +0 -0
  1012. /package/src/css/{styles → aspects}/overflow/index.ts +0 -0
  1013. /package/src/css/{styles → aspects}/overflow/types.ts +0 -0
  1014. /package/src/css/{styles → aspects}/padding/index.ts +0 -0
  1015. /package/src/css/{styles → aspects}/pointerEvents/index.ts +0 -0
  1016. /package/src/css/{styles → aspects}/pointerEvents/types.ts +0 -0
  1017. /package/src/css/{styles → aspects}/position/index.ts +0 -0
  1018. /package/src/css/{styles → aspects}/radius/index.ts +0 -0
  1019. /package/src/css/{styles → aspects}/width/width.ts +0 -0
  1020. /package/src/css/primitives/{selectable → _selectable}/index.ts +0 -0
  1021. /package/src/{core → css}/primitives/stack/index.ts +0 -0
  1022. /package/src/{core → css}/utils/srOnly/index.ts +0 -0
  1023. /package/src/theme/{system/v0 → v0}/avatar.ts +0 -0
  1024. /package/src/theme/{system/v0 → v0}/color/base.ts +0 -0
  1025. /package/src/theme/{system/v0 → v0}/color/button.ts +0 -0
  1026. /package/src/theme/{system/v0 → v0}/color/card.ts +0 -0
  1027. /package/src/theme/{system/v0 → v0}/color/muted.ts +0 -0
  1028. /package/src/theme/{system/v0 → v0}/color/selectable.ts +0 -0
  1029. /package/src/theme/{system/v0 → v0}/color/solid.ts +0 -0
  1030. /package/src/theme/{system → v0}/focusRing.ts +0 -0
  1031. /package/src/theme/{system/v0 → v0}/input.ts +0 -0
  1032. /package/src/theme/{system → v0}/layer.ts +0 -0
  1033. /package/src/theme/{system → v0}/shadow.ts +0 -0
  1034. /package/src/theme/{system → v0}/styles.ts +0 -0
  1035. /package/src/theme/{system → v2}/color/avatar.ts +0 -0
  1036. /package/src/theme/{system → v2}/color/button.ts +0 -0
  1037. /package/src/theme/{system → v2}/color/index.ts +0 -0
  1038. /package/src/theme/{system → v2}/color/input.ts +0 -0
  1039. /package/src/theme/{system → v2}/color/kbd.ts +0 -0
  1040. /package/src/theme/{system → v2}/color/selectable.ts +0 -0
  1041. /package/src/theme/{system → v2}/color/shadow.ts +0 -0
  1042. /package/src/theme/{system → v2}/color/state.ts +0 -0
  1043. /package/src/theme/{system → v2}/color/syntax.ts +0 -0
  1044. /package/src/{core → ui/_compat}/theme/types.ts +0 -0
  1045. /package/src/{core/components/autocomplete/__fixtures__ → ui/components/autocomplete/__mocks__}/countries.ts +0 -0
  1046. /package/src/{core → ui}/components/autocomplete/__workshop__/focusAndBlur.tsx +0 -0
  1047. /package/src/{core → ui}/components/autocomplete/__workshop__/index.ts +0 -0
  1048. /package/src/{core → ui}/components/autocomplete/__workshop__/types.ts +0 -0
  1049. /package/src/{core → ui}/components/autocomplete/autocompleteReducer.ts +0 -0
  1050. /package/src/{core → ui}/components/autocomplete/constants.ts +0 -0
  1051. /package/src/{core → ui}/components/autocomplete/index.ts +0 -0
  1052. /package/src/{core → ui}/components/breadcrumbs/__workshop__/index.ts +0 -0
  1053. /package/src/{core → ui}/components/breadcrumbs/index.ts +0 -0
  1054. /package/src/{core → ui}/components/dialog/__workshop__/autoFocus.tsx +0 -0
  1055. /package/src/{core → ui}/components/dialog/__workshop__/index.ts +0 -0
  1056. /package/src/{core → ui}/components/dialog/__workshop__/layering.tsx +0 -0
  1057. /package/src/{core → ui}/components/dialog/__workshop__/provider.tsx +0 -0
  1058. /package/src/{core → ui}/components/dialog/dialogContext.ts +0 -0
  1059. /package/src/{core → ui}/components/dialog/index.ts +0 -0
  1060. /package/src/{core → ui}/components/hotkeys/__workshop__/index.ts +0 -0
  1061. /package/src/{core → ui}/components/hotkeys/__workshop__/plain.tsx +0 -0
  1062. /package/src/{core → ui}/components/hotkeys/index.ts +0 -0
  1063. /package/src/{core → ui}/components/index.ts +0 -0
  1064. /package/src/{core → ui}/components/menu/__workshop__/closableMenuButton.tsx +0 -0
  1065. /package/src/{core → ui}/components/menu/__workshop__/customMenuItem.tsx +0 -0
  1066. /package/src/{core → ui}/components/menu/__workshop__/disableFocusOnClose.tsx +0 -0
  1067. /package/src/{core → ui}/components/menu/__workshop__/groups.tsx +0 -0
  1068. /package/src/{core → ui}/components/menu/__workshop__/index.ts +0 -0
  1069. /package/src/{core → ui}/components/menu/__workshop__/menuGroupRight.tsx +0 -0
  1070. /package/src/{core → ui}/components/menu/__workshop__/nestedMenu.tsx +0 -0
  1071. /package/src/{core → ui}/components/menu/__workshop__/onCloseMenuButton.tsx +0 -0
  1072. /package/src/{core → ui}/components/menu/__workshop__/selectedItem.tsx +0 -0
  1073. /package/src/{core → ui}/components/menu/__workshop__/withoutArrow.tsx +0 -0
  1074. /package/src/{core → ui}/components/menu/helpers.ts +0 -0
  1075. /package/src/{core → ui}/components/menu/index.ts +0 -0
  1076. /package/src/{core → ui}/components/skeleton/__workshop__/index.ts +0 -0
  1077. /package/src/{core → ui}/components/skeleton/index.ts +0 -0
  1078. /package/src/{core → ui}/components/tab/__workshop__/example.tsx +0 -0
  1079. /package/src/{core → ui}/components/tab/__workshop__/index.ts +0 -0
  1080. /package/src/{core → ui}/components/tab/index.ts +0 -0
  1081. /package/src/{core → ui}/components/toast/__workshop__/index.ts +0 -0
  1082. /package/src/{core → ui}/components/toast/index.ts +0 -0
  1083. /package/src/{core → ui}/components/toast/toastContext.ts +0 -0
  1084. /package/src/{core → ui}/components/tree/__workshop__/basic.perf.ts +0 -0
  1085. /package/src/{core → ui}/components/tree/__workshop__/index.ts +0 -0
  1086. /package/src/{core → ui}/components/tree/helpers.ts +0 -0
  1087. /package/src/{core → ui}/components/tree/index.ts +0 -0
  1088. /package/src/{core → ui}/components/tree/treeContext.ts +0 -0
  1089. /package/src/{core → ui}/components/tree/types.ts +0 -0
  1090. /package/src/{core → ui}/global.ts +0 -0
  1091. /package/src/{core → ui}/helpers/animation.ts +0 -0
  1092. /package/src/{core → ui}/helpers/element.ts +0 -0
  1093. /package/src/{core → ui}/helpers/scroll.ts +0 -0
  1094. /package/src/{core → ui}/hooks/index.ts +0 -0
  1095. /package/src/{core → ui}/hooks/useCustomValidity.ts +0 -0
  1096. /package/src/{core → ui}/hooks/useElementRect/__workshop__/index.ts +0 -0
  1097. /package/src/{core → ui}/hooks/useElementRect/index.ts +0 -0
  1098. /package/src/{core → ui}/hooks/useElementRect/useElementRect.ts +0 -0
  1099. /package/src/{core → ui}/hooks/useIsomorphicEffect.ts +0 -0
  1100. /package/src/{core → ui}/hooks/useMediaIndex/__workshop__/index.ts +0 -0
  1101. /package/src/{core → ui}/hooks/useMediaIndex/__workshop__/test.tsx +0 -0
  1102. /package/src/{core → ui}/hooks/useMediaIndex/index.ts +0 -0
  1103. /package/src/{core → ui}/hooks/useMounted.ts +0 -0
  1104. /package/src/{core → ui}/lib/isRecord.ts +0 -0
  1105. /package/src/{core → ui}/middleware/origin.ts +0 -0
  1106. /package/src/{core → ui}/observers/elementSizeObserver.ts +0 -0
  1107. /package/src/{core → ui}/observers/index.ts +0 -0
  1108. /package/src/{core → ui}/observers/resizeObserver.ts +0 -0
  1109. /package/src/{core → ui}/primitives/_selectable/index.ts +0 -0
  1110. /package/src/{core → ui}/primitives/avatar/__workshop__/index.ts +0 -0
  1111. /package/src/{core → ui}/primitives/avatar/index.ts +0 -0
  1112. /package/src/{core → ui}/primitives/badge/__workshop__/index.ts +0 -0
  1113. /package/src/{core → ui}/primitives/badge/index.ts +0 -0
  1114. /package/src/{core → ui}/primitives/badge/types.ts +0 -0
  1115. /package/src/{core → ui}/primitives/box/__workshop__/index.ts +0 -0
  1116. /package/src/{core → ui}/primitives/box/__workshop__/responsive.tsx +0 -0
  1117. /package/src/{core → ui}/primitives/box/index.ts +0 -0
  1118. /package/src/{core → ui}/primitives/button/__workshop__/customIcons.tsx +0 -0
  1119. /package/src/{core → ui}/primitives/button/__workshop__/index.ts +0 -0
  1120. /package/src/{core → ui}/primitives/button/__workshop__/mixedChildren.tsx +0 -0
  1121. /package/src/{core → ui}/primitives/button/__workshop__/sanityUploadButton.tsx +0 -0
  1122. /package/src/{core → ui}/primitives/button/__workshop__/styled1.tsx +0 -0
  1123. /package/src/{core → ui}/primitives/button/__workshop__/styled2.tsx +0 -0
  1124. /package/src/{core → ui}/primitives/button/__workshop__/uploadButton.tsx +0 -0
  1125. /package/src/{core → ui}/primitives/button/index.ts +0 -0
  1126. /package/src/{core → ui}/primitives/card/__workshop__/index.ts +0 -0
  1127. /package/src/{core → ui}/primitives/card/__workshop__/styled.tsx +0 -0
  1128. /package/src/{core → ui}/primitives/checkbox/__workshop__/example.tsx +0 -0
  1129. /package/src/{core → ui}/primitives/checkbox/__workshop__/index.ts +0 -0
  1130. /package/src/{core → ui}/primitives/checkbox/__workshop__/props.tsx +0 -0
  1131. /package/src/{core → ui}/primitives/checkbox/__workshop__/readOnly.tsx +0 -0
  1132. /package/src/{core → ui}/primitives/checkbox/index.ts +0 -0
  1133. /package/src/{core → ui}/primitives/code/__workshop__/index.ts +0 -0
  1134. /package/src/{core → ui}/primitives/code/__workshop__/opticalAlignment.tsx +0 -0
  1135. /package/src/{core → ui}/primitives/code/index.ts +0 -0
  1136. /package/src/{core → ui}/primitives/container/__workshop__/index.ts +0 -0
  1137. /package/src/{core → ui}/primitives/container/index.ts +0 -0
  1138. /package/src/{core → ui}/primitives/container/types.ts +0 -0
  1139. /package/src/{core → ui}/primitives/flex/__workshop__/index.ts +0 -0
  1140. /package/src/{core → ui}/primitives/flex/index.ts +0 -0
  1141. /package/src/{core → ui}/primitives/grid/__workshop__/index.ts +0 -0
  1142. /package/src/{core → ui}/primitives/grid/index.ts +0 -0
  1143. /package/src/{core → ui}/primitives/heading/__workshop__/index.ts +0 -0
  1144. /package/src/{core → ui}/primitives/heading/index.ts +0 -0
  1145. /package/src/{core → ui}/primitives/index.ts +0 -0
  1146. /package/src/{core → ui}/primitives/inline/__workshop__/index.ts +0 -0
  1147. /package/src/{core → ui}/primitives/inline/index.ts +0 -0
  1148. /package/src/{core → ui}/primitives/inline/types.ts +0 -0
  1149. /package/src/{core → ui}/primitives/kbd/__workshop__/index.ts +0 -0
  1150. /package/src/{core → ui}/primitives/kbd/__workshop__/plain.tsx +0 -0
  1151. /package/src/{core/primitives/kbd/index.tsx → ui/primitives/kbd/index.ts} +0 -0
  1152. /package/src/{core → ui}/primitives/label/__workshop__/index.ts +0 -0
  1153. /package/src/{core → ui}/primitives/label/index.ts +0 -0
  1154. /package/src/{core → ui}/primitives/popover/__workshop__/MarginsStory.tsx +0 -0
  1155. /package/src/{core → ui}/primitives/popover/__workshop__/RecursiveStory.tsx +0 -0
  1156. /package/src/{core → ui}/primitives/popover/__workshop__/index.ts +0 -0
  1157. /package/src/{core → ui}/primitives/popover/constants.ts +0 -0
  1158. /package/src/{core → ui}/primitives/popover/index.ts +0 -0
  1159. /package/src/{core → ui}/primitives/popover/types.ts +0 -0
  1160. /package/src/{core → ui}/primitives/radio/__workshop__/example.tsx +0 -0
  1161. /package/src/{core → ui}/primitives/radio/__workshop__/index.ts +0 -0
  1162. /package/src/{core → ui}/primitives/radio/index.ts +0 -0
  1163. /package/src/{core → ui}/primitives/select/__workshop__/index.ts +0 -0
  1164. /package/src/{core → ui}/primitives/select/index.ts +0 -0
  1165. /package/src/{core → ui}/primitives/spinner/__workshop__/index.ts +0 -0
  1166. /package/src/{core → ui}/primitives/spinner/animatedSpinnerIcon.tsx +0 -0
  1167. /package/src/{core → ui}/primitives/spinner/index.ts +0 -0
  1168. /package/src/{core → ui}/primitives/stack/__workshop__/index.ts +0 -0
  1169. /package/src/{core → ui}/primitives/switch/__workshop__/example.tsx +0 -0
  1170. /package/src/{core → ui}/primitives/switch/__workshop__/index.ts +0 -0
  1171. /package/src/{core → ui}/primitives/switch/__workshop__/props.tsx +0 -0
  1172. /package/src/{core → ui}/primitives/switch/index.ts +0 -0
  1173. /package/src/{core → ui}/primitives/text/__workshop__/index.ts +0 -0
  1174. /package/src/{core → ui}/primitives/text/index.ts +0 -0
  1175. /package/src/{core → ui}/primitives/textArea/__workshop__/index.ts +0 -0
  1176. /package/src/{core → ui}/primitives/textArea/index.ts +0 -0
  1177. /package/src/{core → ui}/primitives/textInput/__workshop__/clearButton.tsx +0 -0
  1178. /package/src/{core → ui}/primitives/textInput/__workshop__/customValidity.tsx +0 -0
  1179. /package/src/{core → ui}/primitives/textInput/__workshop__/states.tsx +0 -0
  1180. /package/src/{core → ui}/primitives/textInput/index.ts +0 -0
  1181. /package/src/{core → ui}/primitives/tooltip/__workshop__/index.ts +0 -0
  1182. /package/src/{core → ui}/primitives/tooltip/constants.ts +0 -0
  1183. /package/src/{core → ui}/primitives/tooltip/index.ts +0 -0
  1184. /package/src/{core → ui}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +0 -0
  1185. /package/src/{core → ui}/types/avatar.ts +0 -0
  1186. /package/src/{core → ui}/types/badge.ts +0 -0
  1187. /package/src/{core → ui}/types/card.ts +0 -0
  1188. /package/src/{core → ui}/types/dialog.ts +0 -0
  1189. /package/src/{core → ui}/types/placement.ts +0 -0
  1190. /package/src/{core → ui}/types/popover.ts +0 -0
  1191. /package/src/{core → ui}/types/radius.ts +0 -0
  1192. /package/src/{core → ui}/types/text.ts +0 -0
  1193. /package/src/{core → ui}/utils/arrow/cmds.ts +0 -0
  1194. /package/src/{core → ui}/utils/arrow/index.ts +0 -0
  1195. /package/src/{core → ui}/utils/boundaryElement/__workshop__/index.ts +0 -0
  1196. /package/src/{core → ui}/utils/boundaryElement/__workshop__/plain.tsx +0 -0
  1197. /package/src/{core → ui}/utils/boundaryElement/boundaryElementContext.ts +0 -0
  1198. /package/src/{core → ui}/utils/boundaryElement/types.ts +0 -0
  1199. /package/src/{core → ui}/utils/conditionalWrapper/index.ts +0 -0
  1200. /package/src/{core → ui}/utils/elementQuery/__workshop__/customMedia.tsx +0 -0
  1201. /package/src/{core → ui}/utils/elementQuery/__workshop__/index.ts +0 -0
  1202. /package/src/{core → ui}/utils/elementQuery/helpers.ts +0 -0
  1203. /package/src/{core → ui}/utils/elementQuery/index.ts +0 -0
  1204. /package/src/{core → ui}/utils/index.ts +0 -0
  1205. /package/src/{core → ui}/utils/layer/__workshop__/_debug.tsx +0 -0
  1206. /package/src/{core → ui}/utils/layer/__workshop__/index.ts +0 -0
  1207. /package/src/{core → ui}/utils/layer/getLayerContext.test.ts +0 -0
  1208. /package/src/{core → ui}/utils/layer/getLayerContext.ts +0 -0
  1209. /package/src/{core → ui}/utils/layer/layerContext.ts +0 -0
  1210. /package/src/{core → ui}/utils/layer/types.ts +0 -0
  1211. /package/src/{core → ui}/utils/portal/__workshop__/index.ts +0 -0
  1212. /package/src/{core → ui}/utils/portal/__workshop__/named.tsx +0 -0
  1213. /package/src/{core → ui}/utils/portal/index.ts +0 -0
  1214. /package/src/{core → ui}/utils/portal/portalContext.ts +0 -0
  1215. /package/src/{core → ui}/utils/portal/types.ts +0 -0
  1216. /package/src/{core → ui}/utils/virtualList/__workshop__/changingProps.tsx +0 -0
  1217. /package/src/{core → ui}/utils/virtualList/__workshop__/elementScroll.tsx +0 -0
  1218. /package/src/{core → ui}/utils/virtualList/__workshop__/index.ts +0 -0
  1219. /package/src/{core → ui}/utils/virtualList/__workshop__/infiniteList.tsx +0 -0
  1220. /package/src/{core → ui}/utils/virtualList/__workshop__/windowScrolll.tsx +0 -0
  1221. /package/src/{core → ui}/utils/virtualList/index.ts +0 -0
package/dist/css.d.mts CHANGED
@@ -1,60 +1,70 @@
1
- import {AvatarPosition} from '@sanity/ui'
2
1
  import {AvatarSize} from '@sanity/ui/theme'
3
- import {ButtonMode} from '@sanity/ui'
4
- import {ButtonTone} from '@sanity/ui'
2
+ import {ColorTintKey} from '@sanity/color'
5
3
  import {ContainerWidth} from '@sanity/ui/theme'
6
- import * as CSS_2 from 'csstype'
4
+ import {default as CSS_2} from 'csstype'
7
5
  import {FontCodeSize} from '@sanity/ui/theme'
8
6
  import {FontHeadingSize} from '@sanity/ui/theme'
9
7
  import {FontLabelSize} from '@sanity/ui/theme'
10
- import {FontStyleProps as FontStyleProps_2} from '@sanity/ui/css'
11
8
  import {FontTextSize} from '@sanity/ui/theme'
12
9
  import {FontWeight} from '@sanity/ui/theme'
13
- import {GridStyleProps as GridStyleProps_2} from '@sanity/ui/css'
10
+ import {Hue} from '@sanity/ui/theme'
14
11
  import {Radius} from '@sanity/ui/theme'
15
- import {RadiusStyleProps as RadiusStyleProps_2} from '@sanity/ui/css'
16
- import {RootTheme_v2} from '@sanity/ui/theme'
17
- import {SelectableTone} from '@sanity/ui'
12
+ import {RootTheme} from '@sanity/ui/theme'
18
13
  import {Shadow} from '@sanity/ui/theme'
19
14
  import {Space} from '@sanity/ui/theme'
15
+ import {ThemeBoxShadow} from '@sanity/ui/theme'
20
16
  import {ThemeColorAvatarColorKey} from '@sanity/ui/theme'
21
17
  import {ThemeColorButtonModeKey} from '@sanity/ui/theme'
22
18
  import {ThemeColorCardToneKey} from '@sanity/ui/theme'
23
- import {ThemeColorInputModeKey} from '@sanity/ui/theme'
24
- import {ThemeColorInputStateKey} from '@sanity/ui/theme'
25
19
  import {ThemeColorSchemeKey} from '@sanity/ui/theme'
26
- import {ThemeColorStateKey} from '@sanity/ui/theme'
27
20
  import {ThemeColorStateToneKey} from '@sanity/ui/theme'
28
- import {WidthStyleProps as WidthStyleProps_2} from '@sanity/ui/css'
21
+ import {Tint} from '@sanity/ui/theme'
29
22
 
30
- export declare function animatedSpinnerIcon(): string
23
+ export declare function animatedSpinnerIcon(): string | undefined
31
24
 
32
- export declare function avatar(props: AvatarStyleProps): string
25
+ /** @internal */
26
+ export declare function _arrow(): string | undefined
33
27
 
34
- export declare function avatarArrow(): string
28
+ export declare function _arrowShape(): string | undefined
35
29
 
36
- export declare function avatarBgStroke(): string
30
+ export declare function _arrowStroke(): string | undefined
37
31
 
38
- export declare function avatarImage(): string
32
+ export declare function _arrowStrokeMask(): string | undefined
39
33
 
40
- export declare function avatarInitials(): string
34
+ export declare function avatar(props: AvatarStyleProps): string | undefined
41
35
 
42
- export declare function avatarStroke(): string
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
43
51
 
44
52
  export declare interface AvatarStyleProps {
45
53
  color: ThemeColorAvatarColorKey
46
54
  size: ResponsiveProp<AvatarSize>
47
- arrowPosition?: AvatarPosition
48
55
  }
49
56
 
50
57
  /** @public */
51
- export declare function badge(props: BadgeStyleProps): string
58
+ export declare function badge(props: BadgeStyleProps): string | undefined
52
59
 
53
60
  /** @public */
54
- export declare interface BadgeStyleProps extends RadiusStyleProps_2 {
61
+ export declare interface BadgeStyleProps extends RadiusStyleProps {
55
62
  tone: ThemeColorStateToneKey
56
63
  }
57
64
 
65
+ /** @public */
66
+ export declare function border(props: BorderStyleProps): string | undefined
67
+
58
68
  /** @public */
59
69
  export declare interface BorderStyleProps {
60
70
  border?: ResponsiveProp<boolean>
@@ -65,7 +75,7 @@ export declare interface BorderStyleProps {
65
75
  }
66
76
 
67
77
  /** @public */
68
- export declare function box(props: BoxStyleProps): string
78
+ export declare function box(props: BoxStyleProps): string | undefined
69
79
 
70
80
  /**
71
81
  * @public
@@ -82,65 +92,108 @@ export declare type BoxSizing = 'content' | 'border'
82
92
 
83
93
  /** @public */
84
94
  export declare interface BoxStyleProps
85
- extends FlexStyleProps,
95
+ extends BorderStyleProps,
96
+ DisplayStyleProps,
97
+ FlexStyleProps,
86
98
  FlexItemStyleProps,
87
99
  GapStyleProps,
88
- GridStyleProps_2,
100
+ GridStyleProps,
89
101
  GridItemStyleProps,
102
+ HeightStyleProps,
103
+ InsetStyleProps,
90
104
  MarginStyleProps,
91
105
  MaxWidthStyleProps,
106
+ MinWidthStyleProps,
92
107
  OverflowStyleProps,
93
108
  PaddingStyleProps,
94
109
  PointerEventsStyleProps,
95
110
  PositionStyleProps,
111
+ RadiusStyleProps,
96
112
  WidthStyleProps {
97
- display?: ResponsiveProp<Display>
98
- height?: ResponsiveProp<BoxHeight>
113
+ muted?: boolean
99
114
  outline?: 'none'
100
115
  sizing?: ResponsiveProp<BoxSizing>
101
116
  }
102
117
 
103
- export declare function breadcrumbs(): string
118
+ export declare function breadcrumbs(): string | undefined
104
119
 
105
- export declare function button(props: ButtonStyleProps): string
120
+ export declare const BREAKPOINTS: {
121
+ 1: number
122
+ 2: number
123
+ 3: number
124
+ 4: number
125
+ 5: number
126
+ 6: number
127
+ }
128
+
129
+ export declare function button(props: ButtonStyleProps): string | undefined
130
+
131
+ export declare function buttonLoadingBox(): string | undefined
106
132
 
107
- export declare function buttonLoadingBox(): string
133
+ export declare type ButtonScopedVarName = '--button-box-shadow'
108
134
 
109
- export declare interface ButtonStyleProps extends RadiusStyleProps, WidthStyleProps_2 {
110
- mode?: ButtonMode
111
- tone?: ButtonTone
135
+ export declare interface ButtonStyleProps
136
+ extends DisplayStyleProps,
137
+ FlexItemStyleProps,
138
+ RadiusStyleProps,
139
+ WidthStyleProps {
140
+ mode?: ThemeColorButtonModeKey
141
+ tone?: ThemeColorStateToneKey
112
142
  }
113
143
 
114
- export declare function card(props: CardStyleProps): string
144
+ export declare function card(props: CardStyleProps): string | undefined
115
145
 
146
+ /** @public */
116
147
  export declare type CardScopedVarName =
117
148
  | `--color-accent-fg`
149
+ | `--color-avatar-bg`
150
+ | `--color-avatar-fg`
118
151
  | `--color-avatar-${ThemeColorAvatarColorKey}-bg`
119
152
  | `--color-avatar-${ThemeColorAvatarColorKey}-fg`
120
153
  | `--color-backdrop`
121
- | `--color-badge-bg`
122
- | `--color-badge-dot`
123
- | `--color-badge-fg`
124
- | `--color-badge-icon`
125
- | `--color-badge-${ThemeColorStateToneKey}-bg`
126
- | `--color-badge-${ThemeColorStateToneKey}-dot`
127
- | `--color-badge-${ThemeColorStateToneKey}-fg`
128
- | `--color-badge-${ThemeColorStateToneKey}-icon`
154
+ | `--color-${ElementColorVariant}-${ThemeColorStateToneKey}-${ElementColorVariantKey}`
129
155
  | `--color-bg`
130
156
  | `--color-border`
131
157
  | `--color-code-bg`
132
158
  | `--color-code-fg`
159
+ | `--color-code-token-atrule`
160
+ | `--color-code-token-attr-name`
161
+ | `--color-code-token-attr-value`
162
+ | `--color-code-token-attribute`
163
+ | `--color-code-token-boolean`
164
+ | `--color-code-token-builtin`
165
+ | `--color-code-token-cdata`
166
+ | `--color-code-token-char`
167
+ | `--color-code-token-class`
168
+ | `--color-code-token-class-name`
169
+ | `--color-code-token-comment`
170
+ | `--color-code-token-constant`
171
+ | `--color-code-token-deleted`
172
+ | `--color-code-token-doctype`
173
+ | `--color-code-token-entity`
174
+ | `--color-code-token-function`
175
+ | `--color-code-token-hexcode`
176
+ | `--color-code-token-id`
177
+ | `--color-code-token-important`
178
+ | `--color-code-token-inserted`
179
+ | `--color-code-token-keyword`
180
+ | `--color-code-token-number`
181
+ | `--color-code-token-operator`
182
+ | `--color-code-token-prolog`
183
+ | `--color-code-token-property`
184
+ | `--color-code-token-pseudo-class`
185
+ | `--color-code-token-pseudo-element`
186
+ | `--color-code-token-punctuation`
187
+ | `--color-code-token-regex`
188
+ | `--color-code-token-selector`
189
+ | `--color-code-token-string`
190
+ | `--color-code-token-symbol`
191
+ | `--color-code-token-tag`
192
+ | `--color-code-token-unit`
193
+ | `--color-code-token-url`
194
+ | `--color-code-token-variable`
133
195
  | `--color-fg`
134
196
  | `--color-focus-ring`
135
- | `--color-icon`
136
- | `--color-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-bg`
137
- | `--color-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-border`
138
- | `--color-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-fg`
139
- | `--color-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-muted-bg`
140
- | `--color-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-placeholder`
141
- | `--color-kbd-bg`
142
- | `--color-kbd-border`
143
- | `--color-kbd-fg`
144
197
  | `--color-link-fg`
145
198
  | `--color-muted-bg`
146
199
  | `--color-muted-fg`
@@ -150,83 +203,13 @@ export declare type CardScopedVarName =
150
203
  | `--color-shadow-ambient`
151
204
  | `--color-skeleton-from`
152
205
  | `--color-skeleton-to`
153
- | `--color-syntax-atrule`
154
- | `--color-syntax-attrName`
155
- | `--color-syntax-attrValue`
156
- | `--color-syntax-attribute`
157
- | `--color-syntax-boolean`
158
- | `--color-syntax-builtin`
159
- | `--color-syntax-cdata`
160
- | `--color-syntax-char`
161
- | `--color-syntax-class`
162
- | `--color-syntax-className`
163
- | `--color-syntax-comment`
164
- | `--color-syntax-constant`
165
- | `--color-syntax-deleted`
166
- | `--color-syntax-doctype`
167
- | `--color-syntax-entity`
168
- | `--color-syntax-function`
169
- | `--color-syntax-hexcode`
170
- | `--color-syntax-id`
171
- | `--color-syntax-important`
172
- | `--color-syntax-inserted`
173
- | `--color-syntax-keyword`
174
- | `--color-syntax-number`
175
- | `--color-syntax-operator`
176
- | `--color-syntax-prolog`
177
- | `--color-syntax-property`
178
- | `--color-syntax-pseudoClass`
179
- | `--color-syntax-pseudoElement`
180
- | `--color-syntax-punctuation`
181
- | `--color-syntax-regex`
182
- | `--color-syntax-selector`
183
- | `--color-syntax-string`
184
- | `--color-syntax-symbol`
185
- | `--color-syntax-tag`
186
- | `--color-syntax-unit`
187
- | `--color-syntax-url`
188
- | `--color-syntax-variable`
189
- | `--card-accent-fg-color`
190
- | `--card-avatar-${ThemeColorAvatarColorKey}-bg-color`
191
- | `--card-avatar-${ThemeColorAvatarColorKey}-fg-color`
192
- | `--card-backdrop-color`
193
- | `--card-badge-${ThemeColorStateToneKey}-bg-color`
194
- | `--card-badge-${ThemeColorStateToneKey}-dot-color`
195
- | `--card-badge-${ThemeColorStateToneKey}-fg-color`
196
- | `--card-badge-${ThemeColorStateToneKey}-icon-color`
197
- | `--card-bg-color`
198
- | `--card-bg-image`
199
- | `--card-bg2-color`
200
- | `--card-border-color`
201
- | `--card-code-bg-color`
202
- | `--card-code-fg-color`
203
- | `--card-fg-color`
204
- | `--card-focus-ring-color`
205
- | `--card-hairline-soft-color`
206
- | `--card-hairline-hard-color`
207
- | `--card-icon-color`
208
- | `--card-kbd-bg-color`
209
- | `--card-kbd-border-color`
210
- | `--card-kbd-fg-color`
211
- | `--card-link-color`
212
- | `--card-link-fg-color`
213
- | `--card-muted-bg-color`
214
- | `--card-muted-fg-color`
215
- | `--card-shadow-outline-color`
216
- | `--card-shadow-umbra-color`
217
- | `--card-shadow-penumbra-color`
218
- | `--card-shadow-ambient-color`
219
- | `--card-skeleton-from-color`
220
- | `--card-skeleton-to-color`
221
- | `--avatar-bg-color`
222
- | `--avatar-fg-color`
223
206
  | `--color-checkbox-bg`
224
207
  | `--color-checkbox-fg`
225
208
  | `--color-checkbox-border`
226
209
  | `--font-ascender-height`
227
- | `--font-cap-height`
228
210
  | `--font-descender-height`
229
211
  | `--font-family`
212
+ | `--font-feature-settings`
230
213
  | `--font-icon-offset`
231
214
  | `--font-icon-size`
232
215
  | `--font-letter-spacing`
@@ -241,59 +224,54 @@ export declare type CardScopedVarName =
241
224
  | `--font-weight-bold`
242
225
  | `--font-weight`
243
226
  | `--fg-color`
244
- | `--input-bg-color`
245
- | `--input-border-color`
246
- | `--input-fg-color`
247
227
  | `--padding-top`
248
228
  | `--padding-right`
249
229
  | `--padding-bottom`
250
230
  | `--padding-left`
251
231
 
252
- export declare interface CardStyleProps extends BoxStyleProps, BorderStyleProps, RadiusStyleProps {
232
+ export declare interface CardStyleProps extends BoxStyleProps, ShadowStyleProps {
253
233
  checkered?: boolean
254
- shadow?: ResponsiveProp<number>
234
+ scheme?: ThemeColorSchemeKey
235
+ tone?: ThemeColorCardToneKey | 'inherit'
255
236
  }
256
237
 
257
- export declare function checkbox(): string
238
+ export declare function checkbox(): string | undefined
258
239
 
259
- export declare function checkboxInput(): string
240
+ export declare function checkboxInput(): string | undefined
260
241
 
261
242
  /** @public */
262
- export declare function code(props: CodeStyleProps): string
243
+ export declare function code(props: CodeStyleProps): string | undefined
263
244
 
264
245
  /** @public */
265
246
  export declare type CodeSize = number
266
247
 
267
- export declare function codeSkeleton(props: CodeSkeletonStyleProps): string
248
+ export declare function codeSkeleton(props: CodeSkeletonStyleProps): string | undefined
268
249
 
269
250
  export declare interface CodeSkeletonStyleProps {
270
251
  size?: ResponsiveProp<FontCodeSize>
271
252
  }
272
253
 
273
254
  /** @public */
274
- export declare interface CodeStyleProps extends FontStyleProps_2 {
255
+ export declare interface CodeStyleProps extends FontStyleProps {
275
256
  size?: ResponsiveProp<CodeSize>
276
257
  }
277
258
 
259
+ /** @public */
278
260
  export declare interface ColorAvatarColorVarNames {
279
- bg: CSSVarName
280
- fg: CSSVarName
261
+ bg: VarName
262
+ fg: VarName
281
263
  }
282
264
 
265
+ /** @public */
283
266
  export declare interface ColorAvatarColorVars {
284
267
  bg: CSSVar
285
268
  fg: CSSVar
286
269
  }
287
270
 
271
+ /** @public */
288
272
  export declare type ColorAvatarVars = Record<ThemeColorAvatarColorKey, ColorAvatarColorVars>
289
273
 
290
- export declare interface ColorBadgeToneVarNames {
291
- bg: CSSVarName
292
- dot: CSSVarName
293
- fg: CSSVarName
294
- icon: CSSVarName
295
- }
296
-
274
+ /** @public */
297
275
  export declare interface ColorBadgeToneVars {
298
276
  bg: CSSVar
299
277
  dot: CSSVar
@@ -301,154 +279,240 @@ export declare interface ColorBadgeToneVars {
301
279
  icon: CSSVar
302
280
  }
303
281
 
282
+ /** @public */
304
283
  export declare type ColorBadgeVars = Record<ThemeColorStateToneKey, ColorBadgeToneVars>
305
284
 
306
- export declare interface ColorCardVarNames extends ColorStateVarNames {
307
- backdrop: ThemeVarName
308
- focusRing: ThemeVarName
309
- input: Record<ThemeColorInputModeKey, Record<ThemeColorInputStateKey, ColorInputStateVarNames>>
310
- }
311
-
312
- export declare interface ColorCardVars extends ColorStateVars {
313
- backdrop: CSSVar
314
- focusRing: CSSVar
315
- input: Record<ThemeColorInputModeKey, Record<ThemeColorInputStateKey, ColorInputStateVars>>
316
- }
317
-
318
- export declare type ColorInputModeVars = Record<ThemeColorInputStateKey, ColorInputStateVars>
319
-
320
- export declare interface ColorInputStateVarNames {
321
- bg: CSSVarName
322
- border: CSSVarName
323
- fg: CSSVarName
324
- muted: {
325
- bg: CSSVarName
326
- }
327
- placeholder: CSSVarName
328
- }
329
-
330
- export declare interface ColorInputStateVars {
331
- bg: CSSVar
332
- border: CSSVar
333
- fg: CSSVar
334
- muted: {
335
- bg: CSSVar
336
- }
337
- placeholder: CSSVar
338
- }
339
-
340
- export declare interface ColorInputStateVars {
341
- bg: CSSVar
342
- border: CSSVar
343
- fg: CSSVar
344
- muted: {
345
- bg: CSSVar
346
- }
347
- placeholder: CSSVar
348
- }
349
-
350
- export declare type ColorInputVars = Record<ThemeColorInputModeKey, ColorInputModeVars>
351
-
352
- export declare type ColorSchemeVarNames = Record<ThemeColorCardToneKey, ColorCardVarNames>
353
-
354
- export declare type ColorSchemeVars = Record<ThemeColorCardToneKey, ColorCardVars>
285
+ export declare type ColorCardToneScopedVarName =
286
+ | `--color-${ThemeColorCardToneKey}-accent-fg`
287
+ | `--color-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-bg`
288
+ | `--color-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-fg`
289
+ | `--color-${ThemeColorCardToneKey}-backdrop`
290
+ | `--color-${ThemeColorCardToneKey}-code-bg`
291
+ | `--color-${ThemeColorCardToneKey}-code-fg`
292
+ | `--color-${ThemeColorCardToneKey}-code-token-atrule`
293
+ | `--color-${ThemeColorCardToneKey}-code-token-attr-name`
294
+ | `--color-${ThemeColorCardToneKey}-code-token-attr-value`
295
+ | `--color-${ThemeColorCardToneKey}-code-token-attribute`
296
+ | `--color-${ThemeColorCardToneKey}-code-token-boolean`
297
+ | `--color-${ThemeColorCardToneKey}-code-token-builtin`
298
+ | `--color-${ThemeColorCardToneKey}-code-token-cdata`
299
+ | `--color-${ThemeColorCardToneKey}-code-token-char`
300
+ | `--color-${ThemeColorCardToneKey}-code-token-class`
301
+ | `--color-${ThemeColorCardToneKey}-code-token-class-name`
302
+ | `--color-${ThemeColorCardToneKey}-code-token-comment`
303
+ | `--color-${ThemeColorCardToneKey}-code-token-constant`
304
+ | `--color-${ThemeColorCardToneKey}-code-token-deleted`
305
+ | `--color-${ThemeColorCardToneKey}-code-token-doctype`
306
+ | `--color-${ThemeColorCardToneKey}-code-token-entity`
307
+ | `--color-${ThemeColorCardToneKey}-code-token-function`
308
+ | `--color-${ThemeColorCardToneKey}-code-token-hexcode`
309
+ | `--color-${ThemeColorCardToneKey}-code-token-id`
310
+ | `--color-${ThemeColorCardToneKey}-code-token-important`
311
+ | `--color-${ThemeColorCardToneKey}-code-token-inserted`
312
+ | `--color-${ThemeColorCardToneKey}-code-token-keyword`
313
+ | `--color-${ThemeColorCardToneKey}-code-token-number`
314
+ | `--color-${ThemeColorCardToneKey}-code-token-operator`
315
+ | `--color-${ThemeColorCardToneKey}-code-token-prolog`
316
+ | `--color-${ThemeColorCardToneKey}-code-token-property`
317
+ | `--color-${ThemeColorCardToneKey}-code-token-pseudo-class`
318
+ | `--color-${ThemeColorCardToneKey}-code-token-pseudo-element`
319
+ | `--color-${ThemeColorCardToneKey}-code-token-punctuation`
320
+ | `--color-${ThemeColorCardToneKey}-code-token-regex`
321
+ | `--color-${ThemeColorCardToneKey}-code-token-selector`
322
+ | `--color-${ThemeColorCardToneKey}-code-token-string`
323
+ | `--color-${ThemeColorCardToneKey}-code-token-symbol`
324
+ | `--color-${ThemeColorCardToneKey}-code-token-tag`
325
+ | `--color-${ThemeColorCardToneKey}-code-token-unit`
326
+ | `--color-${ThemeColorCardToneKey}-code-token-url`
327
+ | `--color-${ThemeColorCardToneKey}-code-token-variable`
328
+ | `--color-${ThemeColorCardToneKey}-focus-ring`
329
+ | `--color-${ThemeColorCardToneKey}-link-fg`
330
+ | `--color-${ThemeColorCardToneKey}-muted-bg`
331
+ | `--color-${ThemeColorCardToneKey}-muted-fg`
332
+ | `--color-${ThemeColorCardToneKey}-${ElementColorVariant}-${ThemeColorStateToneKey}-${ElementColorVariantKey}`
333
+ | `--color-${ThemeColorCardToneKey}-shadow-outline`
334
+ | `--color-${ThemeColorCardToneKey}-shadow-umbra`
335
+ | `--color-${ThemeColorCardToneKey}-shadow-penumbra`
336
+ | `--color-${ThemeColorCardToneKey}-shadow-ambient`
337
+ | `--color-${ThemeColorCardToneKey}-skeleton-from`
338
+ | `--color-${ThemeColorCardToneKey}-skeleton-to`
339
+
340
+ export declare type ColorCardVarName =
341
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-accent-fg`
342
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-bg`
343
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-fg`
344
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-backdrop`
345
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-bg`
346
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-fg`
347
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-atrule`
348
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-attr-name`
349
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-attr-value`
350
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-attribute`
351
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-boolean`
352
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-builtin`
353
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-cdata`
354
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-char`
355
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-class`
356
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-class-name`
357
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-comment`
358
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-constant`
359
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-deleted`
360
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-doctype`
361
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-entity`
362
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-function`
363
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-hexcode`
364
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-id`
365
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-important`
366
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-inserted`
367
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-keyword`
368
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-number`
369
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-operator`
370
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-prolog`
371
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-property`
372
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-pseudo-class`
373
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-pseudo-element`
374
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-punctuation`
375
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-regex`
376
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-selector`
377
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-string`
378
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-symbol`
379
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-tag`
380
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-unit`
381
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-url`
382
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-variable`
383
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-focus-ring`
384
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-link-fg`
385
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-muted-bg`
386
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-muted-fg`
387
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-${ElementColorVariant}-${ThemeColorStateToneKey}-${ElementColorVariantKey}`
388
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-outline`
389
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-umbra`
390
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-penumbra`
391
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-ambient`
392
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-skeleton-from`
393
+ | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-skeleton-to`
355
394
 
356
- export declare interface ColorStateVarNames {
395
+ /** @public */
396
+ export declare interface ColorCardVarNames {
357
397
  accent: {
358
- fg: CSSVarName
398
+ fg: VarName
359
399
  }
360
400
  avatar: Record<ThemeColorAvatarColorKey, ColorAvatarColorVarNames>
361
- badge: Record<ThemeColorStateToneKey, ColorBadgeToneVarNames>
362
- bg: CSSVarName
363
- border: CSSVarName
401
+ backdrop: VarName
364
402
  code: {
365
- bg: CSSVarName
366
- fg: CSSVarName
367
- }
368
- fg: CSSVarName
369
- icon: CSSVarName
370
- kbd: {
371
- bg: CSSVarName
372
- border: CSSVarName
373
- fg: CSSVarName
403
+ bg: VarName
404
+ fg: VarName
405
+ token: {
406
+ atrule: VarName
407
+ attrName: VarName
408
+ attrValue: VarName
409
+ attribute: VarName
410
+ boolean: VarName
411
+ builtin: VarName
412
+ cdata: VarName
413
+ char: VarName
414
+ class: VarName
415
+ className: VarName
416
+ comment: VarName
417
+ constant: VarName
418
+ deleted: VarName
419
+ doctype: VarName
420
+ entity: VarName
421
+ function: VarName
422
+ hexcode: VarName
423
+ id: VarName
424
+ important: VarName
425
+ inserted: VarName
426
+ keyword: VarName
427
+ number: VarName
428
+ operator: VarName
429
+ prolog: VarName
430
+ property: VarName
431
+ pseudoClass: VarName
432
+ pseudoElement: VarName
433
+ punctuation: VarName
434
+ regex: VarName
435
+ selector: VarName
436
+ string: VarName
437
+ symbol: VarName
438
+ tag: VarName
439
+ unit: VarName
440
+ url: VarName
441
+ variable: VarName
442
+ }
374
443
  }
444
+ focusRing: VarName
375
445
  link: {
376
- fg: CSSVarName
446
+ fg: VarName
377
447
  }
378
448
  muted: {
379
- bg: CSSVarName
380
- fg: CSSVarName
449
+ bg: VarName
450
+ fg: VarName
381
451
  }
382
452
  shadow: {
383
- outline: CSSVarName
384
- umbra: CSSVarName
385
- penumbra: CSSVarName
386
- ambient: CSSVarName
453
+ outline: VarName
454
+ umbra: VarName
455
+ penumbra: VarName
456
+ ambient: VarName
387
457
  }
388
458
  skeleton: {
389
- from: CSSVarName
390
- to: CSSVarName
391
- }
392
- syntax: {
393
- atrule: CSSVarName
394
- attrName: CSSVarName
395
- attrValue: CSSVarName
396
- attribute: CSSVarName
397
- boolean: CSSVarName
398
- builtin: CSSVarName
399
- cdata: CSSVarName
400
- char: CSSVarName
401
- class: CSSVarName
402
- className: CSSVarName
403
- comment: CSSVarName
404
- constant: CSSVarName
405
- deleted: CSSVarName
406
- doctype: CSSVarName
407
- entity: CSSVarName
408
- function: CSSVarName
409
- hexcode: CSSVarName
410
- id: CSSVarName
411
- important: CSSVarName
412
- inserted: CSSVarName
413
- keyword: CSSVarName
414
- number: CSSVarName
415
- operator: CSSVarName
416
- prolog: CSSVarName
417
- property: CSSVarName
418
- pseudoClass: CSSVarName
419
- pseudoElement: CSSVarName
420
- punctuation: CSSVarName
421
- regex: CSSVarName
422
- selector: CSSVarName
423
- string: CSSVarName
424
- symbol: CSSVarName
425
- tag: CSSVarName
426
- unit: CSSVarName
427
- url: CSSVarName
428
- variable: CSSVarName
459
+ from: VarName
460
+ to: VarName
429
461
  }
462
+ solid: ColorVariantVarNames
463
+ tinted: ColorVariantVarNames
430
464
  }
431
465
 
432
- export declare interface ColorStateVars {
466
+ /** @public */
467
+ export declare interface ColorCardVars {
433
468
  accent: {
434
469
  fg: CSSVar
435
470
  }
436
471
  avatar: ColorAvatarVars
437
- badge: Record<ThemeColorStateToneKey, ColorBadgeToneVars>
438
- bg: CSSVar
439
- border: CSSVar
472
+ backdrop: CSSVar
440
473
  code: {
441
474
  bg: CSSVar
442
475
  fg: CSSVar
476
+ token: {
477
+ atrule: CSSVar
478
+ attrName: CSSVar
479
+ attrValue: CSSVar
480
+ attribute: CSSVar
481
+ boolean: CSSVar
482
+ builtin: CSSVar
483
+ cdata: CSSVar
484
+ char: CSSVar
485
+ class: CSSVar
486
+ className: CSSVar
487
+ comment: CSSVar
488
+ constant: CSSVar
489
+ deleted: CSSVar
490
+ doctype: CSSVar
491
+ entity: CSSVar
492
+ function: CSSVar
493
+ hexcode: CSSVar
494
+ id: CSSVar
495
+ important: CSSVar
496
+ inserted: CSSVar
497
+ keyword: CSSVar
498
+ number: CSSVar
499
+ operator: CSSVar
500
+ prolog: CSSVar
501
+ property: CSSVar
502
+ pseudoClass: CSSVar
503
+ pseudoElement: CSSVar
504
+ punctuation: CSSVar
505
+ regex: CSSVar
506
+ selector: CSSVar
507
+ string: CSSVar
508
+ symbol: CSSVar
509
+ tag: CSSVar
510
+ unit: CSSVar
511
+ url: CSSVar
512
+ variable: CSSVar
513
+ }
443
514
  }
444
- fg: CSSVar
445
- icon: CSSVar
446
- input: ColorInputVars
447
- kbd: {
448
- bg: CSSVar
449
- border: CSSVar
450
- fg: CSSVar
451
- }
515
+ focusRing: CSSVar
452
516
  link: {
453
517
  fg: CSSVar
454
518
  }
@@ -466,89 +530,170 @@ export declare interface ColorStateVars {
466
530
  from: CSSVar
467
531
  to: CSSVar
468
532
  }
469
- syntax: {
470
- atrule: CSSVar
471
- attrName: CSSVar
472
- attrValue: CSSVar
473
- attribute: CSSVar
474
- boolean: CSSVar
475
- builtin: CSSVar
476
- cdata: CSSVar
477
- char: CSSVar
478
- class: CSSVar
479
- className: CSSVar
480
- comment: CSSVar
481
- constant: CSSVar
482
- deleted: CSSVar
483
- doctype: CSSVar
484
- entity: CSSVar
485
- function: CSSVar
486
- hexcode: CSSVar
487
- id: CSSVar
488
- important: CSSVar
489
- inserted: CSSVar
490
- keyword: CSSVar
491
- number: CSSVar
492
- operator: CSSVar
493
- prolog: CSSVar
494
- property: CSSVar
495
- pseudoClass: CSSVar
496
- pseudoElement: CSSVar
497
- punctuation: CSSVar
498
- regex: CSSVar
499
- selector: CSSVar
500
- string: CSSVar
501
- symbol: CSSVar
502
- tag: CSSVar
503
- unit: CSSVar
504
- url: CSSVar
505
- variable: CSSVar
533
+ solid: ColorVariantVars
534
+ tinted: ColorVariantVars
535
+ }
536
+
537
+ /** @public */
538
+ export declare interface ColorElementVarNames {
539
+ bg: {
540
+ 0: VarName
541
+ 1: VarName
542
+ 2: VarName
543
+ 3: VarName
544
+ 4: VarName
545
+ }
546
+ border: {
547
+ 0: VarName
548
+ 1: VarName
549
+ 2: VarName
550
+ 3: VarName
551
+ 4: VarName
552
+ }
553
+ fg: {
554
+ 0: VarName
555
+ 1: VarName
556
+ 2: VarName
557
+ 3: VarName
558
+ 4: VarName
559
+ }
560
+ }
561
+
562
+ /** @public */
563
+ export declare interface ColorElementVars {
564
+ bg: {
565
+ 0: CSSVar
566
+ 1: CSSVar
567
+ 2: CSSVar
568
+ 3: CSSVar
569
+ 4: CSSVar
570
+ }
571
+ border: {
572
+ 0: CSSVar
573
+ 1: CSSVar
574
+ 2: CSSVar
575
+ 3: CSSVar
576
+ 4: CSSVar
577
+ }
578
+ fg: {
579
+ 0: CSSVar
580
+ 1: CSSVar
581
+ 2: CSSVar
582
+ 3: CSSVar
583
+ 4: CSSVar
506
584
  }
507
585
  }
508
586
 
509
- export declare type Columns = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12
587
+ /** @public */
588
+ export declare interface ColorInputStateVars {
589
+ bg: CSSVar
590
+ border: CSSVar
591
+ fg: CSSVar
592
+ muted: {
593
+ bg: CSSVar
594
+ }
595
+ placeholder: CSSVar
596
+ }
510
597
 
511
598
  /** @public */
512
- export declare function compileSystem(): string
599
+ export declare type ColorSchemeVarNames = Record<ThemeColorCardToneKey, ColorCardVarNames>
600
+
601
+ /** @public */
602
+ export declare interface ColorSchemeVars extends Record<ThemeColorCardToneKey, ColorCardVars> {}
603
+
604
+ export declare interface ColorVariantVarNames
605
+ extends ColorElementVarNames,
606
+ Record<ThemeColorStateToneKey, ColorElementVarNames> {}
513
607
 
514
608
  /** @public */
515
- export declare function compileTheme(theme: RootTheme_v2): string
609
+ export declare interface ColorVariantVars
610
+ extends Record<ThemeColorStateToneKey, ColorElementVars>,
611
+ ColorElementVars {}
516
612
 
517
- export declare function composeClassNames(...classNames: Array<string | false | undefined>): string
613
+ export declare type Columns = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
518
614
 
519
- export declare function container(props: ContainerStyleProps): string
615
+ export declare function compilePalette(): string
616
+
617
+ /** @public */
618
+ export declare function compileSystem(): string
619
+
620
+ export declare function compileTheme(theme: RootTheme): string
621
+
622
+ export declare function composeClassNames(
623
+ ...classNames: Array<string | false | undefined>
624
+ ): string | undefined
625
+
626
+ export declare function container(props: ContainerStyleProps): string | undefined
520
627
 
521
628
  export declare interface ContainerStyleProps {
522
629
  width?: ResponsiveProp<ContainerWidth>
523
630
  }
524
631
 
525
632
  /** @public */
526
- export declare type CSSVar = `var(${CSSVarName})`
633
+ export declare type CSSVar = `var(${VarName})`
527
634
 
528
635
  /** @public */
529
- export declare type CSSVarName = ThemeVarName | CardScopedVarName
636
+ export declare interface CustomCSSProperties extends Record<VarName, string> {}
530
637
 
531
- /** @public */
532
- export declare interface CustomCSSProperties extends Record<CSSVarName, string> {}
638
+ export declare function dialog(): string | undefined
533
639
 
534
- export declare function dialog(): string
640
+ export declare function dialogCardRoot(): string | undefined
535
641
 
536
- export declare function dialogCardRoot(): string
642
+ export declare function dialogContainer(): string | undefined
537
643
 
538
- export declare function dialogContainer(): string
644
+ export declare function dialogContent(): string | undefined
539
645
 
540
- export declare function dialogContent(): string
646
+ export declare function dialogFooter(): string | undefined
541
647
 
542
- export declare function dialogFooter(): string
648
+ export declare function dialogHeader(): string | undefined
543
649
 
544
- export declare function dialogHeader(): string
545
-
546
- export declare function dialogLayout(): string
650
+ export declare function dialogLayout(): string | undefined
547
651
 
548
652
  /**
549
653
  * @public
550
654
  */
551
- export declare type Display = 'none' | 'block' | 'grid' | 'flex' | 'inline-block'
655
+ export declare type Display =
656
+ | 'block'
657
+ | 'inline-block'
658
+ | 'flex'
659
+ | 'inline-flex'
660
+ | 'grid'
661
+ | 'inline-grid'
662
+ | 'none'
663
+
664
+ export declare function display(props: DisplayStyleProps): string | undefined
665
+
666
+ export declare interface DisplayStyleProps {
667
+ display?: ResponsiveProp<Display>
668
+ }
669
+
670
+ /** @public */
671
+ export declare type ElementColorVariant = 'solid' | 'tinted'
672
+
673
+ /** @public */
674
+ export declare type ElementColorVariantKey =
675
+ | 'bg-0'
676
+ | 'bg-1'
677
+ | 'bg-2'
678
+ | 'bg-3'
679
+ | 'bg-4'
680
+ | 'border-0'
681
+ | 'border-1'
682
+ | 'border-2'
683
+ | 'border-3'
684
+ | 'border-4'
685
+ | 'fg-0'
686
+ | 'fg-1'
687
+ | 'fg-2'
688
+ | 'fg-3'
689
+ | 'fg-4'
690
+
691
+ /** @public */
692
+ export declare type ElementColorVariantScopedVarName =
693
+ `--color-${ElementColorVariant}-${ElementColorVariantKey}`
694
+
695
+ /** @public */
696
+ export declare function flex(props: FlexStyleProps): string | undefined
552
697
 
553
698
  /**
554
699
  * @public
@@ -560,6 +705,9 @@ export declare type FlexAlign = 'flex-start' | 'flex-end' | 'center' | 'baseline
560
705
  */
561
706
  export declare type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse'
562
707
 
708
+ /** @public */
709
+ export declare function flexItem(props: FlexItemStyleProps): string | undefined
710
+
563
711
  /** @public */
564
712
  export declare interface FlexItemStyleProps {
565
713
  flex?: ResponsiveProp<FlexValue>
@@ -587,13 +735,43 @@ export declare interface FlexStyleProps {
587
735
  /**
588
736
  * @public
589
737
  */
590
- export declare type FlexValue = number | 'none' | 'auto' | 'initial'
738
+ export declare type FlexValue =
739
+ | 'none'
740
+ | 'auto'
741
+ | 'initial'
742
+ | 0
743
+ | 1
744
+ | 2
745
+ | 3
746
+ | 4
747
+ | 5
748
+ | 6
749
+ | 7
750
+ | 8
751
+ | 9
752
+ | 10
753
+ | 11
754
+ | 12
591
755
 
592
756
  /**
593
757
  * @public
594
758
  */
595
759
  export declare type FlexWrap = 'wrap' | 'wrap-reverse' | 'nowrap'
596
760
 
761
+ /** @public */
762
+ export declare function font(props: FontStyleProps): string | undefined
763
+
764
+ /** @public */
765
+ export declare interface FontSizeVarNames {
766
+ ascenderHeight: VarName
767
+ descenderHeight: VarName
768
+ fontSize: VarName
769
+ lineHeight: VarName
770
+ letterSpacing: VarName
771
+ iconSize: VarName
772
+ }
773
+
774
+ /** @public */
597
775
  export declare interface FontSizeVars {
598
776
  ascenderHeight: CSSVar
599
777
  descenderHeight: CSSVar
@@ -609,11 +787,23 @@ export declare interface FontStyleProps {
609
787
  weight?: FontWeight
610
788
  }
611
789
 
790
+ export declare interface FontVarNames<Size extends number> {
791
+ family: VarName
792
+ featureSettings: VarName
793
+ sizes: Record<Size, FontSizeVarNames>
794
+ weights: Record<FontWeight, VarName>
795
+ }
796
+
797
+ /** @public */
612
798
  export declare interface FontVars<Size extends number> {
613
799
  family: CSSVar
614
800
  sizes: Record<Size, FontSizeVars>
801
+ weight: Record<FontWeight, CSSVar>
615
802
  }
616
803
 
804
+ /** @public */
805
+ export declare function gap(props: GapStyleProps): string | undefined
806
+
617
807
  /** @public */
618
808
  export declare interface GapStyleProps {
619
809
  gap?: ResponsiveProp<Space>
@@ -621,6 +811,10 @@ export declare interface GapStyleProps {
621
811
  gapY?: ResponsiveProp<Space>
622
812
  }
623
813
 
814
+ export declare function getClassNames(...classNames: Array<string | false | undefined>): string[]
815
+
816
+ export declare function grid(props: GridStyleProps): string | undefined
817
+
624
818
  /**
625
819
  * @public
626
820
  */
@@ -636,6 +830,9 @@ export declare type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dens
636
830
  */
637
831
  export declare type GridAutoRows = 'auto' | 'min' | 'max' | 'fr'
638
832
 
833
+ /** @public */
834
+ export declare function gridItem(props: GridItemStyleProps): string | undefined
835
+
639
836
  /**
640
837
  * @public
641
838
  */
@@ -685,50 +882,138 @@ export declare interface GridStyleProps {
685
882
  }
686
883
 
687
884
  /** @public */
688
- export declare function heading(props: HeadingStyleProps): string
885
+ export declare function heading(props: HeadingStyleProps): string | undefined
689
886
 
690
887
  /** @public */
691
888
  export declare type HeadingSize = number
692
889
 
693
- export declare function headingSkeleton(props: HeadingSkeletonStyleProps): string
890
+ export declare function headingSkeleton(props: HeadingSkeletonStyleProps): string | undefined
694
891
 
695
892
  export declare interface HeadingSkeletonStyleProps {
696
893
  size?: ResponsiveProp<FontHeadingSize>
697
894
  }
698
895
 
699
896
  /** @public */
700
- export declare interface HeadingStyleProps extends FontStyleProps_2 {
897
+ export declare interface HeadingStyleProps extends FontStyleProps, FlexItemStyleProps {
701
898
  accent?: boolean
702
899
  muted?: boolean
703
900
  size?: ResponsiveProp<HeadingSize>
704
901
  }
705
902
 
903
+ /** @public */
904
+ export declare function height(props: HeightStyleProps): string | undefined
905
+
906
+ export declare interface HeightStyleProps {
907
+ height?: ResponsiveProp<BoxHeight>
908
+ }
909
+
910
+ /** @internal */
911
+ export declare function _input(props: InputStyleProps): string | undefined
912
+
913
+ export declare function _inputElement(): string | undefined
914
+
915
+ export declare function _inputPresentation(): string | undefined
916
+
917
+ /** @public */
918
+ export declare type InputScopedVarName =
919
+ | `--color-input-bg`
920
+ | `--color-input-border`
921
+ | `--color-input-fg`
922
+ | `--color-input-placeholder`
923
+ | `--input-ascender-height`
924
+ | `--input-descender-height`
925
+ | `--input-font-size`
926
+ | `--input-gap`
927
+ | `--input-letter-spacing`
928
+ | `--input-line-height`
929
+ | `--input-padding`
930
+
931
+ /** @public */
932
+ export declare interface InputStyleProps extends RadiusStyleProps, WidthStyleProps {
933
+ border?: boolean
934
+ fontSize?: ResponsiveProp<FontTextSize>
935
+ gap?: ResponsiveProp<Space>
936
+ padding?: ResponsiveProp<Space>
937
+ }
938
+
706
939
  /** @public */
707
940
  export declare type Inset = 0
708
941
 
709
- export declare function kbd(props: KBDStyleProps): string
942
+ export declare function inset(props: InsetStyleProps): string | undefined
710
943
 
944
+ /** @public */
945
+ export declare interface InsetStyleProps {
946
+ inset?: ResponsiveProp<Inset>
947
+ insetTop?: ResponsiveProp<Inset>
948
+ insetRight?: ResponsiveProp<Inset>
949
+ insetBottom?: ResponsiveProp<Inset>
950
+ insetLeft?: ResponsiveProp<Inset>
951
+ }
952
+
953
+ export declare function isArray(value: unknown): value is unknown[]
954
+
955
+ export declare function isRecord(value: unknown): value is Record<string, unknown>
956
+
957
+ export declare function kbd(props: KBDStyleProps): string | undefined
958
+
959
+ /** @public */
711
960
  export declare interface KBDStyleProps extends RadiusStyleProps {}
712
961
 
713
962
  /** @public */
714
- export declare function label(props: LabelStyleProps): string
963
+ export declare function label(props: LabelStyleProps): string | undefined
715
964
 
716
965
  /** @public */
717
966
  export declare type LabelSize = number
718
967
 
719
- export declare function labelSkeleton(props: LabelSkeletonStyleProps): string
968
+ export declare function labelSkeleton(props: LabelSkeletonStyleProps): string | undefined
720
969
 
721
970
  export declare interface LabelSkeletonStyleProps {
722
971
  size?: ResponsiveProp<FontLabelSize>
723
972
  }
724
973
 
725
974
  /** @public */
726
- export declare interface LabelStyleProps extends FontStyleProps_2 {
975
+ export declare interface LabelStyleProps extends FontStyleProps {
727
976
  accent?: boolean
728
977
  muted?: boolean
729
978
  size?: ResponsiveProp<LabelSize>
730
979
  }
731
980
 
981
+ export declare type LegacyCardScopedVarName =
982
+ | `--card-accent-fg-color`
983
+ | `--card-avatar-${ThemeColorAvatarColorKey}-bg-color`
984
+ | `--card-avatar-${ThemeColorAvatarColorKey}-fg-color`
985
+ | `--card-backdrop-color`
986
+ | `--card-badge-${ThemeColorStateToneKey}-bg-color`
987
+ | `--card-badge-${ThemeColorStateToneKey}-dot-color`
988
+ | `--card-badge-${ThemeColorStateToneKey}-fg-color`
989
+ | `--card-badge-${ThemeColorStateToneKey}-icon-color`
990
+ | `--card-bg-color`
991
+ | `--card-bg-image`
992
+ | `--card-bg2-color`
993
+ | `--card-border-color`
994
+ | `--card-code-bg-color`
995
+ | `--card-code-fg-color`
996
+ | `--card-fg-color`
997
+ | `--card-focus-ring-color`
998
+ | `--card-hairline-soft-color`
999
+ | `--card-hairline-hard-color`
1000
+ | `--card-icon-color`
1001
+ | `--card-kbd-bg-color`
1002
+ | `--card-kbd-border-color`
1003
+ | `--card-kbd-fg-color`
1004
+ | `--card-link-color`
1005
+ | `--card-link-fg-color`
1006
+ | `--card-muted-bg-color`
1007
+ | `--card-muted-fg-color`
1008
+ | `--card-shadow-outline-color`
1009
+ | `--card-shadow-umbra-color`
1010
+ | `--card-shadow-penumbra-color`
1011
+ | `--card-shadow-ambient-color`
1012
+ | `--card-skeleton-from-color`
1013
+ | `--card-skeleton-to-color`
1014
+
1015
+ export declare function margin(props: MarginStyleProps): string | undefined
1016
+
732
1017
  export declare interface MarginStyleProps {
733
1018
  margin?: ResponsiveProp<number>
734
1019
  marginTop?: ResponsiveProp<number>
@@ -739,11 +1024,25 @@ export declare interface MarginStyleProps {
739
1024
  marginY?: ResponsiveProp<number>
740
1025
  }
741
1026
 
1027
+ export declare function maxWidth(props: MaxWidthStyleProps): string
1028
+
742
1029
  export declare interface MaxWidthStyleProps {
743
- maxWidth?: ResponsiveProp<ContainerWidth | 'fill'>
1030
+ maxWidth?: ResponsiveProp<ContainerWidth | 'auto' | 'fill'>
744
1031
  }
745
1032
 
746
- export declare function menuDivider(): string
1033
+ export declare function menu(): string | undefined
1034
+
1035
+ export declare function menuDivider(): string | undefined
1036
+
1037
+ export declare type MinWidth = 0 | 'auto' | 'full' | 'min' | 'max' | 'fit'
1038
+
1039
+ export declare function minWidth(props: MinWidthStyleProps): string
1040
+
1041
+ export declare interface MinWidthStyleProps {
1042
+ minWidth?: ResponsiveProp<MinWidth>
1043
+ }
1044
+
1045
+ export declare function overflow(props: OverflowStyleProps): string | undefined
747
1046
 
748
1047
  /** @public */
749
1048
  export declare interface OverflowStyleProps {
@@ -752,115 +1051,229 @@ export declare interface OverflowStyleProps {
752
1051
  overflowY?: ResponsiveProp<BoxOverflow>
753
1052
  }
754
1053
 
1054
+ export declare function padding(props: PaddingStyleProps): string | undefined
1055
+
755
1056
  /** @public */
756
1057
  export declare interface PaddingStyleProps {
757
- padding?: ResponsiveProp<number>
758
- paddingTop?: ResponsiveProp<number>
759
- paddingRight?: ResponsiveProp<number>
760
- paddingBottom?: ResponsiveProp<number>
761
- paddingLeft?: ResponsiveProp<number>
762
- paddingX?: ResponsiveProp<number>
763
- paddingY?: ResponsiveProp<number>
1058
+ padding?: ResponsiveProp<Space>
1059
+ paddingTop?: ResponsiveProp<Space>
1060
+ paddingRight?: ResponsiveProp<Space>
1061
+ paddingBottom?: ResponsiveProp<Space>
1062
+ paddingLeft?: ResponsiveProp<Space>
1063
+ paddingX?: ResponsiveProp<Space>
1064
+ paddingY?: ResponsiveProp<Space>
764
1065
  }
765
1066
 
1067
+ /** @public */
1068
+ export declare type PaletteVarName = `--black` | `--white` | `--${Hue}-${Tint}`
1069
+
766
1070
  /** @public */
767
1071
  export declare type PointerEvents = 'auto' | 'none'
768
1072
 
1073
+ export declare function pointerEvents(props: PointerEventsStyleProps): string | undefined
1074
+
769
1075
  /** @public */
770
1076
  export declare interface PointerEventsStyleProps {
771
1077
  pointerEvents?: PointerEvents
772
1078
  }
773
1079
 
774
- export declare function popover(): string
1080
+ export declare function popover(): string | undefined
1081
+
1082
+ export declare function popoverCard(): string | undefined
775
1083
 
776
1084
  /** @public */
777
1085
  export declare type Position = 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky'
778
1086
 
1087
+ export declare function position(props: PositionStyleProps): string | undefined
1088
+
779
1089
  /** @public */
780
1090
  export declare interface PositionStyleProps {
781
- inset?: ResponsiveProp<Inset>
782
1091
  position?: ResponsiveProp<Position>
783
1092
  }
784
1093
 
1094
+ export declare const PREFIX = 's-'
1095
+
1096
+ /** @public */
1097
+ export declare type Properties = PropertiesWithVarsAndNested & {
1098
+ '@media'?: Record<string, PropertiesWithVarsAndNested>
1099
+ }
1100
+
1101
+ /** @public */
1102
+ export declare type PropertiesWithVars = CSS_2.Properties &
1103
+ Partial<Record<VarName, string>> & {
1104
+ _prefix?: boolean
1105
+ }
1106
+
785
1107
  /** @public */
786
- export declare interface Properties extends CSS_2.PropertiesFallback, Partial<CustomCSSProperties> {
787
- '@keyframes'?: Record<string, Record<string, Properties>>
788
- '@media'?: Record<string, Properties>
789
- '@nest'?: Record<string, Properties>
1108
+ export declare type PropertiesWithVarsAndNested = PropertiesWithVars & {
1109
+ '@nest'?: Record<string, PropertiesWithVars>
790
1110
  }
791
1111
 
792
- export declare function radio(): string
1112
+ export declare function px(value: number): string
1113
+
1114
+ export declare function radio(): string | undefined
1115
+
1116
+ /** @public */
1117
+ export declare function radius(props: RadiusStyleProps): string | undefined
793
1118
 
794
1119
  /** @public */
795
1120
  export declare interface RadiusStyleProps {
796
- radius?: ResponsiveProp<Radius>
1121
+ radius?: ResponsiveProp<Radius | 'full'>
797
1122
  }
798
1123
 
1124
+ export declare function rem(value: number): string
1125
+
1126
+ /** @public */
799
1127
  export declare type ResponsiveProp<T> = T | Array<T | null | undefined>
800
1128
 
801
- export declare type Rows = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12
1129
+ export declare type Rows = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
802
1130
 
803
1131
  /** @public */
804
1132
  export declare interface Rules {
805
1133
  [className: string]: Properties
806
1134
  }
807
1135
 
808
- export declare interface ScopedColorVarNames extends Omit<ColorStateVarNames, 'badge'> {
809
- badge: Record<ThemeColorStateToneKey, ColorBadgeToneVarNames> & ColorBadgeToneVarNames
1136
+ export declare function scopeClassName(className: string | undefined): string | undefined
1137
+
1138
+ export declare interface ScopedColorVarNames extends Omit<ColorCardVarNames, 'avatar'> {
1139
+ accent: {
1140
+ fg: VarName
1141
+ }
1142
+ avatar: Record<ThemeColorAvatarColorKey, ColorAvatarColorVarNames> & ColorAvatarColorVarNames
1143
+ bg: VarName
1144
+ border: VarName
1145
+ fg: VarName
1146
+ input: {
1147
+ bg: VarName
1148
+ border: VarName
1149
+ fg: VarName
1150
+ placeholder: VarName
1151
+ }
810
1152
  }
811
1153
 
812
- export declare interface ScopedColorVars extends Omit<ColorStateVars, 'badge'> {
813
- badge: ColorBadgeVars & ColorBadgeToneVars
1154
+ export declare interface ScopedColorVars extends Omit<ColorCardVars, 'avatar'> {
1155
+ avatar: ColorAvatarVars & ColorAvatarColorVars
1156
+ bg: CSSVar
1157
+ border: CSSVar
1158
+ fg: CSSVar
1159
+ input: {
1160
+ bg: CSSVar
1161
+ border: CSSVar
1162
+ fg: CSSVar
1163
+ placeholder: CSSVar
1164
+ }
814
1165
  }
815
1166
 
816
- export declare function select(): string
1167
+ export declare function select(props: SelectStyleProps): string | undefined
817
1168
 
818
- export declare function selectable(props: SelectableStyleProps): string
1169
+ /** @internal */
1170
+ export declare function _selectable(props: SelectableStyleProps): string | undefined
819
1171
 
1172
+ /** @internal */
820
1173
  export declare interface SelectableStyleProps extends RadiusStyleProps {
821
- tone?: SelectableTone
1174
+ tone?: ThemeColorStateToneKey
1175
+ }
1176
+
1177
+ export declare function selectPresentation(): string | undefined
1178
+
1179
+ /** @public */
1180
+ export declare interface SelectStyleProps extends InputStyleProps {}
1181
+
1182
+ export declare function shadow(props: ShadowStyleProps): string | undefined
1183
+
1184
+ /** @public */
1185
+ export declare interface ShadowStyleProps {
1186
+ shadow?: ResponsiveProp<Shadow>
822
1187
  }
823
1188
 
824
1189
  /** @beta */
825
- export declare function skeleton(props: SkeletonStyleProps): string
1190
+ export declare function skeleton(props: SkeletonStyleProps): string | undefined
826
1191
 
827
1192
  /** @beta */
828
1193
  export declare interface SkeletonStyleProps extends RadiusStyleProps {}
829
1194
 
830
- export declare function spinner(): string
1195
+ export declare function spinner(): string | undefined
1196
+
1197
+ export declare function srOnly(): string | undefined
831
1198
 
832
- export declare function _switch(): string
1199
+ /** @public */
1200
+ export declare function stack(): string | undefined
1201
+
1202
+ /** @public */
1203
+ export declare type Style = {
1204
+ keyframes?: StyleKeyframes
1205
+ layers?: StyleLayers
1206
+ rules?: StyleRules
1207
+ }
1208
+
1209
+ /** @public */
1210
+ export declare type StyleKeyframes = Record<string, Record<string, Properties>>
833
1211
 
834
1212
  /** @public */
835
- export declare function text(props: TextStyleProps): string
1213
+ export declare type StyleLayers = Record<string, StyleRules>
1214
+
1215
+ /** @public */
1216
+ export declare type StyleRules = Partial<Record<StyleSelector, Properties>>
1217
+
1218
+ /** @public */
1219
+ export declare type StyleSelector = `.${string}` | `#${string}` | `:root`
1220
+
1221
+ export declare function _switch(): string | undefined
1222
+
1223
+ export declare function _switchElement(): string | undefined
1224
+
1225
+ export declare function _switchPresentation(): string | undefined
1226
+
1227
+ /** @public */
1228
+ export declare type SwitchScopedVarName =
1229
+ | `--switch-bg-color`
1230
+ | `--switch-fg-color`
1231
+ | '--switch-thumb-offset'
1232
+ | '--switch-thumb-size'
1233
+
1234
+ export declare function _switchThumb(): string | undefined
1235
+
1236
+ export declare function _switchTrack(): string | undefined
1237
+
1238
+ /** @public */
1239
+ export declare function text(props: TextStyleProps): string | undefined
836
1240
 
837
1241
  /**
838
1242
  * @public
839
1243
  */
840
1244
  export declare type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'initial'
841
1245
 
842
- export declare function textArea(): string
1246
+ export declare function textArea(props: TextAreaStyleProps): string | undefined
843
1247
 
844
- export declare function textInput(props: TextInputStyleProps): string
1248
+ /** @public */
1249
+ export declare interface TextAreaStyleProps extends InputStyleProps {}
845
1250
 
846
- export declare function textInputElement(): string
1251
+ export declare function textInput(props: TextInputStyleProps): string | undefined
847
1252
 
848
1253
  /** @public */
849
- export declare interface TextInputStyleProps {
850
- padding: ResponsiveProp<Space>
851
- size: ResponsiveProp<FontTextSize>
1254
+ export declare interface TextInputStyleProps extends InputStyleProps {}
1255
+
1256
+ export declare function textOverflow(props: TextOverflowStyleProps): string | undefined
1257
+
1258
+ export declare interface TextOverflowStyleProps {
1259
+ /**
1260
+ * Controls how overflowing text is treated.
1261
+ * Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
1262
+ * @beta
1263
+ */
1264
+ textOverflow?: 'ellipsis' | 'clip'
852
1265
  }
853
1266
 
854
1267
  export declare type TextSize = number
855
1268
 
856
- export declare function textSkeleton(props: TextSkeletonStyleProps): string
1269
+ export declare function textSkeleton(props: TextSkeletonStyleProps): string | undefined
857
1270
 
858
1271
  export declare interface TextSkeletonStyleProps {
859
1272
  size?: ResponsiveProp<FontTextSize>
860
1273
  }
861
1274
 
862
1275
  /** @public */
863
- export declare interface TextStyleProps extends FontStyleProps_2 {
1276
+ export declare interface TextStyleProps extends FlexItemStyleProps, FontStyleProps {
864
1277
  accent?: boolean
865
1278
  muted?: boolean
866
1279
  size?: ResponsiveProp<TextSize>
@@ -880,88 +1293,9 @@ export declare type ThemeVarName =
880
1293
  | `--card-focus-ring-offset`
881
1294
  | `--card-focus-ring-width`
882
1295
  | `--card-shadow-outline`
883
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-accent-fg`
884
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-bg`
885
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-fg`
886
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-backdrop`
887
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-badge-${ThemeColorStateToneKey}-bg`
888
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-badge-${ThemeColorStateToneKey}-dot`
889
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-badge-${ThemeColorStateToneKey}-fg`
890
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-badge-${ThemeColorStateToneKey}-icon`
891
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-bg`
892
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-border`
893
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-accent-fg`
894
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-bg`
895
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-border`
896
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-code-bg`
897
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-code-fg`
898
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-fg`
899
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-icon`
900
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-link-fg`
901
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-muted-bg`
902
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-muted-fg`
903
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-skeleton-from`
904
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-skeleton-to`
905
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-bg`
906
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-fg`
907
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-focus-ring`
908
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-icon`
909
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-kbd-bg`
910
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-kbd-border`
911
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-kbd-fg`
912
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-link-fg`
913
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-muted-bg`
914
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-muted-fg`
915
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-skeleton-from`
916
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-skeleton-to`
917
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-bg`
918
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-border`
919
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-fg`
920
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-muted-bg`
921
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-placeholder`
922
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-outline`
923
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-umbra`
924
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-penumbra`
925
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-ambient`
926
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-atrule`
927
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-attrName`
928
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-attrValue`
929
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-attribute`
930
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-boolean`
931
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-builtin`
932
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-cdata`
933
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-char`
934
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-class`
935
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-className`
936
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-comment`
937
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-constant`
938
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-deleted`
939
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-doctype`
940
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-entity`
941
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-function`
942
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-hexcode`
943
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-id`
944
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-important`
945
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-inserted`
946
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-keyword`
947
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-number`
948
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-operator`
949
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-prolog`
950
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-property`
951
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-pseudoClass`
952
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-pseudoElement`
953
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-punctuation`
954
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-regex`
955
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-selector`
956
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-string`
957
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-symbol`
958
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-tag`
959
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-unit`
960
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-url`
961
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-variable`
962
- | `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-fg`
963
1296
  | `--container-${ContainerWidth}`
964
1297
  | `--font-code-family`
1298
+ | `--font-code-feature-settings`
965
1299
  | `--font-code-weight-${FontWeight}`
966
1300
  | `--font-code-${FontCodeSize}-ascender-height`
967
1301
  | `--font-code-${FontCodeSize}-descender-height`
@@ -970,6 +1304,7 @@ export declare type ThemeVarName =
970
1304
  | `--font-code-${FontCodeSize}-letter-spacing`
971
1305
  | `--font-code-${FontCodeSize}-icon-size`
972
1306
  | `--font-heading-family`
1307
+ | `--font-heading-feature-settings`
973
1308
  | `--font-heading-weight-${FontWeight}`
974
1309
  | `--font-heading-${FontHeadingSize}-ascender-height`
975
1310
  | `--font-heading-${FontHeadingSize}-descender-height`
@@ -978,6 +1313,7 @@ export declare type ThemeVarName =
978
1313
  | `--font-heading-${FontHeadingSize}-letter-spacing`
979
1314
  | `--font-heading-${FontHeadingSize}-icon-size`
980
1315
  | `--font-label-family`
1316
+ | `--font-label-feature-settings`
981
1317
  | `--font-label-weight-${FontWeight}`
982
1318
  | `--font-label-${FontLabelSize}-ascender-height`
983
1319
  | `--font-label-${FontLabelSize}-descender-height`
@@ -986,6 +1322,7 @@ export declare type ThemeVarName =
986
1322
  | `--font-label-${FontLabelSize}-letter-spacing`
987
1323
  | `--font-label-${FontLabelSize}-icon-size`
988
1324
  | `--font-text-family`
1325
+ | `--font-text-feature-settings`
989
1326
  | `--font-text-weight-${FontWeight}`
990
1327
  | `--font-text-${FontTextSize}-ascender-height`
991
1328
  | `--font-text-${FontTextSize}-descender-height`
@@ -1020,43 +1357,230 @@ export declare type ThemeVarName =
1020
1357
  | `--shadow-${Shadow}-penumbra`
1021
1358
  | `--shadow-${Shadow}-ambient`
1022
1359
 
1023
- export declare function tooltip(): string
1360
+ export declare function toast(): string | undefined
1361
+
1362
+ export declare function toastLayer(): string | undefined
1024
1363
 
1025
- export declare function tooltipCard(): string
1364
+ export declare function toastLoadingBar(): string | undefined
1026
1365
 
1027
- export declare function treeItem(): string
1366
+ export declare function toastLoadingBarMask(): string | undefined
1367
+
1368
+ export declare function toastLoadingBarProgress(): string | undefined
1369
+
1370
+ export declare function toBoxShadow(value: ThemeBoxShadow | undefined): string
1371
+
1372
+ export declare function tooltip(): string | undefined
1373
+
1374
+ export declare function tooltipCard(): string | undefined
1375
+
1376
+ export declare function treeItem(): string | undefined
1377
+
1378
+ /** @public */
1379
+ export declare type VarName =
1380
+ | AvatarScopedVarName
1381
+ | LegacyCardScopedVarName
1382
+ | PaletteVarName
1383
+ | ThemeVarName
1384
+ | ColorCardVarName
1385
+ | ButtonScopedVarName
1386
+ | ColorCardToneScopedVarName
1387
+ | CardScopedVarName
1388
+ | ElementColorVariantScopedVarName
1389
+ | InputScopedVarName
1390
+ | SwitchScopedVarName
1028
1391
 
1029
1392
  /** @public */
1030
1393
  export declare interface VarNames {
1031
- color: Record<ThemeColorSchemeKey, ColorSchemeVarNames> & ScopedColorVarNames
1394
+ button: {
1395
+ border: {
1396
+ width: VarName
1397
+ }
1398
+ focusRing: {
1399
+ offset: VarName
1400
+ width: VarName
1401
+ }
1402
+ }
1403
+ card: {
1404
+ shadow: {
1405
+ outline: VarName
1406
+ }
1407
+ }
1408
+ color: Record<ThemeColorSchemeKey, ColorSchemeVarNames> &
1409
+ ScopedColorVarNames &
1410
+ Record<ThemeColorCardToneKey, ColorCardVarNames>
1411
+ container: Record<Exclude<ContainerWidth, 'auto'>, VarName>
1032
1412
  avatar: {
1413
+ distance: VarName
1033
1414
  focusRing: {
1034
- offset: CSSVarName
1035
- width: CSSVarName
1415
+ offset: VarName
1416
+ width: VarName
1417
+ }
1418
+ size: VarName
1419
+ sizes: Record<
1420
+ AvatarSize,
1421
+ {
1422
+ distance: VarName
1423
+ size: VarName
1424
+ }
1425
+ >
1426
+ }
1427
+ font: {
1428
+ code: FontVarNames<FontCodeSize>
1429
+ heading: FontVarNames<FontHeadingSize>
1430
+ label: FontVarNames<FontLabelSize>
1431
+ text: FontVarNames<FontTextSize>
1432
+ }
1433
+ input: {
1434
+ border: {
1435
+ width: VarName
1436
+ }
1437
+ checkbox: {
1438
+ focusRing: {
1439
+ offset: VarName
1440
+ width: VarName
1441
+ }
1442
+ size: VarName
1443
+ }
1444
+ radio: {
1445
+ focusRing: {
1446
+ offset: VarName
1447
+ width: VarName
1448
+ }
1449
+ markSize: VarName
1450
+ size: VarName
1451
+ }
1452
+ select: {
1453
+ focusRing: {
1454
+ offset: VarName
1455
+ width: VarName
1456
+ }
1457
+ }
1458
+ switch: {
1459
+ focusRing: {
1460
+ offset: VarName
1461
+ width: VarName
1462
+ }
1463
+ height: VarName
1464
+ padding: VarName
1465
+ transitionDurationMs: VarName
1466
+ transitionTimingFunction: VarName
1467
+ width: VarName
1468
+ }
1469
+ text: {
1470
+ focusRing: {
1471
+ offset: VarName
1472
+ width: VarName
1473
+ }
1036
1474
  }
1475
+ fontSize: VarName
1476
+ lineHeight: VarName
1477
+ letterSpacing: VarName
1478
+ ascenderHeight: VarName
1479
+ descenderHeight: VarName
1480
+ gap: VarName
1481
+ padding: VarName
1037
1482
  }
1038
- space: Record<Space, CSSVarName>
1483
+ radius: Record<Radius, VarName>
1484
+ shadow: Record<
1485
+ Shadow,
1486
+ {
1487
+ umbra: VarName
1488
+ penumbra: VarName
1489
+ ambient: VarName
1490
+ }
1491
+ >
1492
+ space: Record<Space, VarName>
1493
+ black: VarName
1494
+ white: VarName
1495
+ gray: Record<ColorTintKey, VarName>
1496
+ blue: Record<ColorTintKey, VarName>
1497
+ purple: Record<ColorTintKey, VarName>
1498
+ magenta: Record<ColorTintKey, VarName>
1499
+ red: Record<ColorTintKey, VarName>
1500
+ orange: Record<ColorTintKey, VarName>
1501
+ yellow: Record<ColorTintKey, VarName>
1502
+ green: Record<ColorTintKey, VarName>
1503
+ cyan: Record<ColorTintKey, VarName>
1039
1504
  }
1040
1505
 
1506
+ export declare const varNames: VarNames
1507
+
1041
1508
  /** @public */
1042
1509
  export declare interface Vars {
1510
+ avatar: {
1511
+ distance: CSSVar
1512
+ size: CSSVar
1513
+ sizes: Record<
1514
+ AvatarSize,
1515
+ {
1516
+ distance: CSSVar
1517
+ size: CSSVar
1518
+ }
1519
+ >
1520
+ }
1521
+ card: {
1522
+ shadow: {
1523
+ outline: CSSVar
1524
+ }
1525
+ }
1043
1526
  color: {
1044
1527
  dark: ColorSchemeVars
1045
1528
  light: ColorSchemeVars
1046
- } & ScopedColorVars
1529
+ } & ScopedColorVars &
1530
+ Record<ThemeColorCardToneKey, ColorCardVars>
1531
+ container: Record<Exclude<ContainerWidth, 'auto'>, CSSVar>
1047
1532
  font: {
1048
1533
  code: FontVars<FontCodeSize>
1049
1534
  heading: FontVars<FontHeadingSize>
1050
1535
  label: FontVars<FontLabelSize>
1051
1536
  text: FontVars<FontTextSize>
1052
1537
  }
1538
+ input: {
1539
+ fontSize: CSSVar
1540
+ lineHeight: CSSVar
1541
+ letterSpacing: CSSVar
1542
+ ascenderHeight: CSSVar
1543
+ descenderHeight: CSSVar
1544
+ gap: CSSVar
1545
+ padding: CSSVar
1546
+ text: {
1547
+ focusRing: {
1548
+ offset: CSSVar
1549
+ width: CSSVar
1550
+ }
1551
+ }
1552
+ }
1553
+ radius: Record<Radius, CSSVar>
1554
+ shadow: Record<
1555
+ Shadow,
1556
+ {
1557
+ umbra: CSSVar
1558
+ penumbra: CSSVar
1559
+ ambient: CSSVar
1560
+ }
1561
+ >
1053
1562
  space: Record<Space, CSSVar>
1563
+ black: CSSVar
1564
+ white: CSSVar
1565
+ gray: Record<ColorTintKey, CSSVar>
1566
+ blue: Record<ColorTintKey, CSSVar>
1567
+ purple: Record<ColorTintKey, CSSVar>
1568
+ magenta: Record<ColorTintKey, CSSVar>
1569
+ red: Record<ColorTintKey, CSSVar>
1570
+ orange: Record<ColorTintKey, CSSVar>
1571
+ yellow: Record<ColorTintKey, CSSVar>
1572
+ green: Record<ColorTintKey, CSSVar>
1573
+ cyan: Record<ColorTintKey, CSSVar>
1054
1574
  }
1055
1575
 
1056
- export declare type Width = 'fill'
1576
+ export declare const vars: Vars
1577
+
1578
+ export declare type Width = ContainerWidth | 'fill'
1579
+
1580
+ export declare function width(props: WidthStyleProps): string
1057
1581
 
1058
1582
  export declare interface WidthStyleProps {
1059
- width?: ResponsiveProp<ContainerWidth | 'fill'>
1583
+ width?: ResponsiveProp<Width>
1060
1584
  }
1061
1585
 
1062
1586
  export {}