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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/components/index.cjs +1 -1
  2. package/dist/components/index.js +1 -1
  3. package/dist/components-B08xLmiA.cjs +689 -0
  4. package/dist/components-B08xLmiA.cjs.map +1 -0
  5. package/dist/{components-BTUibx0r.js → components-DEuqI-ld.js} +3446 -3504
  6. package/dist/components-DEuqI-ld.js.map +1 -0
  7. package/dist/index.cjs +1 -1
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.js +357 -364
  10. package/dist/primitives/index.cjs +1 -1
  11. package/dist/primitives/index.cjs.map +1 -1
  12. package/dist/primitives/index.js +973 -981
  13. package/dist/primitives/index.js.map +1 -1
  14. package/dist/providers/index.cjs +1 -1
  15. package/dist/providers/index.js +1 -1
  16. package/dist/tokens/index.cjs +1 -1
  17. package/dist/tokens/index.cjs.map +1 -1
  18. package/dist/tokens/index.js +1602 -98
  19. package/dist/tokens/index.js.map +1 -1
  20. package/dist/ui/index.d.ts +0 -4
  21. package/dist/ui/tokens/TokenVisualizations.d.ts +0 -4
  22. package/dist/ui/tokens/index.d.ts +0 -5
  23. package/package.json +1 -1
  24. package/dist/components-BTUibx0r.js.map +0 -1
  25. package/dist/components-znqlol8t.cjs +0 -690
  26. package/dist/components-znqlol8t.cjs.map +0 -1
  27. package/dist/tokens-DcAT-mPY.js +0 -2140
  28. package/dist/tokens-DcAT-mPY.js.map +0 -1
  29. package/dist/tokens-Dul82Bn_.cjs +0 -2
  30. package/dist/tokens-Dul82Bn_.cjs.map +0 -1
  31. package/dist/ui/tokens/colors.d.ts +0 -122
  32. package/dist/ui/tokens/gradients.d.ts +0 -56
  33. package/dist/ui/tokens/themes/dark.d.ts +0 -42
  34. package/dist/ui/tokens/themes/light.d.ts +0 -42
  35. package/dist/ui/tokens/tokens.factory.d.ts +0 -98
