@fabio.caffarello/react-design-system 1.11.0 → 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.
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{components-D2QpE5zG.cjs → components-B08xLmiA.cjs} +2 -2
- package/dist/{components-D2QpE5zG.cjs.map → components-B08xLmiA.cjs.map} +1 -1
- package/dist/{components-BsS4vmbl.js → components-DEuqI-ld.js} +127 -127
- package/dist/{components-BsS4vmbl.js.map → components-DEuqI-ld.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +346 -353
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.cjs.map +1 -1
- package/dist/primitives/index.js +2 -2
- package/dist/providers/index.cjs +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.cjs.map +1 -1
- package/dist/tokens/index.js +1602 -98
- package/dist/tokens/index.js.map +1 -1
- package/dist/ui/index.d.ts +0 -4
- package/dist/ui/tokens/TokenVisualizations.d.ts +0 -4
- package/dist/ui/tokens/index.d.ts +0 -4
- package/package.json +1 -1
- package/dist/tokens-BCpPv8tI.js +0 -2063
- package/dist/tokens-BCpPv8tI.js.map +0 -1
- package/dist/tokens-BX3lVxER.cjs +0 -2
- package/dist/tokens-BX3lVxER.cjs.map +0 -1
- package/dist/ui/tokens/colors.d.ts +0 -122
- package/dist/ui/tokens/gradients.d.ts +0 -56
- package/dist/ui/tokens/themes/dark.d.ts +0 -42
- package/dist/ui/tokens/themes/light.d.ts +0 -42
- package/dist/ui/tokens/tokens.factory.d.ts +0 -98
package/dist/tokens-BCpPv8tI.js
DELETED
|
@@ -1,2063 +0,0 @@
|
|
|
1
|
-
var X = Object.defineProperty;
|
|
2
|
-
var Q = (a, t, r) => t in a ? X(a, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[t] = r;
|
|
3
|
-
var D = (a, t, r) => Q(a, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
const R = {
|
|
5
|
-
// 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 xe(a) {
|
|
89
|
-
return a <= 0 ? R.spacing.itemPaddingX : a === 1 ? R.spacing.nestedIndent : a === 2 ? R.spacing.nestedIndentLevel2 : a === 3 ? R.spacing.nestedIndentLevel3 : `pl-${4 + a * 4}`;
|
|
90
|
-
}
|
|
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
|
-
D(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 me(a) {
|
|
197
|
-
return W[a];
|
|
198
|
-
}
|
|
199
|
-
function ye(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 ke = {
|
|
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
|
-
}, Te = {
|
|
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
|
-
}, L = {
|
|
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 ve(a) {
|
|
332
|
-
return L[a];
|
|
333
|
-
}
|
|
334
|
-
function Se(a) {
|
|
335
|
-
const t = L[a];
|
|
336
|
-
return `${t.fontSize.tailwind} ${t.lineHeight.tailwind} ${t.fontWeight.tailwind}`;
|
|
337
|
-
}
|
|
338
|
-
function Ee(a) {
|
|
339
|
-
return L[a].fontSize.tailwind;
|
|
340
|
-
}
|
|
341
|
-
function Fe(a) {
|
|
342
|
-
return l.createFontSize(a).tailwind;
|
|
343
|
-
}
|
|
344
|
-
function $e(a) {
|
|
345
|
-
return L[a].fontWeight.tailwind;
|
|
346
|
-
}
|
|
347
|
-
function Ae(a) {
|
|
348
|
-
return l.createFontWeight(a).tailwind;
|
|
349
|
-
}
|
|
350
|
-
function Le(a) {
|
|
351
|
-
return L[a].lineHeight.tailwind;
|
|
352
|
-
}
|
|
353
|
-
const Ie = [
|
|
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 = J(a), n = ee(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 J(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 ee(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 p = (o + s) / 2;
|
|
386
|
-
if (o !== s) {
|
|
387
|
-
const x = o - s;
|
|
388
|
-
switch (M = p > 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(p * 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
|
-
}, te = {
|
|
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
|
-
}, ae = {
|
|
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
|
-
}, re = {
|
|
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
|
-
}, ie = {
|
|
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
|
-
}, ne = {
|
|
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
|
-
}, A = {
|
|
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
|
-
}, oe = {
|
|
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
|
-
}, se = {
|
|
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
|
-
}, ce = {
|
|
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
|
-
}, le = {
|
|
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
|
-
}, de = {
|
|
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
|
-
}, fe = {
|
|
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
|
-
}, K = {
|
|
631
|
-
indigo: k,
|
|
632
|
-
violet: T,
|
|
633
|
-
cyan: v,
|
|
634
|
-
slate: S,
|
|
635
|
-
gray: te,
|
|
636
|
-
emerald: E,
|
|
637
|
-
green: ae,
|
|
638
|
-
amber: F,
|
|
639
|
-
yellow: re,
|
|
640
|
-
orange: ie,
|
|
641
|
-
rose: $,
|
|
642
|
-
red: ne,
|
|
643
|
-
sky: A,
|
|
644
|
-
blue: oe,
|
|
645
|
-
fuchsia: se,
|
|
646
|
-
pink: ce,
|
|
647
|
-
purple: le,
|
|
648
|
-
teal: de,
|
|
649
|
-
lime: fe
|
|
650
|
-
};
|
|
651
|
-
function O(a, t) {
|
|
652
|
-
return K[a][t];
|
|
653
|
-
}
|
|
654
|
-
function Ce(a) {
|
|
655
|
-
return K[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: A[400],
|
|
732
|
-
DEFAULT: A[500],
|
|
733
|
-
dark: A[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
|
-
}, G = {
|
|
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: A[500],
|
|
829
|
-
DEFAULT: A[400],
|
|
830
|
-
dark: A[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
|
-
}, Oe = V;
|
|
852
|
-
function N(a, t = "DEFAULT", r = "light") {
|
|
853
|
-
return (r === "dark" ? G : V)[a][t];
|
|
854
|
-
}
|
|
855
|
-
function Me(a, t = "light") {
|
|
856
|
-
return (t === "dark" ? G : V)[a];
|
|
857
|
-
}
|
|
858
|
-
function De(a, t, r = {}) {
|
|
859
|
-
const { format: i = "hex", opacity: n } = r, o = O(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 Re(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 Ne(a, t, r = {}) {
|
|
903
|
-
const {
|
|
904
|
-
type: i = "text",
|
|
905
|
-
hover: n = !1,
|
|
906
|
-
focus: o = !1,
|
|
907
|
-
active: s = !1
|
|
908
|
-
} = r, c = O(a, t), p = [`${i}-${c.tailwind}`];
|
|
909
|
-
return n && p.push(`hover:${i}-${c.tailwind}`), o && p.push(`focus:${i}-${c.tailwind}`), s && p.push(`active:${i}-${c.tailwind}`), p.join(" ");
|
|
910
|
-
}
|
|
911
|
-
function Ue(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), p = [`${i}-${c.tailwind}`];
|
|
918
|
-
if (n) {
|
|
919
|
-
const x = N(
|
|
920
|
-
a,
|
|
921
|
-
t === "DEFAULT" ? "dark" : "DEFAULT"
|
|
922
|
-
);
|
|
923
|
-
p.push(`hover:${i}-${x.tailwind}`);
|
|
924
|
-
}
|
|
925
|
-
if (o && p.push(`focus:${i}-${c.tailwind}`), s) {
|
|
926
|
-
const x = N(a, "dark");
|
|
927
|
-
p.push(`active:${i}-${x.tailwind}`);
|
|
928
|
-
}
|
|
929
|
-
return p.join(" ");
|
|
930
|
-
}
|
|
931
|
-
function We(a, t, r = "bg") {
|
|
932
|
-
const i = O(a, t);
|
|
933
|
-
return `hover:${r}-${i.tailwind}`;
|
|
934
|
-
}
|
|
935
|
-
function _e(a, t, r = "border") {
|
|
936
|
-
const i = O(a, t);
|
|
937
|
-
return `focus:${r}-${i.tailwind}`;
|
|
938
|
-
}
|
|
939
|
-
function Be(a, t) {
|
|
940
|
-
return `focus:ring-${O(a, t).tailwind}`;
|
|
941
|
-
}
|
|
942
|
-
function Pe(a, t) {
|
|
943
|
-
return `rgba(${a.rgb}, ${t})`;
|
|
944
|
-
}
|
|
945
|
-
function ge(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 ze(a) {
|
|
950
|
-
return ge(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 H(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 Ve(a, t) {
|
|
967
|
-
return H(a, "#ffffff", t / 100);
|
|
968
|
-
}
|
|
969
|
-
function Ke(a, t) {
|
|
970
|
-
return H(a, "#000000", t / 100);
|
|
971
|
-
}
|
|
972
|
-
const Ge = {
|
|
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 I {
|
|
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 _ = {
|
|
1014
|
-
sm: I.create("sm"),
|
|
1015
|
-
md: I.create("md"),
|
|
1016
|
-
lg: I.create("lg"),
|
|
1017
|
-
xl: I.create("xl"),
|
|
1018
|
-
"2xl": I.create("2xl")
|
|
1019
|
-
};
|
|
1020
|
-
function He(a) {
|
|
1021
|
-
return _[a];
|
|
1022
|
-
}
|
|
1023
|
-
function Ze(a, t = "min") {
|
|
1024
|
-
const r = _[a];
|
|
1025
|
-
return `@media (${t === "min" ? "min-width" : "max-width"}: ${r.px})`;
|
|
1026
|
-
}
|
|
1027
|
-
class U {
|
|
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
|
-
D(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 Z = (() => {
|
|
1170
|
-
let a, t;
|
|
1171
|
-
try {
|
|
1172
|
-
a = new z(new U()).generatePalette();
|
|
1173
|
-
} catch (r) {
|
|
1174
|
-
console.error("Failed to initialize COLOR_TOKENS_LIGHT:", r);
|
|
1175
|
-
const i = new U();
|
|
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 = Z.light, he = Z.dark;
|
|
1193
|
-
class y {
|
|
1194
|
-
/**
|
|
1195
|
-
* Create a shadow token
|
|
1196
|
-
*/
|
|
1197
|
-
static create(t) {
|
|
1198
|
-
return {
|
|
1199
|
-
none: {
|
|
1200
|
-
value: "none",
|
|
1201
|
-
tailwind: "shadow-none",
|
|
1202
|
-
description: "No shadow"
|
|
1203
|
-
},
|
|
1204
|
-
sm: {
|
|
1205
|
-
value: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
1206
|
-
tailwind: "shadow-sm",
|
|
1207
|
-
description: "Small shadow for subtle elevation"
|
|
1208
|
-
},
|
|
1209
|
-
md: {
|
|
1210
|
-
value: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
|
1211
|
-
tailwind: "shadow-md",
|
|
1212
|
-
description: "Medium shadow for cards and elevated elements"
|
|
1213
|
-
},
|
|
1214
|
-
lg: {
|
|
1215
|
-
value: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
|
|
1216
|
-
tailwind: "shadow-lg",
|
|
1217
|
-
description: "Large shadow for modals and dropdowns"
|
|
1218
|
-
},
|
|
1219
|
-
xl: {
|
|
1220
|
-
value: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
|
|
1221
|
-
tailwind: "shadow-xl",
|
|
1222
|
-
description: "Extra large shadow for prominent modals"
|
|
1223
|
-
},
|
|
1224
|
-
"2xl": {
|
|
1225
|
-
value: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
|
|
1226
|
-
tailwind: "shadow-2xl",
|
|
1227
|
-
description: "2X large shadow for maximum elevation"
|
|
1228
|
-
},
|
|
1229
|
-
inner: {
|
|
1230
|
-
value: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
|
|
1231
|
-
tailwind: "shadow-inner",
|
|
1232
|
-
description: "Inner shadow for inset elements"
|
|
1233
|
-
}
|
|
1234
|
-
}[t];
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
const Y = {
|
|
1238
|
-
none: y.create("none"),
|
|
1239
|
-
sm: y.create("sm"),
|
|
1240
|
-
md: y.create("md"),
|
|
1241
|
-
lg: y.create("lg"),
|
|
1242
|
-
xl: y.create("xl"),
|
|
1243
|
-
"2xl": y.create("2xl"),
|
|
1244
|
-
inner: y.create("inner")
|
|
1245
|
-
};
|
|
1246
|
-
function Ye(a) {
|
|
1247
|
-
return Y[a];
|
|
1248
|
-
}
|
|
1249
|
-
function qe(a) {
|
|
1250
|
-
return Y[a].tailwind;
|
|
1251
|
-
}
|
|
1252
|
-
class m {
|
|
1253
|
-
/**
|
|
1254
|
-
* Create a radius token
|
|
1255
|
-
*/
|
|
1256
|
-
static create(t) {
|
|
1257
|
-
const i = {
|
|
1258
|
-
none: {
|
|
1259
|
-
px: 0,
|
|
1260
|
-
tailwind: "rounded-none",
|
|
1261
|
-
description: "No border radius"
|
|
1262
|
-
},
|
|
1263
|
-
sm: {
|
|
1264
|
-
px: 2,
|
|
1265
|
-
tailwind: "rounded-sm",
|
|
1266
|
-
description: "Small radius (2px) for subtle rounding"
|
|
1267
|
-
},
|
|
1268
|
-
md: {
|
|
1269
|
-
px: 6,
|
|
1270
|
-
tailwind: "rounded-md",
|
|
1271
|
-
description: "Medium radius (6px) for buttons and inputs"
|
|
1272
|
-
},
|
|
1273
|
-
lg: {
|
|
1274
|
-
px: 8,
|
|
1275
|
-
tailwind: "rounded-lg",
|
|
1276
|
-
description: "Large radius (8px) for cards and containers"
|
|
1277
|
-
},
|
|
1278
|
-
xl: {
|
|
1279
|
-
px: 12,
|
|
1280
|
-
tailwind: "rounded-xl",
|
|
1281
|
-
description: "Extra large radius (12px) for prominent elements"
|
|
1282
|
-
},
|
|
1283
|
-
"2xl": {
|
|
1284
|
-
px: 16,
|
|
1285
|
-
tailwind: "rounded-2xl",
|
|
1286
|
-
description: "2X large radius (16px) for large containers"
|
|
1287
|
-
},
|
|
1288
|
-
"3xl": {
|
|
1289
|
-
px: 24,
|
|
1290
|
-
tailwind: "rounded-3xl",
|
|
1291
|
-
description: "3X large radius (24px) for very large containers"
|
|
1292
|
-
},
|
|
1293
|
-
full: {
|
|
1294
|
-
px: 9999,
|
|
1295
|
-
tailwind: "rounded-full",
|
|
1296
|
-
description: "Full radius for circular elements"
|
|
1297
|
-
}
|
|
1298
|
-
}[t];
|
|
1299
|
-
return {
|
|
1300
|
-
value: i.px,
|
|
1301
|
-
rem: `${i.px / 16}rem`,
|
|
1302
|
-
px: `${i.px}px`,
|
|
1303
|
-
tailwind: i.tailwind,
|
|
1304
|
-
description: i.description
|
|
1305
|
-
};
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
const q = {
|
|
1309
|
-
none: m.create("none"),
|
|
1310
|
-
sm: m.create("sm"),
|
|
1311
|
-
md: m.create("md"),
|
|
1312
|
-
lg: m.create("lg"),
|
|
1313
|
-
xl: m.create("xl"),
|
|
1314
|
-
"2xl": m.create("2xl"),
|
|
1315
|
-
"3xl": m.create("3xl"),
|
|
1316
|
-
full: m.create("full")
|
|
1317
|
-
};
|
|
1318
|
-
function je(a) {
|
|
1319
|
-
return q[a];
|
|
1320
|
-
}
|
|
1321
|
-
function Xe(a) {
|
|
1322
|
-
return q[a].tailwind;
|
|
1323
|
-
}
|
|
1324
|
-
class w {
|
|
1325
|
-
/**
|
|
1326
|
-
* Create a border width token
|
|
1327
|
-
*/
|
|
1328
|
-
static createWidth(t) {
|
|
1329
|
-
const i = {
|
|
1330
|
-
none: {
|
|
1331
|
-
px: 0,
|
|
1332
|
-
tailwind: "border-0"
|
|
1333
|
-
},
|
|
1334
|
-
thin: {
|
|
1335
|
-
px: 1,
|
|
1336
|
-
tailwind: "border"
|
|
1337
|
-
},
|
|
1338
|
-
base: {
|
|
1339
|
-
px: 1,
|
|
1340
|
-
tailwind: "border"
|
|
1341
|
-
},
|
|
1342
|
-
medium: {
|
|
1343
|
-
px: 2,
|
|
1344
|
-
tailwind: "border-2"
|
|
1345
|
-
},
|
|
1346
|
-
thick: {
|
|
1347
|
-
px: 4,
|
|
1348
|
-
tailwind: "border-4"
|
|
1349
|
-
}
|
|
1350
|
-
}[t];
|
|
1351
|
-
return {
|
|
1352
|
-
value: i.px,
|
|
1353
|
-
px: `${i.px}px`,
|
|
1354
|
-
tailwind: i.tailwind
|
|
1355
|
-
};
|
|
1356
|
-
}
|
|
1357
|
-
/**
|
|
1358
|
-
* Create a complete border token
|
|
1359
|
-
*/
|
|
1360
|
-
static create(t, r = "solid") {
|
|
1361
|
-
return {
|
|
1362
|
-
width: this.createWidth(t),
|
|
1363
|
-
style: r,
|
|
1364
|
-
description: `${t} ${r} border`
|
|
1365
|
-
};
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
1368
|
-
const pe = {
|
|
1369
|
-
none: w.create("none"),
|
|
1370
|
-
thin: w.create("thin"),
|
|
1371
|
-
base: w.create("base"),
|
|
1372
|
-
medium: w.create("medium"),
|
|
1373
|
-
thick: w.create("thick"),
|
|
1374
|
-
// Dashed variants
|
|
1375
|
-
thinDashed: w.create("thin", "dashed"),
|
|
1376
|
-
baseDashed: w.create("base", "dashed"),
|
|
1377
|
-
// Dotted variants
|
|
1378
|
-
thinDotted: w.create("thin", "dotted"),
|
|
1379
|
-
baseDotted: w.create("base", "dotted")
|
|
1380
|
-
};
|
|
1381
|
-
function Qe(a) {
|
|
1382
|
-
return pe[a];
|
|
1383
|
-
}
|
|
1384
|
-
function ue(a) {
|
|
1385
|
-
return w.createWidth(a).tailwind;
|
|
1386
|
-
}
|
|
1387
|
-
function be(a) {
|
|
1388
|
-
return {
|
|
1389
|
-
solid: "border-solid",
|
|
1390
|
-
dashed: "border-dashed",
|
|
1391
|
-
dotted: "border-dotted"
|
|
1392
|
-
}[a];
|
|
1393
|
-
}
|
|
1394
|
-
function Je(a, t = "solid") {
|
|
1395
|
-
return `${ue(a)} ${be(t)}`;
|
|
1396
|
-
}
|
|
1397
|
-
class b {
|
|
1398
|
-
/**
|
|
1399
|
-
* Create an animation token
|
|
1400
|
-
*/
|
|
1401
|
-
static create(t, r = "ease-in-out") {
|
|
1402
|
-
const i = {
|
|
1403
|
-
fast: {
|
|
1404
|
-
value: "150ms",
|
|
1405
|
-
ms: 150,
|
|
1406
|
-
tailwind: "duration-150"
|
|
1407
|
-
},
|
|
1408
|
-
base: {
|
|
1409
|
-
value: "200ms",
|
|
1410
|
-
ms: 200,
|
|
1411
|
-
tailwind: "duration-200"
|
|
1412
|
-
},
|
|
1413
|
-
slow: {
|
|
1414
|
-
value: "300ms",
|
|
1415
|
-
ms: 300,
|
|
1416
|
-
tailwind: "duration-300"
|
|
1417
|
-
},
|
|
1418
|
-
slower: {
|
|
1419
|
-
value: "500ms",
|
|
1420
|
-
ms: 500,
|
|
1421
|
-
tailwind: "duration-500"
|
|
1422
|
-
}
|
|
1423
|
-
}, n = {
|
|
1424
|
-
"ease-in": {
|
|
1425
|
-
value: "cubic-bezier(0.4, 0, 1, 1)",
|
|
1426
|
-
tailwind: "ease-in",
|
|
1427
|
-
description: "Slow start, fast end"
|
|
1428
|
-
},
|
|
1429
|
-
"ease-out": {
|
|
1430
|
-
value: "cubic-bezier(0, 0, 0.2, 1)",
|
|
1431
|
-
tailwind: "ease-out",
|
|
1432
|
-
description: "Fast start, slow end"
|
|
1433
|
-
},
|
|
1434
|
-
"ease-in-out": {
|
|
1435
|
-
value: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1436
|
-
tailwind: "ease-in-out",
|
|
1437
|
-
description: "Slow start and end, fast middle"
|
|
1438
|
-
},
|
|
1439
|
-
spring: {
|
|
1440
|
-
value: "cubic-bezier(0.68, -0.55, 0.265, 1.55)",
|
|
1441
|
-
tailwind: "ease-[cubic-bezier(0.68,-0.55,0.265,1.55)]",
|
|
1442
|
-
description: "Spring-like bounce effect"
|
|
1443
|
-
}
|
|
1444
|
-
};
|
|
1445
|
-
return {
|
|
1446
|
-
duration: i[t],
|
|
1447
|
-
easing: n[r]
|
|
1448
|
-
};
|
|
1449
|
-
}
|
|
1450
|
-
/**
|
|
1451
|
-
* Create a transition token
|
|
1452
|
-
*/
|
|
1453
|
-
static createTransition(t, r = "base", i = "ease-in-out") {
|
|
1454
|
-
const n = this.create(r, i), o = Array.isArray(t) ? t.join(", ") : t, s = [
|
|
1455
|
-
n.duration.tailwind,
|
|
1456
|
-
n.easing.tailwind
|
|
1457
|
-
].join(" ");
|
|
1458
|
-
return {
|
|
1459
|
-
property: o,
|
|
1460
|
-
duration: n.duration.value,
|
|
1461
|
-
timingFunction: n.easing.value,
|
|
1462
|
-
tailwind: s
|
|
1463
|
-
};
|
|
1464
|
-
}
|
|
1465
|
-
}
|
|
1466
|
-
const et = {
|
|
1467
|
-
fast: b.create("fast"),
|
|
1468
|
-
base: b.create("base"),
|
|
1469
|
-
slow: b.create("slow"),
|
|
1470
|
-
slower: b.create("slower"),
|
|
1471
|
-
// Common transitions
|
|
1472
|
-
colors: b.createTransition(
|
|
1473
|
-
["color", "background-color", "border-color"],
|
|
1474
|
-
"base"
|
|
1475
|
-
),
|
|
1476
|
-
opacity: b.createTransition("opacity", "fast"),
|
|
1477
|
-
transform: b.createTransition("transform", "base"),
|
|
1478
|
-
all: b.createTransition("all", "base")
|
|
1479
|
-
};
|
|
1480
|
-
function tt(a, t) {
|
|
1481
|
-
return b.create(a, t);
|
|
1482
|
-
}
|
|
1483
|
-
function at(a, t = "ease-in-out") {
|
|
1484
|
-
const r = b.create(a, t);
|
|
1485
|
-
return `${r.duration.tailwind} ${r.easing.tailwind}`;
|
|
1486
|
-
}
|
|
1487
|
-
function rt(a, t = "base", r = "ease-in-out") {
|
|
1488
|
-
return b.createTransition(
|
|
1489
|
-
a,
|
|
1490
|
-
t,
|
|
1491
|
-
r
|
|
1492
|
-
).tailwind;
|
|
1493
|
-
}
|
|
1494
|
-
class u {
|
|
1495
|
-
/**
|
|
1496
|
-
* Create a z-index token
|
|
1497
|
-
*/
|
|
1498
|
-
static create(t) {
|
|
1499
|
-
return {
|
|
1500
|
-
base: {
|
|
1501
|
-
value: 0,
|
|
1502
|
-
tailwind: "z-0",
|
|
1503
|
-
description: "Base layer for normal content"
|
|
1504
|
-
},
|
|
1505
|
-
dropdown: {
|
|
1506
|
-
value: 1e3,
|
|
1507
|
-
tailwind: "z-[1000]",
|
|
1508
|
-
description: "Dropdown menus and select options"
|
|
1509
|
-
},
|
|
1510
|
-
sticky: {
|
|
1511
|
-
value: 1020,
|
|
1512
|
-
tailwind: "z-[1020]",
|
|
1513
|
-
description: "Sticky headers and navigation"
|
|
1514
|
-
},
|
|
1515
|
-
fixed: {
|
|
1516
|
-
value: 1030,
|
|
1517
|
-
tailwind: "z-[1030]",
|
|
1518
|
-
description: "Fixed position elements"
|
|
1519
|
-
},
|
|
1520
|
-
"modal-backdrop": {
|
|
1521
|
-
value: 1040,
|
|
1522
|
-
tailwind: "z-[1040]",
|
|
1523
|
-
description: "Modal backdrop/overlay"
|
|
1524
|
-
},
|
|
1525
|
-
modal: {
|
|
1526
|
-
value: 1050,
|
|
1527
|
-
tailwind: "z-[1050]",
|
|
1528
|
-
description: "Modal dialogs and drawers"
|
|
1529
|
-
},
|
|
1530
|
-
popover: {
|
|
1531
|
-
value: 1060,
|
|
1532
|
-
tailwind: "z-[1060]",
|
|
1533
|
-
description: "Popovers and tooltips"
|
|
1534
|
-
},
|
|
1535
|
-
tooltip: {
|
|
1536
|
-
value: 1070,
|
|
1537
|
-
tailwind: "z-[1070]",
|
|
1538
|
-
description: "Tooltips (highest priority)"
|
|
1539
|
-
},
|
|
1540
|
-
toast: {
|
|
1541
|
-
value: 1080,
|
|
1542
|
-
tailwind: "z-[1080]",
|
|
1543
|
-
description: "Toast notifications (highest priority)"
|
|
1544
|
-
}
|
|
1545
|
-
}[t];
|
|
1546
|
-
}
|
|
1547
|
-
}
|
|
1548
|
-
const it = {
|
|
1549
|
-
base: u.create("base"),
|
|
1550
|
-
dropdown: u.create("dropdown"),
|
|
1551
|
-
sticky: u.create("sticky"),
|
|
1552
|
-
fixed: u.create("fixed"),
|
|
1553
|
-
"modal-backdrop": u.create("modal-backdrop"),
|
|
1554
|
-
modal: u.create("modal"),
|
|
1555
|
-
popover: u.create("popover"),
|
|
1556
|
-
tooltip: u.create("tooltip"),
|
|
1557
|
-
toast: u.create("toast")
|
|
1558
|
-
};
|
|
1559
|
-
function nt(a) {
|
|
1560
|
-
return u.create(a);
|
|
1561
|
-
}
|
|
1562
|
-
function ot(a) {
|
|
1563
|
-
return u.create(a).tailwind;
|
|
1564
|
-
}
|
|
1565
|
-
class f {
|
|
1566
|
-
/**
|
|
1567
|
-
* Create an opacity token
|
|
1568
|
-
*/
|
|
1569
|
-
static create(t) {
|
|
1570
|
-
const r = t / 100, i = {
|
|
1571
|
-
0: "Fully transparent",
|
|
1572
|
-
5: "Very light overlay",
|
|
1573
|
-
10: "Light overlay",
|
|
1574
|
-
20: "Subtle overlay",
|
|
1575
|
-
25: "Quarter opacity",
|
|
1576
|
-
30: "Light background",
|
|
1577
|
-
40: "Semi-transparent",
|
|
1578
|
-
50: "Half opacity",
|
|
1579
|
-
60: "Semi-opaque",
|
|
1580
|
-
70: "Mostly opaque",
|
|
1581
|
-
75: "Three-quarter opacity",
|
|
1582
|
-
80: "High opacity",
|
|
1583
|
-
90: "Very high opacity",
|
|
1584
|
-
95: "Nearly opaque",
|
|
1585
|
-
100: "Fully opaque"
|
|
1586
|
-
};
|
|
1587
|
-
return {
|
|
1588
|
-
value: t,
|
|
1589
|
-
decimal: r,
|
|
1590
|
-
tailwind: {
|
|
1591
|
-
0: "opacity-0",
|
|
1592
|
-
5: "opacity-5",
|
|
1593
|
-
10: "opacity-10",
|
|
1594
|
-
20: "opacity-20",
|
|
1595
|
-
25: "opacity-25",
|
|
1596
|
-
30: "opacity-30",
|
|
1597
|
-
40: "opacity-40",
|
|
1598
|
-
50: "opacity-50",
|
|
1599
|
-
60: "opacity-60",
|
|
1600
|
-
70: "opacity-70",
|
|
1601
|
-
75: "opacity-75",
|
|
1602
|
-
80: "opacity-80",
|
|
1603
|
-
90: "opacity-90",
|
|
1604
|
-
95: "opacity-95",
|
|
1605
|
-
100: "opacity-100"
|
|
1606
|
-
}[t],
|
|
1607
|
-
description: i[t]
|
|
1608
|
-
};
|
|
1609
|
-
}
|
|
1610
|
-
}
|
|
1611
|
-
const st = {
|
|
1612
|
-
transparent: f.create(0),
|
|
1613
|
-
5: f.create(5),
|
|
1614
|
-
10: f.create(10),
|
|
1615
|
-
20: f.create(20),
|
|
1616
|
-
25: f.create(25),
|
|
1617
|
-
30: f.create(30),
|
|
1618
|
-
40: f.create(40),
|
|
1619
|
-
50: f.create(50),
|
|
1620
|
-
60: f.create(60),
|
|
1621
|
-
70: f.create(70),
|
|
1622
|
-
75: f.create(75),
|
|
1623
|
-
80: f.create(80),
|
|
1624
|
-
90: f.create(90),
|
|
1625
|
-
95: f.create(95),
|
|
1626
|
-
opaque: f.create(100)
|
|
1627
|
-
};
|
|
1628
|
-
function ct(a) {
|
|
1629
|
-
return f.create(a);
|
|
1630
|
-
}
|
|
1631
|
-
function lt(a) {
|
|
1632
|
-
return f.create(a).tailwind;
|
|
1633
|
-
}
|
|
1634
|
-
class h {
|
|
1635
|
-
/**
|
|
1636
|
-
* Create a gradient token
|
|
1637
|
-
*/
|
|
1638
|
-
static create(t, r = "to-r") {
|
|
1639
|
-
const n = {
|
|
1640
|
-
primary: {
|
|
1641
|
-
from: g.primary.light.hex,
|
|
1642
|
-
via: g.primary.DEFAULT.hex,
|
|
1643
|
-
to: g.primary.dark.hex,
|
|
1644
|
-
description: "Primary color gradient"
|
|
1645
|
-
},
|
|
1646
|
-
secondary: {
|
|
1647
|
-
from: g.secondary.light.hex,
|
|
1648
|
-
via: g.secondary.DEFAULT.hex,
|
|
1649
|
-
to: g.secondary.dark.hex,
|
|
1650
|
-
description: "Secondary color gradient"
|
|
1651
|
-
},
|
|
1652
|
-
success: {
|
|
1653
|
-
from: g.success.light.hex,
|
|
1654
|
-
to: g.success.dark.hex,
|
|
1655
|
-
description: "Success color gradient"
|
|
1656
|
-
},
|
|
1657
|
-
error: {
|
|
1658
|
-
from: g.error.light.hex,
|
|
1659
|
-
to: g.error.dark.hex,
|
|
1660
|
-
description: "Error color gradient"
|
|
1661
|
-
},
|
|
1662
|
-
info: {
|
|
1663
|
-
from: g.info.light.hex,
|
|
1664
|
-
to: g.info.dark.hex,
|
|
1665
|
-
description: "Info color gradient"
|
|
1666
|
-
},
|
|
1667
|
-
warning: {
|
|
1668
|
-
from: g.warning.light.hex,
|
|
1669
|
-
to: g.warning.dark.hex,
|
|
1670
|
-
description: "Warning color gradient"
|
|
1671
|
-
}
|
|
1672
|
-
}[t];
|
|
1673
|
-
let s = `linear-gradient(${{
|
|
1674
|
-
"to-r": "to right",
|
|
1675
|
-
"to-l": "to left",
|
|
1676
|
-
"to-t": "to top",
|
|
1677
|
-
"to-b": "to bottom",
|
|
1678
|
-
"to-tr": "to top right",
|
|
1679
|
-
"to-tl": "to top left",
|
|
1680
|
-
"to-br": "to bottom right",
|
|
1681
|
-
"to-bl": "to bottom left"
|
|
1682
|
-
}[r]}, ${n.from}`;
|
|
1683
|
-
n.via && (s += `, ${n.via}`), s += `, ${n.to})`;
|
|
1684
|
-
const c = [];
|
|
1685
|
-
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}]`), {
|
|
1686
|
-
value: s,
|
|
1687
|
-
tailwind: c.join(" "),
|
|
1688
|
-
description: n.description,
|
|
1689
|
-
from: n.from,
|
|
1690
|
-
via: n.via,
|
|
1691
|
-
to: n.to
|
|
1692
|
-
};
|
|
1693
|
-
}
|
|
1694
|
-
/**
|
|
1695
|
-
* Convert hex color to approximate Tailwind color class
|
|
1696
|
-
* This is a helper for documentation, actual implementation uses arbitrary values
|
|
1697
|
-
* @deprecated Not currently used, kept for potential future use
|
|
1698
|
-
*/
|
|
1699
|
-
// @ts-expect-error - Method kept for potential future use
|
|
1700
|
-
static hexToTailwindColor(t) {
|
|
1701
|
-
return t;
|
|
1702
|
-
}
|
|
1703
|
-
}
|
|
1704
|
-
const dt = {
|
|
1705
|
-
primary: h.create("primary"),
|
|
1706
|
-
secondary: h.create("secondary"),
|
|
1707
|
-
success: h.create("success"),
|
|
1708
|
-
error: h.create("error"),
|
|
1709
|
-
info: h.create("info"),
|
|
1710
|
-
warning: h.create("warning"),
|
|
1711
|
-
// Common directions
|
|
1712
|
-
"primary-to-r": h.create("primary", "to-r"),
|
|
1713
|
-
"primary-to-b": h.create("primary", "to-b"),
|
|
1714
|
-
"secondary-to-r": h.create("secondary", "to-r"),
|
|
1715
|
-
"success-to-r": h.create("success", "to-r"),
|
|
1716
|
-
"error-to-r": h.create("error", "to-r")
|
|
1717
|
-
};
|
|
1718
|
-
function ft(a, t) {
|
|
1719
|
-
return h.create(a, t);
|
|
1720
|
-
}
|
|
1721
|
-
function gt(a, t = "to-r") {
|
|
1722
|
-
return h.create(a, t).tailwind;
|
|
1723
|
-
}
|
|
1724
|
-
class j {
|
|
1725
|
-
constructor(t = "light") {
|
|
1726
|
-
D(this, "colorFactory");
|
|
1727
|
-
const r = t === "light" ? new U() : new P();
|
|
1728
|
-
this.colorFactory = new z(r);
|
|
1729
|
-
}
|
|
1730
|
-
/**
|
|
1731
|
-
* Create spacing token
|
|
1732
|
-
*/
|
|
1733
|
-
createSpacing(t) {
|
|
1734
|
-
return d.create(t);
|
|
1735
|
-
}
|
|
1736
|
-
/**
|
|
1737
|
-
* Create typography token
|
|
1738
|
-
*/
|
|
1739
|
-
createTypography(t, r, i) {
|
|
1740
|
-
return l.create(t, r, i);
|
|
1741
|
-
}
|
|
1742
|
-
/**
|
|
1743
|
-
* Create color palette
|
|
1744
|
-
*/
|
|
1745
|
-
createColorPalette() {
|
|
1746
|
-
return this.colorFactory.generatePalette();
|
|
1747
|
-
}
|
|
1748
|
-
/**
|
|
1749
|
-
* Create breakpoint token
|
|
1750
|
-
*/
|
|
1751
|
-
createBreakpoint(t) {
|
|
1752
|
-
return I.create(t);
|
|
1753
|
-
}
|
|
1754
|
-
/**
|
|
1755
|
-
* Create shadow token
|
|
1756
|
-
*/
|
|
1757
|
-
createShadow(t) {
|
|
1758
|
-
return y.create(t);
|
|
1759
|
-
}
|
|
1760
|
-
/**
|
|
1761
|
-
* Create radius token
|
|
1762
|
-
*/
|
|
1763
|
-
createRadius(t) {
|
|
1764
|
-
return m.create(t);
|
|
1765
|
-
}
|
|
1766
|
-
/**
|
|
1767
|
-
* Create border token
|
|
1768
|
-
*/
|
|
1769
|
-
createBorder(t) {
|
|
1770
|
-
return w.create(t);
|
|
1771
|
-
}
|
|
1772
|
-
/**
|
|
1773
|
-
* Create animation token
|
|
1774
|
-
*/
|
|
1775
|
-
createAnimation(t, r) {
|
|
1776
|
-
return b.create(t, r);
|
|
1777
|
-
}
|
|
1778
|
-
/**
|
|
1779
|
-
* Create z-index token
|
|
1780
|
-
*/
|
|
1781
|
-
createZIndex(t) {
|
|
1782
|
-
return u.create(t);
|
|
1783
|
-
}
|
|
1784
|
-
/**
|
|
1785
|
-
* Create opacity token
|
|
1786
|
-
*/
|
|
1787
|
-
createOpacity(t) {
|
|
1788
|
-
return f.create(t);
|
|
1789
|
-
}
|
|
1790
|
-
/**
|
|
1791
|
-
* Create gradient token
|
|
1792
|
-
*/
|
|
1793
|
-
createGradient(t, r) {
|
|
1794
|
-
return h.create(t, r);
|
|
1795
|
-
}
|
|
1796
|
-
/**
|
|
1797
|
-
* Create complete token set for a theme
|
|
1798
|
-
*/
|
|
1799
|
-
createTokenSet() {
|
|
1800
|
-
return {
|
|
1801
|
-
spacing: {
|
|
1802
|
-
xs: this.createSpacing(1),
|
|
1803
|
-
sm: this.createSpacing(2),
|
|
1804
|
-
md: this.createSpacing(3),
|
|
1805
|
-
base: this.createSpacing(4),
|
|
1806
|
-
lg: this.createSpacing(6),
|
|
1807
|
-
xl: this.createSpacing(8),
|
|
1808
|
-
"2xl": this.createSpacing(10),
|
|
1809
|
-
"3xl": this.createSpacing(12),
|
|
1810
|
-
"4xl": this.createSpacing(16)
|
|
1811
|
-
},
|
|
1812
|
-
typography: {
|
|
1813
|
-
h1: this.createTypography("4xl", "tight", "bold"),
|
|
1814
|
-
h2: this.createTypography("3xl", "tight", "bold"),
|
|
1815
|
-
h3: this.createTypography("2xl", "snug", "semibold"),
|
|
1816
|
-
body: this.createTypography("base", "relaxed", "normal"),
|
|
1817
|
-
label: this.createTypography("sm", "normal", "medium"),
|
|
1818
|
-
caption: this.createTypography("xs", "normal", "normal")
|
|
1819
|
-
},
|
|
1820
|
-
colors: this.createColorPalette(),
|
|
1821
|
-
breakpoints: {
|
|
1822
|
-
sm: this.createBreakpoint("sm"),
|
|
1823
|
-
md: this.createBreakpoint("md"),
|
|
1824
|
-
lg: this.createBreakpoint("lg"),
|
|
1825
|
-
xl: this.createBreakpoint("xl"),
|
|
1826
|
-
"2xl": this.createBreakpoint("2xl")
|
|
1827
|
-
},
|
|
1828
|
-
shadows: {
|
|
1829
|
-
none: this.createShadow("none"),
|
|
1830
|
-
sm: this.createShadow("sm"),
|
|
1831
|
-
md: this.createShadow("md"),
|
|
1832
|
-
lg: this.createShadow("lg"),
|
|
1833
|
-
xl: this.createShadow("xl"),
|
|
1834
|
-
"2xl": this.createShadow("2xl"),
|
|
1835
|
-
inner: this.createShadow("inner")
|
|
1836
|
-
},
|
|
1837
|
-
radius: {
|
|
1838
|
-
none: this.createRadius("none"),
|
|
1839
|
-
sm: this.createRadius("sm"),
|
|
1840
|
-
md: this.createRadius("md"),
|
|
1841
|
-
lg: this.createRadius("lg"),
|
|
1842
|
-
xl: this.createRadius("xl"),
|
|
1843
|
-
"2xl": this.createRadius("2xl"),
|
|
1844
|
-
"3xl": this.createRadius("3xl"),
|
|
1845
|
-
full: this.createRadius("full")
|
|
1846
|
-
},
|
|
1847
|
-
borders: {
|
|
1848
|
-
none: this.createBorder("none"),
|
|
1849
|
-
thin: this.createBorder("thin"),
|
|
1850
|
-
base: this.createBorder("base"),
|
|
1851
|
-
medium: this.createBorder("medium"),
|
|
1852
|
-
thick: this.createBorder("thick")
|
|
1853
|
-
},
|
|
1854
|
-
animations: {
|
|
1855
|
-
fast: this.createAnimation("fast"),
|
|
1856
|
-
base: this.createAnimation("base"),
|
|
1857
|
-
slow: this.createAnimation("slow"),
|
|
1858
|
-
slower: this.createAnimation("slower")
|
|
1859
|
-
},
|
|
1860
|
-
zIndex: {
|
|
1861
|
-
base: this.createZIndex("base"),
|
|
1862
|
-
dropdown: this.createZIndex("dropdown"),
|
|
1863
|
-
sticky: this.createZIndex("sticky"),
|
|
1864
|
-
fixed: this.createZIndex("fixed"),
|
|
1865
|
-
"modal-backdrop": this.createZIndex("modal-backdrop"),
|
|
1866
|
-
modal: this.createZIndex("modal"),
|
|
1867
|
-
popover: this.createZIndex("popover"),
|
|
1868
|
-
tooltip: this.createZIndex("tooltip"),
|
|
1869
|
-
toast: this.createZIndex("toast")
|
|
1870
|
-
},
|
|
1871
|
-
opacity: {
|
|
1872
|
-
transparent: this.createOpacity(0),
|
|
1873
|
-
5: this.createOpacity(5),
|
|
1874
|
-
10: this.createOpacity(10),
|
|
1875
|
-
25: this.createOpacity(25),
|
|
1876
|
-
50: this.createOpacity(50),
|
|
1877
|
-
75: this.createOpacity(75),
|
|
1878
|
-
90: this.createOpacity(90),
|
|
1879
|
-
opaque: this.createOpacity(100)
|
|
1880
|
-
},
|
|
1881
|
-
gradients: {
|
|
1882
|
-
primary: this.createGradient("primary"),
|
|
1883
|
-
secondary: this.createGradient("secondary"),
|
|
1884
|
-
success: this.createGradient("success"),
|
|
1885
|
-
error: this.createGradient("error"),
|
|
1886
|
-
info: this.createGradient("info"),
|
|
1887
|
-
warning: this.createGradient("warning")
|
|
1888
|
-
}
|
|
1889
|
-
};
|
|
1890
|
-
}
|
|
1891
|
-
/**
|
|
1892
|
-
* Switch theme
|
|
1893
|
-
*/
|
|
1894
|
-
setTheme(t) {
|
|
1895
|
-
const r = t === "light" ? new U() : new P();
|
|
1896
|
-
this.colorFactory.setStrategy(r);
|
|
1897
|
-
}
|
|
1898
|
-
}
|
|
1899
|
-
const ht = new j("light");
|
|
1900
|
-
function pt(a = "light") {
|
|
1901
|
-
return new j(a).createTokenSet();
|
|
1902
|
-
}
|
|
1903
|
-
const ut = {
|
|
1904
|
-
colors: g,
|
|
1905
|
-
spacing: W,
|
|
1906
|
-
typography: L,
|
|
1907
|
-
breakpoints: _,
|
|
1908
|
-
mode: "light"
|
|
1909
|
-
}, bt = {
|
|
1910
|
-
colors: he,
|
|
1911
|
-
spacing: W,
|
|
1912
|
-
typography: L,
|
|
1913
|
-
breakpoints: _,
|
|
1914
|
-
mode: "dark"
|
|
1915
|
-
}, C = {
|
|
1916
|
-
/**
|
|
1917
|
-
* Track (the rounded background bar).
|
|
1918
|
-
* w * h:
|
|
1919
|
-
* sm — 36 × 20 px
|
|
1920
|
-
* md — 44 × 24 px
|
|
1921
|
-
* lg — 56 × 28 px
|
|
1922
|
-
*/
|
|
1923
|
-
track: {
|
|
1924
|
-
sm: { w: "w-9", h: "h-5" },
|
|
1925
|
-
md: { w: "w-11", h: "h-6" },
|
|
1926
|
-
lg: { w: "w-14", h: "h-7" }
|
|
1927
|
-
},
|
|
1928
|
-
/**
|
|
1929
|
-
* Thumb (the circular knob).
|
|
1930
|
-
* w * h:
|
|
1931
|
-
* sm — 16 × 16 px
|
|
1932
|
-
* md — 20 × 20 px
|
|
1933
|
-
* lg — 24 × 24 px
|
|
1934
|
-
*/
|
|
1935
|
-
thumb: {
|
|
1936
|
-
sm: { w: "w-4", h: "h-4" },
|
|
1937
|
-
md: { w: "w-5", h: "h-5" },
|
|
1938
|
-
lg: { w: "w-6", h: "h-6" }
|
|
1939
|
-
},
|
|
1940
|
-
/**
|
|
1941
|
-
* Translation distance of the thumb when the switch is on. Matches the
|
|
1942
|
-
* track width minus the thumb width and border for visual symmetry.
|
|
1943
|
-
* sm — 16 px
|
|
1944
|
-
* md — 20 px
|
|
1945
|
-
* lg — 28 px
|
|
1946
|
-
*/
|
|
1947
|
-
translate: {
|
|
1948
|
-
sm: "translate-x-4",
|
|
1949
|
-
md: "translate-x-5",
|
|
1950
|
-
lg: "translate-x-7"
|
|
1951
|
-
}
|
|
1952
|
-
};
|
|
1953
|
-
function wt(a) {
|
|
1954
|
-
return {
|
|
1955
|
-
track: `${C.track[a].w} ${C.track[a].h}`,
|
|
1956
|
-
thumb: `${C.thumb[a].w} ${C.thumb[a].h}`,
|
|
1957
|
-
translate: C.translate[a]
|
|
1958
|
-
};
|
|
1959
|
-
}
|
|
1960
|
-
export {
|
|
1961
|
-
A as $,
|
|
1962
|
-
et as A,
|
|
1963
|
-
_ as B,
|
|
1964
|
-
gt as C,
|
|
1965
|
-
ft as D,
|
|
1966
|
-
xe as E,
|
|
1967
|
-
d as F,
|
|
1968
|
-
l as G,
|
|
1969
|
-
ke as H,
|
|
1970
|
-
Te as I,
|
|
1971
|
-
Le as J,
|
|
1972
|
-
Ge as K,
|
|
1973
|
-
Ie as L,
|
|
1974
|
-
k as M,
|
|
1975
|
-
v as N,
|
|
1976
|
-
S as O,
|
|
1977
|
-
te as P,
|
|
1978
|
-
E as Q,
|
|
1979
|
-
ae as R,
|
|
1980
|
-
R as S,
|
|
1981
|
-
L as T,
|
|
1982
|
-
F as U,
|
|
1983
|
-
T as V,
|
|
1984
|
-
ie as W,
|
|
1985
|
-
$ as X,
|
|
1986
|
-
re as Y,
|
|
1987
|
-
it as Z,
|
|
1988
|
-
ne as _,
|
|
1989
|
-
Xe as a,
|
|
1990
|
-
oe as a0,
|
|
1991
|
-
se as a1,
|
|
1992
|
-
ce as a2,
|
|
1993
|
-
le as a3,
|
|
1994
|
-
de as a4,
|
|
1995
|
-
fe as a5,
|
|
1996
|
-
K as a6,
|
|
1997
|
-
O as a7,
|
|
1998
|
-
Ce as a8,
|
|
1999
|
-
Oe as a9,
|
|
2000
|
-
Je as aA,
|
|
2001
|
-
st as aB,
|
|
2002
|
-
dt as aC,
|
|
2003
|
-
C as aD,
|
|
2004
|
-
y as aE,
|
|
2005
|
-
m as aF,
|
|
2006
|
-
w as aG,
|
|
2007
|
-
b as aH,
|
|
2008
|
-
u as aI,
|
|
2009
|
-
f as aJ,
|
|
2010
|
-
h as aK,
|
|
2011
|
-
N as aa,
|
|
2012
|
-
Me as ab,
|
|
2013
|
-
Re as ac,
|
|
2014
|
-
Ue as ad,
|
|
2015
|
-
We as ae,
|
|
2016
|
-
_e as af,
|
|
2017
|
-
Be as ag,
|
|
2018
|
-
Pe as ah,
|
|
2019
|
-
ge as ai,
|
|
2020
|
-
ze as aj,
|
|
2021
|
-
H as ak,
|
|
2022
|
-
Ve as al,
|
|
2023
|
-
Ke as am,
|
|
2024
|
-
I as an,
|
|
2025
|
-
j as ao,
|
|
2026
|
-
ht as ap,
|
|
2027
|
-
pt as aq,
|
|
2028
|
-
ut as ar,
|
|
2029
|
-
bt as as,
|
|
2030
|
-
Y as at,
|
|
2031
|
-
Ye as au,
|
|
2032
|
-
q as av,
|
|
2033
|
-
je as aw,
|
|
2034
|
-
pe as ax,
|
|
2035
|
-
Qe as ay,
|
|
2036
|
-
be as az,
|
|
2037
|
-
Fe as b,
|
|
2038
|
-
Ae as c,
|
|
2039
|
-
Ee as d,
|
|
2040
|
-
$e as e,
|
|
2041
|
-
qe as f,
|
|
2042
|
-
ye as g,
|
|
2043
|
-
ot as h,
|
|
2044
|
-
at as i,
|
|
2045
|
-
Se as j,
|
|
2046
|
-
ue as k,
|
|
2047
|
-
wt as l,
|
|
2048
|
-
V as m,
|
|
2049
|
-
G as n,
|
|
2050
|
-
W as o,
|
|
2051
|
-
me as p,
|
|
2052
|
-
ve as q,
|
|
2053
|
-
Ne as r,
|
|
2054
|
-
De as s,
|
|
2055
|
-
He as t,
|
|
2056
|
-
Ze as u,
|
|
2057
|
-
tt as v,
|
|
2058
|
-
rt as w,
|
|
2059
|
-
nt as x,
|
|
2060
|
-
lt as y,
|
|
2061
|
-
ct as z
|
|
2062
|
-
};
|
|
2063
|
-
//# sourceMappingURL=tokens-BCpPv8tI.js.map
|