@flipova/foundation 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +125 -185
  3. package/dist/chunk-2VLBOYBU.js +4 -0
  4. package/dist/chunk-2VLBOYBU.js.map +1 -0
  5. package/dist/chunk-3PYMFFVP.mjs +5974 -0
  6. package/dist/chunk-3PYMFFVP.mjs.map +1 -0
  7. package/dist/chunk-45NSZH5Z.js +404 -0
  8. package/dist/chunk-45NSZH5Z.js.map +1 -0
  9. package/dist/chunk-4QTEZKXE.mjs +2287 -0
  10. package/dist/chunk-4QTEZKXE.mjs.map +1 -0
  11. package/dist/chunk-5ZDSYOFL.js +6112 -0
  12. package/dist/chunk-5ZDSYOFL.js.map +1 -0
  13. package/dist/chunk-BJTO5JO5.mjs +10 -0
  14. package/dist/chunk-BJTO5JO5.mjs.map +1 -0
  15. package/dist/chunk-DGUM43GV.js +12 -0
  16. package/dist/chunk-DGUM43GV.js.map +1 -0
  17. package/dist/chunk-ECBM426M.mjs +2647 -0
  18. package/dist/chunk-ECBM426M.mjs.map +1 -0
  19. package/dist/chunk-EIWDEXBO.js +2690 -0
  20. package/dist/chunk-EIWDEXBO.js.map +1 -0
  21. package/dist/chunk-FLEEJX7L.js +2301 -0
  22. package/dist/chunk-FLEEJX7L.js.map +1 -0
  23. package/dist/chunk-GZPFYWMA.mjs +390 -0
  24. package/dist/chunk-GZPFYWMA.mjs.map +1 -0
  25. package/dist/chunk-HS2UOQU4.mjs +3 -0
  26. package/dist/chunk-HS2UOQU4.mjs.map +1 -0
  27. package/dist/chunk-MWRMHYW2.js +101 -0
  28. package/dist/chunk-MWRMHYW2.js.map +1 -0
  29. package/dist/chunk-RRZSROIT.mjs +655 -0
  30. package/dist/chunk-RRZSROIT.mjs.map +1 -0
  31. package/dist/chunk-SYHGZT2M.mjs +95 -0
  32. package/dist/chunk-SYHGZT2M.mjs.map +1 -0
  33. package/dist/chunk-T7V6TILB.js +669 -0
  34. package/dist/chunk-T7V6TILB.js.map +1 -0
  35. package/dist/config/index.js +16 -1092
  36. package/dist/config/index.js.map +1 -1
  37. package/dist/config/index.mjs +1 -1096
  38. package/dist/config/index.mjs.map +1 -1
  39. package/dist/index.js +623 -9546
  40. package/dist/index.js.map +1 -1
  41. package/dist/index.mjs +5 -9379
  42. package/dist/index.mjs.map +1 -1
  43. package/dist/layout/index.js +463 -9225
  44. package/dist/layout/index.js.map +1 -1
  45. package/dist/layout/index.mjs +2 -9122
  46. package/dist/layout/index.mjs.map +1 -1
  47. package/dist/studio/cli/index.js +15 -4796
  48. package/dist/studio/cli/index.js.map +1 -1
  49. package/dist/studio/cli/index.mjs +11 -4774
  50. package/dist/studio/cli/index.mjs.map +1 -1
  51. package/dist/studio/index.js +73 -4908
  52. package/dist/studio/index.js.map +1 -1
  53. package/dist/studio/index.mjs +1 -4874
  54. package/dist/studio/index.mjs.map +1 -1
  55. package/dist/theme/index.js +43 -823
  56. package/dist/theme/index.js.map +1 -1
  57. package/dist/theme/index.mjs +1 -824
  58. package/dist/theme/index.mjs.map +1 -1
  59. package/dist/tokens/index.js +56 -400
  60. package/dist/tokens/index.js.map +1 -1
  61. package/dist/tokens/index.mjs +1 -388
  62. package/dist/tokens/index.mjs.map +1 -1
  63. package/dist/web/index.js +327 -3600
  64. package/dist/web/index.js.map +1 -1
  65. package/dist/web/index.mjs +24 -3426
  66. package/dist/web/index.mjs.map +1 -1
  67. package/package.json +2 -2
  68. package/studio/app/dist/_expo/static/js/web/{entry-39d36897d2758a1d36b9ce16995ecc83.js → entry-77f601f6b9353e7b6e3b18cdbe63ac99.js} +16325 -2506
  69. package/studio/app/dist/_expo/static/js/web/{index-f0c66517963047bf2c0bdd371afb8d31.js → index-9587ee2e3c02826ac2da47e86fefe882.js} +4 -4
  70. package/studio/app/dist/_expo/static/js/web/{index-fb59148d0b266219e66b19aeca8e2086.js → index-ac88f7a39991e452f0b4323da9aa4367.js} +3 -3
  71. package/studio/app/dist/index.html +1 -1
