@fabio.caffarello/react-design-system 1.14.2 → 1.15.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,1606 +0,0 @@
1
- var K = Object.defineProperty;
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
- const I = {
5
- // Icon sizes
6
- icon: {
7
- sm: "h-4 w-4",
8
- // 16px
9
- md: "h-5 w-5",
10
- // 20px (default)
11
- lg: "h-6 w-6"
12
- // 24px
13
- },
14
- // Text sizes
15
- text: {
16
- xs: "text-xs",
17
- // 12px (group titles)
18
- sm: "text-sm",
19
- // 14px (items - default)
20
- base: "text-base"
21
- // 16px
22
- },
23
- // Spacing
24
- spacing: {
25
- itemPaddingX: "px-4",
26
- // 16px horizontal padding for items
27
- itemPaddingY: "py-2",
28
- // 8px vertical padding for items
29
- nestedIndent: "pl-6",
30
- // 24px for nested items (level 1)
31
- nestedIndentLevel2: "pl-10",
32
- // 40px for nested items (level 2)
33
- nestedIndentLevel3: "pl-14",
34
- // 56px for nested items (level 3)
35
- groupTitlePadding: "px-4 py-2",
36
- // Padding for group titles
37
- iconMargin: "mr-3"
38
- // 12px margin between icon and text
39
- },
40
- // Colors (using Tailwind classes)
41
- colors: {
42
- active: {
43
- bg: "bg-surface-brand-muted",
44
- text: "text-fg-brand-emphasis",
45
- border: "border-line-brand"
46
- },
47
- inactive: {
48
- text: "text-fg-secondary",
49
- hover: "hover:bg-surface-hover hover:text-fg-primary"
50
- },
51
- groupTitle: "text-fg-tertiary"
52
- },
53
- // Chevron (for collapsible groups)
54
- chevron: {
55
- size: "h-3 w-3",
56
- // 12px (reduced from h-4 w-4)
57
- color: "text-fg-quaternary"
58
- },
59
- // Navigation column (for split sidebar)
60
- navigation: {
61
- width: {
62
- default: "56px",
63
- compact: "48px",
64
- expanded: "200px"
65
- },
66
- background: {
67
- default: "#fafafa",
68
- hover: "#f5f5f5"
69
- }
70
- },
71
- // Split sidebar
72
- split: {
73
- transition: "transition-all duration-300",
74
- collapsedWidth: "0px"
75
- },
76
- // Content area
77
- content: {
78
- scrollbar: {
79
- width: "thin",
80
- color: {
81
- thumb: "#cbd5e1",
82
- track: "#f1f5f9"
83
- }
84
- }
85
- }
86
- };
87
- function de(t) {
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}`;
89
- }
90
- class c {
91
- // 4px base
92
- /**
93
- * Create a spacing token from scale value
94
- */
95
- static create(a) {
96
- const i = a * this.BASE_UNIT, n = i / 16;
97
- return {
98
- value: i,
99
- rem: `${n}rem`,
100
- px: `${i}px`,
101
- tailwind: this.getTailwindClass(a)
102
- };
103
- }
104
- /**
105
- * Get Tailwind class for spacing value
106
- */
107
- static getTailwindClass(a) {
108
- return {
109
- 0: "0",
110
- 0.5: "0.5",
111
- // 2px — half-step, used by fine UI (badges, switches, separators)
112
- 1: "1",
113
- // 4px
114
- 1.5: "1.5",
115
- // 6px — half-step
116
- 2: "2",
117
- // 8px
118
- 2.5: "2.5",
119
- // 10px — half-step
120
- 3: "3",
121
- // 12px
122
- 3.5: "3.5",
123
- // 14px — half-step
124
- 4: "4",
125
- // 16px
126
- 5: "5",
127
- // 20px
128
- 6: "6",
129
- // 24px
130
- 8: "8",
131
- // 32px
132
- 10: "10",
133
- // 40px
134
- 12: "12",
135
- // 48px
136
- 16: "16",
137
- // 64px
138
- 20: "20",
139
- // 80px
140
- 24: "24",
141
- // 96px
142
- 32: "32",
143
- // 128px
144
- 40: "40",
145
- // 160px
146
- 48: "48",
147
- // 192px
148
- 64: "64",
149
- // 256px
150
- 80: "80",
151
- // 320px
152
- 96: "96"
153
- // 384px
154
- }[a] || String(a);
155
- }
156
- }
157
- R(c, "BASE_UNIT", 4);
158
- const W = {
159
- // Micro spacing (0-14px)
160
- none: c.create(0),
161
- "0.5": c.create(0.5),
162
- // 2px (half-step)
163
- xs: c.create(1),
164
- // 4px
165
- "1.5": c.create(1.5),
166
- // 6px (half-step)
167
- sm: c.create(2),
168
- // 8px
169
- "2.5": c.create(2.5),
170
- // 10px (half-step)
171
- md: c.create(3),
172
- // 12px
173
- "3.5": c.create(3.5),
174
- // 14px (half-step)
175
- // Standard spacing (16-32px)
176
- base: c.create(4),
177
- // 16px
178
- lg: c.create(6),
179
- // 24px
180
- xl: c.create(8),
181
- // 32px
182
- // Large spacing (40-64px)
183
- "2xl": c.create(10),
184
- // 40px
185
- "3xl": c.create(12),
186
- // 48px
187
- "4xl": c.create(16),
188
- // 64px
189
- // Extra large spacing (80px+)
190
- "5xl": c.create(20),
191
- // 80px
192
- "6xl": c.create(24)
193
- // 96px
194
- };
195
- function fe(t) {
196
- return W[t];
197
- }
198
- function ue(t, a = "p") {
199
- const n = W[t].tailwind;
200
- return `${{
201
- p: "p",
202
- m: "m",
203
- px: "px",
204
- mx: "mx",
205
- py: "py",
206
- my: "my",
207
- pt: "pt",
208
- mt: "mt",
209
- pr: "pr",
210
- mr: "mr",
211
- pb: "pb",
212
- mb: "mb",
213
- pl: "pl",
214
- ml: "ml",
215
- gap: "gap",
216
- "gap-x": "gap-x",
217
- "gap-y": "gap-y",
218
- "space-y": "space-y"
219
- }[a]}-${n}`;
220
- }
221
- class l {
222
- /**
223
- * Create font size token
224
- */
225
- static createFontSize(a) {
226
- const n = {
227
- "2xs": { px: 10, tailwind: "text-2xs" },
228
- // micro-text (badge counters, mini chips)
229
- xs: { px: 12, tailwind: "text-xs" },
230
- sm: { px: 14, tailwind: "text-sm" },
231
- base: { px: 16, tailwind: "text-base" },
232
- lg: { px: 18, tailwind: "text-lg" },
233
- xl: { px: 20, tailwind: "text-xl" },
234
- "2xl": { px: 24, tailwind: "text-2xl" },
235
- "3xl": { px: 30, tailwind: "text-3xl" },
236
- "4xl": { px: 36, tailwind: "text-4xl" },
237
- "5xl": { px: 48, tailwind: "text-5xl" },
238
- "6xl": { px: 60, tailwind: "text-6xl" }
239
- }[a];
240
- return {
241
- value: n.px,
242
- rem: `${n.px / 16}rem`,
243
- px: `${n.px}px`,
244
- tailwind: n.tailwind
245
- };
246
- }
247
- /**
248
- * Create line height token
249
- */
250
- static createLineHeight(a) {
251
- const n = {
252
- none: { value: 1, tailwind: "leading-none" },
253
- tight: { value: 1.25, tailwind: "leading-tight" },
254
- snug: { value: 1.375, tailwind: "leading-snug" },
255
- normal: { value: 1.5, tailwind: "leading-normal" },
256
- relaxed: { value: 1.625, tailwind: "leading-relaxed" },
257
- loose: { value: 2, tailwind: "leading-loose" }
258
- }[a];
259
- return {
260
- value: n.value,
261
- tailwind: n.tailwind
262
- };
263
- }
264
- /**
265
- * Create font weight token
266
- */
267
- static createFontWeight(a) {
268
- const n = {
269
- light: { value: 300, tailwind: "font-light" },
270
- normal: { value: 400, tailwind: "font-normal" },
271
- medium: { value: 500, tailwind: "font-medium" },
272
- semibold: { value: 600, tailwind: "font-semibold" },
273
- bold: { value: 700, tailwind: "font-bold" }
274
- }[a];
275
- return {
276
- value: n.value,
277
- tailwind: n.tailwind
278
- };
279
- }
280
- /**
281
- * Create complete typography token
282
- */
283
- static create(a, i = "normal", n = "normal") {
284
- return {
285
- fontSize: this.createFontSize(a),
286
- lineHeight: this.createLineHeight(i),
287
- fontWeight: this.createFontWeight(n)
288
- };
289
- }
290
- }
291
- const pe = {
292
- sans: {
293
- name: "sans",
294
- stack: 'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',
295
- tailwind: "font-sans"
296
- },
297
- serif: {
298
- name: "serif",
299
- stack: 'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',
300
- tailwind: "font-serif"
301
- },
302
- mono: {
303
- name: "mono",
304
- stack: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
305
- tailwind: "font-mono"
306
- }
307
- }, ge = {
308
- light: l.createFontWeight("light"),
309
- normal: l.createFontWeight("normal"),
310
- medium: l.createFontWeight("medium"),
311
- semibold: l.createFontWeight("semibold"),
312
- bold: l.createFontWeight("bold")
313
- }, A = {
314
- // Headings
315
- h1: l.create("4xl", "tight", "bold"),
316
- h2: l.create("3xl", "tight", "bold"),
317
- h3: l.create("2xl", "snug", "semibold"),
318
- h4: l.create("xl", "snug", "semibold"),
319
- h5: l.create("lg", "normal", "medium"),
320
- h6: l.create("base", "normal", "medium"),
321
- // Body text
322
- body: l.create("base", "relaxed", "normal"),
323
- bodySmall: l.create("sm", "relaxed", "normal"),
324
- bodyLarge: l.create("lg", "relaxed", "normal"),
325
- // UI elements
326
- label: l.create("sm", "normal", "medium"),
327
- caption: l.create("xs", "normal", "normal"),
328
- button: l.create("base", "normal", "medium")
329
- };
330
- function he(t) {
331
- return A[t];
332
- }
333
- function be(t) {
334
- const a = A[t];
335
- return `${a.fontSize.tailwind} ${a.lineHeight.tailwind} ${a.fontWeight.tailwind}`;
336
- }
337
- function me(t) {
338
- return A[t].fontSize.tailwind;
339
- }
340
- function we(t) {
341
- return l.createFontSize(t).tailwind;
342
- }
343
- function xe(t) {
344
- return A[t].fontWeight.tailwind;
345
- }
346
- function ye(t) {
347
- return l.createFontWeight(t).tailwind;
348
- }
349
- function ke(t) {
350
- return A[t].lineHeight.tailwind;
351
- }
352
- const ve = [
353
- 50,
354
- 100,
355
- 200,
356
- 300,
357
- 400,
358
- 500,
359
- 600,
360
- 700,
361
- 800,
362
- 900,
363
- 950
364
- ];
365
- function e(t, a, i) {
366
- const n = G(t), r = Y(t);
367
- return {
368
- hex: t,
369
- rgb: n,
370
- hsl: r,
371
- cssVar: `var(--color-${a}-${i})`,
372
- tailwind: `${a}-${i}`
373
- };
374
- }
375
- function G(t) {
376
- const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
377
- return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
378
- }
379
- function Y(t) {
380
- const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
381
- if (!a) return "0, 0%, 0%";
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);
383
- let f = 0, L = 0;
384
- const u = (o + s) / 2;
385
- if (o !== s) {
386
- const b = o - s;
387
- switch (L = u > 0.5 ? b / (2 - o - s) : b / (o + s), o) {
388
- case i:
389
- f = ((n - r) / b + (n < r ? 6 : 0)) / 6;
390
- break;
391
- case n:
392
- f = ((r - i) / b + 2) / 6;
393
- break;
394
- case r:
395
- f = ((i - n) / b + 4) / 6;
396
- break;
397
- }
398
- }
399
- return `${Math.round(f * 360)}, ${Math.round(L * 100)}%, ${Math.round(u * 100)}%`;
400
- }
401
- const x = {
402
- 50: e("#eef2ff", "indigo", 50),
403
- 100: e("#e0e7ff", "indigo", 100),
404
- 200: e("#c7d2fe", "indigo", 200),
405
- 300: e("#a5b4fc", "indigo", 300),
406
- 400: e("#818cf8", "indigo", 400),
407
- 500: e("#6366f1", "indigo", 500),
408
- 600: e("#4f46e5", "indigo", 600),
409
- 700: e("#4338ca", "indigo", 700),
410
- 800: e("#3730a3", "indigo", 800),
411
- 900: e("#312e81", "indigo", 900),
412
- 950: e("#1e1b4b", "indigo", 950)
413
- }, y = {
414
- 50: e("#f5f3ff", "violet", 50),
415
- 100: e("#ede9fe", "violet", 100),
416
- 200: e("#ddd6fe", "violet", 200),
417
- 300: e("#c4b5fd", "violet", 300),
418
- 400: e("#a78bfa", "violet", 400),
419
- 500: e("#8b5cf6", "violet", 500),
420
- 600: e("#7c3aed", "violet", 600),
421
- 700: e("#6d28d9", "violet", 700),
422
- 800: e("#5b21b6", "violet", 800),
423
- 900: e("#4c1d95", "violet", 900),
424
- 950: e("#2e1065", "violet", 950)
425
- }, k = {
426
- 50: e("#ecfeff", "cyan", 50),
427
- 100: e("#cffafe", "cyan", 100),
428
- 200: e("#a5f3fc", "cyan", 200),
429
- 300: e("#67e8f9", "cyan", 300),
430
- 400: e("#22d3ee", "cyan", 400),
431
- 500: e("#06b6d4", "cyan", 500),
432
- 600: e("#0891b2", "cyan", 600),
433
- 700: e("#0e7490", "cyan", 700),
434
- 800: e("#155e75", "cyan", 800),
435
- 900: e("#164e63", "cyan", 900),
436
- 950: e("#083344", "cyan", 950)
437
- }, v = {
438
- 50: e("#f8fafc", "slate", 50),
439
- 100: e("#f1f5f9", "slate", 100),
440
- 200: e("#e2e8f0", "slate", 200),
441
- 300: e("#cbd5e1", "slate", 300),
442
- 400: e("#94a3b8", "slate", 400),
443
- 500: e("#64748b", "slate", 500),
444
- 600: e("#475569", "slate", 600),
445
- 700: e("#334155", "slate", 700),
446
- 800: e("#1e293b", "slate", 800),
447
- 900: e("#0f172a", "slate", 900),
448
- 950: e("#020617", "slate", 950)
449
- }, q = {
450
- 50: e("#f9fafb", "gray", 50),
451
- 100: e("#f3f4f6", "gray", 100),
452
- 200: e("#e5e7eb", "gray", 200),
453
- 300: e("#d1d5db", "gray", 300),
454
- 400: e("#9ca3af", "gray", 400),
455
- 500: e("#6b7280", "gray", 500),
456
- 600: e("#4b5563", "gray", 600),
457
- 700: e("#374151", "gray", 700),
458
- 800: e("#1f2937", "gray", 800),
459
- 900: e("#111827", "gray", 900),
460
- 950: e("#030712", "gray", 950)
461
- }, T = {
462
- 50: e("#ecfdf5", "emerald", 50),
463
- 100: e("#d1fae5", "emerald", 100),
464
- 200: e("#a7f3d0", "emerald", 200),
465
- 300: e("#6ee7b7", "emerald", 300),
466
- 400: e("#34d399", "emerald", 400),
467
- 500: e("#10b981", "emerald", 500),
468
- 600: e("#059669", "emerald", 600),
469
- 700: e("#047857", "emerald", 700),
470
- 800: e("#065f46", "emerald", 800),
471
- 900: e("#064e3b", "emerald", 900),
472
- 950: e("#022c22", "emerald", 950)
473
- }, X = {
474
- 50: e("#f0fdf4", "green", 50),
475
- 100: e("#dcfce7", "green", 100),
476
- 200: e("#bbf7d0", "green", 200),
477
- 300: e("#86efac", "green", 300),
478
- 400: e("#4ade80", "green", 400),
479
- 500: e("#22c55e", "green", 500),
480
- 600: e("#16a34a", "green", 600),
481
- 700: e("#15803d", "green", 700),
482
- 800: e("#166534", "green", 800),
483
- 900: e("#14532d", "green", 900),
484
- 950: e("#052e16", "green", 950)
485
- }, $ = {
486
- 50: e("#fffbeb", "amber", 50),
487
- 100: e("#fef3c7", "amber", 100),
488
- 200: e("#fde68a", "amber", 200),
489
- 300: e("#fcd34d", "amber", 300),
490
- 400: e("#fbbf24", "amber", 400),
491
- 500: e("#f59e0b", "amber", 500),
492
- 600: e("#d97706", "amber", 600),
493
- 700: e("#b45309", "amber", 700),
494
- 800: e("#92400e", "amber", 800),
495
- 900: e("#78350f", "amber", 900),
496
- 950: e("#451a03", "amber", 950)
497
- }, j = {
498
- 50: e("#fefce8", "yellow", 50),
499
- 100: e("#fef9c3", "yellow", 100),
500
- 200: e("#fef08a", "yellow", 200),
501
- 300: e("#fde047", "yellow", 300),
502
- 400: e("#facc15", "yellow", 400),
503
- 500: e("#eab308", "yellow", 500),
504
- 600: e("#ca8a04", "yellow", 600),
505
- 700: e("#a16207", "yellow", 700),
506
- 800: e("#854d0e", "yellow", 800),
507
- 900: e("#713f12", "yellow", 900),
508
- 950: e("#422006", "yellow", 950)
509
- }, Z = {
510
- 50: e("#fff7ed", "orange", 50),
511
- 100: e("#ffedd5", "orange", 100),
512
- 200: e("#fed7aa", "orange", 200),
513
- 300: e("#fdba74", "orange", 300),
514
- 400: e("#fb923c", "orange", 400),
515
- 500: e("#f97316", "orange", 500),
516
- 600: e("#ea580c", "orange", 600),
517
- 700: e("#c2410c", "orange", 700),
518
- 800: e("#9a3412", "orange", 800),
519
- 900: e("#7c2d12", "orange", 900),
520
- 950: e("#431407", "orange", 950)
521
- }, S = {
522
- 50: e("#fff1f2", "rose", 50),
523
- 100: e("#ffe4e6", "rose", 100),
524
- 200: e("#fecdd3", "rose", 200),
525
- 300: e("#fda4af", "rose", 300),
526
- 400: e("#fb7185", "rose", 400),
527
- 500: e("#f43f5e", "rose", 500),
528
- 600: e("#e11d48", "rose", 600),
529
- 700: e("#be123c", "rose", 700),
530
- 800: e("#9f1239", "rose", 800),
531
- 900: e("#881337", "rose", 900),
532
- 950: e("#4c0519", "rose", 950)
533
- }, Q = {
534
- 50: e("#fef2f2", "red", 50),
535
- 100: e("#fee2e2", "red", 100),
536
- 200: e("#fecaca", "red", 200),
537
- 300: e("#fca5a5", "red", 300),
538
- 400: e("#f87171", "red", 400),
539
- 500: e("#ef4444", "red", 500),
540
- 600: e("#dc2626", "red", 600),
541
- 700: e("#b91c1c", "red", 700),
542
- 800: e("#991b1b", "red", 800),
543
- 900: e("#7f1d1d", "red", 900),
544
- 950: e("#450a0a", "red", 950)
545
- }, E = {
546
- 50: e("#f0f9ff", "sky", 50),
547
- 100: e("#e0f2fe", "sky", 100),
548
- 200: e("#bae6fd", "sky", 200),
549
- 300: e("#7dd3fc", "sky", 300),
550
- 400: e("#38bdf8", "sky", 400),
551
- 500: e("#0ea5e9", "sky", 500),
552
- 600: e("#0284c7", "sky", 600),
553
- 700: e("#0369a1", "sky", 700),
554
- 800: e("#075985", "sky", 800),
555
- 900: e("#0c4a6e", "sky", 900),
556
- 950: e("#082f49", "sky", 950)
557
- }, J = {
558
- 50: e("#eff6ff", "blue", 50),
559
- 100: e("#dbeafe", "blue", 100),
560
- 200: e("#bfdbfe", "blue", 200),
561
- 300: e("#93c5fd", "blue", 300),
562
- 400: e("#60a5fa", "blue", 400),
563
- 500: e("#3b82f6", "blue", 500),
564
- 600: e("#2563eb", "blue", 600),
565
- 700: e("#1d4ed8", "blue", 700),
566
- 800: e("#1e40af", "blue", 800),
567
- 900: e("#1e3a8a", "blue", 900),
568
- 950: e("#172554", "blue", 950)
569
- }, ee = {
570
- 50: e("#fdf4ff", "fuchsia", 50),
571
- 100: e("#fae8ff", "fuchsia", 100),
572
- 200: e("#f5d0fe", "fuchsia", 200),
573
- 300: e("#f0abfc", "fuchsia", 300),
574
- 400: e("#e879f9", "fuchsia", 400),
575
- 500: e("#d946ef", "fuchsia", 500),
576
- 600: e("#c026d3", "fuchsia", 600),
577
- 700: e("#a21caf", "fuchsia", 700),
578
- 800: e("#86198f", "fuchsia", 800),
579
- 900: e("#701a75", "fuchsia", 900),
580
- 950: e("#4a044e", "fuchsia", 950)
581
- }, te = {
582
- 50: e("#fdf2f8", "pink", 50),
583
- 100: e("#fce7f3", "pink", 100),
584
- 200: e("#fbcfe8", "pink", 200),
585
- 300: e("#f9a8d4", "pink", 300),
586
- 400: e("#f472b6", "pink", 400),
587
- 500: e("#ec4899", "pink", 500),
588
- 600: e("#db2777", "pink", 600),
589
- 700: e("#be185d", "pink", 700),
590
- 800: e("#9d174d", "pink", 800),
591
- 900: e("#831843", "pink", 900),
592
- 950: e("#500724", "pink", 950)
593
- }, ae = {
594
- 50: e("#faf5ff", "purple", 50),
595
- 100: e("#f3e8ff", "purple", 100),
596
- 200: e("#e9d5ff", "purple", 200),
597
- 300: e("#d8b4fe", "purple", 300),
598
- 400: e("#c084fc", "purple", 400),
599
- 500: e("#a855f7", "purple", 500),
600
- 600: e("#9333ea", "purple", 600),
601
- 700: e("#7e22ce", "purple", 700),
602
- 800: e("#6b21a8", "purple", 800),
603
- 900: e("#581c87", "purple", 900),
604
- 950: e("#3b0764", "purple", 950)
605
- }, ne = {
606
- 50: e("#f0fdfa", "teal", 50),
607
- 100: e("#ccfbf1", "teal", 100),
608
- 200: e("#99f6e4", "teal", 200),
609
- 300: e("#5eead4", "teal", 300),
610
- 400: e("#2dd4bf", "teal", 400),
611
- 500: e("#14b8a6", "teal", 500),
612
- 600: e("#0d9488", "teal", 600),
613
- 700: e("#0f766e", "teal", 700),
614
- 800: e("#115e59", "teal", 800),
615
- 900: e("#134e4a", "teal", 900),
616
- 950: e("#042f2e", "teal", 950)
617
- }, ie = {
618
- 50: e("#f7fee7", "lime", 50),
619
- 100: e("#ecfccb", "lime", 100),
620
- 200: e("#d9f99d", "lime", 200),
621
- 300: e("#bef264", "lime", 300),
622
- 400: e("#a3e635", "lime", 400),
623
- 500: e("#84cc16", "lime", 500),
624
- 600: e("#65a30d", "lime", 600),
625
- 700: e("#4d7c0f", "lime", 700),
626
- 800: e("#3f6212", "lime", 800),
627
- 900: e("#365314", "lime", 900),
628
- 950: e("#1a2e05", "lime", 950)
629
- }, U = {
630
- indigo: x,
631
- violet: y,
632
- cyan: k,
633
- slate: v,
634
- gray: q,
635
- emerald: T,
636
- green: X,
637
- amber: $,
638
- yellow: j,
639
- orange: Z,
640
- rose: S,
641
- red: Q,
642
- sky: E,
643
- blue: J,
644
- fuchsia: ee,
645
- pink: te,
646
- purple: ae,
647
- teal: ne,
648
- lime: ie
649
- };
650
- function C(t, a) {
651
- return U[t][a];
652
- }
653
- function Te(t) {
654
- return U[t];
655
- }
656
- const D = {
657
- primary: {
658
- light: x[400],
659
- DEFAULT: x[500],
660
- dark: x[600],
661
- contrast: {
662
- hex: "#ffffff",
663
- rgb: "255, 255, 255",
664
- hsl: "0, 0%, 100%",
665
- cssVar: "var(--color-white)",
666
- tailwind: "white"
667
- }
668
- },
669
- secondary: {
670
- light: y[400],
671
- DEFAULT: y[500],
672
- dark: y[600],
673
- contrast: {
674
- hex: "#ffffff",
675
- rgb: "255, 255, 255",
676
- hsl: "0, 0%, 100%",
677
- cssVar: "var(--color-white)",
678
- tailwind: "white"
679
- }
680
- },
681
- accent: {
682
- light: k[400],
683
- DEFAULT: k[500],
684
- dark: k[600],
685
- contrast: {
686
- hex: "#ffffff",
687
- rgb: "255, 255, 255",
688
- hsl: "0, 0%, 100%",
689
- cssVar: "var(--color-white)",
690
- tailwind: "white"
691
- }
692
- },
693
- success: {
694
- light: T[400],
695
- DEFAULT: T[500],
696
- dark: T[600],
697
- contrast: {
698
- hex: "#ffffff",
699
- rgb: "255, 255, 255",
700
- hsl: "0, 0%, 100%",
701
- cssVar: "var(--color-white)",
702
- tailwind: "white"
703
- }
704
- },
705
- warning: {
706
- light: $[400],
707
- DEFAULT: $[500],
708
- dark: $[600],
709
- contrast: {
710
- hex: "#000000",
711
- rgb: "0, 0, 0",
712
- hsl: "0, 0%, 0%",
713
- cssVar: "var(--color-black)",
714
- tailwind: "black"
715
- }
716
- },
717
- error: {
718
- light: S[400],
719
- DEFAULT: S[500],
720
- dark: S[600],
721
- contrast: {
722
- hex: "#ffffff",
723
- rgb: "255, 255, 255",
724
- hsl: "0, 0%, 100%",
725
- cssVar: "var(--color-white)",
726
- tailwind: "white"
727
- }
728
- },
729
- info: {
730
- light: E[400],
731
- DEFAULT: E[500],
732
- dark: E[600],
733
- contrast: {
734
- hex: "#ffffff",
735
- rgb: "255, 255, 255",
736
- hsl: "0, 0%, 100%",
737
- cssVar: "var(--color-white)",
738
- tailwind: "white"
739
- }
740
- },
741
- neutral: {
742
- light: v[100],
743
- DEFAULT: v[500],
744
- dark: v[700],
745
- contrast: {
746
- hex: "#ffffff",
747
- rgb: "255, 255, 255",
748
- hsl: "0, 0%, 100%",
749
- cssVar: "var(--color-white)",
750
- tailwind: "white"
751
- }
752
- }
753
- }, V = {
754
- primary: {
755
- light: x[500],
756
- DEFAULT: x[400],
757
- dark: x[300],
758
- contrast: {
759
- hex: "#ffffff",
760
- rgb: "255, 255, 255",
761
- hsl: "0, 0%, 100%",
762
- cssVar: "var(--color-white)",
763
- tailwind: "white"
764
- }
765
- },
766
- secondary: {
767
- light: y[500],
768
- DEFAULT: y[400],
769
- dark: y[300],
770
- contrast: {
771
- hex: "#ffffff",
772
- rgb: "255, 255, 255",
773
- hsl: "0, 0%, 100%",
774
- cssVar: "var(--color-white)",
775
- tailwind: "white"
776
- }
777
- },
778
- accent: {
779
- light: k[500],
780
- DEFAULT: k[400],
781
- dark: k[300],
782
- contrast: {
783
- hex: "#000000",
784
- rgb: "0, 0, 0",
785
- hsl: "0, 0%, 0%",
786
- cssVar: "var(--color-black)",
787
- tailwind: "black"
788
- }
789
- },
790
- success: {
791
- light: T[500],
792
- DEFAULT: T[400],
793
- dark: T[300],
794
- contrast: {
795
- hex: "#000000",
796
- rgb: "0, 0, 0",
797
- hsl: "0, 0%, 0%",
798
- cssVar: "var(--color-black)",
799
- tailwind: "black"
800
- }
801
- },
802
- warning: {
803
- light: $[500],
804
- DEFAULT: $[400],
805
- dark: $[300],
806
- contrast: {
807
- hex: "#000000",
808
- rgb: "0, 0, 0",
809
- hsl: "0, 0%, 0%",
810
- cssVar: "var(--color-black)",
811
- tailwind: "black"
812
- }
813
- },
814
- error: {
815
- light: S[500],
816
- DEFAULT: S[400],
817
- dark: S[300],
818
- contrast: {
819
- hex: "#ffffff",
820
- rgb: "255, 255, 255",
821
- hsl: "0, 0%, 100%",
822
- cssVar: "var(--color-white)",
823
- tailwind: "white"
824
- }
825
- },
826
- info: {
827
- light: E[500],
828
- DEFAULT: E[400],
829
- dark: E[300],
830
- contrast: {
831
- hex: "#ffffff",
832
- rgb: "255, 255, 255",
833
- hsl: "0, 0%, 100%",
834
- cssVar: "var(--color-white)",
835
- tailwind: "white"
836
- }
837
- },
838
- neutral: {
839
- light: v[700],
840
- DEFAULT: v[400],
841
- dark: v[300],
842
- contrast: {
843
- hex: "#ffffff",
844
- rgb: "255, 255, 255",
845
- hsl: "0, 0%, 100%",
846
- cssVar: "var(--color-white)",
847
- tailwind: "white"
848
- }
849
- }
850
- }, $e = D;
851
- function O(t, a = "DEFAULT", i = "light") {
852
- return (i === "dark" ? V : D)[t][a];
853
- }
854
- function Se(t, a = "light") {
855
- return (a === "dark" ? V : D)[t];
856
- }
857
- function Ee(t, a, i = {}) {
858
- const { format: n = "hex", opacity: r } = i, o = C(t, a);
859
- let s;
860
- switch (n) {
861
- case "rgb":
862
- s = r !== void 0 ? `rgba(${o.rgb}, ${r})` : `rgb(${o.rgb})`;
863
- break;
864
- case "hsl":
865
- s = r !== void 0 ? `hsla(${o.hsl}, ${r})` : `hsl(${o.hsl})`;
866
- break;
867
- case "cssVar":
868
- s = o.cssVar;
869
- break;
870
- case "tailwind":
871
- s = o.tailwind;
872
- break;
873
- case "hex":
874
- default:
875
- s = o.hex;
876
- }
877
- return s;
878
- }
879
- function Fe(t, a = "DEFAULT", i = {}) {
880
- const { format: n = "hex", opacity: r } = i, o = O(t, a);
881
- let s;
882
- switch (n) {
883
- case "rgb":
884
- s = r !== void 0 ? `rgba(${o.rgb}, ${r})` : `rgb(${o.rgb})`;
885
- break;
886
- case "hsl":
887
- s = r !== void 0 ? `hsla(${o.hsl}, ${r})` : `hsl(${o.hsl})`;
888
- break;
889
- case "cssVar":
890
- s = o.cssVar;
891
- break;
892
- case "tailwind":
893
- s = o.tailwind;
894
- break;
895
- case "hex":
896
- default:
897
- s = o.hex;
898
- }
899
- return s;
900
- }
901
- function Me(t, a, i = {}) {
902
- const {
903
- type: n = "text",
904
- hover: r = !1,
905
- focus: o = !1,
906
- active: s = !1
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(" ");
909
- }
910
- function Ae(t, a = "DEFAULT", i = {}) {
911
- const {
912
- type: n = "text",
913
- hover: r = !1,
914
- focus: o = !1,
915
- active: s = !1
916
- } = i, f = O(t, a), u = [`${n}-${f.tailwind}`];
917
- if (r) {
918
- const b = O(
919
- t,
920
- a === "DEFAULT" ? "dark" : "DEFAULT"
921
- );
922
- u.push(`hover:${n}-${b.tailwind}`);
923
- }
924
- if (o && u.push(`focus:${n}-${f.tailwind}`), s) {
925
- const b = O(t, "dark");
926
- u.push(`active:${n}-${b.tailwind}`);
927
- }
928
- return u.join(" ");
929
- }
930
- function Ce(t, a, i = "bg") {
931
- const n = C(t, a);
932
- return `hover:${i}-${n.tailwind}`;
933
- }
934
- function Le(t, a, i = "border") {
935
- const n = C(t, a);
936
- return `focus:${i}-${n.tailwind}`;
937
- }
938
- function Ie(t, a) {
939
- return `focus:ring-${C(t, a).tailwind}`;
940
- }
941
- function Oe(t, a) {
942
- return `rgba(${t.rgb}, ${a})`;
943
- }
944
- function re(t) {
945
- const a = N(t);
946
- return a ? 0.299 * a[0] + 0.587 * a[1] + 0.114 * a[2] > 128 : !0;
947
- }
948
- function Ne(t) {
949
- return re(t) ? "#000000" : "#ffffff";
950
- }
951
- function N(t) {
952
- const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
953
- return a ? [
954
- parseInt(a[1], 16),
955
- parseInt(a[2], 16),
956
- parseInt(a[3], 16)
957
- ] : null;
958
- }
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);
963
- return `#${((1 << 24) + (o << 16) + (s << 8) + f).toString(16).slice(1)}`;
964
- }
965
- function De(t, a) {
966
- return _(t, "#ffffff", a / 100);
967
- }
968
- function Re(t, a) {
969
- return _(t, "#000000", a / 100);
970
- }
971
- const We = {
972
- primary: {
973
- name: "indigo",
974
- light: 400,
975
- default: 500,
976
- dark: 600
977
- },
978
- secondary: {
979
- name: "violet",
980
- light: 400,
981
- default: 500,
982
- dark: 600
983
- },
984
- accent: {
985
- name: "cyan",
986
- light: 400,
987
- default: 500,
988
- dark: 600
989
- }
990
- };
991
- class F {
992
- /**
993
- * Create breakpoint token
994
- */
995
- static create(a) {
996
- const n = {
997
- sm: { minWidth: 640, tailwind: "sm" },
998
- md: { minWidth: 768, tailwind: "md" },
999
- lg: { minWidth: 1024, tailwind: "lg" },
1000
- xl: { minWidth: 1280, tailwind: "xl" },
1001
- "2xl": { minWidth: 1536, tailwind: "2xl" }
1002
- }[a];
1003
- return {
1004
- name: a,
1005
- minWidth: n.minWidth,
1006
- px: `${n.minWidth}px`,
1007
- rem: `${n.minWidth / 16}rem`,
1008
- tailwind: n.tailwind
1009
- };
1010
- }
1011
- }
1012
- const z = {
1013
- sm: F.create("sm"),
1014
- md: F.create("md"),
1015
- lg: F.create("lg"),
1016
- xl: F.create("xl"),
1017
- "2xl": F.create("2xl")
1018
- };
1019
- function Ue(t) {
1020
- return z[t];
1021
- }
1022
- function Ve(t, a = "min") {
1023
- const i = z[t];
1024
- return `@media (${a === "min" ? "min-width" : "max-width"}: ${i.px})`;
1025
- }
1026
- class g {
1027
- /**
1028
- * Create an animation token
1029
- */
1030
- static create(a, i = "ease-in-out") {
1031
- const n = {
1032
- fast: {
1033
- value: "150ms",
1034
- ms: 150,
1035
- tailwind: "duration-150"
1036
- },
1037
- base: {
1038
- value: "200ms",
1039
- ms: 200,
1040
- tailwind: "duration-200"
1041
- },
1042
- slow: {
1043
- value: "300ms",
1044
- ms: 300,
1045
- tailwind: "duration-300"
1046
- },
1047
- slower: {
1048
- value: "500ms",
1049
- ms: 500,
1050
- tailwind: "duration-500"
1051
- }
1052
- }, r = {
1053
- "ease-in": {
1054
- value: "cubic-bezier(0.4, 0, 1, 1)",
1055
- tailwind: "ease-in",
1056
- description: "Slow start, fast end"
1057
- },
1058
- "ease-out": {
1059
- value: "cubic-bezier(0, 0, 0.2, 1)",
1060
- tailwind: "ease-out",
1061
- description: "Fast start, slow end"
1062
- },
1063
- "ease-in-out": {
1064
- value: "cubic-bezier(0.4, 0, 0.2, 1)",
1065
- tailwind: "ease-in-out",
1066
- description: "Slow start and end, fast middle"
1067
- },
1068
- spring: {
1069
- value: "cubic-bezier(0.68, -0.55, 0.265, 1.55)",
1070
- tailwind: "ease-[cubic-bezier(0.68,-0.55,0.265,1.55)]",
1071
- description: "Spring-like bounce effect"
1072
- }
1073
- };
1074
- return {
1075
- duration: n[a],
1076
- easing: r[i]
1077
- };
1078
- }
1079
- /**
1080
- * Create a transition token
1081
- */
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 = [
1084
- r.duration.tailwind,
1085
- r.easing.tailwind
1086
- ].join(" ");
1087
- return {
1088
- property: o,
1089
- duration: r.duration.value,
1090
- timingFunction: r.easing.value,
1091
- tailwind: s
1092
- };
1093
- }
1094
- }
1095
- const _e = {
1096
- fast: g.create("fast"),
1097
- base: g.create("base"),
1098
- slow: g.create("slow"),
1099
- slower: g.create("slower"),
1100
- // Common transitions
1101
- colors: g.createTransition(
1102
- ["color", "background-color", "border-color"],
1103
- "base"
1104
- ),
1105
- opacity: g.createTransition("opacity", "fast"),
1106
- transform: g.createTransition("transform", "base"),
1107
- all: g.createTransition("all", "base")
1108
- };
1109
- function ze(t, a) {
1110
- return g.create(t, a);
1111
- }
1112
- function Be(t, a = "ease-in-out") {
1113
- const i = g.create(t, a);
1114
- return `${i.duration.tailwind} ${i.easing.tailwind}`;
1115
- }
1116
- function He(t, a = "base", i = "ease-in-out") {
1117
- return g.createTransition(
1118
- t,
1119
- a,
1120
- i
1121
- ).tailwind;
1122
- }
1123
- class p {
1124
- /**
1125
- * Create a z-index token
1126
- */
1127
- static create(a) {
1128
- return {
1129
- base: {
1130
- value: 0,
1131
- tailwind: "z-0",
1132
- description: "Base layer for normal content"
1133
- },
1134
- dropdown: {
1135
- value: 1e3,
1136
- tailwind: "z-[1000]",
1137
- description: "Dropdown menus and select options"
1138
- },
1139
- sticky: {
1140
- value: 1020,
1141
- tailwind: "z-[1020]",
1142
- description: "Sticky headers and navigation"
1143
- },
1144
- fixed: {
1145
- value: 1030,
1146
- tailwind: "z-[1030]",
1147
- description: "Fixed position elements"
1148
- },
1149
- "modal-backdrop": {
1150
- value: 1040,
1151
- tailwind: "z-[1040]",
1152
- description: "Modal backdrop/overlay"
1153
- },
1154
- modal: {
1155
- value: 1050,
1156
- tailwind: "z-[1050]",
1157
- description: "Modal dialogs and drawers"
1158
- },
1159
- popover: {
1160
- value: 1060,
1161
- tailwind: "z-[1060]",
1162
- description: "Popovers and tooltips"
1163
- },
1164
- tooltip: {
1165
- value: 1070,
1166
- tailwind: "z-[1070]",
1167
- description: "Tooltips (highest priority)"
1168
- },
1169
- toast: {
1170
- value: 1080,
1171
- tailwind: "z-[1080]",
1172
- description: "Toast notifications (highest priority)"
1173
- }
1174
- }[a];
1175
- }
1176
- }
1177
- const Ke = {
1178
- base: p.create("base"),
1179
- dropdown: p.create("dropdown"),
1180
- sticky: p.create("sticky"),
1181
- fixed: p.create("fixed"),
1182
- "modal-backdrop": p.create("modal-backdrop"),
1183
- modal: p.create("modal"),
1184
- popover: p.create("popover"),
1185
- tooltip: p.create("tooltip"),
1186
- toast: p.create("toast")
1187
- };
1188
- function Pe(t) {
1189
- return p.create(t);
1190
- }
1191
- function Ge(t) {
1192
- return p.create(t).tailwind;
1193
- }
1194
- class d {
1195
- /**
1196
- * Create an opacity token
1197
- */
1198
- static create(a) {
1199
- const i = a / 100, n = {
1200
- 0: "Fully transparent",
1201
- 5: "Very light overlay",
1202
- 10: "Light overlay",
1203
- 20: "Subtle overlay",
1204
- 25: "Quarter opacity",
1205
- 30: "Light background",
1206
- 40: "Semi-transparent",
1207
- 50: "Half opacity",
1208
- 60: "Semi-opaque",
1209
- 70: "Mostly opaque",
1210
- 75: "Three-quarter opacity",
1211
- 80: "High opacity",
1212
- 90: "Very high opacity",
1213
- 95: "Nearly opaque",
1214
- 100: "Fully opaque"
1215
- };
1216
- return {
1217
- value: a,
1218
- decimal: i,
1219
- tailwind: {
1220
- 0: "opacity-0",
1221
- 5: "opacity-5",
1222
- 10: "opacity-10",
1223
- 20: "opacity-20",
1224
- 25: "opacity-25",
1225
- 30: "opacity-30",
1226
- 40: "opacity-40",
1227
- 50: "opacity-50",
1228
- 60: "opacity-60",
1229
- 70: "opacity-70",
1230
- 75: "opacity-75",
1231
- 80: "opacity-80",
1232
- 90: "opacity-90",
1233
- 95: "opacity-95",
1234
- 100: "opacity-100"
1235
- }[a],
1236
- description: n[a]
1237
- };
1238
- }
1239
- }
1240
- const Ye = {
1241
- transparent: d.create(0),
1242
- 5: d.create(5),
1243
- 10: d.create(10),
1244
- 20: d.create(20),
1245
- 25: d.create(25),
1246
- 30: d.create(30),
1247
- 40: d.create(40),
1248
- 50: d.create(50),
1249
- 60: d.create(60),
1250
- 70: d.create(70),
1251
- 75: d.create(75),
1252
- 80: d.create(80),
1253
- 90: d.create(90),
1254
- 95: d.create(95),
1255
- opaque: d.create(100)
1256
- };
1257
- function qe(t) {
1258
- return d.create(t);
1259
- }
1260
- function Xe(t) {
1261
- return d.create(t).tailwind;
1262
- }
1263
- class m {
1264
- /**
1265
- * Create a radius token
1266
- */
1267
- static create(a) {
1268
- const n = {
1269
- none: {
1270
- px: 0,
1271
- tailwind: "rounded-none",
1272
- description: "No border radius"
1273
- },
1274
- sm: {
1275
- px: 2,
1276
- tailwind: "rounded-sm",
1277
- description: "Small radius (2px) for subtle rounding"
1278
- },
1279
- md: {
1280
- px: 6,
1281
- tailwind: "rounded-md",
1282
- description: "Medium radius (6px) for buttons and inputs"
1283
- },
1284
- lg: {
1285
- px: 8,
1286
- tailwind: "rounded-lg",
1287
- description: "Large radius (8px) for cards and containers"
1288
- },
1289
- xl: {
1290
- px: 12,
1291
- tailwind: "rounded-xl",
1292
- description: "Extra large radius (12px) for prominent elements"
1293
- },
1294
- "2xl": {
1295
- px: 16,
1296
- tailwind: "rounded-2xl",
1297
- description: "2X large radius (16px) for large containers"
1298
- },
1299
- "3xl": {
1300
- px: 24,
1301
- tailwind: "rounded-3xl",
1302
- description: "3X large radius (24px) for very large containers"
1303
- },
1304
- full: {
1305
- px: 9999,
1306
- tailwind: "rounded-full",
1307
- description: "Full radius for circular elements"
1308
- }
1309
- }[a];
1310
- return {
1311
- value: n.px,
1312
- rem: `${n.px / 16}rem`,
1313
- px: `${n.px}px`,
1314
- tailwind: n.tailwind,
1315
- description: n.description
1316
- };
1317
- }
1318
- }
1319
- const B = {
1320
- none: m.create("none"),
1321
- sm: m.create("sm"),
1322
- md: m.create("md"),
1323
- lg: m.create("lg"),
1324
- xl: m.create("xl"),
1325
- "2xl": m.create("2xl"),
1326
- "3xl": m.create("3xl"),
1327
- full: m.create("full")
1328
- };
1329
- function je(t) {
1330
- return B[t];
1331
- }
1332
- function Ze(t) {
1333
- return B[t].tailwind;
1334
- }
1335
- class h {
1336
- /**
1337
- * Create a border width token
1338
- */
1339
- static createWidth(a) {
1340
- const n = {
1341
- none: {
1342
- px: 0,
1343
- tailwind: "border-0"
1344
- },
1345
- thin: {
1346
- px: 1,
1347
- tailwind: "border"
1348
- },
1349
- base: {
1350
- px: 1,
1351
- tailwind: "border"
1352
- },
1353
- medium: {
1354
- px: 2,
1355
- tailwind: "border-2"
1356
- },
1357
- thick: {
1358
- px: 4,
1359
- tailwind: "border-4"
1360
- }
1361
- }[a];
1362
- return {
1363
- value: n.px,
1364
- px: `${n.px}px`,
1365
- tailwind: n.tailwind
1366
- };
1367
- }
1368
- /**
1369
- * Create a complete border token
1370
- */
1371
- static create(a, i = "solid") {
1372
- return {
1373
- width: this.createWidth(a),
1374
- style: i,
1375
- description: `${a} ${i} border`
1376
- };
1377
- }
1378
- }
1379
- const oe = {
1380
- none: h.create("none"),
1381
- thin: h.create("thin"),
1382
- base: h.create("base"),
1383
- medium: h.create("medium"),
1384
- thick: h.create("thick"),
1385
- // Dashed variants
1386
- thinDashed: h.create("thin", "dashed"),
1387
- baseDashed: h.create("base", "dashed"),
1388
- // Dotted variants
1389
- thinDotted: h.create("thin", "dotted"),
1390
- baseDotted: h.create("base", "dotted")
1391
- };
1392
- function Qe(t) {
1393
- return oe[t];
1394
- }
1395
- function se(t) {
1396
- return h.createWidth(t).tailwind;
1397
- }
1398
- function le(t) {
1399
- return {
1400
- solid: "border-solid",
1401
- dashed: "border-dashed",
1402
- dotted: "border-dotted"
1403
- }[t];
1404
- }
1405
- function Je(t, a = "solid") {
1406
- return `${se(t)} ${le(a)}`;
1407
- }
1408
- class w {
1409
- /**
1410
- * Create a shadow token
1411
- */
1412
- static create(a) {
1413
- return {
1414
- none: {
1415
- value: "none",
1416
- tailwind: "shadow-none",
1417
- description: "No shadow"
1418
- },
1419
- sm: {
1420
- value: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
1421
- tailwind: "shadow-sm",
1422
- description: "Small shadow for subtle elevation"
1423
- },
1424
- md: {
1425
- value: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
1426
- tailwind: "shadow-md",
1427
- description: "Medium shadow for cards and elevated elements"
1428
- },
1429
- lg: {
1430
- value: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
1431
- tailwind: "shadow-lg",
1432
- description: "Large shadow for modals and dropdowns"
1433
- },
1434
- xl: {
1435
- value: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
1436
- tailwind: "shadow-xl",
1437
- description: "Extra large shadow for prominent modals"
1438
- },
1439
- "2xl": {
1440
- value: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
1441
- tailwind: "shadow-2xl",
1442
- description: "2X large shadow for maximum elevation"
1443
- },
1444
- inner: {
1445
- value: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
1446
- tailwind: "shadow-inner",
1447
- description: "Inner shadow for inset elements"
1448
- }
1449
- }[a];
1450
- }
1451
- }
1452
- const H = {
1453
- none: w.create("none"),
1454
- sm: w.create("sm"),
1455
- md: w.create("md"),
1456
- lg: w.create("lg"),
1457
- xl: w.create("xl"),
1458
- "2xl": w.create("2xl"),
1459
- inner: w.create("inner")
1460
- };
1461
- function e0(t) {
1462
- return H[t];
1463
- }
1464
- function t0(t) {
1465
- return H[t].tailwind;
1466
- }
1467
- const M = {
1468
- /**
1469
- * Track (the rounded background bar).
1470
- * w * h:
1471
- * sm — 36 × 20 px
1472
- * md — 44 × 24 px
1473
- * lg — 56 × 28 px
1474
- */
1475
- track: {
1476
- sm: { w: "w-9", h: "h-5" },
1477
- md: { w: "w-11", h: "h-6" },
1478
- lg: { w: "w-14", h: "h-7" }
1479
- },
1480
- /**
1481
- * Thumb (the circular knob).
1482
- * w * h:
1483
- * sm — 16 × 16 px
1484
- * md — 20 × 20 px
1485
- * lg — 24 × 24 px
1486
- */
1487
- thumb: {
1488
- sm: { w: "w-4", h: "h-4" },
1489
- md: { w: "w-5", h: "h-5" },
1490
- lg: { w: "w-6", h: "h-6" }
1491
- },
1492
- /**
1493
- * Translation distance of the thumb when the switch is on. Matches the
1494
- * track width minus the thumb width and border for visual symmetry.
1495
- * sm — 16 px
1496
- * md — 20 px
1497
- * lg — 28 px
1498
- */
1499
- translate: {
1500
- sm: "translate-x-4",
1501
- md: "translate-x-5",
1502
- lg: "translate-x-7"
1503
- }
1504
- };
1505
- function a0(t) {
1506
- return {
1507
- track: `${M.track[t].w} ${M.track[t].h}`,
1508
- thumb: `${M.thumb[t].w} ${M.thumb[t].h}`,
1509
- translate: M.translate[t]
1510
- };
1511
- }
1512
- export {
1513
- $ as AMBER,
1514
- _e as ANIMATION_TOKENS,
1515
- g as AnimationTokenFactory,
1516
- J as BLUE,
1517
- oe as BORDER_TOKENS,
1518
- We as BRAND_COLORS,
1519
- z as BREAKPOINT_TOKENS,
1520
- h as BorderTokenFactory,
1521
- F as BreakpointTokenFactory,
1522
- ve as COLOR_SCALES,
1523
- k as CYAN,
1524
- T as EMERALD,
1525
- pe as FONT_FAMILY_TOKENS,
1526
- ge as FONT_WEIGHT_TOKENS,
1527
- ee as FUCHSIA,
1528
- q as GRAY,
1529
- X as GREEN,
1530
- x as INDIGO,
1531
- ie as LIME,
1532
- Ye as OPACITY_TOKENS,
1533
- Z as ORANGE,
1534
- d as OpacityTokenFactory,
1535
- te as PINK,
1536
- U as PRIMITIVE_COLORS,
1537
- ae as PURPLE,
1538
- B as RADIUS_TOKENS,
1539
- Q as RED,
1540
- S as ROSE,
1541
- m as RadiusTokenFactory,
1542
- $e as SEMANTIC_COLORS,
1543
- V as SEMANTIC_COLORS_DARK,
1544
- D as SEMANTIC_COLORS_LIGHT,
1545
- H as SHADOW_TOKENS,
1546
- I as SIDEBAR_TOKENS,
1547
- E as SKY,
1548
- v as SLATE,
1549
- W as SPACING_TOKENS,
1550
- M as SWITCH_TOKENS,
1551
- w as ShadowTokenFactory,
1552
- c as SpacingTokenFactory,
1553
- ne as TEAL,
1554
- A as TYPOGRAPHY_TOKENS,
1555
- l as TypographyTokenFactory,
1556
- y as VIOLET,
1557
- j as YELLOW,
1558
- p as ZIndexTokenFactory,
1559
- Ke as Z_INDEX_TOKENS,
1560
- _ as blendColors,
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,
1579
- C as getPrimitiveColor,
1580
- Te as getPrimitiveColorPalette,
1581
- je as getRadius,
1582
- Ze as getRadiusClass,
1583
- O as getSemanticColor,
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
1605
- };
1606
- //# sourceMappingURL=index.js.map