@enterprise-ui-react/react 1.0.6
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/LICENSE +21 -0
- package/README.md +299 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/chunk-65BLOLLD.cjs +684 -0
- package/dist/chunk-EMI46XY6.js +669 -0
- package/dist/index.cjs +2331 -0
- package/dist/index.d.cts +586 -0
- package/dist/index.d.ts +586 -0
- package/dist/index.js +2112 -0
- package/dist/styles.css +1 -0
- package/dist/tokens/index.cjs +62 -0
- package/dist/tokens/index.d.cts +725 -0
- package/dist/tokens/index.d.ts +725 -0
- package/dist/tokens/index.js +1 -0
- package/figma-gradients.json +76 -0
- package/figma-tokens.json +89 -0
- package/figma-typography.json +39 -0
- package/package.json +133 -0
- package/src/styles/variables.css +272 -0
- package/src/styles/variables.scss +271 -0
|
@@ -0,0 +1,669 @@
|
|
|
1
|
+
// src/tokens/colors.ts
|
|
2
|
+
var colors = {
|
|
3
|
+
// Light Theme - Neutral Base + Blue Accent (Gold Standard)
|
|
4
|
+
light: {
|
|
5
|
+
background: {
|
|
6
|
+
DEFAULT: "#F8FAFC",
|
|
7
|
+
surface: "#FFFFFF",
|
|
8
|
+
elevated: "#FFFFFF",
|
|
9
|
+
overlay: "rgba(15, 23, 42, 0.5)",
|
|
10
|
+
hover: "#F1F5F9",
|
|
11
|
+
active: "#E2E8F0"
|
|
12
|
+
},
|
|
13
|
+
border: {
|
|
14
|
+
DEFAULT: "#E2E8F0",
|
|
15
|
+
strong: "#CBD5E1",
|
|
16
|
+
subtle: "#F1F5F9",
|
|
17
|
+
focus: "#93C5FD"
|
|
18
|
+
},
|
|
19
|
+
text: {
|
|
20
|
+
primary: "#0F172A",
|
|
21
|
+
secondary: "#475569",
|
|
22
|
+
tertiary: "#64748B",
|
|
23
|
+
disabled: "#94A3B8",
|
|
24
|
+
inverse: "#FFFFFF",
|
|
25
|
+
link: "#2563EB",
|
|
26
|
+
linkHover: "#1D4ED8"
|
|
27
|
+
},
|
|
28
|
+
primary: {
|
|
29
|
+
DEFAULT: "#2563EB",
|
|
30
|
+
hover: "#1D4ED8",
|
|
31
|
+
active: "#1E40AF",
|
|
32
|
+
disabled: "#93C5FD",
|
|
33
|
+
text: "#FFFFFF",
|
|
34
|
+
light: "#DBEAFE",
|
|
35
|
+
lighter: "#EFF6FF",
|
|
36
|
+
dark: "#1E3A8A"
|
|
37
|
+
},
|
|
38
|
+
// Semantic colors (desaturated for enterprise)
|
|
39
|
+
success: {
|
|
40
|
+
DEFAULT: "#10B981",
|
|
41
|
+
hover: "#059669",
|
|
42
|
+
active: "#047857",
|
|
43
|
+
disabled: "#86EFAC",
|
|
44
|
+
text: "#FFFFFF",
|
|
45
|
+
light: "#D1FAE5",
|
|
46
|
+
lighter: "#ECFDF5",
|
|
47
|
+
dark: "#065F46"
|
|
48
|
+
},
|
|
49
|
+
warning: {
|
|
50
|
+
DEFAULT: "#F59E0B",
|
|
51
|
+
hover: "#D97706",
|
|
52
|
+
active: "#B45309",
|
|
53
|
+
disabled: "#FCD34D",
|
|
54
|
+
text: "#FFFFFF",
|
|
55
|
+
light: "#FEF3C7",
|
|
56
|
+
lighter: "#FFFBEB",
|
|
57
|
+
dark: "#92400E"
|
|
58
|
+
},
|
|
59
|
+
error: {
|
|
60
|
+
DEFAULT: "#EF4444",
|
|
61
|
+
hover: "#DC2626",
|
|
62
|
+
active: "#B91C1C",
|
|
63
|
+
disabled: "#FCA5A5",
|
|
64
|
+
text: "#FFFFFF",
|
|
65
|
+
light: "#FEE2E2",
|
|
66
|
+
lighter: "#FEF2F2",
|
|
67
|
+
dark: "#991B1B"
|
|
68
|
+
},
|
|
69
|
+
info: {
|
|
70
|
+
DEFAULT: "#3B82F6",
|
|
71
|
+
hover: "#2563EB",
|
|
72
|
+
active: "#1D4ED8",
|
|
73
|
+
disabled: "#93C5FD",
|
|
74
|
+
text: "#FFFFFF",
|
|
75
|
+
light: "#DBEAFE",
|
|
76
|
+
lighter: "#EFF6FF",
|
|
77
|
+
dark: "#1E40AF"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
// Dark Theme - Modern Enterprise
|
|
81
|
+
dark: {
|
|
82
|
+
background: {
|
|
83
|
+
DEFAULT: "#0B1220",
|
|
84
|
+
surface: "#111827",
|
|
85
|
+
elevated: "#1F2937",
|
|
86
|
+
overlay: "rgba(0, 0, 0, 0.7)",
|
|
87
|
+
hover: "#1F2937",
|
|
88
|
+
active: "#374151"
|
|
89
|
+
},
|
|
90
|
+
border: {
|
|
91
|
+
DEFAULT: "#374151",
|
|
92
|
+
strong: "#4B5563",
|
|
93
|
+
subtle: "#1F2937",
|
|
94
|
+
focus: "#60A5FA"
|
|
95
|
+
},
|
|
96
|
+
text: {
|
|
97
|
+
primary: "#E5E7EB",
|
|
98
|
+
secondary: "#9CA3AF",
|
|
99
|
+
tertiary: "#6B7280",
|
|
100
|
+
disabled: "#4B5563",
|
|
101
|
+
inverse: "#0F172A",
|
|
102
|
+
link: "#60A5FA",
|
|
103
|
+
linkHover: "#93C5FD"
|
|
104
|
+
},
|
|
105
|
+
primary: {
|
|
106
|
+
DEFAULT: "#3B82F6",
|
|
107
|
+
hover: "#60A5FA",
|
|
108
|
+
active: "#93C5FD",
|
|
109
|
+
disabled: "#1E40AF",
|
|
110
|
+
text: "#FFFFFF",
|
|
111
|
+
light: "#1E3A8A",
|
|
112
|
+
lighter: "#1E40AF",
|
|
113
|
+
dark: "#DBEAFE"
|
|
114
|
+
},
|
|
115
|
+
success: {
|
|
116
|
+
DEFAULT: "#10B981",
|
|
117
|
+
hover: "#34D399",
|
|
118
|
+
active: "#6EE7B7",
|
|
119
|
+
disabled: "#065F46",
|
|
120
|
+
text: "#FFFFFF",
|
|
121
|
+
light: "#064E3B",
|
|
122
|
+
lighter: "#065F46",
|
|
123
|
+
dark: "#D1FAE5"
|
|
124
|
+
},
|
|
125
|
+
warning: {
|
|
126
|
+
DEFAULT: "#F59E0B",
|
|
127
|
+
hover: "#FBBF24",
|
|
128
|
+
active: "#FCD34D",
|
|
129
|
+
disabled: "#92400E",
|
|
130
|
+
text: "#FFFFFF",
|
|
131
|
+
light: "#78350F",
|
|
132
|
+
lighter: "#92400E",
|
|
133
|
+
dark: "#FEF3C7"
|
|
134
|
+
},
|
|
135
|
+
error: {
|
|
136
|
+
DEFAULT: "#EF4444",
|
|
137
|
+
hover: "#F87171",
|
|
138
|
+
active: "#FCA5A5",
|
|
139
|
+
disabled: "#991B1B",
|
|
140
|
+
text: "#FFFFFF",
|
|
141
|
+
light: "#7F1D1D",
|
|
142
|
+
lighter: "#991B1B",
|
|
143
|
+
dark: "#FEE2E2"
|
|
144
|
+
},
|
|
145
|
+
info: {
|
|
146
|
+
DEFAULT: "#3B82F6",
|
|
147
|
+
hover: "#60A5FA",
|
|
148
|
+
active: "#93C5FD",
|
|
149
|
+
disabled: "#1E40AF",
|
|
150
|
+
text: "#FFFFFF",
|
|
151
|
+
light: "#1E3A8A",
|
|
152
|
+
lighter: "#1E40AF",
|
|
153
|
+
dark: "#DBEAFE"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
// Alternative: Teal (Professional but Fresh)
|
|
157
|
+
tealVariant: {
|
|
158
|
+
primary: {
|
|
159
|
+
DEFAULT: "#0F766E",
|
|
160
|
+
hover: "#0D9488",
|
|
161
|
+
active: "#14B8A6",
|
|
162
|
+
light: "#CCFBF1",
|
|
163
|
+
dark: "#134E4A"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
// src/tokens/typography.ts
|
|
169
|
+
var typography = {
|
|
170
|
+
fontFamily: {
|
|
171
|
+
sans: [
|
|
172
|
+
"Inter",
|
|
173
|
+
"-apple-system",
|
|
174
|
+
"BlinkMacSystemFont",
|
|
175
|
+
"Segoe UI",
|
|
176
|
+
"Roboto",
|
|
177
|
+
"Helvetica Neue",
|
|
178
|
+
"Arial",
|
|
179
|
+
"sans-serif"
|
|
180
|
+
].join(", "),
|
|
181
|
+
mono: [
|
|
182
|
+
"JetBrains Mono",
|
|
183
|
+
"SF Mono",
|
|
184
|
+
"Monaco",
|
|
185
|
+
"Inconsolata",
|
|
186
|
+
"Fira Code",
|
|
187
|
+
"Consolas",
|
|
188
|
+
"monospace"
|
|
189
|
+
].join(", ")
|
|
190
|
+
},
|
|
191
|
+
fontSize: {
|
|
192
|
+
xs: { size: "0.75rem", lineHeight: "1rem" },
|
|
193
|
+
// 12px
|
|
194
|
+
sm: { size: "0.875rem", lineHeight: "1.25rem" },
|
|
195
|
+
// 14px
|
|
196
|
+
base: { size: "1rem", lineHeight: "1.5rem" },
|
|
197
|
+
// 16px
|
|
198
|
+
lg: { size: "1.125rem", lineHeight: "1.75rem" },
|
|
199
|
+
// 18px
|
|
200
|
+
xl: { size: "1.25rem", lineHeight: "1.75rem" },
|
|
201
|
+
// 20px
|
|
202
|
+
"2xl": { size: "1.5rem", lineHeight: "2rem" },
|
|
203
|
+
// 24px
|
|
204
|
+
"3xl": { size: "1.875rem", lineHeight: "2.25rem" },
|
|
205
|
+
// 30px
|
|
206
|
+
"4xl": { size: "2.25rem", lineHeight: "2.5rem" },
|
|
207
|
+
// 36px
|
|
208
|
+
"5xl": { size: "3rem", lineHeight: "1.2" },
|
|
209
|
+
// 48px
|
|
210
|
+
"6xl": { size: "3.75rem", lineHeight: "1.1" }
|
|
211
|
+
// 60px
|
|
212
|
+
},
|
|
213
|
+
fontWeight: {
|
|
214
|
+
normal: 400,
|
|
215
|
+
medium: 500,
|
|
216
|
+
semibold: 600,
|
|
217
|
+
bold: 700
|
|
218
|
+
},
|
|
219
|
+
letterSpacing: {
|
|
220
|
+
tight: "-0.025em",
|
|
221
|
+
normal: "0",
|
|
222
|
+
wide: "0.025em"
|
|
223
|
+
},
|
|
224
|
+
// Predefined text styles for common UI patterns
|
|
225
|
+
textStyles: {
|
|
226
|
+
// Headings
|
|
227
|
+
h1: {
|
|
228
|
+
fontSize: "3rem",
|
|
229
|
+
lineHeight: "1.2",
|
|
230
|
+
fontWeight: 700,
|
|
231
|
+
letterSpacing: "-0.025em"
|
|
232
|
+
},
|
|
233
|
+
h2: {
|
|
234
|
+
fontSize: "2.25rem",
|
|
235
|
+
lineHeight: "2.5rem",
|
|
236
|
+
fontWeight: 700,
|
|
237
|
+
letterSpacing: "-0.025em"
|
|
238
|
+
},
|
|
239
|
+
h3: {
|
|
240
|
+
fontSize: "1.875rem",
|
|
241
|
+
lineHeight: "2.25rem",
|
|
242
|
+
fontWeight: 600,
|
|
243
|
+
letterSpacing: "-0.025em"
|
|
244
|
+
},
|
|
245
|
+
h4: {
|
|
246
|
+
fontSize: "1.5rem",
|
|
247
|
+
lineHeight: "2rem",
|
|
248
|
+
fontWeight: 600
|
|
249
|
+
},
|
|
250
|
+
h5: {
|
|
251
|
+
fontSize: "1.25rem",
|
|
252
|
+
lineHeight: "1.75rem",
|
|
253
|
+
fontWeight: 600
|
|
254
|
+
},
|
|
255
|
+
h6: {
|
|
256
|
+
fontSize: "1.125rem",
|
|
257
|
+
lineHeight: "1.75rem",
|
|
258
|
+
fontWeight: 600
|
|
259
|
+
},
|
|
260
|
+
// Body text
|
|
261
|
+
bodyLarge: {
|
|
262
|
+
fontSize: "1.125rem",
|
|
263
|
+
lineHeight: "1.75rem",
|
|
264
|
+
fontWeight: 400
|
|
265
|
+
},
|
|
266
|
+
body: {
|
|
267
|
+
fontSize: "1rem",
|
|
268
|
+
lineHeight: "1.5rem",
|
|
269
|
+
fontWeight: 400
|
|
270
|
+
},
|
|
271
|
+
bodySmall: {
|
|
272
|
+
fontSize: "0.875rem",
|
|
273
|
+
lineHeight: "1.25rem",
|
|
274
|
+
fontWeight: 400
|
|
275
|
+
},
|
|
276
|
+
// UI text
|
|
277
|
+
label: {
|
|
278
|
+
fontSize: "0.875rem",
|
|
279
|
+
lineHeight: "1.25rem",
|
|
280
|
+
fontWeight: 500
|
|
281
|
+
},
|
|
282
|
+
caption: {
|
|
283
|
+
fontSize: "0.75rem",
|
|
284
|
+
lineHeight: "1rem",
|
|
285
|
+
fontWeight: 400
|
|
286
|
+
},
|
|
287
|
+
overline: {
|
|
288
|
+
fontSize: "0.75rem",
|
|
289
|
+
lineHeight: "1rem",
|
|
290
|
+
fontWeight: 600,
|
|
291
|
+
letterSpacing: "0.05em",
|
|
292
|
+
textTransform: "uppercase"
|
|
293
|
+
},
|
|
294
|
+
// Code
|
|
295
|
+
code: {
|
|
296
|
+
fontSize: "0.875rem",
|
|
297
|
+
lineHeight: "1.25rem",
|
|
298
|
+
fontWeight: 400,
|
|
299
|
+
fontFamily: [
|
|
300
|
+
"JetBrains Mono",
|
|
301
|
+
"SF Mono",
|
|
302
|
+
"Monaco",
|
|
303
|
+
"monospace"
|
|
304
|
+
].join(", ")
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
// src/tokens/spacing.ts
|
|
310
|
+
var spacing = {
|
|
311
|
+
0: "0",
|
|
312
|
+
0.5: "0.125rem",
|
|
313
|
+
// 2px
|
|
314
|
+
1: "0.25rem",
|
|
315
|
+
// 4px
|
|
316
|
+
1.5: "0.375rem",
|
|
317
|
+
// 6px
|
|
318
|
+
2: "0.5rem",
|
|
319
|
+
// 8px
|
|
320
|
+
2.5: "0.625rem",
|
|
321
|
+
// 10px
|
|
322
|
+
3: "0.75rem",
|
|
323
|
+
// 12px
|
|
324
|
+
3.5: "0.875rem",
|
|
325
|
+
// 14px
|
|
326
|
+
4: "1rem",
|
|
327
|
+
// 16px
|
|
328
|
+
5: "1.25rem",
|
|
329
|
+
// 20px
|
|
330
|
+
6: "1.5rem",
|
|
331
|
+
// 24px
|
|
332
|
+
7: "1.75rem",
|
|
333
|
+
// 28px
|
|
334
|
+
8: "2rem",
|
|
335
|
+
// 32px
|
|
336
|
+
9: "2.25rem",
|
|
337
|
+
// 36px
|
|
338
|
+
10: "2.5rem",
|
|
339
|
+
// 40px
|
|
340
|
+
11: "2.75rem",
|
|
341
|
+
// 44px
|
|
342
|
+
12: "3rem",
|
|
343
|
+
// 48px
|
|
344
|
+
14: "3.5rem",
|
|
345
|
+
// 56px
|
|
346
|
+
16: "4rem",
|
|
347
|
+
// 64px
|
|
348
|
+
20: "5rem",
|
|
349
|
+
// 80px
|
|
350
|
+
24: "6rem",
|
|
351
|
+
// 96px
|
|
352
|
+
28: "7rem",
|
|
353
|
+
// 112px
|
|
354
|
+
32: "8rem",
|
|
355
|
+
// 128px
|
|
356
|
+
36: "9rem",
|
|
357
|
+
// 144px
|
|
358
|
+
40: "10rem",
|
|
359
|
+
// 160px
|
|
360
|
+
44: "11rem",
|
|
361
|
+
// 176px
|
|
362
|
+
48: "12rem",
|
|
363
|
+
// 192px
|
|
364
|
+
52: "13rem",
|
|
365
|
+
// 208px
|
|
366
|
+
56: "14rem",
|
|
367
|
+
// 224px
|
|
368
|
+
60: "15rem",
|
|
369
|
+
// 240px
|
|
370
|
+
64: "16rem",
|
|
371
|
+
// 256px
|
|
372
|
+
72: "18rem",
|
|
373
|
+
// 288px
|
|
374
|
+
80: "20rem",
|
|
375
|
+
// 320px
|
|
376
|
+
96: "24rem"
|
|
377
|
+
// 384px
|
|
378
|
+
};
|
|
379
|
+
var semanticSpacing = {
|
|
380
|
+
// Component padding
|
|
381
|
+
componentPaddingXs: spacing[2],
|
|
382
|
+
// 8px
|
|
383
|
+
componentPaddingSm: spacing[3],
|
|
384
|
+
// 12px
|
|
385
|
+
componentPaddingMd: spacing[4],
|
|
386
|
+
// 16px
|
|
387
|
+
componentPaddingLg: spacing[6],
|
|
388
|
+
// 24px
|
|
389
|
+
componentPaddingXl: spacing[8],
|
|
390
|
+
// 32px
|
|
391
|
+
// Component gaps
|
|
392
|
+
componentGapXs: spacing[1],
|
|
393
|
+
// 4px
|
|
394
|
+
componentGapSm: spacing[2],
|
|
395
|
+
// 8px
|
|
396
|
+
componentGapMd: spacing[3],
|
|
397
|
+
// 12px
|
|
398
|
+
componentGapLg: spacing[4],
|
|
399
|
+
// 16px
|
|
400
|
+
componentGapXl: spacing[6],
|
|
401
|
+
// 24px
|
|
402
|
+
// Layout spacing
|
|
403
|
+
layoutGapXs: spacing[4],
|
|
404
|
+
// 16px
|
|
405
|
+
layoutGapSm: spacing[6],
|
|
406
|
+
// 24px
|
|
407
|
+
layoutGapMd: spacing[8],
|
|
408
|
+
// 32px
|
|
409
|
+
layoutGapLg: spacing[12],
|
|
410
|
+
// 48px
|
|
411
|
+
layoutGapXl: spacing[16],
|
|
412
|
+
// 64px
|
|
413
|
+
// Section spacing
|
|
414
|
+
sectionGapSm: spacing[8],
|
|
415
|
+
// 32px
|
|
416
|
+
sectionGapMd: spacing[12],
|
|
417
|
+
// 48px
|
|
418
|
+
sectionGapLg: spacing[16],
|
|
419
|
+
// 64px
|
|
420
|
+
sectionGapXl: spacing[24]
|
|
421
|
+
// 96px
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
// src/tokens/borders.ts
|
|
425
|
+
var borders = {
|
|
426
|
+
width: {
|
|
427
|
+
none: "0",
|
|
428
|
+
thin: "1px",
|
|
429
|
+
medium: "2px",
|
|
430
|
+
thick: "3px",
|
|
431
|
+
heavy: "4px"
|
|
432
|
+
},
|
|
433
|
+
radius: {
|
|
434
|
+
none: "0",
|
|
435
|
+
xs: "0.125rem",
|
|
436
|
+
// 2px
|
|
437
|
+
sm: "0.25rem",
|
|
438
|
+
// 4px
|
|
439
|
+
DEFAULT: "0.375rem",
|
|
440
|
+
// 6px
|
|
441
|
+
md: "0.5rem",
|
|
442
|
+
// 8px
|
|
443
|
+
lg: "0.75rem",
|
|
444
|
+
// 12px
|
|
445
|
+
xl: "1rem",
|
|
446
|
+
// 16px
|
|
447
|
+
"2xl": "1.5rem",
|
|
448
|
+
// 24px
|
|
449
|
+
"3xl": "2rem",
|
|
450
|
+
// 32px
|
|
451
|
+
full: "9999px"
|
|
452
|
+
},
|
|
453
|
+
style: {
|
|
454
|
+
solid: "solid",
|
|
455
|
+
dashed: "dashed",
|
|
456
|
+
dotted: "dotted"
|
|
457
|
+
}
|
|
458
|
+
};
|
|
459
|
+
var semanticBorders = {
|
|
460
|
+
// Input borders
|
|
461
|
+
inputDefault: {
|
|
462
|
+
width: borders.width.thin,
|
|
463
|
+
style: borders.style.solid,
|
|
464
|
+
radius: borders.radius.md
|
|
465
|
+
},
|
|
466
|
+
inputFocus: {
|
|
467
|
+
width: borders.width.medium,
|
|
468
|
+
style: borders.style.solid,
|
|
469
|
+
radius: borders.radius.md
|
|
470
|
+
},
|
|
471
|
+
// Card borders
|
|
472
|
+
card: {
|
|
473
|
+
width: borders.width.thin,
|
|
474
|
+
style: borders.style.solid,
|
|
475
|
+
radius: borders.radius.lg
|
|
476
|
+
},
|
|
477
|
+
// Button borders
|
|
478
|
+
button: {
|
|
479
|
+
width: borders.width.thin,
|
|
480
|
+
style: borders.style.solid,
|
|
481
|
+
radius: borders.radius.md
|
|
482
|
+
},
|
|
483
|
+
// Modal/Dialog borders
|
|
484
|
+
modal: {
|
|
485
|
+
width: borders.width.none,
|
|
486
|
+
style: borders.style.solid,
|
|
487
|
+
radius: borders.radius.xl
|
|
488
|
+
}
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
// src/tokens/shadows.ts
|
|
492
|
+
var shadows = {
|
|
493
|
+
none: "none",
|
|
494
|
+
xs: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
495
|
+
sm: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
|
|
496
|
+
DEFAULT: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
|
|
497
|
+
md: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
|
|
498
|
+
lg: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
|
|
499
|
+
xl: "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
|
|
500
|
+
"2xl": "0 30px 60px -15px rgba(0, 0, 0, 0.3)",
|
|
501
|
+
inner: "inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)"
|
|
502
|
+
};
|
|
503
|
+
var darkShadows = {
|
|
504
|
+
none: "none",
|
|
505
|
+
xs: "0 1px 2px 0 rgba(0, 0, 0, 0.3)",
|
|
506
|
+
sm: "0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3)",
|
|
507
|
+
DEFAULT: "0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3)",
|
|
508
|
+
md: "0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3)",
|
|
509
|
+
lg: "0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4)",
|
|
510
|
+
xl: "0 25px 50px -12px rgba(0, 0, 0, 0.7)",
|
|
511
|
+
"2xl": "0 30px 60px -15px rgba(0, 0, 0, 0.8)",
|
|
512
|
+
inner: "inset 0 2px 4px 0 rgba(0, 0, 0, 0.3)"
|
|
513
|
+
};
|
|
514
|
+
var elevation = {
|
|
515
|
+
flat: shadows.none,
|
|
516
|
+
raised: shadows.sm,
|
|
517
|
+
floating: shadows.md,
|
|
518
|
+
overlay: shadows.lg,
|
|
519
|
+
modal: shadows.xl,
|
|
520
|
+
popover: shadows.lg,
|
|
521
|
+
dropdown: shadows.md,
|
|
522
|
+
tooltip: shadows.sm
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
// src/tokens/breakpoints.ts
|
|
526
|
+
var breakpoints = {
|
|
527
|
+
xs: "320px",
|
|
528
|
+
// Mobile small
|
|
529
|
+
sm: "640px",
|
|
530
|
+
// Mobile
|
|
531
|
+
md: "768px",
|
|
532
|
+
// Tablet
|
|
533
|
+
lg: "1024px",
|
|
534
|
+
// Desktop
|
|
535
|
+
xl: "1280px",
|
|
536
|
+
// Desktop large
|
|
537
|
+
"2xl": "1536px",
|
|
538
|
+
// Desktop extra large
|
|
539
|
+
"3xl": "1920px"
|
|
540
|
+
// Wide screen
|
|
541
|
+
};
|
|
542
|
+
var breakpointValues = {
|
|
543
|
+
xs: 320,
|
|
544
|
+
sm: 640,
|
|
545
|
+
md: 768,
|
|
546
|
+
lg: 1024,
|
|
547
|
+
xl: 1280,
|
|
548
|
+
"2xl": 1536,
|
|
549
|
+
"3xl": 1920
|
|
550
|
+
};
|
|
551
|
+
var mediaQueries = {
|
|
552
|
+
xs: `@media (min-width: ${breakpoints.xs})`,
|
|
553
|
+
sm: `@media (min-width: ${breakpoints.sm})`,
|
|
554
|
+
md: `@media (min-width: ${breakpoints.md})`,
|
|
555
|
+
lg: `@media (min-width: ${breakpoints.lg})`,
|
|
556
|
+
xl: `@media (min-width: ${breakpoints.xl})`,
|
|
557
|
+
"2xl": `@media (min-width: ${breakpoints["2xl"]})`,
|
|
558
|
+
"3xl": `@media (min-width: ${breakpoints["3xl"]})`
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
// src/tokens/motion.ts
|
|
562
|
+
var motion = {
|
|
563
|
+
duration: {
|
|
564
|
+
instant: "0ms",
|
|
565
|
+
fast: "100ms",
|
|
566
|
+
normal: "200ms",
|
|
567
|
+
moderate: "300ms",
|
|
568
|
+
slow: "400ms",
|
|
569
|
+
slower: "500ms",
|
|
570
|
+
slowest: "600ms"
|
|
571
|
+
},
|
|
572
|
+
easing: {
|
|
573
|
+
linear: "linear",
|
|
574
|
+
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
575
|
+
easeOut: "cubic-bezier(0, 0, 0.2, 1)",
|
|
576
|
+
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
577
|
+
sharp: "cubic-bezier(0.4, 0, 0.6, 1)",
|
|
578
|
+
spring: "cubic-bezier(0.34, 1.56, 0.64, 1)"
|
|
579
|
+
},
|
|
580
|
+
// Framer Motion variants
|
|
581
|
+
variants: {
|
|
582
|
+
fadeIn: {
|
|
583
|
+
initial: { opacity: 0 },
|
|
584
|
+
animate: { opacity: 1 },
|
|
585
|
+
exit: { opacity: 0 },
|
|
586
|
+
transition: { duration: 0.2 }
|
|
587
|
+
},
|
|
588
|
+
fadeOut: {
|
|
589
|
+
initial: { opacity: 1 },
|
|
590
|
+
animate: { opacity: 0 },
|
|
591
|
+
exit: { opacity: 1 },
|
|
592
|
+
transition: { duration: 0.2 }
|
|
593
|
+
},
|
|
594
|
+
slideInRight: {
|
|
595
|
+
initial: { x: "100%", opacity: 0 },
|
|
596
|
+
animate: { x: 0, opacity: 1 },
|
|
597
|
+
exit: { x: "100%", opacity: 0 },
|
|
598
|
+
transition: { duration: 0.3, ease: [0, 0, 0.2, 1] }
|
|
599
|
+
},
|
|
600
|
+
slideInLeft: {
|
|
601
|
+
initial: { x: "-100%", opacity: 0 },
|
|
602
|
+
animate: { x: 0, opacity: 1 },
|
|
603
|
+
exit: { x: "-100%", opacity: 0 },
|
|
604
|
+
transition: { duration: 0.3, ease: [0, 0, 0.2, 1] }
|
|
605
|
+
},
|
|
606
|
+
slideInUp: {
|
|
607
|
+
initial: { y: "100%", opacity: 0 },
|
|
608
|
+
animate: { y: 0, opacity: 1 },
|
|
609
|
+
exit: { y: "100%", opacity: 0 },
|
|
610
|
+
transition: { duration: 0.3, ease: [0, 0, 0.2, 1] }
|
|
611
|
+
},
|
|
612
|
+
slideInDown: {
|
|
613
|
+
initial: { y: "-100%", opacity: 0 },
|
|
614
|
+
animate: { y: 0, opacity: 1 },
|
|
615
|
+
exit: { y: "-100%", opacity: 0 },
|
|
616
|
+
transition: { duration: 0.3, ease: [0, 0, 0.2, 1] }
|
|
617
|
+
},
|
|
618
|
+
scaleIn: {
|
|
619
|
+
initial: { scale: 0.95, opacity: 0 },
|
|
620
|
+
animate: { scale: 1, opacity: 1 },
|
|
621
|
+
exit: { scale: 0.95, opacity: 0 },
|
|
622
|
+
transition: { duration: 0.2, ease: [0, 0, 0.2, 1] }
|
|
623
|
+
},
|
|
624
|
+
scaleOut: {
|
|
625
|
+
initial: { scale: 1, opacity: 1 },
|
|
626
|
+
animate: { scale: 0.95, opacity: 0 },
|
|
627
|
+
exit: { scale: 1, opacity: 1 },
|
|
628
|
+
transition: { duration: 0.2, ease: [0.4, 0, 1, 1] }
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
// Micro-interactions
|
|
632
|
+
microInteractions: {
|
|
633
|
+
buttonPress: {
|
|
634
|
+
scale: 0.98,
|
|
635
|
+
transition: { duration: 0.1 }
|
|
636
|
+
},
|
|
637
|
+
buttonHover: {
|
|
638
|
+
scale: 1.02,
|
|
639
|
+
transition: { duration: 0.2 }
|
|
640
|
+
},
|
|
641
|
+
cardHover: {
|
|
642
|
+
y: -4,
|
|
643
|
+
transition: { duration: 0.2 }
|
|
644
|
+
},
|
|
645
|
+
ripple: {
|
|
646
|
+
scale: [0, 1],
|
|
647
|
+
opacity: [0.5, 0],
|
|
648
|
+
transition: { duration: 0.6 }
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
};
|
|
652
|
+
|
|
653
|
+
// src/tokens/zIndex.ts
|
|
654
|
+
var zIndex = {
|
|
655
|
+
base: 0,
|
|
656
|
+
dropdown: 1e3,
|
|
657
|
+
sticky: 1100,
|
|
658
|
+
fixed: 1200,
|
|
659
|
+
popover: 1300,
|
|
660
|
+
tooltip: 1400,
|
|
661
|
+
overlay: 1500,
|
|
662
|
+
modal: 1600,
|
|
663
|
+
toast: 1700,
|
|
664
|
+
commandPalette: 1800,
|
|
665
|
+
contextMenu: 1900,
|
|
666
|
+
max: 2147483647
|
|
667
|
+
};
|
|
668
|
+
|
|
669
|
+
export { borders, breakpointValues, breakpoints, colors, darkShadows, elevation, mediaQueries, motion, semanticBorders, semanticSpacing, shadows, spacing, typography, zIndex };
|