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