@@ -1,2140 +0,0 @@
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 = {
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-indigo-50",
44
- text: "text-indigo-700",
45
- border: "border-indigo-600"
46
- },
47
- inactive: {
48
- text: "text-gray-700",
49
- hover: "hover:bg-gray-100 hover:text-gray-900"
50
- },
51
- groupTitle: "text-gray-500"
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-gray-400"
58
- // Subtle gray color
59
- },
60
- // Navigation column (for split sidebar)
61
- navigation: {
62
- width: {
63
- default: "56px",
64
- compact: "48px",
65
- expanded: "200px"
66
- },
67
- background: {
68
- default: "#fafafa",
69
- hover: "#f5f5f5"
70
- }
71
- },
72
- // Split sidebar
73
- split: {
74
- transition: "transition-all duration-300",
75
- collapsedWidth: "0px"
76
- },
77
- // Content area
78
- content: {
79
- scrollbar: {
80
- width: "thin",
81
- color: {
82
- thumb: "#cbd5e1",
83
- track: "#f1f5f9"
84
- }
85
- }
86
- }
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}`;
90
- }
91
- class d {
92
- // 4px base
93
- /**
94
- * Create a spacing token from scale value
95
- */
96
- static create(t) {
97
- const r = t * this.BASE_UNIT, i = r / 16;
98
- return {
99
- value: r,
100
- rem: `${i}rem`,
101
- px: `${r}px`,
102
- tailwind: this.getTailwindClass(t)
103
- };
104
- }
105
- /**
106
- * Get Tailwind class for spacing value
107
- */
108
- static getTailwindClass(t) {
109
- return {
110
- 0: "0",
111
- 0.5: "0.5",
112
- // 2px — half-step, used by fine UI (badges, switches, separators)
113
- 1: "1",
114
- // 4px
115
- 1.5: "1.5",
116
- // 6px — half-step
117
- 2: "2",
118
- // 8px
119
- 2.5: "2.5",
120
- // 10px — half-step
121
- 3: "3",
122
- // 12px
123
- 3.5: "3.5",
124
- // 14px — half-step
125
- 4: "4",
126
- // 16px
127
- 5: "5",
128
- // 20px
129
- 6: "6",
130
- // 24px
131
- 8: "8",
132
- // 32px
133
- 10: "10",
134
- // 40px
135
- 12: "12",
136
- // 48px
137
- 16: "16",
138
- // 64px
139
- 20: "20",
140
- // 80px
141
- 24: "24",
142
- // 96px
143
- 32: "32",
144
- // 128px
145
- 40: "40",
146
- // 160px
147
- 48: "48",
148
- // 192px
149
- 64: "64",
150
- // 256px
151
- 80: "80",
152
- // 320px
153
- 96: "96"
154
- // 384px
155
- }[t] || String(t);
156
- }
157
- }
158
- R(d, "BASE_UNIT", 4);
159
- const W = {
160
- // Micro spacing (0-14px)
161
- none: d.create(0),
162
- "0.5": d.create(0.5),
163
- // 2px (half-step)
164
- xs: d.create(1),
165
- // 4px
166
- "1.5": d.create(1.5),
167
- // 6px (half-step)
168
- sm: d.create(2),
169
- // 8px
170
- "2.5": d.create(2.5),
171
- // 10px (half-step)
172
- md: d.create(3),
173
- // 12px
174
- "3.5": d.create(3.5),
175
- // 14px (half-step)
176
- // Standard spacing (16-32px)
177
- base: d.create(4),
178
- // 16px
179
- lg: d.create(6),
180
- // 24px
181
- xl: d.create(8),
182
- // 32px
183
- // Large spacing (40-64px)
184
- "2xl": d.create(10),
185
- // 40px
186
- "3xl": d.create(12),
187
- // 48px
188
- "4xl": d.create(16),
189
- // 64px
190
- // Extra large spacing (80px+)
191
- "5xl": d.create(20),
192
- // 80px
193
- "6xl": d.create(24)
194
- // 96px
195
- };
196
- function ke(a) {
197
- return W[a];
198
- }
199
- function Te(a, t = "p") {
200
- const i = W[a].tailwind;
201
- return `${{
202
- p: "p",
203
- m: "m",
204
- px: "px",
205
- mx: "mx",
206
- py: "py",
207
- my: "my",
208
- pt: "pt",
209
- mt: "mt",
210
- pr: "pr",
211
- mr: "mr",
212
- pb: "pb",
213
- mb: "mb",
214
- pl: "pl",
215
- ml: "ml",
216
- gap: "gap",
217
- "gap-x": "gap-x",
218
- "gap-y": "gap-y",
219
- "space-y": "space-y"
220
- }[t]}-${i}`;
221
- }
222
- class l {
223
- /**
224
- * Create font size token
225
- */
226
- static createFontSize(t) {
227
- const i = {
228
- "2xs": { px: 10, tailwind: "text-2xs" },
229
- // micro-text (badge counters, mini chips)
230
- xs: { px: 12, tailwind: "text-xs" },
231
- sm: { px: 14, tailwind: "text-sm" },
232
- base: { px: 16, tailwind: "text-base" },
233
- lg: { px: 18, tailwind: "text-lg" },
234
- xl: { px: 20, tailwind: "text-xl" },
235
- "2xl": { px: 24, tailwind: "text-2xl" },
236
- "3xl": { px: 30, tailwind: "text-3xl" },
237
- "4xl": { px: 36, tailwind: "text-4xl" },
238
- "5xl": { px: 48, tailwind: "text-5xl" },
239
- "6xl": { px: 60, tailwind: "text-6xl" }
240
- }[t];
241
- return {
242
- value: i.px,
243
- rem: `${i.px / 16}rem`,
244
- px: `${i.px}px`,
245
- tailwind: i.tailwind
246
- };
247
- }
248
- /**
249
- * Create line height token
250
- */
251
- static createLineHeight(t) {
252
- const i = {
253
- none: { value: 1, tailwind: "leading-none" },
254
- tight: { value: 1.25, tailwind: "leading-tight" },
255
- snug: { value: 1.375, tailwind: "leading-snug" },
256
- normal: { value: 1.5, tailwind: "leading-normal" },
257
- relaxed: { value: 1.625, tailwind: "leading-relaxed" },
258
- loose: { value: 2, tailwind: "leading-loose" }
259
- }[t];
260
- return {
261
- value: i.value,
262
- tailwind: i.tailwind
263
- };
264
- }
265
- /**
266
- * Create font weight token
267
- */
268
- static createFontWeight(t) {
269
- const i = {
270
- light: { value: 300, tailwind: "font-light" },
271
- normal: { value: 400, tailwind: "font-normal" },
272
- medium: { value: 500, tailwind: "font-medium" },
273
- semibold: { value: 600, tailwind: "font-semibold" },
274
- bold: { value: 700, tailwind: "font-bold" }
275
- }[t];
276
- return {
277
- value: i.value,
278
- tailwind: i.tailwind
279
- };
280
- }
281
- /**
282
- * Create complete typography token
283
- */
284
- static create(t, r = "normal", i = "normal") {
285
- return {
286
- fontSize: this.createFontSize(t),
287
- lineHeight: this.createLineHeight(r),
288
- fontWeight: this.createFontWeight(i)
289
- };
290
- }
291
- }
292
- const ve = {
293
- sans: {
294
- name: "sans",
295
- stack: 'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',
296
- tailwind: "font-sans"
297
- },
298
- serif: {
299
- name: "serif",
300
- stack: 'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',
301
- tailwind: "font-serif"
302
- },
303
- mono: {
304
- name: "mono",
305
- stack: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
306
- tailwind: "font-mono"
307
- }
308
- }, Se = {
309
- light: l.createFontWeight("light"),
310
- normal: l.createFontWeight("normal"),
311
- medium: l.createFontWeight("medium"),
312
- semibold: l.createFontWeight("semibold"),
313
- bold: l.createFontWeight("bold")
314
- }, A = {
315
- // Headings
316
- h1: l.create("4xl", "tight", "bold"),
317
- h2: l.create("3xl", "tight", "bold"),
318
- h3: l.create("2xl", "snug", "semibold"),
319
- h4: l.create("xl", "snug", "semibold"),
320
- h5: l.create("lg", "normal", "medium"),
321
- h6: l.create("base", "normal", "medium"),
322
- // Body text
323
- body: l.create("base", "relaxed", "normal"),
324
- bodySmall: l.create("sm", "relaxed", "normal"),
325
- bodyLarge: l.create("lg", "relaxed", "normal"),
326
- // UI elements
327
- label: l.create("sm", "normal", "medium"),
328
- caption: l.create("xs", "normal", "normal"),
329
- button: l.create("base", "normal", "medium")
330
- };
331
- function Ee(a) {
332
- return A[a];
333
- }
334
- function Fe(a) {
335
- const t = A[a];
336
- return `${t.fontSize.tailwind} ${t.lineHeight.tailwind} ${t.fontWeight.tailwind}`;
337
- }
338
- function $e(a) {
339
- return A[a].fontSize.tailwind;
340
- }
341
- function Le(a) {
342
- return l.createFontSize(a).tailwind;
343
- }
344
- function Ae(a) {
345
- return A[a].fontWeight.tailwind;
346
- }
347
- function Ce(a) {
348
- return l.createFontWeight(a).tailwind;
349
- }
350
- function Oe(a) {
351
- return A[a].lineHeight.tailwind;
352
- }
353
- const De = [
354
- 50,
355
- 100,
356
- 200,
357
- 300,
358
- 400,
359
- 500,
360
- 600,
361
- 700,
362
- 800,
363
- 900,
364
- 950
365
- ];
366
- function e(a, t, r) {
367
- const i = te(a), n = ae(a);
368
- return {
369
- hex: a,
370
- rgb: i,
371
- hsl: n,
372
- cssVar: `var(--color-${t}-${r})`,
373
- tailwind: `${t}-${r}`
374
- };
375
- }
376
- function te(a) {
377
- const t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);
378
- return t ? `${parseInt(t[1], 16)}, ${parseInt(t[2], 16)}, ${parseInt(t[3], 16)}` : "0, 0, 0";
379
- }
380
- function ae(a) {
381
- const t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);
382
- if (!t) return "0, 0%, 0%";
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
- let c = 0, M = 0;
385
- const u = (o + s) / 2;
386
- if (o !== s) {
387
- const x = o - s;
388
- switch (M = u > 0.5 ? x / (2 - o - s) : x / (o + s), o) {
389
- case r:
390
- c = ((i - n) / x + (i < n ? 6 : 0)) / 6;
391
- break;
392
- case i:
393
- c = ((n - r) / x + 2) / 6;
394
- break;
395
- case n:
396
- c = ((r - i) / x + 4) / 6;
397
- break;
398
- }
399
- }
400
- return `${Math.round(c * 360)}, ${Math.round(M * 100)}%, ${Math.round(u * 100)}%`;
401
- }
402
- const k = {
403
- 50: e("#eef2ff", "indigo", 50),
404
- 100: e("#e0e7ff", "indigo", 100),
405
- 200: e("#c7d2fe", "indigo", 200),
406
- 300: e("#a5b4fc", "indigo", 300),
407
- 400: e("#818cf8", "indigo", 400),
408
- 500: e("#6366f1", "indigo", 500),
409
- 600: e("#4f46e5", "indigo", 600),
410
- 700: e("#4338ca", "indigo", 700),
411
- 800: e("#3730a3", "indigo", 800),
412
- 900: e("#312e81", "indigo", 900),
413
- 950: e("#1e1b4b", "indigo", 950)
414
- }, T = {
415
- 50: e("#f5f3ff", "violet", 50),
416
- 100: e("#ede9fe", "violet", 100),
417
- 200: e("#ddd6fe", "violet", 200),
418
- 300: e("#c4b5fd", "violet", 300),
419
- 400: e("#a78bfa", "violet", 400),
420
- 500: e("#8b5cf6", "violet", 500),
421
- 600: e("#7c3aed", "violet", 600),
422
- 700: e("#6d28d9", "violet", 700),
423
- 800: e("#5b21b6", "violet", 800),
424
- 900: e("#4c1d95", "violet", 900),
425
- 950: e("#2e1065", "violet", 950)
426
- }, v = {
427
- 50: e("#ecfeff", "cyan", 50),
428
- 100: e("#cffafe", "cyan", 100),
429
- 200: e("#a5f3fc", "cyan", 200),
430
- 300: e("#67e8f9", "cyan", 300),
431
- 400: e("#22d3ee", "cyan", 400),
432
- 500: e("#06b6d4", "cyan", 500),
433
- 600: e("#0891b2", "cyan", 600),
434
- 700: e("#0e7490", "cyan", 700),
435
- 800: e("#155e75", "cyan", 800),
436
- 900: e("#164e63", "cyan", 900),
437
- 950: e("#083344", "cyan", 950)
438
- }, S = {
439
- 50: e("#f8fafc", "slate", 50),
440
- 100: e("#f1f5f9", "slate", 100),
441
- 200: e("#e2e8f0", "slate", 200),
442
- 300: e("#cbd5e1", "slate", 300),
443
- 400: e("#94a3b8", "slate", 400),
444
- 500: e("#64748b", "slate", 500),
445
- 600: e("#475569", "slate", 600),
446
- 700: e("#334155", "slate", 700),
447
- 800: e("#1e293b", "slate", 800),
448
- 900: e("#0f172a", "slate", 900),
449
- 950: e("#020617", "slate", 950)
450
- }, re = {
451
- 50: e("#f9fafb", "gray", 50),
452
- 100: e("#f3f4f6", "gray", 100),
453
- 200: e("#e5e7eb", "gray", 200),
454
- 300: e("#d1d5db", "gray", 300),
455
- 400: e("#9ca3af", "gray", 400),
456
- 500: e("#6b7280", "gray", 500),
457
- 600: e("#4b5563", "gray", 600),
458
- 700: e("#374151", "gray", 700),
459
- 800: e("#1f2937", "gray", 800),
460
- 900: e("#111827", "gray", 900),
461
- 950: e("#030712", "gray", 950)
462
- }, E = {
463
- 50: e("#ecfdf5", "emerald", 50),
464
- 100: e("#d1fae5", "emerald", 100),
465
- 200: e("#a7f3d0", "emerald", 200),
466
- 300: e("#6ee7b7", "emerald", 300),
467
- 400: e("#34d399", "emerald", 400),
468
- 500: e("#10b981", "emerald", 500),
469
- 600: e("#059669", "emerald", 600),
470
- 700: e("#047857", "emerald", 700),
471
- 800: e("#065f46", "emerald", 800),
472
- 900: e("#064e3b", "emerald", 900),
473
- 950: e("#022c22", "emerald", 950)
474
- }, ie = {
475
- 50: e("#f0fdf4", "green", 50),
476
- 100: e("#dcfce7", "green", 100),
477
- 200: e("#bbf7d0", "green", 200),
478
- 300: e("#86efac", "green", 300),
479
- 400: e("#4ade80", "green", 400),
480
- 500: e("#22c55e", "green", 500),
481
- 600: e("#16a34a", "green", 600),
482
- 700: e("#15803d", "green", 700),
483
- 800: e("#166534", "green", 800),
484
- 900: e("#14532d", "green", 900),
485
- 950: e("#052e16", "green", 950)
486
- }, F = {
487
- 50: e("#fffbeb", "amber", 50),
488
- 100: e("#fef3c7", "amber", 100),
489
- 200: e("#fde68a", "amber", 200),
490
- 300: e("#fcd34d", "amber", 300),
491
- 400: e("#fbbf24", "amber", 400),
492
- 500: e("#f59e0b", "amber", 500),
493
- 600: e("#d97706", "amber", 600),
494
- 700: e("#b45309", "amber", 700),
495
- 800: e("#92400e", "amber", 800),
496
- 900: e("#78350f", "amber", 900),
497
- 950: e("#451a03", "amber", 950)
498
- }, ne = {
499
- 50: e("#fefce8", "yellow", 50),
500
- 100: e("#fef9c3", "yellow", 100),
501
- 200: e("#fef08a", "yellow", 200),
502
- 300: e("#fde047", "yellow", 300),
503
- 400: e("#facc15", "yellow", 400),
504
- 500: e("#eab308", "yellow", 500),
505
- 600: e("#ca8a04", "yellow", 600),
506
- 700: e("#a16207", "yellow", 700),
507
- 800: e("#854d0e", "yellow", 800),
508
- 900: e("#713f12", "yellow", 900),
509
- 950: e("#422006", "yellow", 950)
510
- }, oe = {
511
- 50: e("#fff7ed", "orange", 50),
512
- 100: e("#ffedd5", "orange", 100),
513
- 200: e("#fed7aa", "orange", 200),
514
- 300: e("#fdba74", "orange", 300),
515
- 400: e("#fb923c", "orange", 400),
516
- 500: e("#f97316", "orange", 500),
517
- 600: e("#ea580c", "orange", 600),
518
- 700: e("#c2410c", "orange", 700),
519
- 800: e("#9a3412", "orange", 800),
520
- 900: e("#7c2d12", "orange", 900),
521
- 950: e("#431407", "orange", 950)
522
- }, $ = {
523
- 50: e("#fff1f2", "rose", 50),
524
- 100: e("#ffe4e6", "rose", 100),
525
- 200: e("#fecdd3", "rose", 200),
526
- 300: e("#fda4af", "rose", 300),
527
- 400: e("#fb7185", "rose", 400),
528
- 500: e("#f43f5e", "rose", 500),
529
- 600: e("#e11d48", "rose", 600),
530
- 700: e("#be123c", "rose", 700),
531
- 800: e("#9f1239", "rose", 800),
532
- 900: e("#881337", "rose", 900),
533
- 950: e("#4c0519", "rose", 950)
534
- }, se = {
535
- 50: e("#fef2f2", "red", 50),
536
- 100: e("#fee2e2", "red", 100),
537
- 200: e("#fecaca", "red", 200),
538
- 300: e("#fca5a5", "red", 300),
539
- 400: e("#f87171", "red", 400),
540
- 500: e("#ef4444", "red", 500),
541
- 600: e("#dc2626", "red", 600),
542
- 700: e("#b91c1c", "red", 700),
543
- 800: e("#991b1b", "red", 800),
544
- 900: e("#7f1d1d", "red", 900),
545
- 950: e("#450a0a", "red", 950)
546
- }, L = {
547
- 50: e("#f0f9ff", "sky", 50),
548
- 100: e("#e0f2fe", "sky", 100),
549
- 200: e("#bae6fd", "sky", 200),
550
- 300: e("#7dd3fc", "sky", 300),
551
- 400: e("#38bdf8", "sky", 400),
552
- 500: e("#0ea5e9", "sky", 500),
553
- 600: e("#0284c7", "sky", 600),
554
- 700: e("#0369a1", "sky", 700),
555
- 800: e("#075985", "sky", 800),
556
- 900: e("#0c4a6e", "sky", 900),
557
- 950: e("#082f49", "sky", 950)
558
- }, ce = {
559
- 50: e("#eff6ff", "blue", 50),
560
- 100: e("#dbeafe", "blue", 100),
561
- 200: e("#bfdbfe", "blue", 200),
562
- 300: e("#93c5fd", "blue", 300),
563
- 400: e("#60a5fa", "blue", 400),
564
- 500: e("#3b82f6", "blue", 500),
565
- 600: e("#2563eb", "blue", 600),
566
- 700: e("#1d4ed8", "blue", 700),
567
- 800: e("#1e40af", "blue", 800),
568
- 900: e("#1e3a8a", "blue", 900),
569
- 950: e("#172554", "blue", 950)
570
- }, le = {
571
- 50: e("#fdf4ff", "fuchsia", 50),
572
- 100: e("#fae8ff", "fuchsia", 100),
573
- 200: e("#f5d0fe", "fuchsia", 200),
574
- 300: e("#f0abfc", "fuchsia", 300),
575
- 400: e("#e879f9", "fuchsia", 400),
576
- 500: e("#d946ef", "fuchsia", 500),
577
- 600: e("#c026d3", "fuchsia", 600),
578
- 700: e("#a21caf", "fuchsia", 700),
579
- 800: e("#86198f", "fuchsia", 800),
580
- 900: e("#701a75", "fuchsia", 900),
581
- 950: e("#4a044e", "fuchsia", 950)
582
- }, de = {
583
- 50: e("#fdf2f8", "pink", 50),
584
- 100: e("#fce7f3", "pink", 100),
585
- 200: e("#fbcfe8", "pink", 200),
586
- 300: e("#f9a8d4", "pink", 300),
587
- 400: e("#f472b6", "pink", 400),
588
- 500: e("#ec4899", "pink", 500),
589
- 600: e("#db2777", "pink", 600),
590
- 700: e("#be185d", "pink", 700),
591
- 800: e("#9d174d", "pink", 800),
592
- 900: e("#831843", "pink", 900),
593
- 950: e("#500724", "pink", 950)
594
- }, fe = {
595
- 50: e("#faf5ff", "purple", 50),
596
- 100: e("#f3e8ff", "purple", 100),
597
- 200: e("#e9d5ff", "purple", 200),
598
- 300: e("#d8b4fe", "purple", 300),
599
- 400: e("#c084fc", "purple", 400),
600
- 500: e("#a855f7", "purple", 500),
601
- 600: e("#9333ea", "purple", 600),
602
- 700: e("#7e22ce", "purple", 700),
603
- 800: e("#6b21a8", "purple", 800),
604
- 900: e("#581c87", "purple", 900),
605
- 950: e("#3b0764", "purple", 950)
606
- }, ge = {
607
- 50: e("#f0fdfa", "teal", 50),
608
- 100: e("#ccfbf1", "teal", 100),
609
- 200: e("#99f6e4", "teal", 200),
610
- 300: e("#5eead4", "teal", 300),
611
- 400: e("#2dd4bf", "teal", 400),
612
- 500: e("#14b8a6", "teal", 500),
613
- 600: e("#0d9488", "teal", 600),
614
- 700: e("#0f766e", "teal", 700),
615
- 800: e("#115e59", "teal", 800),
616
- 900: e("#134e4a", "teal", 900),
617
- 950: e("#042f2e", "teal", 950)
618
- }, he = {
619
- 50: e("#f7fee7", "lime", 50),
620
- 100: e("#ecfccb", "lime", 100),
621
- 200: e("#d9f99d", "lime", 200),
622
- 300: e("#bef264", "lime", 300),
623
- 400: e("#a3e635", "lime", 400),
624
- 500: e("#84cc16", "lime", 500),
625
- 600: e("#65a30d", "lime", 600),
626
- 700: e("#4d7c0f", "lime", 700),
627
- 800: e("#3f6212", "lime", 800),
628
- 900: e("#365314", "lime", 900),
629
- 950: e("#1a2e05", "lime", 950)
630
- }, G = {
631
- indigo: k,
632
- violet: T,
633
- cyan: v,
634
- slate: S,
635
- gray: re,
636
- emerald: E,
637
- green: ie,
638
- amber: F,
639
- yellow: ne,
640
- orange: oe,
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
650
- };
651
- function I(a, t) {
652
- return G[a][t];
653
- }
654
- function Ie(a) {
655
- return G[a];
656
- }
657
- const V = {
658
- primary: {
659
- light: k[400],
660
- DEFAULT: k[500],
661
- dark: k[600],
662
- contrast: {
663
- hex: "#ffffff",
664
- rgb: "255, 255, 255",
665
- hsl: "0, 0%, 100%",
666
- cssVar: "var(--color-white)",
667
- tailwind: "white"
668
- }
669
- },
670
- secondary: {
671
- light: T[400],
672
- DEFAULT: T[500],
673
- dark: T[600],
674
- contrast: {
675
- hex: "#ffffff",
676
- rgb: "255, 255, 255",
677
- hsl: "0, 0%, 100%",
678
- cssVar: "var(--color-white)",
679
- tailwind: "white"
680
- }
681
- },
682
- accent: {
683
- light: v[400],
684
- DEFAULT: v[500],
685
- dark: v[600],
686
- contrast: {
687
- hex: "#ffffff",
688
- rgb: "255, 255, 255",
689
- hsl: "0, 0%, 100%",
690
- cssVar: "var(--color-white)",
691
- tailwind: "white"
692
- }
693
- },
694
- success: {
695
- light: E[400],
696
- DEFAULT: E[500],
697
- dark: E[600],
698
- contrast: {
699
- hex: "#ffffff",
700
- rgb: "255, 255, 255",
701
- hsl: "0, 0%, 100%",
702
- cssVar: "var(--color-white)",
703
- tailwind: "white"
704
- }
705
- },
706
- warning: {
707
- light: F[400],
708
- DEFAULT: F[500],
709
- dark: F[600],
710
- contrast: {
711
- hex: "#000000",
712
- rgb: "0, 0, 0",
713
- hsl: "0, 0%, 0%",
714
- cssVar: "var(--color-black)",
715
- tailwind: "black"
716
- }
717
- },
718
- error: {
719
- light: $[400],
720
- DEFAULT: $[500],
721
- dark: $[600],
722
- contrast: {
723
- hex: "#ffffff",
724
- rgb: "255, 255, 255",
725
- hsl: "0, 0%, 100%",
726
- cssVar: "var(--color-white)",
727
- tailwind: "white"
728
- }
729
- },
730
- info: {
731
- light: L[400],
732
- DEFAULT: L[500],
733
- dark: L[600],
734
- contrast: {
735
- hex: "#ffffff",
736
- rgb: "255, 255, 255",
737
- hsl: "0, 0%, 100%",
738
- cssVar: "var(--color-white)",
739
- tailwind: "white"
740
- }
741
- },
742
- neutral: {
743
- light: S[100],
744
- DEFAULT: S[500],
745
- dark: S[700],
746
- contrast: {
747
- hex: "#ffffff",
748
- rgb: "255, 255, 255",
749
- hsl: "0, 0%, 100%",
750
- cssVar: "var(--color-white)",
751
- tailwind: "white"
752
- }
753
- }
754
- }, H = {
755
- primary: {
756
- light: k[500],
757
- DEFAULT: k[400],
758
- dark: k[300],
759
- contrast: {
760
- hex: "#ffffff",
761
- rgb: "255, 255, 255",
762
- hsl: "0, 0%, 100%",
763
- cssVar: "var(--color-white)",
764
- tailwind: "white"
765
- }
766
- },
767
- secondary: {
768
- light: T[500],
769
- DEFAULT: T[400],
770
- dark: T[300],
771
- contrast: {
772
- hex: "#ffffff",
773
- rgb: "255, 255, 255",
774
- hsl: "0, 0%, 100%",
775
- cssVar: "var(--color-white)",
776
- tailwind: "white"
777
- }
778
- },
779
- accent: {
780
- light: v[500],
781
- DEFAULT: v[400],
782
- dark: v[300],
783
- contrast: {
784
- hex: "#000000",
785
- rgb: "0, 0, 0",
786
- hsl: "0, 0%, 0%",
787
- cssVar: "var(--color-black)",
788
- tailwind: "black"
789
- }
790
- },
791
- success: {
792
- light: E[500],
793
- DEFAULT: E[400],
794
- dark: E[300],
795
- contrast: {
796
- hex: "#000000",
797
- rgb: "0, 0, 0",
798
- hsl: "0, 0%, 0%",
799
- cssVar: "var(--color-black)",
800
- tailwind: "black"
801
- }
802
- },
803
- warning: {
804
- light: F[500],
805
- DEFAULT: F[400],
806
- dark: F[300],
807
- contrast: {
808
- hex: "#000000",
809
- rgb: "0, 0, 0",
810
- hsl: "0, 0%, 0%",
811
- cssVar: "var(--color-black)",
812
- tailwind: "black"
813
- }
814
- },
815
- error: {
816
- light: $[500],
817
- DEFAULT: $[400],
818
- dark: $[300],
819
- contrast: {
820
- hex: "#ffffff",
821
- rgb: "255, 255, 255",
822
- hsl: "0, 0%, 100%",
823
- cssVar: "var(--color-white)",
824
- tailwind: "white"
825
- }
826
- },
827
- info: {
828
- light: L[500],
829
- DEFAULT: L[400],
830
- dark: L[300],
831
- contrast: {
832
- hex: "#ffffff",
833
- rgb: "255, 255, 255",
834
- hsl: "0, 0%, 100%",
835
- cssVar: "var(--color-white)",
836
- tailwind: "white"
837
- }
838
- },
839
- neutral: {
840
- light: S[700],
841
- DEFAULT: S[400],
842
- dark: S[300],
843
- contrast: {
844
- hex: "#ffffff",
845
- rgb: "255, 255, 255",
846
- hsl: "0, 0%, 100%",
847
- cssVar: "var(--color-white)",
848
- tailwind: "white"
849
- }
850
- }
851
- }, Me = V;
852
- function N(a, t = "DEFAULT", r = "light") {
853
- return (r === "dark" ? H : V)[a][t];
854
- }
855
- function Re(a, t = "light") {
856
- return (t === "dark" ? H : V)[a];
857
- }
858
- function Ue(a, t, r = {}) {
859
- const { format: i = "hex", opacity: n } = r, o = I(a, t);
860
- let s;
861
- switch (i) {
862
- case "rgb":
863
- s = n !== void 0 ? `rgba(${o.rgb}, ${n})` : `rgb(${o.rgb})`;
864
- break;
865
- case "hsl":
866
- s = n !== void 0 ? `hsla(${o.hsl}, ${n})` : `hsl(${o.hsl})`;
867
- break;
868
- case "cssVar":
869
- s = o.cssVar;
870
- break;
871
- case "tailwind":
872
- s = o.tailwind;
873
- break;
874
- case "hex":
875
- default:
876
- s = o.hex;
877
- }
878
- return s;
879
- }
880
- function Ne(a, t = "DEFAULT", r = {}) {
881
- const { format: i = "hex", opacity: n } = r, o = N(a, t);
882
- let s;
883
- switch (i) {
884
- case "rgb":
885
- s = n !== void 0 ? `rgba(${o.rgb}, ${n})` : `rgb(${o.rgb})`;
886
- break;
887
- case "hsl":
888
- s = n !== void 0 ? `hsla(${o.hsl}, ${n})` : `hsl(${o.hsl})`;
889
- break;
890
- case "cssVar":
891
- s = o.cssVar;
892
- break;
893
- case "tailwind":
894
- s = o.tailwind;
895
- break;
896
- case "hex":
897
- default:
898
- s = o.hex;
899
- }
900
- return s;
901
- }
902
- function _e(a, t, r = {}) {
903
- const {
904
- type: i = "text",
905
- hover: n = !1,
906
- focus: o = !1,
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(" ");
910
- }
911
- function We(a, t = "DEFAULT", r = {}) {
912
- const {
913
- type: i = "text",
914
- hover: n = !1,
915
- focus: o = !1,
916
- active: s = !1
917
- } = r, c = N(a, t), u = [`${i}-${c.tailwind}`];
918
- if (n) {
919
- const x = N(
920
- a,
921
- t === "DEFAULT" ? "dark" : "DEFAULT"
922
- );
923
- u.push(`hover:${i}-${x.tailwind}`);
924
- }
925
- if (o && u.push(`focus:${i}-${c.tailwind}`), s) {
926
- const x = N(a, "dark");
927
- u.push(`active:${i}-${x.tailwind}`);
928
- }
929
- return u.join(" ");
930
- }
931
- function Ke(a, t, r = "bg") {
932
- const i = I(a, t);
933
- return `hover:${r}-${i.tailwind}`;
934
- }
935
- function Be(a, t, r = "border") {
936
- const i = I(a, t);
937
- return `focus:${r}-${i.tailwind}`;
938
- }
939
- function Pe(a, t) {
940
- return `focus:ring-${I(a, t).tailwind}`;
941
- }
942
- function ze(a, t) {
943
- return `rgba(${a.rgb}, ${t})`;
944
- }
945
- function ue(a) {
946
- const t = B(a);
947
- return t ? 0.299 * t[0] + 0.587 * t[1] + 0.114 * t[2] > 128 : !0;
948
- }
949
- function Ve(a) {
950
- return ue(a) ? "#000000" : "#ffffff";
951
- }
952
- function B(a) {
953
- const t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);
954
- return t ? [
955
- parseInt(t[1], 16),
956
- parseInt(t[2], 16),
957
- parseInt(t[3], 16)
958
- ] : null;
959
- }
960
- function Z(a, t, r = 0.5) {
961
- const i = B(a), n = B(t);
962
- if (!i || !n) return a;
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
- return `#${((1 << 24) + (o << 16) + (s << 8) + c).toString(16).slice(1)}`;
965
- }
966
- function Ge(a, t) {
967
- return Z(a, "#ffffff", t / 100);
968
- }
969
- function He(a, t) {
970
- return Z(a, "#000000", t / 100);
971
- }
972
- const Ze = {
973
- primary: {
974
- name: "indigo",
975
- light: 400,
976
- default: 500,
977
- dark: 600
978
- },
979
- secondary: {
980
- name: "violet",
981
- light: 400,
982
- default: 500,
983
- dark: 600
984
- },
985
- accent: {
986
- name: "cyan",
987
- light: 400,
988
- default: 500,
989
- dark: 600
990
- }
991
- };
992
- class C {
993
- /**
994
- * Create breakpoint token
995
- */
996
- static create(t) {
997
- const i = {
998
- sm: { minWidth: 640, tailwind: "sm" },
999
- md: { minWidth: 768, tailwind: "md" },
1000
- lg: { minWidth: 1024, tailwind: "lg" },
1001
- xl: { minWidth: 1280, tailwind: "xl" },
1002
- "2xl": { minWidth: 1536, tailwind: "2xl" }
1003
- }[t];
1004
- return {
1005
- name: t,
1006
- minWidth: i.minWidth,
1007
- px: `${i.minWidth}px`,
1008
- rem: `${i.minWidth / 16}rem`,
1009
- tailwind: i.tailwind
1010
- };
1011
- }
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")
1019
- };
1020
- function je(a) {
1021
- return K[a];
1022
- }
1023
- function Ye(a, t = "min") {
1024
- const r = K[a];
1025
- return `@media (${t === "min" ? "min-width" : "max-width"}: ${r.px})`;
1026
- }
1027
- class _ {
1028
- generatePrimary() {
1029
- return {
1030
- light: { hex: "#818cf8", rgb: "129, 140, 248", tailwind: "indigo-400" },
1031
- DEFAULT: { hex: "#6366f1", rgb: "99, 102, 241", tailwind: "indigo-500" },
1032
- dark: { hex: "#4f46e5", rgb: "79, 70, 229", tailwind: "indigo-600" },
1033
- contrast: { hex: "#ffffff", rgb: "255, 255, 255", tailwind: "white" }
1034
- };
1035
- }
1036
- generateSecondary() {
1037
- return {
1038
- light: { hex: "#f9a8d4", rgb: "249, 168, 212", tailwind: "pink-300" },
1039
- DEFAULT: { hex: "#ec4899", rgb: "236, 72, 153", tailwind: "pink-500" },
1040
- dark: { hex: "#db2777", rgb: "219, 39, 119", tailwind: "pink-600" },
1041
- contrast: { hex: "#ffffff", rgb: "255, 255, 255", tailwind: "white" }
1042
- };
1043
- }
1044
- generateSuccess() {
1045
- return {
1046
- light: { hex: "#86efac", rgb: "134, 239, 172", tailwind: "green-300" },
1047
- DEFAULT: { hex: "#22c55e", rgb: "34, 197, 94", tailwind: "green-500" },
1048
- dark: { hex: "#16a34a", rgb: "22, 163, 74", tailwind: "green-600" },
1049
- contrast: { hex: "#ffffff", rgb: "255, 255, 255", tailwind: "white" }
1050
- };
1051
- }
1052
- generateWarning() {
1053
- return {
1054
- light: { hex: "#fde047", rgb: "253, 224, 71", tailwind: "yellow-300" },
1055
- DEFAULT: { hex: "#eab308", rgb: "234, 179, 8", tailwind: "yellow-500" },
1056
- dark: { hex: "#ca8a04", rgb: "202, 138, 4", tailwind: "yellow-600" },
1057
- contrast: { hex: "#000000", rgb: "0, 0, 0", tailwind: "black" }
1058
- };
1059
- }
1060
- generateError() {
1061
- return {
1062
- light: { hex: "#fca5a5", rgb: "252, 165, 165", tailwind: "red-300" },
1063
- DEFAULT: { hex: "#ef4444", rgb: "239, 68, 68", tailwind: "red-500" },
1064
- dark: { hex: "#dc2626", rgb: "220, 38, 38", tailwind: "red-600" },
1065
- contrast: { hex: "#ffffff", rgb: "255, 255, 255", tailwind: "white" }
1066
- };
1067
- }
1068
- generateInfo() {
1069
- return {
1070
- light: { hex: "#93c5fd", rgb: "147, 197, 253", tailwind: "blue-300" },
1071
- DEFAULT: { hex: "#3b82f6", rgb: "59, 130, 246", tailwind: "blue-500" },
1072
- dark: { hex: "#2563eb", rgb: "37, 99, 235", tailwind: "blue-600" },
1073
- contrast: { hex: "#ffffff", rgb: "255, 255, 255", tailwind: "white" }
1074
- };
1075
- }
1076
- generateNeutral() {
1077
- return {
1078
- light: { hex: "#f3f4f6", rgb: "243, 244, 246", tailwind: "gray-100" },
1079
- DEFAULT: { hex: "#6b7280", rgb: "107, 114, 128", tailwind: "gray-500" },
1080
- dark: { hex: "#374151", rgb: "55, 65, 81", tailwind: "gray-700" },
1081
- contrast: { hex: "#ffffff", rgb: "255, 255, 255", tailwind: "white" }
1082
- };
1083
- }
1084
- }
1085
- class P {
1086
- generatePrimary() {
1087
- return {
1088
- light: { hex: "#6366f1", rgb: "99, 102, 241", tailwind: "indigo-500" },
1089
- DEFAULT: { hex: "#818cf8", rgb: "129, 140, 248", tailwind: "indigo-400" },
1090
- dark: { hex: "#a5b4fc", rgb: "165, 180, 252", tailwind: "indigo-300" },
1091
- contrast: { hex: "#ffffff", rgb: "255, 255, 255", tailwind: "white" }
1092
- };
1093
- }
1094
- generateSecondary() {
1095
- return {
1096
- light: { hex: "#ec4899", rgb: "236, 72, 153", tailwind: "pink-500" },
1097
- DEFAULT: { hex: "#f472b6", rgb: "244, 114, 182", tailwind: "pink-400" },
1098
- dark: { hex: "#f9a8d4", rgb: "249, 168, 212", tailwind: "pink-300" },
1099
- contrast: { hex: "#ffffff", rgb: "255, 255, 255", tailwind: "white" }
1100
- };
1101
- }
1102
- generateSuccess() {
1103
- return {
1104
- light: { hex: "#22c55e", rgb: "34, 197, 94", tailwind: "green-500" },
1105
- DEFAULT: { hex: "#4ade80", rgb: "74, 222, 128", tailwind: "green-400" },
1106
- dark: { hex: "#86efac", rgb: "134, 239, 172", tailwind: "green-300" },
1107
- contrast: { hex: "#000000", rgb: "0, 0, 0", tailwind: "black" }
1108
- };
1109
- }
1110
- generateWarning() {
1111
- return {
1112
- light: { hex: "#eab308", rgb: "234, 179, 8", tailwind: "yellow-500" },
1113
- DEFAULT: { hex: "#facc15", rgb: "250, 204, 21", tailwind: "yellow-400" },
1114
- dark: { hex: "#fde047", rgb: "253, 224, 71", tailwind: "yellow-300" },
1115
- contrast: { hex: "#000000", rgb: "0, 0, 0", tailwind: "black" }
1116
- };
1117
- }
1118
- generateError() {
1119
- return {
1120
- light: { hex: "#ef4444", rgb: "239, 68, 68", tailwind: "red-500" },
1121
- DEFAULT: { hex: "#f87171", rgb: "248, 113, 113", tailwind: "red-400" },
1122
- dark: { hex: "#fca5a5", rgb: "252, 165, 165", tailwind: "red-300" },
1123
- contrast: { hex: "#ffffff", rgb: "255, 255, 255", tailwind: "white" }
1124
- };
1125
- }
1126
- generateInfo() {
1127
- return {
1128
- light: { hex: "#3b82f6", rgb: "59, 130, 246", tailwind: "blue-500" },
1129
- DEFAULT: { hex: "#60a5fa", rgb: "96, 165, 250", tailwind: "blue-400" },
1130
- dark: { hex: "#93c5fd", rgb: "147, 197, 253", tailwind: "blue-300" },
1131
- contrast: { hex: "#ffffff", rgb: "255, 255, 255", tailwind: "white" }
1132
- };
1133
- }
1134
- generateNeutral() {
1135
- return {
1136
- light: { hex: "#374151", rgb: "55, 65, 81", tailwind: "gray-700" },
1137
- DEFAULT: { hex: "#9ca3af", rgb: "156, 163, 175", tailwind: "gray-400" },
1138
- dark: { hex: "#d1d5db", rgb: "209, 213, 219", tailwind: "gray-300" },
1139
- contrast: { hex: "#ffffff", rgb: "255, 255, 255", tailwind: "white" }
1140
- };
1141
- }
1142
- }
1143
- class z {
1144
- constructor(t) {
1145
- R(this, "strategy");
1146
- this.strategy = t;
1147
- }
1148
- /**
1149
- * Set color strategy
1150
- */
1151
- setStrategy(t) {
1152
- this.strategy = t;
1153
- }
1154
- /**
1155
- * Generate semantic color palette
1156
- */
1157
- generatePalette() {
1158
- return {
1159
- primary: this.strategy.generatePrimary(),
1160
- secondary: this.strategy.generateSecondary(),
1161
- success: this.strategy.generateSuccess(),
1162
- warning: this.strategy.generateWarning(),
1163
- error: this.strategy.generateError(),
1164
- info: this.strategy.generateInfo(),
1165
- neutral: this.strategy.generateNeutral()
1166
- };
1167
- }
1168
- }
1169
- const j = (() => {
1170
- let a, t;
1171
- try {
1172
- a = new z(new _()).generatePalette();
1173
- } catch (r) {
1174
- console.error("Failed to initialize COLOR_TOKENS_LIGHT:", r);
1175
- const i = new _();
1176
- a = {
1177
- primary: i.generatePrimary(),
1178
- secondary: i.generateSecondary(),
1179
- success: i.generateSuccess(),
1180
- warning: i.generateWarning(),
1181
- error: i.generateError(),
1182
- info: i.generateInfo(),
1183
- neutral: i.generateNeutral()
1184
- };
1185
- }
1186
- try {
1187
- t = new z(new P()).generatePalette();
1188
- } catch (r) {
1189
- console.error("Failed to initialize COLOR_TOKENS_DARK:", r), t = a;
1190
- }
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
- }
1265
- class y {
1266
- /**
1267
- * Create a shadow token
1268
- */
1269
- static create(t) {
1270
- return {
1271
- none: {
1272
- value: "none",
1273
- tailwind: "shadow-none",
1274
- description: "No shadow"
1275
- },
1276
- sm: {
1277
- value: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
1278
- tailwind: "shadow-sm",
1279
- description: "Small shadow for subtle elevation"
1280
- },
1281
- md: {
1282
- value: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
1283
- tailwind: "shadow-md",
1284
- description: "Medium shadow for cards and elevated elements"
1285
- },
1286
- lg: {
1287
- value: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
1288
- tailwind: "shadow-lg",
1289
- description: "Large shadow for modals and dropdowns"
1290
- },
1291
- xl: {
1292
- value: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
1293
- tailwind: "shadow-xl",
1294
- description: "Extra large shadow for prominent modals"
1295
- },
1296
- "2xl": {
1297
- value: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
1298
- tailwind: "shadow-2xl",
1299
- description: "2X large shadow for maximum elevation"
1300
- },
1301
- inner: {
1302
- value: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
1303
- tailwind: "shadow-inner",
1304
- description: "Inner shadow for inset elements"
1305
- }
1306
- }[t];
1307
- }
1308
- }
1309
- const q = {
1310
- none: y.create("none"),
1311
- sm: y.create("sm"),
1312
- md: y.create("md"),
1313
- lg: y.create("lg"),
1314
- xl: y.create("xl"),
1315
- "2xl": y.create("2xl"),
1316
- inner: y.create("inner")
1317
- };
1318
- function et(a) {
1319
- return q[a];
1320
- }
1321
- function tt(a) {
1322
- return q[a].tailwind;
1323
- }
1324
- class m {
1325
- /**
1326
- * Create a radius token
1327
- */
1328
- static create(t) {
1329
- const i = {
1330
- none: {
1331
- px: 0,
1332
- tailwind: "rounded-none",
1333
- description: "No border radius"
1334
- },
1335
- sm: {
1336
- px: 2,
1337
- tailwind: "rounded-sm",
1338
- description: "Small radius (2px) for subtle rounding"
1339
- },
1340
- md: {
1341
- px: 6,
1342
- tailwind: "rounded-md",
1343
- description: "Medium radius (6px) for buttons and inputs"
1344
- },
1345
- lg: {
1346
- px: 8,
1347
- tailwind: "rounded-lg",
1348
- description: "Large radius (8px) for cards and containers"
1349
- },
1350
- xl: {
1351
- px: 12,
1352
- tailwind: "rounded-xl",
1353
- description: "Extra large radius (12px) for prominent elements"
1354
- },
1355
- "2xl": {
1356
- px: 16,
1357
- tailwind: "rounded-2xl",
1358
- description: "2X large radius (16px) for large containers"
1359
- },
1360
- "3xl": {
1361
- px: 24,
1362
- tailwind: "rounded-3xl",
1363
- description: "3X large radius (24px) for very large containers"
1364
- },
1365
- full: {
1366
- px: 9999,
1367
- tailwind: "rounded-full",
1368
- description: "Full radius for circular elements"
1369
- }
1370
- }[t];
1371
- return {
1372
- value: i.px,
1373
- rem: `${i.px / 16}rem`,
1374
- px: `${i.px}px`,
1375
- tailwind: i.tailwind,
1376
- description: i.description
1377
- };
1378
- }
1379
- }
1380
- const X = {
1381
- none: m.create("none"),
1382
- sm: m.create("sm"),
1383
- md: m.create("md"),
1384
- lg: m.create("lg"),
1385
- xl: m.create("xl"),
1386
- "2xl": m.create("2xl"),
1387
- "3xl": m.create("3xl"),
1388
- full: m.create("full")
1389
- };
1390
- function at(a) {
1391
- return X[a];
1392
- }
1393
- function rt(a) {
1394
- return X[a].tailwind;
1395
- }
1396
- class w {
1397
- /**
1398
- * Create a border width token
1399
- */
1400
- static createWidth(t) {
1401
- const i = {
1402
- none: {
1403
- px: 0,
1404
- tailwind: "border-0"
1405
- },
1406
- thin: {
1407
- px: 1,
1408
- tailwind: "border"
1409
- },
1410
- base: {
1411
- px: 1,
1412
- tailwind: "border"
1413
- },
1414
- medium: {
1415
- px: 2,
1416
- tailwind: "border-2"
1417
- },
1418
- thick: {
1419
- px: 4,
1420
- tailwind: "border-4"
1421
- }
1422
- }[t];
1423
- return {
1424
- value: i.px,
1425
- px: `${i.px}px`,
1426
- tailwind: i.tailwind
1427
- };
1428
- }
1429
- /**
1430
- * Create a complete border token
1431
- */
1432
- static create(t, r = "solid") {
1433
- return {
1434
- width: this.createWidth(t),
1435
- style: r,
1436
- description: `${t} ${r} border`
1437
- };
1438
- }
1439
- }
1440
- const be = {
1441
- none: w.create("none"),
1442
- thin: w.create("thin"),
1443
- base: w.create("base"),
1444
- medium: w.create("medium"),
1445
- thick: w.create("thick"),
1446
- // Dashed variants
1447
- thinDashed: w.create("thin", "dashed"),
1448
- baseDashed: w.create("base", "dashed"),
1449
- // Dotted variants
1450
- thinDotted: w.create("thin", "dotted"),
1451
- baseDotted: w.create("base", "dotted")
1452
- };
1453
- function it(a) {
1454
- return be[a];
1455
- }
1456
- function we(a) {
1457
- return w.createWidth(a).tailwind;
1458
- }
1459
- function xe(a) {
1460
- return {
1461
- solid: "border-solid",
1462
- dashed: "border-dashed",
1463
- dotted: "border-dotted"
1464
- }[a];
1465
- }
1466
- function nt(a, t = "solid") {
1467
- return `${we(a)} ${xe(t)}`;
1468
- }
1469
- class b {
1470
- /**
1471
- * Create an animation token
1472
- */
1473
- static create(t, r = "ease-in-out") {
1474
- const i = {
1475
- fast: {
1476
- value: "150ms",
1477
- ms: 150,
1478
- tailwind: "duration-150"
1479
- },
1480
- base: {
1481
- value: "200ms",
1482
- ms: 200,
1483
- tailwind: "duration-200"
1484
- },
1485
- slow: {
1486
- value: "300ms",
1487
- ms: 300,
1488
- tailwind: "duration-300"
1489
- },
1490
- slower: {
1491
- value: "500ms",
1492
- ms: 500,
1493
- tailwind: "duration-500"
1494
- }
1495
- }, n = {
1496
- "ease-in": {
1497
- value: "cubic-bezier(0.4, 0, 1, 1)",
1498
- tailwind: "ease-in",
1499
- description: "Slow start, fast end"
1500
- },
1501
- "ease-out": {
1502
- value: "cubic-bezier(0, 0, 0.2, 1)",
1503
- tailwind: "ease-out",
1504
- description: "Fast start, slow end"
1505
- },
1506
- "ease-in-out": {
1507
- value: "cubic-bezier(0.4, 0, 0.2, 1)",
1508
- tailwind: "ease-in-out",
1509
- description: "Slow start and end, fast middle"
1510
- },
1511
- spring: {
1512
- value: "cubic-bezier(0.68, -0.55, 0.265, 1.55)",
1513
- tailwind: "ease-[cubic-bezier(0.68,-0.55,0.265,1.55)]",
1514
- description: "Spring-like bounce effect"
1515
- }
1516
- };
1517
- return {
1518
- duration: i[t],
1519
- easing: n[r]
1520
- };
1521
- }
1522
- /**
1523
- * Create a transition token
1524
- */
1525
- static createTransition(t, r = "base", i = "ease-in-out") {
1526
- const n = this.create(r, i), o = Array.isArray(t) ? t.join(", ") : t, s = [
1527
- n.duration.tailwind,
1528
- n.easing.tailwind
1529
- ].join(" ");
1530
- return {
1531
- property: o,
1532
- duration: n.duration.value,
1533
- timingFunction: n.easing.value,
1534
- tailwind: s
1535
- };
1536
- }
1537
- }
1538
- const ot = {
1539
- fast: b.create("fast"),
1540
- base: b.create("base"),
1541
- slow: b.create("slow"),
1542
- slower: b.create("slower"),
1543
- // Common transitions
1544
- colors: b.createTransition(
1545
- ["color", "background-color", "border-color"],
1546
- "base"
1547
- ),
1548
- opacity: b.createTransition("opacity", "fast"),
1549
- transform: b.createTransition("transform", "base"),
1550
- all: b.createTransition("all", "base")
1551
- };
1552
- function st(a, t) {
1553
- return b.create(a, t);
1554
- }
1555
- function ct(a, t = "ease-in-out") {
1556
- const r = b.create(a, t);
1557
- return `${r.duration.tailwind} ${r.easing.tailwind}`;
1558
- }
1559
- function lt(a, t = "base", r = "ease-in-out") {
1560
- return b.createTransition(
1561
- a,
1562
- t,
1563
- r
1564
- ).tailwind;
1565
- }
1566
- class p {
1567
- /**
1568
- * Create a z-index token
1569
- */
1570
- static create(t) {
1571
- return {
1572
- base: {
1573
- value: 0,
1574
- tailwind: "z-0",
1575
- description: "Base layer for normal content"
1576
- },
1577
- dropdown: {
1578
- value: 1e3,
1579
- tailwind: "z-[1000]",
1580
- description: "Dropdown menus and select options"
1581
- },
1582
- sticky: {
1583
- value: 1020,
1584
- tailwind: "z-[1020]",
1585
- description: "Sticky headers and navigation"
1586
- },
1587
- fixed: {
1588
- value: 1030,
1589
- tailwind: "z-[1030]",
1590
- description: "Fixed position elements"
1591
- },
1592
- "modal-backdrop": {
1593
- value: 1040,
1594
- tailwind: "z-[1040]",
1595
- description: "Modal backdrop/overlay"
1596
- },
1597
- modal: {
1598
- value: 1050,
1599
- tailwind: "z-[1050]",
1600
- description: "Modal dialogs and drawers"
1601
- },
1602
- popover: {
1603
- value: 1060,
1604
- tailwind: "z-[1060]",
1605
- description: "Popovers and tooltips"
1606
- },
1607
- tooltip: {
1608
- value: 1070,
1609
- tailwind: "z-[1070]",
1610
- description: "Tooltips (highest priority)"
1611
- },
1612
- toast: {
1613
- value: 1080,
1614
- tailwind: "z-[1080]",
1615
- description: "Toast notifications (highest priority)"
1616
- }
1617
- }[t];
1618
- }
1619
- }
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")
1630
- };
1631
- function ft(a) {
1632
- return p.create(a);
1633
- }
1634
- function gt(a) {
1635
- return p.create(a).tailwind;
1636
- }
1637
- class f {
1638
- /**
1639
- * Create an opacity token
1640
- */
1641
- static create(t) {
1642
- const r = t / 100, i = {
1643
- 0: "Fully transparent",
1644
- 5: "Very light overlay",
1645
- 10: "Light overlay",
1646
- 20: "Subtle overlay",
1647
- 25: "Quarter opacity",
1648
- 30: "Light background",
1649
- 40: "Semi-transparent",
1650
- 50: "Half opacity",
1651
- 60: "Semi-opaque",
1652
- 70: "Mostly opaque",
1653
- 75: "Three-quarter opacity",
1654
- 80: "High opacity",
1655
- 90: "Very high opacity",
1656
- 95: "Nearly opaque",
1657
- 100: "Fully opaque"
1658
- };
1659
- return {
1660
- value: t,
1661
- decimal: r,
1662
- tailwind: {
1663
- 0: "opacity-0",
1664
- 5: "opacity-5",
1665
- 10: "opacity-10",
1666
- 20: "opacity-20",
1667
- 25: "opacity-25",
1668
- 30: "opacity-30",
1669
- 40: "opacity-40",
1670
- 50: "opacity-50",
1671
- 60: "opacity-60",
1672
- 70: "opacity-70",
1673
- 75: "opacity-75",
1674
- 80: "opacity-80",
1675
- 90: "opacity-90",
1676
- 95: "opacity-95",
1677
- 100: "opacity-100"
1678
- }[t],
1679
- description: i[t]
1680
- };
1681
- }
1682
- }
1683
- const ht = {
1684
- transparent: f.create(0),
1685
- 5: f.create(5),
1686
- 10: f.create(10),
1687
- 20: f.create(20),
1688
- 25: f.create(25),
1689
- 30: f.create(30),
1690
- 40: f.create(40),
1691
- 50: f.create(50),
1692
- 60: f.create(60),
1693
- 70: f.create(70),
1694
- 75: f.create(75),
1695
- 80: f.create(80),
1696
- 90: f.create(90),
1697
- 95: f.create(95),
1698
- opaque: f.create(100)
1699
- };
1700
- function ut(a) {
1701
- return f.create(a);
1702
- }
1703
- function pt(a) {
1704
- return f.create(a).tailwind;
1705
- }
1706
- class h {
1707
- /**
1708
- * Create a gradient token
1709
- */
1710
- static create(t, r = "to-r") {
1711
- const n = {
1712
- primary: {
1713
- from: g.primary.light.hex,
1714
- via: g.primary.DEFAULT.hex,
1715
- to: g.primary.dark.hex,
1716
- description: "Primary color gradient"
1717
- },
1718
- secondary: {
1719
- from: g.secondary.light.hex,
1720
- via: g.secondary.DEFAULT.hex,
1721
- to: g.secondary.dark.hex,
1722
- description: "Secondary color gradient"
1723
- },
1724
- success: {
1725
- from: g.success.light.hex,
1726
- to: g.success.dark.hex,
1727
- description: "Success color gradient"
1728
- },
1729
- error: {
1730
- from: g.error.light.hex,
1731
- to: g.error.dark.hex,
1732
- description: "Error color gradient"
1733
- },
1734
- info: {
1735
- from: g.info.light.hex,
1736
- to: g.info.dark.hex,
1737
- description: "Info color gradient"
1738
- },
1739
- warning: {
1740
- from: g.warning.light.hex,
1741
- to: g.warning.dark.hex,
1742
- description: "Warning color gradient"
1743
- }
1744
- }[t];
1745
- let s = `linear-gradient(${{
1746
- "to-r": "to right",
1747
- "to-l": "to left",
1748
- "to-t": "to top",
1749
- "to-b": "to bottom",
1750
- "to-tr": "to top right",
1751
- "to-tl": "to top left",
1752
- "to-br": "to bottom right",
1753
- "to-bl": "to bottom left"
1754
- }[r]}, ${n.from}`;
1755
- n.via && (s += `, ${n.via}`), s += `, ${n.to})`;
1756
- const c = [];
1757
- return c.push(`bg-gradient-${r.replace("to-", "")}`), c.push(`from-[${n.from}]`), n.via && c.push(`via-[${n.via}]`), c.push(`to-[${n.to}]`), {
1758
- value: s,
1759
- tailwind: c.join(" "),
1760
- description: n.description,
1761
- from: n.from,
1762
- via: n.via,
1763
- to: n.to
1764
- };
1765
- }
1766
- /**
1767
- * Convert hex color to approximate Tailwind color class
1768
- * This is a helper for documentation, actual implementation uses arbitrary values
1769
- * @deprecated Not currently used, kept for potential future use
1770
- */
1771
- // @ts-expect-error - Method kept for potential future use
1772
- static hexToTailwindColor(t) {
1773
- return t;
1774
- }
1775
- }
1776
- const bt = {
1777
- primary: h.create("primary"),
1778
- secondary: h.create("secondary"),
1779
- success: h.create("success"),
1780
- error: h.create("error"),
1781
- info: h.create("info"),
1782
- warning: h.create("warning"),
1783
- // Common directions
1784
- "primary-to-r": h.create("primary", "to-r"),
1785
- "primary-to-b": h.create("primary", "to-b"),
1786
- "secondary-to-r": h.create("secondary", "to-r"),
1787
- "success-to-r": h.create("success", "to-r"),
1788
- "error-to-r": h.create("error", "to-r")
1789
- };
1790
- function wt(a, t) {
1791
- return h.create(a, t);
1792
- }
1793
- function xt(a, t = "to-r") {
1794
- return h.create(a, t).tailwind;
1795
- }
1796
- class Q {
1797
- constructor(t = "light") {
1798
- R(this, "colorFactory");
1799
- const r = t === "light" ? new _() : new P();
1800
- this.colorFactory = new z(r);
1801
- }
1802
- /**
1803
- * Create spacing token
1804
- */
1805
- createSpacing(t) {
1806
- return d.create(t);
1807
- }
1808
- /**
1809
- * Create typography token
1810
- */
1811
- createTypography(t, r, i) {
1812
- return l.create(t, r, i);
1813
- }
1814
- /**
1815
- * Create color palette
1816
- */
1817
- createColorPalette() {
1818
- return this.colorFactory.generatePalette();
1819
- }
1820
- /**
1821
- * Create breakpoint token
1822
- */
1823
- createBreakpoint(t) {
1824
- return C.create(t);
1825
- }
1826
- /**
1827
- * Create shadow token
1828
- */
1829
- createShadow(t) {
1830
- return y.create(t);
1831
- }
1832
- /**
1833
- * Create radius token
1834
- */
1835
- createRadius(t) {
1836
- return m.create(t);
1837
- }
1838
- /**
1839
- * Create border token
1840
- */
1841
- createBorder(t) {
1842
- return w.create(t);
1843
- }
1844
- /**
1845
- * Create animation token
1846
- */
1847
- createAnimation(t, r) {
1848
- return b.create(t, r);
1849
- }
1850
- /**
1851
- * Create z-index token
1852
- */
1853
- createZIndex(t) {
1854
- return p.create(t);
1855
- }
1856
- /**
1857
- * Create opacity token
1858
- */
1859
- createOpacity(t) {
1860
- return f.create(t);
1861
- }
1862
- /**
1863
- * Create gradient token
1864
- */
1865
- createGradient(t, r) {
1866
- return h.create(t, r);
1867
- }
1868
- /**
1869
- * Create complete token set for a theme
1870
- */
1871
- createTokenSet() {
1872
- return {
1873
- spacing: {
1874
- xs: this.createSpacing(1),
1875
- sm: this.createSpacing(2),
1876
- md: this.createSpacing(3),
1877
- base: this.createSpacing(4),
1878
- lg: this.createSpacing(6),
1879
- xl: this.createSpacing(8),
1880
- "2xl": this.createSpacing(10),
1881
- "3xl": this.createSpacing(12),
1882
- "4xl": this.createSpacing(16)
1883
- },
1884
- typography: {
1885
- h1: this.createTypography("4xl", "tight", "bold"),
1886
- h2: this.createTypography("3xl", "tight", "bold"),
1887
- h3: this.createTypography("2xl", "snug", "semibold"),
1888
- body: this.createTypography("base", "relaxed", "normal"),
1889
- label: this.createTypography("sm", "normal", "medium"),
1890
- caption: this.createTypography("xs", "normal", "normal")
1891
- },
1892
- colors: this.createColorPalette(),
1893
- breakpoints: {
1894
- sm: this.createBreakpoint("sm"),
1895
- md: this.createBreakpoint("md"),
1896
- lg: this.createBreakpoint("lg"),
1897
- xl: this.createBreakpoint("xl"),
1898
- "2xl": this.createBreakpoint("2xl")
1899
- },
1900
- shadows: {
1901
- none: this.createShadow("none"),
1902
- sm: this.createShadow("sm"),
1903
- md: this.createShadow("md"),
1904
- lg: this.createShadow("lg"),
1905
- xl: this.createShadow("xl"),
1906
- "2xl": this.createShadow("2xl"),
1907
- inner: this.createShadow("inner")
1908
- },
1909
- radius: {
1910
- none: this.createRadius("none"),
1911
- sm: this.createRadius("sm"),
1912
- md: this.createRadius("md"),
1913
- lg: this.createRadius("lg"),
1914
- xl: this.createRadius("xl"),
1915
- "2xl": this.createRadius("2xl"),
1916
- "3xl": this.createRadius("3xl"),
1917
- full: this.createRadius("full")
1918
- },
1919
- borders: {
1920
- none: this.createBorder("none"),
1921
- thin: this.createBorder("thin"),
1922
- base: this.createBorder("base"),
1923
- medium: this.createBorder("medium"),
1924
- thick: this.createBorder("thick")
1925
- },
1926
- animations: {
1927
- fast: this.createAnimation("fast"),
1928
- base: this.createAnimation("base"),
1929
- slow: this.createAnimation("slow"),
1930
- slower: this.createAnimation("slower")
1931
- },
1932
- zIndex: {
1933
- base: this.createZIndex("base"),
1934
- dropdown: this.createZIndex("dropdown"),
1935
- sticky: this.createZIndex("sticky"),
1936
- fixed: this.createZIndex("fixed"),
1937
- "modal-backdrop": this.createZIndex("modal-backdrop"),
1938
- modal: this.createZIndex("modal"),
1939
- popover: this.createZIndex("popover"),
1940
- tooltip: this.createZIndex("tooltip"),
1941
- toast: this.createZIndex("toast")
1942
- },
1943
- opacity: {
1944
- transparent: this.createOpacity(0),
1945
- 5: this.createOpacity(5),
1946
- 10: this.createOpacity(10),
1947
- 25: this.createOpacity(25),
1948
- 50: this.createOpacity(50),
1949
- 75: this.createOpacity(75),
1950
- 90: this.createOpacity(90),
1951
- opaque: this.createOpacity(100)
1952
- },
1953
- gradients: {
1954
- primary: this.createGradient("primary"),
1955
- secondary: this.createGradient("secondary"),
1956
- success: this.createGradient("success"),
1957
- error: this.createGradient("error"),
1958
- info: this.createGradient("info"),
1959
- warning: this.createGradient("warning")
1960
- }
1961
- };
1962
- }
1963
- /**
1964
- * Switch theme
1965
- */
1966
- setTheme(t) {
1967
- const r = t === "light" ? new _() : new P();
1968
- this.colorFactory.setStrategy(r);
1969
- }
1970
- }
1971
- const mt = new Q("light");
1972
- function yt(a = "light") {
1973
- return new Q(a).createTokenSet();
1974
- }
1975
- const kt = {
1976
- colors: g,
1977
- spacing: W,
1978
- typography: A,
1979
- breakpoints: K,
1980
- mode: "light"
1981
- }, Tt = {
1982
- colors: pe,
1983
- spacing: W,
1984
- typography: A,
1985
- breakpoints: K,
1986
- mode: "dark"
1987
- }, D = {
1988
- /**
1989
- * Track (the rounded background bar).
1990
- * w * h:
1991
- * sm — 36 × 20 px
1992
- * md — 44 × 24 px
1993
- * lg — 56 × 28 px
1994
- */
1995
- track: {
1996
- sm: { w: "w-9", h: "h-5" },
1997
- md: { w: "w-11", h: "h-6" },
1998
- lg: { w: "w-14", h: "h-7" }
1999
- },
2000
- /**
2001
- * Thumb (the circular knob).
2002
- * w * h:
2003
- * sm — 16 × 16 px
2004
- * md — 20 × 20 px
2005
- * lg — 24 × 24 px
2006
- */
2007
- thumb: {
2008
- sm: { w: "w-4", h: "h-4" },
2009
- md: { w: "w-5", h: "h-5" },
2010
- lg: { w: "w-6", h: "h-6" }
2011
- },
2012
- /**
2013
- * Translation distance of the thumb when the switch is on. Matches the
2014
- * track width minus the thumb width and border for visual symmetry.
2015
- * sm — 16 px
2016
- * md — 20 px
2017
- * lg — 28 px
2018
- */
2019
- translate: {
2020
- sm: "translate-x-4",
2021
- md: "translate-x-5",
2022
- lg: "translate-x-7"
2023
- }
2024
- };
2025
- function vt(a) {
2026
- 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]
2030
- };
2031
- }
2032
- export {
2033
- ne as $,
2034
- ot as A,
2035
- K as B,
2036
- lt as C,
2037
- 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,
2055
- 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,
2062
- 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,
2117
- $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
2139
- };
2140
- //# sourceMappingURL=tokens-DcAT-mPY.js.map