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

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 (216) hide show
  1. package/dist/_chunks-cjs/buildCommand.js +1387 -681
  2. package/dist/_chunks-cjs/buildCommand.js.map +1 -1
  3. package/dist/cli.js +4 -2
  4. package/dist/cli.js.map +1 -1
  5. package/dist/css.d.mts +131 -12
  6. package/dist/css.d.ts +131 -12
  7. package/dist/css.esm.js +1450 -791
  8. package/dist/css.esm.js.map +1 -1
  9. package/dist/css.js +1449 -790
  10. package/dist/css.js.map +1 -1
  11. package/dist/css.mjs +1450 -791
  12. package/dist/css.mjs.map +1 -1
  13. package/dist/index.d.mts +84 -76
  14. package/dist/index.d.ts +84 -76
  15. package/dist/index.esm.js +2734 -3146
  16. package/dist/index.esm.js.map +1 -1
  17. package/dist/index.js +2733 -3145
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +2734 -3146
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/sanity-theme.css +1 -1
  22. package/dist/system.css +1590 -1158
  23. package/dist/theme.esm.js +1565 -452
  24. package/dist/theme.esm.js.map +1 -1
  25. package/dist/theme.js +1599 -484
  26. package/dist/theme.js.map +1 -1
  27. package/dist/theme.mjs +1565 -452
  28. package/dist/theme.mjs.map +1 -1
  29. package/package.json +22 -22
  30. package/src/core/__workshop__/constants.ts +14 -5
  31. package/src/core/__workshop__/fontsPlugin.tsx +1 -1
  32. package/src/core/_compat/index.ts +2 -0
  33. package/src/core/{styles → _compat/styles}/box/boxStyle.ts +1 -1
  34. package/src/core/{styles → _compat/styles}/box/types.ts +1 -1
  35. package/src/core/{styles → _compat/styles}/card/_cardColorStyle.ts +2 -2
  36. package/src/core/{styles → _compat/styles}/flex/flexItemStyle.ts +1 -1
  37. package/src/core/{styles → _compat/styles}/font/types.ts +1 -1
  38. package/src/core/{styles → _compat/styles}/grid/types.ts +1 -1
  39. package/src/core/{styles → _compat/styles}/helpers.ts +1 -1
  40. package/src/core/{styles → _compat/styles}/input/textInputStyle.ts +2 -2
  41. package/src/core/{styles → _compat/styles}/radius/types.ts +1 -1
  42. package/src/core/{styles → _compat/styles}/shadow/shadowStyle.ts +1 -1
  43. package/src/core/components/autocomplete/__workshop__/custom.tsx +5 -4
  44. package/src/core/components/autocomplete/__workshop__/example.tsx +3 -2
  45. package/src/core/components/autocomplete/autocomplete.tsx +5 -5
  46. package/src/core/components/dialog/__workshop__/panes.tsx +1 -1
  47. package/src/core/components/dialog/__workshop__/props.tsx +2 -0
  48. package/src/core/components/dialog/dialog.tsx +1 -5
  49. package/src/core/components/hotkeys/hotkeys.tsx +1 -1
  50. package/src/core/components/menu/menu.tsx +8 -10
  51. package/src/core/components/menu/menuDivider.tsx +16 -0
  52. package/src/core/components/menu/menuGroup.tsx +2 -8
  53. package/src/core/components/menu/menuItem.tsx +1 -1
  54. package/src/core/components/skeleton/skeleton.tsx +14 -20
  55. package/src/core/components/skeleton/textSkeleton.tsx +72 -48
  56. package/src/core/components/tab/tab.tsx +0 -1
  57. package/src/core/components/tab/tabList.tsx +4 -21
  58. package/src/core/components/tab/tabPanel.tsx +1 -0
  59. package/src/core/components/toast/toast.tsx +27 -14
  60. package/src/core/components/toast/toastProvider.tsx +4 -13
  61. package/src/core/components/tree/tree.tsx +1 -2
  62. package/src/core/components/tree/treeGroup.tsx +4 -1
  63. package/src/core/components/tree/treeItem.tsx +11 -15
  64. package/src/core/hooks/useArrayProp.ts +1 -1
  65. package/src/core/index.ts +0 -1
  66. package/src/core/lib/styled/members.ts +2 -2
  67. package/src/core/primitives/avatar/avatar.tsx +0 -21
  68. package/src/core/primitives/avatar/avatarCounter.tsx +1 -1
  69. package/src/core/primitives/avatar/avatarStack.tsx +1 -1
  70. package/src/core/primitives/avatar/styles.ts +2 -2
  71. package/src/core/primitives/box/box.tsx +4 -1
  72. package/src/core/primitives/button/__workshop__/props.tsx +2 -1
  73. package/src/core/primitives/button/__workshop__/sanityUploadButton.tsx +1 -1
  74. package/src/core/primitives/button/__workshop__/stacked.tsx +2 -1
  75. package/src/core/primitives/button/__workshop__/styled1.tsx +1 -1
  76. package/src/core/primitives/button/__workshop__/styled2.tsx +1 -1
  77. package/src/core/primitives/button/styles.ts +3 -3
  78. package/src/core/primitives/card/__workshop__/props.tsx +2 -2
  79. package/src/core/primitives/card/__workshop__/selected.tsx +1 -1
  80. package/src/core/primitives/card/__workshop__/styled.tsx +1 -1
  81. package/src/core/primitives/card/card.tsx +7 -10
  82. package/src/core/primitives/code/code.tsx +2 -4
  83. package/src/core/primitives/container/styles.ts +1 -1
  84. package/src/core/primitives/flex/__workshop__/example.tsx +1 -1
  85. package/src/core/primitives/flex/flex.tsx +1 -13
  86. package/src/core/primitives/grid/grid.tsx +5 -19
  87. package/src/core/primitives/heading/heading.tsx +8 -25
  88. package/src/core/primitives/heading/styles.ts +1 -1
  89. package/src/core/primitives/inline/inline.tsx +3 -12
  90. package/src/core/primitives/inline/styles.ts +1 -1
  91. package/src/core/primitives/label/label.tsx +4 -9
  92. package/src/core/primitives/label/styles.ts +1 -1
  93. package/src/core/primitives/popover/__workshop__/PlainStory.tsx +2 -2
  94. package/src/core/primitives/popover/__workshop__/TestStory.tsx +2 -1
  95. package/src/core/primitives/popover/popover.tsx +1 -1
  96. package/src/core/primitives/popover/popoverCard.tsx +1 -1
  97. package/src/core/primitives/radio/radio.tsx +1 -1
  98. package/src/core/primitives/radio/styles.ts +2 -2
  99. package/src/core/primitives/select/select.tsx +1 -1
  100. package/src/core/primitives/select/styles.ts +3 -3
  101. package/src/core/primitives/spinner/__workshop__/Props.tsx +2 -1
  102. package/src/core/primitives/spinner/animatedSpinnerIcon.tsx +16 -0
  103. package/src/core/primitives/spinner/spinner.tsx +2 -2
  104. package/src/core/primitives/stack/styles.ts +1 -1
  105. package/src/core/primitives/switch/styles.ts +2 -2
  106. package/src/core/primitives/text/__workshop__/colored.tsx +1 -1
  107. package/src/core/primitives/text/styles.ts +1 -1
  108. package/src/core/primitives/text/text.tsx +1 -4
  109. package/src/core/primitives/textArea/__workshop__/plain.tsx +2 -2
  110. package/src/core/primitives/textArea/textArea.tsx +3 -3
  111. package/src/core/primitives/textInput/__workshop__/plain.tsx +3 -2
  112. package/src/core/primitives/textInput/textInput.tsx +16 -83
  113. package/src/core/primitives/tooltip/tooltipCard.tsx +5 -5
  114. package/src/core/primitives/types.ts +1 -0
  115. package/src/core/theme/__workshop__/build/Root.tsx +1 -1
  116. package/src/core/theme/__workshop__/build/story.tsx +2 -4
  117. package/src/core/theme/themeProvider.tsx +1 -1
  118. package/src/core/types/box.ts +22 -16
  119. package/src/core/types/grid.ts +17 -12
  120. package/src/core/types/text.ts +7 -4
  121. package/src/core/utils/elementQuery/__workshop__/customMedia.tsx +1 -1
  122. package/src/core/utils/layer/layer.tsx +2 -2
  123. package/src/core/utils/virtualList/virtualList.tsx +1 -1
  124. package/src/css/compile/{comileRules.ts → compileRules.ts} +2 -5
  125. package/src/css/compile/compileSystem.ts +1 -1
  126. package/src/css/compile/compileTheme.ts +4 -1
  127. package/src/css/components/breadcrumbs/rules.ts +18 -0
  128. package/src/css/components/menu/index.ts +1 -0
  129. package/src/css/components/menu/menu.ts +5 -0
  130. package/src/css/components/menu/rules.ts +10 -0
  131. package/src/css/components/skeleton/index.ts +2 -0
  132. package/src/css/components/skeleton/rules.ts +106 -0
  133. package/src/css/components/skeleton/skeleton.ts +31 -0
  134. package/src/css/components/skeleton/types.ts +24 -0
  135. package/src/css/components/toast/rules.ts +68 -0
  136. package/src/css/components/tree/rules.ts +115 -0
  137. package/src/css/index.ts +4 -0
  138. package/src/css/primitives/box/box.ts +5 -1
  139. package/src/css/primitives/box/types.ts +7 -8
  140. package/src/css/primitives/card/rules.ts +161 -13
  141. package/src/css/primitives/checkbox/__styles.ts +115 -113
  142. package/src/css/primitives/selectable/__style.ts +117 -115
  143. package/src/css/primitives/spinner/rules.ts +5 -7
  144. package/src/css/primitives/spinner/spinner.ts +4 -0
  145. package/src/css/primitives/textInput/index.ts +1 -0
  146. package/src/css/primitives/textInput/rules.ts +159 -64
  147. package/src/css/primitives/textInput/textInput.ts +11 -3
  148. package/src/css/primitives/textInput/types.ts +8 -0
  149. package/src/css/rules.ts +16 -38
  150. package/src/css/styles/font/font.ts +7 -2
  151. package/src/css/styles/font/rules.ts +23 -0
  152. package/src/css/styles/font/types.ts +6 -0
  153. package/src/css/styles/gap/rules.ts +6 -6
  154. package/src/css/styles/grid/grid.ts +13 -0
  155. package/src/css/styles/grid/index.ts +2 -0
  156. package/src/css/styles/grid/rules.ts +112 -1
  157. package/src/css/styles/grid/types.ts +29 -0
  158. package/src/css/styles/margin/rules.ts +58 -54
  159. package/src/css/styles/outline/rules.ts +7 -0
  160. package/src/css/styles/overflow/index.ts +2 -0
  161. package/src/css/styles/overflow/overflow.ts +11 -0
  162. package/src/css/styles/overflow/types.ts +11 -0
  163. package/src/css/styles/padding/rules.ts +50 -48
  164. package/src/css/types.ts +36 -1
  165. package/src/css/varNames.ts +1 -1
  166. package/src/css/vars.ts +86 -0
  167. package/dist/_chunks-cjs/getTheme_v2.js +0 -316
  168. package/dist/_chunks-cjs/getTheme_v2.js.map +0 -1
  169. package/dist/_chunks-es/getTheme_v2.mjs +0 -317
  170. package/dist/_chunks-es/getTheme_v2.mjs.map +0 -1
  171. package/dist/_legacy/getTheme_v2.esm.js +0 -317
  172. package/dist/_legacy/getTheme_v2.esm.js.map +0 -1
  173. package/src/core/components/autocomplete/autocomplete.styles.tsx +0 -38
  174. package/src/core/components/breadcrumbs/breadcrumbs.styles.ts +0 -17
  175. package/src/core/components/menu/menuDivider.ts +0 -13
  176. package/src/core/components/skeleton/styles.ts +0 -50
  177. package/src/core/components/toast/styles.ts +0 -61
  178. package/src/core/components/tree/style.ts +0 -104
  179. package/src/core/primitives/card/styles.ts +0 -146
  180. /package/src/core/{styles → _compat/styles}/border/borderStyle.ts +0 -0
  181. /package/src/core/{styles → _compat/styles}/border/index.ts +0 -0
  182. /package/src/core/{styles → _compat/styles}/border/types.ts +0 -0
  183. /package/src/core/{styles → _compat/styles}/box/index.ts +0 -0
  184. /package/src/core/{styles → _compat/styles}/card/index.ts +0 -0
  185. /package/src/core/{styles → _compat/styles}/flex/flexStyle.ts +0 -0
  186. /package/src/core/{styles → _compat/styles}/flex/index.ts +0 -0
  187. /package/src/core/{styles → _compat/styles}/flex/types.ts +0 -0
  188. /package/src/core/{styles → _compat/styles}/focusRing/index.ts +0 -0
  189. /package/src/core/{styles → _compat/styles}/font/codeFontStyle.ts +0 -0
  190. /package/src/core/{styles → _compat/styles}/font/headingFontStyle.ts +0 -0
  191. /package/src/core/{styles → _compat/styles}/font/index.ts +0 -0
  192. /package/src/core/{styles → _compat/styles}/font/labelFontStyle.ts +0 -0
  193. /package/src/core/{styles → _compat/styles}/font/responsiveFont.ts +0 -0
  194. /package/src/core/{styles → _compat/styles}/font/textAlignStyle.ts +0 -0
  195. /package/src/core/{styles → _compat/styles}/font/textFontStyle.ts +0 -0
  196. /package/src/core/{styles → _compat/styles}/grid/gridItemStyle.ts +0 -0
  197. /package/src/core/{styles → _compat/styles}/grid/gridStyle.ts +0 -0
  198. /package/src/core/{styles → _compat/styles}/grid/index.ts +0 -0
  199. /package/src/core/{styles → _compat/styles}/index.ts +0 -0
  200. /package/src/core/{styles → _compat/styles}/input/index.ts +0 -0
  201. /package/src/core/{styles → _compat/styles}/input/responsiveInputPaddingStyle.ts +0 -0
  202. /package/src/core/{styles → _compat/styles}/internal.ts +0 -0
  203. /package/src/core/{styles → _compat/styles}/margin/index.ts +0 -0
  204. /package/src/core/{styles → _compat/styles}/margin/marginStyle.ts +0 -0
  205. /package/src/core/{styles → _compat/styles}/margin/marginsStyle.test.ts +0 -0
  206. /package/src/core/{styles → _compat/styles}/margin/types.ts +0 -0
  207. /package/src/core/{styles → _compat/styles}/padding/index.ts +0 -0
  208. /package/src/core/{styles → _compat/styles}/padding/paddingStyle.test.ts +0 -0
  209. /package/src/core/{styles → _compat/styles}/padding/paddingStyle.ts +0 -0
  210. /package/src/core/{styles → _compat/styles}/padding/types.ts +0 -0
  211. /package/src/core/{styles → _compat/styles}/radius/index.ts +0 -0
  212. /package/src/core/{styles → _compat/styles}/radius/radiusStyle.ts +0 -0
  213. /package/src/core/{styles → _compat/styles}/shadow/index.ts +0 -0
  214. /package/src/core/{styles → _compat/styles}/shadow/types.ts +0 -0
  215. /package/src/core/{styles → _compat/styles}/types.ts +0 -0
  216. /package/src/core/{_compat.ts → _compat/types.ts} +0 -0
