@fabio.caffarello/react-design-system 1.11.1 → 1.13.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.
- package/dist/primitives/index.cjs.map +1 -1
- package/dist/primitives/index.js +8 -0
- package/dist/primitives/index.js.map +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.cjs.map +1 -1
- package/dist/tokens/index.js +214 -215
- package/dist/tokens/index.js.map +1 -1
- package/dist/ui/tokens/sidebar.d.ts +7 -7
- package/package.json +3 -1
package/dist/tokens/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var K = Object.defineProperty;
|
|
2
|
-
var P = (t, a,
|
|
3
|
-
var R = (t, a,
|
|
2
|
+
var P = (t, a, i) => a in t ? K(t, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[a] = i;
|
|
3
|
+
var R = (t, a, i) => P(t, typeof a != "symbol" ? a + "" : a, i);
|
|
4
4
|
const I = {
|
|
5
5
|
// Icon sizes
|
|
6
6
|
icon: {
|
|
@@ -40,22 +40,21 @@ const I = {
|
|
|
40
40
|
// Colors (using Tailwind classes)
|
|
41
41
|
colors: {
|
|
42
42
|
active: {
|
|
43
|
-
bg: "bg-
|
|
44
|
-
text: "text-
|
|
45
|
-
border: "border-
|
|
43
|
+
bg: "bg-surface-brand-muted",
|
|
44
|
+
text: "text-fg-brand-emphasis",
|
|
45
|
+
border: "border-line-brand"
|
|
46
46
|
},
|
|
47
47
|
inactive: {
|
|
48
|
-
text: "text-
|
|
49
|
-
hover: "hover:bg-
|
|
48
|
+
text: "text-fg-secondary",
|
|
49
|
+
hover: "hover:bg-surface-hover hover:text-fg-primary"
|
|
50
50
|
},
|
|
51
|
-
groupTitle: "text-
|
|
51
|
+
groupTitle: "text-fg-tertiary"
|
|
52
52
|
},
|
|
53
53
|
// Chevron (for collapsible groups)
|
|
54
54
|
chevron: {
|
|
55
55
|
size: "h-3 w-3",
|
|
56
56
|
// 12px (reduced from h-4 w-4)
|
|
57
|
-
color: "text-
|
|
58
|
-
// Subtle gray color
|
|
57
|
+
color: "text-fg-quaternary"
|
|
59
58
|
},
|
|
60
59
|
// Navigation column (for split sidebar)
|
|
61
60
|
navigation: {
|
|
@@ -85,7 +84,7 @@ const I = {
|
|
|
85
84
|
}
|
|
86
85
|
}
|
|
87
86
|
};
|
|
88
|
-
function
|
|
87
|
+
function de(t) {
|
|
89
88
|
return t <= 0 ? I.spacing.itemPaddingX : t === 1 ? I.spacing.nestedIndent : t === 2 ? I.spacing.nestedIndentLevel2 : t === 3 ? I.spacing.nestedIndentLevel3 : `pl-${4 + t * 4}`;
|
|
90
89
|
}
|
|
91
90
|
class c {
|
|
@@ -94,11 +93,11 @@ class c {
|
|
|
94
93
|
* Create a spacing token from scale value
|
|
95
94
|
*/
|
|
96
95
|
static create(a) {
|
|
97
|
-
const
|
|
96
|
+
const i = a * this.BASE_UNIT, n = i / 16;
|
|
98
97
|
return {
|
|
99
|
-
value:
|
|
100
|
-
rem: `${
|
|
101
|
-
px: `${
|
|
98
|
+
value: i,
|
|
99
|
+
rem: `${n}rem`,
|
|
100
|
+
px: `${i}px`,
|
|
102
101
|
tailwind: this.getTailwindClass(a)
|
|
103
102
|
};
|
|
104
103
|
}
|
|
@@ -193,11 +192,11 @@ const W = {
|
|
|
193
192
|
"6xl": c.create(24)
|
|
194
193
|
// 96px
|
|
195
194
|
};
|
|
196
|
-
function
|
|
195
|
+
function fe(t) {
|
|
197
196
|
return W[t];
|
|
198
197
|
}
|
|
199
|
-
function
|
|
200
|
-
const
|
|
198
|
+
function ue(t, a = "p") {
|
|
199
|
+
const n = W[t].tailwind;
|
|
201
200
|
return `${{
|
|
202
201
|
p: "p",
|
|
203
202
|
m: "m",
|
|
@@ -217,14 +216,14 @@ function u0(t, a = "p") {
|
|
|
217
216
|
"gap-x": "gap-x",
|
|
218
217
|
"gap-y": "gap-y",
|
|
219
218
|
"space-y": "space-y"
|
|
220
|
-
}[a]}-${
|
|
219
|
+
}[a]}-${n}`;
|
|
221
220
|
}
|
|
222
221
|
class l {
|
|
223
222
|
/**
|
|
224
223
|
* Create font size token
|
|
225
224
|
*/
|
|
226
225
|
static createFontSize(a) {
|
|
227
|
-
const
|
|
226
|
+
const n = {
|
|
228
227
|
"2xs": { px: 10, tailwind: "text-2xs" },
|
|
229
228
|
// micro-text (badge counters, mini chips)
|
|
230
229
|
xs: { px: 12, tailwind: "text-xs" },
|
|
@@ -239,17 +238,17 @@ class l {
|
|
|
239
238
|
"6xl": { px: 60, tailwind: "text-6xl" }
|
|
240
239
|
}[a];
|
|
241
240
|
return {
|
|
242
|
-
value:
|
|
243
|
-
rem: `${
|
|
244
|
-
px: `${
|
|
245
|
-
tailwind:
|
|
241
|
+
value: n.px,
|
|
242
|
+
rem: `${n.px / 16}rem`,
|
|
243
|
+
px: `${n.px}px`,
|
|
244
|
+
tailwind: n.tailwind
|
|
246
245
|
};
|
|
247
246
|
}
|
|
248
247
|
/**
|
|
249
248
|
* Create line height token
|
|
250
249
|
*/
|
|
251
250
|
static createLineHeight(a) {
|
|
252
|
-
const
|
|
251
|
+
const n = {
|
|
253
252
|
none: { value: 1, tailwind: "leading-none" },
|
|
254
253
|
tight: { value: 1.25, tailwind: "leading-tight" },
|
|
255
254
|
snug: { value: 1.375, tailwind: "leading-snug" },
|
|
@@ -258,15 +257,15 @@ class l {
|
|
|
258
257
|
loose: { value: 2, tailwind: "leading-loose" }
|
|
259
258
|
}[a];
|
|
260
259
|
return {
|
|
261
|
-
value:
|
|
262
|
-
tailwind:
|
|
260
|
+
value: n.value,
|
|
261
|
+
tailwind: n.tailwind
|
|
263
262
|
};
|
|
264
263
|
}
|
|
265
264
|
/**
|
|
266
265
|
* Create font weight token
|
|
267
266
|
*/
|
|
268
267
|
static createFontWeight(a) {
|
|
269
|
-
const
|
|
268
|
+
const n = {
|
|
270
269
|
light: { value: 300, tailwind: "font-light" },
|
|
271
270
|
normal: { value: 400, tailwind: "font-normal" },
|
|
272
271
|
medium: { value: 500, tailwind: "font-medium" },
|
|
@@ -274,22 +273,22 @@ class l {
|
|
|
274
273
|
bold: { value: 700, tailwind: "font-bold" }
|
|
275
274
|
}[a];
|
|
276
275
|
return {
|
|
277
|
-
value:
|
|
278
|
-
tailwind:
|
|
276
|
+
value: n.value,
|
|
277
|
+
tailwind: n.tailwind
|
|
279
278
|
};
|
|
280
279
|
}
|
|
281
280
|
/**
|
|
282
281
|
* Create complete typography token
|
|
283
282
|
*/
|
|
284
|
-
static create(a,
|
|
283
|
+
static create(a, i = "normal", n = "normal") {
|
|
285
284
|
return {
|
|
286
285
|
fontSize: this.createFontSize(a),
|
|
287
|
-
lineHeight: this.createLineHeight(
|
|
288
|
-
fontWeight: this.createFontWeight(
|
|
286
|
+
lineHeight: this.createLineHeight(i),
|
|
287
|
+
fontWeight: this.createFontWeight(n)
|
|
289
288
|
};
|
|
290
289
|
}
|
|
291
290
|
}
|
|
292
|
-
const
|
|
291
|
+
const pe = {
|
|
293
292
|
sans: {
|
|
294
293
|
name: "sans",
|
|
295
294
|
stack: 'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',
|
|
@@ -305,7 +304,7 @@ const p0 = {
|
|
|
305
304
|
stack: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
|
|
306
305
|
tailwind: "font-mono"
|
|
307
306
|
}
|
|
308
|
-
},
|
|
307
|
+
}, ge = {
|
|
309
308
|
light: l.createFontWeight("light"),
|
|
310
309
|
normal: l.createFontWeight("normal"),
|
|
311
310
|
medium: l.createFontWeight("medium"),
|
|
@@ -328,29 +327,29 @@ const p0 = {
|
|
|
328
327
|
caption: l.create("xs", "normal", "normal"),
|
|
329
328
|
button: l.create("base", "normal", "medium")
|
|
330
329
|
};
|
|
331
|
-
function
|
|
330
|
+
function he(t) {
|
|
332
331
|
return A[t];
|
|
333
332
|
}
|
|
334
|
-
function
|
|
333
|
+
function be(t) {
|
|
335
334
|
const a = A[t];
|
|
336
335
|
return `${a.fontSize.tailwind} ${a.lineHeight.tailwind} ${a.fontWeight.tailwind}`;
|
|
337
336
|
}
|
|
338
|
-
function
|
|
337
|
+
function me(t) {
|
|
339
338
|
return A[t].fontSize.tailwind;
|
|
340
339
|
}
|
|
341
|
-
function
|
|
340
|
+
function we(t) {
|
|
342
341
|
return l.createFontSize(t).tailwind;
|
|
343
342
|
}
|
|
344
|
-
function
|
|
343
|
+
function xe(t) {
|
|
345
344
|
return A[t].fontWeight.tailwind;
|
|
346
345
|
}
|
|
347
|
-
function
|
|
346
|
+
function ye(t) {
|
|
348
347
|
return l.createFontWeight(t).tailwind;
|
|
349
348
|
}
|
|
350
|
-
function
|
|
349
|
+
function ke(t) {
|
|
351
350
|
return A[t].lineHeight.tailwind;
|
|
352
351
|
}
|
|
353
|
-
const
|
|
352
|
+
const ve = [
|
|
354
353
|
50,
|
|
355
354
|
100,
|
|
356
355
|
200,
|
|
@@ -363,14 +362,14 @@ const v0 = [
|
|
|
363
362
|
900,
|
|
364
363
|
950
|
|
365
364
|
];
|
|
366
|
-
function e(t, a,
|
|
367
|
-
const
|
|
365
|
+
function e(t, a, i) {
|
|
366
|
+
const n = G(t), r = Y(t);
|
|
368
367
|
return {
|
|
369
368
|
hex: t,
|
|
370
|
-
rgb:
|
|
369
|
+
rgb: n,
|
|
371
370
|
hsl: r,
|
|
372
|
-
cssVar: `var(--color-${a}-${
|
|
373
|
-
tailwind: `${a}-${
|
|
371
|
+
cssVar: `var(--color-${a}-${i})`,
|
|
372
|
+
tailwind: `${a}-${i}`
|
|
374
373
|
};
|
|
375
374
|
}
|
|
376
375
|
function G(t) {
|
|
@@ -380,20 +379,20 @@ function G(t) {
|
|
|
380
379
|
function Y(t) {
|
|
381
380
|
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
382
381
|
if (!a) return "0, 0%, 0%";
|
|
383
|
-
const
|
|
382
|
+
const i = parseInt(a[1], 16) / 255, n = parseInt(a[2], 16) / 255, r = parseInt(a[3], 16) / 255, o = Math.max(i, n, r), s = Math.min(i, n, r);
|
|
384
383
|
let f = 0, L = 0;
|
|
385
384
|
const u = (o + s) / 2;
|
|
386
385
|
if (o !== s) {
|
|
387
386
|
const b = o - s;
|
|
388
387
|
switch (L = u > 0.5 ? b / (2 - o - s) : b / (o + s), o) {
|
|
389
|
-
case n:
|
|
390
|
-
f = ((i - r) / b + (i < r ? 6 : 0)) / 6;
|
|
391
|
-
break;
|
|
392
388
|
case i:
|
|
393
|
-
f = ((
|
|
389
|
+
f = ((n - r) / b + (n < r ? 6 : 0)) / 6;
|
|
390
|
+
break;
|
|
391
|
+
case n:
|
|
392
|
+
f = ((r - i) / b + 2) / 6;
|
|
394
393
|
break;
|
|
395
394
|
case r:
|
|
396
|
-
f = ((
|
|
395
|
+
f = ((i - n) / b + 4) / 6;
|
|
397
396
|
break;
|
|
398
397
|
}
|
|
399
398
|
}
|
|
@@ -567,7 +566,7 @@ const x = {
|
|
|
567
566
|
800: e("#1e40af", "blue", 800),
|
|
568
567
|
900: e("#1e3a8a", "blue", 900),
|
|
569
568
|
950: e("#172554", "blue", 950)
|
|
570
|
-
},
|
|
569
|
+
}, ee = {
|
|
571
570
|
50: e("#fdf4ff", "fuchsia", 50),
|
|
572
571
|
100: e("#fae8ff", "fuchsia", 100),
|
|
573
572
|
200: e("#f5d0fe", "fuchsia", 200),
|
|
@@ -579,7 +578,7 @@ const x = {
|
|
|
579
578
|
800: e("#86198f", "fuchsia", 800),
|
|
580
579
|
900: e("#701a75", "fuchsia", 900),
|
|
581
580
|
950: e("#4a044e", "fuchsia", 950)
|
|
582
|
-
},
|
|
581
|
+
}, te = {
|
|
583
582
|
50: e("#fdf2f8", "pink", 50),
|
|
584
583
|
100: e("#fce7f3", "pink", 100),
|
|
585
584
|
200: e("#fbcfe8", "pink", 200),
|
|
@@ -591,7 +590,7 @@ const x = {
|
|
|
591
590
|
800: e("#9d174d", "pink", 800),
|
|
592
591
|
900: e("#831843", "pink", 900),
|
|
593
592
|
950: e("#500724", "pink", 950)
|
|
594
|
-
},
|
|
593
|
+
}, ae = {
|
|
595
594
|
50: e("#faf5ff", "purple", 50),
|
|
596
595
|
100: e("#f3e8ff", "purple", 100),
|
|
597
596
|
200: e("#e9d5ff", "purple", 200),
|
|
@@ -603,7 +602,7 @@ const x = {
|
|
|
603
602
|
800: e("#6b21a8", "purple", 800),
|
|
604
603
|
900: e("#581c87", "purple", 900),
|
|
605
604
|
950: e("#3b0764", "purple", 950)
|
|
606
|
-
},
|
|
605
|
+
}, ne = {
|
|
607
606
|
50: e("#f0fdfa", "teal", 50),
|
|
608
607
|
100: e("#ccfbf1", "teal", 100),
|
|
609
608
|
200: e("#99f6e4", "teal", 200),
|
|
@@ -615,7 +614,7 @@ const x = {
|
|
|
615
614
|
800: e("#115e59", "teal", 800),
|
|
616
615
|
900: e("#134e4a", "teal", 900),
|
|
617
616
|
950: e("#042f2e", "teal", 950)
|
|
618
|
-
},
|
|
617
|
+
}, ie = {
|
|
619
618
|
50: e("#f7fee7", "lime", 50),
|
|
620
619
|
100: e("#ecfccb", "lime", 100),
|
|
621
620
|
200: e("#d9f99d", "lime", 200),
|
|
@@ -642,16 +641,16 @@ const x = {
|
|
|
642
641
|
red: Q,
|
|
643
642
|
sky: E,
|
|
644
643
|
blue: J,
|
|
645
|
-
fuchsia:
|
|
646
|
-
pink:
|
|
647
|
-
purple:
|
|
648
|
-
teal:
|
|
649
|
-
lime:
|
|
644
|
+
fuchsia: ee,
|
|
645
|
+
pink: te,
|
|
646
|
+
purple: ae,
|
|
647
|
+
teal: ne,
|
|
648
|
+
lime: ie
|
|
650
649
|
};
|
|
651
650
|
function C(t, a) {
|
|
652
651
|
return U[t][a];
|
|
653
652
|
}
|
|
654
|
-
function
|
|
653
|
+
function Te(t) {
|
|
655
654
|
return U[t];
|
|
656
655
|
}
|
|
657
656
|
const D = {
|
|
@@ -848,17 +847,17 @@ const D = {
|
|
|
848
847
|
tailwind: "white"
|
|
849
848
|
}
|
|
850
849
|
}
|
|
851
|
-
}, $
|
|
852
|
-
function O(t, a = "DEFAULT",
|
|
853
|
-
return (
|
|
850
|
+
}, $e = D;
|
|
851
|
+
function O(t, a = "DEFAULT", i = "light") {
|
|
852
|
+
return (i === "dark" ? V : D)[t][a];
|
|
854
853
|
}
|
|
855
|
-
function
|
|
854
|
+
function Se(t, a = "light") {
|
|
856
855
|
return (a === "dark" ? V : D)[t];
|
|
857
856
|
}
|
|
858
|
-
function
|
|
859
|
-
const { format:
|
|
857
|
+
function Ee(t, a, i = {}) {
|
|
858
|
+
const { format: n = "hex", opacity: r } = i, o = C(t, a);
|
|
860
859
|
let s;
|
|
861
|
-
switch (
|
|
860
|
+
switch (n) {
|
|
862
861
|
case "rgb":
|
|
863
862
|
s = r !== void 0 ? `rgba(${o.rgb}, ${r})` : `rgb(${o.rgb})`;
|
|
864
863
|
break;
|
|
@@ -877,10 +876,10 @@ function E0(t, a, n = {}) {
|
|
|
877
876
|
}
|
|
878
877
|
return s;
|
|
879
878
|
}
|
|
880
|
-
function
|
|
881
|
-
const { format:
|
|
879
|
+
function Fe(t, a = "DEFAULT", i = {}) {
|
|
880
|
+
const { format: n = "hex", opacity: r } = i, o = O(t, a);
|
|
882
881
|
let s;
|
|
883
|
-
switch (
|
|
882
|
+
switch (n) {
|
|
884
883
|
case "rgb":
|
|
885
884
|
s = r !== void 0 ? `rgba(${o.rgb}, ${r})` : `rgb(${o.rgb})`;
|
|
886
885
|
break;
|
|
@@ -899,55 +898,55 @@ function F0(t, a = "DEFAULT", n = {}) {
|
|
|
899
898
|
}
|
|
900
899
|
return s;
|
|
901
900
|
}
|
|
902
|
-
function
|
|
901
|
+
function Me(t, a, i = {}) {
|
|
903
902
|
const {
|
|
904
|
-
type:
|
|
903
|
+
type: n = "text",
|
|
905
904
|
hover: r = !1,
|
|
906
905
|
focus: o = !1,
|
|
907
906
|
active: s = !1
|
|
908
|
-
} =
|
|
909
|
-
return r && u.push(`hover:${
|
|
907
|
+
} = i, f = C(t, a), u = [`${n}-${f.tailwind}`];
|
|
908
|
+
return r && u.push(`hover:${n}-${f.tailwind}`), o && u.push(`focus:${n}-${f.tailwind}`), s && u.push(`active:${n}-${f.tailwind}`), u.join(" ");
|
|
910
909
|
}
|
|
911
|
-
function
|
|
910
|
+
function Ae(t, a = "DEFAULT", i = {}) {
|
|
912
911
|
const {
|
|
913
|
-
type:
|
|
912
|
+
type: n = "text",
|
|
914
913
|
hover: r = !1,
|
|
915
914
|
focus: o = !1,
|
|
916
915
|
active: s = !1
|
|
917
|
-
} =
|
|
916
|
+
} = i, f = O(t, a), u = [`${n}-${f.tailwind}`];
|
|
918
917
|
if (r) {
|
|
919
918
|
const b = O(
|
|
920
919
|
t,
|
|
921
920
|
a === "DEFAULT" ? "dark" : "DEFAULT"
|
|
922
921
|
);
|
|
923
|
-
u.push(`hover:${
|
|
922
|
+
u.push(`hover:${n}-${b.tailwind}`);
|
|
924
923
|
}
|
|
925
|
-
if (o && u.push(`focus:${
|
|
924
|
+
if (o && u.push(`focus:${n}-${f.tailwind}`), s) {
|
|
926
925
|
const b = O(t, "dark");
|
|
927
|
-
u.push(`active:${
|
|
926
|
+
u.push(`active:${n}-${b.tailwind}`);
|
|
928
927
|
}
|
|
929
928
|
return u.join(" ");
|
|
930
929
|
}
|
|
931
|
-
function
|
|
932
|
-
const
|
|
933
|
-
return `hover:${
|
|
930
|
+
function Ce(t, a, i = "bg") {
|
|
931
|
+
const n = C(t, a);
|
|
932
|
+
return `hover:${i}-${n.tailwind}`;
|
|
934
933
|
}
|
|
935
|
-
function
|
|
936
|
-
const
|
|
937
|
-
return `focus:${
|
|
934
|
+
function Le(t, a, i = "border") {
|
|
935
|
+
const n = C(t, a);
|
|
936
|
+
return `focus:${i}-${n.tailwind}`;
|
|
938
937
|
}
|
|
939
|
-
function
|
|
938
|
+
function Ie(t, a) {
|
|
940
939
|
return `focus:ring-${C(t, a).tailwind}`;
|
|
941
940
|
}
|
|
942
|
-
function
|
|
941
|
+
function Oe(t, a) {
|
|
943
942
|
return `rgba(${t.rgb}, ${a})`;
|
|
944
943
|
}
|
|
945
|
-
function
|
|
944
|
+
function re(t) {
|
|
946
945
|
const a = N(t);
|
|
947
946
|
return a ? 0.299 * a[0] + 0.587 * a[1] + 0.114 * a[2] > 128 : !0;
|
|
948
947
|
}
|
|
949
|
-
function
|
|
950
|
-
return
|
|
948
|
+
function Ne(t) {
|
|
949
|
+
return re(t) ? "#000000" : "#ffffff";
|
|
951
950
|
}
|
|
952
951
|
function N(t) {
|
|
953
952
|
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
@@ -957,19 +956,19 @@ function N(t) {
|
|
|
957
956
|
parseInt(a[3], 16)
|
|
958
957
|
] : null;
|
|
959
958
|
}
|
|
960
|
-
function _(t, a,
|
|
961
|
-
const
|
|
962
|
-
if (!
|
|
963
|
-
const o = Math.round(
|
|
959
|
+
function _(t, a, i = 0.5) {
|
|
960
|
+
const n = N(t), r = N(a);
|
|
961
|
+
if (!n || !r) return t;
|
|
962
|
+
const o = Math.round(n[0] * (1 - i) + r[0] * i), s = Math.round(n[1] * (1 - i) + r[1] * i), f = Math.round(n[2] * (1 - i) + r[2] * i);
|
|
964
963
|
return `#${((1 << 24) + (o << 16) + (s << 8) + f).toString(16).slice(1)}`;
|
|
965
964
|
}
|
|
966
|
-
function
|
|
965
|
+
function De(t, a) {
|
|
967
966
|
return _(t, "#ffffff", a / 100);
|
|
968
967
|
}
|
|
969
|
-
function
|
|
968
|
+
function Re(t, a) {
|
|
970
969
|
return _(t, "#000000", a / 100);
|
|
971
970
|
}
|
|
972
|
-
const
|
|
971
|
+
const We = {
|
|
973
972
|
primary: {
|
|
974
973
|
name: "indigo",
|
|
975
974
|
light: 400,
|
|
@@ -994,7 +993,7 @@ class F {
|
|
|
994
993
|
* Create breakpoint token
|
|
995
994
|
*/
|
|
996
995
|
static create(a) {
|
|
997
|
-
const
|
|
996
|
+
const n = {
|
|
998
997
|
sm: { minWidth: 640, tailwind: "sm" },
|
|
999
998
|
md: { minWidth: 768, tailwind: "md" },
|
|
1000
999
|
lg: { minWidth: 1024, tailwind: "lg" },
|
|
@@ -1003,10 +1002,10 @@ class F {
|
|
|
1003
1002
|
}[a];
|
|
1004
1003
|
return {
|
|
1005
1004
|
name: a,
|
|
1006
|
-
minWidth:
|
|
1007
|
-
px: `${
|
|
1008
|
-
rem: `${
|
|
1009
|
-
tailwind:
|
|
1005
|
+
minWidth: n.minWidth,
|
|
1006
|
+
px: `${n.minWidth}px`,
|
|
1007
|
+
rem: `${n.minWidth / 16}rem`,
|
|
1008
|
+
tailwind: n.tailwind
|
|
1010
1009
|
};
|
|
1011
1010
|
}
|
|
1012
1011
|
}
|
|
@@ -1017,19 +1016,19 @@ const z = {
|
|
|
1017
1016
|
xl: F.create("xl"),
|
|
1018
1017
|
"2xl": F.create("2xl")
|
|
1019
1018
|
};
|
|
1020
|
-
function
|
|
1019
|
+
function Ue(t) {
|
|
1021
1020
|
return z[t];
|
|
1022
1021
|
}
|
|
1023
|
-
function
|
|
1024
|
-
const
|
|
1025
|
-
return `@media (${a === "min" ? "min-width" : "max-width"}: ${
|
|
1022
|
+
function Ve(t, a = "min") {
|
|
1023
|
+
const i = z[t];
|
|
1024
|
+
return `@media (${a === "min" ? "min-width" : "max-width"}: ${i.px})`;
|
|
1026
1025
|
}
|
|
1027
1026
|
class g {
|
|
1028
1027
|
/**
|
|
1029
1028
|
* Create an animation token
|
|
1030
1029
|
*/
|
|
1031
|
-
static create(a,
|
|
1032
|
-
const
|
|
1030
|
+
static create(a, i = "ease-in-out") {
|
|
1031
|
+
const n = {
|
|
1033
1032
|
fast: {
|
|
1034
1033
|
value: "150ms",
|
|
1035
1034
|
ms: 150,
|
|
@@ -1073,15 +1072,15 @@ class g {
|
|
|
1073
1072
|
}
|
|
1074
1073
|
};
|
|
1075
1074
|
return {
|
|
1076
|
-
duration:
|
|
1077
|
-
easing: r[
|
|
1075
|
+
duration: n[a],
|
|
1076
|
+
easing: r[i]
|
|
1078
1077
|
};
|
|
1079
1078
|
}
|
|
1080
1079
|
/**
|
|
1081
1080
|
* Create a transition token
|
|
1082
1081
|
*/
|
|
1083
|
-
static createTransition(a,
|
|
1084
|
-
const r = this.create(
|
|
1082
|
+
static createTransition(a, i = "base", n = "ease-in-out") {
|
|
1083
|
+
const r = this.create(i, n), o = Array.isArray(a) ? a.join(", ") : a, s = [
|
|
1085
1084
|
r.duration.tailwind,
|
|
1086
1085
|
r.easing.tailwind
|
|
1087
1086
|
].join(" ");
|
|
@@ -1093,7 +1092,7 @@ class g {
|
|
|
1093
1092
|
};
|
|
1094
1093
|
}
|
|
1095
1094
|
}
|
|
1096
|
-
const
|
|
1095
|
+
const _e = {
|
|
1097
1096
|
fast: g.create("fast"),
|
|
1098
1097
|
base: g.create("base"),
|
|
1099
1098
|
slow: g.create("slow"),
|
|
@@ -1107,18 +1106,18 @@ const _0 = {
|
|
|
1107
1106
|
transform: g.createTransition("transform", "base"),
|
|
1108
1107
|
all: g.createTransition("all", "base")
|
|
1109
1108
|
};
|
|
1110
|
-
function
|
|
1109
|
+
function ze(t, a) {
|
|
1111
1110
|
return g.create(t, a);
|
|
1112
1111
|
}
|
|
1113
|
-
function
|
|
1114
|
-
const
|
|
1115
|
-
return `${
|
|
1112
|
+
function Be(t, a = "ease-in-out") {
|
|
1113
|
+
const i = g.create(t, a);
|
|
1114
|
+
return `${i.duration.tailwind} ${i.easing.tailwind}`;
|
|
1116
1115
|
}
|
|
1117
|
-
function
|
|
1116
|
+
function He(t, a = "base", i = "ease-in-out") {
|
|
1118
1117
|
return g.createTransition(
|
|
1119
1118
|
t,
|
|
1120
1119
|
a,
|
|
1121
|
-
|
|
1120
|
+
i
|
|
1122
1121
|
).tailwind;
|
|
1123
1122
|
}
|
|
1124
1123
|
class p {
|
|
@@ -1175,7 +1174,7 @@ class p {
|
|
|
1175
1174
|
}[a];
|
|
1176
1175
|
}
|
|
1177
1176
|
}
|
|
1178
|
-
const
|
|
1177
|
+
const Ke = {
|
|
1179
1178
|
base: p.create("base"),
|
|
1180
1179
|
dropdown: p.create("dropdown"),
|
|
1181
1180
|
sticky: p.create("sticky"),
|
|
@@ -1186,10 +1185,10 @@ const K0 = {
|
|
|
1186
1185
|
tooltip: p.create("tooltip"),
|
|
1187
1186
|
toast: p.create("toast")
|
|
1188
1187
|
};
|
|
1189
|
-
function
|
|
1188
|
+
function Pe(t) {
|
|
1190
1189
|
return p.create(t);
|
|
1191
1190
|
}
|
|
1192
|
-
function
|
|
1191
|
+
function Ge(t) {
|
|
1193
1192
|
return p.create(t).tailwind;
|
|
1194
1193
|
}
|
|
1195
1194
|
class d {
|
|
@@ -1197,7 +1196,7 @@ class d {
|
|
|
1197
1196
|
* Create an opacity token
|
|
1198
1197
|
*/
|
|
1199
1198
|
static create(a) {
|
|
1200
|
-
const
|
|
1199
|
+
const i = a / 100, n = {
|
|
1201
1200
|
0: "Fully transparent",
|
|
1202
1201
|
5: "Very light overlay",
|
|
1203
1202
|
10: "Light overlay",
|
|
@@ -1216,7 +1215,7 @@ class d {
|
|
|
1216
1215
|
};
|
|
1217
1216
|
return {
|
|
1218
1217
|
value: a,
|
|
1219
|
-
decimal:
|
|
1218
|
+
decimal: i,
|
|
1220
1219
|
tailwind: {
|
|
1221
1220
|
0: "opacity-0",
|
|
1222
1221
|
5: "opacity-5",
|
|
@@ -1234,11 +1233,11 @@ class d {
|
|
|
1234
1233
|
95: "opacity-95",
|
|
1235
1234
|
100: "opacity-100"
|
|
1236
1235
|
}[a],
|
|
1237
|
-
description:
|
|
1236
|
+
description: n[a]
|
|
1238
1237
|
};
|
|
1239
1238
|
}
|
|
1240
1239
|
}
|
|
1241
|
-
const
|
|
1240
|
+
const Ye = {
|
|
1242
1241
|
transparent: d.create(0),
|
|
1243
1242
|
5: d.create(5),
|
|
1244
1243
|
10: d.create(10),
|
|
@@ -1255,10 +1254,10 @@ const Y0 = {
|
|
|
1255
1254
|
95: d.create(95),
|
|
1256
1255
|
opaque: d.create(100)
|
|
1257
1256
|
};
|
|
1258
|
-
function
|
|
1257
|
+
function qe(t) {
|
|
1259
1258
|
return d.create(t);
|
|
1260
1259
|
}
|
|
1261
|
-
function
|
|
1260
|
+
function Xe(t) {
|
|
1262
1261
|
return d.create(t).tailwind;
|
|
1263
1262
|
}
|
|
1264
1263
|
class m {
|
|
@@ -1266,7 +1265,7 @@ class m {
|
|
|
1266
1265
|
* Create a radius token
|
|
1267
1266
|
*/
|
|
1268
1267
|
static create(a) {
|
|
1269
|
-
const
|
|
1268
|
+
const n = {
|
|
1270
1269
|
none: {
|
|
1271
1270
|
px: 0,
|
|
1272
1271
|
tailwind: "rounded-none",
|
|
@@ -1309,11 +1308,11 @@ class m {
|
|
|
1309
1308
|
}
|
|
1310
1309
|
}[a];
|
|
1311
1310
|
return {
|
|
1312
|
-
value:
|
|
1313
|
-
rem: `${
|
|
1314
|
-
px: `${
|
|
1315
|
-
tailwind:
|
|
1316
|
-
description:
|
|
1311
|
+
value: n.px,
|
|
1312
|
+
rem: `${n.px / 16}rem`,
|
|
1313
|
+
px: `${n.px}px`,
|
|
1314
|
+
tailwind: n.tailwind,
|
|
1315
|
+
description: n.description
|
|
1317
1316
|
};
|
|
1318
1317
|
}
|
|
1319
1318
|
}
|
|
@@ -1327,10 +1326,10 @@ const B = {
|
|
|
1327
1326
|
"3xl": m.create("3xl"),
|
|
1328
1327
|
full: m.create("full")
|
|
1329
1328
|
};
|
|
1330
|
-
function
|
|
1329
|
+
function je(t) {
|
|
1331
1330
|
return B[t];
|
|
1332
1331
|
}
|
|
1333
|
-
function
|
|
1332
|
+
function Ze(t) {
|
|
1334
1333
|
return B[t].tailwind;
|
|
1335
1334
|
}
|
|
1336
1335
|
class h {
|
|
@@ -1338,7 +1337,7 @@ class h {
|
|
|
1338
1337
|
* Create a border width token
|
|
1339
1338
|
*/
|
|
1340
1339
|
static createWidth(a) {
|
|
1341
|
-
const
|
|
1340
|
+
const n = {
|
|
1342
1341
|
none: {
|
|
1343
1342
|
px: 0,
|
|
1344
1343
|
tailwind: "border-0"
|
|
@@ -1361,23 +1360,23 @@ class h {
|
|
|
1361
1360
|
}
|
|
1362
1361
|
}[a];
|
|
1363
1362
|
return {
|
|
1364
|
-
value:
|
|
1365
|
-
px: `${
|
|
1366
|
-
tailwind:
|
|
1363
|
+
value: n.px,
|
|
1364
|
+
px: `${n.px}px`,
|
|
1365
|
+
tailwind: n.tailwind
|
|
1367
1366
|
};
|
|
1368
1367
|
}
|
|
1369
1368
|
/**
|
|
1370
1369
|
* Create a complete border token
|
|
1371
1370
|
*/
|
|
1372
|
-
static create(a,
|
|
1371
|
+
static create(a, i = "solid") {
|
|
1373
1372
|
return {
|
|
1374
1373
|
width: this.createWidth(a),
|
|
1375
|
-
style:
|
|
1376
|
-
description: `${a} ${
|
|
1374
|
+
style: i,
|
|
1375
|
+
description: `${a} ${i} border`
|
|
1377
1376
|
};
|
|
1378
1377
|
}
|
|
1379
1378
|
}
|
|
1380
|
-
const
|
|
1379
|
+
const oe = {
|
|
1381
1380
|
none: h.create("none"),
|
|
1382
1381
|
thin: h.create("thin"),
|
|
1383
1382
|
base: h.create("base"),
|
|
@@ -1390,21 +1389,21 @@ const o0 = {
|
|
|
1390
1389
|
thinDotted: h.create("thin", "dotted"),
|
|
1391
1390
|
baseDotted: h.create("base", "dotted")
|
|
1392
1391
|
};
|
|
1393
|
-
function
|
|
1394
|
-
return
|
|
1392
|
+
function Qe(t) {
|
|
1393
|
+
return oe[t];
|
|
1395
1394
|
}
|
|
1396
|
-
function
|
|
1395
|
+
function se(t) {
|
|
1397
1396
|
return h.createWidth(t).tailwind;
|
|
1398
1397
|
}
|
|
1399
|
-
function
|
|
1398
|
+
function le(t) {
|
|
1400
1399
|
return {
|
|
1401
1400
|
solid: "border-solid",
|
|
1402
1401
|
dashed: "border-dashed",
|
|
1403
1402
|
dotted: "border-dotted"
|
|
1404
1403
|
}[t];
|
|
1405
1404
|
}
|
|
1406
|
-
function
|
|
1407
|
-
return `${
|
|
1405
|
+
function Je(t, a = "solid") {
|
|
1406
|
+
return `${se(t)} ${le(a)}`;
|
|
1408
1407
|
}
|
|
1409
1408
|
class w {
|
|
1410
1409
|
/**
|
|
@@ -1459,10 +1458,10 @@ const H = {
|
|
|
1459
1458
|
"2xl": w.create("2xl"),
|
|
1460
1459
|
inner: w.create("inner")
|
|
1461
1460
|
};
|
|
1462
|
-
function
|
|
1461
|
+
function e0(t) {
|
|
1463
1462
|
return H[t];
|
|
1464
1463
|
}
|
|
1465
|
-
function
|
|
1464
|
+
function t0(t) {
|
|
1466
1465
|
return H[t].tailwind;
|
|
1467
1466
|
}
|
|
1468
1467
|
const M = {
|
|
@@ -1503,7 +1502,7 @@ const M = {
|
|
|
1503
1502
|
lg: "translate-x-7"
|
|
1504
1503
|
}
|
|
1505
1504
|
};
|
|
1506
|
-
function
|
|
1505
|
+
function a0(t) {
|
|
1507
1506
|
return {
|
|
1508
1507
|
track: `${M.track[t].w} ${M.track[t].h}`,
|
|
1509
1508
|
thumb: `${M.thumb[t].w} ${M.thumb[t].h}`,
|
|
@@ -1512,35 +1511,35 @@ function ae(t) {
|
|
|
1512
1511
|
}
|
|
1513
1512
|
export {
|
|
1514
1513
|
$ as AMBER,
|
|
1515
|
-
|
|
1514
|
+
_e as ANIMATION_TOKENS,
|
|
1516
1515
|
g as AnimationTokenFactory,
|
|
1517
1516
|
J as BLUE,
|
|
1518
|
-
|
|
1519
|
-
|
|
1517
|
+
oe as BORDER_TOKENS,
|
|
1518
|
+
We as BRAND_COLORS,
|
|
1520
1519
|
z as BREAKPOINT_TOKENS,
|
|
1521
1520
|
h as BorderTokenFactory,
|
|
1522
1521
|
F as BreakpointTokenFactory,
|
|
1523
|
-
|
|
1522
|
+
ve as COLOR_SCALES,
|
|
1524
1523
|
k as CYAN,
|
|
1525
1524
|
T as EMERALD,
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1525
|
+
pe as FONT_FAMILY_TOKENS,
|
|
1526
|
+
ge as FONT_WEIGHT_TOKENS,
|
|
1527
|
+
ee as FUCHSIA,
|
|
1529
1528
|
q as GRAY,
|
|
1530
1529
|
X as GREEN,
|
|
1531
1530
|
x as INDIGO,
|
|
1532
|
-
|
|
1533
|
-
|
|
1531
|
+
ie as LIME,
|
|
1532
|
+
Ye as OPACITY_TOKENS,
|
|
1534
1533
|
Z as ORANGE,
|
|
1535
1534
|
d as OpacityTokenFactory,
|
|
1536
|
-
|
|
1535
|
+
te as PINK,
|
|
1537
1536
|
U as PRIMITIVE_COLORS,
|
|
1538
|
-
|
|
1537
|
+
ae as PURPLE,
|
|
1539
1538
|
B as RADIUS_TOKENS,
|
|
1540
1539
|
Q as RED,
|
|
1541
1540
|
S as ROSE,
|
|
1542
1541
|
m as RadiusTokenFactory,
|
|
1543
|
-
$
|
|
1542
|
+
$e as SEMANTIC_COLORS,
|
|
1544
1543
|
V as SEMANTIC_COLORS_DARK,
|
|
1545
1544
|
D as SEMANTIC_COLORS_LIGHT,
|
|
1546
1545
|
H as SHADOW_TOKENS,
|
|
@@ -1551,57 +1550,57 @@ export {
|
|
|
1551
1550
|
M as SWITCH_TOKENS,
|
|
1552
1551
|
w as ShadowTokenFactory,
|
|
1553
1552
|
c as SpacingTokenFactory,
|
|
1554
|
-
|
|
1553
|
+
ne as TEAL,
|
|
1555
1554
|
A as TYPOGRAPHY_TOKENS,
|
|
1556
1555
|
l as TypographyTokenFactory,
|
|
1557
1556
|
y as VIOLET,
|
|
1558
1557
|
j as YELLOW,
|
|
1559
1558
|
p as ZIndexTokenFactory,
|
|
1560
|
-
|
|
1559
|
+
Ke as Z_INDEX_TOKENS,
|
|
1561
1560
|
_ as blendColors,
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1561
|
+
Re as darken,
|
|
1562
|
+
ze as getAnimation,
|
|
1563
|
+
Be as getAnimationClass,
|
|
1564
|
+
Qe as getBorder,
|
|
1565
|
+
Je as getBorderClasses,
|
|
1566
|
+
le as getBorderStyleClass,
|
|
1567
|
+
se as getBorderWidthClass,
|
|
1568
|
+
Ue as getBreakpoint,
|
|
1569
|
+
Ee as getColor,
|
|
1570
|
+
Me as getColorClass,
|
|
1571
|
+
Ne as getContrastColor,
|
|
1572
|
+
Le as getFocusColorClass,
|
|
1573
|
+
Ie as getFocusRingClass,
|
|
1574
|
+
Ce as getHoverColorClass,
|
|
1575
|
+
Ve as getMediaQuery,
|
|
1576
|
+
de as getNestedIndentClass,
|
|
1577
|
+
qe as getOpacity,
|
|
1578
|
+
Xe as getOpacityClass,
|
|
1580
1579
|
C as getPrimitiveColor,
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1580
|
+
Te as getPrimitiveColorPalette,
|
|
1581
|
+
je as getRadius,
|
|
1582
|
+
Ze as getRadiusClass,
|
|
1584
1583
|
O as getSemanticColor,
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1584
|
+
Ae as getSemanticColorClass,
|
|
1585
|
+
Se as getSemanticColorRole,
|
|
1586
|
+
Fe as getSemanticColorValue,
|
|
1587
|
+
e0 as getShadow,
|
|
1588
|
+
t0 as getShadowClass,
|
|
1589
|
+
fe as getSpacing,
|
|
1590
|
+
ue as getSpacingClass,
|
|
1591
|
+
a0 as getSwitchClasses,
|
|
1592
|
+
He as getTransitionClass,
|
|
1593
|
+
he as getTypography,
|
|
1594
|
+
be as getTypographyClasses,
|
|
1595
|
+
ke as getTypographyLineHeight,
|
|
1596
|
+
me as getTypographySize,
|
|
1597
|
+
we as getTypographySizeFromFontSize,
|
|
1598
|
+
xe as getTypographyWeight,
|
|
1599
|
+
ye as getTypographyWeightFromFontWeight,
|
|
1600
|
+
Pe as getZIndex,
|
|
1601
|
+
Ge as getZIndexClass,
|
|
1602
|
+
re as isLightColor,
|
|
1603
|
+
De as lighten,
|
|
1604
|
+
Oe as withOpacity
|
|
1606
1605
|
};
|
|
1607
1606
|
//# sourceMappingURL=index.js.map
|