@sanity/ui 3.0.0-static.2 → 3.0.0-static.4

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 (685) hide show
  1. package/dist/_chunks-cjs/_visual-editing.js +197 -168
  2. package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
  3. package/dist/_chunks-cjs/buildCommand.js +1 -1
  4. package/dist/_chunks-cjs/buildCommand.js.map +1 -1
  5. package/dist/_chunks-cjs/refractor.js.map +1 -1
  6. package/dist/_chunks-es/_visual-editing.mjs +200 -171
  7. package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
  8. package/dist/_chunks-es/refractor.mjs.map +1 -1
  9. package/dist/_visual-editing.d.mts +3 -1
  10. package/dist/_visual-editing.d.ts +3 -1
  11. package/dist/cli.js +1 -1
  12. package/dist/css.d.mts +186 -164
  13. package/dist/css.d.ts +186 -164
  14. package/dist/css.js +1983 -1949
  15. package/dist/css.js.map +1 -1
  16. package/dist/css.mjs +1984 -1949
  17. package/dist/css.mjs.map +1 -1
  18. package/dist/index.d.mts +32 -3
  19. package/dist/index.d.ts +32 -3
  20. package/dist/index.js +18 -17
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.mjs +19 -18
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/sanity-palette.css +1 -9
  25. package/dist/sanity-theme.css +1 -1
  26. package/dist/system.css +22805 -3569
  27. package/dist/theme.d.mts +4 -46
  28. package/dist/theme.d.ts +4 -46
  29. package/dist/theme.js +20 -69
  30. package/dist/theme.js.map +1 -1
  31. package/dist/theme.mjs +20 -69
  32. package/dist/theme.mjs.map +1 -1
  33. package/exports/_visual-editing.ts +27 -27
  34. package/exports/index.ts +1 -1
  35. package/package.json +40 -40
  36. package/src/cli/buildCommand.ts +2 -2
  37. package/src/css/_comp.test.ts +7 -0
  38. package/src/css/_comp.ts +11 -0
  39. package/src/css/_mergeStyles.ts +31 -0
  40. package/src/css/_resp.ts +12 -5
  41. package/src/css/_responsiveRule.ts +38 -0
  42. package/src/css/aspects/border/border.style.ts +13 -0
  43. package/src/css/aspects/border/border.ts +14 -0
  44. package/src/css/aspects/display/display.style.ts +34 -0
  45. package/src/css/aspects/flex/flex.style.ts +30 -0
  46. package/src/css/aspects/flex/flex.ts +13 -0
  47. package/src/css/aspects/flex/flexAlign.style.ts +12 -0
  48. package/src/css/aspects/flex/flexDirection.style.ts +11 -0
  49. package/src/css/aspects/flex/flexJustify.style.ts +13 -0
  50. package/src/css/aspects/flex/flexWrap.style.ts +10 -0
  51. package/src/css/aspects/flexItem/flex.style.ts +22 -0
  52. package/src/css/{styles → aspects}/flexItem/flexItem.ts +1 -1
  53. package/src/css/{styles → aspects}/flexItem/types.ts +17 -1
  54. package/src/css/{styles/font/rules.ts → aspects/font/font.style.ts} +28 -25
  55. package/src/css/{styles → aspects}/font/font.ts +2 -7
  56. package/src/css/aspects/gap/gap.style.ts +21 -0
  57. package/src/css/{styles → aspects}/grid/grid.ts +2 -2
  58. package/src/css/aspects/grid/gridAutoColumns.style.ts +11 -0
  59. package/src/css/aspects/grid/gridAutoFlow.style.ts +11 -0
  60. package/src/css/aspects/grid/gridAutoRows.style.ts +11 -0
  61. package/src/css/aspects/grid/gridColumns.style.ts +18 -0
  62. package/src/css/aspects/grid/gridRows.style.ts +18 -0
  63. package/src/css/aspects/gridItem/gridColumn.style.ts +20 -0
  64. package/src/css/aspects/gridItem/gridColumnEnd.style.ts +20 -0
  65. package/src/css/aspects/gridItem/gridColumnStart.style.ts +20 -0
  66. package/src/css/aspects/gridItem/gridRow.style.ts +20 -0
  67. package/src/css/aspects/gridItem/gridRowEnd.style.ts +20 -0
  68. package/src/css/aspects/gridItem/gridRowStart.style.ts +20 -0
  69. package/src/css/aspects/height/height.style.ts +9 -0
  70. package/src/css/aspects/height/height.ts +17 -0
  71. package/src/css/aspects/height/index.ts +1 -0
  72. package/src/css/{styles → aspects}/index.ts +1 -0
  73. package/src/css/aspects/inset/inset.style.ts +12 -0
  74. package/src/css/aspects/margin/margin.style.ts +46 -0
  75. package/src/css/aspects/maxWidth/maxWidth.style.ts +16 -0
  76. package/src/css/{styles → aspects}/maxWidth/types.ts +1 -1
  77. package/src/css/aspects/outline/outline.style.ts +9 -0
  78. package/src/css/aspects/overflow/overflow.style.ts +11 -0
  79. package/src/css/aspects/padding/padding.style.ts +46 -0
  80. package/src/css/aspects/pointerEvents/pointerEvents.style.ts +13 -0
  81. package/src/css/aspects/position/position.style.ts +12 -0
  82. package/src/css/{styles → aspects}/position/position.ts +1 -1
  83. package/src/css/aspects/radius/radius.style.ts +16 -0
  84. package/src/css/{styles → aspects}/radius/types.ts +1 -1
  85. package/src/css/aspects/shadow/shadow.style.ts +49 -0
  86. package/src/css/aspects/textOverflow/textOverflow.style.ts +21 -0
  87. package/src/css/aspects/textOverflow/textOverflow.ts +6 -0
  88. package/src/css/{styles → aspects}/width/rules.ts +1 -0
  89. package/src/css/{styles → aspects}/width/types.ts +1 -1
  90. package/src/css/aspects/width/width.style.ts +11 -0
  91. package/src/css/compile/compilePalette.ts +8 -41
  92. package/src/css/compile/compileRule.ts +7 -1
  93. package/src/css/compile/compileRules.test.ts +1 -0
  94. package/src/css/compile/compileRules.ts +6 -3
  95. package/src/css/compile/compileStyle.ts +148 -0
  96. package/src/css/compile/compileSystem.ts +6 -3
  97. package/src/css/compile/compileTheme_v3.ts +0 -18
  98. package/src/css/components/breadcrumbs/breadcrumbs.style.ts +9 -0
  99. package/src/css/components/breadcrumbs/breadcrumbs.ts +2 -2
  100. package/src/css/components/dialog/dialog.style.ts +79 -0
  101. package/src/css/components/dialog/dialog.ts +9 -8
  102. package/src/css/components/dialog/rules.ts +2 -0
  103. package/src/css/components/menu/menu.style.ts +17 -0
  104. package/src/css/components/menu/menu.ts +3 -3
  105. package/src/css/components/skeleton/rules.ts +1 -0
  106. package/src/css/components/skeleton/skeleton.style.ts +96 -0
  107. package/src/css/components/skeleton/skeleton.ts +7 -7
  108. package/src/css/components/skeleton/types.ts +1 -1
  109. package/src/css/components/toast/rules.ts +1 -0
  110. package/src/css/components/toast/toast.style.ts +20 -0
  111. package/src/css/components/toast/toast.ts +6 -6
  112. package/src/css/components/tree/tree.style.ts +55 -0
  113. package/src/css/components/tree/tree.ts +2 -2
  114. package/src/css/composeClassNames.ts +9 -5
  115. package/src/css/constants.ts +1 -0
  116. package/src/css/index.ts +2 -1
  117. package/src/css/primitives/_arrow/{rules.ts → _arrow.style.ts} +7 -5
  118. package/src/css/primitives/_arrow/_arrow.ts +6 -6
  119. package/src/css/primitives/_input/__workshop__/customInput.tsx +16 -0
  120. package/src/css/primitives/_input/__workshop__/index.ts +14 -0
  121. package/src/css/primitives/_input/{rules.ts → _input.style.ts} +19 -20
  122. package/src/css/primitives/_input/input.ts +12 -12
  123. package/src/css/primitives/_input/types.ts +1 -1
  124. package/src/css/primitives/_selectable/_contants.ts +1 -1
  125. package/src/css/primitives/_selectable/{rules.ts → _selectable.style.ts} +6 -3
  126. package/src/css/primitives/_selectable/selectable.ts +3 -3
  127. package/src/css/primitives/_selectable/types.ts +1 -1
  128. package/src/css/primitives/avatar/avatar.style.ts +175 -0
  129. package/src/css/primitives/avatar/avatar.ts +7 -7
  130. package/src/css/primitives/badge/badge.style.ts +22 -0
  131. package/src/css/primitives/badge/badge.ts +3 -3
  132. package/src/css/primitives/badge/types.ts +1 -1
  133. package/src/css/primitives/box/box.style.ts +31 -0
  134. package/src/css/primitives/box/box.ts +11 -6
  135. package/src/css/primitives/box/types.ts +3 -7
  136. package/src/css/primitives/button/_constants.ts +1 -1
  137. package/src/css/primitives/button/button.style.ts +179 -0
  138. package/src/css/primitives/button/button.ts +3 -3
  139. package/src/css/primitives/button/rules.ts +19 -10
  140. package/src/css/primitives/card/_constants.ts +2 -2
  141. package/src/css/primitives/card/card.style.ts +198 -0
  142. package/src/css/primitives/card/card.ts +4 -6
  143. package/src/css/primitives/card/rules.ts +2 -0
  144. package/src/css/primitives/card/types.ts +1 -1
  145. package/src/css/primitives/checkbox/checkbox.style.ts +154 -0
  146. package/src/css/primitives/checkbox/checkbox.ts +3 -3
  147. package/src/css/primitives/code/code.style.ts +62 -0
  148. package/src/css/primitives/code/code.ts +3 -3
  149. package/src/css/primitives/code/types.ts +1 -1
  150. package/src/css/primitives/container/container.style.ts +10 -0
  151. package/src/css/primitives/container/container.ts +3 -3
  152. package/src/css/primitives/heading/heading.style.ts +47 -0
  153. package/src/css/primitives/heading/heading.ts +5 -5
  154. package/src/css/primitives/heading/types.ts +1 -1
  155. package/src/css/primitives/kbd/kbd.style.ts +22 -0
  156. package/src/css/primitives/kbd/kbd.ts +3 -3
  157. package/src/css/primitives/kbd/types.ts +1 -1
  158. package/src/css/primitives/label/label.style.ts +48 -0
  159. package/src/css/primitives/label/label.ts +3 -3
  160. package/src/css/primitives/label/types.ts +1 -1
  161. package/src/css/primitives/popover/popover.style.ts +5 -0
  162. package/src/css/primitives/popover/popover.ts +2 -2
  163. package/src/css/primitives/radio/radio.style.ts +123 -0
  164. package/src/css/primitives/radio/radio.ts +2 -2
  165. package/src/css/primitives/select/select.style.ts +24 -0
  166. package/src/css/primitives/select/select.ts +3 -2
  167. package/src/css/primitives/spinner/rules.ts +1 -0
  168. package/src/css/primitives/spinner/spinner.style.ts +22 -0
  169. package/src/css/primitives/spinner/spinner.ts +3 -3
  170. package/src/css/primitives/switch/switch.style.ts +169 -0
  171. package/src/css/primitives/switch/switch.ts +6 -6
  172. package/src/css/primitives/text/text.style.ts +56 -0
  173. package/src/css/primitives/text/text.ts +3 -3
  174. package/src/css/primitives/text/types.ts +1 -1
  175. package/src/css/primitives/textArea/textArea.style.ts +9 -0
  176. package/src/css/primitives/textArea/textArea.ts +2 -1
  177. package/src/css/primitives/textInput/textInput.style.ts +167 -0
  178. package/src/css/primitives/textInput/textInput.ts +2 -2
  179. package/src/css/primitives/token/token.style.ts +49 -0
  180. package/src/css/primitives/tooltip/tooltip.style.ts +21 -0
  181. package/src/css/primitives/tooltip/tooltip.ts +3 -3
  182. package/src/css/scopeClassName.ts +6 -0
  183. package/src/css/system.style.ts +154 -0
  184. package/src/css/types.ts +145 -101
  185. package/src/css/utils/srOnly/srOnly.style.ts +14 -0
  186. package/src/css/varNames.ts +18 -5
  187. package/src/css/vars.ts +13 -0
  188. package/src/theme/_constants.ts +1 -1
  189. package/src/theme/_types.ts +2 -2
  190. package/src/theme/build/buildTheme.ts +2 -2
  191. package/src/theme/defaults/colorTokens.ts +2 -2
  192. package/src/theme/defaults/config.ts +1 -1
  193. package/src/theme/defaults/fonts.ts +4 -4
  194. package/src/theme/palette/constants.ts +1 -3
  195. package/src/theme/palette/types.ts +0 -12
  196. package/src/theme/v3/buildTheme_v3.ts +1 -2
  197. package/src/theme/v3/defaults.ts +12 -31
  198. package/src/theme/v3/types.ts +0 -3
  199. package/src/{core → ui}/StyleTags.tsx +1 -1
  200. package/src/ui/_compat/theme/themeContext.ts +10 -0
  201. package/src/{core → ui}/_compat/theme/themeProvider.tsx +15 -3
  202. package/src/{core → ui}/_compat/types.ts +11 -1
  203. package/src/{core → ui}/components/autocomplete/__workshop__/async.tsx +2 -1
  204. package/src/{core → ui}/components/autocomplete/__workshop__/constrainedHeight.tsx +6 -13
  205. package/src/{core → ui}/components/autocomplete/__workshop__/fullscreen.tsx +3 -4
  206. package/src/{core → ui}/components/autocomplete/__workshop__/index.ts +1 -1
  207. package/src/{core → ui}/components/autocomplete/autocomplete.tsx +5 -2
  208. package/src/{core → ui}/components/hotkeys/hotkeys.tsx +8 -10
  209. package/src/{core → ui}/components/toast/toast.tsx +0 -1
  210. package/src/ui/hooks/useMatchMedia.ts +28 -0
  211. package/src/{core → ui}/hooks/useMediaIndex/useMediaIndex.ts +6 -4
  212. package/src/{core → ui}/primitives/box/box.tsx +1 -0
  213. package/src/{core → ui}/primitives/button/button.tsx +6 -5
  214. package/src/{core → ui}/primitives/card/card.tsx +39 -19
  215. package/src/ui/primitives/card/cardContext.ts +10 -0
  216. package/src/ui/primitives/card/cardProvider.tsx +19 -0
  217. package/src/ui/primitives/card/index.ts +4 -0
  218. package/src/ui/primitives/card/types.ts +27 -0
  219. package/src/ui/primitives/card/useCard.ts +7 -0
  220. package/src/{core → ui}/primitives/heading/heading.tsx +1 -1
  221. package/src/{core → ui}/primitives/popover/__workshop__/OpenOnMountStory.tsx +1 -1
  222. package/src/{core → ui}/primitives/popover/__workshop__/SidePanelStory.tsx +7 -3
  223. package/src/{core → ui}/primitives/popover/popover.tsx +57 -48
  224. package/src/{core → ui}/primitives/popover/popoverCard.tsx +11 -4
  225. package/src/{core → ui}/primitives/select/select.tsx +3 -3
  226. package/src/{core → ui}/primitives/text/text.tsx +1 -1
  227. package/src/{core → ui}/primitives/tooltip/tooltip.test.tsx +2 -2
  228. package/src/{core → ui}/utils/layer/layerProvider.tsx +1 -1
  229. package/src/{core → ui}/utils/portal/portal.ts +15 -2
  230. package/src/{core → ui}/utils/virtualList/virtualList.tsx +2 -1
  231. package/src/core/_compat/theme/themeContext.ts +0 -10
  232. package/src/core/hooks/useMatchMedia.ts +0 -46
  233. package/src/core/primitives/card/index.ts +0 -2
  234. package/src/core/primitives/card/types.ts +0 -12
  235. package/src/css/primitives/badge/rules.ts +0 -22
  236. package/src/css/primitives/box/rules.ts +0 -28
  237. package/src/css/rules.ts +0 -113
  238. package/src/css/styles/border/border.ts +0 -22
  239. package/src/css/styles/border/rules.ts +0 -24
  240. package/src/css/styles/display/rules.ts +0 -62
  241. package/src/css/styles/flex/flex.ts +0 -20
  242. package/src/css/styles/flex/rules.ts +0 -28
  243. package/src/css/styles/flexItem/rules.ts +0 -12
  244. package/src/css/styles/gap/rules.ts +0 -34
  245. package/src/css/styles/grid/rules.ts +0 -146
  246. package/src/css/styles/gridItem/rules.ts +0 -96
  247. package/src/css/styles/inset/rules.ts +0 -16
  248. package/src/css/styles/margin/rules.ts +0 -64
  249. package/src/css/styles/maxWidth/rules.ts +0 -13
  250. package/src/css/styles/outline/rules.ts +0 -7
  251. package/src/css/styles/overflow/rules.ts +0 -9
  252. package/src/css/styles/padding/rules.ts +0 -62
  253. package/src/css/styles/pointerEvents/rules.ts +0 -11
  254. package/src/css/styles/position/rules.ts +0 -24
  255. package/src/css/styles/radius/rules.ts +0 -13
  256. package/src/css/styles/shadow/rules.ts +0 -53
  257. package/src/css/styles/textOverflow/rules.ts +0 -17
  258. package/src/css/styles/textOverflow/textOverflow.ts +0 -6
  259. package/src/css/utils/srOnly/rules.ts +0 -11
  260. /package/src/css/{styles → aspects}/border/index.ts +0 -0
  261. /package/src/css/{styles → aspects}/border/types.ts +0 -0
  262. /package/src/css/{styles → aspects}/display/display.ts +0 -0
  263. /package/src/css/{styles → aspects}/display/index.ts +0 -0
  264. /package/src/css/{styles → aspects}/display/types.ts +0 -0
  265. /package/src/css/{styles → aspects}/flex/index.ts +0 -0
  266. /package/src/css/{styles → aspects}/flex/types.ts +0 -0
  267. /package/src/css/{styles → aspects}/flexItem/index.ts +0 -0
  268. /package/src/css/{styles → aspects}/font/index.ts +0 -0
  269. /package/src/css/{styles → aspects}/font/types.ts +0 -0
  270. /package/src/css/{styles → aspects}/gap/gap.ts +0 -0
  271. /package/src/css/{styles → aspects}/gap/index.ts +0 -0
  272. /package/src/css/{styles → aspects}/gap/types.ts +0 -0
  273. /package/src/css/{styles → aspects}/grid/index.ts +0 -0
  274. /package/src/css/{styles → aspects}/grid/types.ts +0 -0
  275. /package/src/css/{styles → aspects}/gridItem/gridItem.ts +0 -0
  276. /package/src/css/{styles → aspects}/gridItem/index.ts +0 -0
  277. /package/src/css/{styles → aspects}/gridItem/types.ts +0 -0
  278. /package/src/css/{styles → aspects}/height/rules.ts +0 -0
  279. /package/src/css/{styles → aspects}/inset/index.ts +0 -0
  280. /package/src/css/{styles → aspects}/inset/inset.ts +0 -0
  281. /package/src/css/{styles → aspects}/inset/types.ts +0 -0
  282. /package/src/css/{styles → aspects}/margin/index.ts +0 -0
  283. /package/src/css/{styles → aspects}/margin/margin.ts +0 -0
  284. /package/src/css/{styles → aspects}/margin/types.ts +0 -0
  285. /package/src/css/{styles → aspects}/maxWidth/index.ts +0 -0
  286. /package/src/css/{styles → aspects}/maxWidth/maxWidth.ts +0 -0
  287. /package/src/css/{styles → aspects}/overflow/index.ts +0 -0
  288. /package/src/css/{styles → aspects}/overflow/overflow.ts +0 -0
  289. /package/src/css/{styles → aspects}/overflow/types.ts +0 -0
  290. /package/src/css/{styles → aspects}/padding/index.ts +0 -0
  291. /package/src/css/{styles → aspects}/padding/padding.ts +0 -0
  292. /package/src/css/{styles → aspects}/padding/types.ts +0 -0
  293. /package/src/css/{styles → aspects}/pointerEvents/index.ts +0 -0
  294. /package/src/css/{styles → aspects}/pointerEvents/pointerEvents.ts +0 -0
  295. /package/src/css/{styles → aspects}/pointerEvents/types.ts +0 -0
  296. /package/src/css/{styles → aspects}/position/index.ts +0 -0
  297. /package/src/css/{styles → aspects}/position/types.ts +0 -0
  298. /package/src/css/{styles → aspects}/radius/index.ts +0 -0
  299. /package/src/css/{styles → aspects}/radius/radius.ts +0 -0
  300. /package/src/css/{styles → aspects}/shadow/index.ts +0 -0
  301. /package/src/css/{styles → aspects}/shadow/shadow.ts +0 -0
  302. /package/src/css/{styles → aspects}/shadow/types.ts +0 -0
  303. /package/src/css/{styles → aspects}/textOverflow/index.ts +0 -0
  304. /package/src/css/{styles → aspects}/textOverflow/types.ts +0 -0
  305. /package/src/css/{styles → aspects}/width/index.ts +0 -0
  306. /package/src/css/{styles → aspects}/width/width.ts +0 -0
  307. /package/src/{core → ui}/_compat/index.ts +0 -0
  308. /package/src/{core → ui}/_compat/styles/_responsive.ts +0 -0
  309. /package/src/{core → ui}/_compat/styles/index.ts +0 -0
  310. /package/src/{core → ui}/_compat/theme/index.ts +0 -0
  311. /package/src/{core → ui}/_compat/theme/theme.test.tsx +0 -0
  312. /package/src/{core → ui}/_compat/theme/themeColorProvider.tsx +0 -0
  313. /package/src/{core → ui}/_compat/theme/types.ts +0 -0
  314. /package/src/{core → ui}/_compat/theme/useRootTheme.ts +0 -0
  315. /package/src/{core → ui}/_compat/theme/useTheme.ts +0 -0
  316. /package/src/{core → ui}/components/autocomplete/__mocks__/apiStore.ts +0 -0
  317. /package/src/{core → ui}/components/autocomplete/__mocks__/countries.ts +0 -0
  318. /package/src/{core → ui}/components/autocomplete/__workshop__/custom.tsx +0 -0
  319. /package/src/{core → ui}/components/autocomplete/__workshop__/example.tsx +0 -0
  320. /package/src/{core → ui}/components/autocomplete/__workshop__/focusAndBlur.tsx +0 -0
  321. /package/src/{core → ui}/components/autocomplete/__workshop__/types.ts +0 -0
  322. /package/src/{core → ui}/components/autocomplete/autocompleteOption.tsx +0 -0
  323. /package/src/{core → ui}/components/autocomplete/autocompleteReducer.ts +0 -0
  324. /package/src/{core → ui}/components/autocomplete/constants.ts +0 -0
  325. /package/src/{core → ui}/components/autocomplete/index.ts +0 -0
  326. /package/src/{core → ui}/components/autocomplete/types.ts +0 -0
  327. /package/src/{core → ui}/components/breadcrumbs/__workshop__/example.tsx +0 -0
  328. /package/src/{core → ui}/components/breadcrumbs/__workshop__/index.ts +0 -0
  329. /package/src/{core → ui}/components/breadcrumbs/breadcrumbs.tsx +0 -0
  330. /package/src/{core → ui}/components/breadcrumbs/index.ts +0 -0
  331. /package/src/{core → ui}/components/dialog/__workshop__/activate.tsx +0 -0
  332. /package/src/{core → ui}/components/dialog/__workshop__/autoFocus.tsx +0 -0
  333. /package/src/{core → ui}/components/dialog/__workshop__/index.ts +0 -0
  334. /package/src/{core → ui}/components/dialog/__workshop__/layering.tsx +0 -0
  335. /package/src/{core → ui}/components/dialog/__workshop__/nested.tsx +0 -0
  336. /package/src/{core → ui}/components/dialog/__workshop__/onScroll.tsx +0 -0
  337. /package/src/{core → ui}/components/dialog/__workshop__/panes.tsx +0 -0
  338. /package/src/{core → ui}/components/dialog/__workshop__/position.tsx +0 -0
  339. /package/src/{core → ui}/components/dialog/__workshop__/props.tsx +0 -0
  340. /package/src/{core → ui}/components/dialog/__workshop__/provider.tsx +0 -0
  341. /package/src/{core → ui}/components/dialog/__workshop__/wrapped.tsx +0 -0
  342. /package/src/{core → ui}/components/dialog/dialog.tsx +0 -0
  343. /package/src/{core → ui}/components/dialog/dialogContext.ts +0 -0
  344. /package/src/{core → ui}/components/dialog/dialogProvider.tsx +0 -0
  345. /package/src/{core → ui}/components/dialog/index.ts +0 -0
  346. /package/src/{core → ui}/components/dialog/useDialog.ts +0 -0
  347. /package/src/{core → ui}/components/hotkeys/__workshop__/index.ts +0 -0
  348. /package/src/{core → ui}/components/hotkeys/__workshop__/plain.tsx +0 -0
  349. /package/src/{core → ui}/components/hotkeys/index.ts +0 -0
  350. /package/src/{core → ui}/components/index.ts +0 -0
  351. /package/src/{core → ui}/components/menu/__workshop__/asComponent.tsx +0 -0
  352. /package/src/{core → ui}/components/menu/__workshop__/avatarMenu.tsx +0 -0
  353. /package/src/{core → ui}/components/menu/__workshop__/closableMenuButton.tsx +0 -0
  354. /package/src/{core → ui}/components/menu/__workshop__/constrainedInBoundary.tsx +0 -0
  355. /package/src/{core → ui}/components/menu/__workshop__/customMenuItem.tsx +0 -0
  356. /package/src/{core → ui}/components/menu/__workshop__/customSelectedState.tsx +0 -0
  357. /package/src/{core → ui}/components/menu/__workshop__/disableFocusOnClose.tsx +0 -0
  358. /package/src/{core → ui}/components/menu/__workshop__/groups.tsx +0 -0
  359. /package/src/{core → ui}/components/menu/__workshop__/index.ts +0 -0
  360. /package/src/{core → ui}/components/menu/__workshop__/menuButton.tsx +0 -0
  361. /package/src/{core → ui}/components/menu/__workshop__/menuGroupRight.tsx +0 -0
  362. /package/src/{core → ui}/components/menu/__workshop__/nestedMenu.tsx +0 -0
  363. /package/src/{core → ui}/components/menu/__workshop__/onCloseMenuButton.tsx +0 -0
  364. /package/src/{core → ui}/components/menu/__workshop__/selectedItem.tsx +0 -0
  365. /package/src/{core → ui}/components/menu/__workshop__/shouldFocus.tsx +0 -0
  366. /package/src/{core → ui}/components/menu/__workshop__/tones.tsx +0 -0
  367. /package/src/{core → ui}/components/menu/__workshop__/withoutArrow.tsx +0 -0
  368. /package/src/{core → ui}/components/menu/helpers.ts +0 -0
  369. /package/src/{core → ui}/components/menu/index.ts +0 -0
  370. /package/src/{core → ui}/components/menu/menu.test.tsx +0 -0
  371. /package/src/{core → ui}/components/menu/menu.tsx +0 -0
  372. /package/src/{core → ui}/components/menu/menuButton.tsx +0 -0
  373. /package/src/{core → ui}/components/menu/menuContext.ts +0 -0
  374. /package/src/{core → ui}/components/menu/menuDivider.tsx +0 -0
  375. /package/src/{core → ui}/components/menu/menuGroup.tsx +0 -0
  376. /package/src/{core → ui}/components/menu/menuItem.tsx +0 -0
  377. /package/src/{core → ui}/components/menu/useMenu.ts +0 -0
  378. /package/src/{core → ui}/components/menu/useMenuController.ts +0 -0
  379. /package/src/{core → ui}/components/skeleton/__workshop__/delay.tsx +0 -0
  380. /package/src/{core → ui}/components/skeleton/__workshop__/index.ts +0 -0
  381. /package/src/{core → ui}/components/skeleton/__workshop__/skeleton.tsx +0 -0
  382. /package/src/{core → ui}/components/skeleton/index.ts +0 -0
  383. /package/src/{core → ui}/components/skeleton/skeleton.tsx +0 -0
  384. /package/src/{core → ui}/components/skeleton/textSkeleton.tsx +0 -0
  385. /package/src/{core → ui}/components/tab/__workshop__/example.tsx +0 -0
  386. /package/src/{core → ui}/components/tab/__workshop__/index.ts +0 -0
  387. /package/src/{core → ui}/components/tab/index.ts +0 -0
  388. /package/src/{core → ui}/components/tab/tab.tsx +0 -0
  389. /package/src/{core → ui}/components/tab/tabList.tsx +0 -0
  390. /package/src/{core → ui}/components/tab/tabPanel.tsx +0 -0
  391. /package/src/{core → ui}/components/toast/__workshop__/hook.tsx +0 -0
  392. /package/src/{core → ui}/components/toast/__workshop__/index.ts +0 -0
  393. /package/src/{core → ui}/components/toast/__workshop__/toast.tsx +0 -0
  394. /package/src/{core → ui}/components/toast/index.ts +0 -0
  395. /package/src/{core → ui}/components/toast/toast.test.tsx +0 -0
  396. /package/src/{core → ui}/components/toast/toastContext.ts +0 -0
  397. /package/src/{core → ui}/components/toast/toastLayer.tsx +0 -0
  398. /package/src/{core → ui}/components/toast/toastProvider.tsx +0 -0
  399. /package/src/{core → ui}/components/toast/toastState.ts +0 -0
  400. /package/src/{core → ui}/components/toast/types.ts +0 -0
  401. /package/src/{core → ui}/components/toast/useToast.ts +0 -0
  402. /package/src/{core → ui}/components/tree/__workshop__/basic.perf.ts +0 -0
  403. /package/src/{core → ui}/components/tree/__workshop__/basic.tsx +0 -0
  404. /package/src/{core → ui}/components/tree/__workshop__/index.ts +0 -0
  405. /package/src/{core → ui}/components/tree/__workshop__/tabFromElement.tsx +0 -0
  406. /package/src/{core → ui}/components/tree/helpers.ts +0 -0
  407. /package/src/{core → ui}/components/tree/index.ts +0 -0
  408. /package/src/{core → ui}/components/tree/tree.tsx +0 -0
  409. /package/src/{core → ui}/components/tree/treeContext.ts +0 -0
  410. /package/src/{core → ui}/components/tree/treeGroup.tsx +0 -0
  411. /package/src/{core → ui}/components/tree/treeItem.tsx +0 -0
  412. /package/src/{core → ui}/components/tree/types.ts +0 -0
  413. /package/src/{core → ui}/components/tree/useTree.ts +0 -0
  414. /package/src/{core → ui}/constants.ts +0 -0
  415. /package/src/{core → ui}/global.ts +0 -0
  416. /package/src/{core → ui}/helpers/animation.ts +0 -0
  417. /package/src/{core → ui}/helpers/element.ts +0 -0
  418. /package/src/{core → ui}/helpers/focus.ts +0 -0
  419. /package/src/{core → ui}/helpers/index.ts +0 -0
  420. /package/src/{core → ui}/helpers/props.ts +0 -0
  421. /package/src/{core → ui}/helpers/scroll.ts +0 -0
  422. /package/src/{core → ui}/hooks/index.ts +0 -0
  423. /package/src/{core → ui}/hooks/useArrayProp.ts +0 -0
  424. /package/src/{core → ui}/hooks/useClickOutside.test.tsx +0 -0
  425. /package/src/{core → ui}/hooks/useClickOutside.ts +0 -0
  426. /package/src/{core → ui}/hooks/useClickOutsideEvent.test.tsx +0 -0
  427. /package/src/{core → ui}/hooks/useClickOutsideEvent.ts +0 -0
  428. /package/src/{core → ui}/hooks/useCustomValidity.ts +0 -0
  429. /package/src/{core → ui}/hooks/useDelayed.test.ts +0 -0
  430. /package/src/{core → ui}/hooks/useDelayedState.ts +0 -0
  431. /package/src/{core → ui}/hooks/useElementRect/__workshop__/example.tsx +0 -0
  432. /package/src/{core → ui}/hooks/useElementRect/__workshop__/index.ts +0 -0
  433. /package/src/{core → ui}/hooks/useElementRect/index.ts +0 -0
  434. /package/src/{core → ui}/hooks/useElementRect/useElementRect.ts +0 -0
  435. /package/src/{core → ui}/hooks/useElementSize.ts +0 -0
  436. /package/src/{core → ui}/hooks/useForwardedRef.ts +0 -0
  437. /package/src/{core → ui}/hooks/useGlobalKeyDown.ts +0 -0
  438. /package/src/{core → ui}/hooks/useIsomorphicEffect.ts +0 -0
  439. /package/src/{core → ui}/hooks/useMediaIndex/__workshop__/index.ts +0 -0
  440. /package/src/{core → ui}/hooks/useMediaIndex/__workshop__/test.tsx +0 -0
  441. /package/src/{core → ui}/hooks/useMediaIndex/index.ts +0 -0
  442. /package/src/{core → ui}/hooks/useMediaIndex/useMediaIndex.test.tsx +0 -0
  443. /package/src/{core → ui}/hooks/useMounted.ts +0 -0
  444. /package/src/{core → ui}/hooks/usePrefersDark.hydration.test.tsx +0 -0
  445. /package/src/{core → ui}/hooks/usePrefersDark.test.tsx +0 -0
  446. /package/src/{core → ui}/hooks/usePrefersDark.ts +0 -0
  447. /package/src/{core → ui}/hooks/usePrefersReducedMotion.hydration.test.tsx +0 -0
  448. /package/src/{core → ui}/hooks/usePrefersReducedMotion.test.tsx +0 -0
  449. /package/src/{core → ui}/hooks/usePrefersReducedMotion.ts +0 -0
  450. /package/src/{core → ui}/index.ts +0 -0
  451. /package/src/{core → ui}/lib/createGlobalScopedContext.ts +0 -0
  452. /package/src/{core → ui}/lib/globalScope.ts +0 -0
  453. /package/src/{core → ui}/lib/isRecord.ts +0 -0
  454. /package/src/{core → ui}/middleware/origin.ts +0 -0
  455. /package/src/{core → ui}/observers/elementSizeObserver.ts +0 -0
  456. /package/src/{core → ui}/observers/index.ts +0 -0
  457. /package/src/{core → ui}/observers/resizeObserver.ts +0 -0
  458. /package/src/{core → ui}/primitives/_selectable/index.ts +0 -0
  459. /package/src/{core → ui}/primitives/_selectable/selectable.tsx +0 -0
  460. /package/src/{core → ui}/primitives/avatar/__workshop__/asButton.tsx +0 -0
  461. /package/src/{core → ui}/primitives/avatar/__workshop__/index.ts +0 -0
  462. /package/src/{core → ui}/primitives/avatar/__workshop__/stack.tsx +0 -0
  463. /package/src/{core → ui}/primitives/avatar/__workshop__/withinButton.tsx +0 -0
  464. /package/src/{core → ui}/primitives/avatar/__workshop__/withinMenuItem.tsx +0 -0
  465. /package/src/{core → ui}/primitives/avatar/avatar.tsx +0 -0
  466. /package/src/{core → ui}/primitives/avatar/avatarCounter.tsx +0 -0
  467. /package/src/{core → ui}/primitives/avatar/avatarStack.tsx +0 -0
  468. /package/src/{core → ui}/primitives/avatar/index.ts +0 -0
  469. /package/src/{core → ui}/primitives/avatar/types.ts +0 -0
  470. /package/src/{core → ui}/primitives/badge/__workshop__/index.ts +0 -0
  471. /package/src/{core → ui}/primitives/badge/__workshop__/props.tsx +0 -0
  472. /package/src/{core → ui}/primitives/badge/__workshop__/tones.tsx +0 -0
  473. /package/src/{core → ui}/primitives/badge/badge.test.tsx +0 -0
  474. /package/src/{core → ui}/primitives/badge/badge.tsx +0 -0
  475. /package/src/{core → ui}/primitives/badge/index.ts +0 -0
  476. /package/src/{core → ui}/primitives/badge/types.ts +0 -0
  477. /package/src/{core → ui}/primitives/box/__workshop__/index.ts +0 -0
  478. /package/src/{core → ui}/primitives/box/__workshop__/props.tsx +0 -0
  479. /package/src/{core → ui}/primitives/box/__workshop__/responsive.tsx +0 -0
  480. /package/src/{core → ui}/primitives/box/index.ts +0 -0
  481. /package/src/{core → ui}/primitives/button/__workshop__/custom.tsx +0 -0
  482. /package/src/{core → ui}/primitives/button/__workshop__/customIcons.tsx +0 -0
  483. /package/src/{core → ui}/primitives/button/__workshop__/disabled.tsx +0 -0
  484. /package/src/{core → ui}/primitives/button/__workshop__/index.ts +0 -0
  485. /package/src/{core → ui}/primitives/button/__workshop__/mixedChildren.tsx +0 -0
  486. /package/src/{core → ui}/primitives/button/__workshop__/props.tsx +0 -0
  487. /package/src/{core → ui}/primitives/button/__workshop__/sanityUploadButton.tsx +0 -0
  488. /package/src/{core → ui}/primitives/button/__workshop__/stacked.tsx +0 -0
  489. /package/src/{core → ui}/primitives/button/__workshop__/styled1.tsx +0 -0
  490. /package/src/{core → ui}/primitives/button/__workshop__/styled2.tsx +0 -0
  491. /package/src/{core → ui}/primitives/button/__workshop__/uploadButton.tsx +0 -0
  492. /package/src/{core → ui}/primitives/button/button.test.tsx +0 -0
  493. /package/src/{core → ui}/primitives/button/index.ts +0 -0
  494. /package/src/{core → ui}/primitives/card/__workshop__/allTones.tsx +0 -0
  495. /package/src/{core → ui}/primitives/card/__workshop__/asButton.tsx +0 -0
  496. /package/src/{core → ui}/primitives/card/__workshop__/asComponent.tsx +0 -0
  497. /package/src/{core → ui}/primitives/card/__workshop__/checkered.tsx +0 -0
  498. /package/src/{core → ui}/primitives/card/__workshop__/index.ts +0 -0
  499. /package/src/{core → ui}/primitives/card/__workshop__/interactive.tsx +0 -0
  500. /package/src/{core → ui}/primitives/card/__workshop__/listNavigation.tsx +0 -0
  501. /package/src/{core → ui}/primitives/card/__workshop__/props.tsx +0 -0
  502. /package/src/{core → ui}/primitives/card/__workshop__/selected.tsx +0 -0
  503. /package/src/{core → ui}/primitives/card/__workshop__/styled.tsx +0 -0
  504. /package/src/{core → ui}/primitives/checkbox/__workshop__/example.tsx +0 -0
  505. /package/src/{core → ui}/primitives/checkbox/__workshop__/index.ts +0 -0
  506. /package/src/{core → ui}/primitives/checkbox/__workshop__/props.tsx +0 -0
  507. /package/src/{core → ui}/primitives/checkbox/__workshop__/readOnly.tsx +0 -0
  508. /package/src/{core → ui}/primitives/checkbox/__workshop__/tones.tsx +0 -0
  509. /package/src/{core → ui}/primitives/checkbox/checkbox.tsx +0 -0
  510. /package/src/{core → ui}/primitives/checkbox/index.ts +0 -0
  511. /package/src/{core → ui}/primitives/code/__workshop__/index.ts +0 -0
  512. /package/src/{core → ui}/primitives/code/__workshop__/opticalAlignment.tsx +0 -0
  513. /package/src/{core → ui}/primitives/code/__workshop__/props.tsx +0 -0
  514. /package/src/{core → ui}/primitives/code/code.tsx +0 -0
  515. /package/src/{core → ui}/primitives/code/index.ts +0 -0
  516. /package/src/{core → ui}/primitives/code/refractor.tsx +0 -0
  517. /package/src/{core → ui}/primitives/container/__workshop__/example.tsx +0 -0
  518. /package/src/{core → ui}/primitives/container/__workshop__/index.ts +0 -0
  519. /package/src/{core → ui}/primitives/container/container.tsx +0 -0
  520. /package/src/{core → ui}/primitives/container/index.ts +0 -0
  521. /package/src/{core → ui}/primitives/container/types.ts +0 -0
  522. /package/src/{core → ui}/primitives/flex/__workshop__/example.tsx +0 -0
  523. /package/src/{core → ui}/primitives/flex/__workshop__/gap.tsx +0 -0
  524. /package/src/{core → ui}/primitives/flex/__workshop__/index.ts +0 -0
  525. /package/src/{core → ui}/primitives/flex/flex.tsx +0 -0
  526. /package/src/{core → ui}/primitives/flex/index.ts +0 -0
  527. /package/src/{core → ui}/primitives/grid/__workshop__/index.ts +0 -0
  528. /package/src/{core → ui}/primitives/grid/__workshop__/responsive.tsx +0 -0
  529. /package/src/{core → ui}/primitives/grid/grid.tsx +0 -0
  530. /package/src/{core → ui}/primitives/grid/index.ts +0 -0
  531. /package/src/{core → ui}/primitives/heading/__workshop__/index.ts +0 -0
  532. /package/src/{core → ui}/primitives/heading/__workshop__/opticalAlignment.tsx +0 -0
  533. /package/src/{core → ui}/primitives/heading/__workshop__/plain.tsx +0 -0
  534. /package/src/{core → ui}/primitives/heading/index.ts +0 -0
  535. /package/src/{core → ui}/primitives/index.ts +0 -0
  536. /package/src/{core → ui}/primitives/inline/__workshop__/index.ts +0 -0
  537. /package/src/{core → ui}/primitives/inline/__workshop__/plain.tsx +0 -0
  538. /package/src/{core → ui}/primitives/inline/index.ts +0 -0
  539. /package/src/{core → ui}/primitives/inline/inline.tsx +0 -0
  540. /package/src/{core → ui}/primitives/inline/types.ts +0 -0
  541. /package/src/{core → ui}/primitives/kbd/__workshop__/index.ts +0 -0
  542. /package/src/{core → ui}/primitives/kbd/__workshop__/plain.tsx +0 -0
  543. /package/src/{core → ui}/primitives/kbd/index.ts +0 -0
  544. /package/src/{core → ui}/primitives/kbd/kbd.tsx +0 -0
  545. /package/src/{core → ui}/primitives/label/__workshop__/index.ts +0 -0
  546. /package/src/{core → ui}/primitives/label/__workshop__/opticalAlignment.tsx +0 -0
  547. /package/src/{core → ui}/primitives/label/__workshop__/plain.tsx +0 -0
  548. /package/src/{core → ui}/primitives/label/index.ts +0 -0
  549. /package/src/{core → ui}/primitives/label/label.tsx +0 -0
  550. /package/src/{core → ui}/primitives/popover/__workshop__/AlignedStory.tsx +0 -0
  551. /package/src/{core → ui}/primitives/popover/__workshop__/MarginsStory.tsx +0 -0
  552. /package/src/{core → ui}/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -0
  553. /package/src/{core → ui}/primitives/popover/__workshop__/PlainStory.tsx +0 -0
  554. /package/src/{core → ui}/primitives/popover/__workshop__/RecursiveStory.tsx +0 -0
  555. /package/src/{core → ui}/primitives/popover/__workshop__/TestStory.tsx +0 -0
  556. /package/src/{core → ui}/primitives/popover/__workshop__/index.ts +0 -0
  557. /package/src/{core → ui}/primitives/popover/constants.ts +0 -0
  558. /package/src/{core → ui}/primitives/popover/floating-ui/size.ts +0 -0
  559. /package/src/{core → ui}/primitives/popover/helpers.ts +0 -0
  560. /package/src/{core → ui}/primitives/popover/index.ts +0 -0
  561. /package/src/{core → ui}/primitives/popover/types.ts +0 -0
  562. /package/src/{core → ui}/primitives/radio/__workshop__/example.tsx +0 -0
  563. /package/src/{core → ui}/primitives/radio/__workshop__/index.ts +0 -0
  564. /package/src/{core → ui}/primitives/radio/__workshop__/plain.tsx +0 -0
  565. /package/src/{core → ui}/primitives/radio/index.ts +0 -0
  566. /package/src/{core → ui}/primitives/radio/radio.tsx +0 -0
  567. /package/src/{core → ui}/primitives/select/__workshop__/index.ts +0 -0
  568. /package/src/{core → ui}/primitives/select/__workshop__/plain.tsx +0 -0
  569. /package/src/{core → ui}/primitives/select/__workshop__/readOnly.tsx +0 -0
  570. /package/src/{core → ui}/primitives/select/index.ts +0 -0
  571. /package/src/{core → ui}/primitives/spinner/__workshop__/Props.tsx +0 -0
  572. /package/src/{core → ui}/primitives/spinner/__workshop__/index.ts +0 -0
  573. /package/src/{core → ui}/primitives/spinner/animatedSpinnerIcon.tsx +0 -0
  574. /package/src/{core → ui}/primitives/spinner/index.ts +0 -0
  575. /package/src/{core → ui}/primitives/spinner/spinner.tsx +0 -0
  576. /package/src/{core → ui}/primitives/stack/__workshop__/index.ts +0 -0
  577. /package/src/{core → ui}/primitives/stack/__workshop__/plain.tsx +0 -0
  578. /package/src/{core → ui}/primitives/stack/index.ts +0 -0
  579. /package/src/{core → ui}/primitives/stack/stack.tsx +0 -0
  580. /package/src/{core → ui}/primitives/switch/__workshop__/example.tsx +0 -0
  581. /package/src/{core → ui}/primitives/switch/__workshop__/index.ts +0 -0
  582. /package/src/{core → ui}/primitives/switch/__workshop__/props.tsx +0 -0
  583. /package/src/{core → ui}/primitives/switch/index.ts +0 -0
  584. /package/src/{core → ui}/primitives/switch/switch.tsx +0 -0
  585. /package/src/{core → ui}/primitives/text/__workshop__/colored.tsx +0 -0
  586. /package/src/{core → ui}/primitives/text/__workshop__/example.tsx +0 -0
  587. /package/src/{core → ui}/primitives/text/__workshop__/index.ts +0 -0
  588. /package/src/{core → ui}/primitives/text/__workshop__/opticalAlignment.tsx +0 -0
  589. /package/src/{core → ui}/primitives/text/index.ts +0 -0
  590. /package/src/{core → ui}/primitives/textArea/__workshop__/index.ts +0 -0
  591. /package/src/{core → ui}/primitives/textArea/__workshop__/plain.tsx +0 -0
  592. /package/src/{core → ui}/primitives/textArea/index.ts +0 -0
  593. /package/src/{core → ui}/primitives/textArea/textArea.tsx +0 -0
  594. /package/src/{core → ui}/primitives/textInput/__workshop__/clearButton.tsx +0 -0
  595. /package/src/{core → ui}/primitives/textInput/__workshop__/customValidity.tsx +0 -0
  596. /package/src/{core → ui}/primitives/textInput/__workshop__/index.ts +0 -0
  597. /package/src/{core → ui}/primitives/textInput/__workshop__/plain.tsx +0 -0
  598. /package/src/{core → ui}/primitives/textInput/__workshop__/readOnly.tsx +0 -0
  599. /package/src/{core → ui}/primitives/textInput/__workshop__/states.tsx +0 -0
  600. /package/src/{core → ui}/primitives/textInput/__workshop__/tones.tsx +0 -0
  601. /package/src/{core → ui}/primitives/textInput/__workshop__/typed.tsx +0 -0
  602. /package/src/{core → ui}/primitives/textInput/index.ts +0 -0
  603. /package/src/{core → ui}/primitives/textInput/textInput.tsx +0 -0
  604. /package/src/{core → ui}/primitives/tooltip/__workshop__/customPortal.tsx +0 -0
  605. /package/src/{core → ui}/primitives/tooltip/__workshop__/index.ts +0 -0
  606. /package/src/{core → ui}/primitives/tooltip/__workshop__/overflowingBoundary.tsx +0 -0
  607. /package/src/{core → ui}/primitives/tooltip/__workshop__/props.tsx +0 -0
  608. /package/src/{core → ui}/primitives/tooltip/__workshop__/resizableBoundary.tsx +0 -0
  609. /package/src/{core → ui}/primitives/tooltip/constants.ts +0 -0
  610. /package/src/{core → ui}/primitives/tooltip/index.ts +0 -0
  611. /package/src/{core → ui}/primitives/tooltip/tooltip.tsx +0 -0
  612. /package/src/{core → ui}/primitives/tooltip/tooltipCard.tsx +0 -0
  613. /package/src/{core → ui}/primitives/tooltip/tooltipDelayGroup/index.ts +0 -0
  614. /package/src/{core → ui}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +0 -0
  615. /package/src/{core → ui}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +0 -0
  616. /package/src/{core → ui}/primitives/tooltip/tooltipDelayGroup/types.ts +0 -0
  617. /package/src/{core → ui}/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -0
  618. /package/src/{core → ui}/primitives/types.ts +0 -0
  619. /package/src/{core → ui}/types/avatar.ts +0 -0
  620. /package/src/{core → ui}/types/badge.ts +0 -0
  621. /package/src/{core → ui}/types/box.ts +0 -0
  622. /package/src/{core → ui}/types/button.ts +0 -0
  623. /package/src/{core → ui}/types/card.ts +0 -0
  624. /package/src/{core → ui}/types/dialog.ts +0 -0
  625. /package/src/{core → ui}/types/flex.ts +0 -0
  626. /package/src/{core → ui}/types/grid.ts +0 -0
  627. /package/src/{core → ui}/types/gridItem.ts +0 -0
  628. /package/src/{core → ui}/types/index.ts +0 -0
  629. /package/src/{core → ui}/types/placement.ts +0 -0
  630. /package/src/{core → ui}/types/popover.ts +0 -0
  631. /package/src/{core → ui}/types/props.ts +0 -0
  632. /package/src/{core → ui}/types/radius.ts +0 -0
  633. /package/src/{core → ui}/types/selectable.ts +0 -0
  634. /package/src/{core → ui}/types/text.ts +0 -0
  635. /package/src/{core → ui}/utils/arrow/arrow.tsx +0 -0
  636. /package/src/{core → ui}/utils/arrow/cmds.ts +0 -0
  637. /package/src/{core → ui}/utils/arrow/index.ts +0 -0
  638. /package/src/{core → ui}/utils/boundaryElement/__workshop__/index.ts +0 -0
  639. /package/src/{core → ui}/utils/boundaryElement/__workshop__/plain.tsx +0 -0
  640. /package/src/{core → ui}/utils/boundaryElement/boundaryElement.test.tsx +0 -0
  641. /package/src/{core → ui}/utils/boundaryElement/boundaryElementContext.ts +0 -0
  642. /package/src/{core → ui}/utils/boundaryElement/boundaryElementProvider.tsx +0 -0
  643. /package/src/{core → ui}/utils/boundaryElement/index.ts +0 -0
  644. /package/src/{core → ui}/utils/boundaryElement/types.ts +0 -0
  645. /package/src/{core → ui}/utils/boundaryElement/useBoundaryElement.ts +0 -0
  646. /package/src/{core → ui}/utils/conditionalWrapper/conditionalWrapper.tsx +0 -0
  647. /package/src/{core → ui}/utils/conditionalWrapper/index.ts +0 -0
  648. /package/src/{core → ui}/utils/elementQuery/__workshop__/customMedia.tsx +0 -0
  649. /package/src/{core → ui}/utils/elementQuery/__workshop__/index.ts +0 -0
  650. /package/src/{core → ui}/utils/elementQuery/elementQuery.tsx +0 -0
  651. /package/src/{core → ui}/utils/elementQuery/helpers.ts +0 -0
  652. /package/src/{core → ui}/utils/elementQuery/index.ts +0 -0
  653. /package/src/{core → ui}/utils/errorBoundary.tsx +0 -0
  654. /package/src/{core → ui}/utils/getElementRef.ts +0 -0
  655. /package/src/{core → ui}/utils/index.ts +0 -0
  656. /package/src/{core → ui}/utils/layer/__workshop__/_debug.tsx +0 -0
  657. /package/src/{core → ui}/utils/layer/__workshop__/index.ts +0 -0
  658. /package/src/{core → ui}/utils/layer/__workshop__/multipleRoots.tsx +0 -0
  659. /package/src/{core → ui}/utils/layer/__workshop__/nested.tsx +0 -0
  660. /package/src/{core → ui}/utils/layer/__workshop__/responsiveZOffset.tsx +0 -0
  661. /package/src/{core → ui}/utils/layer/getLayerContext.test.ts +0 -0
  662. /package/src/{core → ui}/utils/layer/getLayerContext.ts +0 -0
  663. /package/src/{core → ui}/utils/layer/index.ts +0 -0
  664. /package/src/{core → ui}/utils/layer/layer.test.tsx +0 -0
  665. /package/src/{core → ui}/utils/layer/layer.tsx +0 -0
  666. /package/src/{core → ui}/utils/layer/layerContext.ts +0 -0
  667. /package/src/{core → ui}/utils/layer/types.ts +0 -0
  668. /package/src/{core → ui}/utils/layer/useLayer.ts +0 -0
  669. /package/src/{core → ui}/utils/portal/__workshop__/index.ts +0 -0
  670. /package/src/{core → ui}/utils/portal/__workshop__/named.tsx +0 -0
  671. /package/src/{core → ui}/utils/portal/index.ts +0 -0
  672. /package/src/{core → ui}/utils/portal/portal.test.tsx +0 -0
  673. /package/src/{core → ui}/utils/portal/portalContext.ts +0 -0
  674. /package/src/{core → ui}/utils/portal/portalProvider.tsx +0 -0
  675. /package/src/{core → ui}/utils/portal/types.ts +0 -0
  676. /package/src/{core → ui}/utils/portal/usePortal.ts +0 -0
  677. /package/src/{core → ui}/utils/spanWithTextOverflow.tsx +0 -0
  678. /package/src/{core → ui}/utils/srOnly/index.ts +0 -0
  679. /package/src/{core → ui}/utils/srOnly/srOnly.tsx +0 -0
  680. /package/src/{core → ui}/utils/virtualList/__workshop__/changingProps.tsx +0 -0
  681. /package/src/{core → ui}/utils/virtualList/__workshop__/elementScroll.tsx +0 -0
  682. /package/src/{core → ui}/utils/virtualList/__workshop__/index.ts +0 -0
  683. /package/src/{core → ui}/utils/virtualList/__workshop__/infiniteList.tsx +0 -0
  684. /package/src/{core → ui}/utils/virtualList/__workshop__/windowScrolll.tsx +0 -0
  685. /package/src/{core → ui}/utils/virtualList/index.ts +0 -0