package/dist/css.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { THEME_COLOR_AVATAR_COLORS, SPACE, THEME_COLOR_CARD_TONES, THEME_COLOR_STATE_TONES, THEME_COLOR_INPUT_MODES, THEME_COLOR_INPUT_STATES, THEME_COLOR_BUTTON_MODES } from "@sanity/ui/theme";
1
+ import { FONT_CODE_SIZE, FONT_HEADING_SIZE, FONT_LABEL_SIZE, FONT_TEXT_SIZE, THEME_COLOR_AVATAR_COLORS, SPACE, THEME_COLOR_CARD_TONES, THEME_COLOR_STATE_TONES, THEME_COLOR_INPUT_MODES, THEME_COLOR_INPUT_STATES, THEME_COLOR_BUTTON_MODES } from "@sanity/ui/theme";
2
2
  const breadcrumbsRules = {
3
3
  breadcrumbs: {
4
4
  lineHeight: 0
@@ -65,31 +65,133 @@ const breadcrumbsRules = {
65
65
  "dialog-footer": {
66
66
  zIndex: 3
67
67
  }
68
+ }, menuRules = {
69
+ "menu-divider": {
70
+ height: "1px",
71
+ border: 0,
72
+ backgroundColor: "var(--card-border-color)",
73
+ margin: 0
74
+ }
68
75
  };
69
76
  function responsiveRules(className, props) {
70
77
  return {
71
78
  [className]: props,
72
79
  [`_1:${className}`]: {
73
- "@media": { "screen and (min-width: 360px)": props }
80
+ "@media": {
81
+ "screen and (min-width: 360px)": props
82
+ }
74
83
  },
75
84
  [`_2:${className}`]: {
76
- "@media": { "screen and (min-width: 600px)": props }
85
+ "@media": {
86
+ "screen and (min-width: 600px)": props
87
+ }
77
88
  },
78
89
  [`_3:${className}`]: {
79
- "@media": { "screen and (min-width: 900px)": props }
90
+ "@media": {
91
+ "screen and (min-width: 900px)": props
92
+ }
80
93
  },
81
94
  [`_4:${className}`]: {
82
- "@media": { "screen and (min-width: 1200px)": props }
95
+ "@media": {
96
+ "screen and (min-width: 1200px)": props
97
+ }
83
98
  },
84
99
  [`_5:${className}`]: {
85
- "@media": { "screen and (min-width: 1800px)": props }
100
+ "@media": {
101
+ "screen and (min-width: 1800px)": props
102
+ }
86
103
  },
87
104
  [`_6:${className}`]: {
88
- "@media": { "screen and (min-width: 2400px)": props }
105
+ "@media": {
106
+ "screen and (min-width: 2400px)": props
107
+ }
89
108
  }
90
109
  };
91
110
  }
92
- const avatarRules = {
111
+ const skeletonRules = {
112
+ skeleton: {
113
+ backgroundColor: "var(--card-skeleton-from-color)",
114
+ backgroundPosition: "100%",
115
+ backgroundSize: "200% 100%",
116
+ backgroundAttachment: "fixed",
117
+ opacity: 0,
118
+ transition: "opacity 200ms ease-in",
119
+ "@keyframes": {
120
+ "skeleton-pulse": {
121
+ "0%": {
122
+ backgroundPosition: "100%"
123
+ },
124
+ "100%": {
125
+ backgroundPosition: "-100%"
126
+ }
127
+ }
128
+ },
129
+ "@nest": {
130
+ "&[data-animated]": {
131
+ backgroundImage: `linear-gradient(
132
+ to right,
133
+ var(--card-skeleton-from-color),
134
+ var(--card-skeleton-to-color),
135
+ var(--card-skeleton-from-color),
136
+ var(--card-skeleton-from-color),
137
+ var(--card-skeleton-from-color)
138
+ )`,
139
+ animationName: "skeleton-pulse",
140
+ animationTimingFunction: "ease-in-out",
141
+ animationIterationCount: "infinite",
142
+ animationDuration: "2000ms"
143
+ },
144
+ "&[data-visible]": {
145
+ opacity: 1
146
+ }
147
+ },
148
+ "@media": {
149
+ "screen and (prefers-reduced-motion: no-preference)": {
150
+ backgroundColor: "var(--card-skeleton-from-color)"
151
+ }
152
+ }
153
+ },
154
+ "font-skeleton": {
155
+ height: "calc(var(--font-skeleton-line-height) - var(--font-skeleton-ascender-height) - var(--font-skeleton-descender-height))"
156
+ },
157
+ // ...responsiveRules('text-skeleton-0', {
158
+ // '--font-skeleton-line-height': 'var(--font-text-0-line-height)',
159
+ // '--font-skeleton-ascender-height': 'var(--font-text-0-ascender-height)',
160
+ // '--font-skeleton-descender-height': 'var(--font-text-0-descender-height)',
161
+ // }),
162
+ ...FONT_CODE_SIZE.reduce((acc, size) => ({
163
+ ...acc,
164
+ ...responsiveRules(`code-skeleton-${size}`, {
165
+ "--font-skeleton-line-height": `var(--font-code-${size}-line-height)`,
166
+ "--font-skeleton-ascender-height": `var(--font-code-${size}-ascender-height)`,
167
+ "--font-skeleton-descender-height": `var(--font-code-${size}-descender-height)`
168
+ })
169
+ }), {}),
170
+ ...FONT_HEADING_SIZE.reduce((acc, size) => ({
171
+ ...acc,
172
+ ...responsiveRules(`heading-skeleton-${size}`, {
173
+ "--font-skeleton-line-height": `var(--font-heading-${size}-line-height)`,
174
+ "--font-skeleton-ascender-height": `var(--font-heading-${size}-ascender-height)`,
175
+ "--font-skeleton-descender-height": `var(--font-heading-${size}-descender-height)`
176
+ })
177
+ }), {}),
178
+ ...FONT_LABEL_SIZE.reduce((acc, size) => ({
179
+ ...acc,
180
+ ...responsiveRules(`label-skeleton-${size}`, {
181
+ "--font-skeleton-line-height": `var(--font-label-${size}-line-height)`,
182
+ "--font-skeleton-ascender-height": `var(--font-label-${size}-ascender-height)`,
183
+ "--font-skeleton-descender-height": `var(--font-label-${size}-descender-height)`
184
+ })
185
+ }), {}),
186
+ ...FONT_TEXT_SIZE.reduce((acc, size) => ({
187
+ ...acc,
188
+ ...responsiveRules(`text-skeleton-${size}`, {
189
+ "--font-skeleton-line-height": `var(--font-text-${size}-line-height)`,
190
+ "--font-skeleton-ascender-height": `var(--font-text-${size}-ascender-height)`,
191
+ "--font-skeleton-descender-height": `var(--font-text-${size}-descender-height)`
192
+ })
193
+ }), {})
194
+ }, avatarRules = {
93
195
  avatar: {
94
196
  backgroundColor: "var(--avatar-bg-color)",
95
197
  position: "relative",
@@ -249,20 +351,56 @@ const avatarRules = {
249
351
  }, varNames = {
250
352
  color: {
251
353
  dark: {
252
- transparent: buildColorCardVarNames({ scheme: "dark", tone: "transparent" }),
253
- default: buildColorCardVarNames({ scheme: "dark", tone: "default" }),
254
- primary: buildColorCardVarNames({ scheme: "dark", tone: "primary" }),
255
- positive: buildColorCardVarNames({ scheme: "dark", tone: "positive" }),
256
- caution: buildColorCardVarNames({ scheme: "dark", tone: "caution" }),
257
- critical: buildColorCardVarNames({ scheme: "dark", tone: "critical" })
354
+ transparent: buildColorCardVarNames({
355
+ scheme: "dark",
356
+ tone: "transparent"
357
+ }),
358
+ default: buildColorCardVarNames({
359
+ scheme: "dark",
360
+ tone: "default"
361
+ }),
362
+ primary: buildColorCardVarNames({
363
+ scheme: "dark",
364
+ tone: "primary"
365
+ }),
366
+ positive: buildColorCardVarNames({
367
+ scheme: "dark",
368
+ tone: "positive"
369
+ }),
370
+ caution: buildColorCardVarNames({
371
+ scheme: "dark",
372
+ tone: "caution"
373
+ }),
374
+ critical: buildColorCardVarNames({
375
+ scheme: "dark",
376
+ tone: "critical"
377
+ })
258
378
  },
259
379
  light: {
260
- transparent: buildColorCardVarNames({ scheme: "light", tone: "transparent" }),
261
- default: buildColorCardVarNames({ scheme: "light", tone: "default" }),
262
- primary: buildColorCardVarNames({ scheme: "light", tone: "primary" }),
263
- positive: buildColorCardVarNames({ scheme: "light", tone: "positive" }),
264
- caution: buildColorCardVarNames({ scheme: "light", tone: "caution" }),
265
- critical: buildColorCardVarNames({ scheme: "light", tone: "critical" })
380
+ transparent: buildColorCardVarNames({
381
+ scheme: "light",
382
+ tone: "transparent"
383
+ }),
384
+ default: buildColorCardVarNames({
385
+ scheme: "light",
386
+ tone: "default"
387
+ }),
388
+ primary: buildColorCardVarNames({
389
+ scheme: "light",
390
+ tone: "primary"
391
+ }),
392
+ positive: buildColorCardVarNames({
393
+ scheme: "light",
394
+ tone: "positive"
395
+ }),
396
+ caution: buildColorCardVarNames({
397
+ scheme: "light",
398
+ tone: "caution"
399
+ }),
400
+ critical: buildColorCardVarNames({
401
+ scheme: "light",
402
+ tone: "critical"
403
+ })
266
404
  },
267
405
  //
268
406
  accent: {
@@ -417,12 +555,13 @@ const avatarRules = {
417
555
  width: "--avatar-focus-ring-width"
418
556
  }
419
557
  },
420
- space: Object.fromEntries(
421
- SPACE.map((space) => [space, `--space-${space}`])
422
- )
558
+ space: Object.fromEntries(SPACE.map((space) => [space, `--space-${String(space).replace(".", "_")}`]))
423
559
  };
424
560
  function buildColorCardVarNames(props) {
425
- const { scheme, tone } = props, prefix = `--color-${scheme}-${tone}`;
561
+ const {
562
+ scheme,
563
+ tone
564
+ } = props, prefix = `--color-${scheme}-${tone}`;
426
565
  return {
427
566
  accent: {
428
567
  fg: `${prefix}-accent-fg`
@@ -509,16 +648,56 @@ function buildColorCardVarNames(props) {
509
648
  icon: `${prefix}-icon`,
510
649
  input: {
511
650
  default: {
512
- enabled: buildColorInputStateVarNames({ mode: "default", scheme, state: "enabled", tone }),
513
- hovered: buildColorInputStateVarNames({ mode: "default", scheme, state: "hovered", tone }),
514
- readOnly: buildColorInputStateVarNames({ mode: "default", scheme, state: "readOnly", tone }),
515
- disabled: buildColorInputStateVarNames({ mode: "default", scheme, state: "disabled", tone })
651
+ enabled: buildColorInputStateVarNames({
652
+ mode: "default",
653
+ scheme,
654
+ state: "enabled",
655
+ tone
656
+ }),
657
+ hovered: buildColorInputStateVarNames({
658
+ mode: "default",
659
+ scheme,
660
+ state: "hovered",
661
+ tone
662
+ }),
663
+ readOnly: buildColorInputStateVarNames({
664
+ mode: "default",
665
+ scheme,
666
+ state: "readOnly",
667
+ tone
668
+ }),
669
+ disabled: buildColorInputStateVarNames({
670
+ mode: "default",
671
+ scheme,
672
+ state: "disabled",
673
+ tone
674
+ })
516
675
  },
517
676
  invalid: {
518
- enabled: buildColorInputStateVarNames({ mode: "invalid", scheme, state: "enabled", tone }),
519
- hovered: buildColorInputStateVarNames({ mode: "invalid", scheme, state: "hovered", tone }),
520
- readOnly: buildColorInputStateVarNames({ mode: "invalid", scheme, state: "readOnly", tone }),
521
- disabled: buildColorInputStateVarNames({ mode: "invalid", scheme, state: "disabled", tone })
677
+ enabled: buildColorInputStateVarNames({
678
+ mode: "invalid",
679
+ scheme,
680
+ state: "enabled",
681
+ tone
682
+ }),
683
+ hovered: buildColorInputStateVarNames({
684
+ mode: "invalid",
685
+ scheme,
686
+ state: "hovered",
687
+ tone
688
+ }),
689
+ readOnly: buildColorInputStateVarNames({
690
+ mode: "invalid",
691
+ scheme,
692
+ state: "readOnly",
693
+ tone
694
+ }),
695
+ disabled: buildColorInputStateVarNames({
696
+ mode: "invalid",
697
+ scheme,
698
+ state: "disabled",
699
+ tone
700
+ })
522
701
  }
523
702
  },
524
703
  kbd: {
@@ -584,7 +763,12 @@ function buildColorCardVarNames(props) {
584
763
  };
585
764
  }
586
765
  function buildColorInputStateVarNames(props) {
587
- const { mode, scheme, state, tone } = props, prefix = `--color-${scheme}-${tone}-input-${mode}-${state}`;
766
+ const {
767
+ mode,
768
+ scheme,
769
+ state,
770
+ tone
771
+ } = props, prefix = `--color-${scheme}-${tone}-input-${mode}-${state}`;
588
772
  return {
589
773
  bg: `${prefix}-bg`,
590
774
  border: `${prefix}-border`,
@@ -599,11 +783,17 @@ const vars = {
599
783
  color: {
600
784
  dark: THEME_COLOR_CARD_TONES.reduce((acc, tone) => ({
601
785
  ...acc,
602
- [tone]: buildColorCardVars({ scheme: "dark", tone })
786
+ [tone]: buildColorCardVars({
787
+ scheme: "dark",
788
+ tone
789
+ })
603
790
  }), {}),
604
791
  light: THEME_COLOR_CARD_TONES.reduce((acc, tone) => ({
605
792
  ...acc,
606
- [tone]: buildColorCardVars({ scheme: "light", tone })
793
+ [tone]: buildColorCardVars({
794
+ scheme: "light",
795
+ tone
796
+ })
607
797
  }), {}),
608
798
  accent: {
609
799
  fg: "var(--color-accent-fg)"
@@ -720,12 +910,71 @@ const vars = {
720
910
  variable: "var(--color-syntax-variable)"
721
911
  }
722
912
  },
723
- space: Object.fromEntries(
724
- SPACE.map((space) => [space, `var(${varNames.space[space]})`])
725
- )
913
+ font: {
914
+ code: {
915
+ family: "var(--font-code-family)",
916
+ sizes: FONT_CODE_SIZE.reduce((acc, size) => ({
917
+ ...acc,
918
+ [size]: {
919
+ fontSize: `var(--font-code-${size}-size)`,
920
+ ascenderHeight: `var(--font-code-${size}-ascender-height)`,
921
+ descenderHeight: `var(--font-code-${size}-descender-height)`,
922
+ lineHeight: `var(--font-code-${size}-line-height)`,
923
+ letterSpacing: `var(--font-code-${size}-letter-spacing)`,
924
+ iconSize: `var(--font-code-${size}-icon-size)`
925
+ }
926
+ }), {})
927
+ },
928
+ heading: {
929
+ family: "var(--font-heading-family)",
930
+ sizes: FONT_HEADING_SIZE.reduce((acc, size) => ({
931
+ ...acc,
932
+ [size]: {
933
+ fontSize: `var(--font-code-${size}-size)`,
934
+ ascenderHeight: `var(--font-code-${size}-ascender-height)`,
935
+ descenderHeight: `var(--font-code-${size}-descender-height)`,
936
+ lineHeight: `var(--font-code-${size}-line-height)`,
937
+ letterSpacing: `var(--font-code-${size}-letter-spacing)`,
938
+ iconSize: `var(--font-code-${size}-icon-size)`
939
+ }
940
+ }), {})
941
+ },
942
+ label: {
943
+ family: "var(--font-label-family)",
944
+ sizes: FONT_CODE_SIZE.reduce((acc, size) => ({
945
+ ...acc,
946
+ [size]: {
947
+ fontSize: `var(--font-code-${size}-size)`,
948
+ ascenderHeight: `var(--font-code-${size}-ascender-height)`,
949
+ descenderHeight: `var(--font-code-${size}-descender-height)`,
950
+ lineHeight: `var(--font-code-${size}-line-height)`,
951
+ letterSpacing: `var(--font-code-${size}-letter-spacing)`,
952
+ iconSize: `var(--font-code-${size}-icon-size)`
953
+ }
954
+ }), {})
955
+ },
956
+ text: {
957
+ family: "var(--font-text-family)",
958
+ sizes: FONT_TEXT_SIZE.reduce((acc, size) => ({
959
+ ...acc,
960
+ [size]: {
961
+ fontSize: `var(--font-code-${size}-size)`,
962
+ ascenderHeight: `var(--font-code-${size}-ascender-height)`,
963
+ descenderHeight: `var(--font-code-${size}-descender-height)`,
964
+ lineHeight: `var(--font-code-${size}-line-height)`,
965
+ letterSpacing: `var(--font-code-${size}-letter-spacing)`,
966
+ iconSize: `var(--font-code-${size}-icon-size)`
967
+ }
968
+ }), {})
969
+ }
970
+ },
971
+ space: Object.fromEntries(SPACE.map((space) => [space, `var(${varNames.space[space]})`]))
726
972
  };
727
973
  function buildColorCardVars(props) {
728
- const { scheme, tone } = props, prefix = `--color-${scheme}-${tone}`;
974
+ const {
975
+ scheme,
976
+ tone
977
+ } = props, prefix = `--color-${scheme}-${tone}`;
729
978
  return {
730
979
  accent: {
731
980
  fg: `var(${prefix}-accent-fg)`
@@ -766,7 +1015,12 @@ function buildColorCardVars(props) {
766
1015
  [mode]: {
767
1016
  ...THEME_COLOR_INPUT_STATES.reduce((acc2, state) => ({
768
1017
  ...acc2,
769
- [state]: buildColorInputStateVars({ mode, scheme, state, tone })
1018
+ [state]: buildColorInputStateVars({
1019
+ mode,
1020
+ scheme,
1021
+ state,
1022
+ tone
1023
+ })
770
1024
  }), {})
771
1025
  }
772
1026
  }), {})
@@ -834,7 +1088,12 @@ function buildColorCardVars(props) {
834
1088
  };
835
1089
  }
836
1090
  function buildColorInputStateVars(props) {
837
- const { mode, scheme, state, tone } = props, prefix = `--color-${scheme}-${tone}-input-${mode}-${state}`;
1091
+ const {
1092
+ mode,
1093
+ scheme,
1094
+ state,
1095
+ tone
1096
+ } = props, prefix = `--color-${scheme}-${tone}-input-${mode}-${state}`;
838
1097
  return {
839
1098
  bg: `var(${prefix}-bg)`,
840
1099
  border: `var(${prefix}-border)`,
@@ -851,18 +1110,15 @@ const badgeRules = {
851
1110
  color: vars.color.badge.fg,
852
1111
  verticalAlign: "top"
853
1112
  },
854
- ...THEME_COLOR_STATE_TONES.reduce(
855
- (acc, tone) => ({
856
- ...acc,
857
- [`badge-${tone}`]: {
858
- [varNames.color.badge.bg]: vars.color.badge[tone].bg,
859
- [varNames.color.badge.dot]: vars.color.badge[tone].dot,
860
- [varNames.color.badge.fg]: vars.color.badge[tone].fg,
861
- [varNames.color.badge.icon]: vars.color.badge[tone].icon
862
- }
863
- }),
864
- {}
865
- )
1113
+ ...THEME_COLOR_STATE_TONES.reduce((acc, tone) => ({
1114
+ ...acc,
1115
+ [`badge-${tone}`]: {
1116
+ [varNames.color.badge.bg]: vars.color.badge[tone].bg,
1117
+ [varNames.color.badge.dot]: vars.color.badge[tone].dot,
1118
+ [varNames.color.badge.fg]: vars.color.badge[tone].fg,
1119
+ [varNames.color.badge.icon]: vars.color.badge[tone].icon
1120
+ }
1121
+ }), {})
866
1122
  }, boxRules = {
867
1123
  box: {
868
1124
  minWidth: 0,
@@ -967,20 +1223,17 @@ const badgeRules = {
967
1223
  "--card-shadow-ambient-color": "var(--color-shadow-ambient)",
968
1224
  "--card-skeleton-from-color": "var(--color-skeleton-from)",
969
1225
  "--card-skeleton-to-color": "var(--color-skeleton-to)",
970
- /*
971
- '--card-bg-image': checkered
972
- ? `repeating-conic-gradient(${color.bg} 0% 25%, ${color.muted.bg} 0% 50%)`
973
- : undefined,
974
-
975
- '--card-bg-image': checkered
976
- ? `repeating-conic-gradient(${color.bg} 0% 25%, ${color.muted.bg} 0% 50%)`
977
- : undefined,
978
-
979
- '--card-bg2-color': color.muted.bg,
980
- '--card-link-color': color.link.fg,
981
- '--card-hairline-soft-color': color.border,
982
- '--card-hairline-hard-color': color.border, */
1226
+ "--card-bg2-color": "var(--color-muted-bg)",
1227
+ "--card-link-color": "var(--color-link-fg)",
1228
+ "--card-hairline-soft-color": "var(--color-border)",
1229
+ "--card-hairline-hard-color": "var(--color-border)",
983
1230
  "@nest": {
1231
+ "&[data-checkered]": {
1232
+ "--card-bg-image": "repeating-conic-gradient(var(--color-bg) 0% 25%, var(--color-muted-bg) 0% 50%)",
1233
+ backgroundSize: "var(--space-3) var(--space-3)",
1234
+ backgroundPosition: "50% 50%",
1235
+ backgroundImage: "var(--card-bg-image)"
1236
+ },
984
1237
  '&[data-as="button"]': {
985
1238
  WebkitFontSmoothing: "inherit",
986
1239
  appearance: "none",
@@ -1361,7 +1614,9 @@ const badgeRules = {
1361
1614
  }
1362
1615
  }
1363
1616
  }, spinnerRules = {
1364
- spinner: {
1617
+ spinner: {},
1618
+ "animated-spinner-icon": {
1619
+ animation: "spinner-rotate 500ms linear infinite",
1365
1620
  "@keyframes": {
1366
1621
  "spinner-rotate": {
1367
1622
  from: {
@@ -1371,11 +1626,6 @@ const badgeRules = {
1371
1626
  transform: "rotate(360deg)"
1372
1627
  }
1373
1628
  }
1374
- },
1375
- "@nest": {
1376
- "& > span > svg": {
1377
- animation: "spinner-rotate 500ms linear infinite"
1378
- }
1379
1629
  }
1380
1630
  }
1381
1631
  }, switchRules = {
@@ -1567,68 +1817,89 @@ const badgeRules = {
1567
1817
  //
1568
1818
  }, textInputRules = {
1569
1819
  "text-input": {
1570
- //
1820
+ "--font-family": vars.font.text.family
1571
1821
  },
1572
- "text-input-wrapper": {
1822
+ ...SPACE.reduce((acc, space) => ({
1823
+ ...acc,
1824
+ ...responsiveRules(`text-input-p-${space}`.replace(".", "_"), {
1825
+ "--padding-top": `calc(${vars.space[space]} - var(--font-ascender-height))`,
1826
+ "--padding-right": vars.space[space],
1827
+ "--padding-bottom": `calc(${vars.space[space]} - var(--font-descender-height))`,
1828
+ "--padding-left": vars.space[space]
1829
+ })
1830
+ }), {}),
1831
+ ...FONT_TEXT_SIZE.reduce((acc, size) => ({
1832
+ ...acc,
1833
+ ...responsiveRules(`text-input-${size}`, {
1834
+ "--font-size": vars.font.text.sizes[size].fontSize,
1835
+ "--font-line-height": vars.font.text.sizes[size].lineHeight,
1836
+ "--font-letter-spacing": vars.font.text.sizes[size].letterSpacing,
1837
+ "--font-ascender-height": vars.font.text.sizes[size].ascenderHeight,
1838
+ "--font-descender-height": vars.font.text.sizes[size].descenderHeight
1839
+ })
1840
+ }), {}),
1841
+ "text-input-element": {
1842
+ appearance: "none",
1843
+ background: "none",
1844
+ border: 0,
1845
+ borderRadius: 0,
1846
+ outline: "none",
1847
+ width: "100%",
1848
+ boxSizing: "border-box",
1849
+ fontFamily: "var(--font-family)",
1850
+ fontSize: "var(--font-size)",
1851
+ fontWeight: "var(--font-weight)",
1852
+ lineHeight: "var(--font-line-height)",
1853
+ letterSpacing: "var(--font-letter-spacing)",
1854
+ margin: 0,
1855
+ position: "relative",
1856
+ zIndex: 1,
1857
+ display: "block",
1858
+ color: "var(--input-fg-color)",
1859
+ paddingTop: "var(--padding-top)",
1860
+ paddingRight: "var(--padding-right)",
1861
+ paddingBottom: "var(--padding-bottom)",
1862
+ paddingLeft: "var(--padding-left)",
1863
+ "--input-fg-color": "var(--color-input-default-enabled-fg)",
1573
1864
  "@nest": {
1574
- "& > input": {
1575
- appearance: "none",
1576
- background: "none",
1577
- border: 0,
1578
- borderRadius: 0,
1579
- outline: "none",
1580
- width: "100%",
1581
- boxSizing: "border-box",
1582
- fontFamily: "var(--font-family)",
1583
- fontSize: "var(--font-size)",
1584
- /* font-family: ${font.text.family}, */
1585
- /* font-weight: ${($weight && font.text.weights[$weight]) || font.text.weights.regular}, */
1586
- margin: 0,
1587
- position: "relative",
1588
- zIndex: 1,
1589
- display: "block",
1590
- color: "var(--input-fg-color)",
1591
- "@nest": {
1592
- // NOTE: This is a hack to disable Chrome’s autofill styles
1593
- "&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active": {
1594
- WebkitTextFillColor: "var(--input-fg-color) !important",
1595
- transition: "background-color 5000s",
1596
- transitionDelay: "86400s"
1597
- // 24h
1598
- }
1599
- // /* &:is(textarea) */
1600
- // &[data-as='textarea'] {
1601
- // resize: none;
1602
- // }
1603
- // &::placeholder {
1604
- // color: var(--input-placeholder-color);
1605
- // }
1606
- // &[data-scheme='${$scheme}'][data-tone='${$tone}'] {
1607
- // /* --input-fg-color: ${color.input.default.enabled.fg}; */
1608
- // /* --input-placeholder-color: ${color.input.default.enabled.placeholder}; */
1609
- // /* enabled */
1610
- // &:not(:invalid):not(:disabled):not(:read-only) {
1611
- // /* --input-fg-color: ${color.input.default.enabled.fg}; */
1612
- // /* --input-placeholder-color: ${color.input.default.enabled.placeholder}; */
1613
- // }
1614
- // /* disabled */
1615
- // &:not(:invalid):disabled {
1616
- // /* --input-fg-color: ${color.input.default.disabled.fg}; */
1617
- // /* --input-placeholder-color: ${color.input.default.disabled.placeholder}; */
1618
- // }
1619
- // /* invalid */
1620
- // &:invalid {
1621
- // /* --input-fg-color: ${color.input.invalid.enabled.fg}; */
1622
- // /* --input-placeholder-color: ${color.input.invalid.enabled.placeholder}; */
1623
- // }
1624
- // /* readOnly */
1625
- // &:read-only {
1626
- // /* --input-fg-color: ${color.input.default.readOnly.fg}; */
1627
- // /* --input-placeholder-color: ${color.input.default.readOnly.placeholder}; */
1628
- // }
1629
- // }
1630
- }
1865
+ // NOTE: This is a hack to disable Chrome’s autofill styles
1866
+ "&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active": {
1867
+ WebkitTextFillColor: "var(--input-fg-color) !important",
1868
+ transition: "background-color 5000s",
1869
+ transitionDelay: "86400s"
1870
+ // 24h
1871
+ },
1872
+ /* &:is(textarea) */
1873
+ // '&[data-as="textarea"]': {
1874
+ // resize: 'none',
1875
+ // },
1876
+ "&::placeholder": {
1877
+ color: "var(--input-placeholder-color)"
1631
1878
  }
1879
+ // &[data-scheme='${$scheme}'][data-tone='${$tone}'] {
1880
+ // /* --input-fg-color: ${color.input.default.enabled.fg}; */
1881
+ // /* --input-placeholder-color: ${color.input.default.enabled.placeholder}; */
1882
+ // /* enabled */
1883
+ // &:not(:invalid):not(:disabled):not(:read-only) {
1884
+ // /* --input-fg-color: ${color.input.default.enabled.fg}; */
1885
+ // /* --input-placeholder-color: ${color.input.default.enabled.placeholder}; */
1886
+ // }
1887
+ // /* disabled */
1888
+ // &:not(:invalid):disabled {
1889
+ // /* --input-fg-color: ${color.input.default.disabled.fg}; */
1890
+ // /* --input-placeholder-color: ${color.input.default.disabled.placeholder}; */
1891
+ // }
1892
+ // /* invalid */
1893
+ // &:invalid {
1894
+ // /* --input-fg-color: ${color.input.invalid.enabled.fg}; */
1895
+ // /* --input-placeholder-color: ${color.input.invalid.enabled.placeholder}; */
1896
+ // }
1897
+ // /* readOnly */
1898
+ // &:read-only {
1899
+ // /* --input-fg-color: ${color.input.default.readOnly.fg}; */
1900
+ // /* --input-placeholder-color: ${color.input.default.readOnly.placeholder}; */
1901
+ // }
1902
+ // }
1632
1903
  }
1633
1904
  },
1634
1905
  "text-input-prefix": {
@@ -1642,8 +1913,8 @@ const badgeRules = {
1642
1913
  }
1643
1914
  },
1644
1915
  "text-input-suffix": {
1645
- borderTopRightRadius: 0,
1646
- borderBottomRightRadius: 0,
1916
+ borderTopLeftRadius: 0,
1917
+ borderBottomLeftRadius: 0,
1647
1918
  "@nest": {
1648
1919
  "& > span": {
1649
1920
  display: "block",
@@ -1652,7 +1923,7 @@ const badgeRules = {
1652
1923
  }
1653
1924
  },
1654
1925
  "text-input-presentation": {
1655
- "--input-box-shadow": "none",
1926
+ "--input-box-shadow": "inset 0 0 0 1px var(--input-border-color)",
1656
1927
  position: "absolute",
1657
1928
  top: 0,
1658
1929
  left: 0,
@@ -1661,8 +1932,9 @@ const badgeRules = {
1661
1932
  display: "block",
1662
1933
  pointerEvents: "none",
1663
1934
  zIndex: 0,
1664
- backgroundColor: "var(--card-bg-color)",
1665
- boxShadow: "var(--input-box-shadow)"
1935
+ backgroundColor: "var(--input-bg-color)",
1936
+ boxShadow: "var(--input-box-shadow)",
1937
+ "--input-border-color": "var(--color-input-default-enabled-border)"
1666
1938
  // border-top-left-radius: ${$hasPrefix ? 0 : undefined};
1667
1939
  // border-bottom-left-radius: ${$hasPrefix ? 0 : undefined};
1668
1940
  // border-top-right-radius: ${$hasSuffix ? 0 : undefined};
@@ -1764,42 +2036,114 @@ const badgeRules = {
1764
2036
  }, tokenRules = {
1765
2037
  token: {
1766
2038
  "@nest": {
1767
- "&.atrule": { color: vars.color.syntax.atrule },
1768
- "&.attr-name": { color: vars.color.syntax.attrName },
1769
- "&.attr-value": { color: vars.color.syntax.attrValue },
1770
- "&.attribute": { color: vars.color.syntax.attribute },
1771
- "&.boolean": { color: vars.color.syntax.boolean },
1772
- "&.builtin": { color: vars.color.syntax.builtin },
1773
- "&.cdata": { color: vars.color.syntax.cdata },
1774
- "&.char": { color: vars.color.syntax.char },
1775
- "&.class": { color: vars.color.syntax.class },
1776
- "&.class-name": { color: vars.color.syntax.className },
1777
- "&.comment": { color: vars.color.syntax.comment },
1778
- "&.constant": { color: vars.color.syntax.constant },
1779
- "&.deleted": { color: vars.color.syntax.deleted },
1780
- "&.doctype": { color: vars.color.syntax.doctype },
1781
- "&.entity": { color: vars.color.syntax.entity },
1782
- "&.function": { color: vars.color.syntax.function },
1783
- "&.hexcode": { color: vars.color.syntax.hexcode },
1784
- "&.id": { color: vars.color.syntax.id },
1785
- "&.important": { color: vars.color.syntax.important },
1786
- "&.inserted": { color: vars.color.syntax.inserted },
1787
- "&.keyword": { color: vars.color.syntax.keyword },
1788
- "&.number": { color: vars.color.syntax.number },
1789
- "&.operator": { color: vars.color.syntax.operator },
1790
- "&.prolog": { color: vars.color.syntax.prolog },
1791
- "&.property": { color: vars.color.syntax.property },
1792
- "&.pseudo-class": { color: vars.color.syntax.pseudoClass },
1793
- "&.pseudo-element": { color: vars.color.syntax.pseudoElement },
1794
- "&.punctuation": { color: vars.color.syntax.punctuation },
1795
- "&.regex": { color: vars.color.syntax.regex },
1796
- "&.selector": { color: vars.color.syntax.selector },
1797
- "&.string": { color: vars.color.syntax.string },
1798
- "&.symbol": { color: vars.color.syntax.symbol },
1799
- "&.tag": { color: vars.color.syntax.tag },
1800
- "&.unit": { color: vars.color.syntax.unit },
1801
- "&.url": { color: vars.color.syntax.url },
1802
- "&.variable": { color: vars.color.syntax.variable }
2039
+ "&.atrule": {
2040
+ color: vars.color.syntax.atrule
2041
+ },
2042
+ "&.attr-name": {
2043
+ color: vars.color.syntax.attrName
2044
+ },
2045
+ "&.attr-value": {
2046
+ color: vars.color.syntax.attrValue
2047
+ },
2048
+ "&.attribute": {
2049
+ color: vars.color.syntax.attribute
2050
+ },
2051
+ "&.boolean": {
2052
+ color: vars.color.syntax.boolean
2053
+ },
2054
+ "&.builtin": {
2055
+ color: vars.color.syntax.builtin
2056
+ },
2057
+ "&.cdata": {
2058
+ color: vars.color.syntax.cdata
2059
+ },
2060
+ "&.char": {
2061
+ color: vars.color.syntax.char
2062
+ },
2063
+ "&.class": {
2064
+ color: vars.color.syntax.class
2065
+ },
2066
+ "&.class-name": {
2067
+ color: vars.color.syntax.className
2068
+ },
2069
+ "&.comment": {
2070
+ color: vars.color.syntax.comment
2071
+ },
2072
+ "&.constant": {
2073
+ color: vars.color.syntax.constant
2074
+ },
2075
+ "&.deleted": {
2076
+ color: vars.color.syntax.deleted
2077
+ },
2078
+ "&.doctype": {
2079
+ color: vars.color.syntax.doctype
2080
+ },
2081
+ "&.entity": {
2082
+ color: vars.color.syntax.entity
2083
+ },
2084
+ "&.function": {
2085
+ color: vars.color.syntax.function
2086
+ },
2087
+ "&.hexcode": {
2088
+ color: vars.color.syntax.hexcode
2089
+ },
2090
+ "&.id": {
2091
+ color: vars.color.syntax.id
2092
+ },
2093
+ "&.important": {
2094
+ color: vars.color.syntax.important
2095
+ },
2096
+ "&.inserted": {
2097
+ color: vars.color.syntax.inserted
2098
+ },
2099
+ "&.keyword": {
2100
+ color: vars.color.syntax.keyword
2101
+ },
2102
+ "&.number": {
2103
+ color: vars.color.syntax.number
2104
+ },
2105
+ "&.operator": {
2106
+ color: vars.color.syntax.operator
2107
+ },
2108
+ "&.prolog": {
2109
+ color: vars.color.syntax.prolog
2110
+ },
2111
+ "&.property": {
2112
+ color: vars.color.syntax.property
2113
+ },
2114
+ "&.pseudo-class": {
2115
+ color: vars.color.syntax.pseudoClass
2116
+ },
2117
+ "&.pseudo-element": {
2118
+ color: vars.color.syntax.pseudoElement
2119
+ },
2120
+ "&.punctuation": {
2121
+ color: vars.color.syntax.punctuation
2122
+ },
2123
+ "&.regex": {
2124
+ color: vars.color.syntax.regex
2125
+ },
2126
+ "&.selector": {
2127
+ color: vars.color.syntax.selector
2128
+ },
2129
+ "&.string": {
2130
+ color: vars.color.syntax.string
2131
+ },
2132
+ "&.symbol": {
2133
+ color: vars.color.syntax.symbol
2134
+ },
2135
+ "&.tag": {
2136
+ color: vars.color.syntax.tag
2137
+ },
2138
+ "&.unit": {
2139
+ color: vars.color.syntax.unit
2140
+ },
2141
+ "&.url": {
2142
+ color: vars.color.syntax.url
2143
+ },
2144
+ "&.variable": {
2145
+ color: vars.color.syntax.variable
2146
+ }
1803
2147
  }
1804
2148
  }
1805
2149
  }, tooltipRules = {
@@ -1885,32 +2229,76 @@ const badgeRules = {
1885
2229
  })
1886
2230
  }, flexRules = {
1887
2231
  // direction
1888
- ...responsiveRules("row", { flexDirection: "row" }),
1889
- ...responsiveRules("column", { flexDirection: "column" }),
2232
+ ...responsiveRules("row", {
2233
+ flexDirection: "row"
2234
+ }),
2235
+ ...responsiveRules("column", {
2236
+ flexDirection: "column"
2237
+ }),
1890
2238
  // align
1891
- ...responsiveRules("align-flex-start", { alignItems: "flex-start" }),
1892
- ...responsiveRules("align-flex-end", { alignItems: "end" }),
1893
- ...responsiveRules("align-center", { alignItems: "center" }),
1894
- ...responsiveRules("align-stretch", { alignItems: "stretch" }),
1895
- ...responsiveRules("align-baseline", { alignItems: "baseline" }),
2239
+ ...responsiveRules("align-flex-start", {
2240
+ alignItems: "flex-start"
2241
+ }),
2242
+ ...responsiveRules("align-flex-end", {
2243
+ alignItems: "end"
2244
+ }),
2245
+ ...responsiveRules("align-center", {
2246
+ alignItems: "center"
2247
+ }),
2248
+ ...responsiveRules("align-stretch", {
2249
+ alignItems: "stretch"
2250
+ }),
2251
+ ...responsiveRules("align-baseline", {
2252
+ alignItems: "baseline"
2253
+ }),
1896
2254
  // justify
1897
- ...responsiveRules("justify-flex-start", { justifyContent: "flex-start" }),
1898
- ...responsiveRules("justify-flex-end", { justifyContent: "flex-end" }),
1899
- ...responsiveRules("justify-center", { justifyContent: "center" }),
1900
- ...responsiveRules("justify-between", { justifyContent: "space-between" }),
1901
- ...responsiveRules("justify-around", { justifyContent: "space-around" }),
1902
- ...responsiveRules("justify-evenly", { justifyContent: "space-evenly" }),
2255
+ ...responsiveRules("justify-flex-start", {
2256
+ justifyContent: "flex-start"
2257
+ }),
2258
+ ...responsiveRules("justify-flex-end", {
2259
+ justifyContent: "flex-end"
2260
+ }),
2261
+ ...responsiveRules("justify-center", {
2262
+ justifyContent: "center"
2263
+ }),
2264
+ ...responsiveRules("justify-between", {
2265
+ justifyContent: "space-between"
2266
+ }),
2267
+ ...responsiveRules("justify-around", {
2268
+ justifyContent: "space-around"
2269
+ }),
2270
+ ...responsiveRules("justify-evenly", {
2271
+ justifyContent: "space-evenly"
2272
+ }),
1903
2273
  // wrap
1904
- ...responsiveRules("wrap-nowrap", { flexWrap: "nowrap" }),
1905
- ...responsiveRules("wrap-wrap", { flexWrap: "wrap" }),
1906
- ...responsiveRules("wrap-reverse", { flexWrap: "wrap-reverse" })
2274
+ ...responsiveRules("wrap-nowrap", {
2275
+ flexWrap: "nowrap"
2276
+ }),
2277
+ ...responsiveRules("wrap-wrap", {
2278
+ flexWrap: "wrap"
2279
+ }),
2280
+ ...responsiveRules("wrap-reverse", {
2281
+ flexWrap: "wrap-reverse"
2282
+ })
1907
2283
  }, flexItemRules = {
1908
- ...responsiveRules("flex-none", { flex: "none" }),
1909
- ...responsiveRules("flex-1", { flex: 1 }),
1910
- ...responsiveRules("flex-2", { flex: 2 }),
1911
- ...responsiveRules("flex-3", { flex: 3 }),
1912
- ...responsiveRules("flex-4", { flex: 4 }),
1913
- ...responsiveRules("flex-5", { flex: 5 })
2284
+ ...responsiveRules("flex-none", {
2285
+ flex: "none"
2286
+ }),
2287
+ ...responsiveRules("flex-1", {
2288
+ flex: 1
2289
+ }),
2290
+ ...responsiveRules("flex-2", {
2291
+ flex: 2
2292
+ }),
2293
+ ...responsiveRules("flex-3", {
2294
+ flex: 3
2295
+ }),
2296
+ ...responsiveRules("flex-4", {
2297
+ flex: 4
2298
+ }),
2299
+ ...responsiveRules("flex-5", {
2300
+ flex: 5
2301
+ })
1914
2302
  }, fontRules = {
1915
2303
  font: {
1916
2304
  position: "relative",
@@ -1966,172 +2354,451 @@ const badgeRules = {
1966
2354
  },
1967
2355
  "font-bold": {
1968
2356
  "--font-weight": "var(--font-weight-bold)"
1969
- }
2357
+ },
2358
+ // align
2359
+ ...responsiveRules("text-align-initial", {
2360
+ textAlign: "initial"
2361
+ }),
2362
+ ...responsiveRules("text-align-left", {
2363
+ textAlign: "left"
2364
+ }),
2365
+ ...responsiveRules("text-align-center", {
2366
+ textAlign: "center"
2367
+ }),
2368
+ ...responsiveRules("text-align-right", {
2369
+ textAlign: "right"
2370
+ }),
2371
+ ...responsiveRules("text-align-justify", {
2372
+ textAlign: "justify"
2373
+ })
1970
2374
  }, gapRules = {
1971
2375
  ...SPACE.reduce((acc, space) => ({
1972
2376
  ...acc,
1973
- ...responsiveRules(`g-${space}`, {
1974
- gap: space === 0.5 ? "calc(var(--space-1) / 2)" : vars.space[space]
2377
+ ...responsiveRules(`g-${space}`.replace(".", "_"), {
2378
+ gap: vars.space[space]
1975
2379
  })
1976
2380
  }), {}),
1977
2381
  ...SPACE.reduce((acc, space) => ({
1978
2382
  ...acc,
1979
- ...responsiveRules(`gx-${space}`, {
1980
- columnGap: space === 0.5 ? "calc(var(--space-1) / 2)" : vars.space[space]
2383
+ ...responsiveRules(`gx-${space}`.replace(".", "_"), {
2384
+ columnGap: vars.space[space]
1981
2385
  })
1982
2386
  }), {}),
1983
2387
  ...SPACE.reduce((acc, space) => ({
1984
2388
  ...acc,
1985
- ...responsiveRules(`gy-${space}`, {
1986
- rowGap: space === 0.5 ? "calc(var(--space-1) / 2)" : vars.space[space]
2389
+ ...responsiveRules(`gy-${space}`.replace(".", "_"), {
2390
+ rowGap: vars.space[space]
1987
2391
  })
1988
2392
  }), {})
1989
2393
  }, gridRules = {
1990
2394
  // autoCols
1991
- ...responsiveRules("auto-cols-auto", { gridAutoColumns: "auto" }),
1992
- ...responsiveRules("auto-cols-min", { gridAutoColumns: "min" }),
1993
- ...responsiveRules("auto-cols-max", { gridAutoColumns: "max" }),
1994
- ...responsiveRules("auto-cols-fr", { gridAutoColumns: "fr" }),
2395
+ ...responsiveRules("auto-cols-auto", {
2396
+ gridAutoColumns: "auto"
2397
+ }),
2398
+ ...responsiveRules("auto-cols-min", {
2399
+ gridAutoColumns: "min"
2400
+ }),
2401
+ ...responsiveRules("auto-cols-max", {
2402
+ gridAutoColumns: "max"
2403
+ }),
2404
+ ...responsiveRules("auto-cols-fr", {
2405
+ gridAutoColumns: "fr"
2406
+ }),
1995
2407
  // autoFlow
1996
- ...responsiveRules("auto-flow-row", { gridAutoFlow: "row" }),
1997
- ...responsiveRules("auto-flow-column", { gridAutoFlow: "column" }),
1998
- ...responsiveRules("auto-flow-row-dense", { gridAutoFlow: "row dense" }),
1999
- ...responsiveRules("auto-flow-column-dense", { gridAutoFlow: "column dense" }),
2408
+ ...responsiveRules("auto-flow-row", {
2409
+ gridAutoFlow: "row"
2410
+ }),
2411
+ ...responsiveRules("auto-flow-column", {
2412
+ gridAutoFlow: "column"
2413
+ }),
2414
+ ...responsiveRules("auto-flow-row-dense", {
2415
+ gridAutoFlow: "row dense"
2416
+ }),
2417
+ ...responsiveRules("auto-flow-column-dense", {
2418
+ gridAutoFlow: "column dense"
2419
+ }),
2000
2420
  // autoRows
2001
- ...responsiveRules("auto-rows-auto", { gridAutoRows: "auto" }),
2002
- ...responsiveRules("auto-rows-min", { gridAutoRows: "min-content" }),
2003
- ...responsiveRules("auto-rows-max", { gridAutoRows: "max-content" }),
2004
- // ...responsiveRules('auto-rows-fr', {gridAutoRows: 'fr'}),
2421
+ ...responsiveRules("auto-rows-auto", {
2422
+ gridAutoRows: "auto"
2423
+ }),
2424
+ ...responsiveRules("auto-rows-min", {
2425
+ gridAutoRows: "min-content"
2426
+ }),
2427
+ ...responsiveRules("auto-rows-max", {
2428
+ gridAutoRows: "max-content"
2429
+ }),
2430
+ ...responsiveRules("auto-rows-fr", {
2431
+ gridAutoRows: "minmax(0, 1fr)"
2432
+ }),
2005
2433
  // columns
2006
- ...responsiveRules("columns-1", { gridTemplateColumns: "repeat(1, 1fr)" }),
2007
- ...responsiveRules("columns-2", { gridTemplateColumns: "repeat(2, 1fr)" }),
2008
- ...responsiveRules("columns-3", { gridTemplateColumns: "repeat(3, 1fr)" }),
2009
- ...responsiveRules("columns-4", { gridTemplateColumns: "repeat(4, 1fr)" }),
2010
- ...responsiveRules("columns-5", { gridTemplateColumns: "repeat(5, 1fr)" }),
2011
- ...responsiveRules("columns-6", { gridTemplateColumns: "repeat(6, 1fr)" }),
2012
- ...responsiveRules("columns-7", { gridTemplateColumns: "repeat(7, 1fr)" }),
2013
- ...responsiveRules("columns-8", { gridTemplateColumns: "repeat(8, 1fr)" }),
2014
- ...responsiveRules("columns-9", { gridTemplateColumns: "repeat(9, 1fr)" }),
2015
- ...responsiveRules("columns-10", { gridTemplateColumns: "repeat(10, 1fr)" }),
2016
- ...responsiveRules("columns-12", { gridTemplateColumns: "repeat(12, 1fr)" })
2434
+ ...responsiveRules("columns-1", {
2435
+ gridTemplateColumns: "repeat(1, 1fr)"
2436
+ }),
2437
+ ...responsiveRules("columns-2", {
2438
+ gridTemplateColumns: "repeat(2, 1fr)"
2439
+ }),
2440
+ ...responsiveRules("columns-3", {
2441
+ gridTemplateColumns: "repeat(3, 1fr)"
2442
+ }),
2443
+ ...responsiveRules("columns-4", {
2444
+ gridTemplateColumns: "repeat(4, 1fr)"
2445
+ }),
2446
+ ...responsiveRules("columns-5", {
2447
+ gridTemplateColumns: "repeat(5, 1fr)"
2448
+ }),
2449
+ ...responsiveRules("columns-6", {
2450
+ gridTemplateColumns: "repeat(6, 1fr)"
2451
+ }),
2452
+ ...responsiveRules("columns-7", {
2453
+ gridTemplateColumns: "repeat(7, 1fr)"
2454
+ }),
2455
+ ...responsiveRules("columns-8", {
2456
+ gridTemplateColumns: "repeat(8, 1fr)"
2457
+ }),
2458
+ ...responsiveRules("columns-9", {
2459
+ gridTemplateColumns: "repeat(9, 1fr)"
2460
+ }),
2461
+ ...responsiveRules("columns-10", {
2462
+ gridTemplateColumns: "repeat(10, 1fr)"
2463
+ }),
2464
+ ...responsiveRules("columns-12", {
2465
+ gridTemplateColumns: "repeat(12, 1fr)"
2466
+ }),
2467
+ // rows
2468
+ ...responsiveRules("rows-1", {
2469
+ gridTemplateRows: "repeat(1, 1fr)"
2470
+ }),
2471
+ ...responsiveRules("rows-2", {
2472
+ gridTemplateRows: "repeat(2, 1fr)"
2473
+ }),
2474
+ ...responsiveRules("rows-3", {
2475
+ gridTemplateRows: "repeat(3, 1fr)"
2476
+ }),
2477
+ ...responsiveRules("rows-4", {
2478
+ gridTemplateRows: "repeat(4, 1fr)"
2479
+ }),
2480
+ ...responsiveRules("rows-5", {
2481
+ gridTemplateRows: "repeat(5, 1fr)"
2482
+ }),
2483
+ ...responsiveRules("rows-6", {
2484
+ gridTemplateRows: "repeat(6, 1fr)"
2485
+ }),
2486
+ ...responsiveRules("rows-7", {
2487
+ gridTemplateRows: "repeat(7, 1fr)"
2488
+ }),
2489
+ ...responsiveRules("rows-8", {
2490
+ gridTemplateRows: "repeat(8, 1fr)"
2491
+ }),
2492
+ ...responsiveRules("rows-9", {
2493
+ gridTemplateRows: "repeat(9, 1fr)"
2494
+ }),
2495
+ ...responsiveRules("rows-10", {
2496
+ gridTemplateRows: "repeat(10, 1fr)"
2497
+ }),
2498
+ ...responsiveRules("rows-12", {
2499
+ gridTemplateRows: "repeat(12, 1fr)"
2500
+ })
2017
2501
  }, gridItemRules = {
2018
2502
  // column
2019
- ...responsiveRules("col-auto", { gridColumn: "span 1 / span 1" }),
2020
- ...responsiveRules("col-full", { gridColumn: "1 / -1" }),
2021
- ...responsiveRules("col-1", { gridColumn: "span 1 / span 1" }),
2022
- ...responsiveRules("col-2", { gridColumn: "span 2 / span 2" }),
2023
- ...responsiveRules("col-3", { gridColumn: "span 3 / span 3" }),
2024
- ...responsiveRules("col-4", { gridColumn: "span 4 / span 4" }),
2025
- ...responsiveRules("col-5", { gridColumn: "span 5 / span 5" }),
2026
- ...responsiveRules("col-6", { gridColumn: "span 6 / span 6" }),
2027
- ...responsiveRules("col-7", { gridColumn: "span 7 / span 7" }),
2028
- ...responsiveRules("col-8", { gridColumn: "span 8 / span 8" }),
2029
- ...responsiveRules("col-9", { gridColumn: "span 9 / span 9" }),
2030
- ...responsiveRules("col-10", { gridColumn: "span 10 / span 10" }),
2031
- ...responsiveRules("col-11", { gridColumn: "span 11 / span 11" }),
2032
- ...responsiveRules("col-12", { gridColumn: "span 12 / span 12" }),
2503
+ ...responsiveRules("col-auto", {
2504
+ gridColumn: "span 1 / span 1"
2505
+ }),
2506
+ ...responsiveRules("col-full", {
2507
+ gridColumn: "1 / -1"
2508
+ }),
2509
+ ...responsiveRules("col-1", {
2510
+ gridColumn: "span 1 / span 1"
2511
+ }),
2512
+ ...responsiveRules("col-2", {
2513
+ gridColumn: "span 2 / span 2"
2514
+ }),
2515
+ ...responsiveRules("col-3", {
2516
+ gridColumn: "span 3 / span 3"
2517
+ }),
2518
+ ...responsiveRules("col-4", {
2519
+ gridColumn: "span 4 / span 4"
2520
+ }),
2521
+ ...responsiveRules("col-5", {
2522
+ gridColumn: "span 5 / span 5"
2523
+ }),
2524
+ ...responsiveRules("col-6", {
2525
+ gridColumn: "span 6 / span 6"
2526
+ }),
2527
+ ...responsiveRules("col-7", {
2528
+ gridColumn: "span 7 / span 7"
2529
+ }),
2530
+ ...responsiveRules("col-8", {
2531
+ gridColumn: "span 8 / span 8"
2532
+ }),
2533
+ ...responsiveRules("col-9", {
2534
+ gridColumn: "span 9 / span 9"
2535
+ }),
2536
+ ...responsiveRules("col-10", {
2537
+ gridColumn: "span 10 / span 10"
2538
+ }),
2539
+ ...responsiveRules("col-11", {
2540
+ gridColumn: "span 11 / span 11"
2541
+ }),
2542
+ ...responsiveRules("col-12", {
2543
+ gridColumn: "span 12 / span 12"
2544
+ }),
2033
2545
  // columnStart
2034
- ...responsiveRules("col-start-auto", { gridColumnStart: "auto" }),
2035
- ...responsiveRules("col-start-1", { gridColumnStart: "1" }),
2036
- ...responsiveRules("col-start-2", { gridColumnStart: "2" }),
2037
- ...responsiveRules("col-start-3", { gridColumnStart: "3" }),
2038
- ...responsiveRules("col-start-4", { gridColumnStart: "4" }),
2039
- ...responsiveRules("col-start-5", { gridColumnStart: "5" }),
2040
- ...responsiveRules("col-start-6", { gridColumnStart: "6" }),
2041
- ...responsiveRules("col-start-7", { gridColumnStart: "7" }),
2042
- ...responsiveRules("col-start-8", { gridColumnStart: "8" }),
2043
- ...responsiveRules("col-start-9", { gridColumnStart: "9" }),
2044
- ...responsiveRules("col-start-10", { gridColumnStart: "10" }),
2045
- ...responsiveRules("col-start-11", { gridColumnStart: "11" }),
2046
- ...responsiveRules("col-start-12", { gridColumnStart: "12" }),
2546
+ ...responsiveRules("col-start-auto", {
2547
+ gridColumnStart: "auto"
2548
+ }),
2549
+ ...responsiveRules("col-start-1", {
2550
+ gridColumnStart: "1"
2551
+ }),
2552
+ ...responsiveRules("col-start-2", {
2553
+ gridColumnStart: "2"
2554
+ }),
2555
+ ...responsiveRules("col-start-3", {
2556
+ gridColumnStart: "3"
2557
+ }),
2558
+ ...responsiveRules("col-start-4", {
2559
+ gridColumnStart: "4"
2560
+ }),
2561
+ ...responsiveRules("col-start-5", {
2562
+ gridColumnStart: "5"
2563
+ }),
2564
+ ...responsiveRules("col-start-6", {
2565
+ gridColumnStart: "6"
2566
+ }),
2567
+ ...responsiveRules("col-start-7", {
2568
+ gridColumnStart: "7"
2569
+ }),
2570
+ ...responsiveRules("col-start-8", {
2571
+ gridColumnStart: "8"
2572
+ }),
2573
+ ...responsiveRules("col-start-9", {
2574
+ gridColumnStart: "9"
2575
+ }),
2576
+ ...responsiveRules("col-start-10", {
2577
+ gridColumnStart: "10"
2578
+ }),
2579
+ ...responsiveRules("col-start-11", {
2580
+ gridColumnStart: "11"
2581
+ }),
2582
+ ...responsiveRules("col-start-12", {
2583
+ gridColumnStart: "12"
2584
+ }),
2047
2585
  // columnEnd
2048
- ...responsiveRules("col-end-auto", { gridColumnEnd: "auto" }),
2049
- ...responsiveRules("col-end-1", { gridColumnEnd: "1" }),
2050
- ...responsiveRules("col-end-2", { gridColumnEnd: "2" }),
2051
- ...responsiveRules("col-end-3", { gridColumnEnd: "3" }),
2052
- ...responsiveRules("col-end-4", { gridColumnEnd: "4" }),
2053
- ...responsiveRules("col-end-5", { gridColumnEnd: "5" }),
2054
- ...responsiveRules("col-end-6", { gridColumnEnd: "6" }),
2055
- ...responsiveRules("col-end-7", { gridColumnEnd: "7" }),
2056
- ...responsiveRules("col-end-8", { gridColumnEnd: "8" }),
2057
- ...responsiveRules("col-end-9", { gridColumnEnd: "9" }),
2058
- ...responsiveRules("col-end-10", { gridColumnEnd: "10" }),
2059
- ...responsiveRules("col-end-11", { gridColumnEnd: "11" }),
2060
- ...responsiveRules("col-end-12", { gridColumnEnd: "12" }),
2586
+ ...responsiveRules("col-end-auto", {
2587
+ gridColumnEnd: "auto"
2588
+ }),
2589
+ ...responsiveRules("col-end-1", {
2590
+ gridColumnEnd: "1"
2591
+ }),
2592
+ ...responsiveRules("col-end-2", {
2593
+ gridColumnEnd: "2"
2594
+ }),
2595
+ ...responsiveRules("col-end-3", {
2596
+ gridColumnEnd: "3"
2597
+ }),
2598
+ ...responsiveRules("col-end-4", {
2599
+ gridColumnEnd: "4"
2600
+ }),
2601
+ ...responsiveRules("col-end-5", {
2602
+ gridColumnEnd: "5"
2603
+ }),
2604
+ ...responsiveRules("col-end-6", {
2605
+ gridColumnEnd: "6"
2606
+ }),
2607
+ ...responsiveRules("col-end-7", {
2608
+ gridColumnEnd: "7"
2609
+ }),
2610
+ ...responsiveRules("col-end-8", {
2611
+ gridColumnEnd: "8"
2612
+ }),
2613
+ ...responsiveRules("col-end-9", {
2614
+ gridColumnEnd: "9"
2615
+ }),
2616
+ ...responsiveRules("col-end-10", {
2617
+ gridColumnEnd: "10"
2618
+ }),
2619
+ ...responsiveRules("col-end-11", {
2620
+ gridColumnEnd: "11"
2621
+ }),
2622
+ ...responsiveRules("col-end-12", {
2623
+ gridColumnEnd: "12"
2624
+ }),
2061
2625
  // row
2062
- ...responsiveRules("row-auto", { gridRow: "span 1 / span 1" }),
2063
- ...responsiveRules("row-full", { gridRow: "1 / -1" }),
2064
- ...responsiveRules("row-1", { gridRow: "span 1 / span 1" }),
2065
- ...responsiveRules("row-2", { gridRow: "span 2 / span 2" }),
2066
- ...responsiveRules("row-3", { gridRow: "span 3 / span 3" }),
2067
- ...responsiveRules("row-4", { gridRow: "span 4 / span 4" }),
2068
- ...responsiveRules("row-5", { gridRow: "span 5 / span 5" }),
2069
- ...responsiveRules("row-6", { gridRow: "span 6 / span 6" }),
2070
- ...responsiveRules("row-7", { gridRow: "span 7 / span 7" }),
2071
- ...responsiveRules("row-8", { gridRow: "span 8 / span 8" }),
2072
- ...responsiveRules("row-9", { gridRow: "span 9 / span 9" }),
2073
- ...responsiveRules("row-10", { gridRow: "span 10 / span 10" }),
2074
- ...responsiveRules("row-11", { gridRow: "span 11 / span 11" }),
2075
- ...responsiveRules("row-12", { gridRow: "span 12 / span 12" }),
2626
+ ...responsiveRules("row-auto", {
2627
+ gridRow: "span 1 / span 1"
2628
+ }),
2629
+ ...responsiveRules("row-full", {
2630
+ gridRow: "1 / -1"
2631
+ }),
2632
+ ...responsiveRules("row-1", {
2633
+ gridRow: "span 1 / span 1"
2634
+ }),
2635
+ ...responsiveRules("row-2", {
2636
+ gridRow: "span 2 / span 2"
2637
+ }),
2638
+ ...responsiveRules("row-3", {
2639
+ gridRow: "span 3 / span 3"
2640
+ }),
2641
+ ...responsiveRules("row-4", {
2642
+ gridRow: "span 4 / span 4"
2643
+ }),
2644
+ ...responsiveRules("row-5", {
2645
+ gridRow: "span 5 / span 5"
2646
+ }),
2647
+ ...responsiveRules("row-6", {
2648
+ gridRow: "span 6 / span 6"
2649
+ }),
2650
+ ...responsiveRules("row-7", {
2651
+ gridRow: "span 7 / span 7"
2652
+ }),
2653
+ ...responsiveRules("row-8", {
2654
+ gridRow: "span 8 / span 8"
2655
+ }),
2656
+ ...responsiveRules("row-9", {
2657
+ gridRow: "span 9 / span 9"
2658
+ }),
2659
+ ...responsiveRules("row-10", {
2660
+ gridRow: "span 10 / span 10"
2661
+ }),
2662
+ ...responsiveRules("row-11", {
2663
+ gridRow: "span 11 / span 11"
2664
+ }),
2665
+ ...responsiveRules("row-12", {
2666
+ gridRow: "span 12 / span 12"
2667
+ }),
2076
2668
  // rowStart
2077
- ...responsiveRules("row-start-auto", { gridRowStart: "auto" }),
2078
- ...responsiveRules("row-start-1", { gridRowStart: "1" }),
2079
- ...responsiveRules("row-start-2", { gridRowStart: "2" }),
2080
- ...responsiveRules("row-start-3", { gridRowStart: "3" }),
2081
- ...responsiveRules("row-start-4", { gridRowStart: "4" }),
2082
- ...responsiveRules("row-start-5", { gridRowStart: "5" }),
2083
- ...responsiveRules("row-start-6", { gridRowStart: "6" }),
2084
- ...responsiveRules("row-start-7", { gridRowStart: "7" }),
2085
- ...responsiveRules("row-start-8", { gridRowStart: "8" }),
2086
- ...responsiveRules("row-start-9", { gridRowStart: "9" }),
2087
- ...responsiveRules("row-start-10", { gridRowStart: "10" }),
2088
- ...responsiveRules("row-start-11", { gridRowStart: "11" }),
2089
- ...responsiveRules("row-start-12", { gridRowStart: "12" }),
2669
+ ...responsiveRules("row-start-auto", {
2670
+ gridRowStart: "auto"
2671
+ }),
2672
+ ...responsiveRules("row-start-1", {
2673
+ gridRowStart: "1"
2674
+ }),
2675
+ ...responsiveRules("row-start-2", {
2676
+ gridRowStart: "2"
2677
+ }),
2678
+ ...responsiveRules("row-start-3", {
2679
+ gridRowStart: "3"
2680
+ }),
2681
+ ...responsiveRules("row-start-4", {
2682
+ gridRowStart: "4"
2683
+ }),
2684
+ ...responsiveRules("row-start-5", {
2685
+ gridRowStart: "5"
2686
+ }),
2687
+ ...responsiveRules("row-start-6", {
2688
+ gridRowStart: "6"
2689
+ }),
2690
+ ...responsiveRules("row-start-7", {
2691
+ gridRowStart: "7"
2692
+ }),
2693
+ ...responsiveRules("row-start-8", {
2694
+ gridRowStart: "8"
2695
+ }),
2696
+ ...responsiveRules("row-start-9", {
2697
+ gridRowStart: "9"
2698
+ }),
2699
+ ...responsiveRules("row-start-10", {
2700
+ gridRowStart: "10"
2701
+ }),
2702
+ ...responsiveRules("row-start-11", {
2703
+ gridRowStart: "11"
2704
+ }),
2705
+ ...responsiveRules("row-start-12", {
2706
+ gridRowStart: "12"
2707
+ }),
2090
2708
  // rowEnd
2091
- ...responsiveRules("row-end-auto", { gridRowEnd: "auto" }),
2092
- ...responsiveRules("row-end-1", { gridRowEnd: "1" }),
2093
- ...responsiveRules("row-end-2", { gridRowEnd: "2" }),
2094
- ...responsiveRules("row-end-3", { gridRowEnd: "3" }),
2095
- ...responsiveRules("row-end-4", { gridRowEnd: "4" }),
2096
- ...responsiveRules("row-end-5", { gridRowEnd: "5" }),
2097
- ...responsiveRules("row-end-6", { gridRowEnd: "6" }),
2098
- ...responsiveRules("row-end-7", { gridRowEnd: "7" }),
2099
- ...responsiveRules("row-end-8", { gridRowEnd: "8" }),
2100
- ...responsiveRules("row-end-9", { gridRowEnd: "9" }),
2101
- ...responsiveRules("row-end-10", { gridRowEnd: "10" }),
2102
- ...responsiveRules("row-end-11", { gridRowEnd: "11" }),
2103
- ...responsiveRules("row-end-12", { gridRowEnd: "12" })
2104
- }, heightRules = {
2105
- ...responsiveRules("h-fill", { height: "100%" }),
2106
- ...responsiveRules("h-stretch", { height: "stretch" })
2107
- }, marginRules = SPACE.reduce((acc, space) => ({
2108
- ...acc,
2109
- ...responsiveRules(`m-${space}`, { margin: vars.space[space] })
2110
- }), {}), marginXRules = SPACE.reduce((acc, space) => ({
2111
- ...acc,
2112
- ...responsiveRules(`mx-${space}`, {
2113
- marginLeft: vars.space[space],
2114
- marginRight: vars.space[space]
2709
+ ...responsiveRules("row-end-auto", {
2710
+ gridRowEnd: "auto"
2711
+ }),
2712
+ ...responsiveRules("row-end-1", {
2713
+ gridRowEnd: "1"
2714
+ }),
2715
+ ...responsiveRules("row-end-2", {
2716
+ gridRowEnd: "2"
2717
+ }),
2718
+ ...responsiveRules("row-end-3", {
2719
+ gridRowEnd: "3"
2720
+ }),
2721
+ ...responsiveRules("row-end-4", {
2722
+ gridRowEnd: "4"
2723
+ }),
2724
+ ...responsiveRules("row-end-5", {
2725
+ gridRowEnd: "5"
2726
+ }),
2727
+ ...responsiveRules("row-end-6", {
2728
+ gridRowEnd: "6"
2729
+ }),
2730
+ ...responsiveRules("row-end-7", {
2731
+ gridRowEnd: "7"
2732
+ }),
2733
+ ...responsiveRules("row-end-8", {
2734
+ gridRowEnd: "8"
2735
+ }),
2736
+ ...responsiveRules("row-end-9", {
2737
+ gridRowEnd: "9"
2738
+ }),
2739
+ ...responsiveRules("row-end-10", {
2740
+ gridRowEnd: "10"
2741
+ }),
2742
+ ...responsiveRules("row-end-11", {
2743
+ gridRowEnd: "11"
2744
+ }),
2745
+ ...responsiveRules("row-end-12", {
2746
+ gridRowEnd: "12"
2115
2747
  })
2116
- }), {}), marginYRules = SPACE.reduce((acc, space) => ({
2117
- ...acc,
2118
- ...responsiveRules(`my-${space}`, {
2119
- marginTop: vars.space[space],
2120
- marginBottom: vars.space[space]
2748
+ }, heightRules = {
2749
+ ...responsiveRules("h-fill", {
2750
+ height: "100%"
2751
+ }),
2752
+ ...responsiveRules("h-stretch", {
2753
+ height: "stretch"
2121
2754
  })
2122
- }), {}), marginTopRules = SPACE.reduce((acc, space) => ({
2123
- ...acc,
2124
- ...responsiveRules(`mt-${space}`, { marginTop: vars.space[space] })
2125
- }), {}), marginRightRules = SPACE.reduce((acc, space) => ({
2126
- ...acc,
2127
- ...responsiveRules(`mr-${space}`, { marginRight: vars.space[space] })
2128
- }), {}), marginBottomRules = SPACE.reduce((acc, space) => ({
2129
- ...acc,
2130
- ...responsiveRules(`mb-${space}`, { marginBottom: vars.space[space] })
2131
- }), {}), marginLeftRules = SPACE.reduce((acc, space) => ({
2132
- ...acc,
2133
- ...responsiveRules(`ml-${space}`, { marginLeft: vars.space[space] })
2134
- }), {}), maxWidthRules = {
2755
+ }, marginRules = {
2756
+ // NOTE: order matters
2757
+ ...SPACE.reduce((acc, space) => ({
2758
+ ...acc,
2759
+ ...responsiveRules(`m-${space}`.replace(".", "_"), {
2760
+ margin: vars.space[space]
2761
+ })
2762
+ }), {}),
2763
+ ...SPACE.reduce((acc, space) => ({
2764
+ ...acc,
2765
+ ...responsiveRules(`mx-${space}`.replace(".", "_"), {
2766
+ marginLeft: vars.space[space],
2767
+ marginRight: vars.space[space]
2768
+ })
2769
+ }), {}),
2770
+ ...SPACE.reduce((acc, space) => ({
2771
+ ...acc,
2772
+ ...responsiveRules(`my-${space}`.replace(".", "_"), {
2773
+ marginTop: vars.space[space],
2774
+ marginBottom: vars.space[space]
2775
+ })
2776
+ }), {}),
2777
+ ...SPACE.reduce((acc, space) => ({
2778
+ ...acc,
2779
+ ...responsiveRules(`mt-${space}`.replace(".", "_"), {
2780
+ marginTop: vars.space[space]
2781
+ })
2782
+ }), {}),
2783
+ ...SPACE.reduce((acc, space) => ({
2784
+ ...acc,
2785
+ ...responsiveRules(`mr-${space}`.replace(".", "_"), {
2786
+ marginRight: vars.space[space]
2787
+ })
2788
+ }), {}),
2789
+ ...SPACE.reduce((acc, space) => ({
2790
+ ...acc,
2791
+ ...responsiveRules(`mb-${space}`.replace(".", "_"), {
2792
+ marginBottom: vars.space[space]
2793
+ })
2794
+ }), {}),
2795
+ ...SPACE.reduce((acc, space) => ({
2796
+ ...acc,
2797
+ ...responsiveRules(`ml-${space}`.replace(".", "_"), {
2798
+ marginLeft: vars.space[space]
2799
+ })
2800
+ }), {})
2801
+ }, maxWidthRules = {
2135
2802
  ...responsiveRules("max-w-0", {
2136
2803
  maxWidth: "var(--container-0)"
2137
2804
  }),
@@ -2156,39 +2823,69 @@ const badgeRules = {
2156
2823
  ...responsiveRules("max-w-fill", {
2157
2824
  maxWidth: "100%"
2158
2825
  })
2826
+ }, outlineRules = {
2827
+ "outline-none": {
2828
+ outline: "none"
2829
+ }
2159
2830
  }, overflowRules = {
2160
- ...responsiveRules("overflow-visible", { overflow: "visible" }),
2161
- ...responsiveRules("overflow-hidden", { overflow: "hidden" }),
2162
- ...responsiveRules("overflow-scroll", { overflow: "scroll" }),
2163
- ...responsiveRules("overflow-auto", { overflow: "auto" })
2164
- }, paddingRules = SPACE.reduce((acc, space) => ({
2165
- ...acc,
2166
- ...responsiveRules(`p-${space}`, { padding: vars.space[space] })
2167
- }), {}), paddingXRules = SPACE.reduce((acc, space) => ({
2168
- ...acc,
2169
- ...responsiveRules(`px-${space}`, {
2170
- paddingLeft: vars.space[space],
2171
- paddingRight: vars.space[space]
2172
- })
2173
- }), {}), paddingYRules = SPACE.reduce((acc, space) => ({
2174
- ...acc,
2175
- ...responsiveRules(`py-${space}`, {
2176
- paddingTop: vars.space[space],
2177
- paddingBottom: vars.space[space]
2831
+ ...responsiveRules("overflow-visible", {
2832
+ overflow: "visible"
2833
+ }),
2834
+ ...responsiveRules("overflow-hidden", {
2835
+ overflow: "hidden"
2836
+ }),
2837
+ ...responsiveRules("overflow-scroll", {
2838
+ overflow: "scroll"
2839
+ }),
2840
+ ...responsiveRules("overflow-auto", {
2841
+ overflow: "auto"
2178
2842
  })
2179
- }), {}), paddingTopRules = SPACE.reduce((acc, space) => ({
2180
- ...acc,
2181
- ...responsiveRules(`pt-${space}`, { paddingTop: vars.space[space] })
2182
- }), {}), paddingRightRules = SPACE.reduce((acc, space) => ({
2183
- ...acc,
2184
- ...responsiveRules(`pr-${space}`, { paddingRight: vars.space[space] })
2185
- }), {}), paddingBottomRules = SPACE.reduce((acc, space) => ({
2186
- ...acc,
2187
- ...responsiveRules(`pb-${space}`, { paddingBottom: vars.space[space] })
2188
- }), {}), paddingLeftRules = SPACE.reduce((acc, space) => ({
2189
- ...acc,
2190
- ...responsiveRules(`pl-${space}`, { paddingLeft: vars.space[space] })
2191
- }), {}), pointerEventsRules = {
2843
+ }, paddingRules = {
2844
+ ...SPACE.reduce((acc, space) => ({
2845
+ ...acc,
2846
+ ...responsiveRules(`p-${space}`.replace(".", "_"), {
2847
+ padding: vars.space[space]
2848
+ })
2849
+ }), {}),
2850
+ ...SPACE.reduce((acc, space) => ({
2851
+ ...acc,
2852
+ ...responsiveRules(`px-${space}`.replace(".", "_"), {
2853
+ paddingLeft: vars.space[space],
2854
+ paddingRight: vars.space[space]
2855
+ })
2856
+ }), {}),
2857
+ ...SPACE.reduce((acc, space) => ({
2858
+ ...acc,
2859
+ ...responsiveRules(`py-${space}`.replace(".", "_"), {
2860
+ paddingTop: vars.space[space],
2861
+ paddingBottom: vars.space[space]
2862
+ })
2863
+ }), {}),
2864
+ ...SPACE.reduce((acc, space) => ({
2865
+ ...acc,
2866
+ ...responsiveRules(`pt-${space}`.replace(".", "_"), {
2867
+ paddingTop: vars.space[space]
2868
+ })
2869
+ }), {}),
2870
+ ...SPACE.reduce((acc, space) => ({
2871
+ ...acc,
2872
+ ...responsiveRules(`pr-${space}`.replace(".", "_"), {
2873
+ paddingRight: vars.space[space]
2874
+ })
2875
+ }), {}),
2876
+ ...SPACE.reduce((acc, space) => ({
2877
+ ...acc,
2878
+ ...responsiveRules(`pb-${space}`.replace(".", "_"), {
2879
+ paddingBottom: vars.space[space]
2880
+ })
2881
+ }), {}),
2882
+ ...SPACE.reduce((acc, space) => ({
2883
+ ...acc,
2884
+ ...responsiveRules(`pl-${space}`.replace(".", "_"), {
2885
+ paddingLeft: vars.space[space]
2886
+ })
2887
+ }), {})
2888
+ }, pointerEventsRules = {
2192
2889
  "pointer-events-none": {
2193
2890
  pointerEvents: "none"
2194
2891
  },
@@ -2218,89 +2915,69 @@ const badgeRules = {
2218
2915
  bottom: 0
2219
2916
  })
2220
2917
  }, radiusRules = {
2221
- ...responsiveRules("r-0", { borderRadius: "var(--radius-0)" }),
2222
- ...responsiveRules("r-1", { borderRadius: "var(--radius-1)" }),
2223
- ...responsiveRules("r-2", { borderRadius: "var(--radius-2)" }),
2224
- ...responsiveRules("r-3", { borderRadius: "var(--radius-3)" }),
2225
- ...responsiveRules("r-4", { borderRadius: "var(--radius-4)" }),
2226
- ...responsiveRules("r-5", { borderRadius: "var(--radius-5)" }),
2227
- ...responsiveRules("r-6", { borderRadius: "var(--radius-6)" }),
2228
- ...responsiveRules("r-round", { borderRadius: "9999px" })
2918
+ ...responsiveRules("r-0", {
2919
+ borderRadius: "var(--radius-0)"
2920
+ }),
2921
+ ...responsiveRules("r-1", {
2922
+ borderRadius: "var(--radius-1)"
2923
+ }),
2924
+ ...responsiveRules("r-2", {
2925
+ borderRadius: "var(--radius-2)"
2926
+ }),
2927
+ ...responsiveRules("r-3", {
2928
+ borderRadius: "var(--radius-3)"
2929
+ }),
2930
+ ...responsiveRules("r-4", {
2931
+ borderRadius: "var(--radius-4)"
2932
+ }),
2933
+ ...responsiveRules("r-5", {
2934
+ borderRadius: "var(--radius-5)"
2935
+ }),
2936
+ ...responsiveRules("r-6", {
2937
+ borderRadius: "var(--radius-6)"
2938
+ }),
2939
+ ...responsiveRules("r-round", {
2940
+ borderRadius: "9999px"
2941
+ })
2229
2942
  }, shadowRules = {
2230
2943
  ...responsiveRules("shadow-0", {
2231
2944
  boxShadow: "none"
2232
2945
  }),
2233
2946
  ...responsiveRules("shadow-1", {
2234
- boxShadow: [
2235
- "var(--card-shadow-outline) var(--color-shadow-outline)",
2236
- "var(--shadow-1-umbra) var(--color-shadow-umbra)",
2237
- "var(--shadow-1-penumbra) var(--color-shadow-penumbra)",
2238
- "var(--shadow-1-ambient) var(--color-shadow-ambient)"
2239
- ].join(", ")
2947
+ boxShadow: ["var(--card-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(", ")
2240
2948
  }),
2241
2949
  ...responsiveRules("shadow-2", {
2242
- boxShadow: [
2243
- "var(--card-shadow-outline) var(--color-shadow-outline)",
2244
- "var(--shadow-2-umbra) var(--color-shadow-umbra)",
2245
- "var(--shadow-2-penumbra) var(--color-shadow-penumbra)",
2246
- "var(--shadow-2-ambient) var(--color-shadow-ambient)"
2247
- ].join(", ")
2950
+ boxShadow: ["var(--card-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(", ")
2248
2951
  }),
2249
2952
  ...responsiveRules("shadow-3", {
2250
- boxShadow: [
2251
- "var(--card-shadow-outline) var(--color-shadow-outline)",
2252
- "var(--shadow-3-umbra) var(--color-shadow-umbra)",
2253
- "var(--shadow-3-penumbra) var(--color-shadow-penumbra)",
2254
- "var(--shadow-3-ambient) var(--color-shadow-ambient)"
2255
- ].join(", ")
2953
+ boxShadow: ["var(--card-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(", ")
2256
2954
  }),
2257
2955
  ...responsiveRules("shadow-4", {
2258
- boxShadow: [
2259
- "var(--card-shadow-outline) var(--color-shadow-outline)",
2260
- "var(--shadow-4-umbra) var(--color-shadow-umbra)",
2261
- "var(--shadow-4-penumbra) var(--color-shadow-penumbra)",
2262
- "var(--shadow-4-ambient) var(--color-shadow-ambient)"
2263
- ].join(", ")
2956
+ boxShadow: ["var(--card-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(", ")
2264
2957
  }),
2265
2958
  ...responsiveRules("shadow-5", {
2266
- boxShadow: [
2267
- "var(--card-shadow-outline) var(--color-shadow-outline)",
2268
- "var(--shadow-5-umbra) var(--color-shadow-umbra)",
2269
- "var(--shadow-5-penumbra) var(--color-shadow-penumbra)",
2270
- "var(--shadow-5-ambient) var(--color-shadow-ambient)"
2271
- ].join(", ")
2959
+ boxShadow: ["var(--card-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(", ")
2272
2960
  })
2273
2961
  }, widthRules = {
2274
2962
  "w-fill": {
2275
2963
  width: ["-moz-available", "-webkit-fill-available", "stretch"]
2276
2964
  }
2277
2965
  }, rules = {
2278
- // styless
2966
+ // styles
2967
+ ...borderRules,
2279
2968
  ...displayRules,
2280
- ...flexRules,
2281
2969
  ...flexItemRules,
2282
- ...gridItemRules,
2283
- ...borderRules,
2284
- ...paddingRules,
2285
- ...paddingXRules,
2286
- ...paddingYRules,
2287
- ...paddingTopRules,
2288
- ...paddingRightRules,
2289
- ...paddingBottomRules,
2290
- ...paddingLeftRules,
2291
- ...pointerEventsRules,
2292
- ...marginRules,
2293
- ...marginXRules,
2294
- ...marginYRules,
2295
- ...marginTopRules,
2296
- ...marginRightRules,
2297
- ...marginBottomRules,
2298
- ...marginLeftRules,
2970
+ ...flexRules,
2299
2971
  ...fontRules,
2300
2972
  ...gapRules,
2973
+ ...gridItemRules,
2301
2974
  ...gridRules,
2302
2975
  ...heightRules,
2976
+ ...marginRules,
2977
+ ...outlineRules,
2303
2978
  ...overflowRules,
2979
+ ...paddingRules,
2980
+ ...pointerEventsRules,
2304
2981
  ...positionRules,
2305
2982
  ...radiusRules,
2306
2983
  ...shadowRules,
@@ -2324,14 +3001,16 @@ const badgeRules = {
2324
3001
  ...selectableRules,
2325
3002
  ...spinnerRules,
2326
3003
  ...switchRules,
2327
- ...textRules,
2328
3004
  ...textAreaRules,
2329
3005
  ...textInputRules,
3006
+ ...textRules,
2330
3007
  ...tokenRules,
2331
3008
  ...tooltipRules,
2332
3009
  // components
2333
3010
  ...breadcrumbsRules,
2334
- ...dialogRules
3011
+ ...dialogRules,
3012
+ ...menuRules,
3013
+ ...skeletonRules
2335
3014
  };
2336
3015
  function compileRule(selector, props) {
2337
3016
  return compileProperties(selector, props) + compileNestedRules(selector, props["@nest"]);
@@ -2384,12 +3063,11 @@ function compileRules(rules2) {
2384
3063
  let keyframesCss = `@keyframes ${name} {
2385
3064
  `;
2386
3065
  for (const [key, props] of Object.entries(value))
2387
- keyframesCss += ` ${key} {
2388
- `, keyframesCss += compileRule("", props).replace(/\n/g, `
3066
+ keyframesCss += ` ${key}`, keyframesCss += compileRule("", props).replace(/\n/g, `
2389
3067
  `) + `
2390
- `, keyframesCss += ` }
2391
3068
  `;
2392
- keyframesCss += `}
3069
+ keyframesCss += `
3070
+ }
2393
3071
  `, css += keyframesCss;
2394
3072
  }
2395
3073
  for (const [query, queryRules] of Object.entries(mediaQueries))
@@ -2425,263 +3103,287 @@ function countThemeEntries(obj) {
2425
3103
  function compileTheme(theme) {
2426
3104
  for (const [key, val] of Object.entries(theme.color.light.default))
2427
3105
  (isRecord(val) || isArray(val)) && console.log(key, countThemeEntries(val));
2428
- return [
2429
- compileRule(".root", {
2430
- [varNames.avatar.focusRing.offset]: px(theme.avatar.focusRing.offset),
2431
- [varNames.avatar.focusRing.width]: px(theme.avatar.focusRing.width),
2432
- // [varNames.avatar.size[0].distance]: px(theme.avatar.size[0].distance),
2433
- // [varNames.avatar.size[0].size]: px(theme.avatar.size[0].size),
2434
- "--avatar-0-distance": px(theme.avatar.sizes[0].distance),
2435
- "--avatar-0-size": px(theme.avatar.sizes[0].size),
2436
- "--avatar-1-distance": px(theme.avatar.sizes[1].distance),
2437
- "--avatar-1-size": px(theme.avatar.sizes[1].size),
2438
- "--avatar-2-distance": px(theme.avatar.sizes[2].distance),
2439
- "--avatar-2-size": px(theme.avatar.sizes[2].size),
2440
- "--avatar-3-distance": px(theme.avatar.sizes[3].distance),
2441
- "--avatar-3-size": px(theme.avatar.sizes[3].size),
2442
- "--button-border-width": px(theme.button.border.width),
2443
- "--button-focus-ring-offset": px(theme.button.focusRing.offset),
2444
- "--button-focus-ring-width": px(theme.button.focusRing.width),
2445
- "--button-text-weight": `${theme.button.textWeight}`,
2446
- "--card-border-width": px(theme.card.border.width),
2447
- "--card-focus-ring-offset": px(theme.card.focusRing.offset),
2448
- "--card-focus-ring-width": px(theme.card.focusRing.width),
2449
- "--card-shadow-outline": `0 0 0 ${px(theme.card.shadow.outline)}`,
2450
- "--font-code-family": theme.font.code.family,
2451
- "--font-code-weight-regular": `${theme.font.code.weights.regular}`,
2452
- "--font-code-weight-medium": `${theme.font.code.weights.medium}`,
2453
- "--font-code-weight-semibold": `${theme.font.code.weights.semibold}`,
2454
- "--font-code-weight-bold": `${theme.font.code.weights.bold}`,
2455
- "--font-code-0-size": rem(theme.font.code.sizes[0].fontSize),
2456
- "--font-code-0-line-height": rem(theme.font.code.sizes[0].lineHeight),
2457
- "--font-code-0-ascender-height": px(theme.font.code.sizes[0].ascenderHeight),
2458
- "--font-code-0-descender-height": px(theme.font.code.sizes[0].descenderHeight),
2459
- "--font-code-0-letter-spacing": px(theme.font.code.sizes[0].letterSpacing),
2460
- "--font-code-0-icon-size": px(theme.font.code.sizes[0].iconSize),
2461
- "--font-code-1-size": rem(theme.font.code.sizes[1].fontSize),
2462
- "--font-code-1-line-height": px(theme.font.code.sizes[1].lineHeight),
2463
- "--font-code-1-ascender-height": px(theme.font.code.sizes[1].ascenderHeight),
2464
- "--font-code-1-descender-height": px(theme.font.code.sizes[1].descenderHeight),
2465
- "--font-code-1-letter-spacing": px(theme.font.code.sizes[1].letterSpacing),
2466
- "--font-code-1-icon-size": px(theme.font.code.sizes[1].iconSize),
2467
- "--font-code-2-size": rem(theme.font.code.sizes[2].fontSize),
2468
- "--font-code-2-line-height": rem(theme.font.code.sizes[2].lineHeight),
2469
- "--font-code-2-ascender-height": px(theme.font.code.sizes[2].ascenderHeight),
2470
- "--font-code-2-descender-height": px(theme.font.code.sizes[2].descenderHeight),
2471
- "--font-code-2-letter-spacing": px(theme.font.code.sizes[2].letterSpacing),
2472
- "--font-code-2-icon-size": px(theme.font.code.sizes[2].iconSize),
2473
- "--font-code-3-size": rem(theme.font.code.sizes[3].fontSize),
2474
- "--font-code-3-line-height": rem(theme.font.code.sizes[3].lineHeight),
2475
- "--font-code-3-ascender-height": px(theme.font.code.sizes[3].ascenderHeight),
2476
- "--font-code-3-descender-height": px(theme.font.code.sizes[3].descenderHeight),
2477
- "--font-code-3-letter-spacing": px(theme.font.code.sizes[3].letterSpacing),
2478
- "--font-code-3-icon-size": px(theme.font.code.sizes[3].iconSize),
2479
- "--font-code-4-size": rem(theme.font.code.sizes[4].fontSize),
2480
- "--font-code-4-line-height": rem(theme.font.code.sizes[4].lineHeight),
2481
- "--font-code-4-ascender-height": px(theme.font.code.sizes[4].ascenderHeight),
2482
- "--font-code-4-descender-height": px(theme.font.code.sizes[4].descenderHeight),
2483
- "--font-code-4-letter-spacing": px(theme.font.code.sizes[4].letterSpacing),
2484
- "--font-code-4-icon-size": px(theme.font.code.sizes[4].iconSize),
2485
- "--font-heading-family": theme.font.heading.family,
2486
- "--font-heading-weight-regular": `${theme.font.heading.weights.regular}`,
2487
- "--font-heading-weight-medium": `${theme.font.heading.weights.medium}`,
2488
- "--font-heading-weight-semibold": `${theme.font.heading.weights.semibold}`,
2489
- "--font-heading-weight-bold": `${theme.font.heading.weights.bold}`,
2490
- "--font-heading-0-size": rem(theme.font.heading.sizes[0].fontSize),
2491
- "--font-heading-0-line-height": rem(theme.font.heading.sizes[0].lineHeight),
2492
- "--font-heading-0-ascender-height": px(theme.font.heading.sizes[0].ascenderHeight),
2493
- "--font-heading-0-descender-height": px(theme.font.heading.sizes[0].descenderHeight),
2494
- "--font-heading-0-letter-spacing": px(theme.font.heading.sizes[0].letterSpacing),
2495
- "--font-heading-0-icon-size": px(theme.font.heading.sizes[0].iconSize),
2496
- "--font-heading-1-size": rem(theme.font.heading.sizes[1].fontSize),
2497
- "--font-heading-1-line-height": rem(theme.font.heading.sizes[1].lineHeight),
2498
- "--font-heading-1-ascender-height": px(theme.font.heading.sizes[1].ascenderHeight),
2499
- "--font-heading-1-descender-height": px(theme.font.heading.sizes[1].descenderHeight),
2500
- "--font-heading-1-letter-spacing": px(theme.font.heading.sizes[1].letterSpacing),
2501
- "--font-heading-1-icon-size": px(theme.font.heading.sizes[1].iconSize),
2502
- "--font-heading-2-size": rem(theme.font.heading.sizes[2].fontSize),
2503
- "--font-heading-2-line-height": rem(theme.font.heading.sizes[2].lineHeight),
2504
- "--font-heading-2-ascender-height": px(theme.font.heading.sizes[2].ascenderHeight),
2505
- "--font-heading-2-descender-height": px(theme.font.heading.sizes[2].descenderHeight),
2506
- "--font-heading-2-letter-spacing": px(theme.font.heading.sizes[2].letterSpacing),
2507
- "--font-heading-2-icon-size": px(theme.font.heading.sizes[2].iconSize),
2508
- "--font-heading-3-size": rem(theme.font.heading.sizes[3].fontSize),
2509
- "--font-heading-3-line-height": rem(theme.font.heading.sizes[3].lineHeight),
2510
- "--font-heading-3-ascender-height": px(theme.font.heading.sizes[3].ascenderHeight),
2511
- "--font-heading-3-descender-height": px(theme.font.heading.sizes[3].descenderHeight),
2512
- "--font-heading-3-letter-spacing": px(theme.font.heading.sizes[3].letterSpacing),
2513
- "--font-heading-3-icon-size": px(theme.font.heading.sizes[3].iconSize),
2514
- "--font-heading-4-size": rem(theme.font.heading.sizes[4].fontSize),
2515
- "--font-heading-4-line-height": rem(theme.font.heading.sizes[4].lineHeight),
2516
- "--font-heading-4-ascender-height": px(theme.font.heading.sizes[4].ascenderHeight),
2517
- "--font-heading-4-descender-height": px(theme.font.heading.sizes[4].descenderHeight),
2518
- "--font-heading-4-letter-spacing": px(theme.font.heading.sizes[4].letterSpacing),
2519
- "--font-heading-4-icon-size": px(theme.font.heading.sizes[4].iconSize),
2520
- "--font-heading-5-size": rem(theme.font.heading.sizes[5].fontSize),
2521
- "--font-heading-5-line-height": rem(theme.font.heading.sizes[5].lineHeight),
2522
- "--font-heading-5-ascender-height": px(theme.font.heading.sizes[5].ascenderHeight),
2523
- "--font-heading-5-descender-height": px(theme.font.heading.sizes[5].descenderHeight),
2524
- "--font-heading-5-letter-spacing": px(theme.font.heading.sizes[5].letterSpacing),
2525
- "--font-heading-5-icon-size": px(theme.font.heading.sizes[5].iconSize),
2526
- "--font-label-family": theme.font.label.family,
2527
- "--font-label-weight-regular": `${theme.font.label.weights.regular}`,
2528
- "--font-label-weight-medium": `${theme.font.label.weights.medium}`,
2529
- "--font-label-weight-semibold": `${theme.font.label.weights.semibold}`,
2530
- "--font-label-weight-bold": `${theme.font.label.weights.bold}`,
2531
- "--font-label-0-size": rem(theme.font.label.sizes[0].fontSize),
2532
- "--font-label-0-line-height": rem(theme.font.label.sizes[0].lineHeight),
2533
- "--font-label-0-ascender-height": px(theme.font.label.sizes[0].ascenderHeight),
2534
- "--font-label-0-descender-height": px(theme.font.label.sizes[0].descenderHeight),
2535
- "--font-label-0-letter-spacing": px(theme.font.label.sizes[0].letterSpacing),
2536
- "--font-label-0-icon-size": px(theme.font.label.sizes[0].iconSize),
2537
- "--font-label-1-size": rem(theme.font.label.sizes[1].fontSize),
2538
- "--font-label-1-line-height": rem(theme.font.label.sizes[1].lineHeight),
2539
- "--font-label-1-ascender-height": px(theme.font.label.sizes[1].ascenderHeight),
2540
- "--font-label-1-descender-height": px(theme.font.label.sizes[1].descenderHeight),
2541
- "--font-label-1-letter-spacing": px(theme.font.label.sizes[1].letterSpacing),
2542
- "--font-label-1-icon-size": px(theme.font.label.sizes[1].iconSize),
2543
- "--font-label-2-size": rem(theme.font.label.sizes[2].fontSize),
2544
- "--font-label-2-line-height": rem(theme.font.label.sizes[2].lineHeight),
2545
- "--font-label-2-ascender-height": px(theme.font.label.sizes[2].ascenderHeight),
2546
- "--font-label-2-descender-height": px(theme.font.label.sizes[2].descenderHeight),
2547
- "--font-label-2-letter-spacing": px(theme.font.label.sizes[2].letterSpacing),
2548
- "--font-label-2-icon-size": px(theme.font.label.sizes[2].iconSize),
2549
- "--font-label-3-size": rem(theme.font.label.sizes[3].fontSize),
2550
- "--font-label-3-line-height": rem(theme.font.label.sizes[3].lineHeight),
2551
- "--font-label-3-ascender-height": px(theme.font.label.sizes[3].ascenderHeight),
2552
- "--font-label-3-descender-height": px(theme.font.label.sizes[3].descenderHeight),
2553
- "--font-label-3-letter-spacing": px(theme.font.label.sizes[3].letterSpacing),
2554
- "--font-label-3-icon-size": px(theme.font.label.sizes[3].iconSize),
2555
- "--font-label-4-size": rem(theme.font.label.sizes[4].fontSize),
2556
- "--font-label-4-line-height": rem(theme.font.label.sizes[4].lineHeight),
2557
- "--font-label-4-ascender-height": px(theme.font.label.sizes[4].ascenderHeight),
2558
- "--font-label-4-descender-height": px(theme.font.label.sizes[4].descenderHeight),
2559
- "--font-label-4-letter-spacing": px(theme.font.label.sizes[4].letterSpacing),
2560
- "--font-label-4-icon-size": px(theme.font.label.sizes[4].iconSize),
2561
- "--font-label-5-size": rem(theme.font.label.sizes[5].fontSize),
2562
- "--font-label-5-line-height": rem(theme.font.label.sizes[5].lineHeight),
2563
- "--font-label-5-ascender-height": px(theme.font.label.sizes[5].ascenderHeight),
2564
- "--font-label-5-descender-height": px(theme.font.label.sizes[5].descenderHeight),
2565
- "--font-label-5-letter-spacing": px(theme.font.label.sizes[5].letterSpacing),
2566
- "--font-label-5-icon-size": px(theme.font.label.sizes[5].iconSize),
2567
- "--font-text-family": theme.font.text.family,
2568
- "--font-text-weight-regular": `${theme.font.text.weights.regular}`,
2569
- "--font-text-weight-medium": `${theme.font.text.weights.medium}`,
2570
- "--font-text-weight-semibold": `${theme.font.text.weights.semibold}`,
2571
- "--font-text-weight-bold": `${theme.font.text.weights.bold}`,
2572
- "--font-text-0-size": rem(theme.font.text.sizes[0].fontSize),
2573
- "--font-text-0-line-height": rem(theme.font.text.sizes[0].lineHeight),
2574
- "--font-text-0-ascender-height": px(theme.font.text.sizes[0].ascenderHeight),
2575
- "--font-text-0-descender-height": px(theme.font.text.sizes[0].descenderHeight),
2576
- "--font-text-0-letter-spacing": px(theme.font.text.sizes[0].letterSpacing),
2577
- "--font-text-0-icon-size": px(theme.font.text.sizes[0].iconSize),
2578
- "--font-text-1-size": rem(theme.font.text.sizes[1].fontSize),
2579
- "--font-text-1-line-height": rem(theme.font.text.sizes[1].lineHeight),
2580
- "--font-text-1-ascender-height": px(theme.font.text.sizes[1].ascenderHeight),
2581
- "--font-text-1-descender-height": px(theme.font.text.sizes[1].descenderHeight),
2582
- "--font-text-1-letter-spacing": px(theme.font.text.sizes[1].letterSpacing),
2583
- "--font-text-1-icon-size": px(theme.font.text.sizes[1].iconSize),
2584
- "--font-text-2-size": rem(theme.font.text.sizes[2].fontSize),
2585
- "--font-text-2-line-height": rem(theme.font.text.sizes[2].lineHeight),
2586
- "--font-text-2-ascender-height": px(theme.font.text.sizes[2].ascenderHeight),
2587
- "--font-text-2-descender-height": px(theme.font.text.sizes[2].descenderHeight),
2588
- "--font-text-2-letter-spacing": px(theme.font.text.sizes[2].letterSpacing),
2589
- "--font-text-2-icon-size": px(theme.font.text.sizes[2].iconSize),
2590
- "--font-text-3-size": rem(theme.font.text.sizes[3].fontSize),
2591
- "--font-text-3-line-height": rem(theme.font.text.sizes[3].lineHeight),
2592
- "--font-text-3-ascender-height": px(theme.font.text.sizes[3].ascenderHeight),
2593
- "--font-text-3-descender-height": px(theme.font.text.sizes[3].descenderHeight),
2594
- "--font-text-3-letter-spacing": px(theme.font.text.sizes[3].letterSpacing),
2595
- "--font-text-3-icon-size": px(theme.font.text.sizes[3].iconSize),
2596
- "--font-text-4-size": rem(theme.font.text.sizes[4].fontSize),
2597
- "--font-text-4-line-height": rem(theme.font.text.sizes[4].lineHeight),
2598
- "--font-text-4-ascender-height": px(theme.font.text.sizes[4].ascenderHeight),
2599
- "--font-text-4-descender-height": px(theme.font.text.sizes[4].descenderHeight),
2600
- "--font-text-4-letter-spacing": px(theme.font.text.sizes[4].letterSpacing),
2601
- "--font-text-4-icon-size": px(theme.font.text.sizes[4].iconSize),
2602
- "--input-border-width": px(theme.input.border.width),
2603
- "--input-checkbox-focus-ring-offset": px(theme.input.checkbox.focusRing.offset),
2604
- "--input-checkbox-focus-ring-width": px(theme.input.checkbox.focusRing.width),
2605
- "--input-checkbox-size": px(theme.input.checkbox.size),
2606
- "--input-radio-focus-ring-offset": px(theme.input.radio.focusRing.offset),
2607
- "--input-radio-focus-ring-width": px(theme.input.radio.focusRing.width),
2608
- "--input-radio-mark-size": px(theme.input.radio.markSize),
2609
- "--input-radio-size": px(theme.input.radio.size),
2610
- "--input-select-focus-ring-offset": px(theme.input.select.focusRing.offset),
2611
- "--input-select-focus-ring-width": px(theme.input.select.focusRing.width),
2612
- "--input-switch-focus-ring-offset": px(theme.input.switch.focusRing.offset),
2613
- "--input-switch-focus-ring-width": px(theme.input.switch.focusRing.width),
2614
- "--input-switch-width": px(theme.input.switch.width),
2615
- "--input-switch-height": px(theme.input.switch.height),
2616
- "--input-switch-padding": px(theme.input.switch.padding),
2617
- "--input-switch-transition-duration-ms": px(theme.input.switch.transitionDurationMs),
2618
- "--input-switch-transition-timing-function": theme.input.switch.transitionTimingFunction,
2619
- "--input-text-focus-ring-offset": px(theme.input.text.focusRing.offset),
2620
- "--input-text-focus-ring-width": px(theme.input.text.focusRing.width),
2621
- "--container-0": px(theme.container[0]),
2622
- "--container-1": px(theme.container[1]),
2623
- "--container-2": px(theme.container[2]),
2624
- "--container-3": px(theme.container[3]),
2625
- "--container-4": px(theme.container[4]),
2626
- "--container-5": px(theme.container[5]),
2627
- "--radius-0": px(theme.radius[0]),
2628
- "--radius-1": px(theme.radius[1]),
2629
- "--radius-2": px(theme.radius[2]),
2630
- "--radius-3": px(theme.radius[3]),
2631
- "--radius-4": px(theme.radius[4]),
2632
- "--radius-5": px(theme.radius[5]),
2633
- "--radius-6": px(theme.radius[6]),
2634
- [varNames.space[0]]: rem(theme.space[0]),
2635
- [varNames.space[1]]: rem(theme.space[1]),
2636
- [varNames.space[2]]: rem(theme.space[2]),
2637
- [varNames.space[3]]: rem(theme.space[3]),
2638
- [varNames.space[4]]: rem(theme.space[4]),
2639
- [varNames.space[5]]: rem(theme.space[5]),
2640
- [varNames.space[6]]: rem(theme.space[6]),
2641
- [varNames.space[7]]: rem(theme.space[7]),
2642
- [varNames.space[8]]: rem(theme.space[8]),
2643
- [varNames.space[9]]: rem(theme.space[9]),
2644
- "--shadow-0-umbra": toBoxShadow(theme.shadow[0]?.umbra),
2645
- //`${theme.shadow[0]?.umbra || 'none'}`,
2646
- "--shadow-0-penumbra": toBoxShadow(theme.shadow[0]?.penumbra),
2647
- "--shadow-0-ambient": toBoxShadow(theme.shadow[0]?.ambient),
2648
- "--shadow-1-umbra": toBoxShadow(theme.shadow[1]?.umbra),
2649
- "--shadow-1-penumbra": toBoxShadow(theme.shadow[1]?.penumbra),
2650
- "--shadow-1-ambient": toBoxShadow(theme.shadow[1]?.ambient),
2651
- "--shadow-2-umbra": toBoxShadow(theme.shadow[2]?.umbra),
2652
- "--shadow-2-penumbra": toBoxShadow(theme.shadow[2]?.penumbra),
2653
- "--shadow-2-ambient": toBoxShadow(theme.shadow[2]?.ambient),
2654
- "--shadow-3-umbra": toBoxShadow(theme.shadow[3]?.umbra),
2655
- "--shadow-3-penumbra": toBoxShadow(theme.shadow[3]?.penumbra),
2656
- "--shadow-3-ambient": toBoxShadow(theme.shadow[3]?.ambient),
2657
- "--shadow-4-umbra": toBoxShadow(theme.shadow[4]?.umbra),
2658
- "--shadow-4-penumbra": toBoxShadow(theme.shadow[4]?.penumbra),
2659
- "--shadow-4-ambient": toBoxShadow(theme.shadow[4]?.ambient),
2660
- "--shadow-5-umbra": toBoxShadow(theme.shadow[5]?.umbra),
2661
- "--shadow-5-penumbra": toBoxShadow(theme.shadow[5]?.penumbra),
2662
- "--shadow-5-ambient": toBoxShadow(theme.shadow[5]?.ambient),
2663
- ...Object.fromEntries(
2664
- getThemeEntries(theme.color, ["color"])
2665
- )
2666
- }),
2667
- compileCardCss({ scheme: "dark", tone: "transparent" }),
2668
- compileCardCss({ scheme: "dark", tone: "default" }),
2669
- compileCardCss({ scheme: "dark", tone: "primary" }),
2670
- compileCardCss({ scheme: "dark", tone: "positive" }),
2671
- compileCardCss({ scheme: "dark", tone: "caution" }),
2672
- compileCardCss({ scheme: "dark", tone: "critical" }),
2673
- compileCardCss({ scheme: "light", tone: "transparent" }),
2674
- compileCardCss({ scheme: "light", tone: "default" }),
2675
- compileCardCss({ scheme: "light", tone: "primary" }),
2676
- compileCardCss({ scheme: "light", tone: "positive" }),
2677
- compileCardCss({ scheme: "light", tone: "caution" }),
2678
- compileCardCss({ scheme: "light", tone: "critical" })
2679
- ].join(`
3106
+ return [compileRule(":root", {
3107
+ [varNames.avatar.focusRing.offset]: px(theme.avatar.focusRing.offset),
3108
+ [varNames.avatar.focusRing.width]: px(theme.avatar.focusRing.width),
3109
+ // [varNames.avatar.size[0].distance]: px(theme.avatar.size[0].distance),
3110
+ // [varNames.avatar.size[0].size]: px(theme.avatar.size[0].size),
3111
+ "--avatar-0-distance": px(theme.avatar.sizes[0].distance),
3112
+ "--avatar-0-size": px(theme.avatar.sizes[0].size),
3113
+ "--avatar-1-distance": px(theme.avatar.sizes[1].distance),
3114
+ "--avatar-1-size": px(theme.avatar.sizes[1].size),
3115
+ "--avatar-2-distance": px(theme.avatar.sizes[2].distance),
3116
+ "--avatar-2-size": px(theme.avatar.sizes[2].size),
3117
+ "--avatar-3-distance": px(theme.avatar.sizes[3].distance),
3118
+ "--avatar-3-size": px(theme.avatar.sizes[3].size),
3119
+ "--button-border-width": px(theme.button.border.width),
3120
+ "--button-focus-ring-offset": px(theme.button.focusRing.offset),
3121
+ "--button-focus-ring-width": px(theme.button.focusRing.width),
3122
+ "--button-text-weight": `${theme.button.textWeight}`,
3123
+ "--card-border-width": px(theme.card.border.width),
3124
+ "--card-focus-ring-offset": px(theme.card.focusRing.offset),
3125
+ "--card-focus-ring-width": px(theme.card.focusRing.width),
3126
+ "--card-shadow-outline": `0 0 0 ${px(theme.card.shadow.outline)}`,
3127
+ "--font-code-family": theme.font.code.family,
3128
+ "--font-code-weight-regular": `${theme.font.code.weights.regular}`,
3129
+ "--font-code-weight-medium": `${theme.font.code.weights.medium}`,
3130
+ "--font-code-weight-semibold": `${theme.font.code.weights.semibold}`,
3131
+ "--font-code-weight-bold": `${theme.font.code.weights.bold}`,
3132
+ "--font-code-0-size": rem(theme.font.code.sizes[0].fontSize),
3133
+ "--font-code-0-line-height": rem(theme.font.code.sizes[0].lineHeight),
3134
+ "--font-code-0-ascender-height": px(theme.font.code.sizes[0].ascenderHeight),
3135
+ "--font-code-0-descender-height": px(theme.font.code.sizes[0].descenderHeight),
3136
+ "--font-code-0-letter-spacing": px(theme.font.code.sizes[0].letterSpacing),
3137
+ "--font-code-0-icon-size": px(theme.font.code.sizes[0].iconSize),
3138
+ "--font-code-1-size": rem(theme.font.code.sizes[1].fontSize),
3139
+ "--font-code-1-line-height": px(theme.font.code.sizes[1].lineHeight),
3140
+ "--font-code-1-ascender-height": px(theme.font.code.sizes[1].ascenderHeight),
3141
+ "--font-code-1-descender-height": px(theme.font.code.sizes[1].descenderHeight),
3142
+ "--font-code-1-letter-spacing": px(theme.font.code.sizes[1].letterSpacing),
3143
+ "--font-code-1-icon-size": px(theme.font.code.sizes[1].iconSize),
3144
+ "--font-code-2-size": rem(theme.font.code.sizes[2].fontSize),
3145
+ "--font-code-2-line-height": rem(theme.font.code.sizes[2].lineHeight),
3146
+ "--font-code-2-ascender-height": px(theme.font.code.sizes[2].ascenderHeight),
3147
+ "--font-code-2-descender-height": px(theme.font.code.sizes[2].descenderHeight),
3148
+ "--font-code-2-letter-spacing": px(theme.font.code.sizes[2].letterSpacing),
3149
+ "--font-code-2-icon-size": px(theme.font.code.sizes[2].iconSize),
3150
+ "--font-code-3-size": rem(theme.font.code.sizes[3].fontSize),
3151
+ "--font-code-3-line-height": rem(theme.font.code.sizes[3].lineHeight),
3152
+ "--font-code-3-ascender-height": px(theme.font.code.sizes[3].ascenderHeight),
3153
+ "--font-code-3-descender-height": px(theme.font.code.sizes[3].descenderHeight),
3154
+ "--font-code-3-letter-spacing": px(theme.font.code.sizes[3].letterSpacing),
3155
+ "--font-code-3-icon-size": px(theme.font.code.sizes[3].iconSize),
3156
+ "--font-code-4-size": rem(theme.font.code.sizes[4].fontSize),
3157
+ "--font-code-4-line-height": rem(theme.font.code.sizes[4].lineHeight),
3158
+ "--font-code-4-ascender-height": px(theme.font.code.sizes[4].ascenderHeight),
3159
+ "--font-code-4-descender-height": px(theme.font.code.sizes[4].descenderHeight),
3160
+ "--font-code-4-letter-spacing": px(theme.font.code.sizes[4].letterSpacing),
3161
+ "--font-code-4-icon-size": px(theme.font.code.sizes[4].iconSize),
3162
+ "--font-heading-family": theme.font.heading.family,
3163
+ "--font-heading-weight-regular": `${theme.font.heading.weights.regular}`,
3164
+ "--font-heading-weight-medium": `${theme.font.heading.weights.medium}`,
3165
+ "--font-heading-weight-semibold": `${theme.font.heading.weights.semibold}`,
3166
+ "--font-heading-weight-bold": `${theme.font.heading.weights.bold}`,
3167
+ "--font-heading-0-size": rem(theme.font.heading.sizes[0].fontSize),
3168
+ "--font-heading-0-line-height": rem(theme.font.heading.sizes[0].lineHeight),
3169
+ "--font-heading-0-ascender-height": px(theme.font.heading.sizes[0].ascenderHeight),
3170
+ "--font-heading-0-descender-height": px(theme.font.heading.sizes[0].descenderHeight),
3171
+ "--font-heading-0-letter-spacing": px(theme.font.heading.sizes[0].letterSpacing),
3172
+ "--font-heading-0-icon-size": px(theme.font.heading.sizes[0].iconSize),
3173
+ "--font-heading-1-size": rem(theme.font.heading.sizes[1].fontSize),
3174
+ "--font-heading-1-line-height": rem(theme.font.heading.sizes[1].lineHeight),
3175
+ "--font-heading-1-ascender-height": px(theme.font.heading.sizes[1].ascenderHeight),
3176
+ "--font-heading-1-descender-height": px(theme.font.heading.sizes[1].descenderHeight),
3177
+ "--font-heading-1-letter-spacing": px(theme.font.heading.sizes[1].letterSpacing),
3178
+ "--font-heading-1-icon-size": px(theme.font.heading.sizes[1].iconSize),
3179
+ "--font-heading-2-size": rem(theme.font.heading.sizes[2].fontSize),
3180
+ "--font-heading-2-line-height": rem(theme.font.heading.sizes[2].lineHeight),
3181
+ "--font-heading-2-ascender-height": px(theme.font.heading.sizes[2].ascenderHeight),
3182
+ "--font-heading-2-descender-height": px(theme.font.heading.sizes[2].descenderHeight),
3183
+ "--font-heading-2-letter-spacing": px(theme.font.heading.sizes[2].letterSpacing),
3184
+ "--font-heading-2-icon-size": px(theme.font.heading.sizes[2].iconSize),
3185
+ "--font-heading-3-size": rem(theme.font.heading.sizes[3].fontSize),
3186
+ "--font-heading-3-line-height": rem(theme.font.heading.sizes[3].lineHeight),
3187
+ "--font-heading-3-ascender-height": px(theme.font.heading.sizes[3].ascenderHeight),
3188
+ "--font-heading-3-descender-height": px(theme.font.heading.sizes[3].descenderHeight),
3189
+ "--font-heading-3-letter-spacing": px(theme.font.heading.sizes[3].letterSpacing),
3190
+ "--font-heading-3-icon-size": px(theme.font.heading.sizes[3].iconSize),
3191
+ "--font-heading-4-size": rem(theme.font.heading.sizes[4].fontSize),
3192
+ "--font-heading-4-line-height": rem(theme.font.heading.sizes[4].lineHeight),
3193
+ "--font-heading-4-ascender-height": px(theme.font.heading.sizes[4].ascenderHeight),
3194
+ "--font-heading-4-descender-height": px(theme.font.heading.sizes[4].descenderHeight),
3195
+ "--font-heading-4-letter-spacing": px(theme.font.heading.sizes[4].letterSpacing),
3196
+ "--font-heading-4-icon-size": px(theme.font.heading.sizes[4].iconSize),
3197
+ "--font-heading-5-size": rem(theme.font.heading.sizes[5].fontSize),
3198
+ "--font-heading-5-line-height": rem(theme.font.heading.sizes[5].lineHeight),
3199
+ "--font-heading-5-ascender-height": px(theme.font.heading.sizes[5].ascenderHeight),
3200
+ "--font-heading-5-descender-height": px(theme.font.heading.sizes[5].descenderHeight),
3201
+ "--font-heading-5-letter-spacing": px(theme.font.heading.sizes[5].letterSpacing),
3202
+ "--font-heading-5-icon-size": px(theme.font.heading.sizes[5].iconSize),
3203
+ "--font-label-family": theme.font.label.family,
3204
+ "--font-label-weight-regular": `${theme.font.label.weights.regular}`,
3205
+ "--font-label-weight-medium": `${theme.font.label.weights.medium}`,
3206
+ "--font-label-weight-semibold": `${theme.font.label.weights.semibold}`,
3207
+ "--font-label-weight-bold": `${theme.font.label.weights.bold}`,
3208
+ "--font-label-0-size": rem(theme.font.label.sizes[0].fontSize),
3209
+ "--font-label-0-line-height": rem(theme.font.label.sizes[0].lineHeight),
3210
+ "--font-label-0-ascender-height": px(theme.font.label.sizes[0].ascenderHeight),
3211
+ "--font-label-0-descender-height": px(theme.font.label.sizes[0].descenderHeight),
3212
+ "--font-label-0-letter-spacing": px(theme.font.label.sizes[0].letterSpacing),
3213
+ "--font-label-0-icon-size": px(theme.font.label.sizes[0].iconSize),
3214
+ "--font-label-1-size": rem(theme.font.label.sizes[1].fontSize),
3215
+ "--font-label-1-line-height": rem(theme.font.label.sizes[1].lineHeight),
3216
+ "--font-label-1-ascender-height": px(theme.font.label.sizes[1].ascenderHeight),
3217
+ "--font-label-1-descender-height": px(theme.font.label.sizes[1].descenderHeight),
3218
+ "--font-label-1-letter-spacing": px(theme.font.label.sizes[1].letterSpacing),
3219
+ "--font-label-1-icon-size": px(theme.font.label.sizes[1].iconSize),
3220
+ "--font-label-2-size": rem(theme.font.label.sizes[2].fontSize),
3221
+ "--font-label-2-line-height": rem(theme.font.label.sizes[2].lineHeight),
3222
+ "--font-label-2-ascender-height": px(theme.font.label.sizes[2].ascenderHeight),
3223
+ "--font-label-2-descender-height": px(theme.font.label.sizes[2].descenderHeight),
3224
+ "--font-label-2-letter-spacing": px(theme.font.label.sizes[2].letterSpacing),
3225
+ "--font-label-2-icon-size": px(theme.font.label.sizes[2].iconSize),
3226
+ "--font-label-3-size": rem(theme.font.label.sizes[3].fontSize),
3227
+ "--font-label-3-line-height": rem(theme.font.label.sizes[3].lineHeight),
3228
+ "--font-label-3-ascender-height": px(theme.font.label.sizes[3].ascenderHeight),
3229
+ "--font-label-3-descender-height": px(theme.font.label.sizes[3].descenderHeight),
3230
+ "--font-label-3-letter-spacing": px(theme.font.label.sizes[3].letterSpacing),
3231
+ "--font-label-3-icon-size": px(theme.font.label.sizes[3].iconSize),
3232
+ "--font-label-4-size": rem(theme.font.label.sizes[4].fontSize),
3233
+ "--font-label-4-line-height": rem(theme.font.label.sizes[4].lineHeight),
3234
+ "--font-label-4-ascender-height": px(theme.font.label.sizes[4].ascenderHeight),
3235
+ "--font-label-4-descender-height": px(theme.font.label.sizes[4].descenderHeight),
3236
+ "--font-label-4-letter-spacing": px(theme.font.label.sizes[4].letterSpacing),
3237
+ "--font-label-4-icon-size": px(theme.font.label.sizes[4].iconSize),
3238
+ "--font-label-5-size": rem(theme.font.label.sizes[5].fontSize),
3239
+ "--font-label-5-line-height": rem(theme.font.label.sizes[5].lineHeight),
3240
+ "--font-label-5-ascender-height": px(theme.font.label.sizes[5].ascenderHeight),
3241
+ "--font-label-5-descender-height": px(theme.font.label.sizes[5].descenderHeight),
3242
+ "--font-label-5-letter-spacing": px(theme.font.label.sizes[5].letterSpacing),
3243
+ "--font-label-5-icon-size": px(theme.font.label.sizes[5].iconSize),
3244
+ "--font-text-family": theme.font.text.family,
3245
+ "--font-text-weight-regular": `${theme.font.text.weights.regular}`,
3246
+ "--font-text-weight-medium": `${theme.font.text.weights.medium}`,
3247
+ "--font-text-weight-semibold": `${theme.font.text.weights.semibold}`,
3248
+ "--font-text-weight-bold": `${theme.font.text.weights.bold}`,
3249
+ "--font-text-0-size": rem(theme.font.text.sizes[0].fontSize),
3250
+ "--font-text-0-line-height": rem(theme.font.text.sizes[0].lineHeight),
3251
+ "--font-text-0-ascender-height": px(theme.font.text.sizes[0].ascenderHeight),
3252
+ "--font-text-0-descender-height": px(theme.font.text.sizes[0].descenderHeight),
3253
+ "--font-text-0-letter-spacing": px(theme.font.text.sizes[0].letterSpacing),
3254
+ "--font-text-0-icon-size": px(theme.font.text.sizes[0].iconSize),
3255
+ "--font-text-1-size": rem(theme.font.text.sizes[1].fontSize),
3256
+ "--font-text-1-line-height": rem(theme.font.text.sizes[1].lineHeight),
3257
+ "--font-text-1-ascender-height": px(theme.font.text.sizes[1].ascenderHeight),
3258
+ "--font-text-1-descender-height": px(theme.font.text.sizes[1].descenderHeight),
3259
+ "--font-text-1-letter-spacing": px(theme.font.text.sizes[1].letterSpacing),
3260
+ "--font-text-1-icon-size": px(theme.font.text.sizes[1].iconSize),
3261
+ "--font-text-2-size": rem(theme.font.text.sizes[2].fontSize),
3262
+ "--font-text-2-line-height": rem(theme.font.text.sizes[2].lineHeight),
3263
+ "--font-text-2-ascender-height": px(theme.font.text.sizes[2].ascenderHeight),
3264
+ "--font-text-2-descender-height": px(theme.font.text.sizes[2].descenderHeight),
3265
+ "--font-text-2-letter-spacing": px(theme.font.text.sizes[2].letterSpacing),
3266
+ "--font-text-2-icon-size": px(theme.font.text.sizes[2].iconSize),
3267
+ "--font-text-3-size": rem(theme.font.text.sizes[3].fontSize),
3268
+ "--font-text-3-line-height": rem(theme.font.text.sizes[3].lineHeight),
3269
+ "--font-text-3-ascender-height": px(theme.font.text.sizes[3].ascenderHeight),
3270
+ "--font-text-3-descender-height": px(theme.font.text.sizes[3].descenderHeight),
3271
+ "--font-text-3-letter-spacing": px(theme.font.text.sizes[3].letterSpacing),
3272
+ "--font-text-3-icon-size": px(theme.font.text.sizes[3].iconSize),
3273
+ "--font-text-4-size": rem(theme.font.text.sizes[4].fontSize),
3274
+ "--font-text-4-line-height": rem(theme.font.text.sizes[4].lineHeight),
3275
+ "--font-text-4-ascender-height": px(theme.font.text.sizes[4].ascenderHeight),
3276
+ "--font-text-4-descender-height": px(theme.font.text.sizes[4].descenderHeight),
3277
+ "--font-text-4-letter-spacing": px(theme.font.text.sizes[4].letterSpacing),
3278
+ "--font-text-4-icon-size": px(theme.font.text.sizes[4].iconSize),
3279
+ "--input-border-width": px(theme.input.border.width),
3280
+ "--input-checkbox-focus-ring-offset": px(theme.input.checkbox.focusRing.offset),
3281
+ "--input-checkbox-focus-ring-width": px(theme.input.checkbox.focusRing.width),
3282
+ "--input-checkbox-size": px(theme.input.checkbox.size),
3283
+ "--input-radio-focus-ring-offset": px(theme.input.radio.focusRing.offset),
3284
+ "--input-radio-focus-ring-width": px(theme.input.radio.focusRing.width),
3285
+ "--input-radio-mark-size": px(theme.input.radio.markSize),
3286
+ "--input-radio-size": px(theme.input.radio.size),
3287
+ "--input-select-focus-ring-offset": px(theme.input.select.focusRing.offset),
3288
+ "--input-select-focus-ring-width": px(theme.input.select.focusRing.width),
3289
+ "--input-switch-focus-ring-offset": px(theme.input.switch.focusRing.offset),
3290
+ "--input-switch-focus-ring-width": px(theme.input.switch.focusRing.width),
3291
+ "--input-switch-width": px(theme.input.switch.width),
3292
+ "--input-switch-height": px(theme.input.switch.height),
3293
+ "--input-switch-padding": px(theme.input.switch.padding),
3294
+ "--input-switch-transition-duration-ms": px(theme.input.switch.transitionDurationMs),
3295
+ "--input-switch-transition-timing-function": theme.input.switch.transitionTimingFunction,
3296
+ "--input-text-focus-ring-offset": px(theme.input.text.focusRing.offset),
3297
+ "--input-text-focus-ring-width": px(theme.input.text.focusRing.width),
3298
+ "--container-0": px(theme.container[0]),
3299
+ "--container-1": px(theme.container[1]),
3300
+ "--container-2": px(theme.container[2]),
3301
+ "--container-3": px(theme.container[3]),
3302
+ "--container-4": px(theme.container[4]),
3303
+ "--container-5": px(theme.container[5]),
3304
+ "--radius-0": px(theme.radius[0]),
3305
+ "--radius-1": px(theme.radius[1]),
3306
+ "--radius-2": px(theme.radius[2]),
3307
+ "--radius-3": px(theme.radius[3]),
3308
+ "--radius-4": px(theme.radius[4]),
3309
+ "--radius-5": px(theme.radius[5]),
3310
+ "--radius-6": px(theme.radius[6]),
3311
+ [varNames.space[0]]: rem(theme.space[0]),
3312
+ [varNames.space[0.5]]: `calc(${rem(theme.space[1])} / 2)`,
3313
+ [varNames.space[1]]: rem(theme.space[1]),
3314
+ [varNames.space[2]]: rem(theme.space[2]),
3315
+ [varNames.space[3]]: rem(theme.space[3]),
3316
+ [varNames.space[4]]: rem(theme.space[4]),
3317
+ [varNames.space[5]]: rem(theme.space[5]),
3318
+ [varNames.space[6]]: rem(theme.space[6]),
3319
+ [varNames.space[7]]: rem(theme.space[7]),
3320
+ [varNames.space[8]]: rem(theme.space[8]),
3321
+ [varNames.space[9]]: rem(theme.space[9]),
3322
+ "--shadow-0-umbra": toBoxShadow(theme.shadow[0]?.umbra),
3323
+ //`${theme.shadow[0]?.umbra || 'none'}`,
3324
+ "--shadow-0-penumbra": toBoxShadow(theme.shadow[0]?.penumbra),
3325
+ "--shadow-0-ambient": toBoxShadow(theme.shadow[0]?.ambient),
3326
+ "--shadow-1-umbra": toBoxShadow(theme.shadow[1]?.umbra),
3327
+ "--shadow-1-penumbra": toBoxShadow(theme.shadow[1]?.penumbra),
3328
+ "--shadow-1-ambient": toBoxShadow(theme.shadow[1]?.ambient),
3329
+ "--shadow-2-umbra": toBoxShadow(theme.shadow[2]?.umbra),
3330
+ "--shadow-2-penumbra": toBoxShadow(theme.shadow[2]?.penumbra),
3331
+ "--shadow-2-ambient": toBoxShadow(theme.shadow[2]?.ambient),
3332
+ "--shadow-3-umbra": toBoxShadow(theme.shadow[3]?.umbra),
3333
+ "--shadow-3-penumbra": toBoxShadow(theme.shadow[3]?.penumbra),
3334
+ "--shadow-3-ambient": toBoxShadow(theme.shadow[3]?.ambient),
3335
+ "--shadow-4-umbra": toBoxShadow(theme.shadow[4]?.umbra),
3336
+ "--shadow-4-penumbra": toBoxShadow(theme.shadow[4]?.penumbra),
3337
+ "--shadow-4-ambient": toBoxShadow(theme.shadow[4]?.ambient),
3338
+ "--shadow-5-umbra": toBoxShadow(theme.shadow[5]?.umbra),
3339
+ "--shadow-5-penumbra": toBoxShadow(theme.shadow[5]?.penumbra),
3340
+ "--shadow-5-ambient": toBoxShadow(theme.shadow[5]?.ambient),
3341
+ ...Object.fromEntries(getThemeEntries(theme.color, ["color"]))
3342
+ }), compileCardCss({
3343
+ scheme: "dark",
3344
+ tone: "transparent"
3345
+ }), compileCardCss({
3346
+ scheme: "dark",
3347
+ tone: "default"
3348
+ }), compileCardCss({
3349
+ scheme: "dark",
3350
+ tone: "primary"
3351
+ }), compileCardCss({
3352
+ scheme: "dark",
3353
+ tone: "positive"
3354
+ }), compileCardCss({
3355
+ scheme: "dark",
3356
+ tone: "caution"
3357
+ }), compileCardCss({
3358
+ scheme: "dark",
3359
+ tone: "critical"
3360
+ }), compileCardCss({
3361
+ scheme: "light",
3362
+ tone: "transparent"
3363
+ }), compileCardCss({
3364
+ scheme: "light",
3365
+ tone: "default"
3366
+ }), compileCardCss({
3367
+ scheme: "light",
3368
+ tone: "primary"
3369
+ }), compileCardCss({
3370
+ scheme: "light",
3371
+ tone: "positive"
3372
+ }), compileCardCss({
3373
+ scheme: "light",
3374
+ tone: "caution"
3375
+ }), compileCardCss({
3376
+ scheme: "light",
3377
+ tone: "critical"
3378
+ })].join(`
2680
3379
 
2681
3380
  `);
2682
3381
  }
2683
3382
  function compileCardCss(props) {
2684
- const { scheme, tone } = props, cardVars = vars.color[scheme][tone];
3383
+ const {
3384
+ scheme,
3385
+ tone
3386
+ } = props, cardVars = vars.color[scheme][tone];
2685
3387
  return compileRule(`.card[data-scheme="${scheme}"][data-tone="${tone}"]`, {
2686
3388
  "--color-accent-fg": cardVars.accent.fg,
2687
3389
  ...THEME_COLOR_AVATAR_COLORS.reduce((acc, color) => ({
@@ -2842,8 +3544,8 @@ function dialogContent() {
2842
3544
  function dialogFooter() {
2843
3545
  return composeClassNames("dialog-footer");
2844
3546
  }
2845
- function treeItem() {
2846
- return composeClassNames("tree-item");
3547
+ function menuDivider() {
3548
+ return composeClassNames("menu-divider");
2847
3549
  }
2848
3550
  function _resp(prefix, prop) {
2849
3551
  if (prop !== void 0)
@@ -2852,13 +3554,29 @@ function _resp(prefix, prop) {
2852
3554
  return index === 0 ? `${className}` : `_${index}:${className}`;
2853
3555
  }).join(" ") : (typeof prop == "boolean" ? [prefix] : [prefix, prop]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
2854
3556
  }
3557
+ function radius(props) {
3558
+ return composeClassNames(_resp("r", props.radius));
3559
+ }
3560
+ function skeleton(props) {
3561
+ return composeClassNames("skeleton", radius(props));
3562
+ }
3563
+ function codeSkeleton(props) {
3564
+ return composeClassNames("font-skeleton", _resp("code-skeleton", props.size));
3565
+ }
3566
+ function headingSkeleton(props) {
3567
+ return composeClassNames("font-skeleton", _resp("heading-skeleton", props.size));
3568
+ }
3569
+ function labelSkeleton(props) {
3570
+ return composeClassNames("font-skeleton", _resp("label-skeleton", props.size));
3571
+ }
3572
+ function textSkeleton(props) {
3573
+ return composeClassNames("font-skeleton", _resp("text-skeleton", props.size));
3574
+ }
3575
+ function treeItem() {
3576
+ return composeClassNames("tree-item");
3577
+ }
2855
3578
  function avatar(props) {
2856
- return composeClassNames(
2857
- "avatar",
2858
- `avatar-${props.color}`,
2859
- `avatar-arrow-${props.arrowPosition}`,
2860
- _resp("avatar", props.size)
2861
- );
3579
+ return composeClassNames("avatar", `avatar-${props.color}`, `avatar-arrow-${props.arrowPosition}`, _resp("avatar", props.size));
2862
3580
  }
2863
3581
  function avatarArrow() {
2864
3582
  return composeClassNames("avatar-arrow");
@@ -2875,9 +3593,6 @@ function avatarStroke() {
2875
3593
  function avatarImage() {
2876
3594
  return composeClassNames("avatar-image");
2877
3595
  }
2878
- function radius(props) {
2879
- return composeClassNames(_resp("r", props.radius));
2880
- }
2881
3596
  function badge(props) {
2882
3597
  return composeClassNames("badge", props.tone && `badge-${props.tone}`, radius(props));
2883
3598
  }
@@ -2892,12 +3607,7 @@ const prefixes$2 = {
2892
3607
  // `flex-wrap`
2893
3608
  };
2894
3609
  function flex(props) {
2895
- return composeClassNames(
2896
- _resp(prefixes$2.align, props.align),
2897
- _resp(prefixes$2.direction, props.direction),
2898
- _resp(prefixes$2.justify, props.justify),
2899
- _resp(prefixes$2.wrap, props.wrap)
2900
- );
3610
+ return composeClassNames(_resp(prefixes$2.align, props.align), _resp(prefixes$2.direction, props.direction), _resp(prefixes$2.justify, props.justify), _resp(prefixes$2.wrap, props.wrap));
2901
3611
  }
2902
3612
  function flexItem(props) {
2903
3613
  return composeClassNames(_resp("flex", props.flex));
@@ -2905,40 +3615,23 @@ function flexItem(props) {
2905
3615
  function gap(props) {
2906
3616
  return composeClassNames(_resp("g", props.gap), _resp("gx", props.gapX), _resp("gy", props.gapY));
2907
3617
  }
3618
+ function grid(props) {
3619
+ 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));
3620
+ }
2908
3621
  function gridItem(props) {
2909
- return composeClassNames(
2910
- _resp("col", props.column),
2911
- _resp("col-start", props.columnStart),
2912
- _resp("col-end", props.columnEnd),
2913
- _resp("row", props.row),
2914
- _resp("row-start", props.rowStart),
2915
- _resp("row-end", props.rowEnd)
2916
- );
3622
+ 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));
2917
3623
  }
2918
3624
  function margin(props) {
2919
- return composeClassNames(
2920
- _resp("m", props.margin),
2921
- _resp("mx", props.marginX),
2922
- _resp("my", props.marginY),
2923
- _resp("mt", props.marginTop),
2924
- _resp("mr", props.marginRight),
2925
- _resp("mb", props.marginBottom),
2926
- _resp("ml", props.marginLeft)
2927
- );
3625
+ return composeClassNames(_resp("m", props.margin), _resp("mx", props.marginX), _resp("my", props.marginY), _resp("mt", props.marginTop), _resp("mr", props.marginRight), _resp("mb", props.marginBottom), _resp("ml", props.marginLeft));
2928
3626
  }
2929
3627
  function maxWidth(props) {
2930
3628
  return _resp("max-w", props.maxWidth) ?? "";
2931
3629
  }
3630
+ function overflow(props) {
3631
+ return composeClassNames(_resp("overflow", props.overflow), _resp("overflow-x", props.overflowX), _resp("overflow-y", props.overflowY));
3632
+ }
2932
3633
  function padding(props) {
2933
- return composeClassNames(
2934
- _resp("p", props.padding),
2935
- _resp("px", props.paddingX),
2936
- _resp("py", props.paddingY),
2937
- _resp("pt", props.paddingTop),
2938
- _resp("pr", props.paddingRight),
2939
- _resp("pb", props.paddingBottom),
2940
- _resp("pl", props.paddingLeft)
2941
- );
3634
+ return composeClassNames(_resp("p", props.padding), _resp("px", props.paddingX), _resp("py", props.paddingY), _resp("pt", props.paddingTop), _resp("pr", props.paddingRight), _resp("pb", props.paddingBottom), _resp("pl", props.paddingLeft));
2942
3635
  }
2943
3636
  function pointerEvents(props) {
2944
3637
  return composeClassNames(props.pointerEvents && `pointer-events-${props.pointerEvents}`);
@@ -2950,33 +3643,14 @@ function width(props) {
2950
3643
  return _resp("w", props.width) ?? "";
2951
3644
  }
2952
3645
  function box(props) {
2953
- return composeClassNames(
2954
- "box",
2955
- _resp(void 0, props.display),
2956
- _resp("h", props.height),
2957
- _resp("overflow", props.overflow),
2958
- _resp("box", props.sizing),
2959
- flex(props),
2960
- flexItem(props),
2961
- gridItem(props),
2962
- gap(props),
2963
- margin(props),
2964
- maxWidth(props),
2965
- padding(props),
2966
- pointerEvents(props),
2967
- position(props),
2968
- width(props)
2969
- );
3646
+ return composeClassNames("box", _resp(void 0, props.display), _resp("h", props.height), _resp("box", props.sizing), flex(props), flexItem(props), grid(props), gridItem(props), gap(props), margin(props), maxWidth(props), props.outline && `outline-${props.outline}`, overflow(props), padding(props), pointerEvents(props), position(props), width(props));
2970
3647
  }
2971
3648
  function button(props) {
2972
- const { mode = "default", tone = "default" } = props;
2973
- return composeClassNames(
2974
- "button",
2975
- `button-mode-${mode}`,
2976
- `button-tone-${tone}`,
2977
- radius(props),
2978
- width(props)
2979
- );
3649
+ const {
3650
+ mode = "default",
3651
+ tone = "default"
3652
+ } = props;
3653
+ return composeClassNames("button", `button-mode-${mode}`, `button-tone-${tone}`, radius(props), width(props));
2980
3654
  }
2981
3655
  function buttonLoadingBox() {
2982
3656
  return "button-loading-box";
@@ -2989,23 +3663,10 @@ const prefixes$1 = {
2989
3663
  borderLeft: "border-l"
2990
3664
  };
2991
3665
  function border(props) {
2992
- return composeClassNames(
2993
- _resp(prefixes$1.border, props.border),
2994
- _resp(prefixes$1.borderTop, props.borderTop),
2995
- _resp(prefixes$1.borderRight, props.borderRight),
2996
- _resp(prefixes$1.borderBottom, props.borderBottom),
2997
- _resp(prefixes$1.borderLeft, props.borderLeft)
2998
- );
3666
+ return composeClassNames(_resp(prefixes$1.border, props.border), _resp(prefixes$1.borderTop, props.borderTop), _resp(prefixes$1.borderRight, props.borderRight), _resp(prefixes$1.borderBottom, props.borderBottom), _resp(prefixes$1.borderLeft, props.borderLeft));
2999
3667
  }
3000
3668
  function card(props) {
3001
- return composeClassNames(
3002
- "card",
3003
- props.checkered && "card-checkered",
3004
- box(props),
3005
- border(props),
3006
- radius(props),
3007
- props.shadow === void 0 ? void 0 : `shadow-${props.shadow}`
3008
- );
3669
+ return composeClassNames("card", props.checkered && "card-checkered", box(props), border(props), radius(props), props.shadow === void 0 ? void 0 : `shadow-${props.shadow}`);
3009
3670
  }
3010
3671
  function checkbox() {
3011
3672
  return composeClassNames("checkbox");
@@ -3014,39 +3675,28 @@ function checkboxInput() {
3014
3675
  return composeClassNames("checkbox-input");
3015
3676
  }
3016
3677
  const prefixes = {
3678
+ align: "text-align",
3017
3679
  weight: "font"
3018
3680
  };
3019
3681
  function font(props) {
3020
- return composeClassNames("font", _resp(prefixes.weight, props.weight));
3682
+ return composeClassNames("font", props.weight && `${prefixes.weight}-${props.weight}`, _resp(prefixes.align, props.align));
3021
3683
  }
3022
3684
  function code(props) {
3023
3685
  return composeClassNames("code", "block", font(props), _resp("code", props.size));
3024
3686
  }
3025
3687
  function container(props) {
3026
- return composeClassNames("container", maxWidth({ maxWidth: props.width }));
3688
+ return composeClassNames("container", maxWidth({
3689
+ maxWidth: props.width
3690
+ }));
3027
3691
  }
3028
3692
  function heading(props) {
3029
- return composeClassNames(
3030
- "heading",
3031
- "block",
3032
- font(props),
3033
- props.accent && "heading-accent",
3034
- props.muted && "heading-muted",
3035
- _resp("heading", props.size)
3036
- );
3693
+ return composeClassNames("heading", "block", font(props), props.accent && "heading-accent", props.muted && "heading-muted", _resp("heading", props.size));
3037
3694
  }
3038
3695
  function kbd(props) {
3039
3696
  return composeClassNames("kbd", radius(props));
3040
3697
  }
3041
3698
  function label(props) {
3042
- return composeClassNames(
3043
- "label",
3044
- "block",
3045
- font(props),
3046
- props.accent && "label-accent",
3047
- props.muted && "label-muted",
3048
- _resp("label", props.size)
3049
- );
3699
+ return composeClassNames("label", "block", font(props), props.accent && "label-accent", props.muted && "label-muted", _resp("label", props.size));
3050
3700
  }
3051
3701
  function popover() {
3052
3702
  return composeClassNames("popover");
@@ -3058,30 +3708,31 @@ function select() {
3058
3708
  return composeClassNames("select");
3059
3709
  }
3060
3710
  function selectable(props) {
3061
- const { tone = "default" } = props;
3711
+ const {
3712
+ tone = "default"
3713
+ } = props;
3062
3714
  return composeClassNames("selectable", `selectable-tone-${tone}`, radius(props));
3063
3715
  }
3064
3716
  function spinner() {
3065
3717
  return composeClassNames("spinner");
3066
3718
  }
3719
+ function animatedSpinnerIcon() {
3720
+ return composeClassNames("animated-spinner-icon");
3721
+ }
3067
3722
  function _switch() {
3068
3723
  return composeClassNames("switch");
3069
3724
  }
3070
3725
  function text(props) {
3071
- return composeClassNames(
3072
- "text",
3073
- "block",
3074
- font(props),
3075
- props.accent && "text-accent",
3076
- props.muted && "text-muted",
3077
- _resp("text", props.size)
3078
- );
3726
+ return composeClassNames("text", "block", font(props), props.accent && "text-accent", props.muted && "text-muted", _resp("text", props.size));
3079
3727
  }
3080
3728
  function textArea() {
3081
3729
  return composeClassNames("text-area");
3082
3730
  }
3083
3731
  function textInput(props) {
3084
- return composeClassNames("text-input", _resp("text-input", props.size));
3732
+ return composeClassNames("text-input", _resp("text-input", props.size), _resp("text-input-p", props.padding));
3733
+ }
3734
+ function textInputElement() {
3735
+ return composeClassNames("text-input-element");
3085
3736
  }
3086
3737
  function tooltip() {
3087
3738
  return composeClassNames("tooltip");
@@ -3091,6 +3742,7 @@ function tooltipCard() {
3091
3742
  }
3092
3743
  export {
3093
3744
  _switch,
3745
+ animatedSpinnerIcon,
3094
3746
  avatar,
3095
3747
  avatarArrow,
3096
3748
  avatarBgStroke,
@@ -3106,6 +3758,7 @@ export {
3106
3758
  checkbox,
3107
3759
  checkboxInput,
3108
3760
  code,
3761
+ codeSkeleton,
3109
3762
  compileSystem,
3110
3763
  compileTheme,
3111
3764
  composeClassNames,
@@ -3118,16 +3771,22 @@ export {
3118
3771
  dialogHeader,
3119
3772
  dialogLayout,
3120
3773
  heading,
3774
+ headingSkeleton,
3121
3775
  kbd,
3122
3776
  label,
3777
+ labelSkeleton,
3778
+ menuDivider,
3123
3779
  popover,
3124
3780
  radio,
3125
3781
  select,
3126
3782
  selectable,
3783
+ skeleton,
3127
3784
  spinner,
3128
3785
  text,
3129
3786
  textArea,
3130
3787
  textInput,
3788
+ textInputElement,
3789
+ textSkeleton,
3131
3790
  tooltip,
3132
3791
  tooltipCard,
3133
3792
  treeItem