@sanity/ui 3.0.0-static.16 → 3.0.0-static.18

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 (98) hide show
  1. package/README.md +2 -4
  2. package/bin/{ui.js → sanity-ui.cjs} +1 -1
  3. package/dist/_chunks-cjs/{_visual-editing.js → _visual-editing.cjs} +6 -6
  4. package/dist/_chunks-cjs/_visual-editing.cjs.map +1 -0
  5. package/dist/_chunks-cjs/{buildCommand.js → buildCommand.cjs} +26 -10
  6. package/dist/_chunks-cjs/buildCommand.cjs.map +1 -0
  7. package/dist/_chunks-cjs/{refractor.js → refractor.cjs} +1 -1
  8. package/dist/_chunks-cjs/refractor.cjs.map +1 -0
  9. package/dist/_chunks-es/{_visual-editing.mjs → _visual-editing.js} +7 -7
  10. package/dist/_chunks-es/_visual-editing.js.map +1 -0
  11. package/dist/_chunks-es/{refractor.mjs → refractor.js} +1 -1
  12. package/dist/_chunks-es/refractor.js.map +1 -0
  13. package/dist/_visual-editing.cjs +30 -0
  14. package/dist/_visual-editing.cjs.map +1 -0
  15. package/dist/_visual-editing.js +29 -29
  16. package/dist/_visual-editing.js.map +1 -1
  17. package/dist/{cli.js → cli.cjs} +4 -4
  18. package/dist/cli.cjs.map +1 -0
  19. package/dist/{css.mjs → css.cjs} +491 -499
  20. package/dist/css.cjs.map +1 -0
  21. package/dist/{css.d.mts → css.d.cts} +26 -26
  22. package/dist/css.d.ts +26 -26
  23. package/dist/css.js +491 -497
  24. package/dist/css.js.map +1 -1
  25. package/dist/{index.mjs → index.cjs} +368 -367
  26. package/dist/{index.mjs.map → index.cjs.map} +1 -1
  27. package/dist/{index.d.mts → index.d.cts} +3 -2
  28. package/dist/index.d.ts +3 -2
  29. package/dist/index.js +366 -367
  30. package/dist/index.js.map +1 -1
  31. package/dist/{theme.mjs → theme.cjs} +219 -196
  32. package/dist/theme.cjs.map +1 -0
  33. package/dist/{theme.d.mts → theme.d.cts} +2 -0
  34. package/dist/theme.d.ts +2 -0
  35. package/dist/theme.js +218 -195
  36. package/dist/theme.js.map +1 -1
  37. package/dist/{sanity-palette.css → ui-palette.css} +1 -1
  38. package/dist/ui-palette.min.css +1 -0
  39. package/dist/{system.css → ui-system.css} +258 -140
  40. package/dist/ui-system.min.css +1 -0
  41. package/dist/{sanity-theme.css → ui-theme.css} +199 -199
  42. package/dist/ui-theme.min.css +1 -0
  43. package/dist/ui.css +29152 -0
  44. package/dist/ui.min.css +1 -0
  45. package/package.json +20 -20
  46. package/src/cli/buildCommand.ts +55 -20
  47. package/src/cli/index.ts +1 -1
  48. package/src/core/StyleTags.tsx +4 -4
  49. package/src/core/components/autocomplete/__workshop__/async.tsx +2 -2
  50. package/src/core/components/autocomplete/__workshop__/custom.tsx +2 -2
  51. package/src/core/components/autocomplete/__workshop__/focusAndBlur.tsx +3 -3
  52. package/src/core/hooks/useMediaIndex/useMediaIndex.test.tsx +2 -18
  53. package/src/core/hooks/useMediaIndex/useMediaIndex.ts +9 -9
  54. package/src/core/primitives/button/__workshop__/custom.tsx +18 -41
  55. package/src/core/primitives/button/button.tsx +3 -1
  56. package/src/core/primitives/card/__workshop__/asButton.tsx +0 -9
  57. package/src/core/primitives/card/__workshop__/interactive.tsx +0 -1
  58. package/src/core/primitives/card/__workshop__/props.tsx +0 -3
  59. package/src/core/primitives/card/__workshop__/selected.tsx +6 -37
  60. package/src/core/primitives/heading/__workshop__/opticalAlignment.tsx +1 -1
  61. package/src/core/primitives/heading/__workshop__/plain.tsx +1 -8
  62. package/src/core/primitives/label/__workshop__/plain.tsx +1 -9
  63. package/src/core/primitives/text/__workshop__/example.tsx +1 -9
  64. package/src/css/{compilePalette.ts → _compilePalette.ts} +2 -2
  65. package/src/css/{compileSystem.ts → _compileSystem.ts} +1 -1
  66. package/src/css/{compileTheme.ts → _compileTheme.ts} +3 -3
  67. package/src/css/{compileTheme_v3.ts → _compileTheme_v3.ts} +7 -1
  68. package/src/css/_system.style.ts +1 -0
  69. package/src/css/constants.ts +1 -0
  70. package/src/css/index.ts +3 -3
  71. package/src/css/primitives/button/button.style.ts +23 -9
  72. package/src/css/primitives/button/button.ts +1 -12
  73. package/src/css/primitives/button/types.ts +1 -6
  74. package/src/css/primitives/card/card.style.ts +12 -21
  75. package/src/css/primitives/kbd/kbd.style.ts +3 -6
  76. package/src/css/types.ts +32 -27
  77. package/src/theme/v3/color/buildColor_v3.ts +53 -25
  78. package/src/theme/v3/color/card.ts +0 -42
  79. package/src/theme/v3/color/renderColor.test.ts +1 -0
  80. package/src/theme/v3/color/renderColor.ts +9 -2
  81. package/src/theme/v3/color/token.ts +1 -0
  82. package/src/theme/v3/defaultTokens.ts +7 -2
  83. package/dist/_chunks-cjs/_visual-editing.js.map +0 -1
  84. package/dist/_chunks-cjs/buildCommand.js.map +0 -1
  85. package/dist/_chunks-cjs/refractor.js.map +0 -1
  86. package/dist/_chunks-es/_visual-editing.mjs.map +0 -1
  87. package/dist/_chunks-es/refractor.mjs.map +0 -1
  88. package/dist/_visual-editing.mjs +0 -30
  89. package/dist/_visual-editing.mjs.map +0 -1
  90. package/dist/cli.js.map +0 -1
  91. package/dist/css.mjs.map +0 -1
  92. package/dist/sanity-palette.min.css +0 -1
  93. package/dist/sanity-theme.min.css +0 -1
  94. package/dist/system.min.css +0 -1
  95. package/dist/theme.mjs.map +0 -1
  96. package/src/css/primitives/button/_constants.ts +0 -17
  97. /package/dist/{_visual-editing.d.mts → _visual-editing.d.cts} +0 -0
  98. /package/dist/{cli.d.ts → cli.d.cts} +0 -0
