@sanity/ui 3.0.0-static.15 → 3.0.0-static.17

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 (526) hide show
  1. package/README.md +6 -6
  2. package/bin/{ui.js → sanity-ui.cjs} +1 -1
  3. package/dist/_chunks-cjs/{_visual-editing.js → _visual-editing.cjs} +67 -77
  4. package/dist/_chunks-cjs/_visual-editing.cjs.map +1 -0
  5. package/dist/_chunks-cjs/{buildCommand.js → buildCommand.cjs} +26 -10
  6. package/dist/_chunks-cjs/buildCommand.cjs.map +1 -0
  7. package/dist/_chunks-cjs/{refractor.js → refractor.cjs} +1 -1
  8. package/dist/_chunks-cjs/refractor.cjs.map +1 -0
  9. package/dist/_chunks-es/{_visual-editing.mjs → _visual-editing.js} +68 -78
  10. package/dist/_chunks-es/_visual-editing.js.map +1 -0
  11. package/dist/_chunks-es/{refractor.mjs → refractor.js} +1 -1
  12. package/dist/_chunks-es/refractor.js.map +1 -0
  13. package/dist/_visual-editing.cjs +30 -0
  14. package/dist/_visual-editing.cjs.map +1 -0
  15. package/dist/{_visual-editing.d.mts → _visual-editing.d.cts} +5 -15
  16. package/dist/_visual-editing.d.ts +5 -15
  17. package/dist/_visual-editing.js +29 -30
  18. package/dist/_visual-editing.js.map +1 -1
  19. package/dist/{cli.js → cli.cjs} +4 -4
  20. package/dist/cli.cjs.map +1 -0
  21. package/dist/{css.mjs → css.cjs} +809 -923
  22. package/dist/css.cjs.map +1 -0
  23. package/dist/{css.d.mts → css.d.cts} +31 -24
  24. package/dist/css.d.ts +31 -24
  25. package/dist/css.js +809 -921
  26. package/dist/css.js.map +1 -1
  27. package/dist/{index.mjs → index.cjs} +373 -406
  28. package/dist/index.cjs.map +1 -0
  29. package/dist/{index.d.mts → index.d.cts} +10 -20
  30. package/dist/index.d.ts +10 -20
  31. package/dist/index.js +371 -406
  32. package/dist/index.js.map +1 -1
  33. package/dist/{theme.mjs → theme.cjs} +219 -196
  34. package/dist/theme.cjs.map +1 -0
  35. package/dist/{theme.d.mts → theme.d.cts} +2 -0
  36. package/dist/theme.d.ts +2 -0
  37. package/dist/theme.js +218 -195
  38. package/dist/theme.js.map +1 -1
  39. package/dist/{sanity-palette.css → ui-palette.css} +1 -1
  40. package/dist/ui-palette.min.css +1 -0
  41. package/dist/{system.css → ui-system.css} +1135 -245
  42. package/dist/ui-system.min.css +1 -0
  43. package/dist/{sanity-theme.css → ui-theme.css} +199 -199
  44. package/dist/ui-theme.min.css +1 -0
  45. package/dist/ui.css +29152 -0
  46. package/dist/ui.min.css +1 -0
  47. package/exports/_visual-editing.ts +27 -27
  48. package/exports/index.ts +1 -1
  49. package/package.json +24 -24
  50. package/src/cli/buildCommand.ts +55 -20
  51. package/src/cli/index.ts +2 -14
  52. package/src/{ui → core}/StyleTags.tsx +4 -4
  53. package/src/{ui → core}/_compat/index.ts +0 -1
  54. package/src/{ui → core}/_compat/theme/themeProvider.tsx +3 -3
  55. package/src/{ui → core}/components/autocomplete/__workshop__/async.tsx +2 -2
  56. package/src/{ui → core}/components/autocomplete/__workshop__/custom.tsx +2 -2
  57. package/src/{ui → core}/components/autocomplete/__workshop__/focusAndBlur.tsx +3 -3
  58. package/src/{ui → core}/components/tab/tabList.tsx +19 -4
  59. package/src/{ui → core}/index.ts +0 -1
  60. package/src/{ui → core}/primitives/box/box.tsx +3 -0
  61. package/src/core/primitives/button/__workshop__/custom.tsx +27 -0
  62. package/src/{ui → core}/primitives/button/button.tsx +3 -1
  63. package/src/{ui → core}/primitives/card/__workshop__/asButton.tsx +0 -9
  64. package/src/{ui → core}/primitives/card/__workshop__/interactive.tsx +0 -1
  65. package/src/{ui → core}/primitives/card/__workshop__/props.tsx +0 -3
  66. package/src/{ui → core}/primitives/card/__workshop__/selected.tsx +6 -37
  67. package/src/{ui → core}/primitives/card/card.tsx +15 -21
  68. package/src/core/primitives/card/cardProvider.tsx +27 -0
  69. package/src/{ui → core}/primitives/card/types.ts +5 -4
  70. package/src/{ui → core}/primitives/heading/__workshop__/opticalAlignment.tsx +1 -1
  71. package/src/{ui → core}/primitives/heading/__workshop__/plain.tsx +1 -8
  72. package/src/{ui → core}/primitives/label/__workshop__/plain.tsx +1 -9
  73. package/src/{ui → core}/primitives/popover/popover.tsx +1 -1
  74. package/src/{ui → core}/primitives/text/__workshop__/example.tsx +1 -9
  75. package/src/{ui → core}/primitives/tooltip/tooltip.tsx +1 -1
  76. package/src/{ui/utils/portal/portal.ts → core/utils/portal/portal.tsx} +8 -10
  77. package/src/css/{compilePalette.ts → _compilePalette.ts} +2 -2
  78. package/src/css/{compileSystem.ts → _compileSystem.ts} +1 -1
  79. package/src/css/{compileTheme.ts → _compileTheme.ts} +3 -3
  80. package/src/css/{compileTheme_v3.ts → _compileTheme_v3.ts} +7 -1
  81. package/src/css/_mergeStyles.ts +0 -7
  82. package/src/css/_system.style.ts +3 -0
  83. package/src/css/aspects/font/font.style.ts +0 -21
  84. package/src/css/aspects/font/font.ts +1 -6
  85. package/src/css/aspects/font/types.ts +0 -4
  86. package/src/css/aspects/index.ts +1 -0
  87. package/src/css/aspects/textAlign/index.ts +2 -0
  88. package/src/css/aspects/textAlign/textAlign.style.ts +26 -0
  89. package/src/css/aspects/textAlign/textAlign.ts +8 -0
  90. package/src/css/aspects/textAlign/types.ts +7 -0
  91. package/src/css/index.ts +3 -3
  92. package/src/css/primitives/_input/_input.style.ts +9 -11
  93. package/src/css/primitives/box/box.style.ts +5 -1
  94. package/src/css/primitives/box/box.ts +2 -0
  95. package/src/css/primitives/box/types.ts +2 -0
  96. package/src/css/primitives/button/button.style.ts +23 -9
  97. package/src/css/primitives/button/button.ts +1 -12
  98. package/src/css/primitives/button/types.ts +1 -6
  99. package/src/css/primitives/card/card.style.ts +12 -21
  100. package/src/css/primitives/heading/heading.ts +2 -1
  101. package/src/css/primitives/heading/types.ts +2 -1
  102. package/src/css/primitives/kbd/kbd.style.ts +3 -6
  103. package/src/css/primitives/label/label.ts +2 -1
  104. package/src/css/primitives/label/types.ts +2 -1
  105. package/src/css/primitives/text/text.style.ts +0 -5
  106. package/src/css/primitives/text/text.ts +2 -1
  107. package/src/css/primitives/text/types.ts +2 -1
  108. package/src/css/primitives/textInput/textInput.style.ts +1 -120
  109. package/src/css/types.ts +9 -9
  110. package/src/theme/v3/color/buildColor_v3.ts +53 -25
  111. package/src/theme/v3/color/card.ts +0 -42
  112. package/src/theme/v3/color/renderColor.test.ts +1 -0
  113. package/src/theme/v3/color/renderColor.ts +9 -2
  114. package/src/theme/v3/color/token.ts +1 -0
  115. package/src/theme/v3/defaultTokens.ts +7 -2
  116. package/dist/_chunks-cjs/_visual-editing.js.map +0 -1
  117. package/dist/_chunks-cjs/buildCommand.js.map +0 -1
  118. package/dist/_chunks-cjs/refractor.js.map +0 -1
  119. package/dist/_chunks-es/_visual-editing.mjs.map +0 -1
  120. package/dist/_chunks-es/refractor.mjs.map +0 -1
  121. package/dist/_visual-editing.mjs +0 -31
  122. package/dist/_visual-editing.mjs.map +0 -1
  123. package/dist/cli.js.map +0 -1
  124. package/dist/css.mjs.map +0 -1
  125. package/dist/index.mjs.map +0 -1
  126. package/dist/sanity-palette.min.css +0 -1
  127. package/dist/sanity-theme.min.css +0 -1
  128. package/dist/system.min.css +0 -1
  129. package/dist/theme.mjs.map +0 -1
  130. package/src/css/primitives/button/_constants.ts +0 -17
  131. package/src/ui/RootClassNames.tsx +0 -44
  132. package/src/ui/_compat/studioTheme.ts +0 -7
  133. package/src/ui/primitives/button/__workshop__/custom.tsx +0 -50
  134. package/src/ui/primitives/card/cardProvider.tsx +0 -21
  135. /package/dist/{cli.d.ts → cli.d.cts} +0 -0
  136. /package/src/{ui → core}/_compat/helpers.ts +0 -0
  137. /package/src/{ui → core}/_compat/styles/_responsive.ts +0 -0
  138. /package/src/{ui → core}/_compat/styles/index.ts +0 -0
  139. /package/src/{ui → core}/_compat/theme/index.ts +0 -0
  140. /package/src/{ui → core}/_compat/theme/theme.test.tsx +0 -0
  141. /package/src/{ui → core}/_compat/theme/themeColorProvider.tsx +0 -0
  142. /package/src/{ui → core}/_compat/theme/themeContext.ts +0 -0
  143. /package/src/{ui → core}/_compat/theme/types.ts +0 -0
  144. /package/src/{ui → core}/_compat/theme/useRootTheme.ts +0 -0
  145. /package/src/{ui → core}/_compat/theme/useTheme.ts +0 -0
  146. /package/src/{ui → core}/_compat/types.ts +0 -0
  147. /package/src/{ui → core}/components/autocomplete/__mocks__/apiStore.ts +0 -0
  148. /package/src/{ui → core}/components/autocomplete/__mocks__/countries.ts +0 -0
  149. /package/src/{ui → core}/components/autocomplete/__workshop__/constrainedHeight.tsx +0 -0
  150. /package/src/{ui → core}/components/autocomplete/__workshop__/example.tsx +0 -0
  151. /package/src/{ui → core}/components/autocomplete/__workshop__/fullscreen.tsx +0 -0
  152. /package/src/{ui → core}/components/autocomplete/__workshop__/index.ts +0 -0
  153. /package/src/{ui → core}/components/autocomplete/__workshop__/types.ts +0 -0
  154. /package/src/{ui → core}/components/autocomplete/autocomplete.tsx +0 -0
  155. /package/src/{ui → core}/components/autocomplete/autocompleteOption.tsx +0 -0
  156. /package/src/{ui → core}/components/autocomplete/autocompleteReducer.ts +0 -0
  157. /package/src/{ui → core}/components/autocomplete/constants.ts +0 -0
  158. /package/src/{ui → core}/components/autocomplete/index.ts +0 -0
  159. /package/src/{ui → core}/components/autocomplete/types.ts +0 -0
  160. /package/src/{ui → core}/components/breadcrumbs/__workshop__/example.tsx +0 -0
  161. /package/src/{ui → core}/components/breadcrumbs/__workshop__/index.ts +0 -0
  162. /package/src/{ui → core}/components/breadcrumbs/breadcrumbs.tsx +0 -0
  163. /package/src/{ui → core}/components/breadcrumbs/index.ts +0 -0
  164. /package/src/{ui → core}/components/dialog/__workshop__/activate.tsx +0 -0
  165. /package/src/{ui → core}/components/dialog/__workshop__/autoFocus.tsx +0 -0
  166. /package/src/{ui → core}/components/dialog/__workshop__/index.ts +0 -0
  167. /package/src/{ui → core}/components/dialog/__workshop__/layering.tsx +0 -0
  168. /package/src/{ui → core}/components/dialog/__workshop__/nested.tsx +0 -0
  169. /package/src/{ui → core}/components/dialog/__workshop__/onScroll.tsx +0 -0
  170. /package/src/{ui → core}/components/dialog/__workshop__/panes.tsx +0 -0
  171. /package/src/{ui → core}/components/dialog/__workshop__/position.tsx +0 -0
  172. /package/src/{ui → core}/components/dialog/__workshop__/props.tsx +0 -0
  173. /package/src/{ui → core}/components/dialog/__workshop__/provider.tsx +0 -0
  174. /package/src/{ui → core}/components/dialog/__workshop__/wrapped.tsx +0 -0
  175. /package/src/{ui → core}/components/dialog/dialog.tsx +0 -0
  176. /package/src/{ui → core}/components/dialog/dialogCard.tsx +0 -0
  177. /package/src/{ui → core}/components/dialog/dialogContext.ts +0 -0
  178. /package/src/{ui → core}/components/dialog/dialogProvider.tsx +0 -0
  179. /package/src/{ui → core}/components/dialog/index.ts +0 -0
  180. /package/src/{ui → core}/components/dialog/isTargetWithinScope.ts +0 -0
  181. /package/src/{ui → core}/components/dialog/useDialog.ts +0 -0
  182. /package/src/{ui → core}/components/hotkeys/__workshop__/index.ts +0 -0
  183. /package/src/{ui → core}/components/hotkeys/__workshop__/plain.tsx +0 -0
  184. /package/src/{ui → core}/components/hotkeys/hotkeys.tsx +0 -0
  185. /package/src/{ui → core}/components/hotkeys/index.ts +0 -0
  186. /package/src/{ui → core}/components/index.ts +0 -0
  187. /package/src/{ui → core}/components/menu/__workshop__/asComponent.tsx +0 -0
  188. /package/src/{ui → core}/components/menu/__workshop__/avatarMenu.tsx +0 -0
  189. /package/src/{ui → core}/components/menu/__workshop__/closableMenuButton.tsx +0 -0
  190. /package/src/{ui → core}/components/menu/__workshop__/constrainedInBoundary.tsx +0 -0
  191. /package/src/{ui → core}/components/menu/__workshop__/customMenuItem.tsx +0 -0
  192. /package/src/{ui → core}/components/menu/__workshop__/customSelectedState.tsx +0 -0
  193. /package/src/{ui → core}/components/menu/__workshop__/disableFocusOnClose.tsx +0 -0
  194. /package/src/{ui → core}/components/menu/__workshop__/groups.tsx +0 -0
  195. /package/src/{ui → core}/components/menu/__workshop__/index.ts +0 -0
  196. /package/src/{ui → core}/components/menu/__workshop__/menuButton.tsx +0 -0
  197. /package/src/{ui → core}/components/menu/__workshop__/menuGroupRight.tsx +0 -0
  198. /package/src/{ui → core}/components/menu/__workshop__/nestedMenu.tsx +0 -0
  199. /package/src/{ui → core}/components/menu/__workshop__/onCloseMenuButton.tsx +0 -0
  200. /package/src/{ui → core}/components/menu/__workshop__/selectedItem.tsx +0 -0
  201. /package/src/{ui → core}/components/menu/__workshop__/shouldFocus.tsx +0 -0
  202. /package/src/{ui → core}/components/menu/__workshop__/tones.tsx +0 -0
  203. /package/src/{ui → core}/components/menu/__workshop__/withoutArrow.tsx +0 -0
  204. /package/src/{ui → core}/components/menu/helpers.ts +0 -0
  205. /package/src/{ui → core}/components/menu/index.ts +0 -0
  206. /package/src/{ui → core}/components/menu/menu.test.tsx +0 -0
  207. /package/src/{ui → core}/components/menu/menu.tsx +0 -0
  208. /package/src/{ui → core}/components/menu/menuButton.tsx +0 -0
  209. /package/src/{ui → core}/components/menu/menuContext.ts +0 -0
  210. /package/src/{ui → core}/components/menu/menuDivider.tsx +0 -0
  211. /package/src/{ui → core}/components/menu/menuGroup.tsx +0 -0
  212. /package/src/{ui → core}/components/menu/menuItem.tsx +0 -0
  213. /package/src/{ui → core}/components/menu/useMenu.ts +0 -0
  214. /package/src/{ui → core}/components/menu/useMenuController.ts +0 -0
  215. /package/src/{ui → core}/components/skeleton/__workshop__/delay.tsx +0 -0
  216. /package/src/{ui → core}/components/skeleton/__workshop__/index.ts +0 -0
  217. /package/src/{ui → core}/components/skeleton/__workshop__/skeleton.tsx +0 -0
  218. /package/src/{ui → core}/components/skeleton/codeSkeleton.tsx +0 -0
  219. /package/src/{ui → core}/components/skeleton/headingSkeleton.tsx +0 -0
  220. /package/src/{ui → core}/components/skeleton/index.ts +0 -0
  221. /package/src/{ui → core}/components/skeleton/labelSkeleton.tsx +0 -0
  222. /package/src/{ui → core}/components/skeleton/skeleton.tsx +0 -0
  223. /package/src/{ui → core}/components/skeleton/textSkeleton.tsx +0 -0
  224. /package/src/{ui → core}/components/tab/__workshop__/example.tsx +0 -0
  225. /package/src/{ui → core}/components/tab/__workshop__/index.ts +0 -0
  226. /package/src/{ui → core}/components/tab/index.ts +0 -0
  227. /package/src/{ui → core}/components/tab/tab.tsx +0 -0
  228. /package/src/{ui → core}/components/tab/tabPanel.tsx +0 -0
  229. /package/src/{ui → core}/components/toast/__workshop__/hook.tsx +0 -0
  230. /package/src/{ui → core}/components/toast/__workshop__/index.ts +0 -0
  231. /package/src/{ui → core}/components/toast/__workshop__/toast.tsx +0 -0
  232. /package/src/{ui → core}/components/toast/index.ts +0 -0
  233. /package/src/{ui → core}/components/toast/toast.test.tsx +0 -0
  234. /package/src/{ui → core}/components/toast/toast.tsx +0 -0
  235. /package/src/{ui → core}/components/toast/toastContext.ts +0 -0
  236. /package/src/{ui → core}/components/toast/toastLayer.tsx +0 -0
  237. /package/src/{ui → core}/components/toast/toastProvider.tsx +0 -0
  238. /package/src/{ui → core}/components/toast/toastState.ts +0 -0
  239. /package/src/{ui → core}/components/toast/types.ts +0 -0
  240. /package/src/{ui → core}/components/toast/useToast.ts +0 -0
  241. /package/src/{ui → core}/components/tree/__workshop__/basic.perf.ts +0 -0
  242. /package/src/{ui → core}/components/tree/__workshop__/basic.tsx +0 -0
  243. /package/src/{ui → core}/components/tree/__workshop__/index.ts +0 -0
  244. /package/src/{ui → core}/components/tree/__workshop__/tabFromElement.tsx +0 -0
  245. /package/src/{ui → core}/components/tree/helpers.ts +0 -0
  246. /package/src/{ui → core}/components/tree/index.ts +0 -0
  247. /package/src/{ui → core}/components/tree/tree.tsx +0 -0
  248. /package/src/{ui → core}/components/tree/treeContext.ts +0 -0
  249. /package/src/{ui → core}/components/tree/treeGroup.tsx +0 -0
  250. /package/src/{ui → core}/components/tree/treeItem.tsx +0 -0
  251. /package/src/{ui → core}/components/tree/types.ts +0 -0
  252. /package/src/{ui → core}/components/tree/useTree.ts +0 -0
  253. /package/src/{ui → core}/constants.ts +0 -0
  254. /package/src/{ui → core}/global.ts +0 -0
  255. /package/src/{ui → core}/helpers/animation.ts +0 -0
  256. /package/src/{ui → core}/helpers/element.ts +0 -0
  257. /package/src/{ui → core}/helpers/focus.ts +0 -0
  258. /package/src/{ui → core}/helpers/index.ts +0 -0
  259. /package/src/{ui → core}/helpers/props.ts +0 -0
  260. /package/src/{ui → core}/helpers/scroll.ts +0 -0
  261. /package/src/{ui → core}/hooks/index.ts +0 -0
  262. /package/src/{ui → core}/hooks/useArrayProp.ts +0 -0
  263. /package/src/{ui → core}/hooks/useClickOutside.test.tsx +0 -0
  264. /package/src/{ui → core}/hooks/useClickOutside.ts +0 -0
  265. /package/src/{ui → core}/hooks/useClickOutsideEvent.test.tsx +0 -0
  266. /package/src/{ui → core}/hooks/useClickOutsideEvent.ts +0 -0
  267. /package/src/{ui → core}/hooks/useCustomValidity.ts +0 -0
  268. /package/src/{ui → core}/hooks/useDelayed.test.ts +0 -0
  269. /package/src/{ui → core}/hooks/useDelayedState.ts +0 -0
  270. /package/src/{ui → core}/hooks/useElementRect/__workshop__/example.tsx +0 -0
  271. /package/src/{ui → core}/hooks/useElementRect/__workshop__/index.ts +0 -0
  272. /package/src/{ui → core}/hooks/useElementRect/index.ts +0 -0
  273. /package/src/{ui → core}/hooks/useElementRect/useElementRect.ts +0 -0
  274. /package/src/{ui → core}/hooks/useElementSize.ts +0 -0
  275. /package/src/{ui → core}/hooks/useForwardedRef.ts +0 -0
  276. /package/src/{ui → core}/hooks/useGlobalKeyDown.ts +0 -0
  277. /package/src/{ui → core}/hooks/useIsomorphicEffect.ts +0 -0
  278. /package/src/{ui → core}/hooks/useMatchMedia.ts +0 -0
  279. /package/src/{ui → core}/hooks/useMediaIndex/__workshop__/index.ts +0 -0
  280. /package/src/{ui → core}/hooks/useMediaIndex/__workshop__/test.tsx +0 -0
  281. /package/src/{ui → core}/hooks/useMediaIndex/index.ts +0 -0
  282. /package/src/{ui → core}/hooks/useMediaIndex/useMediaIndex.test.tsx +0 -0
  283. /package/src/{ui → core}/hooks/useMediaIndex/useMediaIndex.ts +0 -0
  284. /package/src/{ui → core}/hooks/useMounted.ts +0 -0
  285. /package/src/{ui → core}/hooks/usePrefersDark.hydration.test.tsx +0 -0
  286. /package/src/{ui → core}/hooks/usePrefersDark.test.tsx +0 -0
  287. /package/src/{ui → core}/hooks/usePrefersDark.ts +0 -0
  288. /package/src/{ui → core}/hooks/usePrefersReducedMotion.hydration.test.tsx +0 -0
  289. /package/src/{ui → core}/hooks/usePrefersReducedMotion.test.tsx +0 -0
  290. /package/src/{ui → core}/hooks/usePrefersReducedMotion.ts +0 -0
  291. /package/src/{ui → core}/lib/createGlobalScopedContext.ts +0 -0
  292. /package/src/{ui → core}/lib/globalScope.ts +0 -0
  293. /package/src/{ui → core}/lib/isRecord.ts +0 -0
  294. /package/src/{ui → core}/middleware/origin.ts +0 -0
  295. /package/src/{ui → core}/observers/elementSizeObserver.ts +0 -0
  296. /package/src/{ui → core}/observers/index.ts +0 -0
  297. /package/src/{ui → core}/observers/resizeObserver.ts +0 -0
  298. /package/src/{ui → core}/primitives/_selectable/index.ts +0 -0
  299. /package/src/{ui → core}/primitives/_selectable/selectable.tsx +0 -0
  300. /package/src/{ui → core}/primitives/avatar/__workshop__/asButton.tsx +0 -0
  301. /package/src/{ui → core}/primitives/avatar/__workshop__/index.ts +0 -0
  302. /package/src/{ui → core}/primitives/avatar/__workshop__/stack.tsx +0 -0
  303. /package/src/{ui → core}/primitives/avatar/__workshop__/withinButton.tsx +0 -0
  304. /package/src/{ui → core}/primitives/avatar/__workshop__/withinMenuItem.tsx +0 -0
  305. /package/src/{ui → core}/primitives/avatar/avatar.tsx +0 -0
  306. /package/src/{ui → core}/primitives/avatar/avatarCounter.tsx +0 -0
  307. /package/src/{ui → core}/primitives/avatar/avatarStack.tsx +0 -0
  308. /package/src/{ui → core}/primitives/avatar/index.ts +0 -0
  309. /package/src/{ui → core}/primitives/avatar/types.ts +0 -0
  310. /package/src/{ui → core}/primitives/badge/__workshop__/index.ts +0 -0
  311. /package/src/{ui → core}/primitives/badge/__workshop__/props.tsx +0 -0
  312. /package/src/{ui → core}/primitives/badge/__workshop__/tones.tsx +0 -0
  313. /package/src/{ui → core}/primitives/badge/badge.test.tsx +0 -0
  314. /package/src/{ui → core}/primitives/badge/badge.tsx +0 -0
  315. /package/src/{ui → core}/primitives/badge/index.ts +0 -0
  316. /package/src/{ui → core}/primitives/badge/types.ts +0 -0
  317. /package/src/{ui → core}/primitives/box/__workshop__/index.ts +0 -0
  318. /package/src/{ui → core}/primitives/box/__workshop__/props.tsx +0 -0
  319. /package/src/{ui → core}/primitives/box/__workshop__/responsive.tsx +0 -0
  320. /package/src/{ui → core}/primitives/box/index.ts +0 -0
  321. /package/src/{ui → core}/primitives/button/__workshop__/customIcons.tsx +0 -0
  322. /package/src/{ui → core}/primitives/button/__workshop__/disabled.tsx +0 -0
  323. /package/src/{ui → core}/primitives/button/__workshop__/index.ts +0 -0
  324. /package/src/{ui → core}/primitives/button/__workshop__/mixedChildren.tsx +0 -0
  325. /package/src/{ui → core}/primitives/button/__workshop__/props.tsx +0 -0
  326. /package/src/{ui → core}/primitives/button/__workshop__/sanityUploadButton.tsx +0 -0
  327. /package/src/{ui → core}/primitives/button/__workshop__/stacked.tsx +0 -0
  328. /package/src/{ui → core}/primitives/button/__workshop__/styled1.tsx +0 -0
  329. /package/src/{ui → core}/primitives/button/__workshop__/styled2.tsx +0 -0
  330. /package/src/{ui → core}/primitives/button/__workshop__/uploadButton.tsx +0 -0
  331. /package/src/{ui → core}/primitives/button/button.test.tsx +0 -0
  332. /package/src/{ui → core}/primitives/button/index.ts +0 -0
  333. /package/src/{ui → core}/primitives/card/__workshop__/allTones.tsx +0 -0
  334. /package/src/{ui → core}/primitives/card/__workshop__/asComponent.tsx +0 -0
  335. /package/src/{ui → core}/primitives/card/__workshop__/checkered.tsx +0 -0
  336. /package/src/{ui → core}/primitives/card/__workshop__/index.ts +0 -0
  337. /package/src/{ui → core}/primitives/card/__workshop__/listNavigation.tsx +0 -0
  338. /package/src/{ui → core}/primitives/card/__workshop__/styled.tsx +0 -0
  339. /package/src/{ui → core}/primitives/card/cardContext.ts +0 -0
  340. /package/src/{ui → core}/primitives/card/index.ts +0 -0
  341. /package/src/{ui → core}/primitives/card/useCard.ts +0 -0
  342. /package/src/{ui → core}/primitives/checkbox/__workshop__/example.tsx +0 -0
  343. /package/src/{ui → core}/primitives/checkbox/__workshop__/index.ts +0 -0
  344. /package/src/{ui → core}/primitives/checkbox/__workshop__/props.tsx +0 -0
  345. /package/src/{ui → core}/primitives/checkbox/__workshop__/readOnly.tsx +0 -0
  346. /package/src/{ui → core}/primitives/checkbox/__workshop__/tones.tsx +0 -0
  347. /package/src/{ui → core}/primitives/checkbox/checkbox.tsx +0 -0
  348. /package/src/{ui → core}/primitives/checkbox/index.ts +0 -0
  349. /package/src/{ui → core}/primitives/code/__workshop__/index.ts +0 -0
  350. /package/src/{ui → core}/primitives/code/__workshop__/opticalAlignment.tsx +0 -0
  351. /package/src/{ui → core}/primitives/code/__workshop__/props.tsx +0 -0
  352. /package/src/{ui → core}/primitives/code/code.tsx +0 -0
  353. /package/src/{ui → core}/primitives/code/index.ts +0 -0
  354. /package/src/{ui → core}/primitives/code/refractor.tsx +0 -0
  355. /package/src/{ui → core}/primitives/container/__workshop__/example.tsx +0 -0
  356. /package/src/{ui → core}/primitives/container/__workshop__/index.ts +0 -0
  357. /package/src/{ui → core}/primitives/container/container.tsx +0 -0
  358. /package/src/{ui → core}/primitives/container/index.ts +0 -0
  359. /package/src/{ui → core}/primitives/container/types.ts +0 -0
  360. /package/src/{ui → core}/primitives/flex/__workshop__/example.tsx +0 -0
  361. /package/src/{ui → core}/primitives/flex/__workshop__/gap.tsx +0 -0
  362. /package/src/{ui → core}/primitives/flex/__workshop__/index.ts +0 -0
  363. /package/src/{ui → core}/primitives/flex/flex.tsx +0 -0
  364. /package/src/{ui → core}/primitives/flex/index.ts +0 -0
  365. /package/src/{ui → core}/primitives/grid/__workshop__/index.ts +0 -0
  366. /package/src/{ui → core}/primitives/grid/__workshop__/responsive.tsx +0 -0
  367. /package/src/{ui → core}/primitives/grid/grid.tsx +0 -0
  368. /package/src/{ui → core}/primitives/grid/index.ts +0 -0
  369. /package/src/{ui → core}/primitives/heading/__workshop__/index.ts +0 -0
  370. /package/src/{ui → core}/primitives/heading/heading.tsx +0 -0
  371. /package/src/{ui → core}/primitives/heading/index.ts +0 -0
  372. /package/src/{ui → core}/primitives/index.ts +0 -0
  373. /package/src/{ui → core}/primitives/inline/__workshop__/index.ts +0 -0
  374. /package/src/{ui → core}/primitives/inline/__workshop__/plain.tsx +0 -0
  375. /package/src/{ui → core}/primitives/inline/index.ts +0 -0
  376. /package/src/{ui → core}/primitives/inline/inline.tsx +0 -0
  377. /package/src/{ui → core}/primitives/inline/types.ts +0 -0
  378. /package/src/{ui → core}/primitives/kbd/__workshop__/index.ts +0 -0
  379. /package/src/{ui → core}/primitives/kbd/__workshop__/plain.tsx +0 -0
  380. /package/src/{ui → core}/primitives/kbd/index.ts +0 -0
  381. /package/src/{ui → core}/primitives/kbd/kbd.tsx +0 -0
  382. /package/src/{ui → core}/primitives/label/__workshop__/index.ts +0 -0
  383. /package/src/{ui → core}/primitives/label/__workshop__/opticalAlignment.tsx +0 -0
  384. /package/src/{ui → core}/primitives/label/index.ts +0 -0
  385. /package/src/{ui → core}/primitives/label/label.tsx +0 -0
  386. /package/src/{ui → core}/primitives/popover/__workshop__/AlignedStory.tsx +0 -0
  387. /package/src/{ui → core}/primitives/popover/__workshop__/MarginsStory.tsx +0 -0
  388. /package/src/{ui → core}/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -0
  389. /package/src/{ui → core}/primitives/popover/__workshop__/OpenOnMountStory.tsx +0 -0
  390. /package/src/{ui → core}/primitives/popover/__workshop__/PlainStory.tsx +0 -0
  391. /package/src/{ui → core}/primitives/popover/__workshop__/RecursiveStory.tsx +0 -0
  392. /package/src/{ui → core}/primitives/popover/__workshop__/SidePanelStory.tsx +0 -0
  393. /package/src/{ui → core}/primitives/popover/__workshop__/TestStory.tsx +0 -0
  394. /package/src/{ui → core}/primitives/popover/__workshop__/index.ts +0 -0
  395. /package/src/{ui → core}/primitives/popover/constants.ts +0 -0
  396. /package/src/{ui → core}/primitives/popover/floating-ui/size.ts +0 -0
  397. /package/src/{ui → core}/primitives/popover/helpers.ts +0 -0
  398. /package/src/{ui → core}/primitives/popover/index.ts +0 -0
  399. /package/src/{ui → core}/primitives/popover/popoverLayer.tsx +0 -0
  400. /package/src/{ui → core}/primitives/popover/types.ts +0 -0
  401. /package/src/{ui → core}/primitives/radio/__workshop__/example.tsx +0 -0
  402. /package/src/{ui → core}/primitives/radio/__workshop__/index.ts +0 -0
  403. /package/src/{ui → core}/primitives/radio/__workshop__/plain.tsx +0 -0
  404. /package/src/{ui → core}/primitives/radio/index.ts +0 -0
  405. /package/src/{ui → core}/primitives/radio/radio.tsx +0 -0
  406. /package/src/{ui → core}/primitives/select/__workshop__/index.ts +0 -0
  407. /package/src/{ui → core}/primitives/select/__workshop__/plain.tsx +0 -0
  408. /package/src/{ui → core}/primitives/select/__workshop__/readOnly.tsx +0 -0
  409. /package/src/{ui → core}/primitives/select/index.ts +0 -0
  410. /package/src/{ui → core}/primitives/select/select.tsx +0 -0
  411. /package/src/{ui → core}/primitives/spinner/__workshop__/Props.tsx +0 -0
  412. /package/src/{ui → core}/primitives/spinner/__workshop__/index.ts +0 -0
  413. /package/src/{ui → core}/primitives/spinner/animatedSpinnerIcon.tsx +0 -0
  414. /package/src/{ui → core}/primitives/spinner/index.ts +0 -0
  415. /package/src/{ui → core}/primitives/spinner/spinner.tsx +0 -0
  416. /package/src/{ui → core}/primitives/stack/__workshop__/index.ts +0 -0
  417. /package/src/{ui → core}/primitives/stack/__workshop__/plain.tsx +0 -0
  418. /package/src/{ui → core}/primitives/stack/index.ts +0 -0
  419. /package/src/{ui → core}/primitives/stack/stack.tsx +0 -0
  420. /package/src/{ui → core}/primitives/switch/__workshop__/example.tsx +0 -0
  421. /package/src/{ui → core}/primitives/switch/__workshop__/index.ts +0 -0
  422. /package/src/{ui → core}/primitives/switch/__workshop__/props.tsx +0 -0
  423. /package/src/{ui → core}/primitives/switch/index.ts +0 -0
  424. /package/src/{ui → core}/primitives/switch/switch.tsx +0 -0
  425. /package/src/{ui → core}/primitives/text/__workshop__/colored.tsx +0 -0
  426. /package/src/{ui → core}/primitives/text/__workshop__/index.ts +0 -0
  427. /package/src/{ui → core}/primitives/text/__workshop__/opticalAlignment.tsx +0 -0
  428. /package/src/{ui → core}/primitives/text/index.ts +0 -0
  429. /package/src/{ui → core}/primitives/text/text.tsx +0 -0
  430. /package/src/{ui → core}/primitives/textArea/__workshop__/index.ts +0 -0
  431. /package/src/{ui → core}/primitives/textArea/__workshop__/plain.tsx +0 -0
  432. /package/src/{ui → core}/primitives/textArea/index.ts +0 -0
  433. /package/src/{ui → core}/primitives/textArea/textArea.tsx +0 -0
  434. /package/src/{ui → core}/primitives/textInput/__workshop__/clearButton.tsx +0 -0
  435. /package/src/{ui → core}/primitives/textInput/__workshop__/customValidity.tsx +0 -0
  436. /package/src/{ui → core}/primitives/textInput/__workshop__/index.ts +0 -0
  437. /package/src/{ui → core}/primitives/textInput/__workshop__/plain.tsx +0 -0
  438. /package/src/{ui → core}/primitives/textInput/__workshop__/readOnly.tsx +0 -0
  439. /package/src/{ui → core}/primitives/textInput/__workshop__/states.tsx +0 -0
  440. /package/src/{ui → core}/primitives/textInput/__workshop__/tones.tsx +0 -0
  441. /package/src/{ui → core}/primitives/textInput/__workshop__/typed.tsx +0 -0
  442. /package/src/{ui → core}/primitives/textInput/index.ts +0 -0
  443. /package/src/{ui → core}/primitives/textInput/textInput.tsx +0 -0
  444. /package/src/{ui → core}/primitives/tooltip/__workshop__/customPortal.tsx +0 -0
  445. /package/src/{ui → core}/primitives/tooltip/__workshop__/index.ts +0 -0
  446. /package/src/{ui → core}/primitives/tooltip/__workshop__/overflowingBoundary.tsx +0 -0
  447. /package/src/{ui → core}/primitives/tooltip/__workshop__/props.tsx +0 -0
  448. /package/src/{ui → core}/primitives/tooltip/__workshop__/resizableBoundary.tsx +0 -0
  449. /package/src/{ui → core}/primitives/tooltip/constants.ts +0 -0
  450. /package/src/{ui → core}/primitives/tooltip/index.ts +0 -0
  451. /package/src/{ui → core}/primitives/tooltip/tooltip.test.tsx +0 -0
  452. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/index.ts +0 -0
  453. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +0 -0
  454. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +0 -0
  455. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/types.ts +0 -0
  456. /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -0
  457. /package/src/{ui → core}/primitives/tooltip/tooltipLayer.tsx +0 -0
  458. /package/src/{ui → core}/primitives/types.ts +0 -0
  459. /package/src/{ui → core}/types/avatar.ts +0 -0
  460. /package/src/{ui → core}/types/badge.ts +0 -0
  461. /package/src/{ui → core}/types/box.ts +0 -0
  462. /package/src/{ui → core}/types/button.ts +0 -0
  463. /package/src/{ui → core}/types/card.ts +0 -0
  464. /package/src/{ui → core}/types/dialog.ts +0 -0
  465. /package/src/{ui → core}/types/flex.ts +0 -0
  466. /package/src/{ui → core}/types/grid.ts +0 -0
  467. /package/src/{ui → core}/types/gridItem.ts +0 -0
  468. /package/src/{ui → core}/types/index.ts +0 -0
  469. /package/src/{ui → core}/types/placement.ts +0 -0
  470. /package/src/{ui → core}/types/popover.ts +0 -0
  471. /package/src/{ui → core}/types/props.ts +0 -0
  472. /package/src/{ui → core}/types/radius.ts +0 -0
  473. /package/src/{ui → core}/types/selectable.ts +0 -0
  474. /package/src/{ui → core}/types/text.ts +0 -0
  475. /package/src/{ui → core}/utils/arrow/arrow.tsx +0 -0
  476. /package/src/{ui → core}/utils/arrow/cmds.ts +0 -0
  477. /package/src/{ui → core}/utils/arrow/index.ts +0 -0
  478. /package/src/{ui → core}/utils/boundaryElement/__workshop__/index.ts +0 -0
  479. /package/src/{ui → core}/utils/boundaryElement/__workshop__/plain.tsx +0 -0
  480. /package/src/{ui → core}/utils/boundaryElement/boundaryElement.test.tsx +0 -0
  481. /package/src/{ui → core}/utils/boundaryElement/boundaryElementContext.ts +0 -0
  482. /package/src/{ui → core}/utils/boundaryElement/boundaryElementProvider.tsx +0 -0
  483. /package/src/{ui → core}/utils/boundaryElement/index.ts +0 -0
  484. /package/src/{ui → core}/utils/boundaryElement/types.ts +0 -0
  485. /package/src/{ui → core}/utils/boundaryElement/useBoundaryElement.ts +0 -0
  486. /package/src/{ui → core}/utils/elementQuery/__workshop__/customMedia.tsx +0 -0
  487. /package/src/{ui → core}/utils/elementQuery/__workshop__/index.ts +0 -0
  488. /package/src/{ui → core}/utils/elementQuery/elementQuery.tsx +0 -0
  489. /package/src/{ui → core}/utils/elementQuery/helpers.ts +0 -0
  490. /package/src/{ui → core}/utils/elementQuery/index.ts +0 -0
  491. /package/src/{ui → core}/utils/errorBoundary.tsx +0 -0
  492. /package/src/{ui → core}/utils/getElementRef.ts +0 -0
  493. /package/src/{ui → core}/utils/index.ts +0 -0
  494. /package/src/{ui → core}/utils/layer/__workshop__/_debug.tsx +0 -0
  495. /package/src/{ui → core}/utils/layer/__workshop__/index.ts +0 -0
  496. /package/src/{ui → core}/utils/layer/__workshop__/multipleRoots.tsx +0 -0
  497. /package/src/{ui → core}/utils/layer/__workshop__/nested.tsx +0 -0
  498. /package/src/{ui → core}/utils/layer/__workshop__/responsiveZOffset.tsx +0 -0
  499. /package/src/{ui → core}/utils/layer/getLayerContext.test.ts +0 -0
  500. /package/src/{ui → core}/utils/layer/getLayerContext.ts +0 -0
  501. /package/src/{ui → core}/utils/layer/index.ts +0 -0
  502. /package/src/{ui → core}/utils/layer/layer.test.tsx +0 -0
  503. /package/src/{ui → core}/utils/layer/layer.tsx +0 -0
  504. /package/src/{ui → core}/utils/layer/layerCard.tsx +0 -0
  505. /package/src/{ui → core}/utils/layer/layerContext.ts +0 -0
  506. /package/src/{ui → core}/utils/layer/layerProvider.tsx +0 -0
  507. /package/src/{ui → core}/utils/layer/types.ts +0 -0
  508. /package/src/{ui → core}/utils/layer/useLayer.ts +0 -0
  509. /package/src/{ui → core}/utils/portal/__workshop__/index.ts +0 -0
  510. /package/src/{ui → core}/utils/portal/__workshop__/named.tsx +0 -0
  511. /package/src/{ui → core}/utils/portal/index.ts +0 -0
  512. /package/src/{ui → core}/utils/portal/portal.test.tsx +0 -0
  513. /package/src/{ui → core}/utils/portal/portalContext.ts +0 -0
  514. /package/src/{ui → core}/utils/portal/portalProvider.tsx +0 -0
  515. /package/src/{ui → core}/utils/portal/types.ts +0 -0
  516. /package/src/{ui → core}/utils/portal/usePortal.ts +0 -0
  517. /package/src/{ui → core}/utils/spanWithTextOverflow.tsx +0 -0
  518. /package/src/{ui → core}/utils/srOnly/index.ts +0 -0
  519. /package/src/{ui → core}/utils/srOnly/srOnly.tsx +0 -0
  520. /package/src/{ui → core}/utils/virtualList/__workshop__/changingProps.tsx +0 -0
  521. /package/src/{ui → core}/utils/virtualList/__workshop__/elementScroll.tsx +0 -0
  522. /package/src/{ui → core}/utils/virtualList/__workshop__/index.ts +0 -0
  523. /package/src/{ui → core}/utils/virtualList/__workshop__/infiniteList.tsx +0 -0
  524. /package/src/{ui → core}/utils/virtualList/__workshop__/windowScrolll.tsx +0 -0
  525. /package/src/{ui → core}/utils/virtualList/index.ts +0 -0
  526. /package/src/{ui → core}/utils/virtualList/virtualList.tsx +0 -0
