@fabio.caffarello/react-design-system 1.10.5 → 1.11.0

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.
@@ -1,7 +1,7 @@
1
- var J = Object.defineProperty;
2
- var ee = (a, t, r) => t in a ? J(a, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[t] = r;
3
- var R = (a, t, r) => ee(a, typeof t != "symbol" ? t + "" : t, r);
4
- const U = {
1
+ var X = Object.defineProperty;
2
+ var Q = (a, t, r) => t in a ? X(a, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[t] = r;
3
+ var D = (a, t, r) => Q(a, typeof t != "symbol" ? t + "" : t, r);
4
+ const R = {
5
5
  // Icon sizes
6
6
  icon: {
7
7
  sm: "h-4 w-4",
@@ -85,8 +85,8 @@ const U = {
85
85
  }
86
86
  }
87
87
  };
88
- function ye(a) {
89
- return a <= 0 ? U.spacing.itemPaddingX : a === 1 ? U.spacing.nestedIndent : a === 2 ? U.spacing.nestedIndentLevel2 : a === 3 ? U.spacing.nestedIndentLevel3 : `pl-${4 + a * 4}`;
88
+ function xe(a) {
89
+ return a <= 0 ? R.spacing.itemPaddingX : a === 1 ? R.spacing.nestedIndent : a === 2 ? R.spacing.nestedIndentLevel2 : a === 3 ? R.spacing.nestedIndentLevel3 : `pl-${4 + a * 4}`;
90
90
  }
91
91
  class d {
92
92
  // 4px base
@@ -155,7 +155,7 @@ class d {
155
155
  }[t] || String(t);
156
156
  }
157
157
  }
158
- R(d, "BASE_UNIT", 4);
158
+ D(d, "BASE_UNIT", 4);
159
159
  const W = {
160
160
  // Micro spacing (0-14px)
161
161
  none: d.create(0),
@@ -193,10 +193,10 @@ const W = {
193
193
  "6xl": d.create(24)
194
194
  // 96px
195
195
  };
196
- function ke(a) {
196
+ function me(a) {
197
197
  return W[a];
198
198
  }
199
- function Te(a, t = "p") {
199
+ function ye(a, t = "p") {
200
200
  const i = W[a].tailwind;
201
201
  return `${{
202
202
  p: "p",
@@ -289,7 +289,7 @@ class l {
289
289
  };
290
290
  }
291
291
  }
292
- const ve = {
292
+ const ke = {
293
293
  sans: {
294
294
  name: "sans",
295
295
  stack: 'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',
@@ -305,13 +305,13 @@ const ve = {
305
305
  stack: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
306
306
  tailwind: "font-mono"
307
307
  }
308
- }, Se = {
308
+ }, Te = {
309
309
  light: l.createFontWeight("light"),
310
310
  normal: l.createFontWeight("normal"),
311
311
  medium: l.createFontWeight("medium"),
312
312
  semibold: l.createFontWeight("semibold"),
313
313
  bold: l.createFontWeight("bold")
314
- }, A = {
314
+ }, L = {
315
315
  // Headings
316
316
  h1: l.create("4xl", "tight", "bold"),
317
317
  h2: l.create("3xl", "tight", "bold"),
@@ -328,29 +328,29 @@ const ve = {
328
328
  caption: l.create("xs", "normal", "normal"),
329
329
  button: l.create("base", "normal", "medium")
330
330
  };
331
- function Ee(a) {
332
- return A[a];
331
+ function ve(a) {
332
+ return L[a];
333
333
  }
334
- function Fe(a) {
335
- const t = A[a];
334
+ function Se(a) {
335
+ const t = L[a];
336
336
  return `${t.fontSize.tailwind} ${t.lineHeight.tailwind} ${t.fontWeight.tailwind}`;
337
337
  }
338
- function $e(a) {
339
- return A[a].fontSize.tailwind;
338
+ function Ee(a) {
339
+ return L[a].fontSize.tailwind;
340
340
  }
341
- function Le(a) {
341
+ function Fe(a) {
342
342
  return l.createFontSize(a).tailwind;
343
343
  }
344
- function Ae(a) {
345
- return A[a].fontWeight.tailwind;
344
+ function $e(a) {
345
+ return L[a].fontWeight.tailwind;
346
346
  }
347
- function Ce(a) {
347
+ function Ae(a) {
348
348
  return l.createFontWeight(a).tailwind;
349
349
  }
350
- function Oe(a) {
351
- return A[a].lineHeight.tailwind;
350
+ function Le(a) {
351
+ return L[a].lineHeight.tailwind;
352
352
  }
353
- const De = [
353
+ const Ie = [
354
354
  50,
355
355
  100,
356
356
  200,
@@ -364,7 +364,7 @@ const De = [
364
364
  950
365
365
  ];
366
366
  function e(a, t, r) {
367
- const i = te(a), n = ae(a);
367
+ const i = J(a), n = ee(a);
368
368
  return {
369
369
  hex: a,
370
370
  rgb: i,
@@ -373,19 +373,19 @@ function e(a, t, r) {
373
373
  tailwind: `${t}-${r}`
374
374
  };
375
375
  }
376
- function te(a) {
376
+ function J(a) {
377
377
  const t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);
378
378
  return t ? `${parseInt(t[1], 16)}, ${parseInt(t[2], 16)}, ${parseInt(t[3], 16)}` : "0, 0, 0";
379
379
  }
380
- function ae(a) {
380
+ function ee(a) {
381
381
  const t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);
382
382
  if (!t) return "0, 0%, 0%";
383
383
  const r = parseInt(t[1], 16) / 255, i = parseInt(t[2], 16) / 255, n = parseInt(t[3], 16) / 255, o = Math.max(r, i, n), s = Math.min(r, i, n);
384
384
  let c = 0, M = 0;
385
- const u = (o + s) / 2;
385
+ const p = (o + s) / 2;
386
386
  if (o !== s) {
387
387
  const x = o - s;
388
- switch (M = u > 0.5 ? x / (2 - o - s) : x / (o + s), o) {
388
+ switch (M = p > 0.5 ? x / (2 - o - s) : x / (o + s), o) {
389
389
  case r:
390
390
  c = ((i - n) / x + (i < n ? 6 : 0)) / 6;
391
391
  break;
@@ -397,7 +397,7 @@ function ae(a) {
397
397
  break;
398
398
  }
399
399
  }
400
- return `${Math.round(c * 360)}, ${Math.round(M * 100)}%, ${Math.round(u * 100)}%`;
400
+ return `${Math.round(c * 360)}, ${Math.round(M * 100)}%, ${Math.round(p * 100)}%`;
401
401
  }
402
402
  const k = {
403
403
  50: e("#eef2ff", "indigo", 50),
@@ -447,7 +447,7 @@ const k = {
447
447
  800: e("#1e293b", "slate", 800),
448
448
  900: e("#0f172a", "slate", 900),
449
449
  950: e("#020617", "slate", 950)
450
- }, re = {
450
+ }, te = {
451
451
  50: e("#f9fafb", "gray", 50),
452
452
  100: e("#f3f4f6", "gray", 100),
453
453
  200: e("#e5e7eb", "gray", 200),
@@ -471,7 +471,7 @@ const k = {
471
471
  800: e("#065f46", "emerald", 800),
472
472
  900: e("#064e3b", "emerald", 900),
473
473
  950: e("#022c22", "emerald", 950)
474
- }, ie = {
474
+ }, ae = {
475
475
  50: e("#f0fdf4", "green", 50),
476
476
  100: e("#dcfce7", "green", 100),
477
477
  200: e("#bbf7d0", "green", 200),
@@ -495,7 +495,7 @@ const k = {
495
495
  800: e("#92400e", "amber", 800),
496
496
  900: e("#78350f", "amber", 900),
497
497
  950: e("#451a03", "amber", 950)
498
- }, ne = {
498
+ }, re = {
499
499
  50: e("#fefce8", "yellow", 50),
500
500
  100: e("#fef9c3", "yellow", 100),
501
501
  200: e("#fef08a", "yellow", 200),
@@ -507,7 +507,7 @@ const k = {
507
507
  800: e("#854d0e", "yellow", 800),
508
508
  900: e("#713f12", "yellow", 900),
509
509
  950: e("#422006", "yellow", 950)
510
- }, oe = {
510
+ }, ie = {
511
511
  50: e("#fff7ed", "orange", 50),
512
512
  100: e("#ffedd5", "orange", 100),
513
513
  200: e("#fed7aa", "orange", 200),
@@ -531,7 +531,7 @@ const k = {
531
531
  800: e("#9f1239", "rose", 800),
532
532
  900: e("#881337", "rose", 900),
533
533
  950: e("#4c0519", "rose", 950)
534
- }, se = {
534
+ }, ne = {
535
535
  50: e("#fef2f2", "red", 50),
536
536
  100: e("#fee2e2", "red", 100),
537
537
  200: e("#fecaca", "red", 200),
@@ -543,7 +543,7 @@ const k = {
543
543
  800: e("#991b1b", "red", 800),
544
544
  900: e("#7f1d1d", "red", 900),
545
545
  950: e("#450a0a", "red", 950)
546
- }, L = {
546
+ }, A = {
547
547
  50: e("#f0f9ff", "sky", 50),
548
548
  100: e("#e0f2fe", "sky", 100),
549
549
  200: e("#bae6fd", "sky", 200),
@@ -555,7 +555,7 @@ const k = {
555
555
  800: e("#075985", "sky", 800),
556
556
  900: e("#0c4a6e", "sky", 900),
557
557
  950: e("#082f49", "sky", 950)
558
- }, ce = {
558
+ }, oe = {
559
559
  50: e("#eff6ff", "blue", 50),
560
560
  100: e("#dbeafe", "blue", 100),
561
561
  200: e("#bfdbfe", "blue", 200),
@@ -567,7 +567,7 @@ const k = {
567
567
  800: e("#1e40af", "blue", 800),
568
568
  900: e("#1e3a8a", "blue", 900),
569
569
  950: e("#172554", "blue", 950)
570
- }, le = {
570
+ }, se = {
571
571
  50: e("#fdf4ff", "fuchsia", 50),
572
572
  100: e("#fae8ff", "fuchsia", 100),
573
573
  200: e("#f5d0fe", "fuchsia", 200),
@@ -579,7 +579,7 @@ const k = {
579
579
  800: e("#86198f", "fuchsia", 800),
580
580
  900: e("#701a75", "fuchsia", 900),
581
581
  950: e("#4a044e", "fuchsia", 950)
582
- }, de = {
582
+ }, ce = {
583
583
  50: e("#fdf2f8", "pink", 50),
584
584
  100: e("#fce7f3", "pink", 100),
585
585
  200: e("#fbcfe8", "pink", 200),
@@ -591,7 +591,7 @@ const k = {
591
591
  800: e("#9d174d", "pink", 800),
592
592
  900: e("#831843", "pink", 900),
593
593
  950: e("#500724", "pink", 950)
594
- }, fe = {
594
+ }, le = {
595
595
  50: e("#faf5ff", "purple", 50),
596
596
  100: e("#f3e8ff", "purple", 100),
597
597
  200: e("#e9d5ff", "purple", 200),
@@ -603,7 +603,7 @@ const k = {
603
603
  800: e("#6b21a8", "purple", 800),
604
604
  900: e("#581c87", "purple", 900),
605
605
  950: e("#3b0764", "purple", 950)
606
- }, ge = {
606
+ }, de = {
607
607
  50: e("#f0fdfa", "teal", 50),
608
608
  100: e("#ccfbf1", "teal", 100),
609
609
  200: e("#99f6e4", "teal", 200),
@@ -615,7 +615,7 @@ const k = {
615
615
  800: e("#115e59", "teal", 800),
616
616
  900: e("#134e4a", "teal", 900),
617
617
  950: e("#042f2e", "teal", 950)
618
- }, he = {
618
+ }, fe = {
619
619
  50: e("#f7fee7", "lime", 50),
620
620
  100: e("#ecfccb", "lime", 100),
621
621
  200: e("#d9f99d", "lime", 200),
@@ -627,32 +627,32 @@ const k = {
627
627
  800: e("#3f6212", "lime", 800),
628
628
  900: e("#365314", "lime", 900),
629
629
  950: e("#1a2e05", "lime", 950)
630
- }, G = {
630
+ }, K = {
631
631
  indigo: k,
632
632
  violet: T,
633
633
  cyan: v,
634
634
  slate: S,
635
- gray: re,
635
+ gray: te,
636
636
  emerald: E,
637
- green: ie,
637
+ green: ae,
638
638
  amber: F,
639
- yellow: ne,
640
- orange: oe,
639
+ yellow: re,
640
+ orange: ie,
641
641
  rose: $,
642
- red: se,
643
- sky: L,
644
- blue: ce,
645
- fuchsia: le,
646
- pink: de,
647
- purple: fe,
648
- teal: ge,
649
- lime: he
642
+ red: ne,
643
+ sky: A,
644
+ blue: oe,
645
+ fuchsia: se,
646
+ pink: ce,
647
+ purple: le,
648
+ teal: de,
649
+ lime: fe
650
650
  };
651
- function I(a, t) {
652
- return G[a][t];
651
+ function O(a, t) {
652
+ return K[a][t];
653
653
  }
654
- function Ie(a) {
655
- return G[a];
654
+ function Ce(a) {
655
+ return K[a];
656
656
  }
657
657
  const V = {
658
658
  primary: {
@@ -728,9 +728,9 @@ const V = {
728
728
  }
729
729
  },
730
730
  info: {
731
- light: L[400],
732
- DEFAULT: L[500],
733
- dark: L[600],
731
+ light: A[400],
732
+ DEFAULT: A[500],
733
+ dark: A[600],
734
734
  contrast: {
735
735
  hex: "#ffffff",
736
736
  rgb: "255, 255, 255",
@@ -751,7 +751,7 @@ const V = {
751
751
  tailwind: "white"
752
752
  }
753
753
  }
754
- }, H = {
754
+ }, G = {
755
755
  primary: {
756
756
  light: k[500],
757
757
  DEFAULT: k[400],
@@ -825,9 +825,9 @@ const V = {
825
825
  }
826
826
  },
827
827
  info: {
828
- light: L[500],
829
- DEFAULT: L[400],
830
- dark: L[300],
828
+ light: A[500],
829
+ DEFAULT: A[400],
830
+ dark: A[300],
831
831
  contrast: {
832
832
  hex: "#ffffff",
833
833
  rgb: "255, 255, 255",
@@ -848,15 +848,15 @@ const V = {
848
848
  tailwind: "white"
849
849
  }
850
850
  }
851
- }, Me = V;
851
+ }, Oe = V;
852
852
  function N(a, t = "DEFAULT", r = "light") {
853
- return (r === "dark" ? H : V)[a][t];
853
+ return (r === "dark" ? G : V)[a][t];
854
854
  }
855
- function Re(a, t = "light") {
856
- return (t === "dark" ? H : V)[a];
855
+ function Me(a, t = "light") {
856
+ return (t === "dark" ? G : V)[a];
857
857
  }
858
- function Ue(a, t, r = {}) {
859
- const { format: i = "hex", opacity: n } = r, o = I(a, t);
858
+ function De(a, t, r = {}) {
859
+ const { format: i = "hex", opacity: n } = r, o = O(a, t);
860
860
  let s;
861
861
  switch (i) {
862
862
  case "rgb":
@@ -877,7 +877,7 @@ function Ue(a, t, r = {}) {
877
877
  }
878
878
  return s;
879
879
  }
880
- function Ne(a, t = "DEFAULT", r = {}) {
880
+ function Re(a, t = "DEFAULT", r = {}) {
881
881
  const { format: i = "hex", opacity: n } = r, o = N(a, t);
882
882
  let s;
883
883
  switch (i) {
@@ -899,55 +899,55 @@ function Ne(a, t = "DEFAULT", r = {}) {
899
899
  }
900
900
  return s;
901
901
  }
902
- function _e(a, t, r = {}) {
902
+ function Ne(a, t, r = {}) {
903
903
  const {
904
904
  type: i = "text",
905
905
  hover: n = !1,
906
906
  focus: o = !1,
907
907
  active: s = !1
908
- } = r, c = I(a, t), u = [`${i}-${c.tailwind}`];
909
- return n && u.push(`hover:${i}-${c.tailwind}`), o && u.push(`focus:${i}-${c.tailwind}`), s && u.push(`active:${i}-${c.tailwind}`), u.join(" ");
908
+ } = r, c = O(a, t), p = [`${i}-${c.tailwind}`];
909
+ return n && p.push(`hover:${i}-${c.tailwind}`), o && p.push(`focus:${i}-${c.tailwind}`), s && p.push(`active:${i}-${c.tailwind}`), p.join(" ");
910
910
  }
911
- function We(a, t = "DEFAULT", r = {}) {
911
+ function Ue(a, t = "DEFAULT", r = {}) {
912
912
  const {
913
913
  type: i = "text",
914
914
  hover: n = !1,
915
915
  focus: o = !1,
916
916
  active: s = !1
917
- } = r, c = N(a, t), u = [`${i}-${c.tailwind}`];
917
+ } = r, c = N(a, t), p = [`${i}-${c.tailwind}`];
918
918
  if (n) {
919
919
  const x = N(
920
920
  a,
921
921
  t === "DEFAULT" ? "dark" : "DEFAULT"
922
922
  );
923
- u.push(`hover:${i}-${x.tailwind}`);
923
+ p.push(`hover:${i}-${x.tailwind}`);
924
924
  }
925
- if (o && u.push(`focus:${i}-${c.tailwind}`), s) {
925
+ if (o && p.push(`focus:${i}-${c.tailwind}`), s) {
926
926
  const x = N(a, "dark");
927
- u.push(`active:${i}-${x.tailwind}`);
927
+ p.push(`active:${i}-${x.tailwind}`);
928
928
  }
929
- return u.join(" ");
929
+ return p.join(" ");
930
930
  }
931
- function Ke(a, t, r = "bg") {
932
- const i = I(a, t);
931
+ function We(a, t, r = "bg") {
932
+ const i = O(a, t);
933
933
  return `hover:${r}-${i.tailwind}`;
934
934
  }
935
- function Be(a, t, r = "border") {
936
- const i = I(a, t);
935
+ function _e(a, t, r = "border") {
936
+ const i = O(a, t);
937
937
  return `focus:${r}-${i.tailwind}`;
938
938
  }
939
- function Pe(a, t) {
940
- return `focus:ring-${I(a, t).tailwind}`;
939
+ function Be(a, t) {
940
+ return `focus:ring-${O(a, t).tailwind}`;
941
941
  }
942
- function ze(a, t) {
942
+ function Pe(a, t) {
943
943
  return `rgba(${a.rgb}, ${t})`;
944
944
  }
945
- function ue(a) {
945
+ function ge(a) {
946
946
  const t = B(a);
947
947
  return t ? 0.299 * t[0] + 0.587 * t[1] + 0.114 * t[2] > 128 : !0;
948
948
  }
949
- function Ve(a) {
950
- return ue(a) ? "#000000" : "#ffffff";
949
+ function ze(a) {
950
+ return ge(a) ? "#000000" : "#ffffff";
951
951
  }
952
952
  function B(a) {
953
953
  const t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);
@@ -957,19 +957,19 @@ function B(a) {
957
957
  parseInt(t[3], 16)
958
958
  ] : null;
959
959
  }
960
- function Z(a, t, r = 0.5) {
960
+ function H(a, t, r = 0.5) {
961
961
  const i = B(a), n = B(t);
962
962
  if (!i || !n) return a;
963
963
  const o = Math.round(i[0] * (1 - r) + n[0] * r), s = Math.round(i[1] * (1 - r) + n[1] * r), c = Math.round(i[2] * (1 - r) + n[2] * r);
964
964
  return `#${((1 << 24) + (o << 16) + (s << 8) + c).toString(16).slice(1)}`;
965
965
  }
966
- function Ge(a, t) {
967
- return Z(a, "#ffffff", t / 100);
966
+ function Ve(a, t) {
967
+ return H(a, "#ffffff", t / 100);
968
968
  }
969
- function He(a, t) {
970
- return Z(a, "#000000", t / 100);
969
+ function Ke(a, t) {
970
+ return H(a, "#000000", t / 100);
971
971
  }
972
- const Ze = {
972
+ const Ge = {
973
973
  primary: {
974
974
  name: "indigo",
975
975
  light: 400,
@@ -989,7 +989,7 @@ const Ze = {
989
989
  dark: 600
990
990
  }
991
991
  };
992
- class C {
992
+ class I {
993
993
  /**
994
994
  * Create breakpoint token
995
995
  */
@@ -1010,21 +1010,21 @@ class C {
1010
1010
  };
1011
1011
  }
1012
1012
  }
1013
- const K = {
1014
- sm: C.create("sm"),
1015
- md: C.create("md"),
1016
- lg: C.create("lg"),
1017
- xl: C.create("xl"),
1018
- "2xl": C.create("2xl")
1013
+ const _ = {
1014
+ sm: I.create("sm"),
1015
+ md: I.create("md"),
1016
+ lg: I.create("lg"),
1017
+ xl: I.create("xl"),
1018
+ "2xl": I.create("2xl")
1019
1019
  };
1020
- function je(a) {
1021
- return K[a];
1020
+ function He(a) {
1021
+ return _[a];
1022
1022
  }
1023
- function Ye(a, t = "min") {
1024
- const r = K[a];
1023
+ function Ze(a, t = "min") {
1024
+ const r = _[a];
1025
1025
  return `@media (${t === "min" ? "min-width" : "max-width"}: ${r.px})`;
1026
1026
  }
1027
- class _ {
1027
+ class U {
1028
1028
  generatePrimary() {
1029
1029
  return {
1030
1030
  light: { hex: "#818cf8", rgb: "129, 140, 248", tailwind: "indigo-400" },
@@ -1142,7 +1142,7 @@ class P {
1142
1142
  }
1143
1143
  class z {
1144
1144
  constructor(t) {
1145
- R(this, "strategy");
1145
+ D(this, "strategy");
1146
1146
  this.strategy = t;
1147
1147
  }
1148
1148
  /**
@@ -1166,13 +1166,13 @@ class z {
1166
1166
  };
1167
1167
  }
1168
1168
  }
1169
- const j = (() => {
1169
+ const Z = (() => {
1170
1170
  let a, t;
1171
1171
  try {
1172
- a = new z(new _()).generatePalette();
1172
+ a = new z(new U()).generatePalette();
1173
1173
  } catch (r) {
1174
1174
  console.error("Failed to initialize COLOR_TOKENS_LIGHT:", r);
1175
- const i = new _();
1175
+ const i = new U();
1176
1176
  a = {
1177
1177
  primary: i.generatePrimary(),
1178
1178
  secondary: i.generateSecondary(),
@@ -1189,79 +1189,7 @@ const j = (() => {
1189
1189
  console.error("Failed to initialize COLOR_TOKENS_DARK:", r), t = a;
1190
1190
  }
1191
1191
  return { light: a, dark: t };
1192
- })(), g = j.light, pe = j.dark, O = g;
1193
- function qe(a, t = "DEFAULT") {
1194
- if (!O || typeof O != "object")
1195
- return console.warn("COLOR_TOKENS is not initialized, using fallback"), { hex: "#6b7280", rgb: "107, 114, 128", tailwind: "gray-500" };
1196
- const r = O[a];
1197
- if (!r || typeof r != "object")
1198
- return console.warn(
1199
- `Color role "${a}" not found in COLOR_TOKENS, using fallback`
1200
- ), { hex: "#6b7280", rgb: "107, 114, 128", tailwind: "gray-500" };
1201
- const i = r[t];
1202
- return !i || typeof i != "object" ? (console.warn(
1203
- `Color shade "${t}" not found for role "${a}", using fallback`
1204
- ), { hex: "#6b7280", rgb: "107, 114, 128", tailwind: "gray-500" }) : i;
1205
- }
1206
- function Y(a, t = "DEFAULT", r = "text") {
1207
- if (!O || typeof O != "object")
1208
- return console.warn("COLOR_TOKENS is not initialized, using fallback"), `${r}-gray-500`;
1209
- const i = O[a];
1210
- if (!i || typeof i != "object")
1211
- return console.warn(
1212
- `Color role "${a}" not found in COLOR_TOKENS, using fallback`
1213
- ), `${r}-gray-500`;
1214
- const n = i[t];
1215
- return !n || typeof n != "object" || !n.tailwind ? (console.warn(
1216
- `Color shade "${t}" not found for role "${a}", using fallback`
1217
- ), `${r}-gray-500`) : `${r}-${n.tailwind}`;
1218
- }
1219
- function Xe(a, t = "DEFAULT", r = "bg") {
1220
- return `hover:${Y(a, t, r)}`;
1221
- }
1222
- function Qe(a, t = "DEFAULT", r = "border") {
1223
- return `focus:${Y(a, t, r)}`;
1224
- }
1225
- function Je(a, t = "DEFAULT") {
1226
- var i;
1227
- return ((i = {
1228
- primary: {
1229
- light: "focus:ring-indigo-400",
1230
- DEFAULT: "focus:ring-indigo-500",
1231
- dark: "focus:ring-indigo-600"
1232
- },
1233
- secondary: {
1234
- light: "focus:ring-pink-300",
1235
- DEFAULT: "focus:ring-pink-500",
1236
- dark: "focus:ring-pink-600"
1237
- },
1238
- success: {
1239
- light: "focus:ring-green-300",
1240
- DEFAULT: "focus:ring-green-500",
1241
- dark: "focus:ring-green-600"
1242
- },
1243
- warning: {
1244
- light: "focus:ring-yellow-300",
1245
- DEFAULT: "focus:ring-yellow-500",
1246
- dark: "focus:ring-yellow-600"
1247
- },
1248
- error: {
1249
- light: "focus:ring-red-300",
1250
- DEFAULT: "focus:ring-red-500",
1251
- dark: "focus:ring-red-600"
1252
- },
1253
- info: {
1254
- light: "focus:ring-blue-300",
1255
- DEFAULT: "focus:ring-blue-500",
1256
- dark: "focus:ring-blue-600"
1257
- },
1258
- neutral: {
1259
- light: "focus:ring-gray-200",
1260
- DEFAULT: "focus:ring-gray-500",
1261
- dark: "focus:ring-gray-700"
1262
- }
1263
- }[a]) == null ? void 0 : i[t]) || "focus:ring-indigo-500";
1264
- }
1192
+ })(), g = Z.light, he = Z.dark;
1265
1193
  class y {
1266
1194
  /**
1267
1195
  * Create a shadow token
@@ -1306,7 +1234,7 @@ class y {
1306
1234
  }[t];
1307
1235
  }
1308
1236
  }
1309
- const q = {
1237
+ const Y = {
1310
1238
  none: y.create("none"),
1311
1239
  sm: y.create("sm"),
1312
1240
  md: y.create("md"),
@@ -1315,11 +1243,11 @@ const q = {
1315
1243
  "2xl": y.create("2xl"),
1316
1244
  inner: y.create("inner")
1317
1245
  };
1318
- function et(a) {
1319
- return q[a];
1246
+ function Ye(a) {
1247
+ return Y[a];
1320
1248
  }
1321
- function tt(a) {
1322
- return q[a].tailwind;
1249
+ function qe(a) {
1250
+ return Y[a].tailwind;
1323
1251
  }
1324
1252
  class m {
1325
1253
  /**
@@ -1377,7 +1305,7 @@ class m {
1377
1305
  };
1378
1306
  }
1379
1307
  }
1380
- const X = {
1308
+ const q = {
1381
1309
  none: m.create("none"),
1382
1310
  sm: m.create("sm"),
1383
1311
  md: m.create("md"),
@@ -1387,11 +1315,11 @@ const X = {
1387
1315
  "3xl": m.create("3xl"),
1388
1316
  full: m.create("full")
1389
1317
  };
1390
- function at(a) {
1391
- return X[a];
1318
+ function je(a) {
1319
+ return q[a];
1392
1320
  }
1393
- function rt(a) {
1394
- return X[a].tailwind;
1321
+ function Xe(a) {
1322
+ return q[a].tailwind;
1395
1323
  }
1396
1324
  class w {
1397
1325
  /**
@@ -1437,7 +1365,7 @@ class w {
1437
1365
  };
1438
1366
  }
1439
1367
  }
1440
- const be = {
1368
+ const pe = {
1441
1369
  none: w.create("none"),
1442
1370
  thin: w.create("thin"),
1443
1371
  base: w.create("base"),
@@ -1450,21 +1378,21 @@ const be = {
1450
1378
  thinDotted: w.create("thin", "dotted"),
1451
1379
  baseDotted: w.create("base", "dotted")
1452
1380
  };
1453
- function it(a) {
1454
- return be[a];
1381
+ function Qe(a) {
1382
+ return pe[a];
1455
1383
  }
1456
- function we(a) {
1384
+ function ue(a) {
1457
1385
  return w.createWidth(a).tailwind;
1458
1386
  }
1459
- function xe(a) {
1387
+ function be(a) {
1460
1388
  return {
1461
1389
  solid: "border-solid",
1462
1390
  dashed: "border-dashed",
1463
1391
  dotted: "border-dotted"
1464
1392
  }[a];
1465
1393
  }
1466
- function nt(a, t = "solid") {
1467
- return `${we(a)} ${xe(t)}`;
1394
+ function Je(a, t = "solid") {
1395
+ return `${ue(a)} ${be(t)}`;
1468
1396
  }
1469
1397
  class b {
1470
1398
  /**
@@ -1535,7 +1463,7 @@ class b {
1535
1463
  };
1536
1464
  }
1537
1465
  }
1538
- const ot = {
1466
+ const et = {
1539
1467
  fast: b.create("fast"),
1540
1468
  base: b.create("base"),
1541
1469
  slow: b.create("slow"),
@@ -1549,21 +1477,21 @@ const ot = {
1549
1477
  transform: b.createTransition("transform", "base"),
1550
1478
  all: b.createTransition("all", "base")
1551
1479
  };
1552
- function st(a, t) {
1480
+ function tt(a, t) {
1553
1481
  return b.create(a, t);
1554
1482
  }
1555
- function ct(a, t = "ease-in-out") {
1483
+ function at(a, t = "ease-in-out") {
1556
1484
  const r = b.create(a, t);
1557
1485
  return `${r.duration.tailwind} ${r.easing.tailwind}`;
1558
1486
  }
1559
- function lt(a, t = "base", r = "ease-in-out") {
1487
+ function rt(a, t = "base", r = "ease-in-out") {
1560
1488
  return b.createTransition(
1561
1489
  a,
1562
1490
  t,
1563
1491
  r
1564
1492
  ).tailwind;
1565
1493
  }
1566
- class p {
1494
+ class u {
1567
1495
  /**
1568
1496
  * Create a z-index token
1569
1497
  */
@@ -1617,22 +1545,22 @@ class p {
1617
1545
  }[t];
1618
1546
  }
1619
1547
  }
1620
- const dt = {
1621
- base: p.create("base"),
1622
- dropdown: p.create("dropdown"),
1623
- sticky: p.create("sticky"),
1624
- fixed: p.create("fixed"),
1625
- "modal-backdrop": p.create("modal-backdrop"),
1626
- modal: p.create("modal"),
1627
- popover: p.create("popover"),
1628
- tooltip: p.create("tooltip"),
1629
- toast: p.create("toast")
1548
+ const it = {
1549
+ base: u.create("base"),
1550
+ dropdown: u.create("dropdown"),
1551
+ sticky: u.create("sticky"),
1552
+ fixed: u.create("fixed"),
1553
+ "modal-backdrop": u.create("modal-backdrop"),
1554
+ modal: u.create("modal"),
1555
+ popover: u.create("popover"),
1556
+ tooltip: u.create("tooltip"),
1557
+ toast: u.create("toast")
1630
1558
  };
1631
- function ft(a) {
1632
- return p.create(a);
1559
+ function nt(a) {
1560
+ return u.create(a);
1633
1561
  }
1634
- function gt(a) {
1635
- return p.create(a).tailwind;
1562
+ function ot(a) {
1563
+ return u.create(a).tailwind;
1636
1564
  }
1637
1565
  class f {
1638
1566
  /**
@@ -1680,7 +1608,7 @@ class f {
1680
1608
  };
1681
1609
  }
1682
1610
  }
1683
- const ht = {
1611
+ const st = {
1684
1612
  transparent: f.create(0),
1685
1613
  5: f.create(5),
1686
1614
  10: f.create(10),
@@ -1697,10 +1625,10 @@ const ht = {
1697
1625
  95: f.create(95),
1698
1626
  opaque: f.create(100)
1699
1627
  };
1700
- function ut(a) {
1628
+ function ct(a) {
1701
1629
  return f.create(a);
1702
1630
  }
1703
- function pt(a) {
1631
+ function lt(a) {
1704
1632
  return f.create(a).tailwind;
1705
1633
  }
1706
1634
  class h {
@@ -1773,7 +1701,7 @@ class h {
1773
1701
  return t;
1774
1702
  }
1775
1703
  }
1776
- const bt = {
1704
+ const dt = {
1777
1705
  primary: h.create("primary"),
1778
1706
  secondary: h.create("secondary"),
1779
1707
  success: h.create("success"),
@@ -1787,16 +1715,16 @@ const bt = {
1787
1715
  "success-to-r": h.create("success", "to-r"),
1788
1716
  "error-to-r": h.create("error", "to-r")
1789
1717
  };
1790
- function wt(a, t) {
1718
+ function ft(a, t) {
1791
1719
  return h.create(a, t);
1792
1720
  }
1793
- function xt(a, t = "to-r") {
1721
+ function gt(a, t = "to-r") {
1794
1722
  return h.create(a, t).tailwind;
1795
1723
  }
1796
- class Q {
1724
+ class j {
1797
1725
  constructor(t = "light") {
1798
- R(this, "colorFactory");
1799
- const r = t === "light" ? new _() : new P();
1726
+ D(this, "colorFactory");
1727
+ const r = t === "light" ? new U() : new P();
1800
1728
  this.colorFactory = new z(r);
1801
1729
  }
1802
1730
  /**
@@ -1821,7 +1749,7 @@ class Q {
1821
1749
  * Create breakpoint token
1822
1750
  */
1823
1751
  createBreakpoint(t) {
1824
- return C.create(t);
1752
+ return I.create(t);
1825
1753
  }
1826
1754
  /**
1827
1755
  * Create shadow token
@@ -1851,7 +1779,7 @@ class Q {
1851
1779
  * Create z-index token
1852
1780
  */
1853
1781
  createZIndex(t) {
1854
- return p.create(t);
1782
+ return u.create(t);
1855
1783
  }
1856
1784
  /**
1857
1785
  * Create opacity token
@@ -1964,27 +1892,27 @@ class Q {
1964
1892
  * Switch theme
1965
1893
  */
1966
1894
  setTheme(t) {
1967
- const r = t === "light" ? new _() : new P();
1895
+ const r = t === "light" ? new U() : new P();
1968
1896
  this.colorFactory.setStrategy(r);
1969
1897
  }
1970
1898
  }
1971
- const mt = new Q("light");
1972
- function yt(a = "light") {
1973
- return new Q(a).createTokenSet();
1899
+ const ht = new j("light");
1900
+ function pt(a = "light") {
1901
+ return new j(a).createTokenSet();
1974
1902
  }
1975
- const kt = {
1903
+ const ut = {
1976
1904
  colors: g,
1977
1905
  spacing: W,
1978
- typography: A,
1979
- breakpoints: K,
1906
+ typography: L,
1907
+ breakpoints: _,
1980
1908
  mode: "light"
1981
- }, Tt = {
1982
- colors: pe,
1909
+ }, bt = {
1910
+ colors: he,
1983
1911
  spacing: W,
1984
- typography: A,
1985
- breakpoints: K,
1912
+ typography: L,
1913
+ breakpoints: _,
1986
1914
  mode: "dark"
1987
- }, D = {
1915
+ }, C = {
1988
1916
  /**
1989
1917
  * Track (the rounded background bar).
1990
1918
  * w * h:
@@ -2022,119 +1950,114 @@ const kt = {
2022
1950
  lg: "translate-x-7"
2023
1951
  }
2024
1952
  };
2025
- function vt(a) {
1953
+ function wt(a) {
2026
1954
  return {
2027
- track: `${D.track[a].w} ${D.track[a].h}`,
2028
- thumb: `${D.thumb[a].w} ${D.thumb[a].h}`,
2029
- translate: D.translate[a]
1955
+ track: `${C.track[a].w} ${C.track[a].h}`,
1956
+ thumb: `${C.thumb[a].w} ${C.thumb[a].h}`,
1957
+ translate: C.translate[a]
2030
1958
  };
2031
1959
  }
2032
1960
  export {
2033
- ne as $,
2034
- ot as A,
2035
- K as B,
2036
- lt as C,
1961
+ A as $,
1962
+ et as A,
1963
+ _ as B,
1964
+ gt as C,
2037
1965
  ft as D,
2038
- pt as E,
2039
- ut as F,
2040
- xt as G,
2041
- wt as H,
2042
- ye as I,
2043
- d as J,
2044
- l as K,
2045
- ve as L,
2046
- Se as M,
2047
- Oe as N,
2048
- Ze as O,
2049
- De as P,
2050
- k as Q,
2051
- v as R,
2052
- U as S,
2053
- A as T,
2054
- S as U,
1966
+ xe as E,
1967
+ d as F,
1968
+ l as G,
1969
+ ke as H,
1970
+ Te as I,
1971
+ Le as J,
1972
+ Ge as K,
1973
+ Ie as L,
1974
+ k as M,
1975
+ v as N,
1976
+ S as O,
1977
+ te as P,
1978
+ E as Q,
1979
+ ae as R,
1980
+ R as S,
1981
+ L as T,
1982
+ F as U,
2055
1983
  T as V,
2056
- re as W,
2057
- E as X,
2058
- ie as Y,
2059
- dt as Z,
2060
- F as _,
2061
- Y as a,
1984
+ ie as W,
1985
+ $ as X,
1986
+ re as Y,
1987
+ it as Z,
1988
+ ne as _,
1989
+ Xe as a,
2062
1990
  oe as a0,
2063
- $ as a1,
2064
- se as a2,
2065
- L as a3,
2066
- ce as a4,
2067
- le as a5,
2068
- de as a6,
2069
- fe as a7,
2070
- ge as a8,
2071
- he as a9,
2072
- X as aA,
2073
- at as aB,
2074
- be as aC,
2075
- it as aD,
2076
- xe as aE,
2077
- nt as aF,
2078
- ht as aG,
2079
- bt as aH,
2080
- D as aI,
2081
- y as aJ,
2082
- m as aK,
2083
- w as aL,
2084
- b as aM,
2085
- p as aN,
2086
- f as aO,
2087
- h as aP,
2088
- G as aa,
2089
- I as ab,
2090
- Ie as ac,
2091
- Me as ad,
2092
- N as ae,
2093
- Re as af,
2094
- Ne as ag,
2095
- We as ah,
2096
- Ke as ai,
2097
- Be as aj,
2098
- Pe as ak,
2099
- ze as al,
2100
- ue as am,
2101
- Ve as an,
2102
- Z as ao,
2103
- Ge as ap,
2104
- He as aq,
2105
- C as ar,
2106
- Q as as,
2107
- mt as at,
2108
- yt as au,
2109
- kt as av,
2110
- Tt as aw,
2111
- qe as ax,
2112
- q as ay,
2113
- et as az,
2114
- rt as b,
2115
- Le as c,
2116
- Ce as d,
1991
+ se as a1,
1992
+ ce as a2,
1993
+ le as a3,
1994
+ de as a4,
1995
+ fe as a5,
1996
+ K as a6,
1997
+ O as a7,
1998
+ Ce as a8,
1999
+ Oe as a9,
2000
+ Je as aA,
2001
+ st as aB,
2002
+ dt as aC,
2003
+ C as aD,
2004
+ y as aE,
2005
+ m as aF,
2006
+ w as aG,
2007
+ b as aH,
2008
+ u as aI,
2009
+ f as aJ,
2010
+ h as aK,
2011
+ N as aa,
2012
+ Me as ab,
2013
+ Re as ac,
2014
+ Ue as ad,
2015
+ We as ae,
2016
+ _e as af,
2017
+ Be as ag,
2018
+ Pe as ah,
2019
+ ge as ai,
2020
+ ze as aj,
2021
+ H as ak,
2022
+ Ve as al,
2023
+ Ke as am,
2024
+ I as an,
2025
+ j as ao,
2026
+ ht as ap,
2027
+ pt as aq,
2028
+ ut as ar,
2029
+ bt as as,
2030
+ Y as at,
2031
+ Ye as au,
2032
+ q as av,
2033
+ je as aw,
2034
+ pe as ax,
2035
+ Qe as ay,
2036
+ be as az,
2037
+ Fe as b,
2038
+ Ae as c,
2039
+ Ee as d,
2117
2040
  $e as e,
2118
- Ae as f,
2119
- Te as g,
2120
- Xe as h,
2121
- Qe as i,
2122
- tt as j,
2123
- gt as k,
2124
- ct as l,
2125
- Fe as m,
2126
- Je as n,
2127
- we as o,
2128
- vt as p,
2129
- V as q,
2130
- H as r,
2131
- W as s,
2132
- ke as t,
2133
- Ee as u,
2134
- _e as v,
2135
- Ue as w,
2136
- je as x,
2137
- Ye as y,
2138
- st as z
2041
+ qe as f,
2042
+ ye as g,
2043
+ ot as h,
2044
+ at as i,
2045
+ Se as j,
2046
+ ue as k,
2047
+ wt as l,
2048
+ V as m,
2049
+ G as n,
2050
+ W as o,
2051
+ me as p,
2052
+ ve as q,
2053
+ Ne as r,
2054
+ De as s,
2055
+ He as t,
2056
+ Ze as u,
2057
+ tt as v,
2058
+ rt as w,
2059
+ nt as x,
2060
+ lt as y,
2061
+ ct as z
2139
2062
  };
2140
- //# sourceMappingURL=tokens-DcAT-mPY.js.map
2063
+ //# sourceMappingURL=tokens-BCpPv8tI.js.map