@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.
- package/CHANGELOG.md +107 -0
- package/LICENSE +21 -0
- package/README.md +268 -0
- package/dist/config/index.d.mts +128 -0
- package/dist/config/index.d.ts +128 -0
- package/dist/config/index.js +1104 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/index.mjs +1098 -0
- package/dist/config/index.mjs.map +1 -0
- package/dist/index-D4qJw_Et.d.mts +55 -0
- package/dist/index-D4qJw_Et.d.ts +55 -0
- package/dist/index.d.mts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +9563 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +9381 -0
- package/dist/index.mjs.map +1 -0
- package/dist/layout/index.d.mts +2340 -0
- package/dist/layout/index.d.ts +2340 -0
- package/dist/layout/index.js +9275 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/layout/index.mjs +9124 -0
- package/dist/layout/index.mjs.map +1 -0
- package/dist/primitives-DVX2q5St.d.mts +195 -0
- package/dist/primitives-nj-4at-g.d.ts +195 -0
- package/dist/spacing-CXUulLF9.d.mts +128 -0
- package/dist/spacing-CXUulLF9.d.ts +128 -0
- package/dist/studio/cli/index.d.mts +1 -0
- package/dist/studio/cli/index.d.ts +1 -0
- package/dist/studio/cli/index.js +4823 -0
- package/dist/studio/cli/index.js.map +1 -0
- package/dist/studio/cli/index.mjs +4798 -0
- package/dist/studio/cli/index.mjs.map +1 -0
- package/dist/studio/index.d.mts +441 -0
- package/dist/studio/index.d.ts +441 -0
- package/dist/studio/index.js +4919 -0
- package/dist/studio/index.js.map +1 -0
- package/dist/studio/index.mjs +4876 -0
- package/dist/studio/index.mjs.map +1 -0
- package/dist/theme/index.d.mts +122 -0
- package/dist/theme/index.d.ts +122 -0
- package/dist/theme/index.js +840 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/index.mjs +826 -0
- package/dist/theme/index.mjs.map +1 -0
- package/dist/tokens/index.d.mts +288 -0
- package/dist/tokens/index.d.ts +288 -0
- package/dist/tokens/index.js +404 -0
- package/dist/tokens/index.js.map +1 -0
- package/dist/tokens/index.mjs +390 -0
- package/dist/tokens/index.mjs.map +1 -0
- package/dist/web/index.d.mts +778 -0
- package/dist/web/index.d.ts +778 -0
- package/dist/web/index.js +5813 -0
- package/dist/web/index.js.map +1 -0
- package/dist/web/index.mjs +5708 -0
- package/dist/web/index.mjs.map +1 -0
- package/package.json +196 -0
- package/studio/README.md +154 -0
- package/studio/app/dist/_expo/static/js/web/entry-39d36897d2758a1d36b9ce16995ecc83.js +15379 -0
- package/studio/app/dist/_expo/static/js/web/index-f0c66517963047bf2c0bdd371afb8d31.js +4 -0
- package/studio/app/dist/_expo/static/js/web/index-fb59148d0b266219e66b19aeca8e2086.js +3 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/AntDesign.3f78af31cca60105799838a1a7a59fbd.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Entypo.31b5ffea3daddc69dd01a1f3d6cf63c5.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/EvilIcons.140c53a7643ea949007aa9a282153849.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Feather.ca4b48e04dc1ce10bfbddb262c8b835f.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome.b06871f281fee6b241d60582ae9369b9.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Brands.3b89dd103490708d19a95adcae52210e.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Regular.1f77739ca9ff2188b539c36f30ffa2be.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Solid.605ed7926cf39a2ad5ec2d1f9d391d3d.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Brands.56c8d80832e37783f12c05db7c8849e2.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Regular.370dd5af19f8364907b6e2c41f45dbbf.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Solid.adec7d6f310bc577f05e8fe06a5daccf.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Fontisto.b49ae8ab2dbccb02c4d11caaacf09eab.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Foundation.e20945d7c929279ef7a6f1db184a4470.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Ionicons.b4eb097d35f44ed943676fd56f6bdc51.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialCommunityIcons.6e435534bd35da5fef04168860a9b8fa.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialIcons.4e85bc9ebe07e0340c9c4fc2f6c38908.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Octicons.871378c6eab492a3e689a9385dc45a12.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/SimpleLineIcons.d2285965fe34b05465047401b8595dd0.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Zocial.1681f34aaca71b8dfb70756bca331eb2.ttf +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/arrow_down.017bc6ba3fc25503e5eb5e53826d48a8.png +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/error.d1ea1496f9057eb392d5bbf3732a61b7.png +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/file.19eeb73b9593a38f8e9f418337fc7d10.png +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/forward.d8b800c443b8972542883e0b9de2bdc6.png +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/pkg.ab19f4cbc543357183a20571f68380a3.png +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/sitemap.412dd9275b6b48ad28f5e3d81bb1f626.png +0 -0
- package/studio/app/dist/assets/__node_modules/expo-router/assets/unmatched.20e71bdf79e3a97bf55fd9e164041578.png +0 -0
- package/studio/app/dist/index.html +37 -0
- package/studio/app/dist/metadata.json +1 -0
|
@@ -0,0 +1,840 @@
|
|
|
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/theme/providers/ThemeProvider.tsx
|
|
8
|
+
|
|
9
|
+
// foundation/tokens/colors.ts
|
|
10
|
+
var colors = {
|
|
11
|
+
white: "#FFFFFF",
|
|
12
|
+
black: "#000000",
|
|
13
|
+
gray50: "#F9FAFB",
|
|
14
|
+
gray100: "#F3F4F6",
|
|
15
|
+
gray200: "#E5E7EB",
|
|
16
|
+
gray500: "#6B7280",
|
|
17
|
+
gray600: "#4B5563",
|
|
18
|
+
gray900: "#111827",
|
|
19
|
+
primary50: "#E5E5F4",
|
|
20
|
+
primary100: "#CCCCE9",
|
|
21
|
+
primary200: "#9999D3",
|
|
22
|
+
primary400: "#3333A7",
|
|
23
|
+
primary500: "#000091",
|
|
24
|
+
primary600: "#000082",
|
|
25
|
+
primary800: "#000055",
|
|
26
|
+
primary900: "#00003D",
|
|
27
|
+
secondary50: "#E7E7FF",
|
|
28
|
+
secondary100: "#CFCFFF",
|
|
29
|
+
secondary200: "#9F9FFF",
|
|
30
|
+
secondary400: "#3F3FFF",
|
|
31
|
+
secondary500: "#0D0EFF",
|
|
32
|
+
secondary600: "#0B0CD6",
|
|
33
|
+
secondary700: "#0809AD",
|
|
34
|
+
secondary900: "#03035C",
|
|
35
|
+
success50: "#F0FDF4",
|
|
36
|
+
success100: "#DCFCE7",
|
|
37
|
+
success500: "#22C55E",
|
|
38
|
+
success600: "#16A34A",
|
|
39
|
+
warning50: "#FFFBEB",
|
|
40
|
+
warning100: "#FEF3C7",
|
|
41
|
+
warning500: "#F59E0B",
|
|
42
|
+
warning600: "#D97706",
|
|
43
|
+
error50: "#FEF2F2",
|
|
44
|
+
error100: "#FEE2E2",
|
|
45
|
+
error500: "#EF4444",
|
|
46
|
+
error600: "#DC2626",
|
|
47
|
+
info100: "#DBEAFE",
|
|
48
|
+
info500: "#3B82F6",
|
|
49
|
+
info600: "#2563EB",
|
|
50
|
+
neon: {
|
|
51
|
+
background: "#1A0033",
|
|
52
|
+
surface: "#2D0047",
|
|
53
|
+
primary: "#9200db",
|
|
54
|
+
primaryLight: "#4200589f",
|
|
55
|
+
primaryDark: "#2c0150ff",
|
|
56
|
+
secondary: "#00E5FF",
|
|
57
|
+
secondaryLight: "#66FFFF",
|
|
58
|
+
secondaryDark: "#00ACC1",
|
|
59
|
+
accent: "#FF006E",
|
|
60
|
+
accentLight: "#FF4081",
|
|
61
|
+
success: "#00FF88",
|
|
62
|
+
successLight: "#66FFAA",
|
|
63
|
+
muted: "#3D0066",
|
|
64
|
+
border: "#520080",
|
|
65
|
+
text: "#FFFFFF",
|
|
66
|
+
textSecondary: "#B3B3CC"
|
|
67
|
+
},
|
|
68
|
+
spring: {
|
|
69
|
+
background: "#F0F4F8",
|
|
70
|
+
surface: "#FFFFFF",
|
|
71
|
+
primary: "#5a0832de",
|
|
72
|
+
primaryLight: "#FBCFE8",
|
|
73
|
+
primaryDark: "#DB2777",
|
|
74
|
+
secondary: "#4ADE80",
|
|
75
|
+
secondaryLight: "#BBF7D0",
|
|
76
|
+
secondaryDark: "#166534",
|
|
77
|
+
accent: "#8B5CF6",
|
|
78
|
+
accentLight: "#C4B5FD",
|
|
79
|
+
success: "#10B981",
|
|
80
|
+
successLight: "#D1FAE5",
|
|
81
|
+
muted: "#E2E8F0",
|
|
82
|
+
border: "#CBD5E1CC",
|
|
83
|
+
text: "#334155",
|
|
84
|
+
textSecondary: "#64748B"
|
|
85
|
+
},
|
|
86
|
+
summer: {
|
|
87
|
+
background: "#FEF3C7",
|
|
88
|
+
surface: "#FFFFFF",
|
|
89
|
+
primary: "#301f01ff",
|
|
90
|
+
primaryLight: "#FCD34D",
|
|
91
|
+
primaryDark: "#D97706",
|
|
92
|
+
secondary: "#EF4444",
|
|
93
|
+
secondaryLight: "#F87171",
|
|
94
|
+
secondaryDark: "#DC2626",
|
|
95
|
+
accent: "#3B82F6",
|
|
96
|
+
accentLight: "#60A5FA",
|
|
97
|
+
success: "#10B981",
|
|
98
|
+
successLight: "#34D399",
|
|
99
|
+
muted: "#FEF9C3",
|
|
100
|
+
border: "#FDE68A",
|
|
101
|
+
text: "#78350F",
|
|
102
|
+
textSecondary: "#92400E"
|
|
103
|
+
},
|
|
104
|
+
autumn: {
|
|
105
|
+
background: "#2D1B14",
|
|
106
|
+
surface: "#4A2C2A",
|
|
107
|
+
primary: "#000000ff",
|
|
108
|
+
primaryLight: "#FB923C",
|
|
109
|
+
primaryDark: "#C2410C",
|
|
110
|
+
secondary: "#A16207",
|
|
111
|
+
secondaryLight: "#CA8A04",
|
|
112
|
+
secondaryDark: "#854D0E",
|
|
113
|
+
accent: "#DC2626",
|
|
114
|
+
accentLight: "#EF4444",
|
|
115
|
+
success: "#16A34A",
|
|
116
|
+
successLight: "#22C55E",
|
|
117
|
+
muted: "#451A03",
|
|
118
|
+
border: "#7C2D12",
|
|
119
|
+
text: "#FEF3C7",
|
|
120
|
+
textSecondary: "#FDE68A"
|
|
121
|
+
},
|
|
122
|
+
winter: {
|
|
123
|
+
background: "#0F172A",
|
|
124
|
+
surface: "#1E293B",
|
|
125
|
+
primary: "#253a5aff",
|
|
126
|
+
primaryLight: "#38BDF8",
|
|
127
|
+
primaryDark: "#0284C7",
|
|
128
|
+
secondary: "#E2E8F0",
|
|
129
|
+
secondaryLight: "#F1F5F9",
|
|
130
|
+
secondaryDark: "#CBD5E1",
|
|
131
|
+
accent: "#8B5CF6",
|
|
132
|
+
accentLight: "#A78BFA",
|
|
133
|
+
success: "#10B981",
|
|
134
|
+
successLight: "#34D399",
|
|
135
|
+
muted: "#1E293B",
|
|
136
|
+
border: "#334155",
|
|
137
|
+
text: "#F8FAFC",
|
|
138
|
+
textSecondary: "#CBD5E1"
|
|
139
|
+
},
|
|
140
|
+
halloween: {
|
|
141
|
+
background: "#080510",
|
|
142
|
+
surface: "#120E1F",
|
|
143
|
+
primary: "#7C3AEDCC",
|
|
144
|
+
primaryLight: "#A78BFA",
|
|
145
|
+
primaryDark: "#4C1D95",
|
|
146
|
+
secondary: "#10B981",
|
|
147
|
+
secondaryLight: "#34D399",
|
|
148
|
+
secondaryDark: "#065F46",
|
|
149
|
+
accent: "#94A3B8",
|
|
150
|
+
accentLight: "#E2E8F0",
|
|
151
|
+
success: "#059669",
|
|
152
|
+
successLight: "#A7F3D0",
|
|
153
|
+
muted: "#1F1B2E",
|
|
154
|
+
border: "#2E2845",
|
|
155
|
+
text: "#F8FAFC",
|
|
156
|
+
textSecondary: "#9D84B7"
|
|
157
|
+
},
|
|
158
|
+
christmas: {
|
|
159
|
+
background: "#0A2417",
|
|
160
|
+
surface: "#123D29",
|
|
161
|
+
primary: "#3f991bcc",
|
|
162
|
+
primaryLight: "#C24141",
|
|
163
|
+
primaryDark: "#7F1D1D",
|
|
164
|
+
secondary: "#C5A059",
|
|
165
|
+
secondaryLight: "#E3C58B",
|
|
166
|
+
secondaryDark: "#926D27",
|
|
167
|
+
accent: "#F8FAFC",
|
|
168
|
+
accentLight: "#FFFFFF",
|
|
169
|
+
success: "#15803D",
|
|
170
|
+
successLight: "#22C55E",
|
|
171
|
+
muted: "#1E3A2B",
|
|
172
|
+
border: "#2D5A43",
|
|
173
|
+
text: "#F1F5F9",
|
|
174
|
+
textSecondary: "#D4AF37"
|
|
175
|
+
},
|
|
176
|
+
transparent: "transparent"
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
// foundation/theme/config/create.theme.ts
|
|
180
|
+
var createTheme = (overrides = {}) => ({
|
|
181
|
+
background: colors.white,
|
|
182
|
+
foreground: colors.gray900,
|
|
183
|
+
card: colors.white,
|
|
184
|
+
cardForeground: colors.gray900,
|
|
185
|
+
primary: colors.primary600,
|
|
186
|
+
primaryForeground: colors.white,
|
|
187
|
+
secondary: colors.secondary600,
|
|
188
|
+
secondaryForeground: colors.white,
|
|
189
|
+
muted: colors.gray100,
|
|
190
|
+
mutedForeground: colors.gray600,
|
|
191
|
+
accent: colors.primary50,
|
|
192
|
+
accentForeground: colors.primary900,
|
|
193
|
+
destructive: colors.error600,
|
|
194
|
+
destructiveForeground: colors.white,
|
|
195
|
+
border: colors.gray200,
|
|
196
|
+
input: colors.gray200,
|
|
197
|
+
ring: colors.primary600,
|
|
198
|
+
success: colors.success600,
|
|
199
|
+
warning: colors.warning600,
|
|
200
|
+
error: colors.error600,
|
|
201
|
+
info: colors.info600,
|
|
202
|
+
transparent: colors.transparent,
|
|
203
|
+
gradients: {
|
|
204
|
+
primary: [colors.primary400, colors.primary600],
|
|
205
|
+
secondary: [colors.secondary400, colors.secondary600],
|
|
206
|
+
success: [colors.success500, colors.success600],
|
|
207
|
+
warning: [colors.warning500, colors.warning600],
|
|
208
|
+
error: [colors.error500, colors.error600],
|
|
209
|
+
info: [colors.info500, colors.info600],
|
|
210
|
+
subtle: [colors.gray50, colors.gray100],
|
|
211
|
+
vibrant: [colors.primary500, colors.secondary500]
|
|
212
|
+
},
|
|
213
|
+
...overrides
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
// foundation/theme/config/definitions/autumn.theme.ts
|
|
217
|
+
var autumnTheme = createTheme({
|
|
218
|
+
// 🍂 Automne - Chaleureux et terrien
|
|
219
|
+
background: colors.autumn.background,
|
|
220
|
+
// Brun très foncé
|
|
221
|
+
foreground: colors.autumn.text,
|
|
222
|
+
// Texte crème
|
|
223
|
+
card: colors.autumn.surface,
|
|
224
|
+
// Brun clair
|
|
225
|
+
cardForeground: colors.autumn.text,
|
|
226
|
+
primary: colors.autumn.primary,
|
|
227
|
+
// Orange automnal
|
|
228
|
+
primaryForeground: colors.white,
|
|
229
|
+
// Texte blanc sur orange
|
|
230
|
+
secondary: colors.autumn.secondary,
|
|
231
|
+
// Or doré
|
|
232
|
+
secondaryForeground: colors.black,
|
|
233
|
+
// Texte noir sur or
|
|
234
|
+
muted: colors.autumn.muted,
|
|
235
|
+
// Brun très foncé
|
|
236
|
+
mutedForeground: colors.autumn.textSecondary,
|
|
237
|
+
// Texte secondaire
|
|
238
|
+
accent: colors.autumn.accent,
|
|
239
|
+
// Rouge feuille
|
|
240
|
+
accentForeground: colors.white,
|
|
241
|
+
// Texte blanc sur rouge
|
|
242
|
+
destructive: colors.error600,
|
|
243
|
+
// Rouge standard
|
|
244
|
+
destructiveForeground: colors.white,
|
|
245
|
+
border: colors.autumn.border,
|
|
246
|
+
// Bordure brun
|
|
247
|
+
input: colors.autumn.surface,
|
|
248
|
+
// Input avec fond brun
|
|
249
|
+
ring: colors.autumn.primaryLight,
|
|
250
|
+
// Anneaux orange clair
|
|
251
|
+
success: colors.autumn.success,
|
|
252
|
+
// Vert forêt
|
|
253
|
+
warning: colors.warning500,
|
|
254
|
+
// Orange standard
|
|
255
|
+
error: colors.error500,
|
|
256
|
+
// Rouge standard
|
|
257
|
+
info: colors.info500,
|
|
258
|
+
// Bleu standard
|
|
259
|
+
transparent: colors.transparent,
|
|
260
|
+
gradients: {
|
|
261
|
+
primary: [colors.autumn.primaryLight, colors.autumn.primaryDark],
|
|
262
|
+
// Orange dégradé
|
|
263
|
+
secondary: [colors.autumn.secondaryLight, colors.autumn.secondaryDark],
|
|
264
|
+
// Or dégradé
|
|
265
|
+
success: [colors.autumn.successLight, colors.autumn.success],
|
|
266
|
+
// Vert dégradé
|
|
267
|
+
warning: [colors.warning100, colors.warning600],
|
|
268
|
+
// Orange standard
|
|
269
|
+
error: [colors.error100, colors.error600],
|
|
270
|
+
// Rouge standard
|
|
271
|
+
info: [colors.info100, colors.info600],
|
|
272
|
+
// Bleu standard
|
|
273
|
+
subtle: [colors.autumn.background, colors.autumn.muted],
|
|
274
|
+
// Brun foncé vers très foncé
|
|
275
|
+
vibrant: [colors.autumn.accentLight, colors.autumn.primary]
|
|
276
|
+
// Rouge vers orange
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
// foundation/theme/config/definitions/christmas.theme.ts
|
|
281
|
+
var christmasTheme = createTheme({
|
|
282
|
+
// 🎄 Noël - Festif et chaleureux
|
|
283
|
+
background: colors.christmas.background,
|
|
284
|
+
// Vert sapin très foncé
|
|
285
|
+
foreground: colors.christmas.text,
|
|
286
|
+
// Texte blanc neige
|
|
287
|
+
card: colors.christmas.surface,
|
|
288
|
+
// Vert sapin clair
|
|
289
|
+
cardForeground: colors.christmas.text,
|
|
290
|
+
primary: colors.christmas.primary,
|
|
291
|
+
// Rouge Noël
|
|
292
|
+
primaryForeground: colors.white,
|
|
293
|
+
// Texte blanc sur rouge
|
|
294
|
+
secondary: colors.christmas.secondary,
|
|
295
|
+
// Or festif
|
|
296
|
+
secondaryForeground: colors.black,
|
|
297
|
+
// Texte noir sur or
|
|
298
|
+
muted: colors.christmas.muted,
|
|
299
|
+
// Vert très foncé
|
|
300
|
+
mutedForeground: colors.christmas.textSecondary,
|
|
301
|
+
// Texte doré
|
|
302
|
+
accent: colors.christmas.accent,
|
|
303
|
+
// Blanc neige
|
|
304
|
+
accentForeground: colors.black,
|
|
305
|
+
// Texte noir sur blanc
|
|
306
|
+
destructive: colors.error600,
|
|
307
|
+
// Rouge standard
|
|
308
|
+
destructiveForeground: colors.white,
|
|
309
|
+
border: colors.christmas.border,
|
|
310
|
+
// Bordure verte
|
|
311
|
+
input: colors.christmas.surface,
|
|
312
|
+
// Input avec fond vert
|
|
313
|
+
ring: colors.christmas.primaryLight,
|
|
314
|
+
// Anneaux rouge clair
|
|
315
|
+
success: colors.christmas.success,
|
|
316
|
+
// Vert succès
|
|
317
|
+
warning: colors.warning500,
|
|
318
|
+
// Orange standard
|
|
319
|
+
error: colors.error500,
|
|
320
|
+
// Rouge standard
|
|
321
|
+
info: colors.info500,
|
|
322
|
+
// Bleu standard
|
|
323
|
+
transparent: colors.transparent,
|
|
324
|
+
gradients: {
|
|
325
|
+
primary: [colors.christmas.primaryLight, colors.christmas.primaryDark],
|
|
326
|
+
// Rouge dégradé
|
|
327
|
+
secondary: [colors.christmas.secondaryLight, colors.christmas.secondaryDark],
|
|
328
|
+
// Or dégradé
|
|
329
|
+
success: [colors.christmas.successLight, colors.christmas.success],
|
|
330
|
+
// Vert dégradé
|
|
331
|
+
warning: [colors.warning100, colors.warning600],
|
|
332
|
+
// Orange standard
|
|
333
|
+
error: [colors.error100, colors.error600],
|
|
334
|
+
// Rouge standard
|
|
335
|
+
info: [colors.info100, colors.info600],
|
|
336
|
+
// Bleu standard
|
|
337
|
+
subtle: [colors.christmas.background, colors.christmas.muted],
|
|
338
|
+
// Vert foncé vers très foncé
|
|
339
|
+
vibrant: [colors.christmas.accentLight, colors.christmas.primary]
|
|
340
|
+
// Blanc vers rouge
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
|
|
344
|
+
// foundation/theme/config/definitions/dark.theme.ts
|
|
345
|
+
var darkTheme = createTheme({
|
|
346
|
+
background: colors.black,
|
|
347
|
+
foreground: colors.white,
|
|
348
|
+
card: colors.primary900,
|
|
349
|
+
cardForeground: colors.gray100,
|
|
350
|
+
primary: colors.primary500,
|
|
351
|
+
primaryForeground: colors.white,
|
|
352
|
+
secondary: colors.secondary500,
|
|
353
|
+
secondaryForeground: colors.white,
|
|
354
|
+
muted: colors.primary900,
|
|
355
|
+
mutedForeground: colors.gray500,
|
|
356
|
+
accent: colors.primary900,
|
|
357
|
+
accentForeground: colors.primary200,
|
|
358
|
+
destructive: colors.error500,
|
|
359
|
+
destructiveForeground: colors.white,
|
|
360
|
+
border: colors.primary800,
|
|
361
|
+
input: colors.primary900,
|
|
362
|
+
ring: colors.secondary600,
|
|
363
|
+
success: colors.success500,
|
|
364
|
+
warning: colors.warning500,
|
|
365
|
+
error: colors.error500,
|
|
366
|
+
info: colors.info500,
|
|
367
|
+
transparent: colors.transparent,
|
|
368
|
+
gradients: {
|
|
369
|
+
// Dégradé Institutionnel : Bleu très sombre vers Noir (effet profondeur)
|
|
370
|
+
primary: [colors.primary800, colors.black],
|
|
371
|
+
// Dégradé Électrique : Midnight Blue vers Noir
|
|
372
|
+
secondary: [colors.secondary900, colors.black],
|
|
373
|
+
// Mélange Signature Flipove Dark : Transition sombre et mystérieuse
|
|
374
|
+
vibrant: [colors.primary800, colors.secondary900],
|
|
375
|
+
// États : On part du sombre vers le noir pour un effet "Glow" subtil
|
|
376
|
+
success: [colors.success50, colors.success100],
|
|
377
|
+
warning: [colors.warning50, colors.warning100],
|
|
378
|
+
error: [colors.error50, colors.error100],
|
|
379
|
+
info: [colors.primary50, colors.primary200],
|
|
380
|
+
// Dégradé de fond ultra-profond
|
|
381
|
+
subtle: [colors.primary900, colors.black]
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
|
|
385
|
+
// foundation/theme/config/definitions/halloween.theme.ts
|
|
386
|
+
var halloweenTheme = createTheme({
|
|
387
|
+
// 🎃 Halloween - Sombre et mystérieux
|
|
388
|
+
background: colors.halloween.background,
|
|
389
|
+
// Noir absolu
|
|
390
|
+
foreground: colors.halloween.text,
|
|
391
|
+
// Texte orange
|
|
392
|
+
card: colors.halloween.surface,
|
|
393
|
+
// Gris très foncé
|
|
394
|
+
cardForeground: colors.halloween.text,
|
|
395
|
+
primary: colors.halloween.primary,
|
|
396
|
+
// Orange citrouille
|
|
397
|
+
primaryForeground: colors.black,
|
|
398
|
+
// Texte noir sur orange
|
|
399
|
+
secondary: colors.halloween.secondary,
|
|
400
|
+
// Brun chocolat
|
|
401
|
+
secondaryForeground: colors.white,
|
|
402
|
+
// Texte blanc sur brun
|
|
403
|
+
muted: colors.halloween.muted,
|
|
404
|
+
// Noir absolu
|
|
405
|
+
mutedForeground: colors.halloween.textSecondary,
|
|
406
|
+
// Texte doré
|
|
407
|
+
accent: colors.halloween.accent,
|
|
408
|
+
// Violet magique
|
|
409
|
+
accentForeground: colors.white,
|
|
410
|
+
// Texte blanc sur violet
|
|
411
|
+
destructive: colors.error600,
|
|
412
|
+
// Rouge standard
|
|
413
|
+
destructiveForeground: colors.white,
|
|
414
|
+
border: colors.halloween.border,
|
|
415
|
+
// Bordure grise
|
|
416
|
+
input: colors.halloween.surface,
|
|
417
|
+
// Input avec fond gris
|
|
418
|
+
ring: colors.halloween.primaryLight,
|
|
419
|
+
// Anneaux orange clair
|
|
420
|
+
success: colors.halloween.success,
|
|
421
|
+
// Vert sorcière
|
|
422
|
+
warning: colors.warning500,
|
|
423
|
+
// Orange standard
|
|
424
|
+
error: colors.error500,
|
|
425
|
+
// Rouge standard
|
|
426
|
+
info: colors.info500,
|
|
427
|
+
// Bleu standard
|
|
428
|
+
transparent: colors.transparent,
|
|
429
|
+
gradients: {
|
|
430
|
+
primary: [colors.halloween.primaryLight, colors.halloween.primaryDark],
|
|
431
|
+
// Orange dégradé
|
|
432
|
+
secondary: [colors.halloween.secondaryLight, colors.halloween.secondaryDark],
|
|
433
|
+
// Brun dégradé
|
|
434
|
+
success: [colors.halloween.successLight, colors.halloween.success],
|
|
435
|
+
// Vert dégradé
|
|
436
|
+
warning: [colors.warning100, colors.warning600],
|
|
437
|
+
// Orange standard
|
|
438
|
+
error: [colors.error100, colors.error600],
|
|
439
|
+
// Rouge standard
|
|
440
|
+
info: [colors.info100, colors.info600],
|
|
441
|
+
// Bleu standard
|
|
442
|
+
subtle: [colors.halloween.background, colors.halloween.muted],
|
|
443
|
+
// Noir vers gris
|
|
444
|
+
vibrant: [colors.halloween.accentLight, colors.halloween.primary]
|
|
445
|
+
// Violet vers orange
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
|
|
449
|
+
// foundation/theme/config/definitions/light.theme.ts
|
|
450
|
+
var lightTheme = createTheme({
|
|
451
|
+
background: colors.white,
|
|
452
|
+
foreground: colors.black,
|
|
453
|
+
card: colors.primary50,
|
|
454
|
+
cardForeground: colors.primary900,
|
|
455
|
+
primary: colors.primary500,
|
|
456
|
+
primaryForeground: colors.white,
|
|
457
|
+
secondary: colors.secondary500,
|
|
458
|
+
secondaryForeground: colors.white,
|
|
459
|
+
muted: colors.gray100,
|
|
460
|
+
mutedForeground: colors.gray500,
|
|
461
|
+
accent: colors.secondary50,
|
|
462
|
+
accentForeground: colors.secondary700,
|
|
463
|
+
destructive: colors.error600,
|
|
464
|
+
destructiveForeground: colors.white,
|
|
465
|
+
border: colors.primary100,
|
|
466
|
+
input: colors.white,
|
|
467
|
+
ring: colors.primary500,
|
|
468
|
+
success: colors.success600,
|
|
469
|
+
warning: colors.warning600,
|
|
470
|
+
error: colors.error600,
|
|
471
|
+
info: colors.info600,
|
|
472
|
+
transparent: colors.transparent,
|
|
473
|
+
gradients: {
|
|
474
|
+
// Dégradé Institutionnel : Très aérien (idéal pour des fonds de cartes ou headers légers)
|
|
475
|
+
primary: [colors.primary50, colors.white],
|
|
476
|
+
// Dégradé Électrique : Lumineux et frais
|
|
477
|
+
secondary: [colors.secondary200, colors.white],
|
|
478
|
+
// Mélange Signature Flipove : Version "Aurore" (douce transition entre les deux bleus clairs)
|
|
479
|
+
vibrant: [colors.primary100, colors.secondary100],
|
|
480
|
+
// États : Nuances claires pour ne pas agresser l'œil en mode Light
|
|
481
|
+
success: [colors.success50, colors.success100],
|
|
482
|
+
warning: [colors.warning50, colors.warning100],
|
|
483
|
+
error: [colors.error50, colors.error100],
|
|
484
|
+
info: [colors.primary50, colors.primary200],
|
|
485
|
+
// Dégradé de fond ultra-subtle
|
|
486
|
+
subtle: [colors.white, colors.primary50]
|
|
487
|
+
}
|
|
488
|
+
});
|
|
489
|
+
|
|
490
|
+
// foundation/theme/config/definitions/neon.theme.ts
|
|
491
|
+
var neonTheme = createTheme({
|
|
492
|
+
// Fond violet presque transparent et brillant
|
|
493
|
+
background: colors.neon.background,
|
|
494
|
+
// Violet très foncé et transparent
|
|
495
|
+
foreground: colors.neon.text,
|
|
496
|
+
// Blanc pur pour contraste maximal
|
|
497
|
+
card: colors.neon.surface,
|
|
498
|
+
// Surface violet clair
|
|
499
|
+
cardForeground: colors.neon.text,
|
|
500
|
+
// Couleurs principales - Vibrantes et brillantes
|
|
501
|
+
primary: colors.neon.primary,
|
|
502
|
+
// Violet vif et brillant
|
|
503
|
+
primaryForeground: colors.black,
|
|
504
|
+
// Texte noir sur violet brillant
|
|
505
|
+
secondary: colors.neon.secondary,
|
|
506
|
+
// Cyan électrique brillant
|
|
507
|
+
secondaryForeground: colors.black,
|
|
508
|
+
// Texte noir sur cyan
|
|
509
|
+
// Éléments en retrait et accents brillants
|
|
510
|
+
muted: colors.neon.muted,
|
|
511
|
+
// Violet foncé pour éléments discrets
|
|
512
|
+
mutedForeground: colors.neon.textSecondary,
|
|
513
|
+
// Texte secondaire violet clair
|
|
514
|
+
accent: colors.neon.accent,
|
|
515
|
+
// Rose neon vif
|
|
516
|
+
accentForeground: colors.white,
|
|
517
|
+
// Texte blanc sur rose
|
|
518
|
+
// Actions et états
|
|
519
|
+
destructive: colors.error600,
|
|
520
|
+
// Rouge standard pour erreurs
|
|
521
|
+
destructiveForeground: colors.white,
|
|
522
|
+
border: colors.neon.border,
|
|
523
|
+
// Bordures violettes vibrantes
|
|
524
|
+
input: colors.neon.surface,
|
|
525
|
+
// Input avec fond de surface
|
|
526
|
+
ring: colors.neon.primaryLight,
|
|
527
|
+
// Anneaux avec violet très brillant
|
|
528
|
+
// États sémantiques - Couleurs brillantes
|
|
529
|
+
success: colors.neon.success,
|
|
530
|
+
// Vert électrique brillant
|
|
531
|
+
warning: colors.warning500,
|
|
532
|
+
// Orange standard
|
|
533
|
+
error: colors.error500,
|
|
534
|
+
// Rouge standard
|
|
535
|
+
info: colors.neon.secondary,
|
|
536
|
+
// Cyan brillant pour informations
|
|
537
|
+
transparent: colors.transparent,
|
|
538
|
+
// Dégradés - Vibrants et électriques
|
|
539
|
+
gradients: {
|
|
540
|
+
primary: [colors.neon.primaryLight, colors.neon.primaryDark],
|
|
541
|
+
// Violet brillant dégradé
|
|
542
|
+
secondary: [colors.neon.secondaryLight, colors.neon.secondaryDark],
|
|
543
|
+
// Cyan électrique dégradé
|
|
544
|
+
success: [colors.neon.successLight, colors.neon.success],
|
|
545
|
+
// Vert électrique dégradé
|
|
546
|
+
warning: [colors.warning100, colors.warning600],
|
|
547
|
+
// Orange standard
|
|
548
|
+
error: [colors.error100, colors.error600],
|
|
549
|
+
// Rouge standard
|
|
550
|
+
info: [colors.neon.secondaryLight, colors.neon.secondaryDark],
|
|
551
|
+
// Cyan brillant dégradé
|
|
552
|
+
subtle: [colors.neon.background, colors.neon.muted],
|
|
553
|
+
// Violet transparent vers foncé
|
|
554
|
+
vibrant: [colors.neon.accentLight, colors.neon.primary]
|
|
555
|
+
// Rose vers violet brillant
|
|
556
|
+
}
|
|
557
|
+
});
|
|
558
|
+
|
|
559
|
+
// foundation/theme/config/definitions/spring.theme.ts
|
|
560
|
+
var springTheme = createTheme({
|
|
561
|
+
// 🌸 Printemps - Frais et floral
|
|
562
|
+
background: colors.spring.background,
|
|
563
|
+
// Blanc cassé très clair
|
|
564
|
+
foreground: colors.spring.text,
|
|
565
|
+
// Texte gris foncé
|
|
566
|
+
card: colors.spring.surface,
|
|
567
|
+
// Blanc pur pour les cartes
|
|
568
|
+
cardForeground: colors.spring.text,
|
|
569
|
+
primary: colors.spring.primary,
|
|
570
|
+
// Rose printanier
|
|
571
|
+
primaryForeground: colors.white,
|
|
572
|
+
// Texte blanc sur rose
|
|
573
|
+
secondary: colors.spring.secondary,
|
|
574
|
+
// Vert frais
|
|
575
|
+
secondaryForeground: colors.white,
|
|
576
|
+
// Texte blanc sur vert
|
|
577
|
+
muted: colors.spring.muted,
|
|
578
|
+
// Gris très clair
|
|
579
|
+
mutedForeground: colors.spring.textSecondary,
|
|
580
|
+
// Texte secondaire
|
|
581
|
+
accent: colors.spring.accent,
|
|
582
|
+
// Jaune doux
|
|
583
|
+
accentForeground: colors.black,
|
|
584
|
+
// Texte noir sur jaune
|
|
585
|
+
destructive: colors.error600,
|
|
586
|
+
// Rouge standard
|
|
587
|
+
destructiveForeground: colors.white,
|
|
588
|
+
border: colors.spring.border,
|
|
589
|
+
// Bordure douce
|
|
590
|
+
input: colors.spring.surface,
|
|
591
|
+
// Input avec fond blanc
|
|
592
|
+
ring: colors.spring.primaryLight,
|
|
593
|
+
// Anneaux rose clair
|
|
594
|
+
success: colors.spring.success,
|
|
595
|
+
// Vert printanier
|
|
596
|
+
warning: colors.warning500,
|
|
597
|
+
// Orange standard
|
|
598
|
+
error: colors.error500,
|
|
599
|
+
// Rouge standard
|
|
600
|
+
info: colors.info500,
|
|
601
|
+
// Bleu standard
|
|
602
|
+
transparent: colors.transparent,
|
|
603
|
+
gradients: {
|
|
604
|
+
primary: [colors.spring.primaryLight, colors.spring.primaryDark],
|
|
605
|
+
// Rose dégradé
|
|
606
|
+
secondary: [colors.spring.secondaryLight, colors.spring.secondaryDark],
|
|
607
|
+
// Vert dégradé
|
|
608
|
+
success: [colors.spring.successLight, colors.spring.success],
|
|
609
|
+
// Vert dégradé
|
|
610
|
+
warning: [colors.warning100, colors.warning600],
|
|
611
|
+
// Orange standard
|
|
612
|
+
error: [colors.error100, colors.error600],
|
|
613
|
+
// Rouge standard
|
|
614
|
+
info: [colors.info100, colors.info600],
|
|
615
|
+
// Bleu standard
|
|
616
|
+
subtle: [colors.spring.background, colors.spring.muted],
|
|
617
|
+
// Blanc cassé vers gris
|
|
618
|
+
vibrant: [colors.spring.accentLight, colors.spring.primary]
|
|
619
|
+
// Jaune vers rose
|
|
620
|
+
}
|
|
621
|
+
});
|
|
622
|
+
|
|
623
|
+
// foundation/theme/config/definitions/summer.theme.ts
|
|
624
|
+
var summerTheme = createTheme({
|
|
625
|
+
// ☀️ Été - Vibrant et solaire
|
|
626
|
+
background: colors.summer.background,
|
|
627
|
+
// Jaune crème très clair
|
|
628
|
+
foreground: colors.summer.text,
|
|
629
|
+
// Texte brun doré
|
|
630
|
+
card: colors.summer.surface,
|
|
631
|
+
// Blanc pur
|
|
632
|
+
cardForeground: colors.summer.text,
|
|
633
|
+
primary: colors.summer.primary,
|
|
634
|
+
// Orange solaire
|
|
635
|
+
primaryForeground: colors.white,
|
|
636
|
+
// Texte blanc sur orange
|
|
637
|
+
secondary: colors.summer.secondary,
|
|
638
|
+
// Rouge vif
|
|
639
|
+
secondaryForeground: colors.white,
|
|
640
|
+
// Texte blanc sur rouge
|
|
641
|
+
muted: colors.summer.muted,
|
|
642
|
+
// Jaune très clair
|
|
643
|
+
mutedForeground: colors.summer.textSecondary,
|
|
644
|
+
// Texte secondaire
|
|
645
|
+
accent: colors.summer.accent,
|
|
646
|
+
// Bleu ciel
|
|
647
|
+
accentForeground: colors.white,
|
|
648
|
+
// Texte blanc sur bleu
|
|
649
|
+
destructive: colors.error600,
|
|
650
|
+
// Rouge standard
|
|
651
|
+
destructiveForeground: colors.white,
|
|
652
|
+
border: colors.summer.border,
|
|
653
|
+
// Bordure jaune
|
|
654
|
+
input: colors.summer.surface,
|
|
655
|
+
// Input avec fond blanc
|
|
656
|
+
ring: colors.summer.primaryLight,
|
|
657
|
+
// Anneaux jaune vif
|
|
658
|
+
success: colors.summer.success,
|
|
659
|
+
// Vert frais
|
|
660
|
+
warning: colors.warning500,
|
|
661
|
+
// Orange standard
|
|
662
|
+
error: colors.error500,
|
|
663
|
+
// Rouge standard
|
|
664
|
+
info: colors.info500,
|
|
665
|
+
// Bleu standard
|
|
666
|
+
transparent: colors.transparent,
|
|
667
|
+
gradients: {
|
|
668
|
+
primary: [colors.summer.primaryLight, colors.summer.primaryDark],
|
|
669
|
+
// Jaune vers orange
|
|
670
|
+
secondary: [colors.summer.secondaryLight, colors.summer.secondaryDark],
|
|
671
|
+
// Rouge dégradé
|
|
672
|
+
success: [colors.summer.successLight, colors.summer.success],
|
|
673
|
+
// Vert dégradé
|
|
674
|
+
warning: [colors.warning100, colors.warning600],
|
|
675
|
+
// Orange standard
|
|
676
|
+
error: [colors.error100, colors.error600],
|
|
677
|
+
// Rouge standard
|
|
678
|
+
info: [colors.info100, colors.info600],
|
|
679
|
+
// Bleu standard
|
|
680
|
+
subtle: [colors.summer.background, colors.summer.muted],
|
|
681
|
+
// Jaune crème vers clair
|
|
682
|
+
vibrant: [colors.summer.accentLight, colors.summer.primary]
|
|
683
|
+
// Bleu vers orange
|
|
684
|
+
}
|
|
685
|
+
});
|
|
686
|
+
|
|
687
|
+
// foundation/theme/config/definitions/winter.theme.ts
|
|
688
|
+
var winterTheme = createTheme({
|
|
689
|
+
// ❄️ Hiver - Glacial et élégant
|
|
690
|
+
background: colors.winter.background,
|
|
691
|
+
// Bleu nuit très foncé
|
|
692
|
+
foreground: colors.winter.text,
|
|
693
|
+
// Texte blanc glacial
|
|
694
|
+
card: colors.winter.surface,
|
|
695
|
+
// Bleu nuit clair
|
|
696
|
+
cardForeground: colors.winter.text,
|
|
697
|
+
primary: colors.winter.primary,
|
|
698
|
+
// Bleu glacial
|
|
699
|
+
primaryForeground: colors.white,
|
|
700
|
+
// Texte blanc sur bleu
|
|
701
|
+
secondary: colors.winter.secondary,
|
|
702
|
+
// Blanc argenté
|
|
703
|
+
secondaryForeground: colors.black,
|
|
704
|
+
// Texte noir sur argent
|
|
705
|
+
muted: colors.winter.muted,
|
|
706
|
+
// Bleu nuit
|
|
707
|
+
mutedForeground: colors.winter.textSecondary,
|
|
708
|
+
// Texte argenté
|
|
709
|
+
accent: colors.winter.accent,
|
|
710
|
+
// Violet givré
|
|
711
|
+
accentForeground: colors.white,
|
|
712
|
+
// Texte blanc sur violet
|
|
713
|
+
destructive: colors.error600,
|
|
714
|
+
// Rouge standard
|
|
715
|
+
destructiveForeground: colors.white,
|
|
716
|
+
border: colors.winter.border,
|
|
717
|
+
// Bordure bleue
|
|
718
|
+
input: colors.winter.surface,
|
|
719
|
+
// Input avec fond bleu nuit
|
|
720
|
+
ring: colors.winter.primaryLight,
|
|
721
|
+
// Anneaux bleu clair
|
|
722
|
+
success: colors.winter.success,
|
|
723
|
+
// Vert sapin
|
|
724
|
+
warning: colors.warning500,
|
|
725
|
+
// Orange standard
|
|
726
|
+
error: colors.error500,
|
|
727
|
+
// Rouge standard
|
|
728
|
+
info: colors.info500,
|
|
729
|
+
// Bleu standard
|
|
730
|
+
transparent: colors.transparent,
|
|
731
|
+
gradients: {
|
|
732
|
+
primary: [colors.winter.primaryLight, colors.winter.primaryDark],
|
|
733
|
+
// Bleu dégradé
|
|
734
|
+
secondary: [colors.winter.secondaryLight, colors.winter.secondaryDark],
|
|
735
|
+
// Argent dégradé
|
|
736
|
+
success: [colors.winter.successLight, colors.winter.success],
|
|
737
|
+
// Vert dégradé
|
|
738
|
+
warning: [colors.warning100, colors.warning600],
|
|
739
|
+
// Orange standard
|
|
740
|
+
error: [colors.error100, colors.error600],
|
|
741
|
+
// Rouge standard
|
|
742
|
+
info: [colors.info100, colors.info600],
|
|
743
|
+
// Bleu standard
|
|
744
|
+
subtle: [colors.winter.background, colors.winter.muted],
|
|
745
|
+
// Bleu nuit vers clair
|
|
746
|
+
vibrant: [colors.winter.accentLight, colors.winter.primary]
|
|
747
|
+
// Violet vers bleu
|
|
748
|
+
}
|
|
749
|
+
});
|
|
750
|
+
function useColorScheme(theme) {
|
|
751
|
+
const nativeScheme = reactNative.useColorScheme();
|
|
752
|
+
if (theme) return theme;
|
|
753
|
+
return nativeScheme ?? "light";
|
|
754
|
+
}
|
|
755
|
+
var ThemeContext = react.createContext(null);
|
|
756
|
+
var useTheme = (customTheme) => {
|
|
757
|
+
const context = react.useContext(ThemeContext);
|
|
758
|
+
if (!context) {
|
|
759
|
+
throw new Error("useTheme must be used within ThemeProvider");
|
|
760
|
+
}
|
|
761
|
+
if (customTheme && context.availableThemes[customTheme]) {
|
|
762
|
+
return {
|
|
763
|
+
theme: context.availableThemes[customTheme],
|
|
764
|
+
mode: customTheme,
|
|
765
|
+
setTheme: context.setTheme,
|
|
766
|
+
availableThemes: context.availableThemes
|
|
767
|
+
};
|
|
768
|
+
}
|
|
769
|
+
return context;
|
|
770
|
+
};
|
|
771
|
+
var ThemeProvider = ({
|
|
772
|
+
children,
|
|
773
|
+
defaultTheme,
|
|
774
|
+
customThemes = {}
|
|
775
|
+
}) => {
|
|
776
|
+
const systemColorScheme = useColorScheme();
|
|
777
|
+
const [currentTheme, setCurrentTheme] = react.useState(
|
|
778
|
+
defaultTheme || systemColorScheme
|
|
779
|
+
);
|
|
780
|
+
const [isManualSelection, setIsManualSelection] = react.useState(false);
|
|
781
|
+
const themeRegistry = {
|
|
782
|
+
light: lightTheme,
|
|
783
|
+
dark: darkTheme,
|
|
784
|
+
neon: neonTheme,
|
|
785
|
+
spring: springTheme,
|
|
786
|
+
summer: summerTheme,
|
|
787
|
+
autumn: autumnTheme,
|
|
788
|
+
winter: winterTheme,
|
|
789
|
+
halloween: halloweenTheme,
|
|
790
|
+
christmas: christmasTheme,
|
|
791
|
+
...customThemes
|
|
792
|
+
};
|
|
793
|
+
react.useEffect(() => {
|
|
794
|
+
if (defaultTheme) {
|
|
795
|
+
setCurrentTheme(defaultTheme);
|
|
796
|
+
}
|
|
797
|
+
}, [defaultTheme]);
|
|
798
|
+
react.useEffect(() => {
|
|
799
|
+
if (defaultTheme && customThemes && Object.keys(customThemes).length > 0) {
|
|
800
|
+
setCurrentTheme((prev) => prev);
|
|
801
|
+
}
|
|
802
|
+
}, [customThemes, defaultTheme]);
|
|
803
|
+
react.useEffect(() => {
|
|
804
|
+
if (!isManualSelection && !defaultTheme) {
|
|
805
|
+
setCurrentTheme(systemColorScheme);
|
|
806
|
+
}
|
|
807
|
+
}, [systemColorScheme, defaultTheme, isManualSelection]);
|
|
808
|
+
const setTheme = (theme) => {
|
|
809
|
+
if (themeRegistry[theme]) {
|
|
810
|
+
setCurrentTheme(theme);
|
|
811
|
+
setIsManualSelection(true);
|
|
812
|
+
} else {
|
|
813
|
+
console.warn(`Theme "${theme}" is not available. Available themes:`, Object.keys(themeRegistry));
|
|
814
|
+
}
|
|
815
|
+
};
|
|
816
|
+
const activeTheme = themeRegistry[currentTheme] || lightTheme;
|
|
817
|
+
const value = {
|
|
818
|
+
theme: activeTheme,
|
|
819
|
+
mode: currentTheme,
|
|
820
|
+
setTheme,
|
|
821
|
+
availableThemes: themeRegistry
|
|
822
|
+
};
|
|
823
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ThemeContext.Provider, { value, children });
|
|
824
|
+
};
|
|
825
|
+
|
|
826
|
+
exports.ThemeProvider = ThemeProvider;
|
|
827
|
+
exports.autumnTheme = autumnTheme;
|
|
828
|
+
exports.christmasTheme = christmasTheme;
|
|
829
|
+
exports.createTheme = createTheme;
|
|
830
|
+
exports.darkTheme = darkTheme;
|
|
831
|
+
exports.halloweenTheme = halloweenTheme;
|
|
832
|
+
exports.lightTheme = lightTheme;
|
|
833
|
+
exports.neonTheme = neonTheme;
|
|
834
|
+
exports.springTheme = springTheme;
|
|
835
|
+
exports.summerTheme = summerTheme;
|
|
836
|
+
exports.useColorScheme = useColorScheme;
|
|
837
|
+
exports.useTheme = useTheme;
|
|
838
|
+
exports.winterTheme = winterTheme;
|
|
839
|
+
//# sourceMappingURL=index.js.map
|
|
840
|
+
//# sourceMappingURL=index.js.map
|