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

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