package/dist/css.js CHANGED
@@ -1,84 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: !0 });
3
- var color = require("@sanity/color"), theme = require("@sanity/ui/theme");
4
- function _resp(prefix, prop) {
5
- if (!(prop === void 0 || prop === !1))
6
- return Array.isArray(prop) ? prop.map((value, index) => {
7
- if (value === void 0 || typeof prop == "boolean" && prop === !1) return;
8
- const className = (typeof value == "boolean" ? [prefix] : [prefix, value]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
9
- return index === 0 ? className : `${index}:${className}`;
10
- }).filter(Boolean).join(" ") : (typeof prop == "boolean" ? [prefix] : [prefix, prop]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
11
- }
12
- function _getClassNames(...classNames) {
13
- return classNames.map((n) => typeof n == "string" && n.trim()).filter(Boolean).join(" ").split(" ");
14
- }
15
- function composeClassNames(...classNames) {
16
- return unique(_getClassNames(...classNames)).join(" ") || void 0;
17
- }
18
- function unique(array) {
19
- return Array.from(new Set(array));
20
- }
21
- function border(props) {
22
- return composeClassNames(_resp("border", props.border), _resp("border-t", props.borderTop), _resp("border-r", props.borderRight), _resp("border-b", props.borderBottom), _resp("border-l", props.borderLeft));
23
- }
24
- function display(props) {
25
- return composeClassNames(_resp(void 0, props.display));
26
- }
27
- function flex(props) {
28
- return composeClassNames(_resp("flex-align", props.align), _resp("f", props.direction), _resp("flex-justify", props.justify), _resp("flex", props.wrap));
29
- }
30
- function flexItem(props) {
31
- return composeClassNames(_resp("f", props.flex));
32
- }
33
- function font(props) {
34
- return composeClassNames("font", props.weight && `font-${props.weight}`);
35
- }
36
- function gap(props) {
37
- return composeClassNames(_resp("g", props.gap), _resp("gx", props.gapX), _resp("gy", props.gapY));
38
- }
39
- function grid(props) {
40
- return composeClassNames(_resp("auto-cols", props.autoCols), _resp("auto-flow", props.autoFlow), _resp("auto-rows", props.autoRows), _resp("cols", props.columns), _resp("rows", props.rows));
41
- }
42
- function gridItem(props) {
43
- return composeClassNames(_resp("col", props.column), _resp("col-start", props.columnStart), _resp("col-end", props.columnEnd), _resp("row", props.row), _resp("row-start", props.rowStart), _resp("row-end", props.rowEnd));
44
- }
45
- function height(props) {
46
- return composeClassNames(_resp("h", props.height));
47
- }
48
- function inset(props) {
49
- return composeClassNames(_resp("inset", props.inset), _resp("top", props.insetTop), _resp("right", props.insetRight), _resp("bottom", props.insetBottom), _resp("left", props.insetLeft));
50
- }
51
- function margin(props) {
52
- return composeClassNames(_resp("m", props.margin), _resp("mx", props.marginX), _resp("my", props.marginY), _resp("mt", props.marginTop), _resp("mr", props.marginRight), _resp("mb", props.marginBottom), _resp("ml", props.marginLeft));
53
- }
54
- function maxWidth(props) {
55
- return _resp("max-w", props.maxWidth) ?? "";
56
- }
57
- function minWidth(props) {
58
- return _resp("min-w", props.minWidth) ?? "";
59
- }
60
- function overflow(props) {
61
- return composeClassNames(_resp("overflow", props.overflow), _resp("overflow-x", props.overflowX), _resp("overflow-y", props.overflowY));
62
- }
63
- function padding(props) {
64
- return composeClassNames(_resp("p", props.padding), _resp("px", props.paddingX), _resp("py", props.paddingY), _resp("pt", props.paddingTop), _resp("pr", props.paddingRight), _resp("pb", props.paddingBottom), _resp("pl", props.paddingLeft));
65
- }
66
- function pointerEvents(props) {
67
- return composeClassNames(props.pointerEvents && `pointer-events-${props.pointerEvents}`);
68
- }
69
- function position(props) {
70
- return composeClassNames(_resp("position", props.position));
71
- }
72
- function radius(props) {
73
- return composeClassNames(_resp("r", props.radius));
74
- }
75
- function shadow(props) {
76
- return composeClassNames(_resp("shadow", props.shadow));
77
- }
78
- function textAlign(props) {
79
- return composeClassNames(_resp("text-align", props.textAlign));
80
- }
1
+ import { COLOR_HUES, COLOR_TINTS, color } from "@sanity/color";
2
+ import { SPACE, SHADOW, RADIUS, FONT_TEXT_SIZE, FONT_LABEL_SIZE, FONT_HEADING_SIZE, FONT_CODE_SIZE, THEME_COLOR_CARD_TONES, AVATAR_SIZE, THEME_COLOR_STATE_TONES, HUES, TINTS, THEME_COLOR_AVATAR_COLORS, THEME_COLOR_SCHEMES as THEME_COLOR_SCHEMES$1, renderColor } from "@sanity/ui/theme";
81
3
  const BREAKPOINTS = {
4
+ 0: 0,
82
5
  1: 360,
83
6
  2: 600,
84
7
  3: 900,
@@ -86,19 +9,6 @@ const BREAKPOINTS = {
86
9
  5: 1800,
87
10
  6: 2400
88
11
  }, PREFIX = "s-";
89
- function scopeClassName(className) {
90
- if (className !== void 0)
91
- return `${PREFIX}${className.trim()}`;
92
- }
93
- function _comp(...classNames) {
94
- return _getClassNames(...classNames).filter(Boolean).map(scopeClassName).join(" ") || void 0;
95
- }
96
- function textOverflow(props) {
97
- return _comp(props.textOverflow && `text-overflow-${props.textOverflow}`);
98
- }
99
- function width(props) {
100
- return _resp("w", props.width) ?? "";
101
- }
102
12
  function isRecord(value) {
103
13
  return value !== null && typeof value == "object" && !Array.isArray(value);
104
14
  }
@@ -210,7 +120,7 @@ const varNames = {
210
120
  width: "--avatar-focus-ring-width"
211
121
  },
212
122
  size: "--avatar-size",
213
- sizes: theme.AVATAR_SIZE.reduce((acc, size) => ({
123
+ sizes: AVATAR_SIZE.reduce((acc, size) => ({
214
124
  ...acc,
215
125
  [size]: {
216
126
  distance: `--avatar-${size}-distance`,
@@ -351,15 +261,15 @@ const varNames = {
351
261
  variant: "tinted"
352
262
  }),
353
263
  // tone scopes
354
- ...theme.THEME_COLOR_CARD_TONES.reduce((acc, tone) => (acc[tone] = buildColorCardVarNames({
264
+ ...THEME_COLOR_CARD_TONES.reduce((acc, tone) => (acc[tone] = buildColorCardVarNames({
355
265
  tone
356
266
  }), acc), {}),
357
267
  // scheme scopes
358
- dark: theme.THEME_COLOR_CARD_TONES.reduce((acc, tone) => (acc[tone] = buildColorCardVarNames({
268
+ dark: THEME_COLOR_CARD_TONES.reduce((acc, tone) => (acc[tone] = buildColorCardVarNames({
359
269
  scheme: "dark",
360
270
  tone
361
271
  }), acc), {}),
362
- light: theme.THEME_COLOR_CARD_TONES.reduce((acc, tone) => (acc[tone] = buildColorCardVarNames({
272
+ light: THEME_COLOR_CARD_TONES.reduce((acc, tone) => (acc[tone] = buildColorCardVarNames({
363
273
  scheme: "light",
364
274
  tone
365
275
  }), acc), {})
@@ -376,7 +286,7 @@ const varNames = {
376
286
  code: {
377
287
  family: "--font-code-family",
378
288
  featureSettings: "--font-code-feature-settings",
379
- sizes: theme.FONT_CODE_SIZE.reduce((acc, size) => ({
289
+ sizes: FONT_CODE_SIZE.reduce((acc, size) => ({
380
290
  ...acc,
381
291
  [size]: {
382
292
  fontSize: `--font-code-${size}-size`,
@@ -397,7 +307,7 @@ const varNames = {
397
307
  heading: {
398
308
  family: "--font-heading-family",
399
309
  featureSettings: "--font-heading-feature-settings",
400
- sizes: theme.FONT_HEADING_SIZE.reduce((acc, size) => ({
310
+ sizes: FONT_HEADING_SIZE.reduce((acc, size) => ({
401
311
  ...acc,
402
312
  [size]: {
403
313
  fontSize: `--font-heading-${size}-size`,
@@ -418,7 +328,7 @@ const varNames = {
418
328
  label: {
419
329
  family: "--font-label-family",
420
330
  featureSettings: "--font-label-feature-settings",
421
- sizes: theme.FONT_LABEL_SIZE.reduce((acc, size) => ({
331
+ sizes: FONT_LABEL_SIZE.reduce((acc, size) => ({
422
332
  ...acc,
423
333
  [size]: {
424
334
  fontSize: `--font-label-${size}-size`,
@@ -439,7 +349,7 @@ const varNames = {
439
349
  text: {
440
350
  family: "--font-text-family",
441
351
  featureSettings: "--font-text-feature-settings",
442
- sizes: theme.FONT_TEXT_SIZE.reduce((acc, size) => ({
352
+ sizes: FONT_TEXT_SIZE.reduce((acc, size) => ({
443
353
  ...acc,
444
354
  [size]: {
445
355
  fontSize: `--font-text-${size}-size`,
@@ -508,19 +418,19 @@ const varNames = {
508
418
  gap: "--input-gap",
509
419
  padding: "--input-padding"
510
420
  },
511
- radius: Object.fromEntries(theme.RADIUS.map((radius2) => [radius2, `--radius-${radius2}`])),
512
- shadow: Object.fromEntries(theme.SHADOW.map((shadow2) => [shadow2, {
421
+ radius: Object.fromEntries(RADIUS.map((radius2) => [radius2, `--radius-${radius2}`])),
422
+ shadow: Object.fromEntries(SHADOW.map((shadow2) => [shadow2, {
513
423
  umbra: `--shadow-${shadow2}-umbra`,
514
424
  penumbra: `--shadow-${shadow2}-penumbra`,
515
425
  ambient: `--shadow-${shadow2}-ambient`
516
426
  }])),
517
- space: Object.fromEntries(theme.SPACE.map((space) => [space, `--space-${String(space).replace(".", "_")}`])),
427
+ space: Object.fromEntries(SPACE.map((space) => [space, `--space-${String(space).replace(".", "_")}`])),
518
428
  // color
519
429
  black: "--black",
520
430
  white: "--white",
521
- ...color.COLOR_HUES.reduce((acc, hue) => {
431
+ ...COLOR_HUES.reduce((acc, hue) => {
522
432
  const tints = {};
523
- for (const tint of color.COLOR_TINTS)
433
+ for (const tint of COLOR_TINTS)
524
434
  tints[tint] = `--${hue}-${tint}`;
525
435
  return acc[hue] = tints, acc;
526
436
  }, {})
@@ -670,7 +580,7 @@ function buildColorVariantVarNames(options) {
670
580
  4: `${prefix}-fg-4`
671
581
  }
672
582
  };
673
- for (const elementTone of theme.THEME_COLOR_STATE_TONES) {
583
+ for (const elementTone of THEME_COLOR_STATE_TONES) {
674
584
  const _prefix = scheme && tone ? `--color-${scheme}-${tone}-${variant}-${elementTone}` : tone ? `--color-${tone}-${variant}-${elementTone}` : `--color-${variant}-${elementTone}`;
675
585
  vars2[elementTone] = {
676
586
  bg: {
@@ -698,10 +608,10 @@ function buildColorVariantVarNames(options) {
698
608
  }
699
609
  return vars2;
700
610
  }
701
- function compilePalette() {
611
+ function _compilePalette() {
702
612
  return _compileStyle({
703
613
  layers: {
704
- theme: {
614
+ palette: {
705
615
  ":root": compilePaletteProperties()
706
616
  }
707
617
  }
@@ -709,12 +619,12 @@ function compilePalette() {
709
619
  }
710
620
  function compilePaletteProperties() {
711
621
  const rules2 = {
712
- [varNames.black]: color.color.black.hex,
713
- [varNames.white]: color.color.white.hex
622
+ [varNames.black]: color.black.hex,
623
+ [varNames.white]: color.white.hex
714
624
  };
715
- for (const hue of theme.HUES)
716
- for (const tint of theme.TINTS)
717
- rules2[varNames[hue][tint]] = color.color[hue][tint].hex;
625
+ for (const hue of HUES)
626
+ for (const tint of TINTS)
627
+ rules2[varNames[hue][tint]] = color[hue][tint].hex;
718
628
  return rules2;
719
629
  }
720
630
  function _mergeStyles(styles) {
@@ -760,13 +670,13 @@ function _responsiveRule(rules2, _name, properties) {
760
670
  };
761
671
  }
762
672
  const darkColorVars = {};
763
- for (const tone of theme.THEME_COLOR_CARD_TONES)
673
+ for (const tone of THEME_COLOR_CARD_TONES)
764
674
  darkColorVars[tone] = buildColorCardVars({
765
675
  scheme: "dark",
766
676
  tone
767
677
  });
768
678
  const lightColorVars = {};
769
- for (const tone of theme.THEME_COLOR_CARD_TONES)
679
+ for (const tone of THEME_COLOR_CARD_TONES)
770
680
  lightColorVars[tone] = buildColorCardVars({
771
681
  scheme: "light",
772
682
  tone
@@ -888,7 +798,7 @@ const colorVars = {
888
798
  tinted: buildColorVariantVars({
889
799
  variant: "tinted"
890
800
  }),
891
- ...theme.THEME_COLOR_CARD_TONES.reduce((acc, tone) => ({
801
+ ...THEME_COLOR_CARD_TONES.reduce((acc, tone) => ({
892
802
  ...acc,
893
803
  [tone]: buildColorCardVars({
894
804
  tone
@@ -900,7 +810,7 @@ const colorVars = {
900
810
  avatar: {
901
811
  distance: `var(${varNames.avatar.distance})`,
902
812
  size: `var(${varNames.avatar.size})`,
903
- sizes: theme.AVATAR_SIZE.reduce((acc, size) => ({
813
+ sizes: AVATAR_SIZE.reduce((acc, size) => ({
904
814
  ...acc,
905
815
  [size]: {
906
816
  size: `var(${varNames.avatar.sizes[size].size})`,
@@ -925,7 +835,7 @@ const colorVars = {
925
835
  font: {
926
836
  code: {
927
837
  family: `var(${varNames.font.code.family})`,
928
- sizes: theme.FONT_CODE_SIZE.reduce((acc, size) => ({
838
+ sizes: FONT_CODE_SIZE.reduce((acc, size) => ({
929
839
  ...acc,
930
840
  [size]: {
931
841
  fontSize: `var(${varNames.font.code.sizes[size].fontSize})`,
@@ -945,7 +855,7 @@ const colorVars = {
945
855
  },
946
856
  heading: {
947
857
  family: `var(${varNames.font.heading.family})`,
948
- sizes: theme.FONT_HEADING_SIZE.reduce((acc, size) => ({
858
+ sizes: FONT_HEADING_SIZE.reduce((acc, size) => ({
949
859
  ...acc,
950
860
  [size]: {
951
861
  fontSize: `var(${varNames.font.heading.sizes[size].fontSize})`,
@@ -965,7 +875,7 @@ const colorVars = {
965
875
  },
966
876
  label: {
967
877
  family: `var(${varNames.font.label.family})`,
968
- sizes: theme.FONT_LABEL_SIZE.reduce((acc, size) => ({
878
+ sizes: FONT_LABEL_SIZE.reduce((acc, size) => ({
969
879
  ...acc,
970
880
  [size]: {
971
881
  fontSize: `var(${varNames.font.label.sizes[size].fontSize})`,
@@ -985,7 +895,7 @@ const colorVars = {
985
895
  },
986
896
  text: {
987
897
  family: `var(${varNames.font.text.family})`,
988
- sizes: theme.FONT_TEXT_SIZE.reduce((acc, size) => ({
898
+ sizes: FONT_TEXT_SIZE.reduce((acc, size) => ({
989
899
  ...acc,
990
900
  [size]: {
991
901
  fontSize: `var(${varNames.font.text.sizes[size].fontSize})`,
@@ -1020,19 +930,19 @@ const colorVars = {
1020
930
  }
1021
931
  }
1022
932
  },
1023
- radius: Object.fromEntries(theme.RADIUS.map((radius2) => [radius2, `var(${varNames.radius[radius2]})`])),
1024
- shadow: Object.fromEntries(theme.SHADOW.map((shadow2) => [shadow2, {
933
+ radius: Object.fromEntries(RADIUS.map((radius2) => [radius2, `var(${varNames.radius[radius2]})`])),
934
+ shadow: Object.fromEntries(SHADOW.map((shadow2) => [shadow2, {
1025
935
  umbra: `var(${varNames.shadow[shadow2].umbra})`,
1026
936
  penumbra: `var(${varNames.shadow[shadow2].penumbra})`,
1027
937
  ambient: `var(${varNames.shadow[shadow2].ambient})`
1028
938
  }])),
1029
- space: Object.fromEntries(theme.SPACE.map((space) => [space, `var(${varNames.space[space]})`])),
939
+ space: Object.fromEntries(SPACE.map((space) => [space, `var(${varNames.space[space]})`])),
1030
940
  // color
1031
941
  black: `var(${varNames.black})`,
1032
942
  white: `var(${varNames.white})`,
1033
- ...color.COLOR_HUES.reduce((acc, hue) => {
943
+ ...COLOR_HUES.reduce((acc, hue) => {
1034
944
  const tints = {};
1035
- for (const tint of color.COLOR_TINTS)
945
+ for (const tint of COLOR_TINTS)
1036
946
  tints[tint] = `var(--${hue}-${tint})`;
1037
947
  return acc[hue] = tints, acc;
1038
948
  }, {})
@@ -1044,7 +954,7 @@ function buildColorCardVars(props) {
1044
954
  } = props, prefix = scheme ? varNames.color[scheme][tone] : varNames.color[tone];
1045
955
  return {
1046
956
  avatar: {
1047
- ...theme.THEME_COLOR_AVATAR_COLORS.reduce((acc, color2) => ({
957
+ ...THEME_COLOR_AVATAR_COLORS.reduce((acc, color2) => ({
1048
958
  ...acc,
1049
959
  [color2]: {
1050
960
  bg: `var(${prefix.avatar[color2].bg})`,
@@ -1153,7 +1063,7 @@ function buildColorVariantVars(options) {
1153
1063
  4: `var(${_prefix}-fg-4)`
1154
1064
  }
1155
1065
  };
1156
- for (const elementTone of theme.THEME_COLOR_STATE_TONES) {
1066
+ for (const elementTone of THEME_COLOR_STATE_TONES) {
1157
1067
  const prefix = scheme && tone ? `--color-${scheme}-${tone}-${variant}-${elementTone}` : tone ? `--color-${tone}-${variant}-${elementTone}` : `--color-${variant}-${elementTone}`;
1158
1068
  vars2[elementTone] = {
1159
1069
  bg: {
@@ -1433,15 +1343,15 @@ const flexStyle = {
1433
1343
  primitive: primitive$q
1434
1344
  }
1435
1345
  }, util$n = {};
1436
- for (const space of theme.SPACE)
1346
+ for (const space of SPACE)
1437
1347
  _responsiveRule(util$n, `g-${space}`, {
1438
1348
  gap: vars.space[space]
1439
1349
  });
1440
- for (const space of theme.SPACE)
1350
+ for (const space of SPACE)
1441
1351
  _responsiveRule(util$n, `gx-${space}`, {
1442
1352
  columnGap: vars.space[space]
1443
1353
  });
1444
- for (const space of theme.SPACE)
1354
+ for (const space of SPACE)
1445
1355
  _responsiveRule(util$n, `gy-${space}`, {
1446
1356
  rowGap: vars.space[space]
1447
1357
  });
@@ -1875,33 +1785,33 @@ const insetStyle = {
1875
1785
  util: util$a
1876
1786
  }
1877
1787
  }, util$9 = {};
1878
- for (const space of theme.SPACE)
1788
+ for (const space of SPACE)
1879
1789
  _responsiveRule(util$9, `m-${space}`, {
1880
1790
  margin: vars.space[space]
1881
1791
  });
1882
- for (const space of theme.SPACE)
1792
+ for (const space of SPACE)
1883
1793
  _responsiveRule(util$9, `mx-${space}`, {
1884
1794
  marginLeft: vars.space[space],
1885
1795
  marginRight: vars.space[space]
1886
1796
  });
1887
- for (const space of theme.SPACE)
1797
+ for (const space of SPACE)
1888
1798
  _responsiveRule(util$9, `my-${space}`, {
1889
1799
  marginTop: vars.space[space],
1890
1800
  marginBottom: vars.space[space]
1891
1801
  });
1892
- for (const space of theme.SPACE)
1802
+ for (const space of SPACE)
1893
1803
  _responsiveRule(util$9, `mt-${space}`, {
1894
1804
  marginTop: vars.space[space]
1895
1805
  });
1896
- for (const space of theme.SPACE)
1806
+ for (const space of SPACE)
1897
1807
  _responsiveRule(util$9, `mr-${space}`, {
1898
1808
  marginRight: vars.space[space]
1899
1809
  });
1900
- for (const space of theme.SPACE)
1810
+ for (const space of SPACE)
1901
1811
  _responsiveRule(util$9, `mb-${space}`, {
1902
1812
  marginBottom: vars.space[space]
1903
1813
  });
1904
- for (const space of theme.SPACE)
1814
+ for (const space of SPACE)
1905
1815
  _responsiveRule(util$9, `ml-${space}`, {
1906
1816
  marginLeft: vars.space[space]
1907
1817
  });
@@ -1987,33 +1897,33 @@ const overflowStyle = {
1987
1897
  util: util$6
1988
1898
  }
1989
1899
  }, util$5 = {};
1990
- for (const space of theme.SPACE)
1900
+ for (const space of SPACE)
1991
1901
  _responsiveRule(util$5, `p-${space}`, {
1992
1902
  padding: vars.space[space]
1993
1903
  });
1994
- for (const space of theme.SPACE)
1904
+ for (const space of SPACE)
1995
1905
  _responsiveRule(util$5, `px-${space}`, {
1996
1906
  paddingLeft: vars.space[space],
1997
1907
  paddingRight: vars.space[space]
1998
1908
  });
1999
- for (const space of theme.SPACE)
1909
+ for (const space of SPACE)
2000
1910
  _responsiveRule(util$5, `py-${space}`, {
2001
1911
  paddingTop: vars.space[space],
2002
1912
  paddingBottom: vars.space[space]
2003
1913
  });
2004
- for (const space of theme.SPACE)
1914
+ for (const space of SPACE)
2005
1915
  _responsiveRule(util$5, `pt-${space}`, {
2006
1916
  paddingTop: vars.space[space]
2007
1917
  });
2008
- for (const space of theme.SPACE)
1918
+ for (const space of SPACE)
2009
1919
  _responsiveRule(util$5, `pr-${space}`, {
2010
1920
  paddingRight: vars.space[space]
2011
1921
  });
2012
- for (const space of theme.SPACE)
1922
+ for (const space of SPACE)
2013
1923
  _responsiveRule(util$5, `pb-${space}`, {
2014
1924
  paddingBottom: vars.space[space]
2015
1925
  });
2016
- for (const space of theme.SPACE)
1926
+ for (const space of SPACE)
2017
1927
  _responsiveRule(util$5, `pl-${space}`, {
2018
1928
  paddingLeft: vars.space[space]
2019
1929
  });
@@ -2082,7 +1992,7 @@ const radiusStyle = {
2082
1992
  util: util$3
2083
1993
  }
2084
1994
  }, util$2 = {};
2085
- for (const shadow2 of theme.SHADOW)
1995
+ for (const shadow2 of SHADOW)
2086
1996
  shadow2 === 0 ? _responsiveRule(util$2, "shadow-0", {
2087
1997
  boxShadow: "none"
2088
1998
  }) : _responsiveRule(util$2, `shadow-${shadow2}`, {
@@ -2270,25 +2180,25 @@ const widthStyle = {
2270
2180
  height: "calc(var(--font-skeleton-line-height) - var(--font-skeleton-ascender-height) - var(--font-skeleton-descender-height))"
2271
2181
  }
2272
2182
  };
2273
- for (const size of theme.FONT_CODE_SIZE)
2183
+ for (const size of FONT_CODE_SIZE)
2274
2184
  _responsiveRule(component$2, `code-skeleton-${size}`, {
2275
2185
  "--font-skeleton-line-height": vars.font.code.sizes[size].lineHeight,
2276
2186
  "--font-skeleton-ascender-height": vars.font.code.sizes[size].ascenderHeight,
2277
2187
  "--font-skeleton-descender-height": vars.font.code.sizes[size].descenderHeight
2278
2188
  });
2279
- for (const size of theme.FONT_HEADING_SIZE)
2189
+ for (const size of FONT_HEADING_SIZE)
2280
2190
  _responsiveRule(component$2, `heading-skeleton-${size}`, {
2281
2191
  "--font-skeleton-line-height": vars.font.heading.sizes[size].lineHeight,
2282
2192
  "--font-skeleton-ascender-height": vars.font.heading.sizes[size].ascenderHeight,
2283
2193
  "--font-skeleton-descender-height": vars.font.heading.sizes[size].descenderHeight
2284
2194
  });
2285
- for (const size of theme.FONT_LABEL_SIZE)
2195
+ for (const size of FONT_LABEL_SIZE)
2286
2196
  _responsiveRule(component$2, `label-skeleton-${size}`, {
2287
2197
  "--font-skeleton-line-height": vars.font.label.sizes[size].lineHeight,
2288
2198
  "--font-skeleton-ascender-height": vars.font.label.sizes[size].ascenderHeight,
2289
2199
  "--font-skeleton-descender-height": vars.font.label.sizes[size].descenderHeight
2290
2200
  });
2291
- for (const size of theme.FONT_TEXT_SIZE)
2201
+ for (const size of FONT_TEXT_SIZE)
2292
2202
  _responsiveRule(component$2, `text-skeleton-${size}`, {
2293
2203
  "--font-skeleton-line-height": vars.font.text.sizes[size].lineHeight,
2294
2204
  "--font-skeleton-ascender-height": vars.font.text.sizes[size].ascenderHeight,
@@ -2523,7 +2433,7 @@ const skeletonStyle = {
2523
2433
  }
2524
2434
  }
2525
2435
  };
2526
- for (const size of theme.FONT_TEXT_SIZE) {
2436
+ for (const size of FONT_TEXT_SIZE) {
2527
2437
  const source = vars.font.text.sizes[size];
2528
2438
  _responsiveRule(primitive$o, `input-${size}`, {
2529
2439
  [varNames.input.fontSize]: source.fontSize,
@@ -2533,11 +2443,11 @@ for (const size of theme.FONT_TEXT_SIZE) {
2533
2443
  [varNames.input.descenderHeight]: source.descenderHeight
2534
2444
  });
2535
2445
  }
2536
- for (const space of theme.SPACE)
2446
+ for (const space of SPACE)
2537
2447
  _responsiveRule(primitive$o, `input-p-${space}`, {
2538
2448
  [varNames.input.padding]: vars.space[space]
2539
2449
  });
2540
- for (const space of theme.SPACE)
2450
+ for (const space of SPACE)
2541
2451
  _responsiveRule(primitive$o, `input-g-${space}`, {
2542
2452
  [varNames.input.gap]: vars.space[space]
2543
2453
  });
@@ -2615,7 +2525,7 @@ const _inputStyle = {
2615
2525
  };
2616
2526
  function buildSelectableTones() {
2617
2527
  const rules2 = {};
2618
- for (const tone of theme.THEME_COLOR_STATE_TONES) {
2528
+ for (const tone of THEME_COLOR_STATE_TONES) {
2619
2529
  const target = varNames.color, source = vars.color;
2620
2530
  rules2[`&.${tone}`] = {
2621
2531
  [target.tinted.bg[0]]: source.tinted[tone].bg[0],
@@ -2686,7 +2596,7 @@ const primitive$m = {
2686
2596
  [varNames.color.avatar.bg]: vars.color.border,
2687
2597
  [varNames.color.avatar.fg]: vars.color.bg
2688
2598
  },
2689
- ...theme.THEME_COLOR_AVATAR_COLORS.reduce((acc, color2) => ({
2599
+ ...THEME_COLOR_AVATAR_COLORS.reduce((acc, color2) => ({
2690
2600
  ...acc,
2691
2601
  [`&.${color2}`]: {
2692
2602
  [varNames.color.avatar.bg]: vars.color.avatar[color2].bg,
@@ -2780,7 +2690,7 @@ const primitive$m = {
2780
2690
  }
2781
2691
  }
2782
2692
  };
2783
- for (const size of theme.AVATAR_SIZE)
2693
+ for (const size of AVATAR_SIZE)
2784
2694
  _responsiveRule(primitive$m, `avatar-${size}`, {
2785
2695
  [varNames.avatar.distance]: vars.avatar.sizes[size].distance,
2786
2696
  [varNames.avatar.size]: vars.avatar.sizes[size].size
@@ -2796,7 +2706,7 @@ const avatarStyle = {
2796
2706
  verticalAlign: "top"
2797
2707
  }
2798
2708
  };
2799
- for (const tone of theme.THEME_COLOR_STATE_TONES)
2709
+ for (const tone of THEME_COLOR_STATE_TONES)
2800
2710
  primitive$l[`.badge-${tone}`] = {
2801
2711
  [varNames.color.bg]: vars.color.tinted[tone].bg[4],
2802
2712
  [varNames.color.fg]: vars.color.tinted[tone].fg[3]
@@ -2832,18 +2742,6 @@ const badgeStyle = {
2832
2742
  layers: {
2833
2743
  primitive: primitive$k
2834
2744
  }
2835
- }, toneMap = {
2836
- default: "default",
2837
- neutral: "neutral",
2838
- suggest: "suggest",
2839
- primary: "accent",
2840
- positive: "positive",
2841
- caution: "caution",
2842
- critical: "critical"
2843
- }, variantMap = {
2844
- default: "solid",
2845
- ghost: "ghost",
2846
- bleed: "tinted"
2847
2745
  }, primitive$j = {
2848
2746
  ".button": {
2849
2747
  WebkitFontSmoothing: "inherit",
@@ -2891,11 +2789,13 @@ const badgeStyle = {
2891
2789
  opacity: 0.8
2892
2790
  }
2893
2791
  };
2894
- for (const tone of theme.THEME_COLOR_STATE_TONES) {
2792
+ for (const tone of THEME_COLOR_STATE_TONES) {
2895
2793
  const solid = vars.color.solid[tone], tinted = vars.color.tinted[tone];
2896
- primitive$j[`.button.${variantMap.default}.${toneMap[tone]}`] = {
2794
+ primitive$j[`.button[data-mode="default"][data-tone="${tone}"]`] = {
2897
2795
  [varNames.color.bg]: solid.bg[0],
2898
2796
  [varNames.color.border]: solid.border[1],
2797
+ [varNames.color.code.bg]: solid.bg[1],
2798
+ [varNames.color.code.fg]: solid.fg[4],
2899
2799
  [varNames.color.fg]: solid.fg[0],
2900
2800
  [varNames.color.muted.bg]: solid.bg[1],
2901
2801
  [varNames.color.muted.fg]: solid.fg[4],
@@ -2904,6 +2804,8 @@ for (const tone of theme.THEME_COLOR_STATE_TONES) {
2904
2804
  "&:not([data-disabled]):hover": {
2905
2805
  [varNames.color.bg]: solid.bg[1],
2906
2806
  [varNames.color.border]: solid.border[2],
2807
+ [varNames.color.code.bg]: solid.bg[2],
2808
+ [varNames.color.code.fg]: solid.fg[4],
2907
2809
  [varNames.color.fg]: solid.fg[0],
2908
2810
  [varNames.color.muted.bg]: solid.bg[2],
2909
2811
  [varNames.color.muted.fg]: solid.fg[4]
@@ -2911,6 +2813,8 @@ for (const tone of theme.THEME_COLOR_STATE_TONES) {
2911
2813
  "&:not([data-disabled]):active": {
2912
2814
  [varNames.color.bg]: solid.bg[2],
2913
2815
  [varNames.color.border]: solid.border[3],
2816
+ [varNames.color.code.bg]: solid.bg[3],
2817
+ [varNames.color.code.fg]: solid.fg[4],
2914
2818
  [varNames.color.fg]: solid.fg[0],
2915
2819
  [varNames.color.muted.bg]: solid.bg[3],
2916
2820
  [varNames.color.muted.fg]: solid.fg[4]
@@ -2918,6 +2822,8 @@ for (const tone of theme.THEME_COLOR_STATE_TONES) {
2918
2822
  "&:not([data-disabled])[data-selected]": {
2919
2823
  [varNames.color.bg]: solid.bg[2],
2920
2824
  [varNames.color.border]: solid.border[3],
2825
+ [varNames.color.code.bg]: solid.bg[3],
2826
+ [varNames.color.code.fg]: solid.fg[4],
2921
2827
  [varNames.color.fg]: solid.fg[0],
2922
2828
  [varNames.color.muted.bg]: solid.bg[3],
2923
2829
  [varNames.color.muted.fg]: solid.fg[4]
@@ -2941,25 +2847,30 @@ for (const tone of theme.THEME_COLOR_STATE_TONES) {
2941
2847
  [varNames.color.muted.fg]: vars.color.tinted.default.border[4]
2942
2848
  }
2943
2849
  }
2944
- }, primitive$j[`.button.${variantMap.ghost}.${toneMap[tone]}`] = {
2850
+ }, primitive$j[`.button[data-mode="ghost"][data-tone="${tone}"]`] = {
2945
2851
  [varNames.color.bg]: tinted.bg[1],
2946
- [varNames.color.border]: tinted.border[0],
2852
+ [varNames.color.border]: tinted.border[1],
2947
2853
  [varNames.color.fg]: tinted.fg[2],
2854
+ [varNames.color.code.bg]: tinted.bg[2],
2855
+ [varNames.color.code.fg]: tinted.fg[4],
2948
2856
  [varNames.color.muted.bg]: tinted.bg[2],
2949
2857
  [varNames.color.muted.fg]: tinted.fg[4],
2950
2858
  "--button-box-shadow": "inset 0 0 0 var(--button-border-width) var(--color-border)",
2951
2859
  "@nest": {
2952
2860
  "&:not([data-disabled]):hover": {
2953
2861
  [varNames.color.bg]: tinted.bg[2],
2954
- [varNames.color.border]: tinted.border[1],
2862
+ [varNames.color.border]: tinted.border[2],
2863
+ [varNames.color.code.bg]: tinted.bg[3],
2864
+ [varNames.color.code.fg]: tinted.fg[3],
2955
2865
  [varNames.color.fg]: tinted.fg[1],
2956
2866
  [varNames.color.muted.bg]: tinted.bg[3],
2957
2867
  [varNames.color.muted.fg]: tinted.fg[3]
2958
- // '--button-box-shadow': `inset 0 0 0 var(--button-border-width) var(--color-border)`,
2959
2868
  },
2960
2869
  "&:not([data-disabled]):active": {
2961
2870
  [varNames.color.bg]: tinted.bg[3],
2962
- [varNames.color.border]: tinted.border[2],
2871
+ [varNames.color.border]: tinted.border[3],
2872
+ [varNames.color.code.bg]: tinted.bg[4],
2873
+ [varNames.color.code.fg]: tinted.fg[3],
2963
2874
  [varNames.color.fg]: tinted.fg[1],
2964
2875
  [varNames.color.muted.bg]: tinted.bg[4],
2965
2876
  [varNames.color.muted.fg]: tinted.fg[3],
@@ -2967,7 +2878,9 @@ for (const tone of theme.THEME_COLOR_STATE_TONES) {
2967
2878
  },
2968
2879
  "&:not([data-disabled])[data-selected]": {
2969
2880
  [varNames.color.bg]: tinted.bg[3],
2970
- [varNames.color.border]: tinted.border[2],
2881
+ [varNames.color.border]: tinted.border[3],
2882
+ [varNames.color.code.bg]: tinted.bg[4],
2883
+ [varNames.color.code.fg]: tinted.fg[3],
2971
2884
  [varNames.color.fg]: tinted.fg[1],
2972
2885
  [varNames.color.muted.bg]: tinted.bg[4],
2973
2886
  [varNames.color.muted.fg]: tinted.fg[3],
@@ -2992,7 +2905,7 @@ for (const tone of theme.THEME_COLOR_STATE_TONES) {
2992
2905
  [varNames.color.muted.fg]: vars.color.tinted.default.border[3]
2993
2906
  }
2994
2907
  }
2995
- }, primitive$j[`.button.${variantMap.bleed}.${toneMap[tone]}`] = {
2908
+ }, primitive$j[`.button[data-mode="bleed"][data-tone="${tone}"]`] = {
2996
2909
  boxShadow: "none",
2997
2910
  [varNames.color.bg]: tinted.bg[0],
2998
2911
  [varNames.color.border]: tinted.border[1],
@@ -3078,6 +2991,11 @@ const buttonStyle = {
3078
2991
  font: "inherit",
3079
2992
  whiteSpace: "inherit"
3080
2993
  },
2994
+ "&[data-checkered]": {
2995
+ backgroundSize: `${vars.space[3]} ${vars.space[3]}`,
2996
+ backgroundPosition: "top left",
2997
+ backgroundImage: `repeating-conic-gradient(${vars.color.bg} 0% 25%, ${vars.color.muted.bg} 0% 50%)`
2998
+ },
3081
2999
  "a&:not([data-disabled]):hover, button&:not([data-disabled]):hover": {
3082
3000
  [varNames.color.bg]: vars.color.tinted.default.bg[1],
3083
3001
  [varNames.color.border]: vars.color.tinted.default.border[3],
@@ -3114,41 +3032,27 @@ const buttonStyle = {
3114
3032
  [varNames.color.muted.bg]: vars.color.solid.primary.bg[1],
3115
3033
  [varNames.color.muted.fg]: vars.color.solid.primary.fg[3]
3116
3034
  },
3117
- // '&:not([data-disabled]):focus': {
3118
- // '--color-bg': vars.color.solid.bg[0],
3119
- // '--color-border': vars.color.solid.border[1],
3120
- // '--color-fg': vars.color.solid.fg[1],
3121
- // '--color-muted-bg': vars.color.solid.bg[1],
3122
- // '--color-muted-fg': vars.color.solid.fg[3],
3123
- // },
3124
3035
  "a&[data-disabled], button&[data-disabled]": {
3125
- [varNames.color.bg]: vars.color.tinted.default.bg[2],
3126
- [varNames.color.border]: vars.color.tinted.default.border[4],
3127
- [varNames.color.fg]: vars.color.tinted.default.fg[0],
3128
- [varNames.color.muted.bg]: vars.color.tinted.default.bg[3],
3129
- [varNames.color.muted.fg]: vars.color.tinted.default.fg[4]
3036
+ [varNames.color.bg]: vars.color.tinted.default.bg[0],
3037
+ [varNames.color.border]: vars.color.tinted.default.border[1],
3038
+ [varNames.color.fg]: vars.color.tinted.default.border[3],
3039
+ [varNames.color.muted.bg]: vars.color.tinted.default.bg[1],
3040
+ [varNames.color.muted.fg]: vars.color.tinted.default.border[1]
3130
3041
  }
3131
- // '&[data-disabled]': {
3132
- // '--color-bg': vars.color.tinted.bg[0],
3133
- // '--color-border': vars.color.tinted.border[1],
3134
- // '--color-fg': vars.color.tinted.border[4],
3135
- // '--color-muted-bg': vars.color.tinted.bg[1],
3136
- // '--color-muted-fg': vars.color.tinted.border[4],
3137
- // },
3138
3042
  }
3139
3043
  }
3140
3044
  };
3141
- for (const scheme of theme.THEME_COLOR_SCHEMES) {
3045
+ for (const scheme of THEME_COLOR_SCHEMES$1) {
3142
3046
  const schemeProps = {
3143
3047
  colorScheme: scheme
3144
3048
  };
3145
- for (const tone of theme.THEME_COLOR_CARD_TONES) {
3049
+ for (const tone of THEME_COLOR_CARD_TONES) {
3146
3050
  const _varNames = varNames.color[tone], _vars = vars.color[scheme][tone];
3147
3051
  _assignToneProps(schemeProps, _varNames, _vars);
3148
3052
  }
3149
3053
  primitive$i[`.card.${scheme}`] = schemeProps;
3150
3054
  }
3151
- for (const tone of theme.THEME_COLOR_CARD_TONES) {
3055
+ for (const tone of THEME_COLOR_CARD_TONES) {
3152
3056
  const _varNames = varNames.color, _vars = vars.color[tone], toneProps = {};
3153
3057
  _assignToneProps(toneProps, _varNames, _vars), Object.assign(toneProps, {
3154
3058
  "--card-bg-color": vars.color.bg,
@@ -3183,7 +3087,7 @@ const cardStyle = {
3183
3087
  }
3184
3088
  };
3185
3089
  function _assignToneProps(toneProps, _varNames, _vars) {
3186
- for (const hue of theme.THEME_COLOR_AVATAR_COLORS)
3090
+ for (const hue of THEME_COLOR_AVATAR_COLORS)
3187
3091
  toneProps[`${_varNames.avatar[hue].bg}`] = _vars.avatar[hue].bg, toneProps[`${_varNames.avatar[hue].fg}`] = _vars.avatar[hue].fg;
3188
3092
  Object.assign(toneProps, {
3189
3093
  [_varNames.backdrop]: _vars.backdrop,
@@ -3233,7 +3137,7 @@ function _assignToneProps(toneProps, _varNames, _vars) {
3233
3137
  [_varNames.shadow.ambient]: _vars.shadow.ambient
3234
3138
  });
3235
3139
  for (const variant of ["solid", "tinted"])
3236
- for (const elementTone of theme.THEME_COLOR_STATE_TONES) {
3140
+ for (const elementTone of THEME_COLOR_STATE_TONES) {
3237
3141
  const __varNames = _varNames[variant][elementTone], __vars = _vars[variant][elementTone];
3238
3142
  Object.assign(toneProps, {
3239
3143
  [__varNames.bg[0]]: __vars.bg[0],
@@ -3421,7 +3325,7 @@ const primitive$h = {
3421
3325
  }
3422
3326
  }
3423
3327
  };
3424
- for (const size of theme.FONT_CODE_SIZE)
3328
+ for (const size of FONT_CODE_SIZE)
3425
3329
  _responsiveRule(primitive$g, `code-${size}`, {
3426
3330
  "--font-size": `var(--font-code-${size}-size)`,
3427
3331
  "--font-line-height": `var(--font-code-${size}-line-height)`,
@@ -3467,7 +3371,7 @@ const codeStyle = {
3467
3371
  "--color-fg": "var(--color-tinted-default-fg-4)"
3468
3372
  }
3469
3373
  };
3470
- for (const size of theme.FONT_HEADING_SIZE)
3374
+ for (const size of FONT_HEADING_SIZE)
3471
3375
  _responsiveRule(primitive$e, `heading-${size}`, {
3472
3376
  "--font-size": `var(--font-heading-${size}-size)`,
3473
3377
  "--font-line-height": `var(--font-heading-${size}-line-height)`,
@@ -3483,11 +3387,8 @@ const headingStyle = {
3483
3387
  }
3484
3388
  }, primitive$d = {
3485
3389
  ".kbd": {
3486
- // '--color-bg': 'var(--color-tinted-default-bg-1)',
3487
- // '--color-border': 'var(--color-tinted-default-border-2)',
3488
- // '--color-fg': 'var(--color-tinted-default-fg-3)',
3489
- boxShadow: "inset 0 0 0 0.5px var(--color-tinted-default-border-3)",
3490
- background: "var(--color-muted-bg)",
3390
+ boxShadow: `inset 0 0 0 0.5px ${vars.color.border}`,
3391
+ backgroundColor: vars.color.muted.bg,
3491
3392
  font: "inherit",
3492
3393
  verticalAlign: "top",
3493
3394
  "@nest": {
@@ -3524,7 +3425,7 @@ const headingStyle = {
3524
3425
  "--color-fg": "var(--color-muted-fg)"
3525
3426
  }
3526
3427
  };
3527
- for (const size of theme.FONT_LABEL_SIZE)
3428
+ for (const size of FONT_LABEL_SIZE)
3528
3429
  _responsiveRule(primitive$c, `label-${size}`, {
3529
3430
  "--font-size": `var(--font-label-${size}-size)`,
3530
3431
  "--font-line-height": `var(--font-label-${size}-line-height)`,
@@ -3808,7 +3709,7 @@ const labelStyle = {
3808
3709
  color: "var(--color-muted-fg)"
3809
3710
  }
3810
3711
  };
3811
- for (const size of theme.FONT_TEXT_SIZE)
3712
+ for (const size of FONT_TEXT_SIZE)
3812
3713
  _responsiveRule(primitive$5, `text-${size}`, {
3813
3714
  "--font-size": `var(--font-text-${size}-size)`,
3814
3715
  "--font-line-height": `var(--font-text-${size}-line-height)`,
@@ -4027,6 +3928,7 @@ const textStyle = {
4027
3928
  {
4028
3929
  // define order of layers
4029
3930
  layers: {
3931
+ palette: {},
4030
3932
  theme: {},
4031
3933
  base: {},
4032
3934
  util: {},
@@ -4107,69 +4009,70 @@ const textStyle = {
4107
4009
  toastStyle,
4108
4010
  treeStyle
4109
4011
  ]);
4110
- function compileSystem() {
4012
+ function _compileSystem() {
4111
4013
  return _compileStyle(_systemStyle);
4112
4014
  }
4113
4015
  const THEME_COLOR_SCHEMES = ["dark", "light"], THEME_COLOR_VARIANTS = ["tinted", "solid"];
4114
- function compileTheme_v3(theme2) {
4016
+ function _compileTheme_v3(theme) {
4115
4017
  return _compileStyle({
4116
4018
  layers: {
4117
4019
  theme: {
4118
- ":root": compileThemeProperties(theme2)
4020
+ ":root": compileThemeProperties(theme)
4119
4021
  }
4120
4022
  }
4121
4023
  });
4122
4024
  }
4123
- function compileThemeProperties(theme2) {
4025
+ function compileThemeProperties(theme) {
4124
4026
  return {
4125
- ...buildAvatarThemeProperties(theme2),
4126
- ...buildButtonThemeProperties(theme2),
4127
- [varNames.card.shadow.outline]: px(theme2.card.shadow.outline),
4128
- ...buildColorThemeProperties(theme2),
4129
- ...buildContainerThemeProperties(theme2),
4130
- ...buildFontCodeThemeProperties(theme2),
4131
- ...buildFontHeadingThemeProperties(theme2),
4132
- ...buildFontLabelThemeProperties(theme2),
4133
- ...buildFontTextThemeProperties(theme2),
4134
- ...buildInputThemeProperties(theme2),
4135
- ...buildRadiusThemeProperties(theme2),
4136
- ...buildShadowThemeProperties(theme2),
4137
- ...buildSpaceThemeProperties(theme2)
4027
+ ...buildAvatarThemeProperties(theme),
4028
+ ...buildButtonThemeProperties(theme),
4029
+ // card
4030
+ [varNames.card.shadow.outline]: px(theme.card.shadow.outline),
4031
+ ...buildColorThemeProperties(theme),
4032
+ ...buildContainerThemeProperties(theme),
4033
+ ...buildFontCodeThemeProperties(theme),
4034
+ ...buildFontHeadingThemeProperties(theme),
4035
+ ...buildFontLabelThemeProperties(theme),
4036
+ ...buildFontTextThemeProperties(theme),
4037
+ ...buildInputThemeProperties(theme),
4038
+ ...buildRadiusThemeProperties(theme),
4039
+ ...buildShadowThemeProperties(theme),
4040
+ ...buildSpaceThemeProperties(theme)
4138
4041
  };
4139
4042
  }
4140
- function buildAvatarThemeProperties(theme2) {
4043
+ function buildAvatarThemeProperties(theme) {
4141
4044
  return {
4142
- [varNames.avatar.focusRing.offset]: px(theme2.avatar.focusRing.offset),
4143
- [varNames.avatar.focusRing.width]: px(theme2.avatar.focusRing.width),
4144
- [varNames.avatar.sizes[0].distance]: rem(theme2.avatar.sizes[0].distance),
4145
- [varNames.avatar.sizes[0].size]: rem(theme2.avatar.sizes[0].size),
4146
- [varNames.avatar.sizes[1].distance]: rem(theme2.avatar.sizes[1].distance),
4147
- [varNames.avatar.sizes[1].size]: rem(theme2.avatar.sizes[1].size),
4148
- [varNames.avatar.sizes[2].distance]: rem(theme2.avatar.sizes[2].distance),
4149
- [varNames.avatar.sizes[2].size]: rem(theme2.avatar.sizes[2].size),
4150
- [varNames.avatar.sizes[3].distance]: rem(theme2.avatar.sizes[3].distance),
4151
- [varNames.avatar.sizes[3].size]: rem(theme2.avatar.sizes[3].size)
4045
+ [varNames.avatar.focusRing.offset]: px(theme.avatar.focusRing.offset),
4046
+ [varNames.avatar.focusRing.width]: px(theme.avatar.focusRing.width),
4047
+ [varNames.avatar.sizes[0].distance]: rem(theme.avatar.sizes[0].distance),
4048
+ [varNames.avatar.sizes[0].size]: rem(theme.avatar.sizes[0].size),
4049
+ [varNames.avatar.sizes[1].distance]: rem(theme.avatar.sizes[1].distance),
4050
+ [varNames.avatar.sizes[1].size]: rem(theme.avatar.sizes[1].size),
4051
+ [varNames.avatar.sizes[2].distance]: rem(theme.avatar.sizes[2].distance),
4052
+ [varNames.avatar.sizes[2].size]: rem(theme.avatar.sizes[2].size),
4053
+ [varNames.avatar.sizes[3].distance]: rem(theme.avatar.sizes[3].distance),
4054
+ [varNames.avatar.sizes[3].size]: rem(theme.avatar.sizes[3].size)
4152
4055
  };
4153
4056
  }
4154
- function buildButtonThemeProperties(theme2) {
4057
+ function buildButtonThemeProperties(theme) {
4155
4058
  return {
4156
- [varNames.button.border.width]: px(theme2.button.border.width),
4157
- [varNames.button.focusRing.offset]: px(theme2.button.focusRing.offset),
4158
- [varNames.button.focusRing.width]: px(theme2.button.focusRing.width)
4059
+ [varNames.button.border.width]: px(theme.button.border.width),
4060
+ [varNames.button.focusRing.offset]: px(theme.button.focusRing.offset),
4061
+ [varNames.button.focusRing.width]: px(theme.button.focusRing.width)
4159
4062
  };
4160
4063
  }
4161
- function buildContainerThemeProperties(theme2) {
4064
+ function buildContainerThemeProperties(theme) {
4162
4065
  return {
4163
- [varNames.container[0]]: rem(theme2.container[0]),
4164
- [varNames.container[1]]: rem(theme2.container[1]),
4165
- [varNames.container[2]]: rem(theme2.container[2]),
4166
- [varNames.container[3]]: rem(theme2.container[3]),
4167
- [varNames.container[4]]: rem(theme2.container[4]),
4168
- [varNames.container[5]]: rem(theme2.container[5])
4066
+ [varNames.container[0]]: rem(theme.container[0]),
4067
+ [varNames.container[1]]: rem(theme.container[1]),
4068
+ [varNames.container[2]]: rem(theme.container[2]),
4069
+ [varNames.container[3]]: rem(theme.container[3]),
4070
+ [varNames.container[4]]: rem(theme.container[4]),
4071
+ [varNames.container[5]]: rem(theme.container[5])
4169
4072
  };
4170
4073
  }
4171
- function buildFontCodeThemeProperties(theme$1) {
4172
- const v = varNames.font.code, t = theme$1.font.code, props = {
4074
+ function buildFontCodeThemeProperties(theme) {
4075
+ const v = varNames.font.code, t = theme.font.code, props = {
4173
4076
  [v.family]: t.family,
4174
4077
  [v.featureSettings]: t.featureSettings || "normal",
4175
4078
  [v.weights.regular]: t.weights.regular,
@@ -4177,14 +4080,14 @@ function buildFontCodeThemeProperties(theme$1) {
4177
4080
  [v.weights.semibold]: t.weights.semibold,
4178
4081
  [v.weights.bold]: t.weights.bold
4179
4082
  };
4180
- for (const size of theme.FONT_CODE_SIZE) {
4181
- const _v = varNames.font.code.sizes[size], _t = theme$1.font.code.sizes[size];
4083
+ for (const size of FONT_CODE_SIZE) {
4084
+ const _v = varNames.font.code.sizes[size], _t = theme.font.code.sizes[size];
4182
4085
  props[_v.fontSize] = rem(_t.fontSize), props[_v.lineHeight] = rem(_t.lineHeight), props[_v.ascenderHeight] = rem(_t.ascenderHeight), props[_v.descenderHeight] = rem(_t.descenderHeight), props[_v.letterSpacing] = rem(_t.letterSpacing), props[_v.iconSize] = rem(_t.iconSize);
4183
4086
  }
4184
4087
  return props;
4185
4088
  }
4186
- function buildFontHeadingThemeProperties(theme$1) {
4187
- const v = varNames.font.heading, t = theme$1.font.heading, props = {
4089
+ function buildFontHeadingThemeProperties(theme) {
4090
+ const v = varNames.font.heading, t = theme.font.heading, props = {
4188
4091
  [v.family]: t.family,
4189
4092
  [v.featureSettings]: t.featureSettings,
4190
4093
  [v.weights.regular]: t.weights.regular,
@@ -4192,14 +4095,14 @@ function buildFontHeadingThemeProperties(theme$1) {
4192
4095
  [v.weights.semibold]: t.weights.semibold,
4193
4096
  [v.weights.bold]: t.weights.bold
4194
4097
  };
4195
- for (const size of theme.FONT_HEADING_SIZE) {
4098
+ for (const size of FONT_HEADING_SIZE) {
4196
4099
  const _v = v.sizes[size], _t = t.sizes[size];
4197
4100
  props[_v.fontSize] = rem(_t.fontSize), props[_v.lineHeight] = rem(_t.lineHeight), props[_v.ascenderHeight] = rem(_t.ascenderHeight), props[_v.descenderHeight] = rem(_t.descenderHeight), props[_v.letterSpacing] = rem(_t.letterSpacing), props[_v.iconSize] = rem(_t.iconSize);
4198
4101
  }
4199
4102
  return props;
4200
4103
  }
4201
- function buildFontLabelThemeProperties(theme$1) {
4202
- const v = varNames.font.label, t = theme$1.font.label, props = {
4104
+ function buildFontLabelThemeProperties(theme) {
4105
+ const v = varNames.font.label, t = theme.font.label, props = {
4203
4106
  [v.family]: t.family,
4204
4107
  [v.featureSettings]: t.featureSettings,
4205
4108
  [v.weights.regular]: t.weights.regular,
@@ -4207,14 +4110,14 @@ function buildFontLabelThemeProperties(theme$1) {
4207
4110
  [v.weights.semibold]: t.weights.semibold,
4208
4111
  [v.weights.bold]: t.weights.bold
4209
4112
  };
4210
- for (const size of theme.FONT_LABEL_SIZE) {
4113
+ for (const size of FONT_LABEL_SIZE) {
4211
4114
  const _v = v.sizes[size], _t = t.sizes[size];
4212
4115
  props[_v.fontSize] = rem(_t.fontSize), props[_v.lineHeight] = rem(_t.lineHeight), props[_v.ascenderHeight] = rem(_t.ascenderHeight), props[_v.descenderHeight] = rem(_t.descenderHeight), props[_v.letterSpacing] = rem(_t.letterSpacing), props[_v.iconSize] = rem(_t.iconSize);
4213
4116
  }
4214
4117
  return props;
4215
4118
  }
4216
- function buildFontTextThemeProperties(theme$1) {
4217
- const v = varNames.font.text, t = theme$1.font.text, props = {
4119
+ function buildFontTextThemeProperties(theme) {
4120
+ const v = varNames.font.text, t = theme.font.text, props = {
4218
4121
  [v.family]: t.family,
4219
4122
  [v.featureSettings]: t.featureSettings,
4220
4123
  [v.weights.regular]: t.weights.regular,
@@ -4222,208 +4125,301 @@ function buildFontTextThemeProperties(theme$1) {
4222
4125
  [v.weights.semibold]: t.weights.semibold,
4223
4126
  [v.weights.bold]: t.weights.bold
4224
4127
  };
4225
- for (const size of theme.FONT_TEXT_SIZE) {
4128
+ for (const size of FONT_TEXT_SIZE) {
4226
4129
  const _v = v.sizes[size], _t = t.sizes[size];
4227
4130
  props[_v.fontSize] = rem(_t.fontSize), props[_v.lineHeight] = rem(_t.lineHeight), props[_v.ascenderHeight] = rem(_t.ascenderHeight), props[_v.descenderHeight] = rem(_t.descenderHeight), props[_v.letterSpacing] = rem(_t.letterSpacing), props[_v.iconSize] = rem(_t.iconSize);
4228
4131
  }
4229
4132
  return props;
4230
4133
  }
4231
- function buildInputThemeProperties(theme2) {
4134
+ function buildInputThemeProperties(theme) {
4232
4135
  return {
4233
- [varNames.input.border.width]: px(theme2.input.border.width),
4234
- [varNames.input.checkbox.focusRing.offset]: px(theme2.input.checkbox.focusRing.offset),
4235
- [varNames.input.checkbox.focusRing.width]: px(theme2.input.checkbox.focusRing.width),
4236
- [varNames.input.checkbox.size]: rem(theme2.input.checkbox.size),
4237
- [varNames.input.radio.focusRing.offset]: px(theme2.input.radio.focusRing.offset),
4238
- [varNames.input.radio.focusRing.width]: px(theme2.input.radio.focusRing.width),
4239
- [varNames.input.radio.markSize]: rem(theme2.input.radio.markSize),
4240
- [varNames.input.radio.size]: rem(theme2.input.radio.size),
4241
- [varNames.input.select.focusRing.offset]: px(theme2.input.select.focusRing.offset),
4242
- [varNames.input.select.focusRing.width]: px(theme2.input.select.focusRing.width),
4243
- [varNames.input.switch.focusRing.offset]: px(theme2.input.switch.focusRing.offset),
4244
- [varNames.input.switch.focusRing.width]: px(theme2.input.switch.focusRing.width),
4245
- [varNames.input.switch.height]: rem(theme2.input.switch.height),
4246
- [varNames.input.switch.padding]: rem(theme2.input.switch.padding),
4247
- [varNames.input.switch.transitionDurationMs]: `${theme2.input.switch.transitionDurationMs}ms`,
4248
- [varNames.input.switch.transitionTimingFunction]: theme2.input.switch.transitionTimingFunction,
4249
- [varNames.input.switch.width]: rem(theme2.input.switch.width),
4250
- [varNames.input.text.focusRing.offset]: px(theme2.input.text.focusRing.offset),
4251
- [varNames.input.text.focusRing.width]: px(theme2.input.text.focusRing.width)
4136
+ [varNames.input.border.width]: px(theme.input.border.width),
4137
+ [varNames.input.checkbox.focusRing.offset]: px(theme.input.checkbox.focusRing.offset),
4138
+ [varNames.input.checkbox.focusRing.width]: px(theme.input.checkbox.focusRing.width),
4139
+ [varNames.input.checkbox.size]: rem(theme.input.checkbox.size),
4140
+ [varNames.input.radio.focusRing.offset]: px(theme.input.radio.focusRing.offset),
4141
+ [varNames.input.radio.focusRing.width]: px(theme.input.radio.focusRing.width),
4142
+ [varNames.input.radio.markSize]: rem(theme.input.radio.markSize),
4143
+ [varNames.input.radio.size]: rem(theme.input.radio.size),
4144
+ [varNames.input.select.focusRing.offset]: px(theme.input.select.focusRing.offset),
4145
+ [varNames.input.select.focusRing.width]: px(theme.input.select.focusRing.width),
4146
+ [varNames.input.switch.focusRing.offset]: px(theme.input.switch.focusRing.offset),
4147
+ [varNames.input.switch.focusRing.width]: px(theme.input.switch.focusRing.width),
4148
+ [varNames.input.switch.height]: rem(theme.input.switch.height),
4149
+ [varNames.input.switch.padding]: rem(theme.input.switch.padding),
4150
+ [varNames.input.switch.transitionDurationMs]: `${theme.input.switch.transitionDurationMs}ms`,
4151
+ [varNames.input.switch.transitionTimingFunction]: theme.input.switch.transitionTimingFunction,
4152
+ [varNames.input.switch.width]: rem(theme.input.switch.width),
4153
+ [varNames.input.text.focusRing.offset]: px(theme.input.text.focusRing.offset),
4154
+ [varNames.input.text.focusRing.width]: px(theme.input.text.focusRing.width)
4252
4155
  };
4253
4156
  }
4254
- function buildRadiusThemeProperties(theme2) {
4157
+ function buildRadiusThemeProperties(theme) {
4255
4158
  return {
4256
- [varNames.radius[0]]: px(theme2.radius[0]),
4257
- [varNames.radius[1]]: px(theme2.radius[1]),
4258
- [varNames.radius[2]]: px(theme2.radius[2]),
4259
- [varNames.radius[3]]: px(theme2.radius[3]),
4260
- [varNames.radius[4]]: px(theme2.radius[4]),
4261
- [varNames.radius[5]]: px(theme2.radius[5]),
4262
- [varNames.radius[6]]: px(theme2.radius[6])
4159
+ [varNames.radius[0]]: px(theme.radius[0]),
4160
+ [varNames.radius[1]]: px(theme.radius[1]),
4161
+ [varNames.radius[2]]: px(theme.radius[2]),
4162
+ [varNames.radius[3]]: px(theme.radius[3]),
4163
+ [varNames.radius[4]]: px(theme.radius[4]),
4164
+ [varNames.radius[5]]: px(theme.radius[5]),
4165
+ [varNames.radius[6]]: px(theme.radius[6])
4263
4166
  };
4264
4167
  }
4265
- function buildShadowThemeProperties(theme2) {
4168
+ function buildShadowThemeProperties(theme) {
4266
4169
  return {
4267
- [varNames.shadow[0].umbra]: toBoxShadow(theme2.shadow[0]?.umbra),
4268
- [varNames.shadow[0].penumbra]: toBoxShadow(theme2.shadow[0]?.penumbra),
4269
- [varNames.shadow[0].ambient]: toBoxShadow(theme2.shadow[0]?.ambient),
4270
- [varNames.shadow[1].umbra]: toBoxShadow(theme2.shadow[1]?.umbra),
4271
- [varNames.shadow[1].penumbra]: toBoxShadow(theme2.shadow[1]?.penumbra),
4272
- [varNames.shadow[1].ambient]: toBoxShadow(theme2.shadow[1]?.ambient),
4273
- [varNames.shadow[2].umbra]: toBoxShadow(theme2.shadow[2]?.umbra),
4274
- [varNames.shadow[2].penumbra]: toBoxShadow(theme2.shadow[2]?.penumbra),
4275
- [varNames.shadow[2].ambient]: toBoxShadow(theme2.shadow[2]?.ambient),
4276
- [varNames.shadow[3].umbra]: toBoxShadow(theme2.shadow[3]?.umbra),
4277
- [varNames.shadow[3].penumbra]: toBoxShadow(theme2.shadow[3]?.penumbra),
4278
- [varNames.shadow[3].ambient]: toBoxShadow(theme2.shadow[3]?.ambient),
4279
- [varNames.shadow[4].umbra]: toBoxShadow(theme2.shadow[4]?.umbra),
4280
- [varNames.shadow[4].penumbra]: toBoxShadow(theme2.shadow[4]?.penumbra),
4281
- [varNames.shadow[4].ambient]: toBoxShadow(theme2.shadow[4]?.ambient),
4282
- [varNames.shadow[5].umbra]: toBoxShadow(theme2.shadow[5]?.umbra),
4283
- [varNames.shadow[5].penumbra]: toBoxShadow(theme2.shadow[5]?.penumbra),
4284
- [varNames.shadow[5].ambient]: toBoxShadow(theme2.shadow[5]?.ambient)
4170
+ [varNames.shadow[0].umbra]: toBoxShadow(theme.shadow[0]?.umbra),
4171
+ [varNames.shadow[0].penumbra]: toBoxShadow(theme.shadow[0]?.penumbra),
4172
+ [varNames.shadow[0].ambient]: toBoxShadow(theme.shadow[0]?.ambient),
4173
+ [varNames.shadow[1].umbra]: toBoxShadow(theme.shadow[1]?.umbra),
4174
+ [varNames.shadow[1].penumbra]: toBoxShadow(theme.shadow[1]?.penumbra),
4175
+ [varNames.shadow[1].ambient]: toBoxShadow(theme.shadow[1]?.ambient),
4176
+ [varNames.shadow[2].umbra]: toBoxShadow(theme.shadow[2]?.umbra),
4177
+ [varNames.shadow[2].penumbra]: toBoxShadow(theme.shadow[2]?.penumbra),
4178
+ [varNames.shadow[2].ambient]: toBoxShadow(theme.shadow[2]?.ambient),
4179
+ [varNames.shadow[3].umbra]: toBoxShadow(theme.shadow[3]?.umbra),
4180
+ [varNames.shadow[3].penumbra]: toBoxShadow(theme.shadow[3]?.penumbra),
4181
+ [varNames.shadow[3].ambient]: toBoxShadow(theme.shadow[3]?.ambient),
4182
+ [varNames.shadow[4].umbra]: toBoxShadow(theme.shadow[4]?.umbra),
4183
+ [varNames.shadow[4].penumbra]: toBoxShadow(theme.shadow[4]?.penumbra),
4184
+ [varNames.shadow[4].ambient]: toBoxShadow(theme.shadow[4]?.ambient),
4185
+ [varNames.shadow[5].umbra]: toBoxShadow(theme.shadow[5]?.umbra),
4186
+ [varNames.shadow[5].penumbra]: toBoxShadow(theme.shadow[5]?.penumbra),
4187
+ [varNames.shadow[5].ambient]: toBoxShadow(theme.shadow[5]?.ambient)
4285
4188
  };
4286
4189
  }
4287
- function buildSpaceThemeProperties(theme2) {
4190
+ function buildSpaceThemeProperties(theme) {
4288
4191
  return {
4289
- [varNames.space[0]]: px(theme2.space[0]),
4290
- [varNames.space[0.5]]: px(theme2.space[1] / 2),
4291
- [varNames.space[1]]: px(theme2.space[1]),
4292
- [varNames.space[2]]: px(theme2.space[2]),
4293
- [varNames.space[3]]: px(theme2.space[3]),
4294
- [varNames.space[4]]: px(theme2.space[4]),
4295
- [varNames.space[5]]: px(theme2.space[5]),
4296
- [varNames.space[6]]: px(theme2.space[6]),
4297
- [varNames.space[7]]: px(theme2.space[7]),
4298
- [varNames.space[8]]: px(theme2.space[8]),
4299
- [varNames.space[9]]: px(theme2.space[9])
4192
+ [varNames.space[0]]: px(theme.space[0]),
4193
+ [varNames.space[0.5]]: px(theme.space[1] / 2),
4194
+ [varNames.space[1]]: px(theme.space[1]),
4195
+ [varNames.space[2]]: px(theme.space[2]),
4196
+ [varNames.space[3]]: px(theme.space[3]),
4197
+ [varNames.space[4]]: px(theme.space[4]),
4198
+ [varNames.space[5]]: px(theme.space[5]),
4199
+ [varNames.space[6]]: px(theme.space[6]),
4200
+ [varNames.space[7]]: px(theme.space[7]),
4201
+ [varNames.space[8]]: px(theme.space[8]),
4202
+ [varNames.space[9]]: px(theme.space[9])
4300
4203
  };
4301
4204
  }
4302
- function buildColorThemeProperties(theme$1) {
4205
+ function buildColorThemeProperties(theme) {
4303
4206
  const props = {};
4304
4207
  for (const scheme of THEME_COLOR_SCHEMES)
4305
- for (const cardTone of theme.THEME_COLOR_CARD_TONES) {
4306
- Object.assign(props, buildColorAvatarThemeProperties(theme$1, {
4208
+ for (const cardTone of THEME_COLOR_CARD_TONES) {
4209
+ Object.assign(props, buildColorAvatarThemeProperties(theme, {
4307
4210
  scheme,
4308
4211
  cardTone
4309
- })), Object.assign(props, buildColorCardThemeProperties(theme$1, {
4212
+ })), Object.assign(props, buildColorCardThemeProperties(theme, {
4310
4213
  scheme,
4311
4214
  cardTone
4312
4215
  }));
4313
4216
  for (const colorVariant of THEME_COLOR_VARIANTS)
4314
- for (const elementTone of theme.THEME_COLOR_STATE_TONES) {
4315
- const v = varNames.color[scheme][cardTone][colorVariant][elementTone], t = theme$1._tokens.color[cardTone].variant[colorVariant][elementTone], context = {
4217
+ for (const elementTone of THEME_COLOR_STATE_TONES) {
4218
+ const v = varNames.color[scheme][cardTone][colorVariant][elementTone], t = theme._tokens.color[cardTone].variant[colorVariant][elementTone], context = {
4219
+ bgValue: "transparent",
4316
4220
  bgVar: v.bg[0],
4317
4221
  hue: t._hue,
4318
4222
  scheme
4319
4223
  };
4320
4224
  Object.assign(props, {
4321
- [v.bg[0]]: theme.renderColor(t.bg[0], context),
4225
+ [v.bg[0]]: renderColor(t.bg[0], context),
4322
4226
  [v.bg[1]]: `color-mix(in srgb, var(${v.bg[0]}), var(${v.bg[4]}) 25%)`,
4323
4227
  [v.bg[2]]: `color-mix(in srgb, var(${v.bg[0]}), var(${v.bg[4]}) 50%)`,
4324
4228
  [v.bg[3]]: `color-mix(in srgb, var(${v.bg[0]}), var(${v.bg[4]}) 75%)`,
4325
- [v.bg[4]]: theme.renderColor(t.bg[4], context),
4326
- [v.border[0]]: theme.renderColor(t.border[0], context),
4229
+ [v.bg[4]]: renderColor(t.bg[4], context),
4230
+ [v.border[0]]: renderColor(t.border[0], context),
4327
4231
  [v.border[1]]: `color-mix(in srgb, var(${v.border[0]}), var(${v.border[4]}) 25%)`,
4328
4232
  [v.border[2]]: `color-mix(in srgb, var(${v.border[0]}), var(${v.border[4]}) 50%)`,
4329
4233
  [v.border[3]]: `color-mix(in srgb, var(${v.border[0]}), var(${v.border[4]}) 75%)`,
4330
- [v.border[4]]: theme.renderColor(t.border[4], context),
4331
- [v.fg[0]]: theme.renderColor(t.fg[0], context),
4234
+ [v.border[4]]: renderColor(t.border[4], context),
4235
+ [v.fg[0]]: renderColor(t.fg[0], context),
4332
4236
  [v.fg[1]]: `color-mix(in srgb, var(${v.fg[0]}), var(${v.fg[4]}) 25%)`,
4333
4237
  [v.fg[2]]: `color-mix(in srgb, var(${v.fg[0]}), var(${v.fg[4]}) 50%)`,
4334
4238
  [v.fg[3]]: `color-mix(in srgb, var(${v.fg[0]}), var(${v.fg[4]}) 75%)`,
4335
- [v.fg[4]]: theme.renderColor(t.fg[4], context)
4239
+ [v.fg[4]]: renderColor(t.fg[4], context)
4336
4240
  });
4337
4241
  }
4338
4242
  }
4339
4243
  return props;
4340
4244
  }
4341
- function buildColorAvatarThemeProperties(theme$1, options) {
4245
+ function buildColorAvatarThemeProperties(theme, options) {
4342
4246
  const {
4343
4247
  scheme,
4344
4248
  cardTone
4345
- } = options, v = varNames.color[scheme][cardTone], t = theme$1._tokens.color[cardTone], props = {};
4346
- for (const hue of theme.HUES) {
4249
+ } = options, v = varNames.color[scheme][cardTone], t = theme._tokens.color[cardTone], props = {};
4250
+ for (const hue of HUES) {
4347
4251
  const context = {
4252
+ bgValue: "transparent",
4348
4253
  bgVar: varNames.color.bg,
4349
4254
  hue: t.avatar[hue]._hue ?? hue,
4350
4255
  scheme
4351
4256
  };
4352
4257
  Object.assign(props, {
4353
- [v.avatar[hue].bg]: theme.renderColor(t.avatar[hue].bg, context),
4354
- [v.avatar[hue].fg]: theme.renderColor(t.avatar[hue].fg, context)
4258
+ [v.avatar[hue].bg]: renderColor(t.avatar[hue].bg, context),
4259
+ [v.avatar[hue].fg]: renderColor(t.avatar[hue].fg, context)
4355
4260
  });
4356
4261
  }
4357
4262
  return props;
4358
4263
  }
4359
- function buildColorCardThemeProperties(theme$1, options) {
4264
+ function buildColorCardThemeProperties(theme, options) {
4360
4265
  const {
4361
4266
  scheme,
4362
4267
  cardTone
4363
- } = options, v = varNames.color[scheme][cardTone], t = theme$1._tokens.color[cardTone], context = {
4268
+ } = options, v = varNames.color[scheme][cardTone], t = theme._tokens.color[cardTone], context = {
4269
+ bgValue: "transparent",
4364
4270
  bgVar: varNames.color.bg,
4365
4271
  hue: t._hue,
4366
4272
  scheme
4367
4273
  };
4368
4274
  return {
4369
4275
  // backdrop
4370
- [v.backdrop]: theme.renderColor(t.backdrop, context),
4276
+ [v.backdrop]: renderColor(t.backdrop, context),
4371
4277
  // code
4372
- [v.code.bg]: theme.renderColor(t.code.bg, context),
4373
- [v.code.fg]: theme.renderColor(t.code.fg, context),
4278
+ [v.code.bg]: renderColor(t.code.bg, context),
4279
+ [v.code.fg]: renderColor(t.code.fg, context),
4374
4280
  // code / token
4375
- [v.code.token.atrule]: theme.renderColor(t.code.token.atrule, context),
4376
- [v.code.token.attrName]: theme.renderColor(t.code.token.attrName, context),
4377
- [v.code.token.attrValue]: theme.renderColor(t.code.token.attrValue, context),
4378
- [v.code.token.attribute]: theme.renderColor(t.code.token.attribute, context),
4379
- [v.code.token.boolean]: theme.renderColor(t.code.token.boolean, context),
4380
- [v.code.token.builtin]: theme.renderColor(t.code.token.builtin, context),
4381
- [v.code.token.cdata]: theme.renderColor(t.code.token.cdata, context),
4382
- [v.code.token.char]: theme.renderColor(t.code.token.char, context),
4383
- [v.code.token.className]: theme.renderColor(t.code.token.className, context),
4384
- [v.code.token.class]: theme.renderColor(t.code.token.class, context),
4385
- [v.code.token.comment]: theme.renderColor(t.code.token.comment, context),
4386
- [v.code.token.constant]: theme.renderColor(t.code.token.constant, context),
4387
- [v.code.token.deleted]: theme.renderColor(t.code.token.deleted, context),
4388
- [v.code.token.doctype]: theme.renderColor(t.code.token.doctype, context),
4389
- [v.code.token.entity]: theme.renderColor(t.code.token.entity, context),
4390
- [v.code.token.function]: theme.renderColor(t.code.token.function, context),
4391
- [v.code.token.hexcode]: theme.renderColor(t.code.token.hexcode, context),
4392
- [v.code.token.id]: theme.renderColor(t.code.token.id, context),
4393
- [v.code.token.important]: theme.renderColor(t.code.token.important, context),
4394
- [v.code.token.inserted]: theme.renderColor(t.code.token.inserted, context),
4395
- [v.code.token.keyword]: theme.renderColor(t.code.token.keyword, context),
4396
- [v.code.token.number]: theme.renderColor(t.code.token.number, context),
4397
- [v.code.token.operator]: theme.renderColor(t.code.token.operator, context),
4398
- [v.code.token.prolog]: theme.renderColor(t.code.token.prolog, context),
4399
- [v.code.token.property]: theme.renderColor(t.code.token.property, context),
4400
- [v.code.token.pseudoClass]: theme.renderColor(t.code.token.pseudoClass, context),
4401
- [v.code.token.pseudoElement]: theme.renderColor(t.code.token.pseudoElement, context),
4402
- [v.code.token.punctuation]: theme.renderColor(t.code.token.punctuation, context),
4403
- [v.code.token.regex]: theme.renderColor(t.code.token.regex, context),
4404
- [v.code.token.selector]: theme.renderColor(t.code.token.selector, context),
4405
- [v.code.token.string]: theme.renderColor(t.code.token.string, context),
4406
- [v.code.token.symbol]: theme.renderColor(t.code.token.symbol, context),
4407
- [v.code.token.tag]: theme.renderColor(t.code.token.tag, context),
4408
- [v.code.token.unit]: theme.renderColor(t.code.token.unit, context),
4409
- [v.code.token.url]: theme.renderColor(t.code.token.url, context),
4410
- [v.code.token.variable]: theme.renderColor(t.code.token.variable, context),
4281
+ [v.code.token.atrule]: renderColor(t.code.token.atrule, context),
4282
+ [v.code.token.attrName]: renderColor(t.code.token.attrName, context),
4283
+ [v.code.token.attrValue]: renderColor(t.code.token.attrValue, context),
4284
+ [v.code.token.attribute]: renderColor(t.code.token.attribute, context),
4285
+ [v.code.token.boolean]: renderColor(t.code.token.boolean, context),
4286
+ [v.code.token.builtin]: renderColor(t.code.token.builtin, context),
4287
+ [v.code.token.cdata]: renderColor(t.code.token.cdata, context),
4288
+ [v.code.token.char]: renderColor(t.code.token.char, context),
4289
+ [v.code.token.className]: renderColor(t.code.token.className, context),
4290
+ [v.code.token.class]: renderColor(t.code.token.class, context),
4291
+ [v.code.token.comment]: renderColor(t.code.token.comment, context),
4292
+ [v.code.token.constant]: renderColor(t.code.token.constant, context),
4293
+ [v.code.token.deleted]: renderColor(t.code.token.deleted, context),
4294
+ [v.code.token.doctype]: renderColor(t.code.token.doctype, context),
4295
+ [v.code.token.entity]: renderColor(t.code.token.entity, context),
4296
+ [v.code.token.function]: renderColor(t.code.token.function, context),
4297
+ [v.code.token.hexcode]: renderColor(t.code.token.hexcode, context),
4298
+ [v.code.token.id]: renderColor(t.code.token.id, context),
4299
+ [v.code.token.important]: renderColor(t.code.token.important, context),
4300
+ [v.code.token.inserted]: renderColor(t.code.token.inserted, context),
4301
+ [v.code.token.keyword]: renderColor(t.code.token.keyword, context),
4302
+ [v.code.token.number]: renderColor(t.code.token.number, context),
4303
+ [v.code.token.operator]: renderColor(t.code.token.operator, context),
4304
+ [v.code.token.prolog]: renderColor(t.code.token.prolog, context),
4305
+ [v.code.token.property]: renderColor(t.code.token.property, context),
4306
+ [v.code.token.pseudoClass]: renderColor(t.code.token.pseudoClass, context),
4307
+ [v.code.token.pseudoElement]: renderColor(t.code.token.pseudoElement, context),
4308
+ [v.code.token.punctuation]: renderColor(t.code.token.punctuation, context),
4309
+ [v.code.token.regex]: renderColor(t.code.token.regex, context),
4310
+ [v.code.token.selector]: renderColor(t.code.token.selector, context),
4311
+ [v.code.token.string]: renderColor(t.code.token.string, context),
4312
+ [v.code.token.symbol]: renderColor(t.code.token.symbol, context),
4313
+ [v.code.token.tag]: renderColor(t.code.token.tag, context),
4314
+ [v.code.token.unit]: renderColor(t.code.token.unit, context),
4315
+ [v.code.token.url]: renderColor(t.code.token.url, context),
4316
+ [v.code.token.variable]: renderColor(t.code.token.variable, context),
4411
4317
  // focus ring
4412
- [v.focusRing]: theme.renderColor(t.focusRing, context),
4318
+ [v.focusRing]: renderColor(t.focusRing, context),
4413
4319
  // link
4414
- [v.link.fg]: theme.renderColor(t.link.fg, context),
4320
+ [v.link.fg]: renderColor(t.link.fg, context),
4415
4321
  // shadow
4416
- [v.shadow.outline]: theme.renderColor(t.shadow.outline, context),
4417
- [v.shadow.umbra]: theme.renderColor(t.shadow.umbra, context),
4418
- [v.shadow.penumbra]: theme.renderColor(t.shadow.penumbra, context),
4419
- [v.shadow.ambient]: theme.renderColor(t.shadow.ambient, context)
4322
+ [v.shadow.outline]: renderColor(t.shadow.outline, context),
4323
+ [v.shadow.umbra]: renderColor(t.shadow.umbra, context),
4324
+ [v.shadow.penumbra]: renderColor(t.shadow.penumbra, context),
4325
+ [v.shadow.ambient]: renderColor(t.shadow.ambient, context)
4420
4326
  };
4421
4327
  }
4422
- function compileTheme(theme2) {
4423
- return theme2.v3 ? compileTheme_v3(theme2.v3) : theme2.v2 ? `/* v2 - not supported */
4328
+ function _compileTheme(theme) {
4329
+ return theme.v3 ? _compileTheme_v3(theme.v3) : theme.v2 ? `/* v2 - not supported */
4424
4330
  ` : `/* v0 - not supported */
4425
4331
  `;
4426
4332
  }
4333
+ function _resp(prefix, prop) {
4334
+ if (!(prop === void 0 || prop === !1))
4335
+ return Array.isArray(prop) ? prop.map((value, index) => {
4336
+ if (value === void 0 || typeof prop == "boolean" && prop === !1) return;
4337
+ const className = (typeof value == "boolean" ? [prefix] : [prefix, value]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
4338
+ return index === 0 ? className : `${index}:${className}`;
4339
+ }).filter(Boolean).join(" ") : (typeof prop == "boolean" ? [prefix] : [prefix, prop]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
4340
+ }
4341
+ function _getClassNames(...classNames) {
4342
+ return classNames.map((n) => typeof n == "string" && n.trim()).filter(Boolean).join(" ").split(" ");
4343
+ }
4344
+ function composeClassNames(...classNames) {
4345
+ return unique(_getClassNames(...classNames)).join(" ") || void 0;
4346
+ }
4347
+ function unique(array) {
4348
+ return Array.from(new Set(array));
4349
+ }
4350
+ function border(props) {
4351
+ return composeClassNames(_resp("border", props.border), _resp("border-t", props.borderTop), _resp("border-r", props.borderRight), _resp("border-b", props.borderBottom), _resp("border-l", props.borderLeft));
4352
+ }
4353
+ function display(props) {
4354
+ return composeClassNames(_resp(void 0, props.display));
4355
+ }
4356
+ function flex(props) {
4357
+ return composeClassNames(_resp("flex-align", props.align), _resp("f", props.direction), _resp("flex-justify", props.justify), _resp("flex", props.wrap));
4358
+ }
4359
+ function flexItem(props) {
4360
+ return composeClassNames(_resp("f", props.flex));
4361
+ }
4362
+ function font(props) {
4363
+ return composeClassNames("font", props.weight && `font-${props.weight}`);
4364
+ }
4365
+ function gap(props) {
4366
+ return composeClassNames(_resp("g", props.gap), _resp("gx", props.gapX), _resp("gy", props.gapY));
4367
+ }
4368
+ function grid(props) {
4369
+ return composeClassNames(_resp("auto-cols", props.autoCols), _resp("auto-flow", props.autoFlow), _resp("auto-rows", props.autoRows), _resp("cols", props.columns), _resp("rows", props.rows));
4370
+ }
4371
+ function gridItem(props) {
4372
+ return composeClassNames(_resp("col", props.column), _resp("col-start", props.columnStart), _resp("col-end", props.columnEnd), _resp("row", props.row), _resp("row-start", props.rowStart), _resp("row-end", props.rowEnd));
4373
+ }
4374
+ function height(props) {
4375
+ return composeClassNames(_resp("h", props.height));
4376
+ }
4377
+ function inset(props) {
4378
+ return composeClassNames(_resp("inset", props.inset), _resp("top", props.insetTop), _resp("right", props.insetRight), _resp("bottom", props.insetBottom), _resp("left", props.insetLeft));
4379
+ }
4380
+ function margin(props) {
4381
+ return composeClassNames(_resp("m", props.margin), _resp("mx", props.marginX), _resp("my", props.marginY), _resp("mt", props.marginTop), _resp("mr", props.marginRight), _resp("mb", props.marginBottom), _resp("ml", props.marginLeft));
4382
+ }
4383
+ function maxWidth(props) {
4384
+ return _resp("max-w", props.maxWidth) ?? "";
4385
+ }
4386
+ function minWidth(props) {
4387
+ return _resp("min-w", props.minWidth) ?? "";
4388
+ }
4389
+ function overflow(props) {
4390
+ return composeClassNames(_resp("overflow", props.overflow), _resp("overflow-x", props.overflowX), _resp("overflow-y", props.overflowY));
4391
+ }
4392
+ function padding(props) {
4393
+ return composeClassNames(_resp("p", props.padding), _resp("px", props.paddingX), _resp("py", props.paddingY), _resp("pt", props.paddingTop), _resp("pr", props.paddingRight), _resp("pb", props.paddingBottom), _resp("pl", props.paddingLeft));
4394
+ }
4395
+ function pointerEvents(props) {
4396
+ return composeClassNames(props.pointerEvents && `pointer-events-${props.pointerEvents}`);
4397
+ }
4398
+ function position(props) {
4399
+ return composeClassNames(_resp("position", props.position));
4400
+ }
4401
+ function radius(props) {
4402
+ return composeClassNames(_resp("r", props.radius));
4403
+ }
4404
+ function shadow(props) {
4405
+ return composeClassNames(_resp("shadow", props.shadow));
4406
+ }
4407
+ function textAlign(props) {
4408
+ return composeClassNames(_resp("text-align", props.textAlign));
4409
+ }
4410
+ function scopeClassName(className) {
4411
+ if (className !== void 0)
4412
+ return `${PREFIX}${className.trim()}`;
4413
+ }
4414
+ function _comp(...classNames) {
4415
+ return _getClassNames(...classNames).filter(Boolean).map(scopeClassName).join(" ") || void 0;
4416
+ }
4417
+ function textOverflow(props) {
4418
+ return _comp(props.textOverflow && `text-overflow-${props.textOverflow}`);
4419
+ }
4420
+ function width(props) {
4421
+ return _resp("w", props.width) ?? "";
4422
+ }
4427
4423
  function breadcrumbs() {
4428
4424
  return _comp("breadcrumbs");
4429
4425
  }
@@ -4563,11 +4559,7 @@ function box(props) {
4563
4559
  );
4564
4560
  }
4565
4561
  function button(props) {
4566
- const {
4567
- mode,
4568
- tone
4569
- } = props;
4570
- return _comp("button", variantMap[mode ?? "default"], toneMap[tone ?? "default"], display(props), flexItem(props), radius(props), width(props));
4562
+ return _comp("button", display(props), flexItem(props), radius(props), width(props));
4571
4563
  }
4572
4564
  function buttonLoadingBox() {
4573
4565
  return "button-loading-box";
@@ -4661,107 +4653,109 @@ function tooltipCard() {
4661
4653
  function srOnly() {
4662
4654
  return _comp(composeClassNames("sr-only"));
4663
4655
  }
4664
- exports.BREAKPOINTS = BREAKPOINTS;
4665
- exports.PREFIX = PREFIX;
4666
- exports._arrow = _arrow;
4667
- exports._arrowShape = _arrowShape;
4668
- exports._arrowStroke = _arrowStroke;
4669
- exports._arrowStrokeMask = _arrowStrokeMask;
4670
- exports._getClassNames = _getClassNames;
4671
- exports._input = _input;
4672
- exports._inputElement = _inputElement;
4673
- exports._inputPresentation = _inputPresentation;
4674
- exports._selectable = _selectable;
4675
- exports._switch = _switch;
4676
- exports._switchElement = _switchElement;
4677
- exports._switchPresentation = _switchPresentation;
4678
- exports._switchThumb = _switchThumb;
4679
- exports._switchTrack = _switchTrack;
4680
- exports.animatedSpinnerIcon = animatedSpinnerIcon;
4681
- exports.avatar = avatar;
4682
- exports.avatarArrow = avatarArrow;
4683
- exports.avatarCounter = avatarCounter;
4684
- exports.avatarImage = avatarImage;
4685
- exports.avatarInitials = avatarInitials;
4686
- exports.avatarStack = avatarStack;
4687
- exports.badge = badge;
4688
- exports.border = border;
4689
- exports.box = box;
4690
- exports.breadcrumbs = breadcrumbs;
4691
- exports.button = button;
4692
- exports.buttonLoadingBox = buttonLoadingBox;
4693
- exports.card = card;
4694
- exports.checkbox = checkbox;
4695
- exports.checkboxInput = checkboxInput;
4696
- exports.code = code;
4697
- exports.codeSkeleton = codeSkeleton;
4698
- exports.compilePalette = compilePalette;
4699
- exports.compileSystem = compileSystem;
4700
- exports.compileTheme = compileTheme;
4701
- exports.composeClassNames = composeClassNames;
4702
- exports.container = container;
4703
- exports.dialog = dialog;
4704
- exports.dialogCardRoot = dialogCardRoot;
4705
- exports.dialogContainer = dialogContainer;
4706
- exports.dialogContent = dialogContent;
4707
- exports.dialogFooter = dialogFooter;
4708
- exports.dialogHeader = dialogHeader;
4709
- exports.dialogLayout = dialogLayout;
4710
- exports.display = display;
4711
- exports.flex = flex;
4712
- exports.flexItem = flexItem;
4713
- exports.font = font;
4714
- exports.gap = gap;
4715
- exports.grid = grid;
4716
- exports.gridItem = gridItem;
4717
- exports.heading = heading;
4718
- exports.headingSkeleton = headingSkeleton;
4719
- exports.height = height;
4720
- exports.inset = inset;
4721
- exports.isArray = isArray;
4722
- exports.isRecord = isRecord;
4723
- exports.kbd = kbd;
4724
- exports.label = label;
4725
- exports.labelSkeleton = labelSkeleton;
4726
- exports.margin = margin;
4727
- exports.maxWidth = maxWidth;
4728
- exports.menu = menu;
4729
- exports.menuDivider = menuDivider;
4730
- exports.minWidth = minWidth;
4731
- exports.overflow = overflow;
4732
- exports.padding = padding;
4733
- exports.pointerEvents = pointerEvents;
4734
- exports.popover = popover;
4735
- exports.popoverCard = popoverCard;
4736
- exports.position = position;
4737
- exports.px = px;
4738
- exports.radio = radio;
4739
- exports.radius = radius;
4740
- exports.rem = rem;
4741
- exports.scopeClassName = scopeClassName;
4742
- exports.select = select;
4743
- exports.selectPresentation = selectPresentation;
4744
- exports.shadow = shadow;
4745
- exports.skeleton = skeleton;
4746
- exports.spinner = spinner;
4747
- exports.srOnly = srOnly;
4748
- exports.stack = stack;
4749
- exports.text = text;
4750
- exports.textAlign = textAlign;
4751
- exports.textArea = textArea;
4752
- exports.textInput = textInput;
4753
- exports.textOverflow = textOverflow;
4754
- exports.textSkeleton = textSkeleton;
4755
- exports.toBoxShadow = toBoxShadow;
4756
- exports.toast = toast;
4757
- exports.toastLayer = toastLayer;
4758
- exports.toastLoadingBar = toastLoadingBar;
4759
- exports.toastLoadingBarMask = toastLoadingBarMask;
4760
- exports.toastLoadingBarProgress = toastLoadingBarProgress;
4761
- exports.tooltip = tooltip;
4762
- exports.tooltipCard = tooltipCard;
4763
- exports.treeItem = treeItem;
4764
- exports.varNames = varNames;
4765
- exports.vars = vars;
4766
- exports.width = width;
4656
+ export {
4657
+ BREAKPOINTS,
4658
+ PREFIX,
4659
+ _arrow,
4660
+ _arrowShape,
4661
+ _arrowStroke,
4662
+ _arrowStrokeMask,
4663
+ _compilePalette,
4664
+ _compileSystem,
4665
+ _compileTheme,
4666
+ _getClassNames,
4667
+ _input,
4668
+ _inputElement,
4669
+ _inputPresentation,
4670
+ _selectable,
4671
+ _switch,
4672
+ _switchElement,
4673
+ _switchPresentation,
4674
+ _switchThumb,
4675
+ _switchTrack,
4676
+ animatedSpinnerIcon,
4677
+ avatar,
4678
+ avatarArrow,
4679
+ avatarCounter,
4680
+ avatarImage,
4681
+ avatarInitials,
4682
+ avatarStack,
4683
+ badge,
4684
+ border,
4685
+ box,
4686
+ breadcrumbs,
4687
+ button,
4688
+ buttonLoadingBox,
4689
+ card,
4690
+ checkbox,
4691
+ checkboxInput,
4692
+ code,
4693
+ codeSkeleton,
4694
+ composeClassNames,
4695
+ container,
4696
+ dialog,
4697
+ dialogCardRoot,
4698
+ dialogContainer,
4699
+ dialogContent,
4700
+ dialogFooter,
4701
+ dialogHeader,
4702
+ dialogLayout,
4703
+ display,
4704
+ flex,
4705
+ flexItem,
4706
+ font,
4707
+ gap,
4708
+ grid,
4709
+ gridItem,
4710
+ heading,
4711
+ headingSkeleton,
4712
+ height,
4713
+ inset,
4714
+ isArray,
4715
+ isRecord,
4716
+ kbd,
4717
+ label,
4718
+ labelSkeleton,
4719
+ margin,
4720
+ maxWidth,
4721
+ menu,
4722
+ menuDivider,
4723
+ minWidth,
4724
+ overflow,
4725
+ padding,
4726
+ pointerEvents,
4727
+ popover,
4728
+ popoverCard,
4729
+ position,
4730
+ px,
4731
+ radio,
4732
+ radius,
4733
+ rem,
4734
+ scopeClassName,
4735
+ select,
4736
+ selectPresentation,
4737
+ shadow,
4738
+ skeleton,
4739
+ spinner,
4740
+ srOnly,
4741
+ stack,
4742
+ text,
4743
+ textAlign,
4744
+ textArea,
4745
+ textInput,
4746
+ textOverflow,
4747
+ textSkeleton,
4748
+ toBoxShadow,
4749
+ toast,
4750
+ toastLayer,
4751
+ toastLoadingBar,
4752
+ toastLoadingBarMask,
4753
+ toastLoadingBarProgress,
4754
+ tooltip,
4755
+ tooltipCard,
4756
+ treeItem,
4757
+ varNames,
4758
+ vars,
4759
+ width
4760
+ };
4767
4761
  //# sourceMappingURL=css.js.map