@@ -1,1098 +1,3 @@
1
- import { createContext, useContext, useMemo, useState, useEffect } from 'react';
2
- import { useColorScheme as useColorScheme$1 } from 'react-native';
3
- import { jsx } from 'react/jsx-runtime';
4
-
5
- // foundation/config/defineConfig.ts
6
- function defineConfig(config) {
7
- return config;
8
- }
9
-
10
- // foundation/tokens/breakpoints.ts
11
- var breakpoints = {
12
- xs: 0,
13
- sm: 576,
14
- md: 768,
15
- lg: 992,
16
- xl: 1200,
17
- "2xl": 1440
18
- };
19
-
20
- // foundation/tokens/colors.ts
21
- var colors = {
22
- white: "#FFFFFF",
23
- black: "#000000",
24
- gray50: "#F9FAFB",
25
- gray100: "#F3F4F6",
26
- gray200: "#E5E7EB",
27
- gray300: "#D1D5DB",
28
- gray400: "#9CA3AF",
29
- gray500: "#6B7280",
30
- gray600: "#4B5563",
31
- gray700: "#374151",
32
- gray800: "#1F2937",
33
- gray900: "#111827",
34
- primary50: "#E5E5F4",
35
- primary100: "#CCCCE9",
36
- primary200: "#9999D3",
37
- primary300: "#6666BD",
38
- primary400: "#3333A7",
39
- primary500: "#000091",
40
- primary600: "#000082",
41
- primary700: "#00006D",
42
- primary800: "#000055",
43
- primary900: "#00003D",
44
- primaryForeground: "#FFFFFF",
45
- secondary50: "#E7E7FF",
46
- secondary100: "#CFCFFF",
47
- secondary200: "#9F9FFF",
48
- secondary300: "#6F6FFF",
49
- secondary400: "#3F3FFF",
50
- secondary500: "#0D0EFF",
51
- secondary600: "#0B0CD6",
52
- secondary700: "#0809AD",
53
- secondary800: "#060685",
54
- secondary900: "#03035C",
55
- secondaryForeground: "#FFFFFF",
56
- success50: "#F0FDF4",
57
- success100: "#DCFCE7",
58
- success500: "#22C55E",
59
- success600: "#16A34A",
60
- success700: "#15803D",
61
- warning50: "#FFFBEB",
62
- warning100: "#FEF3C7",
63
- warning500: "#F59E0B",
64
- warning600: "#D97706",
65
- warning700: "#B45309",
66
- error50: "#FEF2F2",
67
- error100: "#FEE2E2",
68
- error500: "#EF4444",
69
- error600: "#DC2626",
70
- error700: "#B91C1C",
71
- info50: "#EFF6FF",
72
- info100: "#DBEAFE",
73
- info500: "#3B82F6",
74
- info600: "#2563EB",
75
- info700: "#1D4ED8",
76
- neon: {
77
- background: "#1A0033",
78
- surface: "#2D0047",
79
- primary: "#9200db",
80
- primaryLight: "#4200589f",
81
- primaryDark: "#2c0150ff",
82
- secondary: "#00E5FF",
83
- secondaryLight: "#66FFFF",
84
- secondaryDark: "#00ACC1",
85
- accent: "#FF006E",
86
- accentLight: "#FF4081",
87
- accentDark: "#C2185B",
88
- success: "#00FF88",
89
- successLight: "#66FFAA",
90
- muted: "#3D0066",
91
- border: "#520080",
92
- text: "#FFFFFF",
93
- textSecondary: "#B3B3CC"
94
- },
95
- spring: {
96
- background: "#F0F4F8",
97
- surface: "#FFFFFF",
98
- primary: "#5a0832de",
99
- primaryLight: "#FBCFE8",
100
- primaryDark: "#DB2777",
101
- secondary: "#4ADE80",
102
- secondaryLight: "#BBF7D0",
103
- secondaryDark: "#166534",
104
- accent: "#8B5CF6",
105
- accentLight: "#C4B5FD",
106
- accentDark: "#6D28D9",
107
- success: "#10B981",
108
- successLight: "#D1FAE5",
109
- muted: "#E2E8F0",
110
- border: "#CBD5E1CC",
111
- text: "#334155",
112
- textSecondary: "#64748B"
113
- },
114
- summer: {
115
- background: "#FEF3C7",
116
- surface: "#FFFFFF",
117
- primary: "#301f01ff",
118
- primaryLight: "#FCD34D",
119
- primaryDark: "#D97706",
120
- secondary: "#EF4444",
121
- secondaryLight: "#F87171",
122
- secondaryDark: "#DC2626",
123
- accent: "#3B82F6",
124
- accentLight: "#60A5FA",
125
- accentDark: "#2563EB",
126
- success: "#10B981",
127
- successLight: "#34D399",
128
- muted: "#FEF9C3",
129
- border: "#FDE68A",
130
- text: "#78350F",
131
- textSecondary: "#92400E"
132
- },
133
- autumn: {
134
- background: "#2D1B14",
135
- surface: "#4A2C2A",
136
- primary: "#000000ff",
137
- primaryLight: "#FB923C",
138
- primaryDark: "#C2410C",
139
- secondary: "#A16207",
140
- secondaryLight: "#CA8A04",
141
- secondaryDark: "#854D0E",
142
- accent: "#DC2626",
143
- accentLight: "#EF4444",
144
- accentDark: "#B91C1C",
145
- success: "#16A34A",
146
- successLight: "#22C55E",
147
- muted: "#451A03",
148
- border: "#7C2D12",
149
- text: "#FEF3C7",
150
- textSecondary: "#FDE68A"
151
- },
152
- winter: {
153
- background: "#0F172A",
154
- surface: "#1E293B",
155
- primary: "#253a5aff",
156
- primaryLight: "#38BDF8",
157
- primaryDark: "#0284C7",
158
- secondary: "#E2E8F0",
159
- secondaryLight: "#F1F5F9",
160
- secondaryDark: "#CBD5E1",
161
- accent: "#8B5CF6",
162
- accentLight: "#A78BFA",
163
- accentDark: "#7C3AED",
164
- success: "#10B981",
165
- successLight: "#34D399",
166
- muted: "#1E293B",
167
- border: "#334155",
168
- text: "#F8FAFC",
169
- textSecondary: "#CBD5E1"
170
- },
171
- halloween: {
172
- background: "#080510",
173
- surface: "#120E1F",
174
- primary: "#7C3AEDCC",
175
- primaryLight: "#A78BFA",
176
- primaryDark: "#4C1D95",
177
- secondary: "#10B981",
178
- secondaryLight: "#34D399",
179
- secondaryDark: "#065F46",
180
- accent: "#94A3B8",
181
- accentLight: "#E2E8F0",
182
- accentDark: "#475569",
183
- success: "#059669",
184
- successLight: "#A7F3D0",
185
- muted: "#1F1B2E",
186
- border: "#2E2845",
187
- text: "#F8FAFC",
188
- textSecondary: "#9D84B7"
189
- },
190
- christmas: {
191
- background: "#0A2417",
192
- surface: "#123D29",
193
- primary: "#3f991bcc",
194
- primaryLight: "#C24141",
195
- primaryDark: "#7F1D1D",
196
- secondary: "#C5A059",
197
- secondaryLight: "#E3C58B",
198
- secondaryDark: "#926D27",
199
- accent: "#F8FAFC",
200
- accentLight: "#FFFFFF",
201
- accentDark: "#CBD5E1",
202
- success: "#15803D",
203
- successLight: "#22C55E",
204
- muted: "#1E3A2B",
205
- border: "#2D5A43",
206
- text: "#F1F5F9",
207
- textSecondary: "#D4AF37"
208
- },
209
- transparent: "transparent"
210
- };
211
-
212
- // foundation/tokens/motion.ts
213
- var durations = {
214
- instant: 0,
215
- fast: 150,
216
- base: 250,
217
- slow: 350,
218
- slower: 500
219
- };
220
-
221
- // foundation/tokens/opacity.ts
222
- var opacity = {
223
- 0: 0,
224
- 5: 0.05,
225
- 10: 0.1,
226
- 20: 0.2,
227
- 25: 0.25,
228
- 30: 0.3,
229
- 40: 0.4,
230
- 50: 0.5,
231
- 60: 0.6,
232
- 70: 0.7,
233
- 75: 0.75,
234
- 80: 0.8,
235
- 90: 0.9,
236
- 95: 0.95,
237
- 100: 1
238
- };
239
-
240
- // foundation/tokens/radii.ts
241
- var radii = {
242
- none: 0,
243
- xs: 2,
244
- sm: 4,
245
- base: 6,
246
- md: 8,
247
- lg: 12,
248
- xl: 16,
249
- "2xl": 20,
250
- "3xl": 24,
251
- full: 9999
252
- };
253
-
254
- // foundation/tokens/shadows.ts
255
- var shadows = {
256
- none: {
257
- shadowColor: "#000",
258
- shadowOffset: { width: 0, height: 0 },
259
- shadowOpacity: 0,
260
- shadowRadius: 0,
261
- elevation: 0
262
- },
263
- sm: {
264
- shadowColor: "#000",
265
- shadowOffset: { width: 0, height: 1 },
266
- shadowOpacity: 0.05,
267
- shadowRadius: 2,
268
- elevation: 2
269
- },
270
- base: {
271
- shadowColor: "#000",
272
- shadowOffset: { width: 0, height: 2 },
273
- shadowOpacity: 0.1,
274
- shadowRadius: 4,
275
- elevation: 3
276
- },
277
- md: {
278
- shadowColor: "#000",
279
- shadowOffset: { width: 0, height: 4 },
280
- shadowOpacity: 0.15,
281
- shadowRadius: 8,
282
- elevation: 5
283
- },
284
- lg: {
285
- shadowColor: "#000",
286
- shadowOffset: { width: 0, height: 8 },
287
- shadowOpacity: 0.2,
288
- shadowRadius: 16,
289
- elevation: 8
290
- },
291
- xl: {
292
- shadowColor: "#000",
293
- shadowOffset: { width: 0, height: 12 },
294
- shadowOpacity: 0.25,
295
- shadowRadius: 24,
296
- elevation: 12
297
- },
298
- "2xl": {
299
- shadowColor: "#000",
300
- shadowOffset: { width: 0, height: 16 },
301
- shadowOpacity: 0.3,
302
- shadowRadius: 32,
303
- elevation: 16
304
- }
305
- };
306
-
307
- // foundation/tokens/spacing.ts
308
- var spacing = {
309
- 0: 0,
310
- 1: 4,
311
- 2: 8,
312
- 3: 12,
313
- 4: 16,
314
- 5: 20,
315
- 6: 24,
316
- 7: 28,
317
- 8: 32,
318
- 10: 40,
319
- 12: 48,
320
- 14: 56,
321
- 16: 64,
322
- 20: 80,
323
- 24: 96,
324
- 28: 112,
325
- 32: 128,
326
- 36: 144,
327
- 40: 160,
328
- 44: 176,
329
- 48: 192,
330
- 52: 208,
331
- 56: 224,
332
- 60: 240,
333
- 64: 256
334
- };
335
-
336
- // foundation/tokens/typography.ts
337
- var fontSizes = {
338
- xs: 12,
339
- sm: 14,
340
- base: 16,
341
- lg: 18,
342
- xl: 20,
343
- "2xl": 24,
344
- "3xl": 30,
345
- "4xl": 36,
346
- "5xl": 48,
347
- "6xl": 60,
348
- "7xl": 72
349
- };
350
- var fontWeights = {
351
- thin: "100",
352
- extralight: "200",
353
- light: "300",
354
- normal: "400",
355
- medium: "500",
356
- semibold: "600",
357
- bold: "700",
358
- extrabold: "800",
359
- black: "900"
360
- };
361
- var lineHeights = {
362
- none: 1,
363
- tight: 1.25,
364
- snug: 1.375,
365
- normal: 1.5,
366
- relaxed: 1.625,
367
- loose: 2
368
- };
369
-
370
- // foundation/tokens/z-index.ts
371
- var zIndices = {
372
- base: 0,
373
- dropdown: 1e3,
374
- sticky: 1100,
375
- fixed: 1200,
376
- backdrop: 1300,
377
- modal: 1400,
378
- popover: 1500,
379
- toast: 1600,
380
- tooltip: 1700
381
- };
382
-
383
- // foundation/theme/config/create.theme.ts
384
- var createTheme = (overrides = {}) => ({
385
- background: colors.white,
386
- foreground: colors.gray900,
387
- card: colors.white,
388
- cardForeground: colors.gray900,
389
- primary: colors.primary600,
390
- primaryForeground: colors.white,
391
- secondary: colors.secondary600,
392
- secondaryForeground: colors.white,
393
- muted: colors.gray100,
394
- mutedForeground: colors.gray600,
395
- accent: colors.primary50,
396
- accentForeground: colors.primary900,
397
- destructive: colors.error600,
398
- destructiveForeground: colors.white,
399
- border: colors.gray200,
400
- input: colors.gray200,
401
- ring: colors.primary600,
402
- success: colors.success600,
403
- warning: colors.warning600,
404
- error: colors.error600,
405
- info: colors.info600,
406
- transparent: colors.transparent,
407
- gradients: {
408
- primary: [colors.primary400, colors.primary600],
409
- secondary: [colors.secondary400, colors.secondary600],
410
- success: [colors.success500, colors.success600],
411
- warning: [colors.warning500, colors.warning600],
412
- error: [colors.error500, colors.error600],
413
- info: [colors.info500, colors.info600],
414
- subtle: [colors.gray50, colors.gray100],
415
- vibrant: [colors.primary500, colors.secondary500]
416
- },
417
- ...overrides
418
- });
419
-
420
- // foundation/config/resolve.ts
421
- function resolveConfig(userConfig) {
422
- const tokens = resolveTokens(userConfig?.tokens);
423
- const themes = resolveThemes(userConfig?.themes);
424
- const defaultTheme = userConfig?.defaultTheme || "light";
425
- return { tokens, themes, defaultTheme };
426
- }
427
- function resolveTokens(overrides) {
428
- return {
429
- spacing: overrides?.spacing ? { ...spacing, ...overrides.spacing } : { ...spacing },
430
- breakpoints: overrides?.breakpoints ? { ...breakpoints, ...overrides.breakpoints } : { ...breakpoints },
431
- radii: overrides?.radii ? { ...radii, ...overrides.radii } : { ...radii },
432
- shadows: overrides?.shadows ? { ...shadows, ...overrides.shadows } : { ...shadows },
433
- colors: overrides?.colors ? deepMerge({ ...colors }, overrides.colors) : { ...colors },
434
- fontSizes: overrides?.fontSizes ? { ...fontSizes, ...overrides.fontSizes } : { ...fontSizes },
435
- fontWeights: overrides?.fontWeights ? { ...fontWeights, ...overrides.fontWeights } : { ...fontWeights },
436
- lineHeights: overrides?.lineHeights ? { ...lineHeights, ...overrides.lineHeights } : { ...lineHeights },
437
- durations: overrides?.durations ? { ...durations, ...overrides.durations } : { ...durations },
438
- opacity: overrides?.opacity ? { ...opacity, ...overrides.opacity } : { ...opacity },
439
- zIndices: overrides?.zIndices ? { ...zIndices, ...overrides.zIndices } : { ...zIndices }
440
- };
441
- }
442
- function resolveThemes(userThemes) {
443
- const themes = {};
444
- if (!userThemes) return themes;
445
- for (const [name, def] of Object.entries(userThemes)) {
446
- themes[name] = createTheme({
447
- ...def.colors,
448
- gradients: def.gradients ? {
449
- primary: [],
450
- secondary: [],
451
- success: [],
452
- warning: [],
453
- error: [],
454
- info: [],
455
- subtle: [],
456
- vibrant: [],
457
- ...def.gradients
458
- } : void 0
459
- });
460
- }
461
- return themes;
462
- }
463
- function deepMerge(target, source) {
464
- for (const key of Object.keys(source)) {
465
- if (typeof source[key] === "object" && source[key] !== null && !Array.isArray(source[key]) && typeof target[key] === "object" && target[key] !== null && !Array.isArray(target[key])) {
466
- target[key] = deepMerge(
467
- { ...target[key] },
468
- source[key]
469
- );
470
- } else {
471
- target[key] = source[key];
472
- }
473
- }
474
- return target;
475
- }
476
-
477
- // foundation/theme/config/definitions/autumn.theme.ts
478
- var autumnTheme = createTheme({
479
- // 🍂 Automne - Chaleureux et terrien
480
- background: colors.autumn.background,
481
- // Brun très foncé
482
- foreground: colors.autumn.text,
483
- // Texte crème
484
- card: colors.autumn.surface,
485
- // Brun clair
486
- cardForeground: colors.autumn.text,
487
- primary: colors.autumn.primary,
488
- // Orange automnal
489
- primaryForeground: colors.white,
490
- // Texte blanc sur orange
491
- secondary: colors.autumn.secondary,
492
- // Or doré
493
- secondaryForeground: colors.black,
494
- // Texte noir sur or
495
- muted: colors.autumn.muted,
496
- // Brun très foncé
497
- mutedForeground: colors.autumn.textSecondary,
498
- // Texte secondaire
499
- accent: colors.autumn.accent,
500
- // Rouge feuille
501
- accentForeground: colors.white,
502
- // Texte blanc sur rouge
503
- destructive: colors.error600,
504
- // Rouge standard
505
- destructiveForeground: colors.white,
506
- border: colors.autumn.border,
507
- // Bordure brun
508
- input: colors.autumn.surface,
509
- // Input avec fond brun
510
- ring: colors.autumn.primaryLight,
511
- // Anneaux orange clair
512
- success: colors.autumn.success,
513
- // Vert forêt
514
- warning: colors.warning500,
515
- // Orange standard
516
- error: colors.error500,
517
- // Rouge standard
518
- info: colors.info500,
519
- // Bleu standard
520
- transparent: colors.transparent,
521
- gradients: {
522
- primary: [colors.autumn.primaryLight, colors.autumn.primaryDark],
523
- // Orange dégradé
524
- secondary: [colors.autumn.secondaryLight, colors.autumn.secondaryDark],
525
- // Or dégradé
526
- success: [colors.autumn.successLight, colors.autumn.success],
527
- // Vert dégradé
528
- warning: [colors.warning100, colors.warning600],
529
- // Orange standard
530
- error: [colors.error100, colors.error600],
531
- // Rouge standard
532
- info: [colors.info100, colors.info600],
533
- // Bleu standard
534
- subtle: [colors.autumn.background, colors.autumn.muted],
535
- // Brun foncé vers très foncé
536
- vibrant: [colors.autumn.accentLight, colors.autumn.primary]
537
- // Rouge vers orange
538
- }
539
- });
540
-
541
- // foundation/theme/config/definitions/christmas.theme.ts
542
- var christmasTheme = createTheme({
543
- // 🎄 Noël - Festif et chaleureux
544
- background: colors.christmas.background,
545
- // Vert sapin très foncé
546
- foreground: colors.christmas.text,
547
- // Texte blanc neige
548
- card: colors.christmas.surface,
549
- // Vert sapin clair
550
- cardForeground: colors.christmas.text,
551
- primary: colors.christmas.primary,
552
- // Rouge Noël
553
- primaryForeground: colors.white,
554
- // Texte blanc sur rouge
555
- secondary: colors.christmas.secondary,
556
- // Or festif
557
- secondaryForeground: colors.black,
558
- // Texte noir sur or
559
- muted: colors.christmas.muted,
560
- // Vert très foncé
561
- mutedForeground: colors.christmas.textSecondary,
562
- // Texte doré
563
- accent: colors.christmas.accent,
564
- // Blanc neige
565
- accentForeground: colors.black,
566
- // Texte noir sur blanc
567
- destructive: colors.error600,
568
- // Rouge standard
569
- destructiveForeground: colors.white,
570
- border: colors.christmas.border,
571
- // Bordure verte
572
- input: colors.christmas.surface,
573
- // Input avec fond vert
574
- ring: colors.christmas.primaryLight,
575
- // Anneaux rouge clair
576
- success: colors.christmas.success,
577
- // Vert succès
578
- warning: colors.warning500,
579
- // Orange standard
580
- error: colors.error500,
581
- // Rouge standard
582
- info: colors.info500,
583
- // Bleu standard
584
- transparent: colors.transparent,
585
- gradients: {
586
- primary: [colors.christmas.primaryLight, colors.christmas.primaryDark],
587
- // Rouge dégradé
588
- secondary: [colors.christmas.secondaryLight, colors.christmas.secondaryDark],
589
- // Or dégradé
590
- success: [colors.christmas.successLight, colors.christmas.success],
591
- // Vert dégradé
592
- warning: [colors.warning100, colors.warning600],
593
- // Orange standard
594
- error: [colors.error100, colors.error600],
595
- // Rouge standard
596
- info: [colors.info100, colors.info600],
597
- // Bleu standard
598
- subtle: [colors.christmas.background, colors.christmas.muted],
599
- // Vert foncé vers très foncé
600
- vibrant: [colors.christmas.accentLight, colors.christmas.primary]
601
- // Blanc vers rouge
602
- }
603
- });
604
-
605
- // foundation/theme/config/definitions/dark.theme.ts
606
- var darkTheme = createTheme({
607
- background: colors.black,
608
- foreground: colors.white,
609
- card: colors.primary900,
610
- cardForeground: colors.gray100,
611
- primary: colors.primary500,
612
- primaryForeground: colors.white,
613
- secondary: colors.secondary500,
614
- secondaryForeground: colors.white,
615
- muted: colors.primary900,
616
- mutedForeground: colors.gray500,
617
- accent: colors.primary900,
618
- accentForeground: colors.primary200,
619
- destructive: colors.error500,
620
- destructiveForeground: colors.white,
621
- border: colors.primary800,
622
- input: colors.primary900,
623
- ring: colors.secondary600,
624
- success: colors.success500,
625
- warning: colors.warning500,
626
- error: colors.error500,
627
- info: colors.info500,
628
- transparent: colors.transparent,
629
- gradients: {
630
- // Dégradé Institutionnel : Bleu très sombre vers Noir (effet profondeur)
631
- primary: [colors.primary800, colors.black],
632
- // Dégradé Électrique : Midnight Blue vers Noir
633
- secondary: [colors.secondary900, colors.black],
634
- // Mélange Signature Flipove Dark : Transition sombre et mystérieuse
635
- vibrant: [colors.primary800, colors.secondary900],
636
- // États : On part du sombre vers le noir pour un effet "Glow" subtil
637
- success: [colors.success50, colors.success100],
638
- warning: [colors.warning50, colors.warning100],
639
- error: [colors.error50, colors.error100],
640
- info: [colors.primary50, colors.primary200],
641
- // Dégradé de fond ultra-profond
642
- subtle: [colors.primary900, colors.black]
643
- }
644
- });
645
-
646
- // foundation/theme/config/definitions/halloween.theme.ts
647
- var halloweenTheme = createTheme({
648
- // 🎃 Halloween - Sombre et mystérieux
649
- background: colors.halloween.background,
650
- // Noir absolu
651
- foreground: colors.halloween.text,
652
- // Texte orange
653
- card: colors.halloween.surface,
654
- // Gris très foncé
655
- cardForeground: colors.halloween.text,
656
- primary: colors.halloween.primary,
657
- // Orange citrouille
658
- primaryForeground: colors.black,
659
- // Texte noir sur orange
660
- secondary: colors.halloween.secondary,
661
- // Brun chocolat
662
- secondaryForeground: colors.white,
663
- // Texte blanc sur brun
664
- muted: colors.halloween.muted,
665
- // Noir absolu
666
- mutedForeground: colors.halloween.textSecondary,
667
- // Texte doré
668
- accent: colors.halloween.accent,
669
- // Violet magique
670
- accentForeground: colors.white,
671
- // Texte blanc sur violet
672
- destructive: colors.error600,
673
- // Rouge standard
674
- destructiveForeground: colors.white,
675
- border: colors.halloween.border,
676
- // Bordure grise
677
- input: colors.halloween.surface,
678
- // Input avec fond gris
679
- ring: colors.halloween.primaryLight,
680
- // Anneaux orange clair
681
- success: colors.halloween.success,
682
- // Vert sorcière
683
- warning: colors.warning500,
684
- // Orange standard
685
- error: colors.error500,
686
- // Rouge standard
687
- info: colors.info500,
688
- // Bleu standard
689
- transparent: colors.transparent,
690
- gradients: {
691
- primary: [colors.halloween.primaryLight, colors.halloween.primaryDark],
692
- // Orange dégradé
693
- secondary: [colors.halloween.secondaryLight, colors.halloween.secondaryDark],
694
- // Brun dégradé
695
- success: [colors.halloween.successLight, colors.halloween.success],
696
- // Vert dégradé
697
- warning: [colors.warning100, colors.warning600],
698
- // Orange standard
699
- error: [colors.error100, colors.error600],
700
- // Rouge standard
701
- info: [colors.info100, colors.info600],
702
- // Bleu standard
703
- subtle: [colors.halloween.background, colors.halloween.muted],
704
- // Noir vers gris
705
- vibrant: [colors.halloween.accentLight, colors.halloween.primary]
706
- // Violet vers orange
707
- }
708
- });
709
-
710
- // foundation/theme/config/definitions/light.theme.ts
711
- var lightTheme = createTheme({
712
- background: colors.white,
713
- foreground: colors.black,
714
- card: colors.primary50,
715
- cardForeground: colors.primary900,
716
- primary: colors.primary500,
717
- primaryForeground: colors.white,
718
- secondary: colors.secondary500,
719
- secondaryForeground: colors.white,
720
- muted: colors.gray100,
721
- mutedForeground: colors.gray500,
722
- accent: colors.secondary50,
723
- accentForeground: colors.secondary700,
724
- destructive: colors.error600,
725
- destructiveForeground: colors.white,
726
- border: colors.primary100,
727
- input: colors.white,
728
- ring: colors.primary500,
729
- success: colors.success600,
730
- warning: colors.warning600,
731
- error: colors.error600,
732
- info: colors.info600,
733
- transparent: colors.transparent,
734
- gradients: {
735
- // Dégradé Institutionnel : Très aérien (idéal pour des fonds de cartes ou headers légers)
736
- primary: [colors.primary50, colors.white],
737
- // Dégradé Électrique : Lumineux et frais
738
- secondary: [colors.secondary200, colors.white],
739
- // Mélange Signature Flipove : Version "Aurore" (douce transition entre les deux bleus clairs)
740
- vibrant: [colors.primary100, colors.secondary100],
741
- // États : Nuances claires pour ne pas agresser l'œil en mode Light
742
- success: [colors.success50, colors.success100],
743
- warning: [colors.warning50, colors.warning100],
744
- error: [colors.error50, colors.error100],
745
- info: [colors.primary50, colors.primary200],
746
- // Dégradé de fond ultra-subtle
747
- subtle: [colors.white, colors.primary50]
748
- }
749
- });
750
-
751
- // foundation/theme/config/definitions/neon.theme.ts
752
- var neonTheme = createTheme({
753
- // Fond violet presque transparent et brillant
754
- background: colors.neon.background,
755
- // Violet très foncé et transparent
756
- foreground: colors.neon.text,
757
- // Blanc pur pour contraste maximal
758
- card: colors.neon.surface,
759
- // Surface violet clair
760
- cardForeground: colors.neon.text,
761
- // Couleurs principales - Vibrantes et brillantes
762
- primary: colors.neon.primary,
763
- // Violet vif et brillant
764
- primaryForeground: colors.black,
765
- // Texte noir sur violet brillant
766
- secondary: colors.neon.secondary,
767
- // Cyan électrique brillant
768
- secondaryForeground: colors.black,
769
- // Texte noir sur cyan
770
- // Éléments en retrait et accents brillants
771
- muted: colors.neon.muted,
772
- // Violet foncé pour éléments discrets
773
- mutedForeground: colors.neon.textSecondary,
774
- // Texte secondaire violet clair
775
- accent: colors.neon.accent,
776
- // Rose neon vif
777
- accentForeground: colors.white,
778
- // Texte blanc sur rose
779
- // Actions et états
780
- destructive: colors.error600,
781
- // Rouge standard pour erreurs
782
- destructiveForeground: colors.white,
783
- border: colors.neon.border,
784
- // Bordures violettes vibrantes
785
- input: colors.neon.surface,
786
- // Input avec fond de surface
787
- ring: colors.neon.primaryLight,
788
- // Anneaux avec violet très brillant
789
- // États sémantiques - Couleurs brillantes
790
- success: colors.neon.success,
791
- // Vert électrique brillant
792
- warning: colors.warning500,
793
- // Orange standard
794
- error: colors.error500,
795
- // Rouge standard
796
- info: colors.neon.secondary,
797
- // Cyan brillant pour informations
798
- transparent: colors.transparent,
799
- // Dégradés - Vibrants et électriques
800
- gradients: {
801
- primary: [colors.neon.primaryLight, colors.neon.primaryDark],
802
- // Violet brillant dégradé
803
- secondary: [colors.neon.secondaryLight, colors.neon.secondaryDark],
804
- // Cyan électrique dégradé
805
- success: [colors.neon.successLight, colors.neon.success],
806
- // Vert électrique dégradé
807
- warning: [colors.warning100, colors.warning600],
808
- // Orange standard
809
- error: [colors.error100, colors.error600],
810
- // Rouge standard
811
- info: [colors.neon.secondaryLight, colors.neon.secondaryDark],
812
- // Cyan brillant dégradé
813
- subtle: [colors.neon.background, colors.neon.muted],
814
- // Violet transparent vers foncé
815
- vibrant: [colors.neon.accentLight, colors.neon.primary]
816
- // Rose vers violet brillant
817
- }
818
- });
819
-
820
- // foundation/theme/config/definitions/spring.theme.ts
821
- var springTheme = createTheme({
822
- // 🌸 Printemps - Frais et floral
823
- background: colors.spring.background,
824
- // Blanc cassé très clair
825
- foreground: colors.spring.text,
826
- // Texte gris foncé
827
- card: colors.spring.surface,
828
- // Blanc pur pour les cartes
829
- cardForeground: colors.spring.text,
830
- primary: colors.spring.primary,
831
- // Rose printanier
832
- primaryForeground: colors.white,
833
- // Texte blanc sur rose
834
- secondary: colors.spring.secondary,
835
- // Vert frais
836
- secondaryForeground: colors.white,
837
- // Texte blanc sur vert
838
- muted: colors.spring.muted,
839
- // Gris très clair
840
- mutedForeground: colors.spring.textSecondary,
841
- // Texte secondaire
842
- accent: colors.spring.accent,
843
- // Jaune doux
844
- accentForeground: colors.black,
845
- // Texte noir sur jaune
846
- destructive: colors.error600,
847
- // Rouge standard
848
- destructiveForeground: colors.white,
849
- border: colors.spring.border,
850
- // Bordure douce
851
- input: colors.spring.surface,
852
- // Input avec fond blanc
853
- ring: colors.spring.primaryLight,
854
- // Anneaux rose clair
855
- success: colors.spring.success,
856
- // Vert printanier
857
- warning: colors.warning500,
858
- // Orange standard
859
- error: colors.error500,
860
- // Rouge standard
861
- info: colors.info500,
862
- // Bleu standard
863
- transparent: colors.transparent,
864
- gradients: {
865
- primary: [colors.spring.primaryLight, colors.spring.primaryDark],
866
- // Rose dégradé
867
- secondary: [colors.spring.secondaryLight, colors.spring.secondaryDark],
868
- // Vert dégradé
869
- success: [colors.spring.successLight, colors.spring.success],
870
- // Vert dégradé
871
- warning: [colors.warning100, colors.warning600],
872
- // Orange standard
873
- error: [colors.error100, colors.error600],
874
- // Rouge standard
875
- info: [colors.info100, colors.info600],
876
- // Bleu standard
877
- subtle: [colors.spring.background, colors.spring.muted],
878
- // Blanc cassé vers gris
879
- vibrant: [colors.spring.accentLight, colors.spring.primary]
880
- // Jaune vers rose
881
- }
882
- });
883
-
884
- // foundation/theme/config/definitions/summer.theme.ts
885
- var summerTheme = createTheme({
886
- // ☀️ Été - Vibrant et solaire
887
- background: colors.summer.background,
888
- // Jaune crème très clair
889
- foreground: colors.summer.text,
890
- // Texte brun doré
891
- card: colors.summer.surface,
892
- // Blanc pur
893
- cardForeground: colors.summer.text,
894
- primary: colors.summer.primary,
895
- // Orange solaire
896
- primaryForeground: colors.white,
897
- // Texte blanc sur orange
898
- secondary: colors.summer.secondary,
899
- // Rouge vif
900
- secondaryForeground: colors.white,
901
- // Texte blanc sur rouge
902
- muted: colors.summer.muted,
903
- // Jaune très clair
904
- mutedForeground: colors.summer.textSecondary,
905
- // Texte secondaire
906
- accent: colors.summer.accent,
907
- // Bleu ciel
908
- accentForeground: colors.white,
909
- // Texte blanc sur bleu
910
- destructive: colors.error600,
911
- // Rouge standard
912
- destructiveForeground: colors.white,
913
- border: colors.summer.border,
914
- // Bordure jaune
915
- input: colors.summer.surface,
916
- // Input avec fond blanc
917
- ring: colors.summer.primaryLight,
918
- // Anneaux jaune vif
919
- success: colors.summer.success,
920
- // Vert frais
921
- warning: colors.warning500,
922
- // Orange standard
923
- error: colors.error500,
924
- // Rouge standard
925
- info: colors.info500,
926
- // Bleu standard
927
- transparent: colors.transparent,
928
- gradients: {
929
- primary: [colors.summer.primaryLight, colors.summer.primaryDark],
930
- // Jaune vers orange
931
- secondary: [colors.summer.secondaryLight, colors.summer.secondaryDark],
932
- // Rouge dégradé
933
- success: [colors.summer.successLight, colors.summer.success],
934
- // Vert dégradé
935
- warning: [colors.warning100, colors.warning600],
936
- // Orange standard
937
- error: [colors.error100, colors.error600],
938
- // Rouge standard
939
- info: [colors.info100, colors.info600],
940
- // Bleu standard
941
- subtle: [colors.summer.background, colors.summer.muted],
942
- // Jaune crème vers clair
943
- vibrant: [colors.summer.accentLight, colors.summer.primary]
944
- // Bleu vers orange
945
- }
946
- });
947
-
948
- // foundation/theme/config/definitions/winter.theme.ts
949
- var winterTheme = createTheme({
950
- // ❄️ Hiver - Glacial et élégant
951
- background: colors.winter.background,
952
- // Bleu nuit très foncé
953
- foreground: colors.winter.text,
954
- // Texte blanc glacial
955
- card: colors.winter.surface,
956
- // Bleu nuit clair
957
- cardForeground: colors.winter.text,
958
- primary: colors.winter.primary,
959
- // Bleu glacial
960
- primaryForeground: colors.white,
961
- // Texte blanc sur bleu
962
- secondary: colors.winter.secondary,
963
- // Blanc argenté
964
- secondaryForeground: colors.black,
965
- // Texte noir sur argent
966
- muted: colors.winter.muted,
967
- // Bleu nuit
968
- mutedForeground: colors.winter.textSecondary,
969
- // Texte argenté
970
- accent: colors.winter.accent,
971
- // Violet givré
972
- accentForeground: colors.white,
973
- // Texte blanc sur violet
974
- destructive: colors.error600,
975
- // Rouge standard
976
- destructiveForeground: colors.white,
977
- border: colors.winter.border,
978
- // Bordure bleue
979
- input: colors.winter.surface,
980
- // Input avec fond bleu nuit
981
- ring: colors.winter.primaryLight,
982
- // Anneaux bleu clair
983
- success: colors.winter.success,
984
- // Vert sapin
985
- warning: colors.warning500,
986
- // Orange standard
987
- error: colors.error500,
988
- // Rouge standard
989
- info: colors.info500,
990
- // Bleu standard
991
- transparent: colors.transparent,
992
- gradients: {
993
- primary: [colors.winter.primaryLight, colors.winter.primaryDark],
994
- // Bleu dégradé
995
- secondary: [colors.winter.secondaryLight, colors.winter.secondaryDark],
996
- // Argent dégradé
997
- success: [colors.winter.successLight, colors.winter.success],
998
- // Vert dégradé
999
- warning: [colors.warning100, colors.warning600],
1000
- // Orange standard
1001
- error: [colors.error100, colors.error600],
1002
- // Rouge standard
1003
- info: [colors.info100, colors.info600],
1004
- // Bleu standard
1005
- subtle: [colors.winter.background, colors.winter.muted],
1006
- // Bleu nuit vers clair
1007
- vibrant: [colors.winter.accentLight, colors.winter.primary]
1008
- // Violet vers bleu
1009
- }
1010
- });
1011
- function useColorScheme(theme) {
1012
- const nativeScheme = useColorScheme$1();
1013
- return nativeScheme ?? "light";
1014
- }
1015
- var ThemeContext = createContext(null);
1016
- var ThemeProvider = ({
1017
- children,
1018
- defaultTheme,
1019
- customThemes = {}
1020
- }) => {
1021
- const systemColorScheme = useColorScheme();
1022
- const [currentTheme, setCurrentTheme] = useState(
1023
- defaultTheme || systemColorScheme
1024
- );
1025
- const [isManualSelection, setIsManualSelection] = useState(false);
1026
- const themeRegistry = {
1027
- light: lightTheme,
1028
- dark: darkTheme,
1029
- neon: neonTheme,
1030
- spring: springTheme,
1031
- summer: summerTheme,
1032
- autumn: autumnTheme,
1033
- winter: winterTheme,
1034
- halloween: halloweenTheme,
1035
- christmas: christmasTheme,
1036
- ...customThemes
1037
- };
1038
- useEffect(() => {
1039
- if (defaultTheme) {
1040
- setCurrentTheme(defaultTheme);
1041
- }
1042
- }, [defaultTheme]);
1043
- useEffect(() => {
1044
- if (defaultTheme && customThemes && Object.keys(customThemes).length > 0) {
1045
- setCurrentTheme((prev) => prev);
1046
- }
1047
- }, [customThemes, defaultTheme]);
1048
- useEffect(() => {
1049
- if (!isManualSelection && !defaultTheme) {
1050
- setCurrentTheme(systemColorScheme);
1051
- }
1052
- }, [systemColorScheme, defaultTheme, isManualSelection]);
1053
- const setTheme = (theme) => {
1054
- if (themeRegistry[theme]) {
1055
- setCurrentTheme(theme);
1056
- setIsManualSelection(true);
1057
- } else {
1058
- console.warn(`Theme "${theme}" is not available. Available themes:`, Object.keys(themeRegistry));
1059
- }
1060
- };
1061
- const activeTheme = themeRegistry[currentTheme] || lightTheme;
1062
- const value = {
1063
- theme: activeTheme,
1064
- mode: currentTheme,
1065
- setTheme,
1066
- availableThemes: themeRegistry
1067
- };
1068
- return /* @__PURE__ */ jsx(ThemeContext.Provider, { value, children });
1069
- };
1070
- var ConfigContext = createContext(null);
1071
- function useFoundationConfig() {
1072
- const ctx = useContext(ConfigContext);
1073
- if (!ctx) {
1074
- throw new Error("useFoundationConfig must be used within FoundationProvider");
1075
- }
1076
- return ctx;
1077
- }
1078
- function useTokens() {
1079
- return useFoundationConfig().tokens;
1080
- }
1081
- var FoundationProvider = ({
1082
- children,
1083
- config
1084
- }) => {
1085
- const resolved = useMemo(() => resolveConfig(config), [config]);
1086
- return /* @__PURE__ */ jsx(ConfigContext.Provider, { value: resolved, children: /* @__PURE__ */ jsx(
1087
- ThemeProvider,
1088
- {
1089
- defaultTheme: resolved.defaultTheme,
1090
- customThemes: resolved.themes,
1091
- children
1092
- }
1093
- ) });
1094
- };
1095
-
1096
- export { FoundationProvider, defineConfig, resolveConfig, useFoundationConfig, useTokens };
1
+ export { FoundationProvider, defineConfig, resolveConfig, useFoundationConfig, useTokens } from '../chunk-SYHGZT2M.mjs';
1097
2
  //# sourceMappingURL=index.mjs.map
1098
3
  //# sourceMappingURL=index.mjs.map