package/dist/css.js CHANGED
@@ -1,80 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: !0 });
3
- var color = require("@sanity/color"), theme = require("@sanity/ui/theme");
4
- function _resp(prefix, prop) {
5
- if (!(prop === void 0 || prop === !1))
6
- return Array.isArray(prop) ? prop.map((value, index) => {
7
- if (value === void 0 || typeof prop == "boolean" && prop === !1) return;
8
- const className = (typeof value == "boolean" ? [prefix] : [prefix, value]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
9
- return index === 0 ? className : `${index}:${className}`;
10
- }).filter(Boolean).join(" ") : (typeof prop == "boolean" ? [prefix] : [prefix, prop]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
11
- }
12
- function _getClassNames(...classNames) {
13
- return classNames.map((n) => typeof n == "string" && n.trim()).filter(Boolean).join(" ").split(" ");
14
- }
15
- function composeClassNames(...classNames) {
16
- return unique(_getClassNames(...classNames)).join(" ") || void 0;
17
- }
18
- function unique(array) {
19
- return Array.from(new Set(array));
20
- }
21
- function border(props) {
22
- return composeClassNames(_resp("border", props.border), _resp("border-t", props.borderTop), _resp("border-r", props.borderRight), _resp("border-b", props.borderBottom), _resp("border-l", props.borderLeft));
23
- }
24
- function display(props) {
25
- return composeClassNames(_resp(void 0, props.display));
26
- }
27
- function flex(props) {
28
- return composeClassNames(_resp("flex-align", props.align), _resp("f", props.direction), _resp("flex-justify", props.justify), _resp("flex", props.wrap));
29
- }
30
- function flexItem(props) {
31
- return composeClassNames(_resp("f", props.flex));
32
- }
33
- function font(props) {
34
- return composeClassNames("font", props.weight && `font-${props.weight}`, _resp("text-align", props.align));
35
- }
36
- function gap(props) {
37
- return composeClassNames(_resp("g", props.gap), _resp("gx", props.gapX), _resp("gy", props.gapY));
38
- }
39
- function grid(props) {
40
- return composeClassNames(_resp("auto-cols", props.autoCols), _resp("auto-flow", props.autoFlow), _resp("auto-rows", props.autoRows), _resp("cols", props.columns), _resp("rows", props.rows));
41
- }
42
- function gridItem(props) {
43
- return composeClassNames(_resp("col", props.column), _resp("col-start", props.columnStart), _resp("col-end", props.columnEnd), _resp("row", props.row), _resp("row-start", props.rowStart), _resp("row-end", props.rowEnd));
44
- }
45
- function height(props) {
46
- return composeClassNames(_resp("h", props.height));
47
- }
48
- function inset(props) {
49
- return composeClassNames(_resp("inset", props.inset), _resp("top", props.insetTop), _resp("right", props.insetRight), _resp("bottom", props.insetBottom), _resp("left", props.insetLeft));
50
- }
51
- function margin(props) {
52
- return composeClassNames(_resp("m", props.margin), _resp("mx", props.marginX), _resp("my", props.marginY), _resp("mt", props.marginTop), _resp("mr", props.marginRight), _resp("mb", props.marginBottom), _resp("ml", props.marginLeft));
53
- }
54
- function maxWidth(props) {
55
- return _resp("max-w", props.maxWidth) ?? "";
56
- }
57
- function minWidth(props) {
58
- return _resp("min-w", props.minWidth) ?? "";
59
- }
60
- function overflow(props) {
61
- return composeClassNames(_resp("overflow", props.overflow), _resp("overflow-x", props.overflowX), _resp("overflow-y", props.overflowY));
62
- }
63
- function padding(props) {
64
- return composeClassNames(_resp("p", props.padding), _resp("px", props.paddingX), _resp("py", props.paddingY), _resp("pt", props.paddingTop), _resp("pr", props.paddingRight), _resp("pb", props.paddingBottom), _resp("pl", props.paddingLeft));
65
- }
66
- function pointerEvents(props) {
67
- return composeClassNames(props.pointerEvents && `pointer-events-${props.pointerEvents}`);
68
- }
69
- function position(props) {
70
- return composeClassNames(_resp("position", props.position));
71
- }
72
- function radius(props) {
73
- return composeClassNames(_resp("r", props.radius));
74
- }
75
- function shadow(props) {
76
- return composeClassNames(_resp("shadow", props.shadow));
77
- }
1
+ import { COLOR_HUES, COLOR_TINTS, color } from "@sanity/color";
2
+ import { SPACE, SHADOW, RADIUS, FONT_TEXT_SIZE, FONT_LABEL_SIZE, FONT_HEADING_SIZE, FONT_CODE_SIZE, THEME_COLOR_CARD_TONES, AVATAR_SIZE, THEME_COLOR_STATE_TONES, HUES, TINTS, THEME_COLOR_AVATAR_COLORS, THEME_COLOR_SCHEMES as THEME_COLOR_SCHEMES$1, renderColor } from "@sanity/ui/theme";
78
3
  const BREAKPOINTS = {
79
4
  1: 360,
80
5
  2: 600,
@@ -83,19 +8,6 @@ const BREAKPOINTS = {
83
8
  5: 1800,
84
9
  6: 2400
85
10
  }, PREFIX = "s-";
86
- function scopeClassName(className) {
87
- if (className !== void 0)
88
- return `${PREFIX}${className.trim()}`;
89
- }
90
- function _comp(...classNames) {
91
- return _getClassNames(...classNames).filter(Boolean).map(scopeClassName).join(" ") || void 0;
92
- }
93
- function textOverflow(props) {
94
- return _comp(props.textOverflow && `text-overflow-${props.textOverflow}`);
95
- }
96
- function width(props) {
97
- return _resp("w", props.width) ?? "";
98
- }
99
11
  function isRecord(value) {
100
12
  return value !== null && typeof value == "object" && !Array.isArray(value);
101
13
  }
@@ -207,7 +119,7 @@ const varNames = {
207
119
  width: "--avatar-focus-ring-width"
208
120
  },
209
121
  size: "--avatar-size",
210
- sizes: theme.AVATAR_SIZE.reduce((acc, size) => ({
122
+ sizes: AVATAR_SIZE.reduce((acc, size) => ({
211
123
  ...acc,
212
124
  [size]: {
213
125
  distance: `--avatar-${size}-distance`,
@@ -348,15 +260,15 @@ const varNames = {
348
260
  variant: "tinted"
349
261
  }),
350
262
  // tone scopes
351
- ...theme.THEME_COLOR_CARD_TONES.reduce((acc, tone) => (acc[tone] = buildColorCardVarNames({
263
+ ...THEME_COLOR_CARD_TONES.reduce((acc, tone) => (acc[tone] = buildColorCardVarNames({
352
264
  tone
353
265
  }), acc), {}),
354
266
  // scheme scopes
355
- dark: theme.THEME_COLOR_CARD_TONES.reduce((acc, tone) => (acc[tone] = buildColorCardVarNames({
267
+ dark: THEME_COLOR_CARD_TONES.reduce((acc, tone) => (acc[tone] = buildColorCardVarNames({
356
268
  scheme: "dark",
357
269
  tone
358
270
  }), acc), {}),
359
- light: theme.THEME_COLOR_CARD_TONES.reduce((acc, tone) => (acc[tone] = buildColorCardVarNames({
271
+ light: THEME_COLOR_CARD_TONES.reduce((acc, tone) => (acc[tone] = buildColorCardVarNames({
360
272
  scheme: "light",
361
273
  tone
362
274
  }), acc), {})
@@ -373,7 +285,7 @@ const varNames = {
373
285
  code: {
374
286
  family: "--font-code-family",
375
287
  featureSettings: "--font-code-feature-settings",
376
- sizes: theme.FONT_CODE_SIZE.reduce((acc, size) => ({
288
+ sizes: FONT_CODE_SIZE.reduce((acc, size) => ({
377
289
  ...acc,
378
290
  [size]: {
379
291
  fontSize: `--font-code-${size}-size`,
@@ -394,7 +306,7 @@ const varNames = {
394
306
  heading: {
395
307
  family: "--font-heading-family",
396
308
  featureSettings: "--font-heading-feature-settings",
397
- sizes: theme.FONT_HEADING_SIZE.reduce((acc, size) => ({
309
+ sizes: FONT_HEADING_SIZE.reduce((acc, size) => ({
398
310
  ...acc,
399
311
  [size]: {
400
312
  fontSize: `--font-heading-${size}-size`,
@@ -415,7 +327,7 @@ const varNames = {
415
327
  label: {
416
328
  family: "--font-label-family",
417
329
  featureSettings: "--font-label-feature-settings",
418
- sizes: theme.FONT_LABEL_SIZE.reduce((acc, size) => ({
330
+ sizes: FONT_LABEL_SIZE.reduce((acc, size) => ({
419
331
  ...acc,
420
332
  [size]: {
421
333
  fontSize: `--font-label-${size}-size`,
@@ -436,7 +348,7 @@ const varNames = {
436
348
  text: {
437
349
  family: "--font-text-family",
438
350
  featureSettings: "--font-text-feature-settings",
439
- sizes: theme.FONT_TEXT_SIZE.reduce((acc, size) => ({
351
+ sizes: FONT_TEXT_SIZE.reduce((acc, size) => ({
440
352
  ...acc,
441
353
  [size]: {
442
354
  fontSize: `--font-text-${size}-size`,
@@ -505,19 +417,19 @@ const varNames = {
505
417
  gap: "--input-gap",
506
418
  padding: "--input-padding"
507
419
  },
508
- radius: Object.fromEntries(theme.RADIUS.map((radius2) => [radius2, `--radius-${radius2}`])),
509
- shadow: Object.fromEntries(theme.SHADOW.map((shadow2) => [shadow2, {
420
+ radius: Object.fromEntries(RADIUS.map((radius2) => [radius2, `--radius-${radius2}`])),
421
+ shadow: Object.fromEntries(SHADOW.map((shadow2) => [shadow2, {
510
422
  umbra: `--shadow-${shadow2}-umbra`,
511
423
  penumbra: `--shadow-${shadow2}-penumbra`,
512
424
  ambient: `--shadow-${shadow2}-ambient`
513
425
  }])),
514
- space: Object.fromEntries(theme.SPACE.map((space) => [space, `--space-${String(space).replace(".", "_")}`])),
426
+ space: Object.fromEntries(SPACE.map((space) => [space, `--space-${String(space).replace(".", "_")}`])),
515
427
  // color
516
428
  black: "--black",
517
429
  white: "--white",
518
- ...color.COLOR_HUES.reduce((acc, hue) => {
430
+ ...COLOR_HUES.reduce((acc, hue) => {
519
431
  const tints = {};
520
- for (const tint of color.COLOR_TINTS)
432
+ for (const tint of COLOR_TINTS)
521
433
  tints[tint] = `--${hue}-${tint}`;
522
434
  return acc[hue] = tints, acc;
523
435
  }, {})
@@ -667,7 +579,7 @@ function buildColorVariantVarNames(options) {
667
579
  4: `${prefix}-fg-4`
668
580
  }
669
581
  };
670
- for (const elementTone of theme.THEME_COLOR_STATE_TONES) {
582
+ for (const elementTone of THEME_COLOR_STATE_TONES) {
671
583
  const _prefix = scheme && tone ? `--color-${scheme}-${tone}-${variant}-${elementTone}` : tone ? `--color-${tone}-${variant}-${elementTone}` : `--color-${variant}-${elementTone}`;
672
584
  vars2[elementTone] = {
673
585
  bg: {
@@ -695,10 +607,10 @@ function buildColorVariantVarNames(options) {
695
607
  }
696
608
  return vars2;
697
609
  }
698
- function compilePalette() {
610
+ function _compilePalette() {
699
611
  return _compileStyle({
700
612
  layers: {
701
- theme: {
613
+ palette: {
702
614
  ":root": compilePaletteProperties()
703
615
  }
704
616
  }
@@ -706,23 +618,22 @@ function compilePalette() {
706
618
  }
707
619
  function compilePaletteProperties() {
708
620
  const rules2 = {
709
- [varNames.black]: color.color.black.hex,
710
- [varNames.white]: color.color.white.hex
621
+ [varNames.black]: color.black.hex,
622
+ [varNames.white]: color.white.hex
711
623
  };
712
- for (const hue of theme.HUES)
713
- for (const tint of theme.TINTS)
714
- rules2[varNames[hue][tint]] = color.color[hue][tint].hex;
624
+ for (const hue of HUES)
625
+ for (const tint of TINTS)
626
+ rules2[varNames[hue][tint]] = color[hue][tint].hex;
715
627
  return rules2;
716
628
  }
717
629
  function _mergeStyles(styles) {
718
630
  const keyframes2 = {}, layers = {}, rules2 = {};
719
- for (const s of styles)
720
- if (s) {
721
- Object.assign(keyframes2, s.keyframes);
722
- for (const layerName in s.layers)
723
- layers[layerName] || (layers[layerName] = {}), Object.assign(layers[layerName], s.layers[layerName]);
724
- Object.assign(rules2, s.rules);
725
- }
631
+ for (const s of styles) {
632
+ Object.assign(keyframes2, s.keyframes);
633
+ for (const layerName in s.layers)
634
+ layers[layerName] || (layers[layerName] = {}), Object.assign(layers[layerName], s.layers[layerName]);
635
+ Object.assign(rules2, s.rules);
636
+ }
726
637
  return {
727
638
  keyframes: keyframes2,
728
639
  layers,
@@ -758,13 +669,13 @@ function _responsiveRule(rules2, _name, properties) {
758
669
  };
759
670
  }
760
671
  const darkColorVars = {};
761
- for (const tone of theme.THEME_COLOR_CARD_TONES)
672
+ for (const tone of THEME_COLOR_CARD_TONES)
762
673
  darkColorVars[tone] = buildColorCardVars({
763
674
  scheme: "dark",
764
675
  tone
765
676
  });
766
677
  const lightColorVars = {};
767
- for (const tone of theme.THEME_COLOR_CARD_TONES)
678
+ for (const tone of THEME_COLOR_CARD_TONES)
768
679
  lightColorVars[tone] = buildColorCardVars({
769
680
  scheme: "light",
770
681
  tone
@@ -886,7 +797,7 @@ const colorVars = {
886
797
  tinted: buildColorVariantVars({
887
798
  variant: "tinted"
888
799
  }),
889
- ...theme.THEME_COLOR_CARD_TONES.reduce((acc, tone) => ({
800
+ ...THEME_COLOR_CARD_TONES.reduce((acc, tone) => ({
890
801
  ...acc,
891
802
  [tone]: buildColorCardVars({
892
803
  tone
@@ -898,7 +809,7 @@ const colorVars = {
898
809
  avatar: {
899
810
  distance: `var(${varNames.avatar.distance})`,
900
811
  size: `var(${varNames.avatar.size})`,
901
- sizes: theme.AVATAR_SIZE.reduce((acc, size) => ({
812
+ sizes: AVATAR_SIZE.reduce((acc, size) => ({
902
813
  ...acc,
903
814
  [size]: {
904
815
  size: `var(${varNames.avatar.sizes[size].size})`,
@@ -923,7 +834,7 @@ const colorVars = {
923
834
  font: {
924
835
  code: {
925
836
  family: `var(${varNames.font.code.family})`,
926
- sizes: theme.FONT_CODE_SIZE.reduce((acc, size) => ({
837
+ sizes: FONT_CODE_SIZE.reduce((acc, size) => ({
927
838
  ...acc,
928
839
  [size]: {
929
840
  fontSize: `var(${varNames.font.code.sizes[size].fontSize})`,
@@ -943,7 +854,7 @@ const colorVars = {
943
854
  },
944
855
  heading: {
945
856
  family: `var(${varNames.font.heading.family})`,
946
- sizes: theme.FONT_HEADING_SIZE.reduce((acc, size) => ({
857
+ sizes: FONT_HEADING_SIZE.reduce((acc, size) => ({
947
858
  ...acc,
948
859
  [size]: {
949
860
  fontSize: `var(${varNames.font.heading.sizes[size].fontSize})`,
@@ -963,7 +874,7 @@ const colorVars = {
963
874
  },
964
875
  label: {
965
876
  family: `var(${varNames.font.label.family})`,
966
- sizes: theme.FONT_LABEL_SIZE.reduce((acc, size) => ({
877
+ sizes: FONT_LABEL_SIZE.reduce((acc, size) => ({
967
878
  ...acc,
968
879
  [size]: {
969
880
  fontSize: `var(${varNames.font.label.sizes[size].fontSize})`,
@@ -983,7 +894,7 @@ const colorVars = {
983
894
  },
984
895
  text: {
985
896
  family: `var(${varNames.font.text.family})`,
986
- sizes: theme.FONT_TEXT_SIZE.reduce((acc, size) => ({
897
+ sizes: FONT_TEXT_SIZE.reduce((acc, size) => ({
987
898
  ...acc,
988
899
  [size]: {
989
900
  fontSize: `var(${varNames.font.text.sizes[size].fontSize})`,
@@ -1018,19 +929,19 @@ const colorVars = {
1018
929
  }
1019
930
  }
1020
931
  },
1021
- radius: Object.fromEntries(theme.RADIUS.map((radius2) => [radius2, `var(${varNames.radius[radius2]})`])),
1022
- shadow: Object.fromEntries(theme.SHADOW.map((shadow2) => [shadow2, {
932
+ radius: Object.fromEntries(RADIUS.map((radius2) => [radius2, `var(${varNames.radius[radius2]})`])),
933
+ shadow: Object.fromEntries(SHADOW.map((shadow2) => [shadow2, {
1023
934
  umbra: `var(${varNames.shadow[shadow2].umbra})`,
1024
935
  penumbra: `var(${varNames.shadow[shadow2].penumbra})`,
1025
936
  ambient: `var(${varNames.shadow[shadow2].ambient})`
1026
937
  }])),
1027
- space: Object.fromEntries(theme.SPACE.map((space) => [space, `var(${varNames.space[space]})`])),
938
+ space: Object.fromEntries(SPACE.map((space) => [space, `var(${varNames.space[space]})`])),
1028
939
  // color
1029
940
  black: `var(${varNames.black})`,
1030
941
  white: `var(${varNames.white})`,
1031
- ...color.COLOR_HUES.reduce((acc, hue) => {
942
+ ...COLOR_HUES.reduce((acc, hue) => {
1032
943
  const tints = {};
1033
- for (const tint of color.COLOR_TINTS)
944
+ for (const tint of COLOR_TINTS)
1034
945
  tints[tint] = `var(--${hue}-${tint})`;
1035
946
  return acc[hue] = tints, acc;
1036
947
  }, {})
@@ -1042,7 +953,7 @@ function buildColorCardVars(props) {
1042
953
  } = props, prefix = scheme ? varNames.color[scheme][tone] : varNames.color[tone];
1043
954
  return {
1044
955
  avatar: {
1045
- ...theme.THEME_COLOR_AVATAR_COLORS.reduce((acc, color2) => ({
956
+ ...THEME_COLOR_AVATAR_COLORS.reduce((acc, color2) => ({
1046
957
  ...acc,
1047
958
  [color2]: {
1048
959
  bg: `var(${prefix.avatar[color2].bg})`,
@@ -1151,7 +1062,7 @@ function buildColorVariantVars(options) {
1151
1062
  4: `var(${_prefix}-fg-4)`
1152
1063
  }
1153
1064
  };
1154
- for (const elementTone of theme.THEME_COLOR_STATE_TONES) {
1065
+ for (const elementTone of THEME_COLOR_STATE_TONES) {
1155
1066
  const prefix = scheme && tone ? `--color-${scheme}-${tone}-${variant}-${elementTone}` : tone ? `--color-${tone}-${variant}-${elementTone}` : `--color-${variant}-${elementTone}`;
1156
1067
  vars2[elementTone] = {
1157
1068
  bg: {
@@ -1179,70 +1090,70 @@ function buildColorVariantVars(options) {
1179
1090
  }
1180
1091
  return vars2;
1181
1092
  }
1182
- const util$t = {};
1183
- _responsiveRule(util$t, "border", {
1093
+ const util$u = {};
1094
+ _responsiveRule(util$u, "border", {
1184
1095
  border: `1px solid ${vars.color.border}`
1185
1096
  });
1186
- _responsiveRule(util$t, "border-t", {
1097
+ _responsiveRule(util$u, "border-t", {
1187
1098
  borderTop: `1px solid ${vars.color.border}`
1188
1099
  });
1189
- _responsiveRule(util$t, "border-r", {
1100
+ _responsiveRule(util$u, "border-r", {
1190
1101
  borderRight: `1px solid ${vars.color.border}`
1191
1102
  });
1192
- _responsiveRule(util$t, "border-b", {
1103
+ _responsiveRule(util$u, "border-b", {
1193
1104
  borderBottom: `1px solid ${vars.color.border}`
1194
1105
  });
1195
- _responsiveRule(util$t, "border-l", {
1106
+ _responsiveRule(util$u, "border-l", {
1196
1107
  borderLeft: `1px solid ${vars.color.border}`
1197
1108
  });
1198
1109
  const borderStyle = {
1199
1110
  layers: {
1200
- util: util$t
1111
+ util: util$u
1201
1112
  }
1202
- }, util$s = {};
1203
- _responsiveRule(util$s, "block", {
1113
+ }, util$t = {};
1114
+ _responsiveRule(util$t, "block", {
1204
1115
  "@nest": {
1205
1116
  "&:not([hidden])": {
1206
1117
  display: "block"
1207
1118
  }
1208
1119
  }
1209
1120
  });
1210
- _responsiveRule(util$s, "flex", {
1121
+ _responsiveRule(util$t, "flex", {
1211
1122
  "@nest": {
1212
1123
  "&:not([hidden])": {
1213
1124
  display: "flex"
1214
1125
  }
1215
1126
  }
1216
1127
  });
1217
- _responsiveRule(util$s, "grid", {
1128
+ _responsiveRule(util$t, "grid", {
1218
1129
  "@nest": {
1219
1130
  "&:not([hidden])": {
1220
1131
  display: "grid"
1221
1132
  }
1222
1133
  }
1223
1134
  });
1224
- _responsiveRule(util$s, "inline-block", {
1135
+ _responsiveRule(util$t, "inline-block", {
1225
1136
  "@nest": {
1226
1137
  "&:not([hidden])": {
1227
1138
  display: "inline-block"
1228
1139
  }
1229
1140
  }
1230
1141
  });
1231
- _responsiveRule(util$s, "inline-flex", {
1142
+ _responsiveRule(util$t, "inline-flex", {
1232
1143
  "@nest": {
1233
1144
  "&:not([hidden])": {
1234
1145
  display: "inline-flex"
1235
1146
  }
1236
1147
  }
1237
1148
  });
1238
- _responsiveRule(util$s, "inline-grid", {
1149
+ _responsiveRule(util$t, "inline-grid", {
1239
1150
  "@nest": {
1240
1151
  "&:not([hidden])": {
1241
1152
  display: "inline-grid"
1242
1153
  }
1243
1154
  }
1244
1155
  });
1245
- _responsiveRule(util$s, "none", {
1156
+ _responsiveRule(util$t, "none", {
1246
1157
  "@nest": {
1247
1158
  "&:not([hidden])": {
1248
1159
  display: "none"
@@ -1251,125 +1162,125 @@ _responsiveRule(util$s, "none", {
1251
1162
  });
1252
1163
  const displayStyle = {
1253
1164
  layers: {
1254
- util: util$s
1165
+ util: util$t
1255
1166
  }
1256
- }, util$r = {};
1257
- _responsiveRule(util$r, "flex-align-flex-start", {
1167
+ }, util$s = {};
1168
+ _responsiveRule(util$s, "flex-align-flex-start", {
1258
1169
  alignItems: "flex-start"
1259
1170
  });
1260
- _responsiveRule(util$r, "flex-align-flex-end", {
1171
+ _responsiveRule(util$s, "flex-align-flex-end", {
1261
1172
  alignItems: "flex-end"
1262
1173
  });
1263
- _responsiveRule(util$r, "flex-align-center", {
1174
+ _responsiveRule(util$s, "flex-align-center", {
1264
1175
  alignItems: "center"
1265
1176
  });
1266
- _responsiveRule(util$r, "flex-align-stretch", {
1177
+ _responsiveRule(util$s, "flex-align-stretch", {
1267
1178
  alignItems: "stretch"
1268
1179
  });
1269
- _responsiveRule(util$r, "flex-align-baseline", {
1180
+ _responsiveRule(util$s, "flex-align-baseline", {
1270
1181
  alignItems: "baseline"
1271
1182
  });
1272
1183
  const flexAlignStyle = {
1273
1184
  layers: {
1274
- util: util$r
1185
+ util: util$s
1275
1186
  }
1276
- }, util$q = {};
1277
- _responsiveRule(util$q, "f-row", {
1187
+ }, util$r = {};
1188
+ _responsiveRule(util$r, "f-row", {
1278
1189
  flexDirection: "row"
1279
1190
  });
1280
- _responsiveRule(util$q, "f-column", {
1191
+ _responsiveRule(util$r, "f-column", {
1281
1192
  flexDirection: "column"
1282
1193
  });
1283
1194
  const flexDirectionStyle = {
1284
1195
  layers: {
1285
- util: util$q
1196
+ util: util$r
1286
1197
  }
1287
- }, util$p = {};
1288
- _responsiveRule(util$p, "flex-justify-flex-start", {
1198
+ }, util$q = {};
1199
+ _responsiveRule(util$q, "flex-justify-flex-start", {
1289
1200
  justifyContent: "flex-start"
1290
1201
  });
1291
- _responsiveRule(util$p, "flex-justify-flex-end", {
1202
+ _responsiveRule(util$q, "flex-justify-flex-end", {
1292
1203
  justifyContent: "flex-end"
1293
1204
  });
1294
- _responsiveRule(util$p, "flex-justify-center", {
1205
+ _responsiveRule(util$q, "flex-justify-center", {
1295
1206
  justifyContent: "center"
1296
1207
  });
1297
- _responsiveRule(util$p, "flex-justify-space-between", {
1208
+ _responsiveRule(util$q, "flex-justify-space-between", {
1298
1209
  justifyContent: "space-between"
1299
1210
  });
1300
- _responsiveRule(util$p, "flex-justify-space-around", {
1211
+ _responsiveRule(util$q, "flex-justify-space-around", {
1301
1212
  justifyContent: "space-around"
1302
1213
  });
1303
- _responsiveRule(util$p, "flex-justify-space-evenly", {
1214
+ _responsiveRule(util$q, "flex-justify-space-evenly", {
1304
1215
  justifyContent: "space-evenly"
1305
1216
  });
1306
1217
  const flexJustifyStyle = {
1307
1218
  layers: {
1308
- util: util$p
1219
+ util: util$q
1309
1220
  }
1310
- }, util$o = {};
1311
- _responsiveRule(util$o, "flex-nowrap", {
1221
+ }, util$p = {};
1222
+ _responsiveRule(util$p, "flex-nowrap", {
1312
1223
  flexWrap: "nowrap"
1313
1224
  });
1314
- _responsiveRule(util$o, "flex-wrap", {
1225
+ _responsiveRule(util$p, "flex-wrap", {
1315
1226
  flexWrap: "wrap"
1316
1227
  });
1317
- _responsiveRule(util$o, "flex-wrap-reverse", {
1228
+ _responsiveRule(util$p, "flex-wrap-reverse", {
1318
1229
  flexWrap: "wrap-reverse"
1319
1230
  });
1320
1231
  const flexWrapStyle = {
1321
1232
  layers: {
1322
- util: util$o
1233
+ util: util$p
1323
1234
  }
1324
- }, util$n = {};
1325
- _responsiveRule(util$n, "f-none", {
1235
+ }, util$o = {};
1236
+ _responsiveRule(util$o, "f-none", {
1326
1237
  flex: "none"
1327
1238
  });
1328
- _responsiveRule(util$n, "f-auto", {
1239
+ _responsiveRule(util$o, "f-auto", {
1329
1240
  flex: "auto"
1330
1241
  });
1331
- _responsiveRule(util$n, "f-initial", {
1242
+ _responsiveRule(util$o, "f-initial", {
1332
1243
  flex: "initial"
1333
1244
  });
1334
- _responsiveRule(util$n, "f-1", {
1245
+ _responsiveRule(util$o, "f-1", {
1335
1246
  flex: 1
1336
1247
  });
1337
- _responsiveRule(util$n, "f-2", {
1248
+ _responsiveRule(util$o, "f-2", {
1338
1249
  flex: 2
1339
1250
  });
1340
- _responsiveRule(util$n, "f-3", {
1251
+ _responsiveRule(util$o, "f-3", {
1341
1252
  flex: 3
1342
1253
  });
1343
- _responsiveRule(util$n, "f-4", {
1254
+ _responsiveRule(util$o, "f-4", {
1344
1255
  flex: 4
1345
1256
  });
1346
- _responsiveRule(util$n, "f-5", {
1257
+ _responsiveRule(util$o, "f-5", {
1347
1258
  flex: 5
1348
1259
  });
1349
- _responsiveRule(util$n, "f-6", {
1260
+ _responsiveRule(util$o, "f-6", {
1350
1261
  flex: 6
1351
1262
  });
1352
- _responsiveRule(util$n, "f-7", {
1263
+ _responsiveRule(util$o, "f-7", {
1353
1264
  flex: 7
1354
1265
  });
1355
- _responsiveRule(util$n, "f-8", {
1266
+ _responsiveRule(util$o, "f-8", {
1356
1267
  flex: 8
1357
1268
  });
1358
- _responsiveRule(util$n, "f-9", {
1269
+ _responsiveRule(util$o, "f-9", {
1359
1270
  flex: 9
1360
1271
  });
1361
- _responsiveRule(util$n, "f-10", {
1272
+ _responsiveRule(util$o, "f-10", {
1362
1273
  flex: 10
1363
1274
  });
1364
- _responsiveRule(util$n, "f-11", {
1275
+ _responsiveRule(util$o, "f-11", {
1365
1276
  flex: 11
1366
1277
  });
1367
- _responsiveRule(util$n, "f-12", {
1278
+ _responsiveRule(util$o, "f-12", {
1368
1279
  flex: 12
1369
1280
  });
1370
1281
  const flexStyle = {
1371
1282
  layers: {
1372
- util: util$n
1283
+ util: util$o
1373
1284
  }
1374
1285
  }, primitive$q = {
1375
1286
  ".font": {
@@ -1426,554 +1337,538 @@ const flexStyle = {
1426
1337
  ".font-bold": {
1427
1338
  "--font-weight": "var(--font-weight-bold)"
1428
1339
  }
1429
- };
1430
- _responsiveRule(primitive$q, "text-align-initial", {
1431
- textAlign: "initial"
1432
- });
1433
- _responsiveRule(primitive$q, "text-align-left", {
1434
- textAlign: "left"
1435
- });
1436
- _responsiveRule(primitive$q, "text-align-center", {
1437
- textAlign: "center"
1438
- });
1439
- _responsiveRule(primitive$q, "text-align-right", {
1440
- textAlign: "right"
1441
- });
1442
- _responsiveRule(primitive$q, "text-align-justify", {
1443
- textAlign: "justify"
1444
- });
1445
- const fontStyle = {
1340
+ }, fontStyle = {
1446
1341
  layers: {
1447
1342
  primitive: primitive$q
1448
1343
  }
1449
- }, util$m = {};
1450
- for (const space of theme.SPACE)
1451
- _responsiveRule(util$m, `g-${space}`, {
1344
+ }, util$n = {};
1345
+ for (const space of SPACE)
1346
+ _responsiveRule(util$n, `g-${space}`, {
1452
1347
  gap: vars.space[space]
1453
1348
  });
1454
- for (const space of theme.SPACE)
1455
- _responsiveRule(util$m, `gx-${space}`, {
1349
+ for (const space of SPACE)
1350
+ _responsiveRule(util$n, `gx-${space}`, {
1456
1351
  columnGap: vars.space[space]
1457
1352
  });
1458
- for (const space of theme.SPACE)
1459
- _responsiveRule(util$m, `gy-${space}`, {
1353
+ for (const space of SPACE)
1354
+ _responsiveRule(util$n, `gy-${space}`, {
1460
1355
  rowGap: vars.space[space]
1461
1356
  });
1462
1357
  const gapStyle = {
1463
1358
  layers: {
1464
- util: util$m
1359
+ util: util$n
1465
1360
  }
1466
- }, util$l = {};
1467
- _responsiveRule(util$l, "auto-cols-auto", {
1361
+ }, util$m = {};
1362
+ _responsiveRule(util$m, "auto-cols-auto", {
1468
1363
  gridAutoColumns: "auto"
1469
1364
  });
1470
- _responsiveRule(util$l, "auto-cols-min", {
1365
+ _responsiveRule(util$m, "auto-cols-min", {
1471
1366
  gridAutoColumns: "min-content"
1472
1367
  });
1473
- _responsiveRule(util$l, "auto-cols-max", {
1368
+ _responsiveRule(util$m, "auto-cols-max", {
1474
1369
  gridAutoColumns: "max-content"
1475
1370
  });
1476
- _responsiveRule(util$l, "auto-cols-fr", {
1371
+ _responsiveRule(util$m, "auto-cols-fr", {
1477
1372
  gridAutoColumns: "minmax(0, 1fr)"
1478
1373
  });
1479
1374
  const gridAutoColumnsStyle = {
1480
1375
  layers: {
1481
- util: util$l
1376
+ util: util$m
1482
1377
  }
1483
- }, util$k = {};
1484
- _responsiveRule(util$k, "auto-flow-row", {
1378
+ }, util$l = {};
1379
+ _responsiveRule(util$l, "auto-flow-row", {
1485
1380
  gridAutoFlow: "row"
1486
1381
  });
1487
- _responsiveRule(util$k, "auto-flow-column", {
1382
+ _responsiveRule(util$l, "auto-flow-column", {
1488
1383
  gridAutoFlow: "column"
1489
1384
  });
1490
- _responsiveRule(util$k, "auto-flow-row-dense", {
1385
+ _responsiveRule(util$l, "auto-flow-row-dense", {
1491
1386
  gridAutoFlow: "row dense"
1492
1387
  });
1493
- _responsiveRule(util$k, "auto-flow-column-dense", {
1388
+ _responsiveRule(util$l, "auto-flow-column-dense", {
1494
1389
  gridAutoFlow: "column dense"
1495
1390
  });
1496
1391
  const gridAutoFlowStyle = {
1497
1392
  layers: {
1498
- util: util$k
1393
+ util: util$l
1499
1394
  }
1500
- }, util$j = {};
1501
- _responsiveRule(util$j, "auto-rows-auto", {
1395
+ }, util$k = {};
1396
+ _responsiveRule(util$k, "auto-rows-auto", {
1502
1397
  gridAutoRows: "auto"
1503
1398
  });
1504
- _responsiveRule(util$j, "auto-rows-min", {
1399
+ _responsiveRule(util$k, "auto-rows-min", {
1505
1400
  gridAutoRows: "min-content"
1506
1401
  });
1507
- _responsiveRule(util$j, "auto-rows-max", {
1402
+ _responsiveRule(util$k, "auto-rows-max", {
1508
1403
  gridAutoRows: "max-content"
1509
1404
  });
1510
- _responsiveRule(util$j, "auto-rows-fr", {
1405
+ _responsiveRule(util$k, "auto-rows-fr", {
1511
1406
  gridAutoRows: "minmax(0, 1fr)"
1512
1407
  });
1513
1408
  const gridAutoRowsStyle = {
1514
1409
  layers: {
1515
- util: util$j
1410
+ util: util$k
1516
1411
  }
1517
- }, util$i = {};
1518
- _responsiveRule(util$i, "cols-1", {
1412
+ }, util$j = {};
1413
+ _responsiveRule(util$j, "cols-1", {
1519
1414
  gridTemplateColumns: "repeat(1, 1fr)"
1520
1415
  });
1521
- _responsiveRule(util$i, "cols-2", {
1416
+ _responsiveRule(util$j, "cols-2", {
1522
1417
  gridTemplateColumns: "repeat(2, 1fr)"
1523
1418
  });
1524
- _responsiveRule(util$i, "cols-3", {
1419
+ _responsiveRule(util$j, "cols-3", {
1525
1420
  gridTemplateColumns: "repeat(3, 1fr)"
1526
1421
  });
1527
- _responsiveRule(util$i, "cols-4", {
1422
+ _responsiveRule(util$j, "cols-4", {
1528
1423
  gridTemplateColumns: "repeat(4, 1fr)"
1529
1424
  });
1530
- _responsiveRule(util$i, "cols-5", {
1425
+ _responsiveRule(util$j, "cols-5", {
1531
1426
  gridTemplateColumns: "repeat(5, 1fr)"
1532
1427
  });
1533
- _responsiveRule(util$i, "cols-6", {
1428
+ _responsiveRule(util$j, "cols-6", {
1534
1429
  gridTemplateColumns: "repeat(6, 1fr)"
1535
1430
  });
1536
- _responsiveRule(util$i, "cols-7", {
1431
+ _responsiveRule(util$j, "cols-7", {
1537
1432
  gridTemplateColumns: "repeat(7, 1fr)"
1538
1433
  });
1539
- _responsiveRule(util$i, "cols-8", {
1434
+ _responsiveRule(util$j, "cols-8", {
1540
1435
  gridTemplateColumns: "repeat(8, 1fr)"
1541
1436
  });
1542
- _responsiveRule(util$i, "cols-9", {
1437
+ _responsiveRule(util$j, "cols-9", {
1543
1438
  gridTemplateColumns: "repeat(9, 1fr)"
1544
1439
  });
1545
- _responsiveRule(util$i, "cols-10", {
1440
+ _responsiveRule(util$j, "cols-10", {
1546
1441
  gridTemplateColumns: "repeat(10, 1fr)"
1547
1442
  });
1548
- _responsiveRule(util$i, "cols-12", {
1443
+ _responsiveRule(util$j, "cols-12", {
1549
1444
  gridTemplateColumns: "repeat(12, 1fr)"
1550
1445
  });
1551
1446
  const gridColumnsStyle = {
1552
1447
  layers: {
1553
- util: util$i
1448
+ util: util$j
1554
1449
  }
1555
- }, util$h = {};
1556
- _responsiveRule(util$h, "rows-1", {
1450
+ }, util$i = {};
1451
+ _responsiveRule(util$i, "rows-1", {
1557
1452
  gridTemplateRows: "repeat(1, 1fr)"
1558
1453
  });
1559
- _responsiveRule(util$h, "rows-2", {
1454
+ _responsiveRule(util$i, "rows-2", {
1560
1455
  gridTemplateRows: "repeat(2, 1fr)"
1561
1456
  });
1562
- _responsiveRule(util$h, "rows-3", {
1457
+ _responsiveRule(util$i, "rows-3", {
1563
1458
  gridTemplateRows: "repeat(3, 1fr)"
1564
1459
  });
1565
- _responsiveRule(util$h, "rows-4", {
1460
+ _responsiveRule(util$i, "rows-4", {
1566
1461
  gridTemplateRows: "repeat(4, 1fr)"
1567
1462
  });
1568
- _responsiveRule(util$h, "rows-5", {
1463
+ _responsiveRule(util$i, "rows-5", {
1569
1464
  gridTemplateRows: "repeat(5, 1fr)"
1570
1465
  });
1571
- _responsiveRule(util$h, "rows-6", {
1466
+ _responsiveRule(util$i, "rows-6", {
1572
1467
  gridTemplateRows: "repeat(6, 1fr)"
1573
1468
  });
1574
- _responsiveRule(util$h, "rows-7", {
1469
+ _responsiveRule(util$i, "rows-7", {
1575
1470
  gridTemplateRows: "repeat(7, 1fr)"
1576
1471
  });
1577
- _responsiveRule(util$h, "rows-8", {
1472
+ _responsiveRule(util$i, "rows-8", {
1578
1473
  gridTemplateRows: "repeat(8, 1fr)"
1579
1474
  });
1580
- _responsiveRule(util$h, "rows-9", {
1475
+ _responsiveRule(util$i, "rows-9", {
1581
1476
  gridTemplateRows: "repeat(9, 1fr)"
1582
1477
  });
1583
- _responsiveRule(util$h, "rows-10", {
1478
+ _responsiveRule(util$i, "rows-10", {
1584
1479
  gridTemplateRows: "repeat(10, 1fr)"
1585
1480
  });
1586
- _responsiveRule(util$h, "rows-12", {
1481
+ _responsiveRule(util$i, "rows-12", {
1587
1482
  gridTemplateRows: "repeat(12, 1fr)"
1588
1483
  });
1589
1484
  const gridRowsStyle = {
1590
1485
  layers: {
1591
- util: util$h
1486
+ util: util$i
1592
1487
  }
1593
- }, util$g = {};
1594
- _responsiveRule(util$g, "col-auto", {
1488
+ }, util$h = {};
1489
+ _responsiveRule(util$h, "col-auto", {
1595
1490
  gridColumn: "auto"
1596
1491
  });
1597
- _responsiveRule(util$g, "col-full", {
1492
+ _responsiveRule(util$h, "col-full", {
1598
1493
  gridColumn: "1 / -1"
1599
1494
  });
1600
- _responsiveRule(util$g, "col-1", {
1495
+ _responsiveRule(util$h, "col-1", {
1601
1496
  gridColumn: "span 1 / span 1"
1602
1497
  });
1603
- _responsiveRule(util$g, "col-2", {
1498
+ _responsiveRule(util$h, "col-2", {
1604
1499
  gridColumn: "span 2 / span 2"
1605
1500
  });
1606
- _responsiveRule(util$g, "col-3", {
1501
+ _responsiveRule(util$h, "col-3", {
1607
1502
  gridColumn: "span 3 / span 3"
1608
1503
  });
1609
- _responsiveRule(util$g, "col-4", {
1504
+ _responsiveRule(util$h, "col-4", {
1610
1505
  gridColumn: "span 4 / span 4"
1611
1506
  });
1612
- _responsiveRule(util$g, "col-5", {
1507
+ _responsiveRule(util$h, "col-5", {
1613
1508
  gridColumn: "span 5 / span 5"
1614
1509
  });
1615
- _responsiveRule(util$g, "col-6", {
1510
+ _responsiveRule(util$h, "col-6", {
1616
1511
  gridColumn: "span 6 / span 6"
1617
1512
  });
1618
- _responsiveRule(util$g, "col-7", {
1513
+ _responsiveRule(util$h, "col-7", {
1619
1514
  gridColumn: "span 7 / span 7"
1620
1515
  });
1621
- _responsiveRule(util$g, "col-8", {
1516
+ _responsiveRule(util$h, "col-8", {
1622
1517
  gridColumn: "span 8 / span 8"
1623
1518
  });
1624
- _responsiveRule(util$g, "col-9", {
1519
+ _responsiveRule(util$h, "col-9", {
1625
1520
  gridColumn: "span 9 / span 9"
1626
1521
  });
1627
- _responsiveRule(util$g, "col-10", {
1522
+ _responsiveRule(util$h, "col-10", {
1628
1523
  gridColumn: "span 10 / span 10"
1629
1524
  });
1630
- _responsiveRule(util$g, "col-12", {
1525
+ _responsiveRule(util$h, "col-12", {
1631
1526
  gridColumn: "span 12 / span 12"
1632
1527
  });
1633
1528
  const gridColumnStyle = {
1634
1529
  layers: {
1635
- util: util$g
1530
+ util: util$h
1636
1531
  }
1637
- }, util$f = {};
1638
- _responsiveRule(util$f, "col-end-auto", {
1532
+ }, util$g = {};
1533
+ _responsiveRule(util$g, "col-end-auto", {
1639
1534
  gridColumnEnd: "auto"
1640
1535
  });
1641
- _responsiveRule(util$f, "col-end-1", {
1536
+ _responsiveRule(util$g, "col-end-1", {
1642
1537
  gridColumnEnd: "1"
1643
1538
  });
1644
- _responsiveRule(util$f, "col-end-2", {
1539
+ _responsiveRule(util$g, "col-end-2", {
1645
1540
  gridColumnEnd: "2"
1646
1541
  });
1647
- _responsiveRule(util$f, "col-end-3", {
1542
+ _responsiveRule(util$g, "col-end-3", {
1648
1543
  gridColumnEnd: "3"
1649
1544
  });
1650
- _responsiveRule(util$f, "col-end-4", {
1545
+ _responsiveRule(util$g, "col-end-4", {
1651
1546
  gridColumnEnd: "4"
1652
1547
  });
1653
- _responsiveRule(util$f, "col-end-5", {
1548
+ _responsiveRule(util$g, "col-end-5", {
1654
1549
  gridColumnEnd: "5"
1655
1550
  });
1656
- _responsiveRule(util$f, "col-end-6", {
1551
+ _responsiveRule(util$g, "col-end-6", {
1657
1552
  gridColumnEnd: "6"
1658
1553
  });
1659
- _responsiveRule(util$f, "col-end-7", {
1554
+ _responsiveRule(util$g, "col-end-7", {
1660
1555
  gridColumnEnd: "7"
1661
1556
  });
1662
- _responsiveRule(util$f, "col-end-8", {
1557
+ _responsiveRule(util$g, "col-end-8", {
1663
1558
  gridColumnEnd: "8"
1664
1559
  });
1665
- _responsiveRule(util$f, "col-end-9", {
1560
+ _responsiveRule(util$g, "col-end-9", {
1666
1561
  gridColumnEnd: "9"
1667
1562
  });
1668
- _responsiveRule(util$f, "col-end-10", {
1563
+ _responsiveRule(util$g, "col-end-10", {
1669
1564
  gridColumnEnd: "10"
1670
1565
  });
1671
- _responsiveRule(util$f, "col-end-11", {
1566
+ _responsiveRule(util$g, "col-end-11", {
1672
1567
  gridColumnEnd: "11"
1673
1568
  });
1674
- _responsiveRule(util$f, "col-end-12", {
1569
+ _responsiveRule(util$g, "col-end-12", {
1675
1570
  gridColumnEnd: "12"
1676
1571
  });
1677
1572
  const gridColumnEndStyle = {
1678
1573
  layers: {
1679
- util: util$f
1574
+ util: util$g
1680
1575
  }
1681
- }, util$e = {};
1682
- _responsiveRule(util$e, "col-start-auto", {
1576
+ }, util$f = {};
1577
+ _responsiveRule(util$f, "col-start-auto", {
1683
1578
  gridColumnStart: "auto"
1684
1579
  });
1685
- _responsiveRule(util$e, "col-start-1", {
1580
+ _responsiveRule(util$f, "col-start-1", {
1686
1581
  gridColumnStart: "1"
1687
1582
  });
1688
- _responsiveRule(util$e, "col-start-2", {
1583
+ _responsiveRule(util$f, "col-start-2", {
1689
1584
  gridColumnStart: "2"
1690
1585
  });
1691
- _responsiveRule(util$e, "col-start-3", {
1586
+ _responsiveRule(util$f, "col-start-3", {
1692
1587
  gridColumnStart: "3"
1693
1588
  });
1694
- _responsiveRule(util$e, "col-start-4", {
1589
+ _responsiveRule(util$f, "col-start-4", {
1695
1590
  gridColumnStart: "4"
1696
1591
  });
1697
- _responsiveRule(util$e, "col-start-5", {
1592
+ _responsiveRule(util$f, "col-start-5", {
1698
1593
  gridColumnStart: "5"
1699
1594
  });
1700
- _responsiveRule(util$e, "col-start-6", {
1595
+ _responsiveRule(util$f, "col-start-6", {
1701
1596
  gridColumnStart: "6"
1702
1597
  });
1703
- _responsiveRule(util$e, "col-start-7", {
1598
+ _responsiveRule(util$f, "col-start-7", {
1704
1599
  gridColumnStart: "7"
1705
1600
  });
1706
- _responsiveRule(util$e, "col-start-8", {
1601
+ _responsiveRule(util$f, "col-start-8", {
1707
1602
  gridColumnStart: "8"
1708
1603
  });
1709
- _responsiveRule(util$e, "col-start-9", {
1604
+ _responsiveRule(util$f, "col-start-9", {
1710
1605
  gridColumnStart: "9"
1711
1606
  });
1712
- _responsiveRule(util$e, "col-start-10", {
1607
+ _responsiveRule(util$f, "col-start-10", {
1713
1608
  gridColumnStart: "10"
1714
1609
  });
1715
- _responsiveRule(util$e, "col-start-11", {
1610
+ _responsiveRule(util$f, "col-start-11", {
1716
1611
  gridColumnStart: "11"
1717
1612
  });
1718
- _responsiveRule(util$e, "col-start-12", {
1613
+ _responsiveRule(util$f, "col-start-12", {
1719
1614
  gridColumnStart: "12"
1720
1615
  });
1721
1616
  const gridColumnStartStyle = {
1722
1617
  layers: {
1723
- util: util$e
1618
+ util: util$f
1724
1619
  }
1725
- }, util$d = {};
1726
- _responsiveRule(util$d, "row-auto", {
1620
+ }, util$e = {};
1621
+ _responsiveRule(util$e, "row-auto", {
1727
1622
  gridRow: "auto"
1728
1623
  });
1729
- _responsiveRule(util$d, "row-full", {
1624
+ _responsiveRule(util$e, "row-full", {
1730
1625
  gridRow: "1 / -1"
1731
1626
  });
1732
- _responsiveRule(util$d, "row-1", {
1627
+ _responsiveRule(util$e, "row-1", {
1733
1628
  gridRow: "span 1 / span 1"
1734
1629
  });
1735
- _responsiveRule(util$d, "row-2", {
1630
+ _responsiveRule(util$e, "row-2", {
1736
1631
  gridRow: "span 2 / span 2"
1737
1632
  });
1738
- _responsiveRule(util$d, "row-3", {
1633
+ _responsiveRule(util$e, "row-3", {
1739
1634
  gridRow: "span 3 / span 3"
1740
1635
  });
1741
- _responsiveRule(util$d, "row-4", {
1636
+ _responsiveRule(util$e, "row-4", {
1742
1637
  gridRow: "span 4 / span 4"
1743
1638
  });
1744
- _responsiveRule(util$d, "row-5", {
1639
+ _responsiveRule(util$e, "row-5", {
1745
1640
  gridRow: "span 5 / span 5"
1746
1641
  });
1747
- _responsiveRule(util$d, "row-6", {
1642
+ _responsiveRule(util$e, "row-6", {
1748
1643
  gridRow: "span 6 / span 6"
1749
1644
  });
1750
- _responsiveRule(util$d, "row-7", {
1645
+ _responsiveRule(util$e, "row-7", {
1751
1646
  gridRow: "span 7 / span 7"
1752
1647
  });
1753
- _responsiveRule(util$d, "row-8", {
1648
+ _responsiveRule(util$e, "row-8", {
1754
1649
  gridRow: "span 8 / span 8"
1755
1650
  });
1756
- _responsiveRule(util$d, "row-9", {
1651
+ _responsiveRule(util$e, "row-9", {
1757
1652
  gridRow: "span 9 / span 9"
1758
1653
  });
1759
- _responsiveRule(util$d, "row-10", {
1654
+ _responsiveRule(util$e, "row-10", {
1760
1655
  gridRow: "span 10 / span 10"
1761
1656
  });
1762
- _responsiveRule(util$d, "row-12", {
1657
+ _responsiveRule(util$e, "row-12", {
1763
1658
  gridRow: "span 12 / span 12"
1764
1659
  });
1765
1660
  const gridRowStyle = {
1766
1661
  layers: {
1767
- util: util$d
1662
+ util: util$e
1768
1663
  }
1769
- }, util$c = {};
1770
- _responsiveRule(util$c, "row-end-auto", {
1664
+ }, util$d = {};
1665
+ _responsiveRule(util$d, "row-end-auto", {
1771
1666
  gridRowEnd: "auto"
1772
1667
  });
1773
- _responsiveRule(util$c, "row-end-1", {
1668
+ _responsiveRule(util$d, "row-end-1", {
1774
1669
  gridRowEnd: "1"
1775
1670
  });
1776
- _responsiveRule(util$c, "row-end-2", {
1671
+ _responsiveRule(util$d, "row-end-2", {
1777
1672
  gridRowEnd: "2"
1778
1673
  });
1779
- _responsiveRule(util$c, "row-end-3", {
1674
+ _responsiveRule(util$d, "row-end-3", {
1780
1675
  gridRowEnd: "3"
1781
1676
  });
1782
- _responsiveRule(util$c, "row-end-4", {
1677
+ _responsiveRule(util$d, "row-end-4", {
1783
1678
  gridRowEnd: "4"
1784
1679
  });
1785
- _responsiveRule(util$c, "row-end-5", {
1680
+ _responsiveRule(util$d, "row-end-5", {
1786
1681
  gridRowEnd: "5"
1787
1682
  });
1788
- _responsiveRule(util$c, "row-end-6", {
1683
+ _responsiveRule(util$d, "row-end-6", {
1789
1684
  gridRowEnd: "6"
1790
1685
  });
1791
- _responsiveRule(util$c, "row-end-7", {
1686
+ _responsiveRule(util$d, "row-end-7", {
1792
1687
  gridRowEnd: "7"
1793
1688
  });
1794
- _responsiveRule(util$c, "row-end-8", {
1689
+ _responsiveRule(util$d, "row-end-8", {
1795
1690
  gridRowEnd: "8"
1796
1691
  });
1797
- _responsiveRule(util$c, "row-end-9", {
1692
+ _responsiveRule(util$d, "row-end-9", {
1798
1693
  gridRowEnd: "9"
1799
1694
  });
1800
- _responsiveRule(util$c, "row-end-10", {
1695
+ _responsiveRule(util$d, "row-end-10", {
1801
1696
  gridRowEnd: "10"
1802
1697
  });
1803
- _responsiveRule(util$c, "row-end-11", {
1698
+ _responsiveRule(util$d, "row-end-11", {
1804
1699
  gridRowEnd: "11"
1805
1700
  });
1806
- _responsiveRule(util$c, "row-end-12", {
1701
+ _responsiveRule(util$d, "row-end-12", {
1807
1702
  gridRowEnd: "12"
1808
1703
  });
1809
1704
  const gridRowEndStyle = {
1810
1705
  layers: {
1811
- util: util$c
1706
+ util: util$d
1812
1707
  }
1813
- }, util$b = {};
1814
- _responsiveRule(util$b, "row-start-auto", {
1708
+ }, util$c = {};
1709
+ _responsiveRule(util$c, "row-start-auto", {
1815
1710
  gridRowStart: "auto"
1816
1711
  });
1817
- _responsiveRule(util$b, "row-start-1", {
1712
+ _responsiveRule(util$c, "row-start-1", {
1818
1713
  gridRowStart: "1"
1819
1714
  });
1820
- _responsiveRule(util$b, "row-start-2", {
1715
+ _responsiveRule(util$c, "row-start-2", {
1821
1716
  gridRowStart: "2"
1822
1717
  });
1823
- _responsiveRule(util$b, "row-start-3", {
1718
+ _responsiveRule(util$c, "row-start-3", {
1824
1719
  gridRowStart: "3"
1825
1720
  });
1826
- _responsiveRule(util$b, "row-start-4", {
1721
+ _responsiveRule(util$c, "row-start-4", {
1827
1722
  gridRowStart: "4"
1828
1723
  });
1829
- _responsiveRule(util$b, "row-start-5", {
1724
+ _responsiveRule(util$c, "row-start-5", {
1830
1725
  gridRowStart: "5"
1831
1726
  });
1832
- _responsiveRule(util$b, "row-start-6", {
1727
+ _responsiveRule(util$c, "row-start-6", {
1833
1728
  gridRowStart: "6"
1834
1729
  });
1835
- _responsiveRule(util$b, "row-start-7", {
1730
+ _responsiveRule(util$c, "row-start-7", {
1836
1731
  gridRowStart: "7"
1837
1732
  });
1838
- _responsiveRule(util$b, "row-start-8", {
1733
+ _responsiveRule(util$c, "row-start-8", {
1839
1734
  gridRowStart: "8"
1840
1735
  });
1841
- _responsiveRule(util$b, "row-start-9", {
1736
+ _responsiveRule(util$c, "row-start-9", {
1842
1737
  gridRowStart: "9"
1843
1738
  });
1844
- _responsiveRule(util$b, "row-start-10", {
1739
+ _responsiveRule(util$c, "row-start-10", {
1845
1740
  gridRowStart: "10"
1846
1741
  });
1847
- _responsiveRule(util$b, "row-start-11", {
1742
+ _responsiveRule(util$c, "row-start-11", {
1848
1743
  gridRowStart: "11"
1849
1744
  });
1850
- _responsiveRule(util$b, "row-start-12", {
1745
+ _responsiveRule(util$c, "row-start-12", {
1851
1746
  gridRowStart: "12"
1852
1747
  });
1853
1748
  const gridRowStartStyle = {
1854
1749
  layers: {
1855
- util: util$b
1750
+ util: util$c
1856
1751
  }
1857
- }, util$a = {};
1858
- _responsiveRule(util$a, "h-fill", {
1752
+ }, util$b = {};
1753
+ _responsiveRule(util$b, "h-fill", {
1859
1754
  height: "100%"
1860
1755
  });
1861
- _responsiveRule(util$a, "h-stretch", {
1756
+ _responsiveRule(util$b, "h-stretch", {
1862
1757
  height: "stretch"
1863
1758
  });
1864
1759
  const heightStyle = {
1865
1760
  layers: {
1866
- util: util$a
1761
+ util: util$b
1867
1762
  }
1868
- }, util$9 = {};
1869
- _responsiveRule(util$9, "inset-0", {
1763
+ }, util$a = {};
1764
+ _responsiveRule(util$a, "inset-0", {
1870
1765
  top: 0,
1871
1766
  left: 0,
1872
1767
  right: 0,
1873
1768
  bottom: 0
1874
1769
  });
1875
- _responsiveRule(util$9, "top-0", {
1770
+ _responsiveRule(util$a, "top-0", {
1876
1771
  top: 0
1877
1772
  });
1878
- _responsiveRule(util$9, "right-0", {
1773
+ _responsiveRule(util$a, "right-0", {
1879
1774
  right: 0
1880
1775
  });
1881
- _responsiveRule(util$9, "bottom-0", {
1776
+ _responsiveRule(util$a, "bottom-0", {
1882
1777
  bottom: 0
1883
1778
  });
1884
- _responsiveRule(util$9, "left-0", {
1779
+ _responsiveRule(util$a, "left-0", {
1885
1780
  left: 0
1886
1781
  });
1887
1782
  const insetStyle = {
1888
1783
  layers: {
1889
- util: util$9
1784
+ util: util$a
1890
1785
  }
1891
- }, util$8 = {};
1892
- for (const space of theme.SPACE)
1893
- _responsiveRule(util$8, `m-${space}`, {
1786
+ }, util$9 = {};
1787
+ for (const space of SPACE)
1788
+ _responsiveRule(util$9, `m-${space}`, {
1894
1789
  margin: vars.space[space]
1895
1790
  });
1896
- for (const space of theme.SPACE)
1897
- _responsiveRule(util$8, `mx-${space}`, {
1791
+ for (const space of SPACE)
1792
+ _responsiveRule(util$9, `mx-${space}`, {
1898
1793
  marginLeft: vars.space[space],
1899
1794
  marginRight: vars.space[space]
1900
1795
  });
1901
- for (const space of theme.SPACE)
1902
- _responsiveRule(util$8, `my-${space}`, {
1796
+ for (const space of SPACE)
1797
+ _responsiveRule(util$9, `my-${space}`, {
1903
1798
  marginTop: vars.space[space],
1904
1799
  marginBottom: vars.space[space]
1905
1800
  });
1906
- for (const space of theme.SPACE)
1907
- _responsiveRule(util$8, `mt-${space}`, {
1801
+ for (const space of SPACE)
1802
+ _responsiveRule(util$9, `mt-${space}`, {
1908
1803
  marginTop: vars.space[space]
1909
1804
  });
1910
- for (const space of theme.SPACE)
1911
- _responsiveRule(util$8, `mr-${space}`, {
1805
+ for (const space of SPACE)
1806
+ _responsiveRule(util$9, `mr-${space}`, {
1912
1807
  marginRight: vars.space[space]
1913
1808
  });
1914
- for (const space of theme.SPACE)
1915
- _responsiveRule(util$8, `mb-${space}`, {
1809
+ for (const space of SPACE)
1810
+ _responsiveRule(util$9, `mb-${space}`, {
1916
1811
  marginBottom: vars.space[space]
1917
1812
  });
1918
- for (const space of theme.SPACE)
1919
- _responsiveRule(util$8, `ml-${space}`, {
1813
+ for (const space of SPACE)
1814
+ _responsiveRule(util$9, `ml-${space}`, {
1920
1815
  marginLeft: vars.space[space]
1921
1816
  });
1922
1817
  const marginStyle = {
1923
1818
  layers: {
1924
- util: util$8
1819
+ util: util$9
1925
1820
  }
1926
- }, util$7 = {};
1927
- _responsiveRule(util$7, "max-w-0", {
1821
+ }, util$8 = {};
1822
+ _responsiveRule(util$8, "max-w-0", {
1928
1823
  maxWidth: vars.container[0]
1929
1824
  });
1930
- _responsiveRule(util$7, "max-w-1", {
1825
+ _responsiveRule(util$8, "max-w-1", {
1931
1826
  maxWidth: vars.container[1]
1932
1827
  });
1933
- _responsiveRule(util$7, "max-w-2", {
1828
+ _responsiveRule(util$8, "max-w-2", {
1934
1829
  maxWidth: vars.container[2]
1935
1830
  });
1936
- _responsiveRule(util$7, "max-w-3", {
1831
+ _responsiveRule(util$8, "max-w-3", {
1937
1832
  maxWidth: vars.container[3]
1938
1833
  });
1939
- _responsiveRule(util$7, "max-w-4", {
1834
+ _responsiveRule(util$8, "max-w-4", {
1940
1835
  maxWidth: vars.container[4]
1941
1836
  });
1942
- _responsiveRule(util$7, "max-w-5", {
1837
+ _responsiveRule(util$8, "max-w-5", {
1943
1838
  maxWidth: vars.container[5]
1944
1839
  });
1945
- _responsiveRule(util$7, "max-w-auto", {
1840
+ _responsiveRule(util$8, "max-w-auto", {
1946
1841
  maxWidth: "none"
1947
1842
  });
1948
- _responsiveRule(util$7, "max-w-fill", {
1843
+ _responsiveRule(util$8, "max-w-fill", {
1949
1844
  maxWidth: "100%"
1950
1845
  });
1951
1846
  const maxWidthStyle = {
1952
1847
  layers: {
1953
- util: util$7
1848
+ util: util$8
1954
1849
  }
1955
- }, util$6 = {};
1956
- _responsiveRule(util$6, "min-w-0", {
1850
+ }, util$7 = {};
1851
+ _responsiveRule(util$7, "min-w-0", {
1957
1852
  minWidth: "0"
1958
1853
  });
1959
- _responsiveRule(util$6, "min-w-auto", {
1854
+ _responsiveRule(util$7, "min-w-auto", {
1960
1855
  minWidth: "auto"
1961
1856
  });
1962
- _responsiveRule(util$6, "min-w-full", {
1857
+ _responsiveRule(util$7, "min-w-full", {
1963
1858
  minWidth: "100%"
1964
1859
  });
1965
- _responsiveRule(util$6, "min-w-min", {
1860
+ _responsiveRule(util$7, "min-w-min", {
1966
1861
  minWidth: "min-content"
1967
1862
  });
1968
- _responsiveRule(util$6, "min-w-max", {
1863
+ _responsiveRule(util$7, "min-w-max", {
1969
1864
  minWidth: "max-content"
1970
1865
  });
1971
- _responsiveRule(util$6, "min-w-fit", {
1866
+ _responsiveRule(util$7, "min-w-fit", {
1972
1867
  minWidth: "fit-content"
1973
1868
  });
1974
1869
  const minWidthStyle = {
1975
1870
  layers: {
1976
- util: util$6
1871
+ util: util$7
1977
1872
  }
1978
1873
  }, rules$2 = {
1979
1874
  ".outline-none": {
@@ -1983,57 +1878,57 @@ const minWidthStyle = {
1983
1878
  layers: {
1984
1879
  util: rules$2
1985
1880
  }
1986
- }, util$5 = {};
1987
- _responsiveRule(util$5, "overflow-visible", {
1881
+ }, util$6 = {};
1882
+ _responsiveRule(util$6, "overflow-visible", {
1988
1883
  overflow: "visible"
1989
1884
  });
1990
- _responsiveRule(util$5, "overflow-hidden", {
1885
+ _responsiveRule(util$6, "overflow-hidden", {
1991
1886
  overflow: "hidden"
1992
1887
  });
1993
- _responsiveRule(util$5, "overflow-scroll", {
1888
+ _responsiveRule(util$6, "overflow-scroll", {
1994
1889
  overflow: "scroll"
1995
1890
  });
1996
- _responsiveRule(util$5, "overflow-auto", {
1891
+ _responsiveRule(util$6, "overflow-auto", {
1997
1892
  overflow: "auto"
1998
1893
  });
1999
1894
  const overflowStyle = {
2000
1895
  layers: {
2001
- util: util$5
1896
+ util: util$6
2002
1897
  }
2003
- }, util$4 = {};
2004
- for (const space of theme.SPACE)
2005
- _responsiveRule(util$4, `p-${space}`, {
1898
+ }, util$5 = {};
1899
+ for (const space of SPACE)
1900
+ _responsiveRule(util$5, `p-${space}`, {
2006
1901
  padding: vars.space[space]
2007
1902
  });
2008
- for (const space of theme.SPACE)
2009
- _responsiveRule(util$4, `px-${space}`, {
1903
+ for (const space of SPACE)
1904
+ _responsiveRule(util$5, `px-${space}`, {
2010
1905
  paddingLeft: vars.space[space],
2011
1906
  paddingRight: vars.space[space]
2012
1907
  });
2013
- for (const space of theme.SPACE)
2014
- _responsiveRule(util$4, `py-${space}`, {
1908
+ for (const space of SPACE)
1909
+ _responsiveRule(util$5, `py-${space}`, {
2015
1910
  paddingTop: vars.space[space],
2016
1911
  paddingBottom: vars.space[space]
2017
1912
  });
2018
- for (const space of theme.SPACE)
2019
- _responsiveRule(util$4, `pt-${space}`, {
1913
+ for (const space of SPACE)
1914
+ _responsiveRule(util$5, `pt-${space}`, {
2020
1915
  paddingTop: vars.space[space]
2021
1916
  });
2022
- for (const space of theme.SPACE)
2023
- _responsiveRule(util$4, `pr-${space}`, {
1917
+ for (const space of SPACE)
1918
+ _responsiveRule(util$5, `pr-${space}`, {
2024
1919
  paddingRight: vars.space[space]
2025
1920
  });
2026
- for (const space of theme.SPACE)
2027
- _responsiveRule(util$4, `pb-${space}`, {
1921
+ for (const space of SPACE)
1922
+ _responsiveRule(util$5, `pb-${space}`, {
2028
1923
  paddingBottom: vars.space[space]
2029
1924
  });
2030
- for (const space of theme.SPACE)
2031
- _responsiveRule(util$4, `pl-${space}`, {
1925
+ for (const space of SPACE)
1926
+ _responsiveRule(util$5, `pl-${space}`, {
2032
1927
  paddingLeft: vars.space[space]
2033
1928
  });
2034
1929
  const paddingStyle = {
2035
1930
  layers: {
2036
- util: util$4
1931
+ util: util$5
2037
1932
  }
2038
1933
  }, rules$1 = {
2039
1934
  ".pointer-events-none": {
@@ -2046,63 +1941,83 @@ const paddingStyle = {
2046
1941
  layers: {
2047
1942
  util: rules$1
2048
1943
  }
2049
- }, util$3 = {};
2050
- _responsiveRule(util$3, "position-absolute", {
1944
+ }, util$4 = {};
1945
+ _responsiveRule(util$4, "position-absolute", {
2051
1946
  position: "absolute"
2052
1947
  });
2053
- _responsiveRule(util$3, "position-fixed", {
1948
+ _responsiveRule(util$4, "position-fixed", {
2054
1949
  position: "fixed"
2055
1950
  });
2056
- _responsiveRule(util$3, "position-relative", {
1951
+ _responsiveRule(util$4, "position-relative", {
2057
1952
  position: "relative"
2058
1953
  });
2059
- _responsiveRule(util$3, "position-static", {
1954
+ _responsiveRule(util$4, "position-static", {
2060
1955
  position: "static"
2061
1956
  });
2062
- _responsiveRule(util$3, "position-sticky", {
1957
+ _responsiveRule(util$4, "position-sticky", {
2063
1958
  position: "sticky"
2064
1959
  });
2065
1960
  const positionStyle = {
2066
1961
  layers: {
2067
- util: util$3
1962
+ util: util$4
2068
1963
  }
2069
- }, util$2 = {};
2070
- _responsiveRule(util$2, "r-0", {
1964
+ }, util$3 = {};
1965
+ _responsiveRule(util$3, "r-0", {
2071
1966
  borderRadius: vars.radius[0]
2072
1967
  });
2073
- _responsiveRule(util$2, "r-1", {
1968
+ _responsiveRule(util$3, "r-1", {
2074
1969
  borderRadius: vars.radius[1]
2075
1970
  });
2076
- _responsiveRule(util$2, "r-2", {
1971
+ _responsiveRule(util$3, "r-2", {
2077
1972
  borderRadius: vars.radius[2]
2078
1973
  });
2079
- _responsiveRule(util$2, "r-3", {
1974
+ _responsiveRule(util$3, "r-3", {
2080
1975
  borderRadius: vars.radius[3]
2081
1976
  });
2082
- _responsiveRule(util$2, "r-4", {
1977
+ _responsiveRule(util$3, "r-4", {
2083
1978
  borderRadius: vars.radius[4]
2084
1979
  });
2085
- _responsiveRule(util$2, "r-5", {
1980
+ _responsiveRule(util$3, "r-5", {
2086
1981
  borderRadius: vars.radius[5]
2087
1982
  });
2088
- _responsiveRule(util$2, "r-6", {
1983
+ _responsiveRule(util$3, "r-6", {
2089
1984
  borderRadius: vars.radius[6]
2090
1985
  });
2091
- _responsiveRule(util$2, "r-full", {
1986
+ _responsiveRule(util$3, "r-full", {
2092
1987
  borderRadius: "9999px"
2093
1988
  });
2094
1989
  const radiusStyle = {
2095
1990
  layers: {
2096
- util: util$2
1991
+ util: util$3
2097
1992
  }
2098
- }, util$1 = {};
2099
- for (const shadow2 of theme.SHADOW)
2100
- shadow2 === 0 ? _responsiveRule(util$1, "shadow-0", {
1993
+ }, util$2 = {};
1994
+ for (const shadow2 of SHADOW)
1995
+ shadow2 === 0 ? _responsiveRule(util$2, "shadow-0", {
2101
1996
  boxShadow: "none"
2102
- }) : _responsiveRule(util$1, `shadow-${shadow2}`, {
1997
+ }) : _responsiveRule(util$2, `shadow-${shadow2}`, {
2103
1998
  boxShadow: [`0 0 0 ${vars.card.shadow.outline} ${vars.color.shadow.outline}`, `${vars.shadow[shadow2].umbra} ${vars.color.shadow.umbra}`, `${vars.shadow[shadow2].penumbra} ${vars.color.shadow.penumbra}`, `${vars.shadow[shadow2].ambient} ${vars.color.shadow.ambient}`].join(", ")
2104
1999
  });
2105
2000
  const shadowStyle = {
2001
+ layers: {
2002
+ util: util$2
2003
+ }
2004
+ }, util$1 = {};
2005
+ _responsiveRule(util$1, "text-align-initial", {
2006
+ textAlign: "initial"
2007
+ });
2008
+ _responsiveRule(util$1, "text-align-left", {
2009
+ textAlign: "left"
2010
+ });
2011
+ _responsiveRule(util$1, "text-align-center", {
2012
+ textAlign: "center"
2013
+ });
2014
+ _responsiveRule(util$1, "text-align-right", {
2015
+ textAlign: "right"
2016
+ });
2017
+ _responsiveRule(util$1, "text-align-justify", {
2018
+ textAlign: "justify"
2019
+ });
2020
+ const textAlignStyle = {
2106
2021
  layers: {
2107
2022
  util: util$1
2108
2023
  }
@@ -2264,25 +2179,25 @@ const widthStyle = {
2264
2179
  height: "calc(var(--font-skeleton-line-height) - var(--font-skeleton-ascender-height) - var(--font-skeleton-descender-height))"
2265
2180
  }
2266
2181
  };
2267
- for (const size of theme.FONT_CODE_SIZE)
2182
+ for (const size of FONT_CODE_SIZE)
2268
2183
  _responsiveRule(component$2, `code-skeleton-${size}`, {
2269
2184
  "--font-skeleton-line-height": vars.font.code.sizes[size].lineHeight,
2270
2185
  "--font-skeleton-ascender-height": vars.font.code.sizes[size].ascenderHeight,
2271
2186
  "--font-skeleton-descender-height": vars.font.code.sizes[size].descenderHeight
2272
2187
  });
2273
- for (const size of theme.FONT_HEADING_SIZE)
2188
+ for (const size of FONT_HEADING_SIZE)
2274
2189
  _responsiveRule(component$2, `heading-skeleton-${size}`, {
2275
2190
  "--font-skeleton-line-height": vars.font.heading.sizes[size].lineHeight,
2276
2191
  "--font-skeleton-ascender-height": vars.font.heading.sizes[size].ascenderHeight,
2277
2192
  "--font-skeleton-descender-height": vars.font.heading.sizes[size].descenderHeight
2278
2193
  });
2279
- for (const size of theme.FONT_LABEL_SIZE)
2194
+ for (const size of FONT_LABEL_SIZE)
2280
2195
  _responsiveRule(component$2, `label-skeleton-${size}`, {
2281
2196
  "--font-skeleton-line-height": vars.font.label.sizes[size].lineHeight,
2282
2197
  "--font-skeleton-ascender-height": vars.font.label.sizes[size].ascenderHeight,
2283
2198
  "--font-skeleton-descender-height": vars.font.label.sizes[size].descenderHeight
2284
2199
  });
2285
- for (const size of theme.FONT_TEXT_SIZE)
2200
+ for (const size of FONT_TEXT_SIZE)
2286
2201
  _responsiveRule(component$2, `text-skeleton-${size}`, {
2287
2202
  "--font-skeleton-line-height": vars.font.text.sizes[size].lineHeight,
2288
2203
  "--font-skeleton-ascender-height": vars.font.text.sizes[size].ascenderHeight,
@@ -2517,24 +2432,24 @@ const skeletonStyle = {
2517
2432
  }
2518
2433
  }
2519
2434
  };
2520
- for (const textSize of theme.FONT_TEXT_SIZE) {
2521
- const source = vars.font.text.sizes[textSize];
2522
- primitive$o[`.input-${textSize}`] = {
2435
+ for (const size of FONT_TEXT_SIZE) {
2436
+ const source = vars.font.text.sizes[size];
2437
+ _responsiveRule(primitive$o, `input-${size}`, {
2523
2438
  [varNames.input.fontSize]: source.fontSize,
2524
2439
  [varNames.input.lineHeight]: source.lineHeight,
2525
2440
  [varNames.input.letterSpacing]: source.letterSpacing,
2526
2441
  [varNames.input.ascenderHeight]: source.ascenderHeight,
2527
2442
  [varNames.input.descenderHeight]: source.descenderHeight
2528
- };
2443
+ });
2529
2444
  }
2530
- for (const space of theme.SPACE)
2531
- primitive$o[`.input-p-${space}`] = {
2445
+ for (const space of SPACE)
2446
+ _responsiveRule(primitive$o, `input-p-${space}`, {
2532
2447
  [varNames.input.padding]: vars.space[space]
2533
- };
2534
- for (const space of theme.SPACE)
2535
- primitive$o[`.input-g-${space}`] = {
2448
+ });
2449
+ for (const space of SPACE)
2450
+ _responsiveRule(primitive$o, `input-g-${space}`, {
2536
2451
  [varNames.input.gap]: vars.space[space]
2537
- };
2452
+ });
2538
2453
  const _inputStyle = {
2539
2454
  layers: {
2540
2455
  primitive: primitive$o
@@ -2609,7 +2524,7 @@ const _inputStyle = {
2609
2524
  };
2610
2525
  function buildSelectableTones() {
2611
2526
  const rules2 = {};
2612
- for (const tone of theme.THEME_COLOR_STATE_TONES) {
2527
+ for (const tone of THEME_COLOR_STATE_TONES) {
2613
2528
  const target = varNames.color, source = vars.color;
2614
2529
  rules2[`&.${tone}`] = {
2615
2530
  [target.tinted.bg[0]]: source.tinted[tone].bg[0],
@@ -2680,7 +2595,7 @@ const primitive$m = {
2680
2595
  [varNames.color.avatar.bg]: vars.color.border,
2681
2596
  [varNames.color.avatar.fg]: vars.color.bg
2682
2597
  },
2683
- ...theme.THEME_COLOR_AVATAR_COLORS.reduce((acc, color2) => ({
2598
+ ...THEME_COLOR_AVATAR_COLORS.reduce((acc, color2) => ({
2684
2599
  ...acc,
2685
2600
  [`&.${color2}`]: {
2686
2601
  [varNames.color.avatar.bg]: vars.color.avatar[color2].bg,
@@ -2774,7 +2689,7 @@ const primitive$m = {
2774
2689
  }
2775
2690
  }
2776
2691
  };
2777
- for (const size of theme.AVATAR_SIZE)
2692
+ for (const size of AVATAR_SIZE)
2778
2693
  _responsiveRule(primitive$m, `avatar-${size}`, {
2779
2694
  [varNames.avatar.distance]: vars.avatar.sizes[size].distance,
2780
2695
  [varNames.avatar.size]: vars.avatar.sizes[size].size
@@ -2790,7 +2705,7 @@ const avatarStyle = {
2790
2705
  verticalAlign: "top"
2791
2706
  }
2792
2707
  };
2793
- for (const tone of theme.THEME_COLOR_STATE_TONES)
2708
+ for (const tone of THEME_COLOR_STATE_TONES)
2794
2709
  primitive$l[`.badge-${tone}`] = {
2795
2710
  [varNames.color.bg]: vars.color.tinted[tone].bg[4],
2796
2711
  [varNames.color.fg]: vars.color.tinted[tone].fg[3]
@@ -2804,7 +2719,10 @@ const badgeStyle = {
2804
2719
  // todo: move to aspects
2805
2720
  minHeight: 0,
2806
2721
  "@nest": {
2807
- "&:is(ul), &:is(ol)": {
2722
+ "iframe&": {
2723
+ border: "none"
2724
+ },
2725
+ "ul&, ol&": {
2808
2726
  listStyle: "none"
2809
2727
  },
2810
2728
  "&.muted": {
@@ -2823,18 +2741,6 @@ const badgeStyle = {
2823
2741
  layers: {
2824
2742
  primitive: primitive$k
2825
2743
  }
2826
- }, toneMap = {
2827
- default: "default",
2828
- neutral: "neutral",
2829
- suggest: "suggest",
2830
- primary: "accent",
2831
- positive: "positive",
2832
- caution: "caution",
2833
- critical: "critical"
2834
- }, variantMap = {
2835
- default: "solid",
2836
- ghost: "ghost",
2837
- bleed: "tinted"
2838
2744
  }, primitive$j = {
2839
2745
  ".button": {
2840
2746
  WebkitFontSmoothing: "inherit",
@@ -2882,11 +2788,13 @@ const badgeStyle = {
2882
2788
  opacity: 0.8
2883
2789
  }
2884
2790
  };
2885
- for (const tone of theme.THEME_COLOR_STATE_TONES) {
2791
+ for (const tone of THEME_COLOR_STATE_TONES) {
2886
2792
  const solid = vars.color.solid[tone], tinted = vars.color.tinted[tone];
2887
- primitive$j[`.button.${variantMap.default}.${toneMap[tone]}`] = {
2793
+ primitive$j[`.button[data-mode="default"][data-tone="${tone}"]`] = {
2888
2794
  [varNames.color.bg]: solid.bg[0],
2889
2795
  [varNames.color.border]: solid.border[1],
2796
+ [varNames.color.code.bg]: solid.bg[1],
2797
+ [varNames.color.code.fg]: solid.fg[4],
2890
2798
  [varNames.color.fg]: solid.fg[0],
2891
2799
  [varNames.color.muted.bg]: solid.bg[1],
2892
2800
  [varNames.color.muted.fg]: solid.fg[4],
@@ -2895,6 +2803,8 @@ for (const tone of theme.THEME_COLOR_STATE_TONES) {
2895
2803
  "&:not([data-disabled]):hover": {
2896
2804
  [varNames.color.bg]: solid.bg[1],
2897
2805
  [varNames.color.border]: solid.border[2],
2806
+ [varNames.color.code.bg]: solid.bg[2],
2807
+ [varNames.color.code.fg]: solid.fg[4],
2898
2808
  [varNames.color.fg]: solid.fg[0],
2899
2809
  [varNames.color.muted.bg]: solid.bg[2],
2900
2810
  [varNames.color.muted.fg]: solid.fg[4]
@@ -2902,6 +2812,8 @@ for (const tone of theme.THEME_COLOR_STATE_TONES) {
2902
2812
  "&:not([data-disabled]):active": {
2903
2813
  [varNames.color.bg]: solid.bg[2],
2904
2814
  [varNames.color.border]: solid.border[3],
2815
+ [varNames.color.code.bg]: solid.bg[3],
2816
+ [varNames.color.code.fg]: solid.fg[4],
2905
2817
  [varNames.color.fg]: solid.fg[0],
2906
2818
  [varNames.color.muted.bg]: solid.bg[3],
2907
2819
  [varNames.color.muted.fg]: solid.fg[4]
@@ -2909,6 +2821,8 @@ for (const tone of theme.THEME_COLOR_STATE_TONES) {
2909
2821
  "&:not([data-disabled])[data-selected]": {
2910
2822
  [varNames.color.bg]: solid.bg[2],
2911
2823
  [varNames.color.border]: solid.border[3],
2824
+ [varNames.color.code.bg]: solid.bg[3],
2825
+ [varNames.color.code.fg]: solid.fg[4],
2912
2826
  [varNames.color.fg]: solid.fg[0],
2913
2827
  [varNames.color.muted.bg]: solid.bg[3],
2914
2828
  [varNames.color.muted.fg]: solid.fg[4]
@@ -2932,25 +2846,30 @@ for (const tone of theme.THEME_COLOR_STATE_TONES) {
2932
2846
  [varNames.color.muted.fg]: vars.color.tinted.default.border[4]
2933
2847
  }
2934
2848
  }
2935
- }, primitive$j[`.button.${variantMap.ghost}.${toneMap[tone]}`] = {
2849
+ }, primitive$j[`.button[data-mode="ghost"][data-tone="${tone}"]`] = {
2936
2850
  [varNames.color.bg]: tinted.bg[1],
2937
- [varNames.color.border]: tinted.border[0],
2851
+ [varNames.color.border]: tinted.border[1],
2938
2852
  [varNames.color.fg]: tinted.fg[2],
2853
+ [varNames.color.code.bg]: tinted.bg[2],
2854
+ [varNames.color.code.fg]: tinted.fg[4],
2939
2855
  [varNames.color.muted.bg]: tinted.bg[2],
2940
2856
  [varNames.color.muted.fg]: tinted.fg[4],
2941
2857
  "--button-box-shadow": "inset 0 0 0 var(--button-border-width) var(--color-border)",
2942
2858
  "@nest": {
2943
2859
  "&:not([data-disabled]):hover": {
2944
2860
  [varNames.color.bg]: tinted.bg[2],
2945
- [varNames.color.border]: tinted.border[1],
2861
+ [varNames.color.border]: tinted.border[2],
2862
+ [varNames.color.code.bg]: tinted.bg[3],
2863
+ [varNames.color.code.fg]: tinted.fg[3],
2946
2864
  [varNames.color.fg]: tinted.fg[1],
2947
2865
  [varNames.color.muted.bg]: tinted.bg[3],
2948
2866
  [varNames.color.muted.fg]: tinted.fg[3]
2949
- // '--button-box-shadow': `inset 0 0 0 var(--button-border-width) var(--color-border)`,
2950
2867
  },
2951
2868
  "&:not([data-disabled]):active": {
2952
2869
  [varNames.color.bg]: tinted.bg[3],
2953
- [varNames.color.border]: tinted.border[2],
2870
+ [varNames.color.border]: tinted.border[3],
2871
+ [varNames.color.code.bg]: tinted.bg[4],
2872
+ [varNames.color.code.fg]: tinted.fg[3],
2954
2873
  [varNames.color.fg]: tinted.fg[1],
2955
2874
  [varNames.color.muted.bg]: tinted.bg[4],
2956
2875
  [varNames.color.muted.fg]: tinted.fg[3],
@@ -2958,7 +2877,9 @@ for (const tone of theme.THEME_COLOR_STATE_TONES) {
2958
2877
  },
2959
2878
  "&:not([data-disabled])[data-selected]": {
2960
2879
  [varNames.color.bg]: tinted.bg[3],
2961
- [varNames.color.border]: tinted.border[2],
2880
+ [varNames.color.border]: tinted.border[3],
2881
+ [varNames.color.code.bg]: tinted.bg[4],
2882
+ [varNames.color.code.fg]: tinted.fg[3],
2962
2883
  [varNames.color.fg]: tinted.fg[1],
2963
2884
  [varNames.color.muted.bg]: tinted.bg[4],
2964
2885
  [varNames.color.muted.fg]: tinted.fg[3],
@@ -2983,7 +2904,7 @@ for (const tone of theme.THEME_COLOR_STATE_TONES) {
2983
2904
  [varNames.color.muted.fg]: vars.color.tinted.default.border[3]
2984
2905
  }
2985
2906
  }
2986
- }, primitive$j[`.button.${variantMap.bleed}.${toneMap[tone]}`] = {
2907
+ }, primitive$j[`.button[data-mode="bleed"][data-tone="${tone}"]`] = {
2987
2908
  boxShadow: "none",
2988
2909
  [varNames.color.bg]: tinted.bg[0],
2989
2910
  [varNames.color.border]: tinted.border[1],
@@ -3069,6 +2990,11 @@ const buttonStyle = {
3069
2990
  font: "inherit",
3070
2991
  whiteSpace: "inherit"
3071
2992
  },
2993
+ "&[data-checkered]": {
2994
+ backgroundSize: `${vars.space[3]} ${vars.space[3]}`,
2995
+ backgroundPosition: "top left",
2996
+ backgroundImage: `repeating-conic-gradient(${vars.color.bg} 0% 25%, ${vars.color.muted.bg} 0% 50%)`
2997
+ },
3072
2998
  "a&:not([data-disabled]):hover, button&:not([data-disabled]):hover": {
3073
2999
  [varNames.color.bg]: vars.color.tinted.default.bg[1],
3074
3000
  [varNames.color.border]: vars.color.tinted.default.border[3],
@@ -3105,41 +3031,27 @@ const buttonStyle = {
3105
3031
  [varNames.color.muted.bg]: vars.color.solid.primary.bg[1],
3106
3032
  [varNames.color.muted.fg]: vars.color.solid.primary.fg[3]
3107
3033
  },
3108
- // '&:not([data-disabled]):focus': {
3109
- // '--color-bg': vars.color.solid.bg[0],
3110
- // '--color-border': vars.color.solid.border[1],
3111
- // '--color-fg': vars.color.solid.fg[1],
3112
- // '--color-muted-bg': vars.color.solid.bg[1],
3113
- // '--color-muted-fg': vars.color.solid.fg[3],
3114
- // },
3115
3034
  "a&[data-disabled], button&[data-disabled]": {
3116
- [varNames.color.bg]: vars.color.tinted.default.bg[2],
3117
- [varNames.color.border]: vars.color.tinted.default.border[4],
3118
- [varNames.color.fg]: vars.color.tinted.default.fg[0],
3119
- [varNames.color.muted.bg]: vars.color.tinted.default.bg[3],
3120
- [varNames.color.muted.fg]: vars.color.tinted.default.fg[4]
3035
+ [varNames.color.bg]: vars.color.tinted.default.bg[0],
3036
+ [varNames.color.border]: vars.color.tinted.default.border[1],
3037
+ [varNames.color.fg]: vars.color.tinted.default.border[3],
3038
+ [varNames.color.muted.bg]: vars.color.tinted.default.bg[1],
3039
+ [varNames.color.muted.fg]: vars.color.tinted.default.border[1]
3121
3040
  }
3122
- // '&[data-disabled]': {
3123
- // '--color-bg': vars.color.tinted.bg[0],
3124
- // '--color-border': vars.color.tinted.border[1],
3125
- // '--color-fg': vars.color.tinted.border[4],
3126
- // '--color-muted-bg': vars.color.tinted.bg[1],
3127
- // '--color-muted-fg': vars.color.tinted.border[4],
3128
- // },
3129
3041
  }
3130
3042
  }
3131
3043
  };
3132
- for (const scheme of theme.THEME_COLOR_SCHEMES) {
3044
+ for (const scheme of THEME_COLOR_SCHEMES$1) {
3133
3045
  const schemeProps = {
3134
3046
  colorScheme: scheme
3135
3047
  };
3136
- for (const tone of theme.THEME_COLOR_CARD_TONES) {
3048
+ for (const tone of THEME_COLOR_CARD_TONES) {
3137
3049
  const _varNames = varNames.color[tone], _vars = vars.color[scheme][tone];
3138
3050
  _assignToneProps(schemeProps, _varNames, _vars);
3139
3051
  }
3140
3052
  primitive$i[`.card.${scheme}`] = schemeProps;
3141
3053
  }
3142
- for (const tone of theme.THEME_COLOR_CARD_TONES) {
3054
+ for (const tone of THEME_COLOR_CARD_TONES) {
3143
3055
  const _varNames = varNames.color, _vars = vars.color[tone], toneProps = {};
3144
3056
  _assignToneProps(toneProps, _varNames, _vars), Object.assign(toneProps, {
3145
3057
  "--card-bg-color": vars.color.bg,
@@ -3174,7 +3086,7 @@ const cardStyle = {
3174
3086
  }
3175
3087
  };
3176
3088
  function _assignToneProps(toneProps, _varNames, _vars) {
3177
- for (const hue of theme.THEME_COLOR_AVATAR_COLORS)
3089
+ for (const hue of THEME_COLOR_AVATAR_COLORS)
3178
3090
  toneProps[`${_varNames.avatar[hue].bg}`] = _vars.avatar[hue].bg, toneProps[`${_varNames.avatar[hue].fg}`] = _vars.avatar[hue].fg;
3179
3091
  Object.assign(toneProps, {
3180
3092
  [_varNames.backdrop]: _vars.backdrop,
@@ -3224,7 +3136,7 @@ function _assignToneProps(toneProps, _varNames, _vars) {
3224
3136
  [_varNames.shadow.ambient]: _vars.shadow.ambient
3225
3137
  });
3226
3138
  for (const variant of ["solid", "tinted"])
3227
- for (const elementTone of theme.THEME_COLOR_STATE_TONES) {
3139
+ for (const elementTone of THEME_COLOR_STATE_TONES) {
3228
3140
  const __varNames = _varNames[variant][elementTone], __vars = _vars[variant][elementTone];
3229
3141
  Object.assign(toneProps, {
3230
3142
  [__varNames.bg[0]]: __vars.bg[0],
@@ -3412,7 +3324,7 @@ const primitive$h = {
3412
3324
  }
3413
3325
  }
3414
3326
  };
3415
- for (const size of theme.FONT_CODE_SIZE)
3327
+ for (const size of FONT_CODE_SIZE)
3416
3328
  _responsiveRule(primitive$g, `code-${size}`, {
3417
3329
  "--font-size": `var(--font-code-${size}-size)`,
3418
3330
  "--font-line-height": `var(--font-code-${size}-line-height)`,
@@ -3458,7 +3370,7 @@ const codeStyle = {
3458
3370
  "--color-fg": "var(--color-tinted-default-fg-4)"
3459
3371
  }
3460
3372
  };
3461
- for (const size of theme.FONT_HEADING_SIZE)
3373
+ for (const size of FONT_HEADING_SIZE)
3462
3374
  _responsiveRule(primitive$e, `heading-${size}`, {
3463
3375
  "--font-size": `var(--font-heading-${size}-size)`,
3464
3376
  "--font-line-height": `var(--font-heading-${size}-line-height)`,
@@ -3474,11 +3386,8 @@ const headingStyle = {
3474
3386
  }
3475
3387
  }, primitive$d = {
3476
3388
  ".kbd": {
3477
- // '--color-bg': 'var(--color-tinted-default-bg-1)',
3478
- // '--color-border': 'var(--color-tinted-default-border-2)',
3479
- // '--color-fg': 'var(--color-tinted-default-fg-3)',
3480
- boxShadow: "inset 0 0 0 0.5px var(--color-tinted-default-border-3)",
3481
- background: "var(--color-muted-bg)",
3389
+ boxShadow: `inset 0 0 0 0.5px ${vars.color.border}`,
3390
+ backgroundColor: vars.color.muted.bg,
3482
3391
  font: "inherit",
3483
3392
  verticalAlign: "top",
3484
3393
  "@nest": {
@@ -3515,7 +3424,7 @@ const headingStyle = {
3515
3424
  "--color-fg": "var(--color-muted-fg)"
3516
3425
  }
3517
3426
  };
3518
- for (const size of theme.FONT_LABEL_SIZE)
3427
+ for (const size of FONT_LABEL_SIZE)
3519
3428
  _responsiveRule(primitive$c, `label-${size}`, {
3520
3429
  "--font-size": `var(--font-label-${size}-size)`,
3521
3430
  "--font-line-height": `var(--font-label-${size}-line-height)`,
@@ -3795,15 +3704,11 @@ const labelStyle = {
3795
3704
  }
3796
3705
  }
3797
3706
  },
3798
- // 'text-accent': {
3799
- // '--color-fg': 'var(--color-accent-fg)',
3800
- // },
3801
3707
  ".text-muted": {
3802
3708
  color: "var(--color-muted-fg)"
3803
- // '--color-fg': 'var(--color-tinted-default-fg-4)',
3804
3709
  }
3805
3710
  };
3806
- for (const size of theme.FONT_TEXT_SIZE)
3711
+ for (const size of FONT_TEXT_SIZE)
3807
3712
  _responsiveRule(primitive$5, `text-${size}`, {
3808
3713
  "--font-size": `var(--font-text-${size}-size)`,
3809
3714
  "--font-line-height": `var(--font-text-${size}-line-height)`,
@@ -3860,126 +3765,7 @@ const textStyle = {
3860
3765
  }
3861
3766
  }
3862
3767
  },
3863
- ".text-input-presentation": {
3864
- // position: 'absolute',
3865
- // top: 0,
3866
- // left: 0,
3867
- // right: 0,
3868
- // bottom: 0,
3869
- // display: 'block',
3870
- // pointerEvents: 'none',
3871
- // zIndex: 0,
3872
- // backgroundColor: 'var(--input-bg-color)',
3873
- // 'boxShadow': 'var(--input-box-shadow)',
3874
- // '--input-border-color': 'var(--color-input-default-enabled-border)',
3875
- // '--input-border-color': 'var(--color-tinted-default-border-1)',
3876
- // '--input-box-shadow': 'inset 0 0 0 1px var(--input-border-color)',
3877
- // border-top-left-radius: ${$hasPrefix ? 0 : undefined};
3878
- // border-bottom-left-radius: ${$hasPrefix ? 0 : undefined};
3879
- // border-top-right-radius: ${$hasSuffix ? 0 : undefined};
3880
- // border-bottom-right-radius: ${$hasSuffix ? 0 : undefined};
3881
- // '@nest': {
3882
- // 'input:hover + &': {
3883
- // '--input-border-color': 'var(--color-tinted-default-border-2)',
3884
- // },
3885
- // 'input:focus + &': {
3886
- // '--input-border-color': 'var(--color-tinted-default-border-2)',
3887
- // },
3888
- // },
3889
- // &[data-scheme='${$scheme}'][data-tone='${$tone}'] {
3890
- // --card-bg-color: ${color.input.default.enabled.bg};
3891
- // --card-fg-color: ${color.input.default.enabled.fg};
3892
- // /* enabled */
3893
- // *:not(:disabled) + &[data-border] {
3894
- // --input-box-shadow: ${focusRingBorderStyle({
3895
- // color: color.input.default.enabled.border,
3896
- // width: input.border.width,
3897
- // })};
3898
- // }
3899
- // /* invalid */
3900
- // *:not(:disabled):invalid + & {
3901
- // --card-bg-color: ${color.input.invalid.enabled.bg};
3902
- // --card-fg-color: ${color.input.invalid.enabled.fg};
3903
- // &[data-border] {
3904
- // --input-box-shadow: ${focusRingBorderStyle({
3905
- // color: color.input.invalid.enabled.border,
3906
- // width: input.border.width,
3907
- // })};
3908
- // }
3909
- // }
3910
- // /* focused */
3911
- // *:not(:disabled):focus + & {
3912
- // &[data-border] {
3913
- // --input-box-shadow: ${$unstableDisableFocusRing
3914
- // ? undefined
3915
- // : focusRingStyle({
3916
- // border: {color: color.input.default.enabled.border, width: input.border.width},
3917
- // focusRing: input.text.focusRing,
3918
- // })};
3919
- // }
3920
- // &:not([data-border]) {
3921
- // --input-box-shadow: ${$unstableDisableFocusRing
3922
- // ? undefined
3923
- // : focusRingStyle({focusRing: input.text.focusRing})};
3924
- // }
3925
- // }
3926
- // /* disabled */
3927
- // *:not(:invalid):disabled + & {
3928
- // --card-bg-color: ${color.input.default.disabled.bg} !important;
3929
- // --card-fg-color: ${color.input.default.disabled.fg} !important;
3930
- // --card-icon-color: ${color.input.default.disabled.fg} !important;
3931
- // &[data-border] {
3932
- // --input-box-shadow: ${focusRingBorderStyle({
3933
- // color: color.input.default.disabled.border,
3934
- // width: input.border.width,
3935
- // })};
3936
- // }
3937
- // }
3938
- // *:invalid:disabled + & {
3939
- // --card-bg-color: ${color.input.invalid.disabled.bg} !important;
3940
- // --card-fg-color: ${color.input.invalid.disabled.fg} !important;
3941
- // --card-icon-color: ${color.input.invalid.disabled.fg} !important;
3942
- // &[data-border] {
3943
- // --input-box-shadow: ${focusRingBorderStyle({
3944
- // color: color.input.invalid.disabled.border,
3945
- // width: input.border.width,
3946
- // })};
3947
- // }
3948
- // }
3949
- // /* readOnly */
3950
- // *:not(:invalid):read-only + & {
3951
- // --card-bg-color: ${color.input.default.readOnly.bg} !important;
3952
- // --card-fg-color: ${color.input.default.readOnly.fg} !important;
3953
- // }
3954
- // *:invalid:read-only + & {
3955
- // --card-bg-color: ${color.input.invalid.readOnly.bg} !important;
3956
- // --card-fg-color: ${color.input.invalid.readOnly.fg} !important;
3957
- // }
3958
- // /* hovered */
3959
- // @media (hover: hover) {
3960
- // *:not(:disabled):not(:read-only):not(:invalid):hover + & {
3961
- // --card-bg-color: ${color.input.default.hovered.bg};
3962
- // --card-fg-color: ${color.input.default.hovered.fg};
3963
- // }
3964
- // *:invalid:not(:disabled):not(:read-only):hover + & {
3965
- // --card-bg-color: ${color.input.invalid.hovered.bg};
3966
- // --card-fg-color: ${color.input.invalid.hovered.fg};
3967
- // }
3968
- // *:not(:disabled):not(:read-only):not(:invalid):not(:focus):hover + &[data-border] {
3969
- // --input-box-shadow: ${focusRingBorderStyle({
3970
- // color: color.input.default.hovered.border,
3971
- // width: input.border.width,
3972
- // })};
3973
- // }
3974
- // *:invalid:not(:disabled):not(:read-only):not(:focus):hover + &[data-border] {
3975
- // --input-box-shadow: ${focusRingBorderStyle({
3976
- // color: color.input.invalid.hovered.border,
3977
- // width: input.border.width,
3978
- // })};
3979
- // }
3980
- // }
3981
- // }
3982
- }
3768
+ ".text-input-presentation": {}
3983
3769
  }, textInputStyle = {
3984
3770
  layers: {
3985
3771
  primitive: primitive$3
@@ -4141,6 +3927,7 @@ const textStyle = {
4141
3927
  {
4142
3928
  // define order of layers
4143
3929
  layers: {
3930
+ palette: {},
4144
3931
  theme: {},
4145
3932
  base: {},
4146
3933
  util: {},
@@ -4180,6 +3967,7 @@ const textStyle = {
4180
3967
  positionStyle,
4181
3968
  radiusStyle,
4182
3969
  shadowStyle,
3970
+ textAlignStyle,
4183
3971
  textOverflowStyle,
4184
3972
  widthStyle,
4185
3973
  // utils
@@ -4220,69 +4008,70 @@ const textStyle = {
4220
4008
  toastStyle,
4221
4009
  treeStyle
4222
4010
  ]);
4223
- function compileSystem() {
4011
+ function _compileSystem() {
4224
4012
  return _compileStyle(_systemStyle);
4225
4013
  }
4226
4014
  const THEME_COLOR_SCHEMES = ["dark", "light"], THEME_COLOR_VARIANTS = ["tinted", "solid"];
4227
- function compileTheme_v3(theme2) {
4015
+ function _compileTheme_v3(theme) {
4228
4016
  return _compileStyle({
4229
4017
  layers: {
4230
4018
  theme: {
4231
- ":root": compileThemeProperties(theme2)
4019
+ ":root": compileThemeProperties(theme)
4232
4020
  }
4233
4021
  }
4234
4022
  });
4235
4023
  }
4236
- function compileThemeProperties(theme2) {
4024
+ function compileThemeProperties(theme) {
4237
4025
  return {
4238
- ...buildAvatarThemeProperties(theme2),
4239
- ...buildButtonThemeProperties(theme2),
4240
- [varNames.card.shadow.outline]: px(theme2.card.shadow.outline),
4241
- ...buildColorThemeProperties(theme2),
4242
- ...buildContainerThemeProperties(theme2),
4243
- ...buildFontCodeThemeProperties(theme2),
4244
- ...buildFontHeadingThemeProperties(theme2),
4245
- ...buildFontLabelThemeProperties(theme2),
4246
- ...buildFontTextThemeProperties(theme2),
4247
- ...buildInputThemeProperties(theme2),
4248
- ...buildRadiusThemeProperties(theme2),
4249
- ...buildShadowThemeProperties(theme2),
4250
- ...buildSpaceThemeProperties(theme2)
4026
+ ...buildAvatarThemeProperties(theme),
4027
+ ...buildButtonThemeProperties(theme),
4028
+ // card
4029
+ [varNames.card.shadow.outline]: px(theme.card.shadow.outline),
4030
+ ...buildColorThemeProperties(theme),
4031
+ ...buildContainerThemeProperties(theme),
4032
+ ...buildFontCodeThemeProperties(theme),
4033
+ ...buildFontHeadingThemeProperties(theme),
4034
+ ...buildFontLabelThemeProperties(theme),
4035
+ ...buildFontTextThemeProperties(theme),
4036
+ ...buildInputThemeProperties(theme),
4037
+ ...buildRadiusThemeProperties(theme),
4038
+ ...buildShadowThemeProperties(theme),
4039
+ ...buildSpaceThemeProperties(theme)
4251
4040
  };
4252
4041
  }
4253
- function buildAvatarThemeProperties(theme2) {
4042
+ function buildAvatarThemeProperties(theme) {
4254
4043
  return {
4255
- [varNames.avatar.focusRing.offset]: px(theme2.avatar.focusRing.offset),
4256
- [varNames.avatar.focusRing.width]: px(theme2.avatar.focusRing.width),
4257
- [varNames.avatar.sizes[0].distance]: rem(theme2.avatar.sizes[0].distance),
4258
- [varNames.avatar.sizes[0].size]: rem(theme2.avatar.sizes[0].size),
4259
- [varNames.avatar.sizes[1].distance]: rem(theme2.avatar.sizes[1].distance),
4260
- [varNames.avatar.sizes[1].size]: rem(theme2.avatar.sizes[1].size),
4261
- [varNames.avatar.sizes[2].distance]: rem(theme2.avatar.sizes[2].distance),
4262
- [varNames.avatar.sizes[2].size]: rem(theme2.avatar.sizes[2].size),
4263
- [varNames.avatar.sizes[3].distance]: rem(theme2.avatar.sizes[3].distance),
4264
- [varNames.avatar.sizes[3].size]: rem(theme2.avatar.sizes[3].size)
4044
+ [varNames.avatar.focusRing.offset]: px(theme.avatar.focusRing.offset),
4045
+ [varNames.avatar.focusRing.width]: px(theme.avatar.focusRing.width),
4046
+ [varNames.avatar.sizes[0].distance]: rem(theme.avatar.sizes[0].distance),
4047
+ [varNames.avatar.sizes[0].size]: rem(theme.avatar.sizes[0].size),
4048
+ [varNames.avatar.sizes[1].distance]: rem(theme.avatar.sizes[1].distance),
4049
+ [varNames.avatar.sizes[1].size]: rem(theme.avatar.sizes[1].size),
4050
+ [varNames.avatar.sizes[2].distance]: rem(theme.avatar.sizes[2].distance),
4051
+ [varNames.avatar.sizes[2].size]: rem(theme.avatar.sizes[2].size),
4052
+ [varNames.avatar.sizes[3].distance]: rem(theme.avatar.sizes[3].distance),
4053
+ [varNames.avatar.sizes[3].size]: rem(theme.avatar.sizes[3].size)
4265
4054
  };
4266
4055
  }
4267
- function buildButtonThemeProperties(theme2) {
4056
+ function buildButtonThemeProperties(theme) {
4268
4057
  return {
4269
- [varNames.button.border.width]: px(theme2.button.border.width),
4270
- [varNames.button.focusRing.offset]: px(theme2.button.focusRing.offset),
4271
- [varNames.button.focusRing.width]: px(theme2.button.focusRing.width)
4058
+ [varNames.button.border.width]: px(theme.button.border.width),
4059
+ [varNames.button.focusRing.offset]: px(theme.button.focusRing.offset),
4060
+ [varNames.button.focusRing.width]: px(theme.button.focusRing.width)
4272
4061
  };
4273
4062
  }
4274
- function buildContainerThemeProperties(theme2) {
4063
+ function buildContainerThemeProperties(theme) {
4275
4064
  return {
4276
- [varNames.container[0]]: rem(theme2.container[0]),
4277
- [varNames.container[1]]: rem(theme2.container[1]),
4278
- [varNames.container[2]]: rem(theme2.container[2]),
4279
- [varNames.container[3]]: rem(theme2.container[3]),
4280
- [varNames.container[4]]: rem(theme2.container[4]),
4281
- [varNames.container[5]]: rem(theme2.container[5])
4065
+ [varNames.container[0]]: rem(theme.container[0]),
4066
+ [varNames.container[1]]: rem(theme.container[1]),
4067
+ [varNames.container[2]]: rem(theme.container[2]),
4068
+ [varNames.container[3]]: rem(theme.container[3]),
4069
+ [varNames.container[4]]: rem(theme.container[4]),
4070
+ [varNames.container[5]]: rem(theme.container[5])
4282
4071
  };
4283
4072
  }
4284
- function buildFontCodeThemeProperties(theme$1) {
4285
- const v = varNames.font.code, t = theme$1.font.code, props = {
4073
+ function buildFontCodeThemeProperties(theme) {
4074
+ const v = varNames.font.code, t = theme.font.code, props = {
4286
4075
  [v.family]: t.family,
4287
4076
  [v.featureSettings]: t.featureSettings || "normal",
4288
4077
  [v.weights.regular]: t.weights.regular,
@@ -4290,14 +4079,14 @@ function buildFontCodeThemeProperties(theme$1) {
4290
4079
  [v.weights.semibold]: t.weights.semibold,
4291
4080
  [v.weights.bold]: t.weights.bold
4292
4081
  };
4293
- for (const size of theme.FONT_CODE_SIZE) {
4294
- const _v = varNames.font.code.sizes[size], _t = theme$1.font.code.sizes[size];
4082
+ for (const size of FONT_CODE_SIZE) {
4083
+ const _v = varNames.font.code.sizes[size], _t = theme.font.code.sizes[size];
4295
4084
  props[_v.fontSize] = rem(_t.fontSize), props[_v.lineHeight] = rem(_t.lineHeight), props[_v.ascenderHeight] = rem(_t.ascenderHeight), props[_v.descenderHeight] = rem(_t.descenderHeight), props[_v.letterSpacing] = rem(_t.letterSpacing), props[_v.iconSize] = rem(_t.iconSize);
4296
4085
  }
4297
4086
  return props;
4298
4087
  }
4299
- function buildFontHeadingThemeProperties(theme$1) {
4300
- const v = varNames.font.heading, t = theme$1.font.heading, props = {
4088
+ function buildFontHeadingThemeProperties(theme) {
4089
+ const v = varNames.font.heading, t = theme.font.heading, props = {
4301
4090
  [v.family]: t.family,
4302
4091
  [v.featureSettings]: t.featureSettings,
4303
4092
  [v.weights.regular]: t.weights.regular,
@@ -4305,14 +4094,14 @@ function buildFontHeadingThemeProperties(theme$1) {
4305
4094
  [v.weights.semibold]: t.weights.semibold,
4306
4095
  [v.weights.bold]: t.weights.bold
4307
4096
  };
4308
- for (const size of theme.FONT_HEADING_SIZE) {
4097
+ for (const size of FONT_HEADING_SIZE) {
4309
4098
  const _v = v.sizes[size], _t = t.sizes[size];
4310
4099
  props[_v.fontSize] = rem(_t.fontSize), props[_v.lineHeight] = rem(_t.lineHeight), props[_v.ascenderHeight] = rem(_t.ascenderHeight), props[_v.descenderHeight] = rem(_t.descenderHeight), props[_v.letterSpacing] = rem(_t.letterSpacing), props[_v.iconSize] = rem(_t.iconSize);
4311
4100
  }
4312
4101
  return props;
4313
4102
  }
4314
- function buildFontLabelThemeProperties(theme$1) {
4315
- const v = varNames.font.label, t = theme$1.font.label, props = {
4103
+ function buildFontLabelThemeProperties(theme) {
4104
+ const v = varNames.font.label, t = theme.font.label, props = {
4316
4105
  [v.family]: t.family,
4317
4106
  [v.featureSettings]: t.featureSettings,
4318
4107
  [v.weights.regular]: t.weights.regular,
@@ -4320,14 +4109,14 @@ function buildFontLabelThemeProperties(theme$1) {
4320
4109
  [v.weights.semibold]: t.weights.semibold,
4321
4110
  [v.weights.bold]: t.weights.bold
4322
4111
  };
4323
- for (const size of theme.FONT_LABEL_SIZE) {
4112
+ for (const size of FONT_LABEL_SIZE) {
4324
4113
  const _v = v.sizes[size], _t = t.sizes[size];
4325
4114
  props[_v.fontSize] = rem(_t.fontSize), props[_v.lineHeight] = rem(_t.lineHeight), props[_v.ascenderHeight] = rem(_t.ascenderHeight), props[_v.descenderHeight] = rem(_t.descenderHeight), props[_v.letterSpacing] = rem(_t.letterSpacing), props[_v.iconSize] = rem(_t.iconSize);
4326
4115
  }
4327
4116
  return props;
4328
4117
  }
4329
- function buildFontTextThemeProperties(theme$1) {
4330
- const v = varNames.font.text, t = theme$1.font.text, props = {
4118
+ function buildFontTextThemeProperties(theme) {
4119
+ const v = varNames.font.text, t = theme.font.text, props = {
4331
4120
  [v.family]: t.family,
4332
4121
  [v.featureSettings]: t.featureSettings,
4333
4122
  [v.weights.regular]: t.weights.regular,
@@ -4335,208 +4124,301 @@ function buildFontTextThemeProperties(theme$1) {
4335
4124
  [v.weights.semibold]: t.weights.semibold,
4336
4125
  [v.weights.bold]: t.weights.bold
4337
4126
  };
4338
- for (const size of theme.FONT_TEXT_SIZE) {
4127
+ for (const size of FONT_TEXT_SIZE) {
4339
4128
  const _v = v.sizes[size], _t = t.sizes[size];
4340
4129
  props[_v.fontSize] = rem(_t.fontSize), props[_v.lineHeight] = rem(_t.lineHeight), props[_v.ascenderHeight] = rem(_t.ascenderHeight), props[_v.descenderHeight] = rem(_t.descenderHeight), props[_v.letterSpacing] = rem(_t.letterSpacing), props[_v.iconSize] = rem(_t.iconSize);
4341
4130
  }
4342
4131
  return props;
4343
4132
  }
4344
- function buildInputThemeProperties(theme2) {
4133
+ function buildInputThemeProperties(theme) {
4345
4134
  return {
4346
- [varNames.input.border.width]: px(theme2.input.border.width),
4347
- [varNames.input.checkbox.focusRing.offset]: px(theme2.input.checkbox.focusRing.offset),
4348
- [varNames.input.checkbox.focusRing.width]: px(theme2.input.checkbox.focusRing.width),
4349
- [varNames.input.checkbox.size]: rem(theme2.input.checkbox.size),
4350
- [varNames.input.radio.focusRing.offset]: px(theme2.input.radio.focusRing.offset),
4351
- [varNames.input.radio.focusRing.width]: px(theme2.input.radio.focusRing.width),
4352
- [varNames.input.radio.markSize]: rem(theme2.input.radio.markSize),
4353
- [varNames.input.radio.size]: rem(theme2.input.radio.size),
4354
- [varNames.input.select.focusRing.offset]: px(theme2.input.select.focusRing.offset),
4355
- [varNames.input.select.focusRing.width]: px(theme2.input.select.focusRing.width),
4356
- [varNames.input.switch.focusRing.offset]: px(theme2.input.switch.focusRing.offset),
4357
- [varNames.input.switch.focusRing.width]: px(theme2.input.switch.focusRing.width),
4358
- [varNames.input.switch.height]: rem(theme2.input.switch.height),
4359
- [varNames.input.switch.padding]: rem(theme2.input.switch.padding),
4360
- [varNames.input.switch.transitionDurationMs]: `${theme2.input.switch.transitionDurationMs}ms`,
4361
- [varNames.input.switch.transitionTimingFunction]: theme2.input.switch.transitionTimingFunction,
4362
- [varNames.input.switch.width]: rem(theme2.input.switch.width),
4363
- [varNames.input.text.focusRing.offset]: px(theme2.input.text.focusRing.offset),
4364
- [varNames.input.text.focusRing.width]: px(theme2.input.text.focusRing.width)
4135
+ [varNames.input.border.width]: px(theme.input.border.width),
4136
+ [varNames.input.checkbox.focusRing.offset]: px(theme.input.checkbox.focusRing.offset),
4137
+ [varNames.input.checkbox.focusRing.width]: px(theme.input.checkbox.focusRing.width),
4138
+ [varNames.input.checkbox.size]: rem(theme.input.checkbox.size),
4139
+ [varNames.input.radio.focusRing.offset]: px(theme.input.radio.focusRing.offset),
4140
+ [varNames.input.radio.focusRing.width]: px(theme.input.radio.focusRing.width),
4141
+ [varNames.input.radio.markSize]: rem(theme.input.radio.markSize),
4142
+ [varNames.input.radio.size]: rem(theme.input.radio.size),
4143
+ [varNames.input.select.focusRing.offset]: px(theme.input.select.focusRing.offset),
4144
+ [varNames.input.select.focusRing.width]: px(theme.input.select.focusRing.width),
4145
+ [varNames.input.switch.focusRing.offset]: px(theme.input.switch.focusRing.offset),
4146
+ [varNames.input.switch.focusRing.width]: px(theme.input.switch.focusRing.width),
4147
+ [varNames.input.switch.height]: rem(theme.input.switch.height),
4148
+ [varNames.input.switch.padding]: rem(theme.input.switch.padding),
4149
+ [varNames.input.switch.transitionDurationMs]: `${theme.input.switch.transitionDurationMs}ms`,
4150
+ [varNames.input.switch.transitionTimingFunction]: theme.input.switch.transitionTimingFunction,
4151
+ [varNames.input.switch.width]: rem(theme.input.switch.width),
4152
+ [varNames.input.text.focusRing.offset]: px(theme.input.text.focusRing.offset),
4153
+ [varNames.input.text.focusRing.width]: px(theme.input.text.focusRing.width)
4365
4154
  };
4366
4155
  }
4367
- function buildRadiusThemeProperties(theme2) {
4156
+ function buildRadiusThemeProperties(theme) {
4368
4157
  return {
4369
- [varNames.radius[0]]: px(theme2.radius[0]),
4370
- [varNames.radius[1]]: px(theme2.radius[1]),
4371
- [varNames.radius[2]]: px(theme2.radius[2]),
4372
- [varNames.radius[3]]: px(theme2.radius[3]),
4373
- [varNames.radius[4]]: px(theme2.radius[4]),
4374
- [varNames.radius[5]]: px(theme2.radius[5]),
4375
- [varNames.radius[6]]: px(theme2.radius[6])
4158
+ [varNames.radius[0]]: px(theme.radius[0]),
4159
+ [varNames.radius[1]]: px(theme.radius[1]),
4160
+ [varNames.radius[2]]: px(theme.radius[2]),
4161
+ [varNames.radius[3]]: px(theme.radius[3]),
4162
+ [varNames.radius[4]]: px(theme.radius[4]),
4163
+ [varNames.radius[5]]: px(theme.radius[5]),
4164
+ [varNames.radius[6]]: px(theme.radius[6])
4376
4165
  };
4377
4166
  }
4378
- function buildShadowThemeProperties(theme2) {
4167
+ function buildShadowThemeProperties(theme) {
4379
4168
  return {
4380
- [varNames.shadow[0].umbra]: toBoxShadow(theme2.shadow[0]?.umbra),
4381
- [varNames.shadow[0].penumbra]: toBoxShadow(theme2.shadow[0]?.penumbra),
4382
- [varNames.shadow[0].ambient]: toBoxShadow(theme2.shadow[0]?.ambient),
4383
- [varNames.shadow[1].umbra]: toBoxShadow(theme2.shadow[1]?.umbra),
4384
- [varNames.shadow[1].penumbra]: toBoxShadow(theme2.shadow[1]?.penumbra),
4385
- [varNames.shadow[1].ambient]: toBoxShadow(theme2.shadow[1]?.ambient),
4386
- [varNames.shadow[2].umbra]: toBoxShadow(theme2.shadow[2]?.umbra),
4387
- [varNames.shadow[2].penumbra]: toBoxShadow(theme2.shadow[2]?.penumbra),
4388
- [varNames.shadow[2].ambient]: toBoxShadow(theme2.shadow[2]?.ambient),
4389
- [varNames.shadow[3].umbra]: toBoxShadow(theme2.shadow[3]?.umbra),
4390
- [varNames.shadow[3].penumbra]: toBoxShadow(theme2.shadow[3]?.penumbra),
4391
- [varNames.shadow[3].ambient]: toBoxShadow(theme2.shadow[3]?.ambient),
4392
- [varNames.shadow[4].umbra]: toBoxShadow(theme2.shadow[4]?.umbra),
4393
- [varNames.shadow[4].penumbra]: toBoxShadow(theme2.shadow[4]?.penumbra),
4394
- [varNames.shadow[4].ambient]: toBoxShadow(theme2.shadow[4]?.ambient),
4395
- [varNames.shadow[5].umbra]: toBoxShadow(theme2.shadow[5]?.umbra),
4396
- [varNames.shadow[5].penumbra]: toBoxShadow(theme2.shadow[5]?.penumbra),
4397
- [varNames.shadow[5].ambient]: toBoxShadow(theme2.shadow[5]?.ambient)
4169
+ [varNames.shadow[0].umbra]: toBoxShadow(theme.shadow[0]?.umbra),
4170
+ [varNames.shadow[0].penumbra]: toBoxShadow(theme.shadow[0]?.penumbra),
4171
+ [varNames.shadow[0].ambient]: toBoxShadow(theme.shadow[0]?.ambient),
4172
+ [varNames.shadow[1].umbra]: toBoxShadow(theme.shadow[1]?.umbra),
4173
+ [varNames.shadow[1].penumbra]: toBoxShadow(theme.shadow[1]?.penumbra),
4174
+ [varNames.shadow[1].ambient]: toBoxShadow(theme.shadow[1]?.ambient),
4175
+ [varNames.shadow[2].umbra]: toBoxShadow(theme.shadow[2]?.umbra),
4176
+ [varNames.shadow[2].penumbra]: toBoxShadow(theme.shadow[2]?.penumbra),
4177
+ [varNames.shadow[2].ambient]: toBoxShadow(theme.shadow[2]?.ambient),
4178
+ [varNames.shadow[3].umbra]: toBoxShadow(theme.shadow[3]?.umbra),
4179
+ [varNames.shadow[3].penumbra]: toBoxShadow(theme.shadow[3]?.penumbra),
4180
+ [varNames.shadow[3].ambient]: toBoxShadow(theme.shadow[3]?.ambient),
4181
+ [varNames.shadow[4].umbra]: toBoxShadow(theme.shadow[4]?.umbra),
4182
+ [varNames.shadow[4].penumbra]: toBoxShadow(theme.shadow[4]?.penumbra),
4183
+ [varNames.shadow[4].ambient]: toBoxShadow(theme.shadow[4]?.ambient),
4184
+ [varNames.shadow[5].umbra]: toBoxShadow(theme.shadow[5]?.umbra),
4185
+ [varNames.shadow[5].penumbra]: toBoxShadow(theme.shadow[5]?.penumbra),
4186
+ [varNames.shadow[5].ambient]: toBoxShadow(theme.shadow[5]?.ambient)
4398
4187
  };
4399
4188
  }
4400
- function buildSpaceThemeProperties(theme2) {
4189
+ function buildSpaceThemeProperties(theme) {
4401
4190
  return {
4402
- [varNames.space[0]]: px(theme2.space[0]),
4403
- [varNames.space[0.5]]: px(theme2.space[1] / 2),
4404
- [varNames.space[1]]: px(theme2.space[1]),
4405
- [varNames.space[2]]: px(theme2.space[2]),
4406
- [varNames.space[3]]: px(theme2.space[3]),
4407
- [varNames.space[4]]: px(theme2.space[4]),
4408
- [varNames.space[5]]: px(theme2.space[5]),
4409
- [varNames.space[6]]: px(theme2.space[6]),
4410
- [varNames.space[7]]: px(theme2.space[7]),
4411
- [varNames.space[8]]: px(theme2.space[8]),
4412
- [varNames.space[9]]: px(theme2.space[9])
4191
+ [varNames.space[0]]: px(theme.space[0]),
4192
+ [varNames.space[0.5]]: px(theme.space[1] / 2),
4193
+ [varNames.space[1]]: px(theme.space[1]),
4194
+ [varNames.space[2]]: px(theme.space[2]),
4195
+ [varNames.space[3]]: px(theme.space[3]),
4196
+ [varNames.space[4]]: px(theme.space[4]),
4197
+ [varNames.space[5]]: px(theme.space[5]),
4198
+ [varNames.space[6]]: px(theme.space[6]),
4199
+ [varNames.space[7]]: px(theme.space[7]),
4200
+ [varNames.space[8]]: px(theme.space[8]),
4201
+ [varNames.space[9]]: px(theme.space[9])
4413
4202
  };
4414
4203
  }
4415
- function buildColorThemeProperties(theme$1) {
4204
+ function buildColorThemeProperties(theme) {
4416
4205
  const props = {};
4417
4206
  for (const scheme of THEME_COLOR_SCHEMES)
4418
- for (const cardTone of theme.THEME_COLOR_CARD_TONES) {
4419
- Object.assign(props, buildColorAvatarThemeProperties(theme$1, {
4207
+ for (const cardTone of THEME_COLOR_CARD_TONES) {
4208
+ Object.assign(props, buildColorAvatarThemeProperties(theme, {
4420
4209
  scheme,
4421
4210
  cardTone
4422
- })), Object.assign(props, buildColorCardThemeProperties(theme$1, {
4211
+ })), Object.assign(props, buildColorCardThemeProperties(theme, {
4423
4212
  scheme,
4424
4213
  cardTone
4425
4214
  }));
4426
4215
  for (const colorVariant of THEME_COLOR_VARIANTS)
4427
- for (const elementTone of theme.THEME_COLOR_STATE_TONES) {
4428
- const v = varNames.color[scheme][cardTone][colorVariant][elementTone], t = theme$1._tokens.color[cardTone].variant[colorVariant][elementTone], context = {
4216
+ for (const elementTone of THEME_COLOR_STATE_TONES) {
4217
+ const v = varNames.color[scheme][cardTone][colorVariant][elementTone], t = theme._tokens.color[cardTone].variant[colorVariant][elementTone], context = {
4218
+ bgValue: "transparent",
4429
4219
  bgVar: v.bg[0],
4430
4220
  hue: t._hue,
4431
4221
  scheme
4432
4222
  };
4433
4223
  Object.assign(props, {
4434
- [v.bg[0]]: theme.renderColor(t.bg[0], context),
4224
+ [v.bg[0]]: renderColor(t.bg[0], context),
4435
4225
  [v.bg[1]]: `color-mix(in srgb, var(${v.bg[0]}), var(${v.bg[4]}) 25%)`,
4436
4226
  [v.bg[2]]: `color-mix(in srgb, var(${v.bg[0]}), var(${v.bg[4]}) 50%)`,
4437
4227
  [v.bg[3]]: `color-mix(in srgb, var(${v.bg[0]}), var(${v.bg[4]}) 75%)`,
4438
- [v.bg[4]]: theme.renderColor(t.bg[4], context),
4439
- [v.border[0]]: theme.renderColor(t.border[0], context),
4228
+ [v.bg[4]]: renderColor(t.bg[4], context),
4229
+ [v.border[0]]: renderColor(t.border[0], context),
4440
4230
  [v.border[1]]: `color-mix(in srgb, var(${v.border[0]}), var(${v.border[4]}) 25%)`,
4441
4231
  [v.border[2]]: `color-mix(in srgb, var(${v.border[0]}), var(${v.border[4]}) 50%)`,
4442
4232
  [v.border[3]]: `color-mix(in srgb, var(${v.border[0]}), var(${v.border[4]}) 75%)`,
4443
- [v.border[4]]: theme.renderColor(t.border[4], context),
4444
- [v.fg[0]]: theme.renderColor(t.fg[0], context),
4233
+ [v.border[4]]: renderColor(t.border[4], context),
4234
+ [v.fg[0]]: renderColor(t.fg[0], context),
4445
4235
  [v.fg[1]]: `color-mix(in srgb, var(${v.fg[0]}), var(${v.fg[4]}) 25%)`,
4446
4236
  [v.fg[2]]: `color-mix(in srgb, var(${v.fg[0]}), var(${v.fg[4]}) 50%)`,
4447
4237
  [v.fg[3]]: `color-mix(in srgb, var(${v.fg[0]}), var(${v.fg[4]}) 75%)`,
4448
- [v.fg[4]]: theme.renderColor(t.fg[4], context)
4238
+ [v.fg[4]]: renderColor(t.fg[4], context)
4449
4239
  });
4450
4240
  }
4451
4241
  }
4452
4242
  return props;
4453
4243
  }
4454
- function buildColorAvatarThemeProperties(theme$1, options) {
4244
+ function buildColorAvatarThemeProperties(theme, options) {
4455
4245
  const {
4456
4246
  scheme,
4457
4247
  cardTone
4458
- } = options, v = varNames.color[scheme][cardTone], t = theme$1._tokens.color[cardTone], props = {};
4459
- for (const hue of theme.HUES) {
4248
+ } = options, v = varNames.color[scheme][cardTone], t = theme._tokens.color[cardTone], props = {};
4249
+ for (const hue of HUES) {
4460
4250
  const context = {
4251
+ bgValue: "transparent",
4461
4252
  bgVar: varNames.color.bg,
4462
4253
  hue: t.avatar[hue]._hue ?? hue,
4463
4254
  scheme
4464
4255
  };
4465
4256
  Object.assign(props, {
4466
- [v.avatar[hue].bg]: theme.renderColor(t.avatar[hue].bg, context),
4467
- [v.avatar[hue].fg]: theme.renderColor(t.avatar[hue].fg, context)
4257
+ [v.avatar[hue].bg]: renderColor(t.avatar[hue].bg, context),
4258
+ [v.avatar[hue].fg]: renderColor(t.avatar[hue].fg, context)
4468
4259
  });
4469
4260
  }
4470
4261
  return props;
4471
4262
  }
4472
- function buildColorCardThemeProperties(theme$1, options) {
4263
+ function buildColorCardThemeProperties(theme, options) {
4473
4264
  const {
4474
4265
  scheme,
4475
4266
  cardTone
4476
- } = options, v = varNames.color[scheme][cardTone], t = theme$1._tokens.color[cardTone], context = {
4267
+ } = options, v = varNames.color[scheme][cardTone], t = theme._tokens.color[cardTone], context = {
4268
+ bgValue: "transparent",
4477
4269
  bgVar: varNames.color.bg,
4478
4270
  hue: t._hue,
4479
4271
  scheme
4480
4272
  };
4481
4273
  return {
4482
4274
  // backdrop
4483
- [v.backdrop]: theme.renderColor(t.backdrop, context),
4275
+ [v.backdrop]: renderColor(t.backdrop, context),
4484
4276
  // code
4485
- [v.code.bg]: theme.renderColor(t.code.bg, context),
4486
- [v.code.fg]: theme.renderColor(t.code.fg, context),
4277
+ [v.code.bg]: renderColor(t.code.bg, context),
4278
+ [v.code.fg]: renderColor(t.code.fg, context),
4487
4279
  // code / token
4488
- [v.code.token.atrule]: theme.renderColor(t.code.token.atrule, context),
4489
- [v.code.token.attrName]: theme.renderColor(t.code.token.attrName, context),
4490
- [v.code.token.attrValue]: theme.renderColor(t.code.token.attrValue, context),
4491
- [v.code.token.attribute]: theme.renderColor(t.code.token.attribute, context),
4492
- [v.code.token.boolean]: theme.renderColor(t.code.token.boolean, context),
4493
- [v.code.token.builtin]: theme.renderColor(t.code.token.builtin, context),
4494
- [v.code.token.cdata]: theme.renderColor(t.code.token.cdata, context),
4495
- [v.code.token.char]: theme.renderColor(t.code.token.char, context),
4496
- [v.code.token.className]: theme.renderColor(t.code.token.className, context),
4497
- [v.code.token.class]: theme.renderColor(t.code.token.class, context),
4498
- [v.code.token.comment]: theme.renderColor(t.code.token.comment, context),
4499
- [v.code.token.constant]: theme.renderColor(t.code.token.constant, context),
4500
- [v.code.token.deleted]: theme.renderColor(t.code.token.deleted, context),
4501
- [v.code.token.doctype]: theme.renderColor(t.code.token.doctype, context),
4502
- [v.code.token.entity]: theme.renderColor(t.code.token.entity, context),
4503
- [v.code.token.function]: theme.renderColor(t.code.token.function, context),
4504
- [v.code.token.hexcode]: theme.renderColor(t.code.token.hexcode, context),
4505
- [v.code.token.id]: theme.renderColor(t.code.token.id, context),
4506
- [v.code.token.important]: theme.renderColor(t.code.token.important, context),
4507
- [v.code.token.inserted]: theme.renderColor(t.code.token.inserted, context),
4508
- [v.code.token.keyword]: theme.renderColor(t.code.token.keyword, context),
4509
- [v.code.token.number]: theme.renderColor(t.code.token.number, context),
4510
- [v.code.token.operator]: theme.renderColor(t.code.token.operator, context),
4511
- [v.code.token.prolog]: theme.renderColor(t.code.token.prolog, context),
4512
- [v.code.token.property]: theme.renderColor(t.code.token.property, context),
4513
- [v.code.token.pseudoClass]: theme.renderColor(t.code.token.pseudoClass, context),
4514
- [v.code.token.pseudoElement]: theme.renderColor(t.code.token.pseudoElement, context),
4515
- [v.code.token.punctuation]: theme.renderColor(t.code.token.punctuation, context),
4516
- [v.code.token.regex]: theme.renderColor(t.code.token.regex, context),
4517
- [v.code.token.selector]: theme.renderColor(t.code.token.selector, context),
4518
- [v.code.token.string]: theme.renderColor(t.code.token.string, context),
4519
- [v.code.token.symbol]: theme.renderColor(t.code.token.symbol, context),
4520
- [v.code.token.tag]: theme.renderColor(t.code.token.tag, context),
4521
- [v.code.token.unit]: theme.renderColor(t.code.token.unit, context),
4522
- [v.code.token.url]: theme.renderColor(t.code.token.url, context),
4523
- [v.code.token.variable]: theme.renderColor(t.code.token.variable, context),
4280
+ [v.code.token.atrule]: renderColor(t.code.token.atrule, context),
4281
+ [v.code.token.attrName]: renderColor(t.code.token.attrName, context),
4282
+ [v.code.token.attrValue]: renderColor(t.code.token.attrValue, context),
4283
+ [v.code.token.attribute]: renderColor(t.code.token.attribute, context),
4284
+ [v.code.token.boolean]: renderColor(t.code.token.boolean, context),
4285
+ [v.code.token.builtin]: renderColor(t.code.token.builtin, context),
4286
+ [v.code.token.cdata]: renderColor(t.code.token.cdata, context),
4287
+ [v.code.token.char]: renderColor(t.code.token.char, context),
4288
+ [v.code.token.className]: renderColor(t.code.token.className, context),
4289
+ [v.code.token.class]: renderColor(t.code.token.class, context),
4290
+ [v.code.token.comment]: renderColor(t.code.token.comment, context),
4291
+ [v.code.token.constant]: renderColor(t.code.token.constant, context),
4292
+ [v.code.token.deleted]: renderColor(t.code.token.deleted, context),
4293
+ [v.code.token.doctype]: renderColor(t.code.token.doctype, context),
4294
+ [v.code.token.entity]: renderColor(t.code.token.entity, context),
4295
+ [v.code.token.function]: renderColor(t.code.token.function, context),
4296
+ [v.code.token.hexcode]: renderColor(t.code.token.hexcode, context),
4297
+ [v.code.token.id]: renderColor(t.code.token.id, context),
4298
+ [v.code.token.important]: renderColor(t.code.token.important, context),
4299
+ [v.code.token.inserted]: renderColor(t.code.token.inserted, context),
4300
+ [v.code.token.keyword]: renderColor(t.code.token.keyword, context),
4301
+ [v.code.token.number]: renderColor(t.code.token.number, context),
4302
+ [v.code.token.operator]: renderColor(t.code.token.operator, context),
4303
+ [v.code.token.prolog]: renderColor(t.code.token.prolog, context),
4304
+ [v.code.token.property]: renderColor(t.code.token.property, context),
4305
+ [v.code.token.pseudoClass]: renderColor(t.code.token.pseudoClass, context),
4306
+ [v.code.token.pseudoElement]: renderColor(t.code.token.pseudoElement, context),
4307
+ [v.code.token.punctuation]: renderColor(t.code.token.punctuation, context),
4308
+ [v.code.token.regex]: renderColor(t.code.token.regex, context),
4309
+ [v.code.token.selector]: renderColor(t.code.token.selector, context),
4310
+ [v.code.token.string]: renderColor(t.code.token.string, context),
4311
+ [v.code.token.symbol]: renderColor(t.code.token.symbol, context),
4312
+ [v.code.token.tag]: renderColor(t.code.token.tag, context),
4313
+ [v.code.token.unit]: renderColor(t.code.token.unit, context),
4314
+ [v.code.token.url]: renderColor(t.code.token.url, context),
4315
+ [v.code.token.variable]: renderColor(t.code.token.variable, context),
4524
4316
  // focus ring
4525
- [v.focusRing]: theme.renderColor(t.focusRing, context),
4317
+ [v.focusRing]: renderColor(t.focusRing, context),
4526
4318
  // link
4527
- [v.link.fg]: theme.renderColor(t.link.fg, context),
4319
+ [v.link.fg]: renderColor(t.link.fg, context),
4528
4320
  // shadow
4529
- [v.shadow.outline]: theme.renderColor(t.shadow.outline, context),
4530
- [v.shadow.umbra]: theme.renderColor(t.shadow.umbra, context),
4531
- [v.shadow.penumbra]: theme.renderColor(t.shadow.penumbra, context),
4532
- [v.shadow.ambient]: theme.renderColor(t.shadow.ambient, context)
4321
+ [v.shadow.outline]: renderColor(t.shadow.outline, context),
4322
+ [v.shadow.umbra]: renderColor(t.shadow.umbra, context),
4323
+ [v.shadow.penumbra]: renderColor(t.shadow.penumbra, context),
4324
+ [v.shadow.ambient]: renderColor(t.shadow.ambient, context)
4533
4325
  };
4534
4326
  }
4535
- function compileTheme(theme2) {
4536
- return theme2.v3 ? compileTheme_v3(theme2.v3) : theme2.v2 ? `/* v2 - not supported */
4327
+ function _compileTheme(theme) {
4328
+ return theme.v3 ? _compileTheme_v3(theme.v3) : theme.v2 ? `/* v2 - not supported */
4537
4329
  ` : `/* v0 - not supported */
4538
4330
  `;
4539
4331
  }
4332
+ function _resp(prefix, prop) {
4333
+ if (!(prop === void 0 || prop === !1))
4334
+ return Array.isArray(prop) ? prop.map((value, index) => {
4335
+ if (value === void 0 || typeof prop == "boolean" && prop === !1) return;
4336
+ const className = (typeof value == "boolean" ? [prefix] : [prefix, value]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
4337
+ return index === 0 ? className : `${index}:${className}`;
4338
+ }).filter(Boolean).join(" ") : (typeof prop == "boolean" ? [prefix] : [prefix, prop]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
4339
+ }
4340
+ function _getClassNames(...classNames) {
4341
+ return classNames.map((n) => typeof n == "string" && n.trim()).filter(Boolean).join(" ").split(" ");
4342
+ }
4343
+ function composeClassNames(...classNames) {
4344
+ return unique(_getClassNames(...classNames)).join(" ") || void 0;
4345
+ }
4346
+ function unique(array) {
4347
+ return Array.from(new Set(array));
4348
+ }
4349
+ function border(props) {
4350
+ return composeClassNames(_resp("border", props.border), _resp("border-t", props.borderTop), _resp("border-r", props.borderRight), _resp("border-b", props.borderBottom), _resp("border-l", props.borderLeft));
4351
+ }
4352
+ function display(props) {
4353
+ return composeClassNames(_resp(void 0, props.display));
4354
+ }
4355
+ function flex(props) {
4356
+ return composeClassNames(_resp("flex-align", props.align), _resp("f", props.direction), _resp("flex-justify", props.justify), _resp("flex", props.wrap));
4357
+ }
4358
+ function flexItem(props) {
4359
+ return composeClassNames(_resp("f", props.flex));
4360
+ }
4361
+ function font(props) {
4362
+ return composeClassNames("font", props.weight && `font-${props.weight}`);
4363
+ }
4364
+ function gap(props) {
4365
+ return composeClassNames(_resp("g", props.gap), _resp("gx", props.gapX), _resp("gy", props.gapY));
4366
+ }
4367
+ function grid(props) {
4368
+ return composeClassNames(_resp("auto-cols", props.autoCols), _resp("auto-flow", props.autoFlow), _resp("auto-rows", props.autoRows), _resp("cols", props.columns), _resp("rows", props.rows));
4369
+ }
4370
+ function gridItem(props) {
4371
+ return composeClassNames(_resp("col", props.column), _resp("col-start", props.columnStart), _resp("col-end", props.columnEnd), _resp("row", props.row), _resp("row-start", props.rowStart), _resp("row-end", props.rowEnd));
4372
+ }
4373
+ function height(props) {
4374
+ return composeClassNames(_resp("h", props.height));
4375
+ }
4376
+ function inset(props) {
4377
+ return composeClassNames(_resp("inset", props.inset), _resp("top", props.insetTop), _resp("right", props.insetRight), _resp("bottom", props.insetBottom), _resp("left", props.insetLeft));
4378
+ }
4379
+ function margin(props) {
4380
+ return composeClassNames(_resp("m", props.margin), _resp("mx", props.marginX), _resp("my", props.marginY), _resp("mt", props.marginTop), _resp("mr", props.marginRight), _resp("mb", props.marginBottom), _resp("ml", props.marginLeft));
4381
+ }
4382
+ function maxWidth(props) {
4383
+ return _resp("max-w", props.maxWidth) ?? "";
4384
+ }
4385
+ function minWidth(props) {
4386
+ return _resp("min-w", props.minWidth) ?? "";
4387
+ }
4388
+ function overflow(props) {
4389
+ return composeClassNames(_resp("overflow", props.overflow), _resp("overflow-x", props.overflowX), _resp("overflow-y", props.overflowY));
4390
+ }
4391
+ function padding(props) {
4392
+ return composeClassNames(_resp("p", props.padding), _resp("px", props.paddingX), _resp("py", props.paddingY), _resp("pt", props.paddingTop), _resp("pr", props.paddingRight), _resp("pb", props.paddingBottom), _resp("pl", props.paddingLeft));
4393
+ }
4394
+ function pointerEvents(props) {
4395
+ return composeClassNames(props.pointerEvents && `pointer-events-${props.pointerEvents}`);
4396
+ }
4397
+ function position(props) {
4398
+ return composeClassNames(_resp("position", props.position));
4399
+ }
4400
+ function radius(props) {
4401
+ return composeClassNames(_resp("r", props.radius));
4402
+ }
4403
+ function shadow(props) {
4404
+ return composeClassNames(_resp("shadow", props.shadow));
4405
+ }
4406
+ function textAlign(props) {
4407
+ return composeClassNames(_resp("text-align", props.textAlign));
4408
+ }
4409
+ function scopeClassName(className) {
4410
+ if (className !== void 0)
4411
+ return `${PREFIX}${className.trim()}`;
4412
+ }
4413
+ function _comp(...classNames) {
4414
+ return _getClassNames(...classNames).filter(Boolean).map(scopeClassName).join(" ") || void 0;
4415
+ }
4416
+ function textOverflow(props) {
4417
+ return _comp(props.textOverflow && `text-overflow-${props.textOverflow}`);
4418
+ }
4419
+ function width(props) {
4420
+ return _resp("w", props.width) ?? "";
4421
+ }
4540
4422
  function breadcrumbs() {
4541
4423
  return _comp("breadcrumbs");
4542
4424
  }
@@ -4671,15 +4553,12 @@ function box(props) {
4671
4553
  pointerEvents(props),
4672
4554
  position(props),
4673
4555
  radius(props),
4556
+ textAlign(props),
4674
4557
  width(props)
4675
4558
  );
4676
4559
  }
4677
4560
  function button(props) {
4678
- const {
4679
- mode,
4680
- tone
4681
- } = props;
4682
- return _comp("button", variantMap[mode ?? "default"], toneMap[tone ?? "default"], display(props), flexItem(props), radius(props), width(props));
4561
+ return _comp("button", display(props), flexItem(props), radius(props), width(props));
4683
4562
  }
4684
4563
  function buttonLoadingBox() {
4685
4564
  return "button-loading-box";
@@ -4702,13 +4581,17 @@ function container(props) {
4702
4581
  }));
4703
4582
  }
4704
4583
  function heading(props) {
4705
- return _comp("block", "heading", font(props), props.accent && "heading-accent", props.muted && "heading-muted", _resp("heading", props.size), flexItem(props));
4584
+ return _comp("block", "heading", font(props), props.accent && "heading-accent", props.muted && "heading-muted", _resp("heading", props.size), flexItem(props), textAlign({
4585
+ textAlign: props.align
4586
+ }));
4706
4587
  }
4707
4588
  function kbd(props) {
4708
4589
  return _comp("kbd", radius(props));
4709
4590
  }
4710
4591
  function label(props) {
4711
- return _comp("label", "block", font(props), props.accent && "label-accent", props.muted && "label-muted", _resp("label", props.size));
4592
+ return _comp("label", "block", font(props), props.accent && "label-accent", props.muted && "label-muted", _resp("label", props.size), textAlign({
4593
+ textAlign: props.align
4594
+ }));
4712
4595
  }
4713
4596
  function popover() {
4714
4597
  return _comp("popover");
@@ -4750,7 +4633,9 @@ function _switchTrack() {
4750
4633
  return _comp("switch-track");
4751
4634
  }
4752
4635
  function text(props) {
4753
- return _comp("text", "block", flexItem(props), font(props), props.accent && "text-accent", props.muted && "text-muted", _resp("text", props.size));
4636
+ return _comp("text", "block", flexItem(props), font(props), props.accent && "text-accent", props.muted && "text-muted", _resp("text", props.size), textAlign({
4637
+ textAlign: props.align
4638
+ }));
4754
4639
  }
4755
4640
  function textArea(props) {
4756
4641
  return composeClassNames(_comp("text-area"), _input(props));
@@ -4767,106 +4652,109 @@ function tooltipCard() {
4767
4652
  function srOnly() {
4768
4653
  return _comp(composeClassNames("sr-only"));
4769
4654
  }
4770
- exports.BREAKPOINTS = BREAKPOINTS;
4771
- exports.PREFIX = PREFIX;
4772
- exports._arrow = _arrow;
4773
- exports._arrowShape = _arrowShape;
4774
- exports._arrowStroke = _arrowStroke;
4775
- exports._arrowStrokeMask = _arrowStrokeMask;
4776
- exports._getClassNames = _getClassNames;
4777
- exports._input = _input;
4778
- exports._inputElement = _inputElement;
4779
- exports._inputPresentation = _inputPresentation;
4780
- exports._selectable = _selectable;
4781
- exports._switch = _switch;
4782
- exports._switchElement = _switchElement;
4783
- exports._switchPresentation = _switchPresentation;
4784
- exports._switchThumb = _switchThumb;
4785
- exports._switchTrack = _switchTrack;
4786
- exports.animatedSpinnerIcon = animatedSpinnerIcon;
4787
- exports.avatar = avatar;
4788
- exports.avatarArrow = avatarArrow;
4789
- exports.avatarCounter = avatarCounter;
4790
- exports.avatarImage = avatarImage;
4791
- exports.avatarInitials = avatarInitials;
4792
- exports.avatarStack = avatarStack;
4793
- exports.badge = badge;
4794
- exports.border = border;
4795
- exports.box = box;
4796
- exports.breadcrumbs = breadcrumbs;
4797
- exports.button = button;
4798
- exports.buttonLoadingBox = buttonLoadingBox;
4799
- exports.card = card;
4800
- exports.checkbox = checkbox;
4801
- exports.checkboxInput = checkboxInput;
4802
- exports.code = code;
4803
- exports.codeSkeleton = codeSkeleton;
4804
- exports.compilePalette = compilePalette;
4805
- exports.compileSystem = compileSystem;
4806
- exports.compileTheme = compileTheme;
4807
- exports.composeClassNames = composeClassNames;
4808
- exports.container = container;
4809
- exports.dialog = dialog;
4810
- exports.dialogCardRoot = dialogCardRoot;
4811
- exports.dialogContainer = dialogContainer;
4812
- exports.dialogContent = dialogContent;
4813
- exports.dialogFooter = dialogFooter;
4814
- exports.dialogHeader = dialogHeader;
4815
- exports.dialogLayout = dialogLayout;
4816
- exports.display = display;
4817
- exports.flex = flex;
4818
- exports.flexItem = flexItem;
4819
- exports.font = font;
4820
- exports.gap = gap;
4821
- exports.grid = grid;
4822
- exports.gridItem = gridItem;
4823
- exports.heading = heading;
4824
- exports.headingSkeleton = headingSkeleton;
4825
- exports.height = height;
4826
- exports.inset = inset;
4827
- exports.isArray = isArray;
4828
- exports.isRecord = isRecord;
4829
- exports.kbd = kbd;
4830
- exports.label = label;
4831
- exports.labelSkeleton = labelSkeleton;
4832
- exports.margin = margin;
4833
- exports.maxWidth = maxWidth;
4834
- exports.menu = menu;
4835
- exports.menuDivider = menuDivider;
4836
- exports.minWidth = minWidth;
4837
- exports.overflow = overflow;
4838
- exports.padding = padding;
4839
- exports.pointerEvents = pointerEvents;
4840
- exports.popover = popover;
4841
- exports.popoverCard = popoverCard;
4842
- exports.position = position;
4843
- exports.px = px;
4844
- exports.radio = radio;
4845
- exports.radius = radius;
4846
- exports.rem = rem;
4847
- exports.scopeClassName = scopeClassName;
4848
- exports.select = select;
4849
- exports.selectPresentation = selectPresentation;
4850
- exports.shadow = shadow;
4851
- exports.skeleton = skeleton;
4852
- exports.spinner = spinner;
4853
- exports.srOnly = srOnly;
4854
- exports.stack = stack;
4855
- exports.text = text;
4856
- exports.textArea = textArea;
4857
- exports.textInput = textInput;
4858
- exports.textOverflow = textOverflow;
4859
- exports.textSkeleton = textSkeleton;
4860
- exports.toBoxShadow = toBoxShadow;
4861
- exports.toast = toast;
4862
- exports.toastLayer = toastLayer;
4863
- exports.toastLoadingBar = toastLoadingBar;
4864
- exports.toastLoadingBarMask = toastLoadingBarMask;
4865
- exports.toastLoadingBarProgress = toastLoadingBarProgress;
4866
- exports.tooltip = tooltip;
4867
- exports.tooltipCard = tooltipCard;
4868
- exports.treeItem = treeItem;
4869
- exports.varNames = varNames;
4870
- exports.vars = vars;
4871
- exports.width = width;
4655
+ export {
4656
+ BREAKPOINTS,
4657
+ PREFIX,
4658
+ _arrow,
4659
+ _arrowShape,
4660
+ _arrowStroke,
4661
+ _arrowStrokeMask,
4662
+ _compilePalette,
4663
+ _compileSystem,
4664
+ _compileTheme,
4665
+ _getClassNames,
4666
+ _input,
4667
+ _inputElement,
4668
+ _inputPresentation,
4669
+ _selectable,
4670
+ _switch,
4671
+ _switchElement,
4672
+ _switchPresentation,
4673
+ _switchThumb,
4674
+ _switchTrack,
4675
+ animatedSpinnerIcon,
4676
+ avatar,
4677
+ avatarArrow,
4678
+ avatarCounter,
4679
+ avatarImage,
4680
+ avatarInitials,
4681
+ avatarStack,
4682
+ badge,
4683
+ border,
4684
+ box,
4685
+ breadcrumbs,
4686
+ button,
4687
+ buttonLoadingBox,
4688
+ card,
4689
+ checkbox,
4690
+ checkboxInput,
4691
+ code,
4692
+ codeSkeleton,
4693
+ composeClassNames,
4694
+ container,
4695
+ dialog,
4696
+ dialogCardRoot,
4697
+ dialogContainer,
4698
+ dialogContent,
4699
+ dialogFooter,
4700
+ dialogHeader,
4701
+ dialogLayout,
4702
+ display,
4703
+ flex,
4704
+ flexItem,
4705
+ font,
4706
+ gap,
4707
+ grid,
4708
+ gridItem,
4709
+ heading,
4710
+ headingSkeleton,
4711
+ height,
4712
+ inset,
4713
+ isArray,
4714
+ isRecord,
4715
+ kbd,
4716
+ label,
4717
+ labelSkeleton,
4718
+ margin,
4719
+ maxWidth,
4720
+ menu,
4721
+ menuDivider,
4722
+ minWidth,
4723
+ overflow,
4724
+ padding,
4725
+ pointerEvents,
4726
+ popover,
4727
+ popoverCard,
4728
+ position,
4729
+ px,
4730
+ radio,
4731
+ radius,
4732
+ rem,
4733
+ scopeClassName,
4734
+ select,
4735
+ selectPresentation,
4736
+ shadow,
4737
+ skeleton,
4738
+ spinner,
4739
+ srOnly,
4740
+ stack,
4741
+ text,
4742
+ textAlign,
4743
+ textArea,
4744
+ textInput,
4745
+ textOverflow,
4746
+ textSkeleton,
4747
+ toBoxShadow,
4748
+ toast,
4749
+ toastLayer,
4750
+ toastLoadingBar,
4751
+ toastLoadingBarMask,
4752
+ toastLoadingBarProgress,
4753
+ tooltip,
4754
+ tooltipCard,
4755
+ treeItem,
4756
+ varNames,
4757
+ vars,
4758
+ width
4759
+ };
4872
4760
  //# sourceMappingURL=css.js.map