package/dist/css.mjs CHANGED
@@ -1,7 +1,9 @@
1
1
  import { v3_v2 } from "./_chunks-es/v3_v2.mjs";
2
- import { HUES, TINTS, SPACE, FONT_TEXT_SIZE, FONT_LABEL_SIZE, FONT_HEADING_SIZE, FONT_CODE_SIZE, AVATAR_SIZE, THEME_COLOR_STATE_TONES, THEME_COLOR_CARD_TONES, THEME_COLOR_AVATAR_COLORS, THEME_COLOR_BUTTON_MODES, renderColor } from "@sanity/ui/theme";
2
+ import { color } from "@sanity/color";
3
+ import { HUES, TINTS, SPACE, RADIUS, FONT_TEXT_SIZE, FONT_LABEL_SIZE, FONT_HEADING_SIZE, FONT_CODE_SIZE, AVATAR_SIZE, THEME_COLOR_STATE_TONES, THEME_COLOR_CARD_TONES, THEME_COLOR_AVATAR_COLORS, THEME_COLOR_SCHEMES as THEME_COLOR_SCHEMES$1, renderColor } from "@sanity/ui/theme";
4
+ const PREFIX = "s-";
3
5
  function compileRule(selector, props, context) {
4
- let css = compileProperties(selector, props);
6
+ let css = compileProperties$1(selector, props);
5
7
  if (props["@nest"] && (css += compileNestedRules(selector, props["@nest"], context)), props["@keyframes"])
6
8
  for (const name in props["@keyframes"])
7
9
  context.keyframes[name] = props["@keyframes"][name];
@@ -10,13 +12,13 @@ function compileRule(selector, props, context) {
10
12
  context.media[key] || (context.media[key] = {}), context.media[key][selector] = props["@media"][key];
11
13
  return css;
12
14
  }
13
- function compileProperties(selector, props) {
15
+ function compileProperties$1(selector, props) {
14
16
  let css = "{";
15
17
  for (const key in props) {
16
18
  if (key === "@keyframes" || key === "@media" || key === "@nest") continue;
17
19
  const value = props[key], valueArr = Array.isArray(value) ? value : [value];
18
20
  for (const v of valueArr)
19
- css += toSnakeCase(key) + ":" + v + ";";
21
+ css += toSnakeCase$1(key) + ":" + v + ";";
20
22
  }
21
23
  return css === "{" ? "" : selector + css + "}";
22
24
  }
@@ -25,68 +27,74 @@ function compileNestedRules(selector, props, context) {
25
27
  let css = "";
26
28
  for (const [_selector, _props] of Object.entries(props))
27
29
  css += `
28
- ` + compileRule(_selector.replace(/&/g, selector), _props, context);
30
+ ` + compileRule(_selector.replace(/\./g, `.${PREFIX}`).replace(/&/g, selector), _props, context);
29
31
  return css;
30
32
  }
31
- function compileMediaQueryRule(query, rules2) {
32
- let css = `@media ${query}{`;
33
- for (const [selector, props] of Object.entries(rules2))
34
- css += `
35
- ` + compileProperties(selector, props), props["@nest"] && (css += compileNestedRules(selector, props["@nest"], {
36
- keyframes: {},
37
- media: {}
38
- }));
39
- return css + `
40
- }`;
41
- }
42
- function toSnakeCase(value) {
33
+ function toSnakeCase$1(value) {
43
34
  return value.replace(/[A-Z]/g, (match) => "-" + match.toLowerCase());
44
35
  }
45
- function compilePalette(config) {
36
+ function compilePalette() {
46
37
  const props = {
47
- "--l-min": `${config.luminosity.min * 100}%`,
48
- "--l-max": `${config.luminosity.max * 100}%`,
49
- "--l-range": "calc(var(--l-max) - var(--l-min))",
50
- "--c-min": `${config.chroma.min}`,
51
- "--c-max": `${config.chroma.max}`,
52
- "--c-range": "calc(var(--c-max) - var(--c-min))",
53
- ...compileHues(config.hues),
54
- "--black": `oklch(
55
- calc(var(--l-min) + 0.0 * var(--l-range))
56
- calc(var(--c-min) + 0.0 * var(--gray-c-range))
57
- var(--gray-h)
58
- )`,
59
- "--white": `oklch(
60
- calc(var(--l-min) + 1.0 * var(--l-range))
61
- calc(var(--c-min) + 0.0 * var(--gray-c-range))
62
- var(--gray-h)
63
- )`
38
+ ...compileHues(),
39
+ "--black": color.black.hex,
40
+ "--white": color.white.hex
64
41
  };
65
42
  return compileRule(":root", props, {
66
43
  keyframes: {},
67
44
  media: {}
68
45
  });
69
46
  }
70
- function compileHues(hues) {
47
+ function compileHues() {
71
48
  const rules2 = {};
72
- for (const hue of HUES) {
73
- const {
74
- c,
75
- h
76
- } = hues[hue];
77
- rules2[`--${hue}-h`] = `${h}`, rules2[`--${hue}-c`] = `${c}`, rules2[`--${hue}-c-max`] = `min(var(--c-max), var(--${hue}-c))`, rules2[`--${hue}-c-range`] = `calc(var(--${hue}-c-max) - var(--c-min))`;
78
- for (const tint of TINTS) {
79
- const l_offset = parseFloat((1 - tint / 1e3).toFixed(2)), c_offset_tmp = tint / 500, c_offset = parseFloat((c_offset_tmp < 1 ? c_offset_tmp : 2 - c_offset_tmp).toFixed(1));
80
- rules2[`--${hue}-${tint}`] = ["oklch(", `calc(var(--l-min) + ${l_offset} * var(--l-range)) `, `calc(var(--c-min) + ${c_offset} * var(--${hue}-c-range)) `, `var(--${hue}-h)`, ")"].join("");
81
- }
82
- }
49
+ for (const hue of HUES)
50
+ for (const tint of TINTS)
51
+ rules2[`--${hue}-${tint}`] = color[hue][tint].hex;
83
52
  return rules2;
84
53
  }
85
- const breadcrumbsRules = {
86
- breadcrumbs: {
87
- lineHeight: 0
88
- }
89
- }, varNames = {
54
+ function _mergeStyles(styles) {
55
+ const keyframes2 = {}, layers = {}, rules2 = {};
56
+ for (const s of styles)
57
+ if (s) {
58
+ Object.assign(keyframes2, s.keyframes);
59
+ for (const layerName in s.layers)
60
+ layers[layerName] || (layers[layerName] = {}), Object.assign(layers[layerName], s.layers[layerName]);
61
+ Object.assign(rules2, s.rules);
62
+ }
63
+ return {
64
+ keyframes: keyframes2,
65
+ layers,
66
+ rules: rules2
67
+ };
68
+ }
69
+ function _responsiveRule(rules2, _name, properties) {
70
+ const name = _name.replace(/\./g, "_");
71
+ rules2[`.${name}`] = properties, rules2[`.1\\:${name}`] = {
72
+ "@media": {
73
+ "screen and (min-width: 360px)": properties
74
+ }
75
+ }, rules2[`.2\\:${name}`] = {
76
+ "@media": {
77
+ "screen and (min-width: 600px)": properties
78
+ }
79
+ }, rules2[`.3\\:${name}`] = {
80
+ "@media": {
81
+ "screen and (min-width: 900px)": properties
82
+ }
83
+ }, rules2[`.4\\:${name}`] = {
84
+ "@media": {
85
+ "screen and (min-width: 1200px)": properties
86
+ }
87
+ }, rules2[`.5\\:${name}`] = {
88
+ "@media": {
89
+ "screen and (min-width: 1800px)": properties
90
+ }
91
+ }, rules2[`.6\\:${name}`] = {
92
+ "@media": {
93
+ "screen and (min-width: 2400px)": properties
94
+ }
95
+ };
96
+ }
97
+ const varNames = {
90
98
  avatar: {
91
99
  distance: "--avatar-distance",
92
100
  focusRing: {
@@ -314,6 +322,14 @@ const breadcrumbsRules = {
314
322
  })
315
323
  }
316
324
  },
325
+ container: {
326
+ 0: "--container-0",
327
+ 1: "--container-1",
328
+ 2: "--container-2",
329
+ 3: "--container-3",
330
+ 4: "--container-4",
331
+ 5: "--container-5"
332
+ },
317
333
  font: {
318
334
  code: {
319
335
  family: "--font-code-family",
@@ -382,6 +398,7 @@ const breadcrumbsRules = {
382
398
  gap: "--input-gap",
383
399
  padding: "--input-padding"
384
400
  },
401
+ radius: Object.fromEntries(RADIUS.map((radius2) => [radius2, `--radius-${radius2}`])),
385
402
  space: Object.fromEntries(SPACE.map((space) => [space, `--space-${String(space).replace(".", "_")}`]))
386
403
  };
387
404
  function buildColorCardVarNames(props) {
@@ -705,6 +722,14 @@ const colorVars = {
705
722
  }), {})
706
723
  },
707
724
  color: colorVars,
725
+ container: {
726
+ 0: `var(${varNames.container[0]})`,
727
+ 1: `var(${varNames.container[1]})`,
728
+ 2: `var(${varNames.container[2]})`,
729
+ 3: `var(${varNames.container[3]})`,
730
+ 4: `var(${varNames.container[4]})`,
731
+ 5: `var(${varNames.container[5]})`
732
+ },
708
733
  font: {
709
734
  code: {
710
735
  family: `var(${varNames.font.code.family})`,
@@ -779,6 +804,7 @@ const colorVars = {
779
804
  }
780
805
  }
781
806
  },
807
+ radius: Object.fromEntries(RADIUS.map((radius2) => [radius2, `var(${varNames.radius[radius2]})`])),
782
808
  space: Object.fromEntries(SPACE.map((space) => [space, `var(${varNames.space[space]})`]))
783
809
  };
784
810
  function buildColorCardVars(props) {
@@ -791,11 +817,11 @@ function buildColorCardVars(props) {
791
817
  fg: `var(${prefix.accent.fg})`
792
818
  },
793
819
  avatar: {
794
- ...THEME_COLOR_AVATAR_COLORS.reduce((acc, color) => ({
820
+ ...THEME_COLOR_AVATAR_COLORS.reduce((acc, color2) => ({
795
821
  ...acc,
796
- [color]: {
797
- bg: `var(${prefix.avatar[color].bg})`,
798
- fg: `var(${prefix.avatar[color].fg})`
822
+ [color2]: {
823
+ bg: `var(${prefix.avatar[color2].bg})`,
824
+ fg: `var(${prefix.avatar[color2].fg})`
799
825
  }
800
826
  }), {})
801
827
  },
@@ -924,36 +950,988 @@ function buildColorVariantVars(options) {
924
950
  }
925
951
  return vars2;
926
952
  }
927
- const dialogRules = {
928
- dialog: {
929
- top: 0,
930
- left: 0,
931
- right: 0,
932
- bottom: 0,
953
+ const util$s = {};
954
+ _responsiveRule(util$s, "border", {
955
+ border: `1px solid ${vars.color.border}`
956
+ });
957
+ _responsiveRule(util$s, "border-t", {
958
+ borderTop: `1px solid ${vars.color.border}`
959
+ });
960
+ _responsiveRule(util$s, "border-r", {
961
+ borderRight: `1px solid ${vars.color.border}`
962
+ });
963
+ _responsiveRule(util$s, "border-b", {
964
+ borderBottom: `1px solid ${vars.color.border}`
965
+ });
966
+ _responsiveRule(util$s, "border-l", {
967
+ borderLeft: `1px solid ${vars.color.border}`
968
+ });
969
+ const borderStyle = {
970
+ layers: {
971
+ util: util$s
972
+ }
973
+ }, util$r = {};
974
+ _responsiveRule(util$r, "block", {
975
+ "@nest": {
976
+ "&:not([hidden])": {
977
+ display: "block"
978
+ }
979
+ }
980
+ });
981
+ _responsiveRule(util$r, "flex", {
982
+ "@nest": {
983
+ "&:not([hidden])": {
984
+ display: "flex"
985
+ }
986
+ }
987
+ });
988
+ _responsiveRule(util$r, "grid", {
989
+ "@nest": {
990
+ "&:not([hidden])": {
991
+ display: "grid"
992
+ }
993
+ }
994
+ });
995
+ _responsiveRule(util$r, "inline-block", {
996
+ "@nest": {
997
+ "&:not([hidden])": {
998
+ display: "inline-block"
999
+ }
1000
+ }
1001
+ });
1002
+ _responsiveRule(util$r, "inline-flex", {
1003
+ "@nest": {
1004
+ "&:not([hidden])": {
1005
+ display: "inline-flex"
1006
+ }
1007
+ }
1008
+ });
1009
+ _responsiveRule(util$r, "inline-grid", {
1010
+ "@nest": {
1011
+ "&:not([hidden])": {
1012
+ display: "inline-grid"
1013
+ }
1014
+ }
1015
+ });
1016
+ _responsiveRule(util$r, "none", {
1017
+ "@nest": {
1018
+ "&:not([hidden])": {
1019
+ display: "none"
1020
+ }
1021
+ }
1022
+ });
1023
+ const displayStyle = {
1024
+ layers: {
1025
+ util: util$r
1026
+ }
1027
+ }, util$q = {};
1028
+ _responsiveRule(util$q, "flex-align-flex-start", {
1029
+ alignItems: "flex-start"
1030
+ });
1031
+ _responsiveRule(util$q, "flex-align-flex-end", {
1032
+ alignItems: "flex-end"
1033
+ });
1034
+ _responsiveRule(util$q, "flex-align-center", {
1035
+ alignItems: "center"
1036
+ });
1037
+ _responsiveRule(util$q, "flex-align-stretch", {
1038
+ alignItems: "stretch"
1039
+ });
1040
+ _responsiveRule(util$q, "flex-align-baseline", {
1041
+ alignItems: "baseline"
1042
+ });
1043
+ const flexAlignStyle = {
1044
+ layers: {
1045
+ util: util$q
1046
+ }
1047
+ }, util$p = {};
1048
+ _responsiveRule(util$p, "f-row", {
1049
+ flexDirection: "row"
1050
+ });
1051
+ _responsiveRule(util$p, "f-column", {
1052
+ flexDirection: "column"
1053
+ });
1054
+ const flexDirectionStyle = {
1055
+ layers: {
1056
+ util: util$p
1057
+ }
1058
+ }, util$o = {};
1059
+ _responsiveRule(util$o, "flex-justify-flex-start", {
1060
+ justifyContent: "flex-start"
1061
+ });
1062
+ _responsiveRule(util$o, "flex-justify-flex-end", {
1063
+ justifyContent: "flex-end"
1064
+ });
1065
+ _responsiveRule(util$o, "flex-justify-center", {
1066
+ justifyContent: "center"
1067
+ });
1068
+ _responsiveRule(util$o, "flex-justify-between", {
1069
+ justifyContent: "space-between"
1070
+ });
1071
+ _responsiveRule(util$o, "flex-justify-around", {
1072
+ justifyContent: "space-around"
1073
+ });
1074
+ _responsiveRule(util$o, "flex-justify-evenly", {
1075
+ justifyContent: "space-evenly"
1076
+ });
1077
+ const flexJustifyStyle = {
1078
+ layers: {
1079
+ util: util$o
1080
+ }
1081
+ }, util$n = {};
1082
+ _responsiveRule(util$n, "flex-nowrap", {
1083
+ flexWrap: "nowrap"
1084
+ });
1085
+ _responsiveRule(util$n, "flex-wrap", {
1086
+ flexWrap: "wrap"
1087
+ });
1088
+ _responsiveRule(util$n, "flex-wrap-reverse", {
1089
+ flexWrap: "wrap-reverse"
1090
+ });
1091
+ const flexWrapStyle = {
1092
+ layers: {
1093
+ util: util$n
1094
+ }
1095
+ }, util$m = {};
1096
+ _responsiveRule(util$m, "f-none", {
1097
+ flex: "none"
1098
+ });
1099
+ _responsiveRule(util$m, "f-auto", {
1100
+ flex: "auto"
1101
+ });
1102
+ _responsiveRule(util$m, "f-initial", {
1103
+ flex: "initial"
1104
+ });
1105
+ _responsiveRule(util$m, "f-1", {
1106
+ flex: 1
1107
+ });
1108
+ _responsiveRule(util$m, "f-2", {
1109
+ flex: 2
1110
+ });
1111
+ _responsiveRule(util$m, "f-3", {
1112
+ flex: 3
1113
+ });
1114
+ _responsiveRule(util$m, "f-4", {
1115
+ flex: 4
1116
+ });
1117
+ _responsiveRule(util$m, "f-5", {
1118
+ flex: 5
1119
+ });
1120
+ _responsiveRule(util$m, "f-6", {
1121
+ flex: 6
1122
+ });
1123
+ _responsiveRule(util$m, "f-7", {
1124
+ flex: 7
1125
+ });
1126
+ _responsiveRule(util$m, "f-8", {
1127
+ flex: 8
1128
+ });
1129
+ _responsiveRule(util$m, "f-9", {
1130
+ flex: 9
1131
+ });
1132
+ _responsiveRule(util$m, "f-10", {
1133
+ flex: 10
1134
+ });
1135
+ _responsiveRule(util$m, "f-11", {
1136
+ flex: 11
1137
+ });
1138
+ _responsiveRule(util$m, "f-12", {
1139
+ flex: 12
1140
+ });
1141
+ const flexStyle = {
1142
+ layers: {
1143
+ util: util$m
1144
+ }
1145
+ }, rules$3 = {
1146
+ ".font": {
1147
+ // 'position': 'relative',
1148
+ fontFamily: "var(--font-family)",
1149
+ fontFeatureSettings: "var(--font-feature-settings)",
1150
+ fontSize: "var(--font-size)",
1151
+ lineHeight: "var(--font-line-height)",
1152
+ letterSpacing: "var(--font-letter-spacing)",
1153
+ fontWeight: "var(--font-weight)",
1154
+ transform: "translateY(var(--font-descender-height))",
1155
+ padding: "1px 0",
1156
+ margin: "0",
1157
+ "--font-icon-offset": "calc(((var(--font-line-height) - var(--font-ascender-height) - var(--font-descender-height)) - var(--font-icon-size)) / 2)",
1158
+ "--font-weight": "var(--font-weight-regular)",
1159
+ "@nest": {
1160
+ "&:before": {
1161
+ content: '""',
1162
+ display: "block",
1163
+ height: 0,
1164
+ marginTop: "calc((0px - var(--font-ascender-height) - var(--font-descender-height)) - 1px)"
1165
+ },
1166
+ "&:after": {
1167
+ content: '""',
1168
+ display: "block",
1169
+ height: 0,
1170
+ marginBottom: "-1px"
1171
+ },
1172
+ "& svg": {
1173
+ // Certain popular CSS libraries changes the defaults for SVG display
1174
+ // Make sure SVGs are rendered as inline elements
1175
+ display: "inline"
1176
+ },
1177
+ // todo
1178
+ // '& svg:not([data-sanity-icon])': {
1179
+ // fontSize: 'calc(var(--custom-icon-size) / 16 * 1rem)',
1180
+ // margin: 'var(--custom-icon-offset)',
1181
+ // },
1182
+ "& [data-sanity-icon]": {
1183
+ fontSize: "var(--font-icon-size)",
1184
+ margin: "var(--font-icon-offset)",
1185
+ vectorEffect: "non-scaling-stroke"
1186
+ }
1187
+ }
1188
+ },
1189
+ ".font-regular": {
1190
+ "--font-weight": "var(--font-weight-regular)"
1191
+ },
1192
+ ".font-medium": {
1193
+ "--font-weight": "var(--font-weight-medium)"
1194
+ },
1195
+ ".font-semibold": {
1196
+ "--font-weight": "var(--font-weight-semibold)"
1197
+ },
1198
+ ".font-bold": {
1199
+ "--font-weight": "var(--font-weight-bold)"
1200
+ }
1201
+ };
1202
+ _responsiveRule(rules$3, "text-align-initial", {
1203
+ textAlign: "initial"
1204
+ });
1205
+ _responsiveRule(rules$3, "text-align-left", {
1206
+ textAlign: "left"
1207
+ });
1208
+ _responsiveRule(rules$3, "text-align-center", {
1209
+ textAlign: "center"
1210
+ });
1211
+ _responsiveRule(rules$3, "text-align-right", {
1212
+ textAlign: "right"
1213
+ });
1214
+ _responsiveRule(rules$3, "text-align-justify", {
1215
+ textAlign: "justify"
1216
+ });
1217
+ const fontStyle = {
1218
+ layers: {
1219
+ primitive: rules$3
1220
+ }
1221
+ }, util$l = {};
1222
+ for (const space of SPACE)
1223
+ _responsiveRule(util$l, `g-${space}`, {
1224
+ gap: vars.space[space]
1225
+ });
1226
+ for (const space of SPACE)
1227
+ _responsiveRule(util$l, `gx-${space}`, {
1228
+ columnGap: vars.space[space]
1229
+ });
1230
+ for (const space of SPACE)
1231
+ _responsiveRule(util$l, `gy-${space}`, {
1232
+ rowGap: vars.space[space]
1233
+ });
1234
+ const gapStyle = {
1235
+ layers: {
1236
+ util: util$l
1237
+ }
1238
+ }, util$k = {};
1239
+ _responsiveRule(util$k, "auto-cols-auto", {
1240
+ gridAutoColumns: "auto"
1241
+ });
1242
+ _responsiveRule(util$k, "auto-cols-min", {
1243
+ gridAutoColumns: "min-content"
1244
+ });
1245
+ _responsiveRule(util$k, "auto-cols-max", {
1246
+ gridAutoColumns: "max-content"
1247
+ });
1248
+ _responsiveRule(util$k, "auto-cols-fr", {
1249
+ gridAutoColumns: "minmax(0, 1fr)"
1250
+ });
1251
+ const gridAutoColumnsStyle = {
1252
+ layers: {
1253
+ util: util$k
1254
+ }
1255
+ }, util$j = {};
1256
+ _responsiveRule(util$j, "auto-flow-row", {
1257
+ gridAutoFlow: "row"
1258
+ });
1259
+ _responsiveRule(util$j, "auto-flow-column", {
1260
+ gridAutoFlow: "column"
1261
+ });
1262
+ _responsiveRule(util$j, "auto-flow-row-dense", {
1263
+ gridAutoFlow: "row dense"
1264
+ });
1265
+ _responsiveRule(util$j, "auto-flow-column-dense", {
1266
+ gridAutoFlow: "column dense"
1267
+ });
1268
+ const gridAutoFlowStyle = {
1269
+ layers: {
1270
+ util: util$j
1271
+ }
1272
+ }, util$i = {};
1273
+ _responsiveRule(util$i, "auto-rows-auto", {
1274
+ gridAutoRows: "auto"
1275
+ });
1276
+ _responsiveRule(util$i, "auto-rows-min", {
1277
+ gridAutoRows: "min-content"
1278
+ });
1279
+ _responsiveRule(util$i, "auto-rows-max", {
1280
+ gridAutoRows: "max-content"
1281
+ });
1282
+ _responsiveRule(util$i, "auto-rows-fr", {
1283
+ gridAutoRows: "minmax(0, 1fr)"
1284
+ });
1285
+ const gridAutoRowsStyle = {
1286
+ layers: {
1287
+ util: util$i
1288
+ }
1289
+ }, util$h = {};
1290
+ _responsiveRule(util$h, "cols-1", {
1291
+ gridTemplateColumns: "repeat(1, 1fr)"
1292
+ });
1293
+ _responsiveRule(util$h, "cols-2", {
1294
+ gridTemplateColumns: "repeat(2, 1fr)"
1295
+ });
1296
+ _responsiveRule(util$h, "cols-3", {
1297
+ gridTemplateColumns: "repeat(3, 1fr)"
1298
+ });
1299
+ _responsiveRule(util$h, "cols-4", {
1300
+ gridTemplateColumns: "repeat(4, 1fr)"
1301
+ });
1302
+ _responsiveRule(util$h, "cols-5", {
1303
+ gridTemplateColumns: "repeat(5, 1fr)"
1304
+ });
1305
+ _responsiveRule(util$h, "cols-6", {
1306
+ gridTemplateColumns: "repeat(6, 1fr)"
1307
+ });
1308
+ _responsiveRule(util$h, "cols-7", {
1309
+ gridTemplateColumns: "repeat(7, 1fr)"
1310
+ });
1311
+ _responsiveRule(util$h, "cols-8", {
1312
+ gridTemplateColumns: "repeat(8, 1fr)"
1313
+ });
1314
+ _responsiveRule(util$h, "cols-9", {
1315
+ gridTemplateColumns: "repeat(9, 1fr)"
1316
+ });
1317
+ _responsiveRule(util$h, "cols-10", {
1318
+ gridTemplateColumns: "repeat(10, 1fr)"
1319
+ });
1320
+ _responsiveRule(util$h, "cols-12", {
1321
+ gridTemplateColumns: "repeat(12, 1fr)"
1322
+ });
1323
+ const gridColumnsStyle = {
1324
+ layers: {
1325
+ util: util$h
1326
+ }
1327
+ }, util$g = {};
1328
+ _responsiveRule(util$g, "rows-1", {
1329
+ gridTemplateRows: "repeat(1, 1fr)"
1330
+ });
1331
+ _responsiveRule(util$g, "rows-2", {
1332
+ gridTemplateRows: "repeat(2, 1fr)"
1333
+ });
1334
+ _responsiveRule(util$g, "rows-3", {
1335
+ gridTemplateRows: "repeat(3, 1fr)"
1336
+ });
1337
+ _responsiveRule(util$g, "rows-4", {
1338
+ gridTemplateRows: "repeat(4, 1fr)"
1339
+ });
1340
+ _responsiveRule(util$g, "rows-5", {
1341
+ gridTemplateRows: "repeat(5, 1fr)"
1342
+ });
1343
+ _responsiveRule(util$g, "rows-6", {
1344
+ gridTemplateRows: "repeat(6, 1fr)"
1345
+ });
1346
+ _responsiveRule(util$g, "rows-7", {
1347
+ gridTemplateRows: "repeat(7, 1fr)"
1348
+ });
1349
+ _responsiveRule(util$g, "rows-8", {
1350
+ gridTemplateRows: "repeat(8, 1fr)"
1351
+ });
1352
+ _responsiveRule(util$g, "rows-9", {
1353
+ gridTemplateRows: "repeat(9, 1fr)"
1354
+ });
1355
+ _responsiveRule(util$g, "rows-10", {
1356
+ gridTemplateRows: "repeat(10, 1fr)"
1357
+ });
1358
+ _responsiveRule(util$g, "rows-12", {
1359
+ gridTemplateRows: "repeat(12, 1fr)"
1360
+ });
1361
+ const gridRowsStyle = {
1362
+ layers: {
1363
+ util: util$g
1364
+ }
1365
+ }, util$f = {};
1366
+ _responsiveRule(util$f, "col-auto", {
1367
+ gridColumn: "auto"
1368
+ });
1369
+ _responsiveRule(util$f, "col-full", {
1370
+ gridColumn: "1 / -1"
1371
+ });
1372
+ _responsiveRule(util$f, "col-1", {
1373
+ gridColumn: "span 1 / span 1"
1374
+ });
1375
+ _responsiveRule(util$f, "col-2", {
1376
+ gridColumn: "span 2 / span 2"
1377
+ });
1378
+ _responsiveRule(util$f, "col-3", {
1379
+ gridColumn: "span 3 / span 3"
1380
+ });
1381
+ _responsiveRule(util$f, "col-4", {
1382
+ gridColumn: "span 4 / span 4"
1383
+ });
1384
+ _responsiveRule(util$f, "col-5", {
1385
+ gridColumn: "span 5 / span 5"
1386
+ });
1387
+ _responsiveRule(util$f, "col-6", {
1388
+ gridColumn: "span 6 / span 6"
1389
+ });
1390
+ _responsiveRule(util$f, "col-7", {
1391
+ gridColumn: "span 7 / span 7"
1392
+ });
1393
+ _responsiveRule(util$f, "col-8", {
1394
+ gridColumn: "span 8 / span 8"
1395
+ });
1396
+ _responsiveRule(util$f, "col-9", {
1397
+ gridColumn: "span 9 / span 9"
1398
+ });
1399
+ _responsiveRule(util$f, "col-10", {
1400
+ gridColumn: "span 10 / span 10"
1401
+ });
1402
+ _responsiveRule(util$f, "col-12", {
1403
+ gridColumn: "span 12 / span 12"
1404
+ });
1405
+ const gridColumnStyle = {
1406
+ layers: {
1407
+ util: util$f
1408
+ }
1409
+ }, util$e = {};
1410
+ _responsiveRule(util$e, "col-end-auto", {
1411
+ gridColumnEnd: "auto"
1412
+ });
1413
+ _responsiveRule(util$e, "col-end-1", {
1414
+ gridColumnEnd: "1"
1415
+ });
1416
+ _responsiveRule(util$e, "col-end-2", {
1417
+ gridColumnEnd: "2"
1418
+ });
1419
+ _responsiveRule(util$e, "col-end-3", {
1420
+ gridColumnEnd: "3"
1421
+ });
1422
+ _responsiveRule(util$e, "col-end-4", {
1423
+ gridColumnEnd: "4"
1424
+ });
1425
+ _responsiveRule(util$e, "col-end-5", {
1426
+ gridColumnEnd: "5"
1427
+ });
1428
+ _responsiveRule(util$e, "col-end-6", {
1429
+ gridColumnEnd: "6"
1430
+ });
1431
+ _responsiveRule(util$e, "col-end-7", {
1432
+ gridColumnEnd: "7"
1433
+ });
1434
+ _responsiveRule(util$e, "col-end-8", {
1435
+ gridColumnEnd: "8"
1436
+ });
1437
+ _responsiveRule(util$e, "col-end-9", {
1438
+ gridColumnEnd: "9"
1439
+ });
1440
+ _responsiveRule(util$e, "col-end-10", {
1441
+ gridColumnEnd: "10"
1442
+ });
1443
+ _responsiveRule(util$e, "col-end-11", {
1444
+ gridColumnEnd: "11"
1445
+ });
1446
+ _responsiveRule(util$e, "col-end-12", {
1447
+ gridColumnEnd: "12"
1448
+ });
1449
+ const gridColumnEndStyle = {
1450
+ layers: {
1451
+ util: util$e
1452
+ }
1453
+ }, util$d = {};
1454
+ _responsiveRule(util$d, "col-start-auto", {
1455
+ gridColumnStart: "auto"
1456
+ });
1457
+ _responsiveRule(util$d, "col-start-1", {
1458
+ gridColumnStart: "1"
1459
+ });
1460
+ _responsiveRule(util$d, "col-start-2", {
1461
+ gridColumnStart: "2"
1462
+ });
1463
+ _responsiveRule(util$d, "col-start-3", {
1464
+ gridColumnStart: "3"
1465
+ });
1466
+ _responsiveRule(util$d, "col-start-4", {
1467
+ gridColumnStart: "4"
1468
+ });
1469
+ _responsiveRule(util$d, "col-start-5", {
1470
+ gridColumnStart: "5"
1471
+ });
1472
+ _responsiveRule(util$d, "col-start-6", {
1473
+ gridColumnStart: "6"
1474
+ });
1475
+ _responsiveRule(util$d, "col-start-7", {
1476
+ gridColumnStart: "7"
1477
+ });
1478
+ _responsiveRule(util$d, "col-start-8", {
1479
+ gridColumnStart: "8"
1480
+ });
1481
+ _responsiveRule(util$d, "col-start-9", {
1482
+ gridColumnStart: "9"
1483
+ });
1484
+ _responsiveRule(util$d, "col-start-10", {
1485
+ gridColumnStart: "10"
1486
+ });
1487
+ _responsiveRule(util$d, "col-start-11", {
1488
+ gridColumnStart: "11"
1489
+ });
1490
+ _responsiveRule(util$d, "col-start-12", {
1491
+ gridColumnStart: "12"
1492
+ });
1493
+ const gridColumnStartStyle = {
1494
+ layers: {
1495
+ util: util$d
1496
+ }
1497
+ }, util$c = {};
1498
+ _responsiveRule(util$c, "row-auto", {
1499
+ gridRow: "auto"
1500
+ });
1501
+ _responsiveRule(util$c, "row-full", {
1502
+ gridRow: "1 / -1"
1503
+ });
1504
+ _responsiveRule(util$c, "row-1", {
1505
+ gridRow: "span 1 / span 1"
1506
+ });
1507
+ _responsiveRule(util$c, "row-2", {
1508
+ gridRow: "span 2 / span 2"
1509
+ });
1510
+ _responsiveRule(util$c, "row-3", {
1511
+ gridRow: "span 3 / span 3"
1512
+ });
1513
+ _responsiveRule(util$c, "row-4", {
1514
+ gridRow: "span 4 / span 4"
1515
+ });
1516
+ _responsiveRule(util$c, "row-5", {
1517
+ gridRow: "span 5 / span 5"
1518
+ });
1519
+ _responsiveRule(util$c, "row-6", {
1520
+ gridRow: "span 6 / span 6"
1521
+ });
1522
+ _responsiveRule(util$c, "row-7", {
1523
+ gridRow: "span 7 / span 7"
1524
+ });
1525
+ _responsiveRule(util$c, "row-8", {
1526
+ gridRow: "span 8 / span 8"
1527
+ });
1528
+ _responsiveRule(util$c, "row-9", {
1529
+ gridRow: "span 9 / span 9"
1530
+ });
1531
+ _responsiveRule(util$c, "row-10", {
1532
+ gridRow: "span 10 / span 10"
1533
+ });
1534
+ _responsiveRule(util$c, "row-12", {
1535
+ gridRow: "span 12 / span 12"
1536
+ });
1537
+ const gridRowStyle = {
1538
+ layers: {
1539
+ util: util$c
1540
+ }
1541
+ }, util$b = {};
1542
+ _responsiveRule(util$b, "row-end-auto", {
1543
+ gridRowEnd: "auto"
1544
+ });
1545
+ _responsiveRule(util$b, "row-end-1", {
1546
+ gridRowEnd: "1"
1547
+ });
1548
+ _responsiveRule(util$b, "row-end-2", {
1549
+ gridRowEnd: "2"
1550
+ });
1551
+ _responsiveRule(util$b, "row-end-3", {
1552
+ gridRowEnd: "3"
1553
+ });
1554
+ _responsiveRule(util$b, "row-end-4", {
1555
+ gridRowEnd: "4"
1556
+ });
1557
+ _responsiveRule(util$b, "row-end-5", {
1558
+ gridRowEnd: "5"
1559
+ });
1560
+ _responsiveRule(util$b, "row-end-6", {
1561
+ gridRowEnd: "6"
1562
+ });
1563
+ _responsiveRule(util$b, "row-end-7", {
1564
+ gridRowEnd: "7"
1565
+ });
1566
+ _responsiveRule(util$b, "row-end-8", {
1567
+ gridRowEnd: "8"
1568
+ });
1569
+ _responsiveRule(util$b, "row-end-9", {
1570
+ gridRowEnd: "9"
1571
+ });
1572
+ _responsiveRule(util$b, "row-end-10", {
1573
+ gridRowEnd: "10"
1574
+ });
1575
+ _responsiveRule(util$b, "row-end-11", {
1576
+ gridRowEnd: "11"
1577
+ });
1578
+ _responsiveRule(util$b, "row-end-12", {
1579
+ gridRowEnd: "12"
1580
+ });
1581
+ const gridRowEndStyle = {
1582
+ layers: {
1583
+ util: util$b
1584
+ }
1585
+ }, util$a = {};
1586
+ _responsiveRule(util$a, "row-start-auto", {
1587
+ gridRowStart: "auto"
1588
+ });
1589
+ _responsiveRule(util$a, "row-start-1", {
1590
+ gridRowStart: "1"
1591
+ });
1592
+ _responsiveRule(util$a, "row-start-2", {
1593
+ gridRowStart: "2"
1594
+ });
1595
+ _responsiveRule(util$a, "row-start-3", {
1596
+ gridRowStart: "3"
1597
+ });
1598
+ _responsiveRule(util$a, "row-start-4", {
1599
+ gridRowStart: "4"
1600
+ });
1601
+ _responsiveRule(util$a, "row-start-5", {
1602
+ gridRowStart: "5"
1603
+ });
1604
+ _responsiveRule(util$a, "row-start-6", {
1605
+ gridRowStart: "6"
1606
+ });
1607
+ _responsiveRule(util$a, "row-start-7", {
1608
+ gridRowStart: "7"
1609
+ });
1610
+ _responsiveRule(util$a, "row-start-8", {
1611
+ gridRowStart: "8"
1612
+ });
1613
+ _responsiveRule(util$a, "row-start-9", {
1614
+ gridRowStart: "9"
1615
+ });
1616
+ _responsiveRule(util$a, "row-start-10", {
1617
+ gridRowStart: "10"
1618
+ });
1619
+ _responsiveRule(util$a, "row-start-11", {
1620
+ gridRowStart: "11"
1621
+ });
1622
+ _responsiveRule(util$a, "row-start-12", {
1623
+ gridRowStart: "12"
1624
+ });
1625
+ const gridRowStartStyle = {
1626
+ layers: {
1627
+ util: util$a
1628
+ }
1629
+ }, util$9 = {};
1630
+ _responsiveRule(util$9, "h-fill", {
1631
+ height: "100%"
1632
+ });
1633
+ _responsiveRule(util$9, "h-stretch", {
1634
+ height: "stretch"
1635
+ });
1636
+ const heightStyle = {
1637
+ layers: {
1638
+ util: util$9
1639
+ }
1640
+ }, util$8 = {};
1641
+ _responsiveRule(util$8, "inset-0", {
1642
+ top: 0,
1643
+ left: 0,
1644
+ right: 0,
1645
+ bottom: 0
1646
+ });
1647
+ _responsiveRule(util$8, "top-0", {
1648
+ top: 0
1649
+ });
1650
+ _responsiveRule(util$8, "right-0", {
1651
+ right: 0
1652
+ });
1653
+ _responsiveRule(util$8, "bottom-0", {
1654
+ bottom: 0
1655
+ });
1656
+ _responsiveRule(util$8, "left-0", {
1657
+ left: 0
1658
+ });
1659
+ const insetStyle = {
1660
+ layers: {
1661
+ util: util$8
1662
+ }
1663
+ }, util$7 = {};
1664
+ for (const space of SPACE)
1665
+ _responsiveRule(util$7, `m-${space}`, {
1666
+ margin: vars.space[space]
1667
+ });
1668
+ for (const space of SPACE)
1669
+ _responsiveRule(util$7, `mx-${space}`, {
1670
+ marginLeft: vars.space[space],
1671
+ marginRight: vars.space[space]
1672
+ });
1673
+ for (const space of SPACE)
1674
+ _responsiveRule(util$7, `my-${space}`, {
1675
+ marginTop: vars.space[space],
1676
+ marginBottom: vars.space[space]
1677
+ });
1678
+ for (const space of SPACE)
1679
+ _responsiveRule(util$7, `mt-${space}`, {
1680
+ marginTop: vars.space[space]
1681
+ });
1682
+ for (const space of SPACE)
1683
+ _responsiveRule(util$7, `mr-${space}`, {
1684
+ marginRight: vars.space[space]
1685
+ });
1686
+ for (const space of SPACE)
1687
+ _responsiveRule(util$7, `mb-${space}`, {
1688
+ marginBottom: vars.space[space]
1689
+ });
1690
+ for (const space of SPACE)
1691
+ _responsiveRule(util$7, `ml-${space}`, {
1692
+ marginLeft: vars.space[space]
1693
+ });
1694
+ const marginStyle = {
1695
+ layers: {
1696
+ util: util$7
1697
+ }
1698
+ }, util$6 = {};
1699
+ _responsiveRule(util$6, "max-w-0", {
1700
+ maxWidth: vars.container[0]
1701
+ });
1702
+ _responsiveRule(util$6, "max-w-1", {
1703
+ maxWidth: vars.container[1]
1704
+ });
1705
+ _responsiveRule(util$6, "max-w-2", {
1706
+ maxWidth: vars.container[2]
1707
+ });
1708
+ _responsiveRule(util$6, "max-w-3", {
1709
+ maxWidth: vars.container[3]
1710
+ });
1711
+ _responsiveRule(util$6, "max-w-4", {
1712
+ maxWidth: vars.container[4]
1713
+ });
1714
+ _responsiveRule(util$6, "max-w-5", {
1715
+ maxWidth: vars.container[5]
1716
+ });
1717
+ _responsiveRule(util$6, "max-w-auto", {
1718
+ maxWidth: "none"
1719
+ });
1720
+ _responsiveRule(util$6, "max-w-fill", {
1721
+ maxWidth: "100%"
1722
+ });
1723
+ const maxWidthStyle = {
1724
+ layers: {
1725
+ util: util$6
1726
+ }
1727
+ }, rules$2 = {
1728
+ ".outline-none": {
1729
+ outline: "none"
1730
+ }
1731
+ }, outlineStyle = {
1732
+ layers: {
1733
+ util: rules$2
1734
+ }
1735
+ }, util$5 = {};
1736
+ _responsiveRule(util$5, "overflow-visible", {
1737
+ overflow: "visible"
1738
+ });
1739
+ _responsiveRule(util$5, "overflow-hidden", {
1740
+ overflow: "hidden"
1741
+ });
1742
+ _responsiveRule(util$5, "overflow-scroll", {
1743
+ overflow: "scroll"
1744
+ });
1745
+ _responsiveRule(util$5, "overflow-auto", {
1746
+ overflow: "auto"
1747
+ });
1748
+ const overflowStyle = {
1749
+ layers: {
1750
+ util: util$5
1751
+ }
1752
+ }, util$4 = {};
1753
+ for (const space of SPACE)
1754
+ _responsiveRule(util$4, `p-${space}`, {
1755
+ padding: vars.space[space]
1756
+ });
1757
+ for (const space of SPACE)
1758
+ _responsiveRule(util$4, `px-${space}`, {
1759
+ paddingLeft: vars.space[space],
1760
+ paddingRight: vars.space[space]
1761
+ });
1762
+ for (const space of SPACE)
1763
+ _responsiveRule(util$4, `py-${space}`, {
1764
+ paddingTop: vars.space[space],
1765
+ paddingBottom: vars.space[space]
1766
+ });
1767
+ for (const space of SPACE)
1768
+ _responsiveRule(util$4, `pt-${space}`, {
1769
+ paddingTop: vars.space[space]
1770
+ });
1771
+ for (const space of SPACE)
1772
+ _responsiveRule(util$4, `pr-${space}`, {
1773
+ paddingRight: vars.space[space]
1774
+ });
1775
+ for (const space of SPACE)
1776
+ _responsiveRule(util$4, `pb-${space}`, {
1777
+ paddingBottom: vars.space[space]
1778
+ });
1779
+ for (const space of SPACE)
1780
+ _responsiveRule(util$4, `pl-${space}`, {
1781
+ paddingLeft: vars.space[space]
1782
+ });
1783
+ const paddingStyle = {
1784
+ layers: {
1785
+ util: util$4
1786
+ }
1787
+ }, rules$1 = {
1788
+ ".pointer-events-none": {
1789
+ pointerEvents: "none"
1790
+ },
1791
+ ".pointer-events-auto": {
1792
+ pointerEvents: "auto"
1793
+ }
1794
+ }, pointerEventsStyle = {
1795
+ layers: {
1796
+ util: rules$1
1797
+ }
1798
+ }, util$3 = {};
1799
+ _responsiveRule(util$3, "position-absolute", {
1800
+ position: "absolute"
1801
+ });
1802
+ _responsiveRule(util$3, "position-fixed", {
1803
+ position: "fixed"
1804
+ });
1805
+ _responsiveRule(util$3, "position-relative", {
1806
+ position: "relative"
1807
+ });
1808
+ _responsiveRule(util$3, "position-static", {
1809
+ position: "static"
1810
+ });
1811
+ _responsiveRule(util$3, "position-sticky", {
1812
+ position: "sticky"
1813
+ });
1814
+ const positionStyle = {
1815
+ layers: {
1816
+ util: util$3
1817
+ }
1818
+ }, util$2 = {};
1819
+ _responsiveRule(util$2, "r-0", {
1820
+ borderRadius: vars.radius[0]
1821
+ });
1822
+ _responsiveRule(util$2, "r-1", {
1823
+ borderRadius: vars.radius[1]
1824
+ });
1825
+ _responsiveRule(util$2, "r-2", {
1826
+ borderRadius: vars.radius[2]
1827
+ });
1828
+ _responsiveRule(util$2, "r-3", {
1829
+ borderRadius: vars.radius[3]
1830
+ });
1831
+ _responsiveRule(util$2, "r-4", {
1832
+ borderRadius: vars.radius[4]
1833
+ });
1834
+ _responsiveRule(util$2, "r-5", {
1835
+ borderRadius: vars.radius[5]
1836
+ });
1837
+ _responsiveRule(util$2, "r-6", {
1838
+ borderRadius: vars.radius[6]
1839
+ });
1840
+ _responsiveRule(util$2, "r-full", {
1841
+ borderRadius: "9999px"
1842
+ });
1843
+ const radiusStyle = {
1844
+ layers: {
1845
+ util: util$2
1846
+ }
1847
+ }, util$1 = {};
1848
+ _responsiveRule(util$1, "shadow-0", {
1849
+ boxShadow: "none"
1850
+ });
1851
+ _responsiveRule(util$1, "shadow-1", {
1852
+ boxShadow: [`var(--shadow-outline) ${vars.color.shadow.outline}`, `var(--shadow-1-umbra) ${vars.color.shadow.umbra}`, `var(--shadow-1-penumbra) ${vars.color.shadow.penumbra}`, `var(--shadow-1-ambient) ${vars.color.shadow.ambient}`].join(", ")
1853
+ });
1854
+ _responsiveRule(util$1, "shadow-2", {
1855
+ boxShadow: [`var(--shadow-outline) ${vars.color.shadow.outline}`, `var(--shadow-2-umbra) ${vars.color.shadow.umbra}`, `var(--shadow-2-penumbra) ${vars.color.shadow.penumbra}`, `var(--shadow-2-ambient) ${vars.color.shadow.ambient}`].join(", ")
1856
+ });
1857
+ _responsiveRule(util$1, "shadow-3", {
1858
+ boxShadow: [`var(--shadow-outline) ${vars.color.shadow.outline}`, `var(--shadow-3-umbra) ${vars.color.shadow.umbra}`, `var(--shadow-3-penumbra) ${vars.color.shadow.penumbra}`, `var(--shadow-3-ambient) ${vars.color.shadow.ambient}`].join(", ")
1859
+ });
1860
+ _responsiveRule(util$1, "shadow-4", {
1861
+ boxShadow: [`var(--shadow-outline) ${vars.color.shadow.outline}`, `var(--shadow-4-umbra) ${vars.color.shadow.umbra}`, `var(--shadow-4-penumbra) ${vars.color.shadow.penumbra}`, `var(--shadow-4-ambient) ${vars.color.shadow.ambient}`].join(", ")
1862
+ });
1863
+ _responsiveRule(util$1, "shadow-5", {
1864
+ boxShadow: [`var(--shadow-outline) ${vars.color.shadow.outline}`, `var(--shadow-5-umbra) ${vars.color.shadow.umbra}`, `var(--shadow-5-penumbra) ${vars.color.shadow.penumbra}`, `var(--shadow-5-ambient) ${vars.color.shadow.ambient}`].join(", ")
1865
+ });
1866
+ const shadowStyle = {
1867
+ layers: {
1868
+ util: util$1
1869
+ }
1870
+ }, rules = {
1871
+ ".text-overflow-ellipsis": {
1872
+ display: "block",
1873
+ whiteSpace: "nowrap",
1874
+ textOverflow: "ellipsis",
1875
+ // @ts-expect-error - TODO: fix this
1876
+ overflow: ["hidden", "clip"]
1877
+ },
1878
+ ".text-overflow-clip": {
1879
+ display: "block",
1880
+ whiteSpace: "nowrap",
1881
+ textOverflow: "clip",
1882
+ // @ts-expect-error - TODO: fix this
1883
+ overflow: ["hidden", "clip"]
1884
+ }
1885
+ }, textOverflowStyle = {
1886
+ layers: {
1887
+ util: rules
1888
+ }
1889
+ }, util = {};
1890
+ _responsiveRule(util, "w-fill", {
1891
+ // @ts-expect-error - TODO: fix this
1892
+ width: ["-moz-available", "-webkit-fill-available", "stretch"]
1893
+ });
1894
+ const widthStyle = {
1895
+ layers: {
1896
+ util
1897
+ }
1898
+ }, component$5 = {
1899
+ ".breadcrumbs": {
1900
+ lineHeight: 0
1901
+ }
1902
+ }, breadcrumbsStyle = {
1903
+ layers: {
1904
+ component: component$5
1905
+ }
1906
+ }, keyframes$2 = {
1907
+ "dialog-zoom-in": {
1908
+ from: {
1909
+ opacity: 0,
1910
+ transform: "scale(0.95)"
1911
+ },
1912
+ to: {
1913
+ opacity: 1,
1914
+ transform: "scale(1)"
1915
+ }
1916
+ },
1917
+ "dialog-fade-in": {
1918
+ from: {
1919
+ opacity: 0
1920
+ },
1921
+ to: {
1922
+ opacity: 1
1923
+ }
1924
+ }
1925
+ }, component$4 = {
1926
+ ".dialog": {
1927
+ // 'top': 0,
1928
+ // 'left': 0,
1929
+ // 'right': 0,
1930
+ // 'bottom': 0,
933
1931
  alignItems: "center",
934
1932
  justifyContent: "center",
935
1933
  outline: "none",
936
1934
  background: vars.color.backdrop,
937
- "@keyframes": {
938
- "dialog-zoom-in": {
939
- from: {
940
- opacity: 0,
941
- transform: "scale(0.95)"
942
- },
943
- to: {
944
- opacity: 1,
945
- transform: "scale(1)"
946
- }
947
- },
948
- "dialog-fade-in": {
949
- from: {
950
- opacity: 0
951
- },
952
- to: {
953
- opacity: 1
954
- }
955
- }
956
- },
957
1935
  "@nest": {
958
1936
  "&[data-animate]": {
959
1937
  animation: "dialog-fade-in 200ms ease-out"
@@ -964,76 +1942,59 @@ const dialogRules = {
964
1942
  }
965
1943
  }
966
1944
  },
967
- "dialog-container": {
1945
+ ".dialog-container": {
968
1946
  width: "100%",
969
1947
  height: "100%"
970
1948
  },
971
- "dialog-card-root": {
1949
+ ".dialog-card-root": {
972
1950
  width: "100%",
973
1951
  maxHeight: "100%",
1952
+ // @ts-expect-error - TODO: fix this
974
1953
  overflow: ["hidden", "clip"]
975
1954
  },
976
- "dialog-layout": {
1955
+ ".dialog-layout": {
977
1956
  width: "100%"
978
1957
  },
979
- "dialog-header": {
1958
+ ".dialog-header": {
980
1959
  zIndex: 2
981
1960
  },
982
- "dialog-content": {
1961
+ ".dialog-content": {
983
1962
  zIndex: 1,
984
1963
  outline: "none"
985
1964
  },
986
- "dialog-footer": {
1965
+ ".dialog-footer": {
987
1966
  zIndex: 3
988
1967
  }
989
- }, menuRules = {
990
- menu: {
1968
+ }, dialogStyle = {
1969
+ keyframes: keyframes$2,
1970
+ layers: {
1971
+ component: component$4
1972
+ }
1973
+ }, component$3 = {
1974
+ ".menu": {
991
1975
  outline: "none"
992
1976
  },
993
- "menu-divider": {
1977
+ ".menu-divider": {
994
1978
  height: "1px",
995
1979
  border: 0,
996
1980
  backgroundColor: vars.color.border,
997
1981
  margin: 0
998
1982
  }
999
- };
1000
- function responsiveRules(className, props) {
1001
- return {
1002
- [className]: props,
1003
- [`_1:${className}`]: {
1004
- "@media": {
1005
- "screen and (min-width: 360px)": props
1006
- }
1007
- },
1008
- [`_2:${className}`]: {
1009
- "@media": {
1010
- "screen and (min-width: 600px)": props
1011
- }
1012
- },
1013
- [`_3:${className}`]: {
1014
- "@media": {
1015
- "screen and (min-width: 900px)": props
1016
- }
1017
- },
1018
- [`_4:${className}`]: {
1019
- "@media": {
1020
- "screen and (min-width: 1200px)": props
1021
- }
1022
- },
1023
- [`_5:${className}`]: {
1024
- "@media": {
1025
- "screen and (min-width: 1800px)": props
1026
- }
1983
+ }, menuStyle = {
1984
+ layers: {
1985
+ component: component$3
1986
+ }
1987
+ }, keyframes$1 = {
1988
+ "skeleton-pulse": {
1989
+ "0%": {
1990
+ backgroundPosition: "100%"
1027
1991
  },
1028
- [`_6:${className}`]: {
1029
- "@media": {
1030
- "screen and (min-width: 2400px)": props
1031
- }
1992
+ "100%": {
1993
+ backgroundPosition: "-100%"
1032
1994
  }
1033
- };
1034
- }
1035
- const skeletonRules = {
1036
- skeleton: {
1995
+ }
1996
+ }, component$2 = {
1997
+ ".skeleton": {
1037
1998
  "--color-skeleton-from": `color-mix(in srgb, transparent, ${vars.color.muted.fg} 5%)`,
1038
1999
  "--color-skeleton-to": `color-mix(in srgb, transparent, ${vars.color.muted.fg} 10%)`,
1039
2000
  backgroundColor: vars.color.skeleton.from,
@@ -1042,16 +2003,6 @@ const skeletonRules = {
1042
2003
  backgroundAttachment: "fixed",
1043
2004
  opacity: 0,
1044
2005
  transition: "opacity 200ms ease-in",
1045
- "@keyframes": {
1046
- "skeleton-pulse": {
1047
- "0%": {
1048
- backgroundPosition: "100%"
1049
- },
1050
- "100%": {
1051
- backgroundPosition: "-100%"
1052
- }
1053
- }
1054
- },
1055
2006
  "@nest": {
1056
2007
  "&[data-animated]": {
1057
2008
  backgroundImage: ["linear-gradient(to right", vars.color.skeleton.from, vars.color.skeleton.to, vars.color.skeleton.from, vars.color.skeleton.from, vars.color.skeleton.from, ")"].join(", "),
@@ -1070,48 +2021,41 @@ const skeletonRules = {
1070
2021
  }
1071
2022
  }
1072
2023
  },
1073
- "font-skeleton": {
2024
+ ".font-skeleton": {
1074
2025
  height: "calc(var(--font-skeleton-line-height) - var(--font-skeleton-ascender-height) - var(--font-skeleton-descender-height))"
1075
- },
1076
- // ...responsiveRules('text-skeleton-0', {
1077
- // '--font-skeleton-line-height': 'var(--font-text-0-line-height)',
1078
- // '--font-skeleton-ascender-height': 'var(--font-text-0-ascender-height)',
1079
- // '--font-skeleton-descender-height': 'var(--font-text-0-descender-height)',
1080
- // }),
1081
- ...FONT_CODE_SIZE.reduce((acc, size) => ({
1082
- ...acc,
1083
- ...responsiveRules(`code-skeleton-${size}`, {
1084
- "--font-skeleton-line-height": vars.font.code.sizes[size].lineHeight,
1085
- "--font-skeleton-ascender-height": vars.font.code.sizes[size].ascenderHeight,
1086
- "--font-skeleton-descender-height": vars.font.code.sizes[size].descenderHeight
1087
- })
1088
- }), {}),
1089
- ...FONT_HEADING_SIZE.reduce((acc, size) => ({
1090
- ...acc,
1091
- ...responsiveRules(`heading-skeleton-${size}`, {
1092
- "--font-skeleton-line-height": vars.font.heading.sizes[size].lineHeight,
1093
- "--font-skeleton-ascender-height": vars.font.heading.sizes[size].ascenderHeight,
1094
- "--font-skeleton-descender-height": vars.font.heading.sizes[size].descenderHeight
1095
- })
1096
- }), {}),
1097
- ...FONT_LABEL_SIZE.reduce((acc, size) => ({
1098
- ...acc,
1099
- ...responsiveRules(`label-skeleton-${size}`, {
1100
- "--font-skeleton-line-height": vars.font.label.sizes[size].lineHeight,
1101
- "--font-skeleton-ascender-height": vars.font.label.sizes[size].ascenderHeight,
1102
- "--font-skeleton-descender-height": vars.font.label.sizes[size].descenderHeight
1103
- })
1104
- }), {}),
1105
- ...FONT_TEXT_SIZE.reduce((acc, size) => ({
1106
- ...acc,
1107
- ...responsiveRules(`text-skeleton-${size}`, {
1108
- "--font-skeleton-line-height": vars.font.text.sizes[size].lineHeight,
1109
- "--font-skeleton-ascender-height": vars.font.text.sizes[size].ascenderHeight,
1110
- "--font-skeleton-descender-height": vars.font.text.sizes[size].descenderHeight
1111
- })
1112
- }), {})
1113
- }, toastRules = {
1114
- "toast-layer": {
2026
+ }
2027
+ };
2028
+ for (const size of FONT_CODE_SIZE)
2029
+ _responsiveRule(component$2, `code-skeleton-${size}`, {
2030
+ "--font-skeleton-line-height": vars.font.code.sizes[size].lineHeight,
2031
+ "--font-skeleton-ascender-height": vars.font.code.sizes[size].ascenderHeight,
2032
+ "--font-skeleton-descender-height": vars.font.code.sizes[size].descenderHeight
2033
+ });
2034
+ for (const size of FONT_HEADING_SIZE)
2035
+ _responsiveRule(component$2, `heading-skeleton-${size}`, {
2036
+ "--font-skeleton-line-height": vars.font.heading.sizes[size].lineHeight,
2037
+ "--font-skeleton-ascender-height": vars.font.heading.sizes[size].ascenderHeight,
2038
+ "--font-skeleton-descender-height": vars.font.heading.sizes[size].descenderHeight
2039
+ });
2040
+ for (const size of FONT_LABEL_SIZE)
2041
+ _responsiveRule(component$2, `label-skeleton-${size}`, {
2042
+ "--font-skeleton-line-height": vars.font.label.sizes[size].lineHeight,
2043
+ "--font-skeleton-ascender-height": vars.font.label.sizes[size].ascenderHeight,
2044
+ "--font-skeleton-descender-height": vars.font.label.sizes[size].descenderHeight
2045
+ });
2046
+ for (const size of FONT_TEXT_SIZE)
2047
+ _responsiveRule(component$2, `text-skeleton-${size}`, {
2048
+ "--font-skeleton-line-height": vars.font.text.sizes[size].lineHeight,
2049
+ "--font-skeleton-ascender-height": vars.font.text.sizes[size].ascenderHeight,
2050
+ "--font-skeleton-descender-height": vars.font.text.sizes[size].descenderHeight
2051
+ });
2052
+ const skeletonStyle = {
2053
+ keyframes: keyframes$1,
2054
+ layers: {
2055
+ component: component$2
2056
+ }
2057
+ }, component$1 = {
2058
+ ".toast-layer": {
1115
2059
  position: "fixed",
1116
2060
  right: 0,
1117
2061
  bottom: 0,
@@ -1119,12 +2063,62 @@ const skeletonRules = {
1119
2063
  maxWidth: "420px",
1120
2064
  width: "100%"
1121
2065
  },
1122
- toast: {
2066
+ ".toast": {
1123
2067
  pointerEvents: "all",
2068
+ // @ts-expect-error - TODO: fix this
1124
2069
  overflow: ["hidden", "clip"]
1125
2070
  }
1126
- }, _arrowRules = {
1127
- arrow: {
2071
+ }, toastStyle = {
2072
+ layers: {
2073
+ component: component$1
2074
+ }
2075
+ }, component = {
2076
+ ".tree-item": {
2077
+ "@nest": {
2078
+ '&[role="none"] > [role="treeitem"]': {
2079
+ outline: "none",
2080
+ cursor: "default",
2081
+ borderRadius: "3px",
2082
+ backgroundColor: vars.color.bg,
2083
+ // 'var(--card-bg-color)',
2084
+ color: "var(--treeitem-fg-color)"
2085
+ },
2086
+ '&[role="none"] > [role="treeitem"]:focus': {
2087
+ position: "relative"
2088
+ },
2089
+ '&[role="treeitem"]': {
2090
+ outline: "none"
2091
+ },
2092
+ '&[role="treeitem"] > div': {
2093
+ cursor: "default",
2094
+ borderRadius: "3px",
2095
+ backgroundColor: vars.color.bg,
2096
+ // 'var(--card-bg-color)',
2097
+ color: "var(--treeitem-fg-color)"
2098
+ },
2099
+ '&[role="treeitem"]:focus > div': {
2100
+ position: "relative"
2101
+ }
2102
+ // &[role='treeitem'] {
2103
+ // outline: none;
2104
+ // & > div {
2105
+ // cursor: default;
2106
+ // border-radius: 3px;
2107
+ // background-color: var(--card-bg-color);
2108
+ // color: var(--treeitem-fg-color);
2109
+ // }
2110
+ // &:focus > div {
2111
+ // position: relative;
2112
+ // }
2113
+ // }
2114
+ }
2115
+ }
2116
+ }, treeStyle = {
2117
+ layers: {
2118
+ component
2119
+ }
2120
+ }, primitive$o = {
2121
+ ".arrow": {
1128
2122
  position: "absolute",
1129
2123
  // todo: replace with vars?
1130
2124
  width: "var(--arrow-size)",
@@ -1167,24 +2161,28 @@ const skeletonRules = {
1167
2161
  }
1168
2162
  }
1169
2163
  },
1170
- "arrow-stroke": {
2164
+ ".arrow-stroke": {
1171
2165
  stroke: vars.color.shadow.outline
1172
2166
  },
1173
- "arrow-shape": {
2167
+ ".arrow-shape": {
1174
2168
  fill: vars.color.bg
1175
2169
  }
1176
- }, _inputRules = {
1177
- input: {
2170
+ }, _arrowStyle = {
2171
+ layers: {
2172
+ primitive: primitive$o
2173
+ }
2174
+ }, primitive$n = {
2175
+ ".input": {
1178
2176
  position: "relative"
1179
2177
  },
1180
- "input-b": {
2178
+ ".input-b": {
1181
2179
  "@nest": {
1182
2180
  "& .input-presentation": {
1183
2181
  boxShadow: `inset 0 0 0 1px ${vars.color.input.border}`
1184
2182
  }
1185
2183
  }
1186
2184
  },
1187
- "input-element": {
2185
+ ".input-element": {
1188
2186
  "--color-input-fg": vars.color.tinted.default.fg[2],
1189
2187
  "--color-input-placeholder": vars.color.tinted.default.border[4],
1190
2188
  WebkitFontSmoothing: "inherit",
@@ -1205,6 +2203,7 @@ const skeletonRules = {
1205
2203
  display: "block",
1206
2204
  boxSizing: "border-box",
1207
2205
  resize: "none",
2206
+ // @ts-expect-error - TODO: fix this
1208
2207
  width: ["-moz-available", "-webkit-fill-available", "stretch"],
1209
2208
  "@nest": {
1210
2209
  ".input[data-icon-left] &": {
@@ -1227,7 +2226,7 @@ const skeletonRules = {
1227
2226
  }
1228
2227
  }
1229
2228
  },
1230
- "input-presentation": {
2229
+ ".input-presentation": {
1231
2230
  [varNames.color.input.fg]: vars.color.tinted.default.fg[4],
1232
2231
  [varNames.color.input.bg]: vars.color.tinted.default.bg[0],
1233
2232
  [varNames.color.input.border]: vars.color.tinted.default.border[1],
@@ -1276,7 +2275,7 @@ const skeletonRules = {
1276
2275
  };
1277
2276
  for (const textSize of FONT_TEXT_SIZE) {
1278
2277
  const source = vars.font.text.sizes[textSize];
1279
- _inputRules[`input-${textSize}`] = {
2278
+ primitive$n[`.input-${textSize}`] = {
1280
2279
  [varNames.input.fontSize]: source.fontSize,
1281
2280
  [varNames.input.lineHeight]: source.lineHeight,
1282
2281
  [varNames.input.letterSpacing]: source.letterSpacing,
@@ -1285,23 +2284,27 @@ for (const textSize of FONT_TEXT_SIZE) {
1285
2284
  };
1286
2285
  }
1287
2286
  for (const space of SPACE)
1288
- Object.assign(_inputRules, responsiveRules(`input-p-${space}`, {
2287
+ primitive$n[`.input-p-${space}`] = {
1289
2288
  [varNames.input.padding]: vars.space[space]
1290
- }));
2289
+ };
1291
2290
  for (const space of SPACE)
1292
- Object.assign(_inputRules, responsiveRules(`input-g-${space}`, {
2291
+ primitive$n[`.input-g-${space}`] = {
1293
2292
  [varNames.input.gap]: vars.space[space]
1294
- }));
1295
- const toneMap$2 = {
1296
- default: "surface",
2293
+ };
2294
+ const _inputStyle = {
2295
+ layers: {
2296
+ primitive: primitive$n
2297
+ }
2298
+ }, toneMap$2 = {
2299
+ default: "default",
1297
2300
  neutral: "neutral",
1298
2301
  suggest: "suggest",
1299
2302
  primary: "accent",
1300
2303
  positive: "positive",
1301
2304
  caution: "caution",
1302
2305
  critical: "critical"
1303
- }, _selectableRules = {
1304
- selectable: {
2306
+ }, primitive$m = {
2307
+ ".selectable": {
1305
2308
  backgroundColor: vars.color.bg,
1306
2309
  color: vars.color.fg,
1307
2310
  "--color-bg": vars.color.tinted.bg[0],
@@ -1315,6 +2318,7 @@ const toneMap$2 = {
1315
2318
  font: "inherit",
1316
2319
  textAlign: "inherit",
1317
2320
  border: 0,
2321
+ // @ts-expect-error - TODO: fix this
1318
2322
  width: ["-moz-available", "-webkit-fill-available", "stretch"]
1319
2323
  },
1320
2324
  /* &:is(a) */
@@ -1362,6 +2366,10 @@ const toneMap$2 = {
1362
2366
  }
1363
2367
  }
1364
2368
  }
2369
+ }, _selectableStyle = {
2370
+ layers: {
2371
+ primitive: primitive$m
2372
+ }
1365
2373
  };
1366
2374
  function buildSelectableTones() {
1367
2375
  const rules2 = {};
@@ -1402,8 +2410,8 @@ function buildSelectableTones() {
1402
2410
  }
1403
2411
  return rules2;
1404
2412
  }
1405
- const avatarRules = {
1406
- avatar: {
2413
+ const primitive$l = {
2414
+ ".avatar": {
1407
2415
  backgroundColor: vars.color.avatar.bg,
1408
2416
  position: "relative",
1409
2417
  boxSizing: "border-box",
@@ -1439,23 +2447,16 @@ const avatarRules = {
1439
2447
  [varNames.color.avatar.bg]: vars.color.border,
1440
2448
  [varNames.color.avatar.fg]: vars.color.bg
1441
2449
  },
1442
- ...THEME_COLOR_AVATAR_COLORS.reduce((acc, color) => ({
2450
+ ...THEME_COLOR_AVATAR_COLORS.reduce((acc, color2) => ({
1443
2451
  ...acc,
1444
- [`&.${color}`]: {
1445
- [varNames.color.avatar.bg]: vars.color.avatar[color].bg,
1446
- [varNames.color.avatar.fg]: vars.color.avatar[color].fg
2452
+ [`&.${color2}`]: {
2453
+ [varNames.color.avatar.bg]: vars.color.avatar[color2].bg,
2454
+ [varNames.color.avatar.fg]: vars.color.avatar[color2].fg
1447
2455
  }
1448
2456
  }), {})
1449
2457
  }
1450
2458
  },
1451
- ...AVATAR_SIZE.reduce((acc, size) => ({
1452
- ...acc,
1453
- ...responsiveRules(`avatar-${size}`, {
1454
- [varNames.avatar.distance]: vars.avatar.sizes[size].distance,
1455
- [varNames.avatar.size]: vars.avatar.sizes[size].size
1456
- })
1457
- }), {}),
1458
- "avatar-arrow": {
2459
+ ".avatar-arrow": {
1459
2460
  position: "absolute",
1460
2461
  boxSizing: "border-box",
1461
2462
  zIndex: 0,
@@ -1490,7 +2491,7 @@ const avatarRules = {
1490
2491
  }
1491
2492
  }
1492
2493
  },
1493
- "avatar-image": {
2494
+ ".avatar-image": {
1494
2495
  "@nest": {
1495
2496
  "& > img": {
1496
2497
  display: "block",
@@ -1512,11 +2513,11 @@ const avatarRules = {
1512
2513
  }
1513
2514
  }
1514
2515
  },
1515
- "avatar-initials": {
2516
+ ".avatar-initials": {
1516
2517
  color: vars.color.avatar.fg,
1517
2518
  borderRadius: vars.avatar.size
1518
2519
  },
1519
- "avatar-counter": {
2520
+ ".avatar-counter": {
1520
2521
  color: vars.color.fg,
1521
2522
  backgroundColor: vars.color.bg,
1522
2523
  boxShadow: [`0 0 0 1px ${vars.color.bg}`, `inset 0 0 0 1px ${vars.color.border}`].join(", "),
@@ -1532,28 +2533,41 @@ const avatarRules = {
1532
2533
  }
1533
2534
  }
1534
2535
  },
1535
- "avatar-stack": {
2536
+ ".avatar-stack": {
1536
2537
  "@nest": {
1537
2538
  "& > div + div": {
1538
2539
  marginLeft: vars.avatar.distance
1539
2540
  }
1540
2541
  }
1541
2542
  }
1542
- }, badgeToneRules = {};
2543
+ };
2544
+ for (const size of AVATAR_SIZE)
2545
+ _responsiveRule(primitive$l, `avatar-${size}`, {
2546
+ [varNames.avatar.distance]: vars.avatar.sizes[size].distance,
2547
+ [varNames.avatar.size]: vars.avatar.sizes[size].size
2548
+ });
2549
+ const avatarStyle = {
2550
+ layers: {
2551
+ primitive: primitive$l
2552
+ }
2553
+ }, primitive$k = {
2554
+ ".badge": {
2555
+ backgroundColor: vars.color.bg,
2556
+ color: vars.color.fg,
2557
+ verticalAlign: "top"
2558
+ }
2559
+ };
1543
2560
  for (const tone of THEME_COLOR_STATE_TONES)
1544
- badgeToneRules[`badge-${tone}`] = {
1545
- "--color-bg": `var(--color-tinted-${tone}-bg-4)`,
1546
- "--color-fg": `var(--color-tinted-${tone}-fg-1)`
2561
+ primitive$k[`.badge-${tone}`] = {
2562
+ [varNames.color.bg]: vars.color.tinted[tone].bg[4],
2563
+ [varNames.color.fg]: vars.color.tinted[tone].fg[1]
1547
2564
  };
1548
- const badgeRules = {
1549
- badge: {
1550
- backgroundColor: "var(--color-bg)",
1551
- color: "var(--color-fg)",
1552
- verticalAlign: "top"
1553
- },
1554
- ...badgeToneRules
1555
- }, boxRules = {
1556
- box: {
2565
+ const badgeStyle = {
2566
+ layers: {
2567
+ primitive: primitive$k
2568
+ }
2569
+ }, primitive$j = {
2570
+ ".box": {
1557
2571
  minWidth: 0,
1558
2572
  minHeight: 0,
1559
2573
  "@nest": {
@@ -1561,19 +2575,23 @@ const badgeRules = {
1561
2575
  listStyle: "none"
1562
2576
  },
1563
2577
  "&.muted": {
1564
- backgroundColor: "var(--color-muted-bg)"
2578
+ backgroundColor: vars.color.muted.bg
1565
2579
  }
1566
2580
  }
1567
2581
  },
1568
2582
  // sizing
1569
- "box-content": {
2583
+ ".box-content": {
1570
2584
  boxSizing: "content-box"
1571
2585
  },
1572
- "box-border": {
2586
+ ".box-border": {
1573
2587
  boxSizing: "border-box"
1574
2588
  }
2589
+ }, boxStyle = {
2590
+ layers: {
2591
+ primitive: primitive$j
2592
+ }
1575
2593
  }, toneMap$1 = {
1576
- default: "surface",
2594
+ default: "default",
1577
2595
  neutral: "neutral",
1578
2596
  suggest: "suggest",
1579
2597
  primary: "accent",
@@ -1584,102 +2602,8 @@ const badgeRules = {
1584
2602
  default: "solid",
1585
2603
  ghost: "ghost",
1586
2604
  bleed: "tinted"
1587
- }, buttonVariantRules = {};
1588
- for (const mode of THEME_COLOR_BUTTON_MODES)
1589
- for (const tone of THEME_COLOR_STATE_TONES)
1590
- mode === "default" && (buttonVariantRules[`&.${variantMap[mode]}.${toneMap$1[tone]}`] = {
1591
- boxShadow: "none",
1592
- "--color-bg": `var(--color-solid-${tone}-bg-0)`,
1593
- "--color-border": `var(--color-solid-${tone}-border-1)`,
1594
- "--color-fg": `var(--color-solid-${tone}-fg-0)`,
1595
- "--color-muted-fg": `var(--color-solid-${tone}-fg-4)`,
1596
- "@nest": {
1597
- "&:not([data-disabled]):hover": {
1598
- "--color-bg": `var(--color-solid-${tone}-bg-1)`,
1599
- "--color-border": `var(--color-solid-${tone}-border-2)`,
1600
- "--color-fg": `var(--color-solid-${tone}-fg-0)`,
1601
- "--color-muted-fg": `var(--color-solid-${tone}-fg-4)`
1602
- },
1603
- "&:not([data-disabled]):active": {
1604
- "--color-bg": `var(--color-solid-${tone}-bg-2)`,
1605
- "--color-border": `var(--color-solid-${tone}-border-3)`,
1606
- "--color-fg": `var(--color-solid-${tone}-fg-0)`,
1607
- "--color-muted-fg": `var(--color-solid-${tone}-fg-4)`
1608
- },
1609
- "&:not([data-disabled])[data-selected]": {
1610
- "--color-bg": `var(--color-solid-${tone}-bg-2)`,
1611
- "--color-border": `var(--color-solid-${tone}-border-3)`,
1612
- "--color-fg": `var(--color-solid-${tone}-fg-0)`,
1613
- "--color-muted-fg": `var(--color-solid-${tone}-fg-4)`
1614
- },
1615
- "&[data-disabled]": {
1616
- "--color-bg": "var(--color-tinted-default-bg-1)",
1617
- "--color-border": "var(--color-tinted-default-border-0)",
1618
- "--color-fg": "var(--color-tinted-default-border-2)",
1619
- "--color-muted-fg": "var(--color-tinted-default-border-1)"
1620
- }
1621
- }
1622
- }), mode === "bleed" && (buttonVariantRules[`&.${variantMap[mode]}.${toneMap$1[tone]}`] = {
1623
- boxShadow: "none",
1624
- "--color-bg": `var(--color-tinted-${tone}-bg-0)`,
1625
- "--color-border": `var(--color-tinted-${tone}-border-1)`,
1626
- "--color-fg": `var(--color-tinted-${tone}-fg-2)`,
1627
- "--color-muted-fg": `var(--color-tinted-${tone}-fg-4)`,
1628
- "@nest": {
1629
- "&:not([data-disabled]):hover": {
1630
- "--color-bg": `var(--color-tinted-${tone}-bg-1)`,
1631
- "--color-border": `var(--color-tinted-${tone}-border-2)`,
1632
- "--color-fg": `var(--color-tinted-${tone}-fg-1)`,
1633
- "--color-muted-fg": `var(--color-tinted-${tone}-fg-3)`
1634
- },
1635
- "&:not([data-disabled]):active": {
1636
- "--color-bg": `var(--color-tinted-${tone}-bg-2)`,
1637
- "--color-border": `var(--color-tinted-${tone}-border-3)`,
1638
- "--color-fg": `var(--color-tinted-${tone}-fg-1)`,
1639
- "--color-muted-fg": `var(--color-tinted-${tone}-fg-3)`
1640
- },
1641
- "&:not([data-disabled])[data-selected]": {
1642
- "--color-bg": `var(--color-tinted-${tone}-bg-2)`,
1643
- "--color-border": `var(--color-tinted-${tone}-border-3)`,
1644
- "--color-fg": `var(--color-tinted-${tone}-fg-1)`,
1645
- "--color-muted-fg": `var(--color-tinted-${tone}-fg-3)`
1646
- },
1647
- "&[data-disabled]": {
1648
- "--color-bg": "var(--color-tinted-default-bg-0)",
1649
- "--color-border": "var(--color-tinted-default-border-0)",
1650
- "--color-fg": "var(--color-tinted-default-border-2)",
1651
- "--color-muted-fg": "var(--color-tinted-default-border-1)"
1652
- }
1653
- }
1654
- }), mode === "ghost" && (buttonVariantRules[`&.${variantMap[mode]}.${toneMap$1[tone]}`] = {
1655
- "--color-bg": `var(--color-tinted-${tone}-bg-1)`,
1656
- "--color-border": `var(--color-tinted-${tone}-border-0)`,
1657
- "--color-fg": `var(--color-tinted-${tone}-fg-2)`,
1658
- "@nest": {
1659
- "&:not([data-disabled]):hover": {
1660
- "--color-bg": `var(--color-tinted-${tone}-bg-2)`,
1661
- "--color-border": `var(--color-tinted-${tone}-border-1)`,
1662
- "--color-fg": `var(--color-tinted-${tone}-fg-1)`
1663
- },
1664
- "&:not([data-disabled]):active": {
1665
- "--color-bg": `var(--color-tinted-${tone}-bg-3)`,
1666
- "--color-border": `var(--color-tinted-${tone}-border-2)`,
1667
- "--color-fg": `var(--color-tinted-${tone}-fg-1)`
1668
- },
1669
- "&:not([data-disabled])[data-selected]": {
1670
- "--color-bg": `var(--color-tinted-${tone}-bg-3)`,
1671
- "--color-border": `var(--color-tinted-${tone}-border-2)`,
1672
- "--color-fg": `var(--color-tinted-${tone}-fg-1)`
1673
- },
1674
- "&[data-disabled]": {
1675
- "--color-bg": "var(--color-tinted-default-bg-0)",
1676
- "--color-border": "var(--color-tinted-default-border-0)",
1677
- "--color-fg": "var(--color-tinted-default-border-2)"
1678
- }
1679
- }
1680
- });
1681
- const buttonRules = {
1682
- button: {
2605
+ }, primitive$i = {
2606
+ ".button": {
1683
2607
  WebkitFontSmoothing: "inherit",
1684
2608
  appearance: "none",
1685
2609
  font: "inherit",
@@ -1694,9 +2618,9 @@ const buttonRules = {
1694
2618
  textAlign: "left",
1695
2619
  position: "relative",
1696
2620
  verticalAlign: "top",
1697
- backgroundColor: "var(--color-bg)",
1698
- color: "var(--color-fg)",
1699
- boxShadow: "inset 0 0 0 var(--button-border-width) var(--color-border)",
2621
+ backgroundColor: vars.color.bg,
2622
+ color: vars.color.fg,
2623
+ boxShadow: "var(--button-box-shadow)",
1700
2624
  "@nest": {
1701
2625
  "&::-moz-focus-inner": {
1702
2626
  border: 0,
@@ -1708,24 +2632,127 @@ const buttonRules = {
1708
2632
  },
1709
2633
  "&:focus:not(:focus-visible)": {
1710
2634
  outline: "none"
1711
- },
1712
- ...buttonVariantRules
2635
+ }
1713
2636
  }
1714
2637
  },
1715
- "button-loading-box": {
2638
+ ".button-loading-box": {
1716
2639
  position: "absolute",
1717
2640
  top: 0,
1718
2641
  left: 0,
1719
2642
  right: 0,
1720
2643
  bottom: 0,
1721
- backgroundColor: "var(--color-bg)",
2644
+ backgroundColor: vars.color.bg,
1722
2645
  borderRadius: "inherit",
1723
2646
  zIndex: 1,
1724
2647
  opacity: 0.8
1725
2648
  }
2649
+ };
2650
+ for (const tone of THEME_COLOR_STATE_TONES) {
2651
+ const solid = vars.color.solid[tone], tinted = vars.color.tinted[tone];
2652
+ primitive$i[`.button.${variantMap.default}.${toneMap$1[tone]}`] = {
2653
+ [varNames.color.bg]: solid.bg[0],
2654
+ [varNames.color.border]: solid.border[1],
2655
+ [varNames.color.fg]: solid.fg[0],
2656
+ [varNames.color.muted.fg]: solid.fg[4],
2657
+ "--button-box-shadow": "none",
2658
+ "@nest": {
2659
+ "&:not([data-disabled]):hover": {
2660
+ [varNames.color.bg]: solid.bg[1],
2661
+ [varNames.color.border]: solid.border[2],
2662
+ [varNames.color.fg]: solid.fg[0],
2663
+ [varNames.color.muted.fg]: solid.fg[4]
2664
+ },
2665
+ "&:not([data-disabled]):active": {
2666
+ [varNames.color.bg]: solid.bg[2],
2667
+ [varNames.color.border]: solid.border[3],
2668
+ [varNames.color.fg]: solid.fg[0],
2669
+ [varNames.color.muted.fg]: solid.fg[4]
2670
+ },
2671
+ "&:not([data-disabled])[data-selected]": {
2672
+ [varNames.color.bg]: solid.bg[2],
2673
+ [varNames.color.border]: solid.border[3],
2674
+ [varNames.color.fg]: solid.fg[0],
2675
+ [varNames.color.muted.fg]: solid.fg[4]
2676
+ },
2677
+ "&[data-disabled]": {
2678
+ [varNames.color.bg]: vars.color.default.tinted.bg[1],
2679
+ [varNames.color.border]: vars.color.default.tinted.border[0],
2680
+ [varNames.color.fg]: vars.color.default.tinted.fg[2],
2681
+ [varNames.color.muted.fg]: vars.color.default.tinted.fg[1]
2682
+ }
2683
+ }
2684
+ }, primitive$i[`.button.${variantMap.ghost}.${toneMap$1[tone]}`] = {
2685
+ [varNames.color.bg]: tinted.bg[1],
2686
+ [varNames.color.border]: tinted.border[1],
2687
+ [varNames.color.fg]: tinted.fg[2],
2688
+ "--button-box-shadow": "inset 0 0 0 var(--button-border-width) var(--color-border)",
2689
+ "@nest": {
2690
+ "&:not([data-disabled]):hover": {
2691
+ [varNames.color.bg]: tinted.bg[2],
2692
+ [varNames.color.border]: tinted.border[2],
2693
+ [varNames.color.fg]: tinted.fg[1]
2694
+ // '--button-box-shadow': `inset 0 0 0 var(--button-border-width) var(--color-border)`,
2695
+ },
2696
+ "&:not([data-disabled]):active": {
2697
+ [varNames.color.bg]: tinted.bg[3],
2698
+ [varNames.color.border]: tinted.border[3],
2699
+ [varNames.color.fg]: tinted.fg[1],
2700
+ "--button-box-shadow": "inset 0 0 0 var(--button-border-width) var(--color-border)"
2701
+ },
2702
+ "&:not([data-disabled])[data-selected]": {
2703
+ [varNames.color.bg]: tinted.bg[3],
2704
+ [varNames.color.border]: tinted.border[3],
2705
+ [varNames.color.fg]: tinted.fg[1],
2706
+ "--button-box-shadow": "inset 0 0 0 var(--button-border-width) var(--color-border)"
2707
+ },
2708
+ "&[data-disabled]": {
2709
+ [varNames.color.bg]: vars.color.default.tinted.bg[1],
2710
+ [varNames.color.border]: vars.color.default.tinted.border[0],
2711
+ [varNames.color.fg]: vars.color.default.tinted.fg[2]
2712
+ }
2713
+ }
2714
+ }, primitive$i[`.button.${variantMap.bleed}.${toneMap$1[tone]}`] = {
2715
+ boxShadow: "none",
2716
+ [varNames.color.bg]: tinted.bg[0],
2717
+ [varNames.color.border]: tinted.border[1],
2718
+ [varNames.color.fg]: tinted.fg[2],
2719
+ [varNames.color.muted.fg]: tinted.fg[4],
2720
+ "--button-box-shadow": "none",
2721
+ "@nest": {
2722
+ "&:not([data-disabled]):hover": {
2723
+ [varNames.color.bg]: tinted.bg[1],
2724
+ [varNames.color.border]: tinted.border[2],
2725
+ [varNames.color.fg]: tinted.fg[1],
2726
+ [varNames.color.muted.fg]: tinted.fg[3]
2727
+ },
2728
+ "&:not([data-disabled]):active": {
2729
+ [varNames.color.bg]: tinted.bg[2],
2730
+ [varNames.color.border]: tinted.border[3],
2731
+ [varNames.color.fg]: tinted.fg[1],
2732
+ [varNames.color.muted.fg]: tinted.fg[3]
2733
+ },
2734
+ "&:not([data-disabled])[data-selected]": {
2735
+ [varNames.color.bg]: tinted.bg[2],
2736
+ [varNames.color.border]: tinted.border[3],
2737
+ [varNames.color.fg]: tinted.fg[1],
2738
+ [varNames.color.muted.fg]: tinted.fg[3]
2739
+ },
2740
+ "&[data-disabled]": {
2741
+ [varNames.color.bg]: vars.color.default.tinted.bg[0],
2742
+ [varNames.color.border]: vars.color.default.tinted.border[0],
2743
+ [varNames.color.fg]: vars.color.default.tinted.fg[2],
2744
+ [varNames.color.muted.fg]: vars.color.default.tinted.fg[1]
2745
+ }
2746
+ }
2747
+ };
2748
+ }
2749
+ const buttonStyle = {
2750
+ layers: {
2751
+ primitive: primitive$i
2752
+ }
1726
2753
  }, toneMap = {
1727
- transparent: "canvas",
1728
- default: "surface",
2754
+ transparent: "transparent",
2755
+ default: "default",
1729
2756
  neutral: "neutral",
1730
2757
  suggest: "suggest",
1731
2758
  primary: "accent",
@@ -1733,8 +2760,8 @@ const buttonRules = {
1733
2760
  caution: "caution",
1734
2761
  critical: "critical",
1735
2762
  inherit: void 0
1736
- }, cardRules = {
1737
- card: {
2763
+ }, primitive$h = {
2764
+ ".card": {
1738
2765
  backgroundColor: vars.color.bg,
1739
2766
  color: vars.color.fg,
1740
2767
  [varNames.color.bg]: vars.color.tinted.default.bg[0],
@@ -1743,126 +2770,40 @@ const buttonRules = {
1743
2770
  [varNames.color.muted.bg]: vars.color.tinted.default.bg[1],
1744
2771
  [varNames.color.muted.fg]: vars.color.tinted.default.fg[4],
1745
2772
  "@nest": {
1746
- ...buildCardTonesRules(),
1747
- "&[data-checkered]": {
1748
- "--card-bg-image": "repeating-conic-gradient(var(--color-tinted-default-bg-0) 0% 25%, var(--color-tinted-default-bg-1) 0% 50%)",
1749
- backgroundSize: "var(--space-3) var(--space-3)",
1750
- backgroundPosition: "50% 50%",
1751
- backgroundImage: "var(--card-bg-image)"
1752
- },
1753
- "&:is(a)": {
1754
- outline: "none",
1755
- textDecoration: "none",
1756
- "@nest": {
1757
- "&:not(:disabled)": {
1758
- "@nest": {
1759
- "&:hover": {
1760
- "--color-bg": "var(--color-tinted-default-bg-1)",
1761
- "--color-fg": "var(--color-tinted-default-fg-0)",
1762
- "--color-muted-bg": "var(--color-tinted-default-bg-2)",
1763
- "--color-muted-fg": "var(--color-tinted-default-fg-3)"
1764
- // '--color-icon': 'var(--color-tinted-default-fg-1)',
1765
- },
1766
- "&:active, &[data-pressed]": {
1767
- "--color-bg": "var(--color-tinted-default-bg-2)",
1768
- "--color-fg": "var(--color-tinted-default-fg-1)",
1769
- "--color-muted-bg": "var(--color-tinted-default-bg-3)",
1770
- "--color-muted-fg": "var(--color-tinted-default-fg-4)"
1771
- // '--color-icon': 'var(--color-tinted-default-fg-1)',
1772
- },
1773
- //
1774
- "&[data-selectable]:focus, &[data-selected]": {
1775
- "--color-bg": "var(--color-solid-default-bg-1)",
1776
- "--color-fg": "var(--color-solid-default-fg-1)",
1777
- "--color-muted-bg": "var(--color-solid-default-bg-0)",
1778
- "--color-muted-fg": "var(--color-solid-default-fg-3)"
1779
- // '--color-icon': 'var(--color-solid-default-fg-1)',
1780
- }
1781
- }
1782
- }
1783
- }
1784
- },
1785
2773
  "&:is(button)": {
1786
2774
  WebkitFontSmoothing: "inherit",
1787
2775
  appearance: "none",
1788
2776
  outline: "none",
1789
2777
  font: "inherit",
1790
2778
  textAlign: "inherit",
1791
- border: 0,
1792
- width: ["-moz-available", "-webkit-fill-available", "stretch"],
1793
- cursor: "default",
1794
- // todo
1795
- // --card-focus-ring-box-shadow: none;
1796
- // box-shadow: var(--card-focus-ring-box-shadow);
1797
- "@nest": {
1798
- "&:not(:disabled)": {
1799
- "@nest": {
1800
- "&:hover": {
1801
- "--color-bg": "var(--color-tinted-default-bg-1)",
1802
- "--color-fg": "var(--color-tinted-default-fg-1)",
1803
- "--color-muted-bg": "var(--color-tinted-default-bg-2)",
1804
- "--color-muted-fg": "var(--color-tinted-default-fg-3)"
1805
- // '--color-icon': 'var(--color-tinted-default-fg-1)',
1806
- },
1807
- "&:active": {
1808
- "--color-bg": "var(--color-tinted-default-bg-2)",
1809
- "--color-fg": "var(--color-tinted-default-fg-1)",
1810
- "--color-muted-bg": "var(--color-tinted-default-bg-3)",
1811
- "--color-muted-fg": "var(--color-tinted-default-fg-4)"
1812
- // '--color-icon': 'var(--color-tinted-default-fg-1)',
1813
- },
1814
- "&[data-pressed]": {
1815
- "--color-bg": "var(--color-tinted-default-bg-2)",
1816
- "--color-fg": "var(--color-tinted-default-fg-1)",
1817
- "--color-muted-bg": "var(--color-tinted-default-bg-3)",
1818
- "--color-muted-fg": "var(--color-tinted-default-fg-4)"
1819
- // '--color-icon': 'var(--color-tinted-default-fg-1)',
1820
- },
1821
- // &:focus,
1822
- "&[data-selectable]:focus, &[data-selected]": {
1823
- "--color-bg": "var(--color-solid-default-bg-2)",
1824
- "--color-border": "var(--color-solid-default-border-0)",
1825
- "--color-fg": "var(--color-solid-default-fg-1)",
1826
- "--color-muted-bg": "var(--color-solid-default-bg-3)",
1827
- "--color-muted-fg": "var(--color-solid-default-fg-4)"
1828
- // '--color-icon': 'var(--color-solid-default-fg-1)',
1829
- }
1830
- }
1831
- },
1832
- "&:disabled": {
1833
- "--color-bg": "var(--color-tinted-default-bg-0)",
1834
- "--color-fg": "var(--color-tinted-default-border-2)",
1835
- "--color-muted-bg": "var(--color-tinted-default-bg-1)",
1836
- "--color-muted-fg": "var(--color-tinted-default-border-1)"
1837
- }
1838
- }
2779
+ border: "none",
2780
+ // @ts-expect-error - TODO: fix
2781
+ width: ["-moz-available", "-webkit-fill-available", "fill-available"]
2782
+ },
2783
+ "&:is(a)": {
2784
+ outline: "none",
2785
+ textDecoration: "none"
1839
2786
  },
1840
2787
  "&:is(pre)": {
1841
- font: "inherit"
2788
+ font: "inherit",
2789
+ whiteSpace: "inherit"
1842
2790
  }
1843
- },
1844
- ////////////////////////////////////////////////////////////////////////////////////////////////
1845
- // Legacy `--card` variables
1846
- ////////////////////////////////////////////////////////////////////////////////////////////////
1847
- //
1848
- // '--card-accent-fg-color': 'var(--color-accent-fg)',
1849
- // ...THEME_COLOR_AVATAR_COLORS.reduce((acc, color) => {
1850
- // return {
1851
- // ...acc,
1852
- // [`--card-avatar-${color}-bg-color`]: `var(--color-avatar-${color}-bg)`,
1853
- // [`--card-avatar-${color}-fg-color`]: `var(--color-avatar-${color}-fg)`,
1854
- // }
1855
- // }, {} as Properties),
1856
- // '--card-backdrop-color': 'var(--color-backdrop)',
1857
- // ...THEME_COLOR_STATE_TONES.reduce((acc, tone) => {
1858
- // return {
1859
- // ...acc,
1860
- // [`--card-badge-${tone}-bg-color`]: `var(--color-badge-${tone}-bg)`,
1861
- // [`--card-badge-${tone}-dot-color`]: `var(--color-badge-${tone}-dot)`,
1862
- // [`--card-badge-${tone}-fg-color`]: `var(--color-badge-${tone}-fg)`,
1863
- // [`--card-badge-${tone}-icon-color`]: `var(--color-badge-${tone}-icon)`,
1864
- // }
1865
- // }, {} as Properties),
2791
+ }
2792
+ }
2793
+ };
2794
+ for (const scheme of THEME_COLOR_SCHEMES$1) {
2795
+ const schemeProps = {
2796
+ colorScheme: scheme
2797
+ };
2798
+ for (const tone of THEME_COLOR_CARD_TONES) {
2799
+ const _varNames = varNames.color[tone], _vars = vars.color[scheme][tone];
2800
+ _assignToneProps(schemeProps, _varNames, _vars);
2801
+ }
2802
+ primitive$h[`.card.${scheme}`] = schemeProps;
2803
+ }
2804
+ for (const tone of THEME_COLOR_CARD_TONES) {
2805
+ const _varNames = varNames.color, _vars = vars.color[tone], toneProps = {};
2806
+ _assignToneProps(toneProps, _varNames, _vars), Object.assign(toneProps, {
1866
2807
  "--card-bg-color": vars.color.bg,
1867
2808
  "--card-bg2-color": vars.color.muted.bg,
1868
2809
  "--card-border-color": vars.color.border,
@@ -1877,9 +2818,7 @@ const buttonRules = {
1877
2818
  "--card-link-color": vars.color.link.fg,
1878
2819
  "--card-link-fg-color": vars.color.link.fg,
1879
2820
  "--card-muted-bg-color": vars.color.muted.bg,
1880
- // 'var(--color-muted-bg)', // vars.color.tinted.default.bg[1],
1881
2821
  "--card-muted-fg-color": vars.color.muted.fg,
1882
- // vars.color.tinted.default.fg[4],
1883
2822
  "--card-shadow-outline-color": vars.color.shadow.outline,
1884
2823
  "--card-shadow-umbra-color": vars.color.shadow.umbra,
1885
2824
  "--card-shadow-penumbra-color": vars.color.shadow.penumbra,
@@ -1888,181 +2827,92 @@ const buttonRules = {
1888
2827
  // '--card-skeleton-to-color': 'var(--color-skeleton-to)',
1889
2828
  "--card-hairline-soft-color": vars.color.tinted.default.border[1],
1890
2829
  "--card-hairline-hard-color": vars.color.tinted.default.border[2]
2830
+ }), primitive$h[`.card.${toneMap[tone]}`] = toneProps;
2831
+ }
2832
+ const cardStyle = {
2833
+ layers: {
2834
+ primitive: primitive$h
1891
2835
  }
1892
2836
  };
1893
- function buildCardTonesRules() {
1894
- const rules2 = {};
1895
- for (const scheme of ["light", "dark"]) {
1896
- const props = {
1897
- colorScheme: scheme
1898
- };
1899
- for (const cardTone of THEME_COLOR_CARD_TONES) {
1900
- const source = vars.color[scheme][cardTone], target = varNames.color[cardTone];
1901
- Object.assign(props, {
1902
- ...buildCardAvatarColorProperties({
1903
- source,
1904
- target
1905
- }),
1906
- [target.backdrop]: source.backdrop,
1907
- [target.focusRing]: source.focusRing,
1908
- [target.link.fg]: source.link.fg,
1909
- [target.shadow.outline]: source.shadow.outline,
1910
- [target.shadow.umbra]: source.shadow.umbra,
1911
- [target.shadow.penumbra]: source.shadow.penumbra,
1912
- [target.shadow.ambient]: source.shadow.ambient,
1913
- [target.token.atrule]: source.token.atrule,
1914
- [target.token.attrName]: source.token.attrName,
1915
- [target.token.attrValue]: source.token.attrValue,
1916
- [target.token.attribute]: source.token.attribute,
1917
- [target.token.boolean]: source.token.boolean,
1918
- [target.token.builtin]: source.token.builtin,
1919
- [target.token.cdata]: source.token.cdata,
1920
- [target.token.char]: source.token.char,
1921
- [target.token.class]: source.token.class,
1922
- [target.token.className]: source.token.className,
1923
- [target.token.comment]: source.token.comment,
1924
- [target.token.constant]: source.token.constant,
1925
- [target.token.deleted]: source.token.deleted,
1926
- [target.token.doctype]: source.token.doctype,
1927
- [target.token.entity]: source.token.entity,
1928
- [target.token.function]: source.token.function,
1929
- [target.token.hexcode]: source.token.hexcode,
1930
- [target.token.id]: source.token.id,
1931
- [target.token.important]: source.token.important,
1932
- [target.token.inserted]: source.token.inserted,
1933
- [target.token.keyword]: source.token.keyword,
1934
- [target.token.number]: source.token.number,
1935
- [target.token.operator]: source.token.operator,
1936
- [target.token.prolog]: source.token.prolog,
1937
- [target.token.property]: source.token.property,
1938
- [target.token.pseudoClass]: source.token.pseudoClass,
1939
- [target.token.pseudoElement]: source.token.pseudoElement,
1940
- [target.token.punctuation]: source.token.punctuation,
1941
- [target.token.regex]: source.token.regex,
1942
- [target.token.selector]: source.token.selector,
1943
- [target.token.string]: source.token.string,
1944
- [target.token.symbol]: source.token.symbol,
1945
- [target.token.tag]: source.token.tag,
1946
- [target.token.unit]: source.token.unit,
1947
- [target.token.url]: source.token.url,
1948
- [target.token.variable]: source.token.variable,
1949
- ...buildCardColorVariantProperties({
1950
- source: source.solid,
1951
- target: target.solid
1952
- }),
1953
- ...buildCardColorVariantProperties({
1954
- source: source.tinted,
1955
- target: target.tinted
1956
- })
2837
+ function _assignToneProps(toneProps, _varNames, _vars) {
2838
+ Object.assign(toneProps, {
2839
+ [_varNames.accent.fg]: _vars.accent.fg
2840
+ });
2841
+ for (const hue of THEME_COLOR_AVATAR_COLORS)
2842
+ toneProps[`${_varNames.avatar[hue].bg}`] = _vars.avatar[hue].bg, toneProps[`${_varNames.avatar[hue].fg}`] = _vars.avatar[hue].fg;
2843
+ Object.assign(toneProps, {
2844
+ [_varNames.backdrop]: _vars.backdrop,
2845
+ [_varNames.focusRing]: _vars.focusRing,
2846
+ [_varNames.link.fg]: _vars.link.fg,
2847
+ [_varNames.shadow.outline]: _vars.shadow.outline,
2848
+ [_varNames.shadow.umbra]: _vars.shadow.umbra,
2849
+ [_varNames.shadow.penumbra]: _vars.shadow.penumbra,
2850
+ [_varNames.shadow.ambient]: _vars.shadow.ambient,
2851
+ [_varNames.token.atrule]: _vars.token.atrule,
2852
+ [_varNames.token.attrName]: _vars.token.attrName,
2853
+ [_varNames.token.attrValue]: _vars.token.attrValue,
2854
+ [_varNames.token.attribute]: _vars.token.attribute,
2855
+ [_varNames.token.boolean]: _vars.token.boolean,
2856
+ [_varNames.token.builtin]: _vars.token.builtin,
2857
+ [_varNames.token.cdata]: _vars.token.cdata,
2858
+ [_varNames.token.char]: _vars.token.char,
2859
+ [_varNames.token.class]: _vars.token.class,
2860
+ [_varNames.token.className]: _vars.token.className,
2861
+ [_varNames.token.comment]: _vars.token.comment,
2862
+ [_varNames.token.constant]: _vars.token.constant,
2863
+ [_varNames.token.deleted]: _vars.token.deleted,
2864
+ [_varNames.token.doctype]: _vars.token.doctype,
2865
+ [_varNames.token.entity]: _vars.token.entity,
2866
+ [_varNames.token.function]: _vars.token.function,
2867
+ [_varNames.token.hexcode]: _vars.token.hexcode,
2868
+ [_varNames.token.id]: _vars.token.id,
2869
+ [_varNames.token.important]: _vars.token.important,
2870
+ [_varNames.token.inserted]: _vars.token.inserted,
2871
+ [_varNames.token.keyword]: _vars.token.keyword,
2872
+ [_varNames.token.number]: _vars.token.number,
2873
+ [_varNames.token.operator]: _vars.token.operator,
2874
+ [_varNames.token.prolog]: _vars.token.prolog,
2875
+ [_varNames.token.property]: _vars.token.property,
2876
+ [_varNames.token.pseudoClass]: _vars.token.pseudoClass,
2877
+ [_varNames.token.pseudoElement]: _vars.token.pseudoElement,
2878
+ [_varNames.token.punctuation]: _vars.token.punctuation,
2879
+ [_varNames.token.regex]: _vars.token.regex,
2880
+ [_varNames.token.selector]: _vars.token.selector,
2881
+ [_varNames.token.string]: _vars.token.string,
2882
+ [_varNames.token.symbol]: _vars.token.symbol,
2883
+ [_varNames.token.tag]: _vars.token.tag,
2884
+ [_varNames.token.unit]: _vars.token.unit,
2885
+ [_varNames.token.url]: _vars.token.url,
2886
+ [_varNames.token.variable]: _vars.token.variable
2887
+ });
2888
+ for (const variant of ["solid", "tinted"])
2889
+ for (const elementTone of THEME_COLOR_STATE_TONES) {
2890
+ const __varNames = _varNames[variant][elementTone], __vars = _vars[variant][elementTone];
2891
+ Object.assign(toneProps, {
2892
+ [__varNames.bg[0]]: __vars.bg[0],
2893
+ [__varNames.bg[1]]: __vars.bg[1],
2894
+ [__varNames.bg[2]]: __vars.bg[2],
2895
+ [__varNames.bg[3]]: __vars.bg[3],
2896
+ [__varNames.bg[4]]: __vars.bg[4],
2897
+ [__varNames.border[0]]: __vars.border[0],
2898
+ [__varNames.border[1]]: __vars.border[1],
2899
+ [__varNames.border[2]]: __vars.border[2],
2900
+ [__varNames.border[3]]: __vars.border[3],
2901
+ [__varNames.border[4]]: __vars.border[4],
2902
+ [__varNames.fg[0]]: __vars.fg[0],
2903
+ [__varNames.fg[1]]: __vars.fg[1],
2904
+ [__varNames.fg[2]]: __vars.fg[2],
2905
+ [__varNames.fg[3]]: __vars.fg[3],
2906
+ [__varNames.fg[4]]: __vars.fg[4]
1957
2907
  });
1958
2908
  }
1959
- rules2[`&.${scheme}`] = props;
1960
- }
1961
- for (const cardTone of THEME_COLOR_CARD_TONES) {
1962
- const source = vars.color[cardTone], target = varNames.color;
1963
- rules2[`&.${toneMap[cardTone]}`] = {
1964
- ...buildCardAvatarColorProperties({
1965
- source,
1966
- target
1967
- }),
1968
- [target.backdrop]: source.backdrop,
1969
- [target.focusRing]: source.focusRing,
1970
- [target.link.fg]: source.link.fg,
1971
- [target.shadow.outline]: source.shadow.outline,
1972
- [target.shadow.umbra]: source.shadow.umbra,
1973
- [target.shadow.penumbra]: source.shadow.penumbra,
1974
- [target.shadow.ambient]: source.shadow.ambient,
1975
- [target.token.atrule]: source.token.atrule,
1976
- [target.token.attrName]: source.token.attrName,
1977
- [target.token.attrValue]: source.token.attrValue,
1978
- [target.token.attribute]: source.token.attribute,
1979
- [target.token.boolean]: source.token.boolean,
1980
- [target.token.builtin]: source.token.builtin,
1981
- [target.token.cdata]: source.token.cdata,
1982
- [target.token.char]: source.token.char,
1983
- [target.token.class]: source.token.class,
1984
- [target.token.className]: source.token.className,
1985
- [target.token.comment]: source.token.comment,
1986
- [target.token.constant]: source.token.constant,
1987
- [target.token.deleted]: source.token.deleted,
1988
- [target.token.doctype]: source.token.doctype,
1989
- [target.token.entity]: source.token.entity,
1990
- [target.token.function]: source.token.function,
1991
- [target.token.hexcode]: source.token.hexcode,
1992
- [target.token.id]: source.token.id,
1993
- [target.token.important]: source.token.important,
1994
- [target.token.inserted]: source.token.inserted,
1995
- [target.token.keyword]: source.token.keyword,
1996
- [target.token.number]: source.token.number,
1997
- [target.token.operator]: source.token.operator,
1998
- [target.token.prolog]: source.token.prolog,
1999
- [target.token.property]: source.token.property,
2000
- [target.token.pseudoClass]: source.token.pseudoClass,
2001
- [target.token.pseudoElement]: source.token.pseudoElement,
2002
- [target.token.punctuation]: source.token.punctuation,
2003
- [target.token.regex]: source.token.regex,
2004
- [target.token.selector]: source.token.selector,
2005
- [target.token.string]: source.token.string,
2006
- [target.token.symbol]: source.token.symbol,
2007
- [target.token.tag]: source.token.tag,
2008
- [target.token.unit]: source.token.unit,
2009
- [target.token.url]: source.token.url,
2010
- [target.token.variable]: source.token.variable,
2011
- ...buildCardColorVariantProperties({
2012
- source: source.solid,
2013
- target: target.solid
2014
- }),
2015
- ...buildCardColorVariantProperties({
2016
- source: source.tinted,
2017
- target: target.tinted
2018
- })
2019
- };
2020
- }
2021
- return rules2;
2022
- }
2023
- function buildCardAvatarColorProperties(options) {
2024
- const {
2025
- source,
2026
- target
2027
- } = options, props = {};
2028
- for (const hue of HUES)
2029
- Object.assign(props, {
2030
- [target.avatar[hue].bg]: source.avatar[hue].bg,
2031
- [target.avatar[hue].fg]: source.avatar[hue].fg
2032
- });
2033
- return props;
2034
- }
2035
- function buildCardColorVariantProperties(options) {
2036
- const {
2037
- source,
2038
- target
2039
- } = options, props = {};
2040
- for (const elementTone of THEME_COLOR_STATE_TONES)
2041
- Object.assign(props, {
2042
- [target[elementTone].bg[0]]: source[elementTone].bg[0],
2043
- [target[elementTone].bg[1]]: source[elementTone].bg[1],
2044
- [target[elementTone].bg[2]]: source[elementTone].bg[2],
2045
- [target[elementTone].bg[3]]: source[elementTone].bg[3],
2046
- [target[elementTone].bg[4]]: source[elementTone].bg[4],
2047
- [target[elementTone].border[0]]: source[elementTone].border[0],
2048
- [target[elementTone].border[1]]: source[elementTone].border[1],
2049
- [target[elementTone].border[2]]: source[elementTone].border[2],
2050
- [target[elementTone].border[3]]: source[elementTone].border[3],
2051
- [target[elementTone].border[4]]: source[elementTone].border[4],
2052
- [target[elementTone].fg[0]]: source[elementTone].fg[0],
2053
- [target[elementTone].fg[1]]: source[elementTone].fg[1],
2054
- [target[elementTone].fg[2]]: source[elementTone].fg[2],
2055
- [target[elementTone].fg[3]]: source[elementTone].fg[3],
2056
- [target[elementTone].fg[4]]: source[elementTone].fg[4]
2057
- });
2058
- return props;
2059
2909
  }
2060
- const checkboxRules = {
2061
- checkbox: {
2910
+ const primitive$g = {
2911
+ ".checkbox": {
2062
2912
  position: "relative",
2063
2913
  display: "inline-block"
2064
2914
  },
2065
- "checkbox-input": {
2915
+ ".checkbox-input": {
2066
2916
  position: "absolute",
2067
2917
  top: 0,
2068
2918
  left: 0,
@@ -2185,8 +3035,12 @@ const checkboxRules = {
2185
3035
  }
2186
3036
  }
2187
3037
  }
2188
- }, codeRules = {
2189
- code: {
3038
+ }, checkboxStyle = {
3039
+ layers: {
3040
+ primitive: primitive$g
3041
+ }
3042
+ }, primitive$f = {
3043
+ ".code": {
2190
3044
  "--font-weight-regular": "var(--font-code-weight-regular)",
2191
3045
  "--font-weight-medium": "var(--font-code-weight-medium)",
2192
3046
  "--font-weight-semibold": "var(--font-code-weight-semibold)",
@@ -2218,59 +3072,33 @@ const checkboxRules = {
2218
3072
  verticalAlign: "baseline"
2219
3073
  }
2220
3074
  }
2221
- },
2222
- ...responsiveRules("code-0", {
2223
- "--font-size": "var(--font-code-0-size)",
2224
- "--font-line-height": "var(--font-code-0-line-height)",
2225
- "--font-letter-spacing": "var(--font-code-0-letter-spacing)",
2226
- "--font-icon-size": "var(--font-code-0-icon-size)",
2227
- "--font-ascender-height": "var(--font-code-0-ascender-height)",
2228
- "--font-descender-height": "var(--font-code-0-descender-height)"
2229
- // '--font-cap-height': 'var(--font-code-0-cap-height)',
2230
- }),
2231
- ...responsiveRules("code-1", {
2232
- "--font-size": "var(--font-code-1-size)",
2233
- "--font-line-height": "var(--font-code-1-line-height)",
2234
- "--font-letter-spacing": "var(--font-code-1-letter-spacing)",
2235
- "--font-icon-size": "var(--font-code-1-icon-size)",
2236
- "--font-ascender-height": "var(--font-code-1-ascender-height)",
2237
- "--font-descender-height": "var(--font-code-1-descender-height)"
2238
- // '--font-cap-height': 'var(--font-code-1-cap-height)',
2239
- }),
2240
- ...responsiveRules("code-2", {
2241
- "--font-size": "var(--font-code-2-size)",
2242
- "--font-line-height": "var(--font-code-2-line-height)",
2243
- "--font-letter-spacing": "var(--font-code-2-letter-spacing)",
2244
- "--font-icon-size": "var(--font-code-2-icon-size)",
2245
- "--font-ascender-height": "var(--font-code-2-ascender-height)",
2246
- "--font-descender-height": "var(--font-code-2-descender-height)"
2247
- // '--font-cap-height': 'var(--font-code-2-cap-height)',
2248
- }),
2249
- ...responsiveRules("code-3", {
2250
- "--font-size": "var(--font-code-3-size)",
2251
- "--font-line-height": "var(--font-code-3-line-height)",
2252
- "--font-letter-spacing": "var(--font-code-3-letter-spacing)",
2253
- "--font-icon-size": "var(--font-code-3-icon-size)",
2254
- "--font-ascender-height": "var(--font-code-3-ascender-height)",
2255
- "--font-descender-height": "var(--font-code-3-descender-height)"
2256
- // '--font-cap-height': 'var(--font-code-3-cap-height)',
2257
- }),
2258
- ...responsiveRules("code-4", {
2259
- "--font-size": "var(--font-code-4-size)",
2260
- "--font-line-height": "var(--font-code-4-line-height)",
2261
- "--font-letter-spacing": "var(--font-code-4-letter-spacing)",
2262
- "--font-icon-size": "var(--font-code-4-icon-size)",
2263
- "--font-ascender-height": "var(--font-code-4-ascender-height)",
2264
- "--font-descender-height": "var(--font-code-4-descender-height)"
2265
- // '--font-cap-height': 'var(--font-code-4-cap-height)',
2266
- })
2267
- }, containerRules = {
2268
- container: {
3075
+ }
3076
+ };
3077
+ for (const size of FONT_CODE_SIZE)
3078
+ _responsiveRule(primitive$f, `code-${size}`, {
3079
+ "--font-size": `var(--font-code-${size}-size)`,
3080
+ "--font-line-height": `var(--font-code-${size}-line-height)`,
3081
+ "--font-letter-spacing": `var(--font-code-${size}-letter-spacing)`,
3082
+ "--font-icon-size": `var(--font-code-${size}-icon-size)`,
3083
+ "--font-ascender-height": `var(--font-code-${size}-ascender-height)`,
3084
+ "--font-descender-height": `var(--font-code-${size}-descender-height)`
3085
+ // '--font-cap-height': `var(--font-code-${size}-cap-height)`,
3086
+ });
3087
+ const codeStyle = {
3088
+ layers: {
3089
+ primitive: primitive$f
3090
+ }
3091
+ }, primitive$e = {
3092
+ ".container": {
2269
3093
  margin: "0 auto",
2270
3094
  width: "100%"
2271
3095
  }
2272
- }, headingRules = {
2273
- heading: {
3096
+ }, containerStyle = {
3097
+ layers: {
3098
+ primitive: primitive$e
3099
+ }
3100
+ }, primitive$d = {
3101
+ ".heading": {
2274
3102
  "--font-weight-regular": "var(--font-heading-weight-regular)",
2275
3103
  "--font-weight-medium": "var(--font-heading-weight-medium)",
2276
3104
  "--font-weight-semibold": "var(--font-heading-weight-semibold)",
@@ -2285,68 +3113,29 @@ const checkboxRules = {
2285
3113
  }
2286
3114
  }
2287
3115
  },
2288
- // 'heading-accent': {
3116
+ // '.heading-accent': {
2289
3117
  // '--color-fg': 'var(--color-accent-fg)',
2290
3118
  // },
2291
- "heading-muted": {
3119
+ ".heading-muted": {
2292
3120
  "--color-fg": "var(--color-tinted-default-fg-4)"
2293
- },
2294
- ...responsiveRules("heading-0", {
2295
- "--font-size": "var(--font-heading-0-size)",
2296
- "--font-line-height": "var(--font-heading-0-line-height)",
2297
- "--font-letter-spacing": "var(--font-heading-0-letter-spacing)",
2298
- "--font-icon-size": "var(--font-heading-0-icon-size)",
2299
- "--font-ascender-height": "var(--font-heading-0-ascender-height)",
2300
- "--font-descender-height": "var(--font-heading-0-descender-height)"
2301
- // '--font-cap-height': 'var(--font-heading-0-cap-height)',
2302
- }),
2303
- ...responsiveRules("heading-1", {
2304
- "--font-size": "var(--font-heading-1-size)",
2305
- "--font-line-height": "var(--font-heading-1-line-height)",
2306
- "--font-letter-spacing": "var(--font-heading-1-letter-spacing)",
2307
- "--font-icon-size": "var(--font-heading-1-icon-size)",
2308
- "--font-ascender-height": "var(--font-heading-1-ascender-height)",
2309
- "--font-descender-height": "var(--font-heading-1-descender-height)"
2310
- // '--font-cap-height': 'var(--font-heading-1-cap-height)',
2311
- }),
2312
- ...responsiveRules("heading-2", {
2313
- "--font-size": "var(--font-heading-2-size)",
2314
- "--font-line-height": "var(--font-heading-2-line-height)",
2315
- "--font-letter-spacing": "var(--font-heading-2-letter-spacing)",
2316
- "--font-icon-size": "var(--font-heading-2-icon-size)",
2317
- "--font-ascender-height": "var(--font-heading-2-ascender-height)",
2318
- "--font-descender-height": "var(--font-heading-2-descender-height)"
2319
- // '--font-cap-height': 'var(--font-heading-2-cap-height)',
2320
- }),
2321
- ...responsiveRules("heading-3", {
2322
- "--font-size": "var(--font-heading-3-size)",
2323
- "--font-line-height": "var(--font-heading-3-line-height)",
2324
- "--font-letter-spacing": "var(--font-heading-3-letter-spacing)",
2325
- "--font-icon-size": "var(--font-heading-3-icon-size)",
2326
- "--font-ascender-height": "var(--font-heading-3-ascender-height)",
2327
- "--font-descender-height": "var(--font-heading-3-descender-height)"
2328
- // '--font-cap-height': 'var(--font-heading-3-cap-height)',
2329
- }),
2330
- ...responsiveRules("heading-4", {
2331
- "--font-size": "var(--font-heading-4-size)",
2332
- "--font-line-height": "var(--font-heading-4-line-height)",
2333
- "--font-letter-spacing": "var(--font-heading-4-letter-spacing)",
2334
- "--font-icon-size": "var(--font-heading-4-icon-size)",
2335
- "--font-ascender-height": "var(--font-heading-4-ascender-height)",
2336
- "--font-descender-height": "var(--font-heading-4-descender-height)"
2337
- // '--font-cap-height': 'var(--font-heading-4-cap-height)',
2338
- }),
2339
- ...responsiveRules("heading-5", {
2340
- "--font-size": "var(--font-heading-5-size)",
2341
- "--font-line-height": "var(--font-heading-5-line-height)",
2342
- "--font-letter-spacing": "var(--font-heading-5-letter-spacing)",
2343
- "--font-icon-size": "var(--font-heading-5-icon-size)",
2344
- "--font-ascender-height": "var(--font-heading-5-ascender-height)",
2345
- "--font-descender-height": "var(--font-heading-5-descender-height)"
2346
- // '--font-cap-height': 'var(--font-heading-5-cap-height)',
2347
- })
2348
- }, kbdRules = {
2349
- kbd: {
3121
+ }
3122
+ };
3123
+ for (const size of FONT_HEADING_SIZE)
3124
+ _responsiveRule(primitive$d, `heading-${size}`, {
3125
+ "--font-size": `var(--font-heading-${size}-size)`,
3126
+ "--font-line-height": `var(--font-heading-${size}-line-height)`,
3127
+ "--font-letter-spacing": `var(--font-heading-${size}-letter-spacing)`,
3128
+ "--font-icon-size": `var(--font-heading-${size}-icon-size)`,
3129
+ "--font-ascender-height": `var(--font-heading-${size}-ascender-height)`,
3130
+ "--font-descender-height": `var(--font-heading-${size}-descender-height)`
3131
+ // '--font-cap-height': `var(--font-heading-${size}-cap-height)`,
3132
+ });
3133
+ const headingStyle = {
3134
+ layers: {
3135
+ primitive: primitive$d
3136
+ }
3137
+ }, primitive$c = {
3138
+ ".kbd": {
2350
3139
  // '--color-bg': 'var(--color-tinted-default-bg-1)',
2351
3140
  // '--color-border': 'var(--color-tinted-default-border-2)',
2352
3141
  // '--color-fg': 'var(--color-tinted-default-fg-3)',
@@ -2360,8 +3149,12 @@ const checkboxRules = {
2360
3149
  }
2361
3150
  }
2362
3151
  }
2363
- }, labelRules = {
2364
- label: {
3152
+ }, kbdStyle = {
3153
+ layers: {
3154
+ primitive: primitive$c
3155
+ }
3156
+ }, primitive$b = {
3157
+ ".label": {
2365
3158
  "--font-weight-regular": "var(--font-label-weight-regular)",
2366
3159
  "--font-weight-medium": "var(--font-label-weight-medium)",
2367
3160
  "--font-weight-semibold": "var(--font-label-weight-semibold)",
@@ -2377,70 +3170,33 @@ const checkboxRules = {
2377
3170
  }
2378
3171
  }
2379
3172
  },
2380
- "label-accent": {
3173
+ ".label-accent": {
2381
3174
  "--color-fg": "var(--color-accent-fg)"
2382
3175
  },
2383
- "label-muted": {
3176
+ ".label-muted": {
2384
3177
  "--color-fg": "var(--color-muted-fg)"
2385
- },
2386
- ...responsiveRules("label-0", {
2387
- "--font-size": "var(--font-label-0-size)",
2388
- "--font-line-height": "var(--font-label-0-line-height)",
2389
- "--font-letter-spacing": "var(--font-label-0-letter-spacing)",
2390
- "--font-icon-size": "var(--font-label-0-icon-size)",
2391
- "--font-ascender-height": "var(--font-label-0-ascender-height)",
2392
- "--font-descender-height": "var(--font-label-0-descender-height)"
2393
- // '--font-cap-height': 'var(--font-label-0-cap-height)',
2394
- }),
2395
- ...responsiveRules("label-1", {
2396
- "--font-size": "var(--font-label-1-size)",
2397
- "--font-line-height": "var(--font-label-1-line-height)",
2398
- "--font-letter-spacing": "var(--font-label-1-letter-spacing)",
2399
- "--font-icon-size": "var(--font-label-1-icon-size)",
2400
- "--font-ascender-height": "var(--font-label-1-ascender-height)",
2401
- "--font-descender-height": "var(--font-label-1-descender-height)"
2402
- // '--font-cap-height': 'var(--font-label-1-cap-height)',
2403
- }),
2404
- ...responsiveRules("label-2", {
2405
- "--font-size": "var(--font-label-2-size)",
2406
- "--font-line-height": "var(--font-label-2-line-height)",
2407
- "--font-letter-spacing": "var(--font-label-2-letter-spacing)",
2408
- "--font-icon-size": "var(--font-label-2-icon-size)",
2409
- "--font-ascender-height": "var(--font-label-2-ascender-height)",
2410
- "--font-descender-height": "var(--font-label-2-descender-height)"
2411
- // '--font-cap-height': 'var(--font-label-2-cap-height)',
2412
- }),
2413
- ...responsiveRules("label-3", {
2414
- "--font-size": "var(--font-label-3-size)",
2415
- "--font-line-height": "var(--font-label-3-line-height)",
2416
- "--font-letter-spacing": "var(--font-label-3-letter-spacing)",
2417
- "--font-icon-size": "var(--font-label-3-icon-size)",
2418
- "--font-ascender-height": "var(--font-label-3-ascender-height)",
2419
- "--font-descender-height": "var(--font-label-3-descender-height)"
2420
- // '--font-cap-height': 'var(--font-label-3-cap-height)',
2421
- }),
2422
- ...responsiveRules("label-4", {
2423
- "--font-size": "var(--font-label-4-size)",
2424
- "--font-line-height": "var(--font-label-4-line-height)",
2425
- "--font-letter-spacing": "var(--font-label-4-letter-spacing)",
2426
- "--font-icon-size": "var(--font-label-4-icon-size)",
2427
- "--font-ascender-height": "var(--font-label-4-ascender-height)",
2428
- "--font-descender-height": "var(--font-label-4-descender-height)"
2429
- // '--font-cap-height': 'var(--font-label-4-cap-height)',
2430
- }),
2431
- ...responsiveRules("label-5", {
2432
- "--font-size": "var(--font-label-5-size)",
2433
- "--font-line-height": "var(--font-label-5-line-height)",
2434
- "--font-letter-spacing": "var(--font-label-5-letter-spacing)",
2435
- "--font-icon-size": "var(--font-label-5-icon-size)",
2436
- "--font-ascender-height": "var(--font-label-5-ascender-height)",
2437
- "--font-descender-height": "var(--font-label-5-descender-height)"
2438
- // '--font-cap-height': 'var(--font-label-5-cap-height)',
2439
- })
2440
- }, popoverRules = {
2441
- //
2442
- }, radioRules = {
2443
- radio: {
3178
+ }
3179
+ };
3180
+ for (const size of FONT_LABEL_SIZE)
3181
+ _responsiveRule(primitive$b, `label-${size}`, {
3182
+ "--font-size": `var(--font-label-${size}-size)`,
3183
+ "--font-line-height": `var(--font-label-${size}-line-height)`,
3184
+ "--font-letter-spacing": `var(--font-label-${size}-letter-spacing)`,
3185
+ "--font-icon-size": `var(--font-label-${size}-icon-size)`,
3186
+ "--font-ascender-height": `var(--font-label-${size}-ascender-height)`,
3187
+ "--font-descender-height": `var(--font-label-${size}-descender-height)`
3188
+ // '--font-cap-height': `var(--font-label-${size}-cap-height)`,
3189
+ });
3190
+ const labelStyle = {
3191
+ layers: {
3192
+ primitive: primitive$b
3193
+ }
3194
+ }, primitive$a = {}, popoverStyle = {
3195
+ layers: {
3196
+ primitive: primitive$a
3197
+ }
3198
+ }, primitive$9 = {
3199
+ ".radio": {
2444
3200
  position: "relative",
2445
3201
  "@nest": {
2446
3202
  "&:not([hidden])": {
@@ -2543,15 +3299,19 @@ const checkboxRules = {
2543
3299
  // `
2544
3300
  }
2545
3301
  }
2546
- }, selectRules = {
2547
- select: {
3302
+ }, radioStyle = {
3303
+ layers: {
3304
+ primitive: primitive$9
3305
+ }
3306
+ }, primitive$8 = {
3307
+ ".select": {
2548
3308
  "@nest": {
2549
3309
  "& > select:disabled": {
2550
3310
  opacity: 1
2551
3311
  }
2552
3312
  }
2553
3313
  },
2554
- "select-presentation": {
3314
+ ".select-presentation": {
2555
3315
  "@nest": {
2556
3316
  "& > span": {
2557
3317
  // place icon to the right
@@ -2561,24 +3321,32 @@ const checkboxRules = {
2561
3321
  }
2562
3322
  }
2563
3323
  }
2564
- }, spinnerRules = {
2565
- spinner: {},
2566
- "animated-spinner-icon": {
2567
- animation: "spinner-rotate 500ms linear infinite",
2568
- "@keyframes": {
2569
- "spinner-rotate": {
2570
- from: {
2571
- transform: "rotate(0deg)"
2572
- },
2573
- to: {
2574
- transform: "rotate(360deg)"
2575
- }
2576
- }
3324
+ }, selectStyle = {
3325
+ layers: {
3326
+ primitive: primitive$8
3327
+ }
3328
+ }, keyframes = {
3329
+ "spinner-rotate": {
3330
+ from: {
3331
+ transform: "rotate(0deg)"
3332
+ },
3333
+ to: {
3334
+ transform: "rotate(360deg)"
2577
3335
  }
2578
3336
  }
2579
- }, switchRules = {
2580
- switch: {},
2581
- "switch-element": {
3337
+ }, primitive$7 = {
3338
+ ".spinner": {},
3339
+ ".animated-spinner-icon": {
3340
+ animation: "spinner-rotate 500ms linear infinite"
3341
+ }
3342
+ }, spinnerStyle = {
3343
+ keyframes,
3344
+ layers: {
3345
+ primitive: primitive$7
3346
+ }
3347
+ }, primitive$6 = {
3348
+ ".switch": {},
3349
+ ".switch-element": {
2582
3350
  position: "absolute",
2583
3351
  top: 0,
2584
3352
  right: 0,
@@ -2593,7 +3361,7 @@ const checkboxRules = {
2593
3361
  /* Place the input element above the representation element */
2594
3362
  zIndex: 1
2595
3363
  },
2596
- "switch-presentation": {
3364
+ ".switch-presentation": {
2597
3365
  "--switch-bg-color": "var(--color-tinted-default-border-2)",
2598
3366
  // '--switch-border-color': 'var(--color-tinted-default-border-1)',
2599
3367
  "--switch-fg-color": "var(--color-tinted-default-bg-0)",
@@ -2664,7 +3432,7 @@ const checkboxRules = {
2664
3432
  // }
2665
3433
  // }
2666
3434
  },
2667
- "switch-track": {
3435
+ ".switch-track": {
2668
3436
  display: "block",
2669
3437
  backgroundColor: "var(--switch-bg-color)",
2670
3438
  position: "absolute",
@@ -2676,7 +3444,7 @@ const checkboxRules = {
2676
3444
  // boxShadow: 'inset 0 0 0 1px var(--switch-border-color)',
2677
3445
  transition: "box-shadow, background-color var(--input-switch-transition-duration-ms) var(--input-switch-transition-timing-function)"
2678
3446
  },
2679
- "switch-thumb": {
3447
+ ".switch-thumb": {
2680
3448
  // '--switch-thumb-offset': '0',
2681
3449
  display: "block",
2682
3450
  position: "absolute",
@@ -2724,8 +3492,12 @@ const checkboxRules = {
2724
3492
  // `}
2725
3493
  // `
2726
3494
  }
2727
- }, textRules = {
2728
- text: {
3495
+ }, switchStyle = {
3496
+ layers: {
3497
+ primitive: primitive$6
3498
+ }
3499
+ }, primitive$5 = {
3500
+ ".text": {
2729
3501
  "--font-weight-regular": "var(--font-text-weight-regular)",
2730
3502
  "--font-weight-medium": "var(--font-text-weight-medium)",
2731
3503
  "--font-weight-semibold": "var(--font-text-weight-semibold)",
@@ -2749,61 +3521,35 @@ const checkboxRules = {
2749
3521
  // 'text-accent': {
2750
3522
  // '--color-fg': 'var(--color-accent-fg)',
2751
3523
  // },
2752
- "text-muted": {
3524
+ ".text-muted": {
2753
3525
  color: "var(--color-muted-fg)"
2754
3526
  // '--color-fg': 'var(--color-tinted-default-fg-4)',
2755
- },
2756
- ...responsiveRules("text-0", {
2757
- "--font-size": "var(--font-text-0-size)",
2758
- "--font-line-height": "var(--font-text-0-line-height)",
2759
- "--font-letter-spacing": "var(--font-text-0-letter-spacing)",
2760
- "--font-icon-size": "var(--font-text-0-icon-size)",
2761
- "--font-ascender-height": "var(--font-text-0-ascender-height)",
2762
- "--font-descender-height": "var(--font-text-0-descender-height)"
2763
- // '--font-cap-height': 'var(--font-text-0-cap-height)',
2764
- }),
2765
- ...responsiveRules("text-1", {
2766
- "--font-size": "var(--font-text-1-size)",
2767
- "--font-line-height": "var(--font-text-1-line-height)",
2768
- "--font-letter-spacing": "var(--font-text-1-letter-spacing)",
2769
- "--font-icon-size": "var(--font-text-1-icon-size)",
2770
- "--font-ascender-height": "var(--font-text-1-ascender-height)",
2771
- "--font-descender-height": "var(--font-text-1-descender-height)"
2772
- // '--font-cap-height': 'var(--font-text-1-cap-height)',
2773
- }),
2774
- ...responsiveRules("text-2", {
2775
- "--font-size": "var(--font-text-2-size)",
2776
- "--font-line-height": "var(--font-text-2-line-height)",
2777
- "--font-letter-spacing": "var(--font-text-2-letter-spacing)",
2778
- "--font-icon-size": "var(--font-text-2-icon-size)",
2779
- "--font-ascender-height": "var(--font-text-2-ascender-height)",
2780
- "--font-descender-height": "var(--font-text-2-descender-height)"
2781
- // '--font-cap-height': 'var(--font-text-2-cap-height)',
2782
- }),
2783
- ...responsiveRules("text-3", {
2784
- "--font-size": "var(--font-text-3-size)",
2785
- "--font-line-height": "var(--font-text-3-line-height)",
2786
- "--font-letter-spacing": "var(--font-text-3-letter-spacing)",
2787
- "--font-icon-size": "var(--font-text-3-icon-size)",
2788
- "--font-ascender-height": "var(--font-text-3-ascender-height)",
2789
- "--font-descender-height": "var(--font-text-3-descender-height)"
2790
- // '--font-cap-height': 'var(--font-text-3-cap-height)',
2791
- }),
2792
- ...responsiveRules("text-4", {
2793
- "--font-size": "var(--font-text-4-size)",
2794
- "--font-line-height": "var(--font-text-4-line-height)",
2795
- "--font-letter-spacing": "var(--font-text-4-letter-spacing)",
2796
- "--font-icon-size": "var(--font-text-4-icon-size)",
2797
- "--font-ascender-height": "var(--font-text-4-ascender-height)",
2798
- "--font-descender-height": "var(--font-text-4-descender-height)"
2799
- // '--font-cap-height': 'var(--font-text-4-cap-height)',
2800
- })
2801
- }, textAreaRules = {
2802
- "text-area": {
2803
- //
2804
3527
  }
2805
- }, textInputRules = {
2806
- "text-input": {
3528
+ };
3529
+ for (const size of FONT_TEXT_SIZE)
3530
+ _responsiveRule(primitive$5, `text-${size}`, {
3531
+ "--font-size": `var(--font-text-${size}-size)`,
3532
+ "--font-line-height": `var(--font-text-${size}-line-height)`,
3533
+ "--font-letter-spacing": `var(--font-text-${size}-letter-spacing)`,
3534
+ "--font-icon-size": `var(--font-text-${size}-icon-size)`,
3535
+ "--font-ascender-height": `var(--font-text-${size}-ascender-height)`,
3536
+ "--font-descender-height": `var(--font-text-${size}-descender-height)`
3537
+ // '--font-cap-height': `var(--font-text-${size}-cap-height)`,
3538
+ });
3539
+ const textStyle = {
3540
+ layers: {
3541
+ primitive: primitive$5
3542
+ }
3543
+ }, primitive$4 = {
3544
+ ".text-area": {
3545
+ // todo
3546
+ }
3547
+ }, textAreaStyle = {
3548
+ layers: {
3549
+ primitive: primitive$4
3550
+ }
3551
+ }, primitive$3 = {
3552
+ ".text-input": {
2807
3553
  "--font-family": vars.font.text.family,
2808
3554
  "@nest": {
2809
3555
  "& > span": {
@@ -2811,7 +3557,7 @@ const checkboxRules = {
2811
3557
  }
2812
3558
  }
2813
3559
  },
2814
- "text-input-prefix": {
3560
+ ".text-input-prefix": {
2815
3561
  borderTop: "1px solid var(--color-border)",
2816
3562
  borderLeft: "1px solid var(--color-border)",
2817
3563
  borderBottom: "1px solid var(--color-border)",
@@ -2824,7 +3570,7 @@ const checkboxRules = {
2824
3570
  }
2825
3571
  }
2826
3572
  },
2827
- "text-input-suffix": {
3573
+ ".text-input-suffix": {
2828
3574
  borderTop: "1px solid var(--color-border)",
2829
3575
  borderRight: "1px solid var(--color-border)",
2830
3576
  borderBottom: "1px solid var(--color-border)",
@@ -2837,7 +3583,7 @@ const checkboxRules = {
2837
3583
  }
2838
3584
  }
2839
3585
  },
2840
- "text-input-presentation": {
3586
+ ".text-input-presentation": {
2841
3587
  // position: 'absolute',
2842
3588
  // top: 0,
2843
3589
  // left: 0,
@@ -2957,8 +3703,13 @@ const checkboxRules = {
2957
3703
  // }
2958
3704
  // }
2959
3705
  }
2960
- }, tokenRules = {
2961
- token: {
3706
+ }, textInputStyle = {
3707
+ layers: {
3708
+ primitive: primitive$3
3709
+ }
3710
+ }, primitive$2 = {
3711
+ ".token": {
3712
+ _prefix: !1,
2962
3713
  "@nest": {
2963
3714
  "&.atrule": {
2964
3715
  color: "var(--color-token-atrule)"
@@ -3073,11 +3824,15 @@ const checkboxRules = {
3073
3824
  }
3074
3825
  }
3075
3826
  }
3076
- }, tooltipRules = {
3077
- tooltip: {
3827
+ }, tokenStyle = {
3828
+ layers: {
3829
+ primitive: primitive$2
3830
+ }
3831
+ }, primitive$1 = {
3832
+ ".tooltip": {
3078
3833
  pointerEvents: "none"
3079
3834
  },
3080
- "tooltip-card": {
3835
+ ".tooltip-card": {
3081
3836
  willChange: "transform",
3082
3837
  "@nest": {
3083
3838
  "&[data-animate] > *": {
@@ -3087,948 +3842,209 @@ const checkboxRules = {
3087
3842
  }
3088
3843
  }
3089
3844
  }
3090
- }, borderRules = {
3091
- ...responsiveRules("border", {
3092
- border: "1px solid var(--card-border-color)"
3093
- }),
3094
- ...responsiveRules("border-t", {
3095
- borderTop: "1px solid var(--card-border-color)"
3096
- }),
3097
- ...responsiveRules("border-r", {
3098
- borderRight: "1px solid var(--card-border-color)"
3099
- }),
3100
- ...responsiveRules("border-b", {
3101
- borderBottom: "1px solid var(--card-border-color)"
3102
- }),
3103
- ...responsiveRules("border-l", {
3104
- borderLeft: "1px solid var(--card-border-color)"
3105
- })
3106
- }, displayRules = {
3107
- ...responsiveRules("block", {
3108
- "@nest": {
3109
- "&:not([hidden])": {
3110
- display: "block"
3111
- }
3112
- }
3113
- }),
3114
- ...responsiveRules("inline-block", {
3115
- "@nest": {
3116
- "&:not([hidden])": {
3117
- display: "inline-block"
3118
- }
3119
- }
3120
- }),
3121
- ...responsiveRules("flex", {
3122
- "@nest": {
3123
- "&:not([hidden])": {
3124
- display: "flex"
3125
- }
3126
- }
3127
- }),
3128
- ...responsiveRules("inline-flex", {
3129
- "@nest": {
3130
- "&:not([hidden])": {
3131
- display: "inline-flex"
3132
- }
3845
+ }, tooltipStyle = {
3846
+ layers: {
3847
+ primitive: primitive$1
3848
+ }
3849
+ }, primitive = {
3850
+ ".sr-only": {
3851
+ display: "block",
3852
+ width: 0,
3853
+ height: 0,
3854
+ position: "absolute",
3855
+ // @ts-expect-error - TODO: fix this
3856
+ overflow: ["hidden", "clip"]
3857
+ }
3858
+ }, srOnlyStyle = {
3859
+ layers: {
3860
+ primitive
3861
+ }
3862
+ }, systemStyle = _mergeStyles([
3863
+ // NOTE: order matters in CSS
3864
+ {
3865
+ // define order of layers
3866
+ layers: {
3867
+ theme: {},
3868
+ base: {},
3869
+ util: {},
3870
+ primitive: {}
3133
3871
  }
3134
- }),
3135
- ...responsiveRules("grid", {
3136
- gridTemplateRows: "auto",
3137
- "@nest": {
3138
- "&:not([hidden])": {
3139
- display: "grid"
3140
- }
3872
+ },
3873
+ // aspects
3874
+ borderStyle,
3875
+ displayStyle,
3876
+ flexStyle,
3877
+ flexAlignStyle,
3878
+ flexDirectionStyle,
3879
+ flexJustifyStyle,
3880
+ flexWrapStyle,
3881
+ fontStyle,
3882
+ gapStyle,
3883
+ gridAutoColumnsStyle,
3884
+ gridAutoFlowStyle,
3885
+ gridAutoRowsStyle,
3886
+ gridColumnsStyle,
3887
+ gridRowsStyle,
3888
+ gridColumnStyle,
3889
+ gridColumnStartStyle,
3890
+ gridColumnEndStyle,
3891
+ gridRowStyle,
3892
+ gridRowStartStyle,
3893
+ gridRowEndStyle,
3894
+ heightStyle,
3895
+ insetStyle,
3896
+ marginStyle,
3897
+ maxWidthStyle,
3898
+ outlineStyle,
3899
+ overflowStyle,
3900
+ paddingStyle,
3901
+ pointerEventsStyle,
3902
+ positionStyle,
3903
+ radiusStyle,
3904
+ shadowStyle,
3905
+ textOverflowStyle,
3906
+ widthStyle,
3907
+ // utils
3908
+ srOnlyStyle,
3909
+ // primitives
3910
+ _arrowStyle,
3911
+ _inputStyle,
3912
+ _selectableStyle,
3913
+ avatarStyle,
3914
+ badgeStyle,
3915
+ boxStyle,
3916
+ buttonStyle,
3917
+ cardStyle,
3918
+ checkboxStyle,
3919
+ codeStyle,
3920
+ containerStyle,
3921
+ headingStyle,
3922
+ kbdStyle,
3923
+ labelStyle,
3924
+ maxWidthStyle,
3925
+ popoverStyle,
3926
+ radioStyle,
3927
+ selectStyle,
3928
+ spinnerStyle,
3929
+ switchStyle,
3930
+ textAreaStyle,
3931
+ textInputStyle,
3932
+ textOverflowStyle,
3933
+ textStyle,
3934
+ tokenStyle,
3935
+ tooltipStyle,
3936
+ // components
3937
+ breadcrumbsStyle,
3938
+ dialogStyle,
3939
+ menuStyle,
3940
+ skeletonStyle,
3941
+ toastStyle,
3942
+ treeStyle
3943
+ ]);
3944
+ function isRecord(value) {
3945
+ return value !== null && typeof value == "object" && !Array.isArray(value);
3946
+ }
3947
+ function isArray(value) {
3948
+ return Array.isArray(value);
3949
+ }
3950
+ function rem(value) {
3951
+ return value === 0 ? "0" : `${value / 16}rem`;
3952
+ }
3953
+ function px(value) {
3954
+ return value === 0 ? "0" : `${value}px`;
3955
+ }
3956
+ function toBoxShadow(value) {
3957
+ return value ? value.map((n) => px(n)).join(" ") : "none";
3958
+ }
3959
+ function compileStyle(style) {
3960
+ let css = "";
3961
+ if (style.rules && (css += compileStyleRules(style.rules)), style.keyframes && Object.keys(style.keyframes).length > 0)
3962
+ for (const [name, value] of Object.entries(style.keyframes)) {
3963
+ let keyframesCss = `@keyframes ${name} {
3964
+ `;
3965
+ for (const [key, props] of Object.entries(value))
3966
+ keyframesCss += ` ${key} {
3967
+ `, keyframesCss += compileProperties(props), keyframesCss += `}
3968
+ `;
3969
+ keyframesCss += `
3970
+ }
3971
+ `, css += keyframesCss;
3141
3972
  }
3142
- }),
3143
- ...responsiveRules("inline-grid", {
3144
- gridTemplateRows: "auto",
3145
- "@nest": {
3146
- "&:not([hidden])": {
3147
- display: "inline-grid"
3148
- }
3973
+ if (style.layers && Object.keys(style.layers).length > 0)
3974
+ for (const [layerName, layerRules] of Object.entries(style.layers))
3975
+ Object.keys(layerRules).length > 0 && (css += `@layer ${PREFIX}${layerName} {
3976
+ `, css += compileStyleRules(layerRules), css += `}
3977
+
3978
+ `);
3979
+ return css;
3980
+ }
3981
+ function compileStyleRules(rules2) {
3982
+ let css = "";
3983
+ const mediaMap = /* @__PURE__ */ new Map();
3984
+ for (const [selector, properties] of Object.entries(rules2))
3985
+ if (properties) {
3986
+ if (properties["@media"])
3987
+ for (const [mediaQuery, mediaProps] of Object.entries(properties["@media"])) {
3988
+ const arr = mediaMap.get(mediaQuery) ?? [];
3989
+ arr.push({
3990
+ selector,
3991
+ props: mediaProps
3992
+ }), mediaMap.set(mediaQuery, arr);
3993
+ }
3994
+ css += compileStyleRule(selector, properties);
3149
3995
  }
3150
- }),
3151
- ...responsiveRules("none", {
3152
- "@nest": {
3153
- "&:not([hidden])": {
3154
- display: "none"
3155
- }
3996
+ for (const [mediaQuery, mediaRules] of mediaMap) {
3997
+ css += `@media ${mediaQuery} {
3998
+ `;
3999
+ for (const rule of mediaRules)
4000
+ css += compileStyleRule(rule.selector, rule.props);
4001
+ css += `}
4002
+
4003
+ `;
4004
+ }
4005
+ return css;
4006
+ }
4007
+ function compileStyleRule(_selector, properties) {
4008
+ let css = "";
4009
+ const {
4010
+ _prefix = !0,
4011
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
4012
+ "@media": _mediaProps,
4013
+ "@nest": nestedProps,
4014
+ ...restProperties
4015
+ } = properties, selector = _prefix ? `${_selector.replace(/\./g, `.${PREFIX}`)}` : _selector;
4016
+ if (Object.entries(restProperties).length && (css += `${selector} {
4017
+ `, css += compileProperties(restProperties), css += `}
4018
+
4019
+ `), nestedProps)
4020
+ for (const [_nestedSelector, nestedProperties] of Object.entries(nestedProps)) {
4021
+ const nestedSelector = _prefix && (nestedProperties._prefix ?? !0) ? _nestedSelector.replace(/\./g, `.${PREFIX}`) : _nestedSelector;
4022
+ css += `${nestedSelector.replace("&", selector)} {
4023
+ `, css += compileProperties(nestedProperties), css += `}
4024
+
4025
+ `;
3156
4026
  }
3157
- })
3158
- }, flexRules = {
3159
- // direction
3160
- ...responsiveRules("row", {
3161
- flexDirection: "row"
3162
- }),
3163
- ...responsiveRules("column", {
3164
- flexDirection: "column"
3165
- }),
3166
- // align
3167
- ...responsiveRules("align-flex-start", {
3168
- alignItems: "flex-start"
3169
- }),
3170
- ...responsiveRules("align-flex-end", {
3171
- alignItems: "end"
3172
- }),
3173
- ...responsiveRules("align-center", {
3174
- alignItems: "center"
3175
- }),
3176
- ...responsiveRules("align-stretch", {
3177
- alignItems: "stretch"
3178
- }),
3179
- ...responsiveRules("align-baseline", {
3180
- alignItems: "baseline"
3181
- }),
3182
- // justify
3183
- ...responsiveRules("justify-flex-start", {
3184
- justifyContent: "flex-start"
3185
- }),
3186
- ...responsiveRules("justify-flex-end", {
3187
- justifyContent: "flex-end"
3188
- }),
3189
- ...responsiveRules("justify-center", {
3190
- justifyContent: "center"
3191
- }),
3192
- ...responsiveRules("justify-between", {
3193
- justifyContent: "space-between"
3194
- }),
3195
- ...responsiveRules("justify-around", {
3196
- justifyContent: "space-around"
3197
- }),
3198
- ...responsiveRules("justify-evenly", {
3199
- justifyContent: "space-evenly"
3200
- }),
3201
- // wrap
3202
- ...responsiveRules("wrap-nowrap", {
3203
- flexWrap: "nowrap"
3204
- }),
3205
- ...responsiveRules("wrap-wrap", {
3206
- flexWrap: "wrap"
3207
- }),
3208
- ...responsiveRules("wrap-reverse", {
3209
- flexWrap: "wrap-reverse"
3210
- })
3211
- }, flexItemRules = {
3212
- ...responsiveRules("flex-none", {
3213
- flex: "none"
3214
- }),
3215
- ...responsiveRules("flex-auto", {
3216
- flex: "auto"
3217
- }),
3218
- ...responsiveRules("flex-1", {
3219
- flex: 1
3220
- }),
3221
- ...responsiveRules("flex-2", {
3222
- flex: 2
3223
- }),
3224
- ...responsiveRules("flex-3", {
3225
- flex: 3
3226
- }),
3227
- ...responsiveRules("flex-4", {
3228
- flex: 4
3229
- }),
3230
- ...responsiveRules("flex-5", {
3231
- flex: 5
3232
- })
3233
- }, fontRules = {
3234
- font: {
3235
- // 'position': 'relative',
3236
- fontFamily: "var(--font-family)",
3237
- fontFeatureSettings: "var(--font-feature-settings)",
3238
- fontSize: "var(--font-size)",
3239
- lineHeight: "var(--font-line-height)",
3240
- letterSpacing: "var(--font-letter-spacing)",
3241
- fontWeight: "var(--font-weight)",
3242
- transform: "translateY(var(--font-descender-height))",
3243
- padding: "1px 0",
3244
- margin: "0",
3245
- "--font-icon-offset": "calc(((var(--font-line-height) - var(--font-ascender-height) - var(--font-descender-height)) - var(--font-icon-size)) / 2)",
3246
- "--font-weight": "var(--font-weight-regular)",
3247
- "@nest": {
3248
- "&:before": {
3249
- content: '""',
3250
- display: "block",
3251
- height: 0,
3252
- marginTop: "calc((0px - var(--font-ascender-height) - var(--font-descender-height)) - 1px)"
3253
- },
3254
- "&:after": {
3255
- content: '""',
3256
- display: "block",
3257
- height: 0,
3258
- marginBottom: "-1px"
3259
- },
3260
- "& svg": {
3261
- // Certain popular CSS libraries changes the defaults for SVG display
3262
- // Make sure SVGs are rendered as inline elements
3263
- display: "inline"
3264
- },
3265
- // todo
3266
- // '& svg:not([data-sanity-icon])': {
3267
- // fontSize: 'calc(var(--custom-icon-size) / 16 * 1rem)',
3268
- // margin: 'var(--custom-icon-offset)',
3269
- // },
3270
- "& [data-sanity-icon]": {
3271
- fontSize: "var(--font-icon-size)",
3272
- margin: "var(--font-icon-offset)",
3273
- vectorEffect: "non-scaling-stroke"
3274
- }
3275
- }
3276
- },
3277
- "font-regular": {
3278
- "--font-weight": "var(--font-weight-regular)"
3279
- },
3280
- "font-medium": {
3281
- "--font-weight": "var(--font-weight-medium)"
3282
- },
3283
- "font-semibold": {
3284
- "--font-weight": "var(--font-weight-semibold)"
3285
- },
3286
- "font-bold": {
3287
- "--font-weight": "var(--font-weight-bold)"
3288
- },
3289
- // align
3290
- ...responsiveRules("text-align-initial", {
3291
- textAlign: "initial"
3292
- }),
3293
- ...responsiveRules("text-align-left", {
3294
- textAlign: "left"
3295
- }),
3296
- ...responsiveRules("text-align-center", {
3297
- textAlign: "center"
3298
- }),
3299
- ...responsiveRules("text-align-right", {
3300
- textAlign: "right"
3301
- }),
3302
- ...responsiveRules("text-align-justify", {
3303
- textAlign: "justify"
3304
- })
3305
- }, gapRules = {
3306
- ...SPACE.reduce((acc, space) => ({
3307
- ...acc,
3308
- ...responsiveRules(`g-${space}`.replace(".", "_"), {
3309
- gap: vars.space[space]
3310
- })
3311
- }), {}),
3312
- ...SPACE.reduce((acc, space) => ({
3313
- ...acc,
3314
- ...responsiveRules(`gx-${space}`.replace(".", "_"), {
3315
- columnGap: vars.space[space]
3316
- })
3317
- }), {}),
3318
- ...SPACE.reduce((acc, space) => ({
3319
- ...acc,
3320
- ...responsiveRules(`gy-${space}`.replace(".", "_"), {
3321
- rowGap: vars.space[space]
3322
- })
3323
- }), {})
3324
- }, gridRules = {
3325
- // autoCols
3326
- ...responsiveRules("auto-cols-auto", {
3327
- gridAutoColumns: "auto"
3328
- }),
3329
- ...responsiveRules("auto-cols-min", {
3330
- gridAutoColumns: "min"
3331
- }),
3332
- ...responsiveRules("auto-cols-max", {
3333
- gridAutoColumns: "max"
3334
- }),
3335
- ...responsiveRules("auto-cols-fr", {
3336
- gridAutoColumns: "fr"
3337
- }),
3338
- // autoFlow
3339
- ...responsiveRules("auto-flow-row", {
3340
- gridAutoFlow: "row"
3341
- }),
3342
- ...responsiveRules("auto-flow-column", {
3343
- gridAutoFlow: "column"
3344
- }),
3345
- ...responsiveRules("auto-flow-row-dense", {
3346
- gridAutoFlow: "row dense"
3347
- }),
3348
- ...responsiveRules("auto-flow-column-dense", {
3349
- gridAutoFlow: "column dense"
3350
- }),
3351
- // autoRows
3352
- ...responsiveRules("auto-rows-auto", {
3353
- gridAutoRows: "auto"
3354
- }),
3355
- ...responsiveRules("auto-rows-min", {
3356
- gridAutoRows: "min-content"
3357
- }),
3358
- ...responsiveRules("auto-rows-max", {
3359
- gridAutoRows: "max-content"
3360
- }),
3361
- ...responsiveRules("auto-rows-fr", {
3362
- gridAutoRows: "minmax(0, 1fr)"
3363
- }),
3364
- // columns
3365
- ...responsiveRules("columns-1", {
3366
- gridTemplateColumns: "repeat(1, 1fr)"
3367
- }),
3368
- ...responsiveRules("columns-2", {
3369
- gridTemplateColumns: "repeat(2, 1fr)"
3370
- }),
3371
- ...responsiveRules("columns-3", {
3372
- gridTemplateColumns: "repeat(3, 1fr)"
3373
- }),
3374
- ...responsiveRules("columns-4", {
3375
- gridTemplateColumns: "repeat(4, 1fr)"
3376
- }),
3377
- ...responsiveRules("columns-5", {
3378
- gridTemplateColumns: "repeat(5, 1fr)"
3379
- }),
3380
- ...responsiveRules("columns-6", {
3381
- gridTemplateColumns: "repeat(6, 1fr)"
3382
- }),
3383
- ...responsiveRules("columns-7", {
3384
- gridTemplateColumns: "repeat(7, 1fr)"
3385
- }),
3386
- ...responsiveRules("columns-8", {
3387
- gridTemplateColumns: "repeat(8, 1fr)"
3388
- }),
3389
- ...responsiveRules("columns-9", {
3390
- gridTemplateColumns: "repeat(9, 1fr)"
3391
- }),
3392
- ...responsiveRules("columns-10", {
3393
- gridTemplateColumns: "repeat(10, 1fr)"
3394
- }),
3395
- ...responsiveRules("columns-12", {
3396
- gridTemplateColumns: "repeat(12, 1fr)"
3397
- }),
3398
- // rows
3399
- ...responsiveRules("rows-1", {
3400
- gridTemplateRows: "repeat(1, 1fr)"
3401
- }),
3402
- ...responsiveRules("rows-2", {
3403
- gridTemplateRows: "repeat(2, 1fr)"
3404
- }),
3405
- ...responsiveRules("rows-3", {
3406
- gridTemplateRows: "repeat(3, 1fr)"
3407
- }),
3408
- ...responsiveRules("rows-4", {
3409
- gridTemplateRows: "repeat(4, 1fr)"
3410
- }),
3411
- ...responsiveRules("rows-5", {
3412
- gridTemplateRows: "repeat(5, 1fr)"
3413
- }),
3414
- ...responsiveRules("rows-6", {
3415
- gridTemplateRows: "repeat(6, 1fr)"
3416
- }),
3417
- ...responsiveRules("rows-7", {
3418
- gridTemplateRows: "repeat(7, 1fr)"
3419
- }),
3420
- ...responsiveRules("rows-8", {
3421
- gridTemplateRows: "repeat(8, 1fr)"
3422
- }),
3423
- ...responsiveRules("rows-9", {
3424
- gridTemplateRows: "repeat(9, 1fr)"
3425
- }),
3426
- ...responsiveRules("rows-10", {
3427
- gridTemplateRows: "repeat(10, 1fr)"
3428
- }),
3429
- ...responsiveRules("rows-12", {
3430
- gridTemplateRows: "repeat(12, 1fr)"
3431
- })
3432
- }, gridItemRules = {
3433
- // column
3434
- ...responsiveRules("col-auto", {
3435
- gridColumn: "span 1 / span 1"
3436
- }),
3437
- ...responsiveRules("col-full", {
3438
- gridColumn: "1 / -1"
3439
- }),
3440
- ...responsiveRules("col-1", {
3441
- gridColumn: "span 1 / span 1"
3442
- }),
3443
- ...responsiveRules("col-2", {
3444
- gridColumn: "span 2 / span 2"
3445
- }),
3446
- ...responsiveRules("col-3", {
3447
- gridColumn: "span 3 / span 3"
3448
- }),
3449
- ...responsiveRules("col-4", {
3450
- gridColumn: "span 4 / span 4"
3451
- }),
3452
- ...responsiveRules("col-5", {
3453
- gridColumn: "span 5 / span 5"
3454
- }),
3455
- ...responsiveRules("col-6", {
3456
- gridColumn: "span 6 / span 6"
3457
- }),
3458
- ...responsiveRules("col-7", {
3459
- gridColumn: "span 7 / span 7"
3460
- }),
3461
- ...responsiveRules("col-8", {
3462
- gridColumn: "span 8 / span 8"
3463
- }),
3464
- ...responsiveRules("col-9", {
3465
- gridColumn: "span 9 / span 9"
3466
- }),
3467
- ...responsiveRules("col-10", {
3468
- gridColumn: "span 10 / span 10"
3469
- }),
3470
- ...responsiveRules("col-11", {
3471
- gridColumn: "span 11 / span 11"
3472
- }),
3473
- ...responsiveRules("col-12", {
3474
- gridColumn: "span 12 / span 12"
3475
- }),
3476
- // columnStart
3477
- ...responsiveRules("col-start-auto", {
3478
- gridColumnStart: "auto"
3479
- }),
3480
- ...responsiveRules("col-start-1", {
3481
- gridColumnStart: "1"
3482
- }),
3483
- ...responsiveRules("col-start-2", {
3484
- gridColumnStart: "2"
3485
- }),
3486
- ...responsiveRules("col-start-3", {
3487
- gridColumnStart: "3"
3488
- }),
3489
- ...responsiveRules("col-start-4", {
3490
- gridColumnStart: "4"
3491
- }),
3492
- ...responsiveRules("col-start-5", {
3493
- gridColumnStart: "5"
3494
- }),
3495
- ...responsiveRules("col-start-6", {
3496
- gridColumnStart: "6"
3497
- }),
3498
- ...responsiveRules("col-start-7", {
3499
- gridColumnStart: "7"
3500
- }),
3501
- ...responsiveRules("col-start-8", {
3502
- gridColumnStart: "8"
3503
- }),
3504
- ...responsiveRules("col-start-9", {
3505
- gridColumnStart: "9"
3506
- }),
3507
- ...responsiveRules("col-start-10", {
3508
- gridColumnStart: "10"
3509
- }),
3510
- ...responsiveRules("col-start-11", {
3511
- gridColumnStart: "11"
3512
- }),
3513
- ...responsiveRules("col-start-12", {
3514
- gridColumnStart: "12"
3515
- }),
3516
- // columnEnd
3517
- ...responsiveRules("col-end-auto", {
3518
- gridColumnEnd: "auto"
3519
- }),
3520
- ...responsiveRules("col-end-1", {
3521
- gridColumnEnd: "1"
3522
- }),
3523
- ...responsiveRules("col-end-2", {
3524
- gridColumnEnd: "2"
3525
- }),
3526
- ...responsiveRules("col-end-3", {
3527
- gridColumnEnd: "3"
3528
- }),
3529
- ...responsiveRules("col-end-4", {
3530
- gridColumnEnd: "4"
3531
- }),
3532
- ...responsiveRules("col-end-5", {
3533
- gridColumnEnd: "5"
3534
- }),
3535
- ...responsiveRules("col-end-6", {
3536
- gridColumnEnd: "6"
3537
- }),
3538
- ...responsiveRules("col-end-7", {
3539
- gridColumnEnd: "7"
3540
- }),
3541
- ...responsiveRules("col-end-8", {
3542
- gridColumnEnd: "8"
3543
- }),
3544
- ...responsiveRules("col-end-9", {
3545
- gridColumnEnd: "9"
3546
- }),
3547
- ...responsiveRules("col-end-10", {
3548
- gridColumnEnd: "10"
3549
- }),
3550
- ...responsiveRules("col-end-11", {
3551
- gridColumnEnd: "11"
3552
- }),
3553
- ...responsiveRules("col-end-12", {
3554
- gridColumnEnd: "12"
3555
- }),
3556
- // row
3557
- ...responsiveRules("row-auto", {
3558
- gridRow: "span 1 / span 1"
3559
- }),
3560
- ...responsiveRules("row-full", {
3561
- gridRow: "1 / -1"
3562
- }),
3563
- ...responsiveRules("row-1", {
3564
- gridRow: "span 1 / span 1"
3565
- }),
3566
- ...responsiveRules("row-2", {
3567
- gridRow: "span 2 / span 2"
3568
- }),
3569
- ...responsiveRules("row-3", {
3570
- gridRow: "span 3 / span 3"
3571
- }),
3572
- ...responsiveRules("row-4", {
3573
- gridRow: "span 4 / span 4"
3574
- }),
3575
- ...responsiveRules("row-5", {
3576
- gridRow: "span 5 / span 5"
3577
- }),
3578
- ...responsiveRules("row-6", {
3579
- gridRow: "span 6 / span 6"
3580
- }),
3581
- ...responsiveRules("row-7", {
3582
- gridRow: "span 7 / span 7"
3583
- }),
3584
- ...responsiveRules("row-8", {
3585
- gridRow: "span 8 / span 8"
3586
- }),
3587
- ...responsiveRules("row-9", {
3588
- gridRow: "span 9 / span 9"
3589
- }),
3590
- ...responsiveRules("row-10", {
3591
- gridRow: "span 10 / span 10"
3592
- }),
3593
- ...responsiveRules("row-11", {
3594
- gridRow: "span 11 / span 11"
3595
- }),
3596
- ...responsiveRules("row-12", {
3597
- gridRow: "span 12 / span 12"
3598
- }),
3599
- // rowStart
3600
- ...responsiveRules("row-start-auto", {
3601
- gridRowStart: "auto"
3602
- }),
3603
- ...responsiveRules("row-start-1", {
3604
- gridRowStart: "1"
3605
- }),
3606
- ...responsiveRules("row-start-2", {
3607
- gridRowStart: "2"
3608
- }),
3609
- ...responsiveRules("row-start-3", {
3610
- gridRowStart: "3"
3611
- }),
3612
- ...responsiveRules("row-start-4", {
3613
- gridRowStart: "4"
3614
- }),
3615
- ...responsiveRules("row-start-5", {
3616
- gridRowStart: "5"
3617
- }),
3618
- ...responsiveRules("row-start-6", {
3619
- gridRowStart: "6"
3620
- }),
3621
- ...responsiveRules("row-start-7", {
3622
- gridRowStart: "7"
3623
- }),
3624
- ...responsiveRules("row-start-8", {
3625
- gridRowStart: "8"
3626
- }),
3627
- ...responsiveRules("row-start-9", {
3628
- gridRowStart: "9"
3629
- }),
3630
- ...responsiveRules("row-start-10", {
3631
- gridRowStart: "10"
3632
- }),
3633
- ...responsiveRules("row-start-11", {
3634
- gridRowStart: "11"
3635
- }),
3636
- ...responsiveRules("row-start-12", {
3637
- gridRowStart: "12"
3638
- }),
3639
- // rowEnd
3640
- ...responsiveRules("row-end-auto", {
3641
- gridRowEnd: "auto"
3642
- }),
3643
- ...responsiveRules("row-end-1", {
3644
- gridRowEnd: "1"
3645
- }),
3646
- ...responsiveRules("row-end-2", {
3647
- gridRowEnd: "2"
3648
- }),
3649
- ...responsiveRules("row-end-3", {
3650
- gridRowEnd: "3"
3651
- }),
3652
- ...responsiveRules("row-end-4", {
3653
- gridRowEnd: "4"
3654
- }),
3655
- ...responsiveRules("row-end-5", {
3656
- gridRowEnd: "5"
3657
- }),
3658
- ...responsiveRules("row-end-6", {
3659
- gridRowEnd: "6"
3660
- }),
3661
- ...responsiveRules("row-end-7", {
3662
- gridRowEnd: "7"
3663
- }),
3664
- ...responsiveRules("row-end-8", {
3665
- gridRowEnd: "8"
3666
- }),
3667
- ...responsiveRules("row-end-9", {
3668
- gridRowEnd: "9"
3669
- }),
3670
- ...responsiveRules("row-end-10", {
3671
- gridRowEnd: "10"
3672
- }),
3673
- ...responsiveRules("row-end-11", {
3674
- gridRowEnd: "11"
3675
- }),
3676
- ...responsiveRules("row-end-12", {
3677
- gridRowEnd: "12"
3678
- })
3679
- }, heightRules = {
3680
- ...responsiveRules("h-fill", {
3681
- height: "100%"
3682
- }),
3683
- ...responsiveRules("h-stretch", {
3684
- height: "stretch"
3685
- })
3686
- }, insetRules = {
3687
- ...responsiveRules("inset-0", {
3688
- top: 0,
3689
- left: 0,
3690
- right: 0,
3691
- bottom: 0
3692
- }),
3693
- ...responsiveRules("top-0", {
3694
- top: 0
3695
- }),
3696
- ...responsiveRules("right-0", {
3697
- right: 0
3698
- }),
3699
- ...responsiveRules("bottom-0", {
3700
- bottom: 0
3701
- }),
3702
- ...responsiveRules("left-0", {
3703
- left: 0
3704
- })
3705
- }, marginRules = {
3706
- // NOTE: order matters
3707
- ...SPACE.reduce((acc, space) => ({
3708
- ...acc,
3709
- ...responsiveRules(`m-${space}`.replace(".", "_"), {
3710
- margin: vars.space[space]
3711
- })
3712
- }), {}),
3713
- ...SPACE.reduce((acc, space) => ({
3714
- ...acc,
3715
- ...responsiveRules(`mx-${space}`.replace(".", "_"), {
3716
- marginLeft: vars.space[space],
3717
- marginRight: vars.space[space]
3718
- })
3719
- }), {}),
3720
- ...SPACE.reduce((acc, space) => ({
3721
- ...acc,
3722
- ...responsiveRules(`my-${space}`.replace(".", "_"), {
3723
- marginTop: vars.space[space],
3724
- marginBottom: vars.space[space]
3725
- })
3726
- }), {}),
3727
- ...SPACE.reduce((acc, space) => ({
3728
- ...acc,
3729
- ...responsiveRules(`mt-${space}`.replace(".", "_"), {
3730
- marginTop: vars.space[space]
3731
- })
3732
- }), {}),
3733
- ...SPACE.reduce((acc, space) => ({
3734
- ...acc,
3735
- ...responsiveRules(`mr-${space}`.replace(".", "_"), {
3736
- marginRight: vars.space[space]
3737
- })
3738
- }), {}),
3739
- ...SPACE.reduce((acc, space) => ({
3740
- ...acc,
3741
- ...responsiveRules(`mb-${space}`.replace(".", "_"), {
3742
- marginBottom: vars.space[space]
3743
- })
3744
- }), {}),
3745
- ...SPACE.reduce((acc, space) => ({
3746
- ...acc,
3747
- ...responsiveRules(`ml-${space}`.replace(".", "_"), {
3748
- marginLeft: vars.space[space]
3749
- })
3750
- }), {})
3751
- }, maxWidthRules = {
3752
- ...responsiveRules("max-w-0", {
3753
- maxWidth: "var(--container-0)"
3754
- }),
3755
- ...responsiveRules("max-w-1", {
3756
- maxWidth: "var(--container-1)"
3757
- }),
3758
- ...responsiveRules("max-w-2", {
3759
- maxWidth: "var(--container-2)"
3760
- }),
3761
- ...responsiveRules("max-w-3", {
3762
- maxWidth: "var(--container-3)"
3763
- }),
3764
- ...responsiveRules("max-w-4", {
3765
- maxWidth: "var(--container-4)"
3766
- }),
3767
- ...responsiveRules("max-w-5", {
3768
- maxWidth: "var(--container-5)"
3769
- }),
3770
- ...responsiveRules("max-w-auto", {
3771
- maxWidth: "none"
3772
- }),
3773
- ...responsiveRules("max-w-fill", {
3774
- maxWidth: "100%"
3775
- })
3776
- }, outlineRules = {
3777
- "outline-none": {
3778
- outline: "none"
3779
- }
3780
- }, overflowRules = {
3781
- ...responsiveRules("overflow-visible", {
3782
- overflow: "visible"
3783
- }),
3784
- ...responsiveRules("overflow-hidden", {
3785
- overflow: "hidden"
3786
- }),
3787
- ...responsiveRules("overflow-scroll", {
3788
- overflow: "scroll"
3789
- }),
3790
- ...responsiveRules("overflow-auto", {
3791
- overflow: "auto"
3792
- })
3793
- }, paddingRules = {
3794
- ...SPACE.reduce((acc, space) => ({
3795
- ...acc,
3796
- ...responsiveRules(`p-${space}`.replace(".", "_"), {
3797
- padding: vars.space[space]
3798
- })
3799
- }), {}),
3800
- ...SPACE.reduce((acc, space) => ({
3801
- ...acc,
3802
- ...responsiveRules(`px-${space}`.replace(".", "_"), {
3803
- paddingLeft: vars.space[space],
3804
- paddingRight: vars.space[space]
3805
- })
3806
- }), {}),
3807
- ...SPACE.reduce((acc, space) => ({
3808
- ...acc,
3809
- ...responsiveRules(`py-${space}`.replace(".", "_"), {
3810
- paddingTop: vars.space[space],
3811
- paddingBottom: vars.space[space]
3812
- })
3813
- }), {}),
3814
- ...SPACE.reduce((acc, space) => ({
3815
- ...acc,
3816
- ...responsiveRules(`pt-${space}`.replace(".", "_"), {
3817
- paddingTop: vars.space[space]
3818
- })
3819
- }), {}),
3820
- ...SPACE.reduce((acc, space) => ({
3821
- ...acc,
3822
- ...responsiveRules(`pr-${space}`.replace(".", "_"), {
3823
- paddingRight: vars.space[space]
3824
- })
3825
- }), {}),
3826
- ...SPACE.reduce((acc, space) => ({
3827
- ...acc,
3828
- ...responsiveRules(`pb-${space}`.replace(".", "_"), {
3829
- paddingBottom: vars.space[space]
3830
- })
3831
- }), {}),
3832
- ...SPACE.reduce((acc, space) => ({
3833
- ...acc,
3834
- ...responsiveRules(`pl-${space}`.replace(".", "_"), {
3835
- paddingLeft: vars.space[space]
3836
- })
3837
- }), {})
3838
- }, pointerEventsRules = {
3839
- "pointer-events-none": {
3840
- pointerEvents: "none"
3841
- },
3842
- "pointer-events-auto": {
3843
- pointerEvents: "auto"
3844
- }
3845
- }, positionRules = {
3846
- ...responsiveRules("pos-absolute", {
3847
- position: "absolute"
3848
- }),
3849
- ...responsiveRules("pos-fixed", {
3850
- position: "fixed"
3851
- }),
3852
- ...responsiveRules("pos-relative", {
3853
- position: "relative"
3854
- }),
3855
- ...responsiveRules("pos-static", {
3856
- position: "static"
3857
- }),
3858
- ...responsiveRules("pos-sticky", {
3859
- position: "sticky"
3860
- })
3861
- }, radiusRules = {
3862
- ...responsiveRules("r-0", {
3863
- borderRadius: "var(--radius-0)"
3864
- }),
3865
- ...responsiveRules("r-1", {
3866
- borderRadius: "var(--radius-1)"
3867
- }),
3868
- ...responsiveRules("r-2", {
3869
- borderRadius: "var(--radius-2)"
3870
- }),
3871
- ...responsiveRules("r-3", {
3872
- borderRadius: "var(--radius-3)"
3873
- }),
3874
- ...responsiveRules("r-4", {
3875
- borderRadius: "var(--radius-4)"
3876
- }),
3877
- ...responsiveRules("r-5", {
3878
- borderRadius: "var(--radius-5)"
3879
- }),
3880
- ...responsiveRules("r-6", {
3881
- borderRadius: "var(--radius-6)"
3882
- }),
3883
- ...responsiveRules("r-full", {
3884
- borderRadius: "9999px"
3885
- })
3886
- }, shadowRules = {
3887
- ...responsiveRules("shadow-0", {
3888
- boxShadow: "none"
3889
- }),
3890
- ...responsiveRules("shadow-1", {
3891
- boxShadow: ["var(--shadow-outline) var(--color-shadow-outline)", "var(--shadow-1-umbra) var(--color-shadow-umbra)", "var(--shadow-1-penumbra) var(--color-shadow-penumbra)", "var(--shadow-1-ambient) var(--color-shadow-ambient)"].join(", ")
3892
- }),
3893
- ...responsiveRules("shadow-2", {
3894
- boxShadow: ["var(--shadow-outline) var(--color-shadow-outline)", "var(--shadow-2-umbra) var(--color-shadow-umbra)", "var(--shadow-2-penumbra) var(--color-shadow-penumbra)", "var(--shadow-2-ambient) var(--color-shadow-ambient)"].join(", ")
3895
- }),
3896
- ...responsiveRules("shadow-3", {
3897
- boxShadow: ["var(--shadow-outline) var(--color-shadow-outline)", "var(--shadow-3-umbra) var(--color-shadow-umbra)", "var(--shadow-3-penumbra) var(--color-shadow-penumbra)", "var(--shadow-3-ambient) var(--color-shadow-ambient)"].join(", ")
3898
- }),
3899
- ...responsiveRules("shadow-4", {
3900
- boxShadow: ["var(--shadow-outline) var(--color-shadow-outline)", "var(--shadow-4-umbra) var(--color-shadow-umbra)", "var(--shadow-4-penumbra) var(--color-shadow-penumbra)", "var(--shadow-4-ambient) var(--color-shadow-ambient)"].join(", ")
3901
- }),
3902
- ...responsiveRules("shadow-5", {
3903
- boxShadow: ["var(--shadow-outline) var(--color-shadow-outline)", "var(--shadow-5-umbra) var(--color-shadow-umbra)", "var(--shadow-5-penumbra) var(--color-shadow-penumbra)", "var(--shadow-5-ambient) var(--color-shadow-ambient)"].join(", ")
3904
- })
3905
- }, textOverflowRules = {
3906
- "text-overflow-ellipsis": {
3907
- display: "block",
3908
- whiteSpace: "nowrap",
3909
- textOverflow: "ellipsis",
3910
- overflow: ["hidden", "clip"]
3911
- },
3912
- "text-overflow-clip": {
3913
- display: "block",
3914
- whiteSpace: "nowrap",
3915
- textOverflow: "clip",
3916
- overflow: ["hidden", "clip"]
3917
- }
3918
- }, widthRules = {
3919
- "w-fill": {
3920
- width: ["-moz-available", "-webkit-fill-available", "stretch"]
3921
- }
3922
- }, srOnlyRules = {
3923
- "sr-only": {
3924
- display: "block",
3925
- width: 0,
3926
- height: 0,
3927
- position: "absolute",
3928
- overflow: ["hidden", "clip"]
3929
- }
3930
- }, rules = {
3931
- // styles
3932
- ...borderRules,
3933
- ...displayRules,
3934
- ...flexItemRules,
3935
- ...flexRules,
3936
- ...fontRules,
3937
- ...gapRules,
3938
- ...gridItemRules,
3939
- ...gridRules,
3940
- ...heightRules,
3941
- ...insetRules,
3942
- ...marginRules,
3943
- ...outlineRules,
3944
- ...overflowRules,
3945
- ...paddingRules,
3946
- ...pointerEventsRules,
3947
- ...positionRules,
3948
- ...radiusRules,
3949
- ...shadowRules,
3950
- ...widthRules,
3951
- // utils
3952
- ...srOnlyRules,
3953
- // primitives
3954
- ..._arrowRules,
3955
- ..._inputRules,
3956
- ..._selectableRules,
3957
- ...avatarRules,
3958
- ...badgeRules,
3959
- ...boxRules,
3960
- ...buttonRules,
3961
- ...cardRules,
3962
- ...checkboxRules,
3963
- ...codeRules,
3964
- ...containerRules,
3965
- ...headingRules,
3966
- ...kbdRules,
3967
- ...labelRules,
3968
- ...maxWidthRules,
3969
- ...popoverRules,
3970
- ...radioRules,
3971
- ...selectRules,
3972
- ...spinnerRules,
3973
- ...switchRules,
3974
- ...textAreaRules,
3975
- ...textInputRules,
3976
- ...textOverflowRules,
3977
- ...textRules,
3978
- ...tokenRules,
3979
- ...tooltipRules,
3980
- // components
3981
- ...breadcrumbsRules,
3982
- ...dialogRules,
3983
- ...menuRules,
3984
- ...skeletonRules,
3985
- ...toastRules
3986
- };
3987
- function compileRules(rules2) {
4027
+ return css;
4028
+ }
4029
+ function compileProperties(props) {
3988
4030
  let css = "";
3989
- const context = {
3990
- keyframes: {},
3991
- media: {}
3992
- };
3993
- for (const [className, props] of Object.entries(rules2)) {
3994
- const ruleCss = compileRule(`.${className}`.replace(/:/g, "\\:"), props, context);
3995
- css += ruleCss ? `${ruleCss}
3996
- ` : "";
3997
- }
3998
- for (const [name, value] of Object.entries(context.keyframes)) {
3999
- let keyframesCss = `@keyframes ${name} {
4031
+ const propEntries = Object.entries(props);
4032
+ for (const [key, value] of propEntries)
4033
+ if (!key.startsWith("@"))
4034
+ if (isArray(value))
4035
+ for (const item of value)
4036
+ css += ` ${toSnakeCase(key)}: ${item};
4000
4037
  `;
4001
- for (const [key, props] of Object.entries(value))
4002
- keyframesCss += ` ${key}`, keyframesCss += compileRule("", props, context).replace(/\n/g, `
4003
- `) + `
4038
+ else
4039
+ css += ` ${toSnakeCase(key)}: ${value};
4004
4040
  `;
4005
- keyframesCss += `
4041
+ return css;
4006
4042
  }
4007
- `, css += keyframesCss;
4008
- }
4009
- for (const [query, queryRules] of Object.entries(context.media))
4010
- css += compileMediaQueryRule(query, queryRules) + `
4011
- `;
4012
- return css.replace(/\n{2,}/g, `
4013
- `).trimStart();
4043
+ function toSnakeCase(str) {
4044
+ return str.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
4014
4045
  }
4015
4046
  function compileSystem() {
4016
- return compileRules(rules);
4017
- }
4018
- function isRecord(value) {
4019
- return value !== null && typeof value == "object" && !Array.isArray(value);
4020
- }
4021
- function isArray(value) {
4022
- return Array.isArray(value);
4023
- }
4024
- function rem(value) {
4025
- return value === 0 ? "0" : `${value / 16}rem`;
4026
- }
4027
- function px(value) {
4028
- return value === 0 ? "0" : `${value}px`;
4029
- }
4030
- function toBoxShadow(value) {
4031
- return value ? value.map((n) => px(n)).join(" ") : "none";
4047
+ return compileStyle(systemStyle);
4032
4048
  }
4033
4049
  function compileTheme_v3(theme) {
4034
4050
  return compileRule(":root", compileThemeProperties(theme), {
@@ -4049,7 +4065,6 @@ function compileThemeProperties(theme) {
4049
4065
  ...buildRadiusThemeProperties(theme),
4050
4066
  ...buildShadowThemeProperties(theme),
4051
4067
  ...buildSpaceThemeProperties(theme),
4052
- // ...buildColorPaletteProperties(palette),
4053
4068
  ...buildColorThemeProperties(theme)
4054
4069
  };
4055
4070
  }
@@ -4327,140 +4342,60 @@ function compileTheme(theme) {
4327
4342
  ` : `/* v0 - not supported */
4328
4343
  `;
4329
4344
  }
4345
+ function getClassNames(...classNames) {
4346
+ return classNames.map((n) => typeof n == "string" && n.trim()).filter(Boolean).join(" ").split(" ");
4347
+ }
4330
4348
  function composeClassNames(...classNames) {
4331
- return unique(classNames.map((n) => typeof n == "string" && n.trim()).filter(Boolean)).join(" ") || void 0;
4349
+ return unique(getClassNames(...classNames)).join(" ") || void 0;
4332
4350
  }
4333
4351
  function unique(array) {
4334
4352
  return Array.from(new Set(array));
4335
4353
  }
4336
- function breadcrumbs() {
4337
- return composeClassNames("breadcrumbs");
4354
+ function scopeClassName(className) {
4355
+ if (className !== void 0)
4356
+ return `${PREFIX}${className.trim()}`;
4338
4357
  }
4339
- function dialog() {
4340
- return composeClassNames("dialog");
4341
- }
4342
- function dialogContainer() {
4343
- return composeClassNames("dialog-container");
4344
- }
4345
- function dialogCardRoot() {
4346
- return composeClassNames("dialog-card-root");
4347
- }
4348
- function dialogLayout() {
4349
- return composeClassNames("dialog-layout");
4350
- }
4351
- function dialogHeader() {
4352
- return composeClassNames("dialog-header");
4353
- }
4354
- function dialogContent() {
4355
- return composeClassNames("dialog-content");
4356
- }
4357
- function dialogFooter() {
4358
- return composeClassNames("dialog-footer");
4358
+ function _comp(...classNames) {
4359
+ return getClassNames(...classNames).filter(Boolean).map(scopeClassName).join(" ") || void 0;
4359
4360
  }
4360
- function menu() {
4361
- return composeClassNames("menu");
4362
- }
4363
- function menuDivider() {
4364
- return composeClassNames("menu-divider");
4361
+ function breadcrumbs() {
4362
+ return _comp("breadcrumbs");
4365
4363
  }
4366
4364
  function _resp(prefix, prop) {
4367
4365
  if (!(prop === void 0 || prop === !1))
4368
4366
  return Array.isArray(prop) ? prop.map((value, index) => {
4369
4367
  if (value === void 0 || typeof prop == "boolean" && prop === !1) return;
4370
4368
  const className = (typeof value == "boolean" ? [prefix] : [prefix, value]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
4371
- return index === 0 ? `${className}` : `_${index}:${className}`;
4369
+ return index === 0 ? className : `${index}:${className}`;
4372
4370
  }).filter(Boolean).join(" ") : (typeof prop == "boolean" ? [prefix] : [prefix, prop]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
4373
4371
  }
4374
- function radius(props) {
4375
- return composeClassNames(_resp("r", props.radius));
4376
- }
4377
- function skeleton(props) {
4378
- return composeClassNames("skeleton", radius(props));
4379
- }
4380
- function codeSkeleton(props) {
4381
- return composeClassNames("font-skeleton", _resp("code-skeleton", props.size));
4382
- }
4383
- function headingSkeleton(props) {
4384
- return composeClassNames("font-skeleton", _resp("heading-skeleton", props.size));
4385
- }
4386
- function labelSkeleton(props) {
4387
- return composeClassNames("font-skeleton", _resp("label-skeleton", props.size));
4388
- }
4389
- function textSkeleton(props) {
4390
- return composeClassNames("font-skeleton", _resp("text-skeleton", props.size));
4391
- }
4392
- function toastLayer() {
4393
- return composeClassNames("toast-layer");
4394
- }
4395
- function toast() {
4396
- return composeClassNames("toast");
4397
- }
4398
- function toastLoadingBar() {
4399
- return composeClassNames("toast-loading-bar");
4400
- }
4401
- function toastLoadingBarProgress() {
4402
- return composeClassNames("toast-loading-bar-progress");
4403
- }
4404
- function toastLoadingBarMask() {
4405
- return composeClassNames("toast-loading-bar-mask");
4406
- }
4407
- function treeItem() {
4408
- return composeClassNames("tree-item");
4409
- }
4410
- function _arrow() {
4411
- return composeClassNames("arrow");
4412
- }
4413
- function _arrowStroke() {
4414
- return "arrow-stroke";
4415
- }
4416
- function _arrowShape() {
4417
- return "arrow-shape";
4418
- }
4419
- const prefixes$2 = {
4420
- border: "border",
4421
- borderTop: "border-t",
4422
- borderRight: "border-r",
4423
- borderBottom: "border-b",
4424
- borderLeft: "border-l"
4425
- };
4426
4372
  function border(props) {
4427
- return composeClassNames(_resp(prefixes$2.border, props.border), _resp(prefixes$2.borderTop, props.borderTop), _resp(prefixes$2.borderRight, props.borderRight), _resp(prefixes$2.borderBottom, props.borderBottom), _resp(prefixes$2.borderLeft, props.borderLeft));
4373
+ 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));
4428
4374
  }
4429
4375
  function display(props) {
4430
4376
  return composeClassNames(_resp(void 0, props.display));
4431
4377
  }
4432
- const prefixes$1 = {
4433
- align: "align",
4434
- // `flex-align`
4435
- direction: void 0,
4436
- // `
4437
- justify: "justify",
4438
- // `flex-justify`
4439
- wrap: "wrap"
4440
- // `flex-wrap`
4441
- };
4442
4378
  function flex(props) {
4443
- return composeClassNames(_resp(prefixes$1.align, props.align), _resp(prefixes$1.direction, props.direction), _resp(prefixes$1.justify, props.justify), _resp(prefixes$1.wrap, props.wrap));
4379
+ return composeClassNames(_resp("flex-align", props.align), _resp("f", props.direction), _resp("flex-justify", props.justify), _resp("flex", props.wrap));
4444
4380
  }
4445
4381
  function flexItem(props) {
4446
- return composeClassNames(_resp("flex", props.flex));
4382
+ return composeClassNames(_resp("f", props.flex));
4447
4383
  }
4448
- const prefixes = {
4449
- align: "text-align",
4450
- weight: "font"
4451
- };
4452
4384
  function font(props) {
4453
- return composeClassNames("font", props.weight && `${prefixes.weight}-${props.weight}`, _resp(prefixes.align, props.align));
4385
+ return composeClassNames("font", props.weight && `font-${props.weight}`, _resp("text-align", props.align));
4454
4386
  }
4455
4387
  function gap(props) {
4456
4388
  return composeClassNames(_resp("g", props.gap), _resp("gx", props.gapX), _resp("gy", props.gapY));
4457
4389
  }
4458
4390
  function grid(props) {
4459
- return composeClassNames(_resp("auto-cols", props.autoCols), _resp("auto-rows", props.autoRows), _resp("auto-flow", props.autoFlow), _resp("columns", props.columns), _resp("rows", props.rows));
4391
+ 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));
4460
4392
  }
4461
4393
  function gridItem(props) {
4462
4394
  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));
4463
4395
  }
4396
+ function height(props) {
4397
+ return composeClassNames(_resp("h", props.height));
4398
+ }
4464
4399
  function inset(props) {
4465
4400
  return composeClassNames(_resp("inset", props.inset), _resp("top", props.insetTop), _resp("right", props.insetRight), _resp("bottom", props.insetBottom), _resp("left", props.insetLeft));
4466
4401
  }
@@ -4480,136 +4415,233 @@ function pointerEvents(props) {
4480
4415
  return composeClassNames(props.pointerEvents && `pointer-events-${props.pointerEvents}`);
4481
4416
  }
4482
4417
  function position(props) {
4483
- return composeClassNames(_resp("pos", props.position));
4418
+ return composeClassNames(_resp("position", props.position));
4419
+ }
4420
+ function radius(props) {
4421
+ return composeClassNames(_resp("r", props.radius));
4484
4422
  }
4485
4423
  function shadow(props) {
4486
4424
  return composeClassNames(_resp("shadow", props.shadow));
4487
4425
  }
4488
4426
  function textOverflow(props) {
4489
- return composeClassNames(props.textOverflow && `text-overflow-${props.textOverflow}`);
4427
+ return _comp(props.textOverflow && `text-overflow-${props.textOverflow}`);
4490
4428
  }
4491
4429
  function width(props) {
4492
4430
  return _resp("w", props.width) ?? "";
4493
4431
  }
4432
+ function dialog() {
4433
+ return _comp("dialog", inset({
4434
+ inset: 0
4435
+ }));
4436
+ }
4437
+ function dialogContainer() {
4438
+ return _comp("dialog-container");
4439
+ }
4440
+ function dialogCardRoot() {
4441
+ return _comp("dialog-card-root");
4442
+ }
4443
+ function dialogLayout() {
4444
+ return _comp("dialog-layout");
4445
+ }
4446
+ function dialogHeader() {
4447
+ return _comp("dialog-header");
4448
+ }
4449
+ function dialogContent() {
4450
+ return _comp("dialog-content");
4451
+ }
4452
+ function dialogFooter() {
4453
+ return _comp("dialog-footer");
4454
+ }
4455
+ function menu() {
4456
+ return _comp("menu");
4457
+ }
4458
+ function menuDivider() {
4459
+ return _comp("menu-divider");
4460
+ }
4461
+ function skeleton(props) {
4462
+ return _comp("skeleton", radius(props));
4463
+ }
4464
+ function codeSkeleton(props) {
4465
+ return _comp("font-skeleton", _resp("code-skeleton", props.size));
4466
+ }
4467
+ function headingSkeleton(props) {
4468
+ return _comp("font-skeleton", _resp("heading-skeleton", props.size));
4469
+ }
4470
+ function labelSkeleton(props) {
4471
+ return _comp("font-skeleton", _resp("label-skeleton", props.size));
4472
+ }
4473
+ function textSkeleton(props) {
4474
+ return _comp("font-skeleton", _resp("text-skeleton", props.size));
4475
+ }
4476
+ function toastLayer() {
4477
+ return _comp("toast-layer");
4478
+ }
4479
+ function toast() {
4480
+ return _comp("toast");
4481
+ }
4482
+ function toastLoadingBar() {
4483
+ return _comp("toast-loading-bar");
4484
+ }
4485
+ function toastLoadingBarProgress() {
4486
+ return _comp("toast-loading-bar-progress");
4487
+ }
4488
+ function toastLoadingBarMask() {
4489
+ return _comp("toast-loading-bar-mask");
4490
+ }
4491
+ function treeItem() {
4492
+ return _comp("tree-item");
4493
+ }
4494
+ function _arrow() {
4495
+ return _comp("arrow");
4496
+ }
4497
+ function _arrowStroke() {
4498
+ return _comp("arrow-stroke");
4499
+ }
4500
+ function _arrowShape() {
4501
+ return _comp("arrow-shape");
4502
+ }
4494
4503
  function _input(props) {
4495
- return composeClassNames("input", _resp("input", props.fontSize), props.border && "input-b", _resp("input-p", props.padding), _resp("input-g", props.gap), radius(props), width(props));
4504
+ return _comp("input", props.border ? "input-b" : void 0, _resp("input", props.fontSize), _resp("input-p", props.padding), _resp("input-g", props.gap), radius(props), width(props));
4496
4505
  }
4497
4506
  function _inputElement() {
4498
- return "input-element";
4507
+ return _comp("input-element");
4499
4508
  }
4500
4509
  function _inputPresentation() {
4501
- return "input-presentation";
4510
+ return _comp("input-presentation");
4502
4511
  }
4503
4512
  function _selectable(props) {
4504
- return composeClassNames("selectable", toneMap$2[props.tone ?? "default"], radius(props));
4513
+ return _comp("selectable", toneMap$2[props.tone ?? "default"], radius(props));
4505
4514
  }
4506
4515
  function avatar(props) {
4507
- return composeClassNames("avatar", props.color || "gray", _resp("avatar", props.size));
4516
+ return _comp("avatar", props.color || "gray", _resp("avatar", props.size));
4508
4517
  }
4509
4518
  function avatarArrow() {
4510
- return composeClassNames("avatar-arrow");
4519
+ return _comp("avatar-arrow");
4511
4520
  }
4512
4521
  function avatarInitials() {
4513
- return composeClassNames("avatar-initials");
4522
+ return _comp("avatar-initials");
4514
4523
  }
4515
4524
  function avatarImage() {
4516
- return composeClassNames("avatar-image");
4525
+ return _comp("avatar-image");
4517
4526
  }
4518
4527
  function avatarCounter(props) {
4519
- return composeClassNames("avatar-counter", _resp("avatar", props.size));
4528
+ return _comp("avatar-counter", _resp("avatar", props.size));
4520
4529
  }
4521
4530
  function avatarStack(props) {
4522
- return composeClassNames("avatar-stack", _resp("avatar", props.size));
4531
+ return _comp("avatar-stack", _resp("avatar", props.size));
4523
4532
  }
4524
4533
  function badge(props) {
4525
- return composeClassNames("badge", props.tone && `badge-${props.tone}`, radius(props));
4534
+ return _comp("badge", props.tone && `badge-${props.tone}`, radius(props));
4526
4535
  }
4527
4536
  function box(props) {
4528
- return composeClassNames("box", props.muted && "muted", border(props), display(props), _resp("h", props.height), _resp("box", props.sizing), flex(props), flexItem(props), grid(props), gridItem(props), gap(props), inset(props), margin(props), maxWidth(props), props.outline && `outline-${props.outline}`, overflow(props), padding(props), pointerEvents(props), position(props), radius(props), width(props));
4537
+ return _comp(
4538
+ "box",
4539
+ props.muted && "muted",
4540
+ // todo: consider this naming
4541
+ _resp("box", props.sizing),
4542
+ border(props),
4543
+ display(props),
4544
+ height(props),
4545
+ flex(props),
4546
+ flexItem(props),
4547
+ grid(props),
4548
+ gridItem(props),
4549
+ gap(props),
4550
+ inset(props),
4551
+ margin(props),
4552
+ maxWidth(props),
4553
+ props.outline && `outline-${props.outline}`,
4554
+ overflow(props),
4555
+ padding(props),
4556
+ pointerEvents(props),
4557
+ position(props),
4558
+ radius(props),
4559
+ width(props)
4560
+ );
4529
4561
  }
4530
4562
  function button(props) {
4531
4563
  const {
4532
4564
  mode,
4533
4565
  tone
4534
4566
  } = props;
4535
- return composeClassNames("button", variantMap[mode ?? "default"], toneMap$1[tone ?? "default"], display(props), flexItem(props), radius(props), width(props));
4567
+ return _comp("button", variantMap[mode ?? "default"], toneMap$1[tone ?? "default"], display(props), flexItem(props), radius(props), width(props));
4536
4568
  }
4537
4569
  function buttonLoadingBox() {
4538
4570
  return "button-loading-box";
4539
4571
  }
4540
4572
  function card(props) {
4541
- return composeClassNames(props.scheme, toneMap[props.tone ?? "inherit"], "card", props.checkered && "card-checkered", box(props), shadow(props));
4573
+ return _comp(props.scheme, toneMap[props.tone ?? "default"], "card", props.checkered && "card-checkered", shadow(props));
4542
4574
  }
4543
4575
  function checkbox() {
4544
- return composeClassNames("checkbox");
4576
+ return _comp("checkbox");
4545
4577
  }
4546
4578
  function checkboxInput() {
4547
- return composeClassNames("checkbox-input");
4579
+ return _comp("checkbox-input");
4548
4580
  }
4549
4581
  function code(props) {
4550
- return composeClassNames("code", "block", font(props), _resp("code", props.size));
4582
+ return _comp("code", "block", font(props), _resp("code", props.size));
4551
4583
  }
4552
4584
  function container(props) {
4553
- return composeClassNames("container", maxWidth({
4585
+ return _comp("container", maxWidth({
4554
4586
  maxWidth: props.width
4555
4587
  }));
4556
4588
  }
4557
4589
  function heading(props) {
4558
- return composeClassNames("heading", "block", flexItem(props), font(props), props.accent && "heading-accent", props.muted && "heading-muted", _resp("heading", props.size));
4590
+ return _comp("block", "heading", font(props), props.accent && "heading-accent", props.muted && "heading-muted", _resp("heading", props.size), flexItem(props));
4559
4591
  }
4560
4592
  function kbd(props) {
4561
- return composeClassNames("kbd", radius(props));
4593
+ return _comp("kbd", radius(props));
4562
4594
  }
4563
4595
  function label(props) {
4564
- return composeClassNames("label", "block", font(props), props.accent && "label-accent", props.muted && "label-muted", _resp("label", props.size));
4596
+ return _comp("label", "block", font(props), props.accent && "label-accent", props.muted && "label-muted", _resp("label", props.size));
4565
4597
  }
4566
4598
  function popover() {
4567
- return composeClassNames("popover");
4599
+ return _comp("popover");
4568
4600
  }
4569
4601
  function radio() {
4570
- return composeClassNames("radio");
4602
+ return _comp("radio");
4571
4603
  }
4572
4604
  function select(props) {
4573
- return composeClassNames("select", _input(props));
4605
+ return composeClassNames(_comp("select"), _input(props));
4574
4606
  }
4575
4607
  function selectPresentation() {
4576
- return composeClassNames("select-presentation", _inputPresentation());
4608
+ return composeClassNames(_comp("select-presentation"), _inputPresentation());
4577
4609
  }
4578
4610
  function spinner() {
4579
- return composeClassNames("spinner");
4611
+ return _comp("spinner");
4580
4612
  }
4581
4613
  function animatedSpinnerIcon() {
4582
- return composeClassNames("animated-spinner-icon");
4614
+ return _comp("animated-spinner-icon");
4583
4615
  }
4584
4616
  function _switch() {
4585
- return composeClassNames("switch");
4617
+ return _comp("switch");
4586
4618
  }
4587
4619
  function _switchElement() {
4588
- return composeClassNames("switch-element");
4620
+ return _comp("switch-element");
4589
4621
  }
4590
4622
  function _switchPresentation() {
4591
- return composeClassNames("switch-presentation");
4623
+ return _comp("switch-presentation");
4592
4624
  }
4593
4625
  function _switchThumb() {
4594
- return composeClassNames("switch-thumb");
4626
+ return _comp("switch-thumb");
4595
4627
  }
4596
4628
  function _switchTrack() {
4597
- return composeClassNames("switch-track");
4629
+ return _comp("switch-track");
4598
4630
  }
4599
4631
  function text(props) {
4600
- return composeClassNames("text", "block", flexItem(props), font(props), props.accent && "text-accent", props.muted && "text-muted", _resp("text", props.size));
4632
+ return _comp("text", "block", flexItem(props), font(props), props.accent && "text-accent", props.muted && "text-muted", _resp("text", props.size));
4601
4633
  }
4602
4634
  function textArea(props) {
4603
- return composeClassNames("text-area", _input(props));
4635
+ return composeClassNames(_comp("text-area"), _input(props));
4604
4636
  }
4605
4637
  function textInput(props) {
4606
- return composeClassNames(_input(props), "text-input");
4638
+ return composeClassNames(_input(props), _comp("text-input"));
4607
4639
  }
4608
4640
  function tooltip() {
4609
- return composeClassNames("tooltip");
4641
+ return _comp("tooltip");
4610
4642
  }
4611
4643
  function tooltipCard() {
4612
- return composeClassNames("tooltip-card");
4644
+ return _comp("tooltip-card");
4613
4645
  }
4614
4646
  function srOnly() {
4615
4647
  return composeClassNames("sr-only");
@@ -4662,10 +4694,12 @@ export {
4662
4694
  flexItem,
4663
4695
  font,
4664
4696
  gap,
4697
+ getClassNames,
4665
4698
  grid,
4666
4699
  gridItem,
4667
4700
  heading,
4668
4701
  headingSkeleton,
4702
+ height,
4669
4703
  inset,
4670
4704
  isArray,
4671
4705
  isRecord,
@@ -4685,6 +4719,7 @@ export {
4685
4719
  radio,
4686
4720
  radius,
4687
4721
  rem,
4722
+ scopeClassName,
4688
4723
  select,
4689
4724
  selectPresentation,
4690
4725
  shadow,