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