@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.
- package/CHANGELOG.md +6 -0
- package/README.md +125 -185
- package/dist/chunk-2VLBOYBU.js +4 -0
- package/dist/chunk-2VLBOYBU.js.map +1 -0
- package/dist/chunk-3PYMFFVP.mjs +5974 -0
- package/dist/chunk-3PYMFFVP.mjs.map +1 -0
- package/dist/chunk-45NSZH5Z.js +404 -0
- package/dist/chunk-45NSZH5Z.js.map +1 -0
- package/dist/chunk-4QTEZKXE.mjs +2287 -0
- package/dist/chunk-4QTEZKXE.mjs.map +1 -0
- package/dist/chunk-5ZDSYOFL.js +6112 -0
- package/dist/chunk-5ZDSYOFL.js.map +1 -0
- package/dist/chunk-BJTO5JO5.mjs +10 -0
- package/dist/chunk-BJTO5JO5.mjs.map +1 -0
- package/dist/chunk-DGUM43GV.js +12 -0
- package/dist/chunk-DGUM43GV.js.map +1 -0
- package/dist/chunk-ECBM426M.mjs +2647 -0
- package/dist/chunk-ECBM426M.mjs.map +1 -0
- package/dist/chunk-EIWDEXBO.js +2690 -0
- package/dist/chunk-EIWDEXBO.js.map +1 -0
- package/dist/chunk-FLEEJX7L.js +2301 -0
- package/dist/chunk-FLEEJX7L.js.map +1 -0
- package/dist/chunk-GZPFYWMA.mjs +390 -0
- package/dist/chunk-GZPFYWMA.mjs.map +1 -0
- package/dist/chunk-HS2UOQU4.mjs +3 -0
- package/dist/chunk-HS2UOQU4.mjs.map +1 -0
- package/dist/chunk-MWRMHYW2.js +101 -0
- package/dist/chunk-MWRMHYW2.js.map +1 -0
- package/dist/chunk-RRZSROIT.mjs +655 -0
- package/dist/chunk-RRZSROIT.mjs.map +1 -0
- package/dist/chunk-SYHGZT2M.mjs +95 -0
- package/dist/chunk-SYHGZT2M.mjs.map +1 -0
- package/dist/chunk-T7V6TILB.js +669 -0
- package/dist/chunk-T7V6TILB.js.map +1 -0
- package/dist/config/index.js +16 -1092
- package/dist/config/index.js.map +1 -1
- package/dist/config/index.mjs +1 -1096
- package/dist/config/index.mjs.map +1 -1
- package/dist/index.js +623 -9546
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -9379
- package/dist/index.mjs.map +1 -1
- package/dist/layout/index.js +463 -9225
- package/dist/layout/index.js.map +1 -1
- package/dist/layout/index.mjs +2 -9122
- package/dist/layout/index.mjs.map +1 -1
- package/dist/studio/cli/index.js +15 -4796
- package/dist/studio/cli/index.js.map +1 -1
- package/dist/studio/cli/index.mjs +11 -4774
- package/dist/studio/cli/index.mjs.map +1 -1
- package/dist/studio/index.js +73 -4908
- package/dist/studio/index.js.map +1 -1
- package/dist/studio/index.mjs +1 -4874
- package/dist/studio/index.mjs.map +1 -1
- package/dist/theme/index.js +43 -823
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/index.mjs +1 -824
- package/dist/theme/index.mjs.map +1 -1
- package/dist/tokens/index.js +56 -400
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/index.mjs +1 -388
- package/dist/tokens/index.mjs.map +1 -1
- package/dist/web/index.js +327 -3600
- package/dist/web/index.js.map +1 -1
- package/dist/web/index.mjs +24 -3426
- package/dist/web/index.mjs.map +1 -1
- package/package.json +2 -2
- package/studio/app/dist/_expo/static/js/web/{entry-39d36897d2758a1d36b9ce16995ecc83.js → entry-77f601f6b9353e7b6e3b18cdbe63ac99.js} +16325 -2506
- package/studio/app/dist/_expo/static/js/web/{index-f0c66517963047bf2c0bdd371afb8d31.js → index-9587ee2e3c02826ac2da47e86fefe882.js} +4 -4
- package/studio/app/dist/_expo/static/js/web/{index-fb59148d0b266219e66b19aeca8e2086.js → index-ac88f7a39991e452f0b4323da9aa4367.js} +3 -3
- package/studio/app/dist/index.html +1 -1
package/dist/web/index.mjs
CHANGED
|
@@ -1,1046 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
export { FoundationProvider, defineConfig, resolveConfig, useFoundationConfig, useTokens } from '../chunk-SYHGZT2M.mjs';
|
|
2
|
+
import { useTheme } from '../chunk-RRZSROIT.mjs';
|
|
3
|
+
export { ThemeProvider, autumnTheme, christmasTheme, createTheme, darkTheme, halloweenTheme, lightTheme, neonTheme, springTheme, summerTheme, useColorScheme, useTheme, winterTheme } from '../chunk-RRZSROIT.mjs';
|
|
4
|
+
import { shadows, spacing, radii } from '../chunk-GZPFYWMA.mjs';
|
|
5
|
+
export { breakpoints, colors, durations, easings, fontSizes, fontWeights, letterSpacings, lineHeights, opacity, radii, shadows, spacing, zIndices } from '../chunk-GZPFYWMA.mjs';
|
|
6
|
+
import { getComponentMeta, applyDefaults, getLayoutMeta } from '../chunk-4QTEZKXE.mjs';
|
|
7
|
+
export { applyDefaults, applyVariant, blockRegistry, componentRegistry, extractDefaults, getBlockMeta, getComponentMeta, getConstants, getLayoutMeta, getPrimitiveMeta, layoutRegistry, primitiveRegistry, resolveThemeDefaults } from '../chunk-4QTEZKXE.mjs';
|
|
8
|
+
import React, { useMemo, useId, useState, useRef } from 'react';
|
|
3
9
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
10
|
import * as LucideIcons from 'lucide-react';
|
|
5
11
|
import * as RadixTabs from '@radix-ui/react-tabs';
|
|
6
12
|
|
|
7
|
-
// foundation/web/primitives/Box.tsx
|
|
8
|
-
|
|
9
|
-
// foundation/tokens/breakpoints.ts
|
|
10
|
-
var breakpoints = {
|
|
11
|
-
xs: 0,
|
|
12
|
-
sm: 576,
|
|
13
|
-
md: 768,
|
|
14
|
-
lg: 992,
|
|
15
|
-
xl: 1200,
|
|
16
|
-
"2xl": 1440
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
// foundation/tokens/colors.ts
|
|
20
|
-
var colors = {
|
|
21
|
-
white: "#FFFFFF",
|
|
22
|
-
black: "#000000",
|
|
23
|
-
gray50: "#F9FAFB",
|
|
24
|
-
gray100: "#F3F4F6",
|
|
25
|
-
gray200: "#E5E7EB",
|
|
26
|
-
gray300: "#D1D5DB",
|
|
27
|
-
gray400: "#9CA3AF",
|
|
28
|
-
gray500: "#6B7280",
|
|
29
|
-
gray600: "#4B5563",
|
|
30
|
-
gray700: "#374151",
|
|
31
|
-
gray800: "#1F2937",
|
|
32
|
-
gray900: "#111827",
|
|
33
|
-
primary50: "#E5E5F4",
|
|
34
|
-
primary100: "#CCCCE9",
|
|
35
|
-
primary200: "#9999D3",
|
|
36
|
-
primary300: "#6666BD",
|
|
37
|
-
primary400: "#3333A7",
|
|
38
|
-
primary500: "#000091",
|
|
39
|
-
primary600: "#000082",
|
|
40
|
-
primary700: "#00006D",
|
|
41
|
-
primary800: "#000055",
|
|
42
|
-
primary900: "#00003D",
|
|
43
|
-
primaryForeground: "#FFFFFF",
|
|
44
|
-
secondary50: "#E7E7FF",
|
|
45
|
-
secondary100: "#CFCFFF",
|
|
46
|
-
secondary200: "#9F9FFF",
|
|
47
|
-
secondary300: "#6F6FFF",
|
|
48
|
-
secondary400: "#3F3FFF",
|
|
49
|
-
secondary500: "#0D0EFF",
|
|
50
|
-
secondary600: "#0B0CD6",
|
|
51
|
-
secondary700: "#0809AD",
|
|
52
|
-
secondary800: "#060685",
|
|
53
|
-
secondary900: "#03035C",
|
|
54
|
-
secondaryForeground: "#FFFFFF",
|
|
55
|
-
success50: "#F0FDF4",
|
|
56
|
-
success100: "#DCFCE7",
|
|
57
|
-
success500: "#22C55E",
|
|
58
|
-
success600: "#16A34A",
|
|
59
|
-
success700: "#15803D",
|
|
60
|
-
warning50: "#FFFBEB",
|
|
61
|
-
warning100: "#FEF3C7",
|
|
62
|
-
warning500: "#F59E0B",
|
|
63
|
-
warning600: "#D97706",
|
|
64
|
-
warning700: "#B45309",
|
|
65
|
-
error50: "#FEF2F2",
|
|
66
|
-
error100: "#FEE2E2",
|
|
67
|
-
error500: "#EF4444",
|
|
68
|
-
error600: "#DC2626",
|
|
69
|
-
error700: "#B91C1C",
|
|
70
|
-
info50: "#EFF6FF",
|
|
71
|
-
info100: "#DBEAFE",
|
|
72
|
-
info500: "#3B82F6",
|
|
73
|
-
info600: "#2563EB",
|
|
74
|
-
info700: "#1D4ED8",
|
|
75
|
-
neon: {
|
|
76
|
-
background: "#1A0033",
|
|
77
|
-
surface: "#2D0047",
|
|
78
|
-
primary: "#9200db",
|
|
79
|
-
primaryLight: "#4200589f",
|
|
80
|
-
primaryDark: "#2c0150ff",
|
|
81
|
-
secondary: "#00E5FF",
|
|
82
|
-
secondaryLight: "#66FFFF",
|
|
83
|
-
secondaryDark: "#00ACC1",
|
|
84
|
-
accent: "#FF006E",
|
|
85
|
-
accentLight: "#FF4081",
|
|
86
|
-
accentDark: "#C2185B",
|
|
87
|
-
success: "#00FF88",
|
|
88
|
-
successLight: "#66FFAA",
|
|
89
|
-
muted: "#3D0066",
|
|
90
|
-
border: "#520080",
|
|
91
|
-
text: "#FFFFFF",
|
|
92
|
-
textSecondary: "#B3B3CC"
|
|
93
|
-
},
|
|
94
|
-
spring: {
|
|
95
|
-
background: "#F0F4F8",
|
|
96
|
-
surface: "#FFFFFF",
|
|
97
|
-
primary: "#5a0832de",
|
|
98
|
-
primaryLight: "#FBCFE8",
|
|
99
|
-
primaryDark: "#DB2777",
|
|
100
|
-
secondary: "#4ADE80",
|
|
101
|
-
secondaryLight: "#BBF7D0",
|
|
102
|
-
secondaryDark: "#166534",
|
|
103
|
-
accent: "#8B5CF6",
|
|
104
|
-
accentLight: "#C4B5FD",
|
|
105
|
-
accentDark: "#6D28D9",
|
|
106
|
-
success: "#10B981",
|
|
107
|
-
successLight: "#D1FAE5",
|
|
108
|
-
muted: "#E2E8F0",
|
|
109
|
-
border: "#CBD5E1CC",
|
|
110
|
-
text: "#334155",
|
|
111
|
-
textSecondary: "#64748B"
|
|
112
|
-
},
|
|
113
|
-
summer: {
|
|
114
|
-
background: "#FEF3C7",
|
|
115
|
-
surface: "#FFFFFF",
|
|
116
|
-
primary: "#301f01ff",
|
|
117
|
-
primaryLight: "#FCD34D",
|
|
118
|
-
primaryDark: "#D97706",
|
|
119
|
-
secondary: "#EF4444",
|
|
120
|
-
secondaryLight: "#F87171",
|
|
121
|
-
secondaryDark: "#DC2626",
|
|
122
|
-
accent: "#3B82F6",
|
|
123
|
-
accentLight: "#60A5FA",
|
|
124
|
-
accentDark: "#2563EB",
|
|
125
|
-
success: "#10B981",
|
|
126
|
-
successLight: "#34D399",
|
|
127
|
-
muted: "#FEF9C3",
|
|
128
|
-
border: "#FDE68A",
|
|
129
|
-
text: "#78350F",
|
|
130
|
-
textSecondary: "#92400E"
|
|
131
|
-
},
|
|
132
|
-
autumn: {
|
|
133
|
-
background: "#2D1B14",
|
|
134
|
-
surface: "#4A2C2A",
|
|
135
|
-
primary: "#000000ff",
|
|
136
|
-
primaryLight: "#FB923C",
|
|
137
|
-
primaryDark: "#C2410C",
|
|
138
|
-
secondary: "#A16207",
|
|
139
|
-
secondaryLight: "#CA8A04",
|
|
140
|
-
secondaryDark: "#854D0E",
|
|
141
|
-
accent: "#DC2626",
|
|
142
|
-
accentLight: "#EF4444",
|
|
143
|
-
accentDark: "#B91C1C",
|
|
144
|
-
success: "#16A34A",
|
|
145
|
-
successLight: "#22C55E",
|
|
146
|
-
muted: "#451A03",
|
|
147
|
-
border: "#7C2D12",
|
|
148
|
-
text: "#FEF3C7",
|
|
149
|
-
textSecondary: "#FDE68A"
|
|
150
|
-
},
|
|
151
|
-
winter: {
|
|
152
|
-
background: "#0F172A",
|
|
153
|
-
surface: "#1E293B",
|
|
154
|
-
primary: "#253a5aff",
|
|
155
|
-
primaryLight: "#38BDF8",
|
|
156
|
-
primaryDark: "#0284C7",
|
|
157
|
-
secondary: "#E2E8F0",
|
|
158
|
-
secondaryLight: "#F1F5F9",
|
|
159
|
-
secondaryDark: "#CBD5E1",
|
|
160
|
-
accent: "#8B5CF6",
|
|
161
|
-
accentLight: "#A78BFA",
|
|
162
|
-
accentDark: "#7C3AED",
|
|
163
|
-
success: "#10B981",
|
|
164
|
-
successLight: "#34D399",
|
|
165
|
-
muted: "#1E293B",
|
|
166
|
-
border: "#334155",
|
|
167
|
-
text: "#F8FAFC",
|
|
168
|
-
textSecondary: "#CBD5E1"
|
|
169
|
-
},
|
|
170
|
-
halloween: {
|
|
171
|
-
background: "#080510",
|
|
172
|
-
surface: "#120E1F",
|
|
173
|
-
primary: "#7C3AEDCC",
|
|
174
|
-
primaryLight: "#A78BFA",
|
|
175
|
-
primaryDark: "#4C1D95",
|
|
176
|
-
secondary: "#10B981",
|
|
177
|
-
secondaryLight: "#34D399",
|
|
178
|
-
secondaryDark: "#065F46",
|
|
179
|
-
accent: "#94A3B8",
|
|
180
|
-
accentLight: "#E2E8F0",
|
|
181
|
-
accentDark: "#475569",
|
|
182
|
-
success: "#059669",
|
|
183
|
-
successLight: "#A7F3D0",
|
|
184
|
-
muted: "#1F1B2E",
|
|
185
|
-
border: "#2E2845",
|
|
186
|
-
text: "#F8FAFC",
|
|
187
|
-
textSecondary: "#9D84B7"
|
|
188
|
-
},
|
|
189
|
-
christmas: {
|
|
190
|
-
background: "#0A2417",
|
|
191
|
-
surface: "#123D29",
|
|
192
|
-
primary: "#3f991bcc",
|
|
193
|
-
primaryLight: "#C24141",
|
|
194
|
-
primaryDark: "#7F1D1D",
|
|
195
|
-
secondary: "#C5A059",
|
|
196
|
-
secondaryLight: "#E3C58B",
|
|
197
|
-
secondaryDark: "#926D27",
|
|
198
|
-
accent: "#F8FAFC",
|
|
199
|
-
accentLight: "#FFFFFF",
|
|
200
|
-
accentDark: "#CBD5E1",
|
|
201
|
-
success: "#15803D",
|
|
202
|
-
successLight: "#22C55E",
|
|
203
|
-
muted: "#1E3A2B",
|
|
204
|
-
border: "#2D5A43",
|
|
205
|
-
text: "#F1F5F9",
|
|
206
|
-
textSecondary: "#D4AF37"
|
|
207
|
-
},
|
|
208
|
-
transparent: "transparent"
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
// foundation/tokens/motion.ts
|
|
212
|
-
var durations = {
|
|
213
|
-
instant: 0,
|
|
214
|
-
fast: 150,
|
|
215
|
-
base: 250,
|
|
216
|
-
slow: 350,
|
|
217
|
-
slower: 500
|
|
218
|
-
};
|
|
219
|
-
var easings = {
|
|
220
|
-
linear: "linear",
|
|
221
|
-
easeIn: "ease-in",
|
|
222
|
-
easeOut: "ease-out",
|
|
223
|
-
easeInOut: "ease-in-out"
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
// foundation/tokens/opacity.ts
|
|
227
|
-
var opacity = {
|
|
228
|
-
0: 0,
|
|
229
|
-
5: 0.05,
|
|
230
|
-
10: 0.1,
|
|
231
|
-
20: 0.2,
|
|
232
|
-
25: 0.25,
|
|
233
|
-
30: 0.3,
|
|
234
|
-
40: 0.4,
|
|
235
|
-
50: 0.5,
|
|
236
|
-
60: 0.6,
|
|
237
|
-
70: 0.7,
|
|
238
|
-
75: 0.75,
|
|
239
|
-
80: 0.8,
|
|
240
|
-
90: 0.9,
|
|
241
|
-
95: 0.95,
|
|
242
|
-
100: 1
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
// foundation/tokens/radii.ts
|
|
246
|
-
var radii = {
|
|
247
|
-
none: 0,
|
|
248
|
-
xs: 2,
|
|
249
|
-
sm: 4,
|
|
250
|
-
base: 6,
|
|
251
|
-
md: 8,
|
|
252
|
-
lg: 12,
|
|
253
|
-
xl: 16,
|
|
254
|
-
"2xl": 20,
|
|
255
|
-
"3xl": 24,
|
|
256
|
-
full: 9999
|
|
257
|
-
};
|
|
258
|
-
|
|
259
|
-
// foundation/tokens/shadows.ts
|
|
260
|
-
var shadows = {
|
|
261
|
-
none: {
|
|
262
|
-
shadowColor: "#000",
|
|
263
|
-
shadowOffset: { width: 0, height: 0 },
|
|
264
|
-
shadowOpacity: 0,
|
|
265
|
-
shadowRadius: 0,
|
|
266
|
-
elevation: 0
|
|
267
|
-
},
|
|
268
|
-
sm: {
|
|
269
|
-
shadowColor: "#000",
|
|
270
|
-
shadowOffset: { width: 0, height: 1 },
|
|
271
|
-
shadowOpacity: 0.05,
|
|
272
|
-
shadowRadius: 2,
|
|
273
|
-
elevation: 2
|
|
274
|
-
},
|
|
275
|
-
base: {
|
|
276
|
-
shadowColor: "#000",
|
|
277
|
-
shadowOffset: { width: 0, height: 2 },
|
|
278
|
-
shadowOpacity: 0.1,
|
|
279
|
-
shadowRadius: 4,
|
|
280
|
-
elevation: 3
|
|
281
|
-
},
|
|
282
|
-
md: {
|
|
283
|
-
shadowColor: "#000",
|
|
284
|
-
shadowOffset: { width: 0, height: 4 },
|
|
285
|
-
shadowOpacity: 0.15,
|
|
286
|
-
shadowRadius: 8,
|
|
287
|
-
elevation: 5
|
|
288
|
-
},
|
|
289
|
-
lg: {
|
|
290
|
-
shadowColor: "#000",
|
|
291
|
-
shadowOffset: { width: 0, height: 8 },
|
|
292
|
-
shadowOpacity: 0.2,
|
|
293
|
-
shadowRadius: 16,
|
|
294
|
-
elevation: 8
|
|
295
|
-
},
|
|
296
|
-
xl: {
|
|
297
|
-
shadowColor: "#000",
|
|
298
|
-
shadowOffset: { width: 0, height: 12 },
|
|
299
|
-
shadowOpacity: 0.25,
|
|
300
|
-
shadowRadius: 24,
|
|
301
|
-
elevation: 12
|
|
302
|
-
},
|
|
303
|
-
"2xl": {
|
|
304
|
-
shadowColor: "#000",
|
|
305
|
-
shadowOffset: { width: 0, height: 16 },
|
|
306
|
-
shadowOpacity: 0.3,
|
|
307
|
-
shadowRadius: 32,
|
|
308
|
-
elevation: 16
|
|
309
|
-
}
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
// foundation/tokens/spacing.ts
|
|
313
|
-
var spacing = {
|
|
314
|
-
0: 0,
|
|
315
|
-
1: 4,
|
|
316
|
-
2: 8,
|
|
317
|
-
3: 12,
|
|
318
|
-
4: 16,
|
|
319
|
-
5: 20,
|
|
320
|
-
6: 24,
|
|
321
|
-
7: 28,
|
|
322
|
-
8: 32,
|
|
323
|
-
10: 40,
|
|
324
|
-
12: 48,
|
|
325
|
-
14: 56,
|
|
326
|
-
16: 64,
|
|
327
|
-
20: 80,
|
|
328
|
-
24: 96,
|
|
329
|
-
28: 112,
|
|
330
|
-
32: 128,
|
|
331
|
-
36: 144,
|
|
332
|
-
40: 160,
|
|
333
|
-
44: 176,
|
|
334
|
-
48: 192,
|
|
335
|
-
52: 208,
|
|
336
|
-
56: 224,
|
|
337
|
-
60: 240,
|
|
338
|
-
64: 256
|
|
339
|
-
};
|
|
340
|
-
|
|
341
|
-
// foundation/tokens/typography.ts
|
|
342
|
-
var fontSizes = {
|
|
343
|
-
xs: 12,
|
|
344
|
-
sm: 14,
|
|
345
|
-
base: 16,
|
|
346
|
-
lg: 18,
|
|
347
|
-
xl: 20,
|
|
348
|
-
"2xl": 24,
|
|
349
|
-
"3xl": 30,
|
|
350
|
-
"4xl": 36,
|
|
351
|
-
"5xl": 48,
|
|
352
|
-
"6xl": 60,
|
|
353
|
-
"7xl": 72
|
|
354
|
-
};
|
|
355
|
-
var fontWeights = {
|
|
356
|
-
thin: "100",
|
|
357
|
-
extralight: "200",
|
|
358
|
-
light: "300",
|
|
359
|
-
normal: "400",
|
|
360
|
-
medium: "500",
|
|
361
|
-
semibold: "600",
|
|
362
|
-
bold: "700",
|
|
363
|
-
extrabold: "800",
|
|
364
|
-
black: "900"
|
|
365
|
-
};
|
|
366
|
-
var lineHeights = {
|
|
367
|
-
none: 1,
|
|
368
|
-
tight: 1.25,
|
|
369
|
-
snug: 1.375,
|
|
370
|
-
normal: 1.5,
|
|
371
|
-
relaxed: 1.625,
|
|
372
|
-
loose: 2
|
|
373
|
-
};
|
|
374
|
-
var letterSpacings = {
|
|
375
|
-
tighter: -0.8,
|
|
376
|
-
tight: -0.4,
|
|
377
|
-
normal: 0,
|
|
378
|
-
wide: 0.4,
|
|
379
|
-
wider: 0.8,
|
|
380
|
-
widest: 1.6
|
|
381
|
-
};
|
|
382
|
-
|
|
383
|
-
// foundation/tokens/z-index.ts
|
|
384
|
-
var zIndices = {
|
|
385
|
-
base: 0,
|
|
386
|
-
dropdown: 1e3,
|
|
387
|
-
sticky: 1100,
|
|
388
|
-
fixed: 1200,
|
|
389
|
-
backdrop: 1300,
|
|
390
|
-
modal: 1400,
|
|
391
|
-
popover: 1500,
|
|
392
|
-
toast: 1600,
|
|
393
|
-
tooltip: 1700
|
|
394
|
-
};
|
|
395
|
-
|
|
396
|
-
// foundation/theme/config/create.theme.ts
|
|
397
|
-
var createTheme = (overrides = {}) => ({
|
|
398
|
-
background: colors.white,
|
|
399
|
-
foreground: colors.gray900,
|
|
400
|
-
card: colors.white,
|
|
401
|
-
cardForeground: colors.gray900,
|
|
402
|
-
primary: colors.primary600,
|
|
403
|
-
primaryForeground: colors.white,
|
|
404
|
-
secondary: colors.secondary600,
|
|
405
|
-
secondaryForeground: colors.white,
|
|
406
|
-
muted: colors.gray100,
|
|
407
|
-
mutedForeground: colors.gray600,
|
|
408
|
-
accent: colors.primary50,
|
|
409
|
-
accentForeground: colors.primary900,
|
|
410
|
-
destructive: colors.error600,
|
|
411
|
-
destructiveForeground: colors.white,
|
|
412
|
-
border: colors.gray200,
|
|
413
|
-
input: colors.gray200,
|
|
414
|
-
ring: colors.primary600,
|
|
415
|
-
success: colors.success600,
|
|
416
|
-
warning: colors.warning600,
|
|
417
|
-
error: colors.error600,
|
|
418
|
-
info: colors.info600,
|
|
419
|
-
transparent: colors.transparent,
|
|
420
|
-
gradients: {
|
|
421
|
-
primary: [colors.primary400, colors.primary600],
|
|
422
|
-
secondary: [colors.secondary400, colors.secondary600],
|
|
423
|
-
success: [colors.success500, colors.success600],
|
|
424
|
-
warning: [colors.warning500, colors.warning600],
|
|
425
|
-
error: [colors.error500, colors.error600],
|
|
426
|
-
info: [colors.info500, colors.info600],
|
|
427
|
-
subtle: [colors.gray50, colors.gray100],
|
|
428
|
-
vibrant: [colors.primary500, colors.secondary500]
|
|
429
|
-
},
|
|
430
|
-
...overrides
|
|
431
|
-
});
|
|
432
|
-
|
|
433
|
-
// foundation/theme/config/definitions/autumn.theme.ts
|
|
434
|
-
var autumnTheme = createTheme({
|
|
435
|
-
// 🍂 Automne - Chaleureux et terrien
|
|
436
|
-
background: colors.autumn.background,
|
|
437
|
-
// Brun très foncé
|
|
438
|
-
foreground: colors.autumn.text,
|
|
439
|
-
// Texte crème
|
|
440
|
-
card: colors.autumn.surface,
|
|
441
|
-
// Brun clair
|
|
442
|
-
cardForeground: colors.autumn.text,
|
|
443
|
-
primary: colors.autumn.primary,
|
|
444
|
-
// Orange automnal
|
|
445
|
-
primaryForeground: colors.white,
|
|
446
|
-
// Texte blanc sur orange
|
|
447
|
-
secondary: colors.autumn.secondary,
|
|
448
|
-
// Or doré
|
|
449
|
-
secondaryForeground: colors.black,
|
|
450
|
-
// Texte noir sur or
|
|
451
|
-
muted: colors.autumn.muted,
|
|
452
|
-
// Brun très foncé
|
|
453
|
-
mutedForeground: colors.autumn.textSecondary,
|
|
454
|
-
// Texte secondaire
|
|
455
|
-
accent: colors.autumn.accent,
|
|
456
|
-
// Rouge feuille
|
|
457
|
-
accentForeground: colors.white,
|
|
458
|
-
// Texte blanc sur rouge
|
|
459
|
-
destructive: colors.error600,
|
|
460
|
-
// Rouge standard
|
|
461
|
-
destructiveForeground: colors.white,
|
|
462
|
-
border: colors.autumn.border,
|
|
463
|
-
// Bordure brun
|
|
464
|
-
input: colors.autumn.surface,
|
|
465
|
-
// Input avec fond brun
|
|
466
|
-
ring: colors.autumn.primaryLight,
|
|
467
|
-
// Anneaux orange clair
|
|
468
|
-
success: colors.autumn.success,
|
|
469
|
-
// Vert forêt
|
|
470
|
-
warning: colors.warning500,
|
|
471
|
-
// Orange standard
|
|
472
|
-
error: colors.error500,
|
|
473
|
-
// Rouge standard
|
|
474
|
-
info: colors.info500,
|
|
475
|
-
// Bleu standard
|
|
476
|
-
transparent: colors.transparent,
|
|
477
|
-
gradients: {
|
|
478
|
-
primary: [colors.autumn.primaryLight, colors.autumn.primaryDark],
|
|
479
|
-
// Orange dégradé
|
|
480
|
-
secondary: [colors.autumn.secondaryLight, colors.autumn.secondaryDark],
|
|
481
|
-
// Or dégradé
|
|
482
|
-
success: [colors.autumn.successLight, colors.autumn.success],
|
|
483
|
-
// Vert dégradé
|
|
484
|
-
warning: [colors.warning100, colors.warning600],
|
|
485
|
-
// Orange standard
|
|
486
|
-
error: [colors.error100, colors.error600],
|
|
487
|
-
// Rouge standard
|
|
488
|
-
info: [colors.info100, colors.info600],
|
|
489
|
-
// Bleu standard
|
|
490
|
-
subtle: [colors.autumn.background, colors.autumn.muted],
|
|
491
|
-
// Brun foncé vers très foncé
|
|
492
|
-
vibrant: [colors.autumn.accentLight, colors.autumn.primary]
|
|
493
|
-
// Rouge vers orange
|
|
494
|
-
}
|
|
495
|
-
});
|
|
496
|
-
|
|
497
|
-
// foundation/theme/config/definitions/christmas.theme.ts
|
|
498
|
-
var christmasTheme = createTheme({
|
|
499
|
-
// 🎄 Noël - Festif et chaleureux
|
|
500
|
-
background: colors.christmas.background,
|
|
501
|
-
// Vert sapin très foncé
|
|
502
|
-
foreground: colors.christmas.text,
|
|
503
|
-
// Texte blanc neige
|
|
504
|
-
card: colors.christmas.surface,
|
|
505
|
-
// Vert sapin clair
|
|
506
|
-
cardForeground: colors.christmas.text,
|
|
507
|
-
primary: colors.christmas.primary,
|
|
508
|
-
// Rouge Noël
|
|
509
|
-
primaryForeground: colors.white,
|
|
510
|
-
// Texte blanc sur rouge
|
|
511
|
-
secondary: colors.christmas.secondary,
|
|
512
|
-
// Or festif
|
|
513
|
-
secondaryForeground: colors.black,
|
|
514
|
-
// Texte noir sur or
|
|
515
|
-
muted: colors.christmas.muted,
|
|
516
|
-
// Vert très foncé
|
|
517
|
-
mutedForeground: colors.christmas.textSecondary,
|
|
518
|
-
// Texte doré
|
|
519
|
-
accent: colors.christmas.accent,
|
|
520
|
-
// Blanc neige
|
|
521
|
-
accentForeground: colors.black,
|
|
522
|
-
// Texte noir sur blanc
|
|
523
|
-
destructive: colors.error600,
|
|
524
|
-
// Rouge standard
|
|
525
|
-
destructiveForeground: colors.white,
|
|
526
|
-
border: colors.christmas.border,
|
|
527
|
-
// Bordure verte
|
|
528
|
-
input: colors.christmas.surface,
|
|
529
|
-
// Input avec fond vert
|
|
530
|
-
ring: colors.christmas.primaryLight,
|
|
531
|
-
// Anneaux rouge clair
|
|
532
|
-
success: colors.christmas.success,
|
|
533
|
-
// Vert succès
|
|
534
|
-
warning: colors.warning500,
|
|
535
|
-
// Orange standard
|
|
536
|
-
error: colors.error500,
|
|
537
|
-
// Rouge standard
|
|
538
|
-
info: colors.info500,
|
|
539
|
-
// Bleu standard
|
|
540
|
-
transparent: colors.transparent,
|
|
541
|
-
gradients: {
|
|
542
|
-
primary: [colors.christmas.primaryLight, colors.christmas.primaryDark],
|
|
543
|
-
// Rouge dégradé
|
|
544
|
-
secondary: [colors.christmas.secondaryLight, colors.christmas.secondaryDark],
|
|
545
|
-
// Or dégradé
|
|
546
|
-
success: [colors.christmas.successLight, colors.christmas.success],
|
|
547
|
-
// Vert dégradé
|
|
548
|
-
warning: [colors.warning100, colors.warning600],
|
|
549
|
-
// Orange standard
|
|
550
|
-
error: [colors.error100, colors.error600],
|
|
551
|
-
// Rouge standard
|
|
552
|
-
info: [colors.info100, colors.info600],
|
|
553
|
-
// Bleu standard
|
|
554
|
-
subtle: [colors.christmas.background, colors.christmas.muted],
|
|
555
|
-
// Vert foncé vers très foncé
|
|
556
|
-
vibrant: [colors.christmas.accentLight, colors.christmas.primary]
|
|
557
|
-
// Blanc vers rouge
|
|
558
|
-
}
|
|
559
|
-
});
|
|
560
|
-
|
|
561
|
-
// foundation/theme/config/definitions/dark.theme.ts
|
|
562
|
-
var darkTheme = createTheme({
|
|
563
|
-
background: colors.black,
|
|
564
|
-
foreground: colors.white,
|
|
565
|
-
card: colors.primary900,
|
|
566
|
-
cardForeground: colors.gray100,
|
|
567
|
-
primary: colors.primary500,
|
|
568
|
-
primaryForeground: colors.white,
|
|
569
|
-
secondary: colors.secondary500,
|
|
570
|
-
secondaryForeground: colors.white,
|
|
571
|
-
muted: colors.primary900,
|
|
572
|
-
mutedForeground: colors.gray500,
|
|
573
|
-
accent: colors.primary900,
|
|
574
|
-
accentForeground: colors.primary200,
|
|
575
|
-
destructive: colors.error500,
|
|
576
|
-
destructiveForeground: colors.white,
|
|
577
|
-
border: colors.primary800,
|
|
578
|
-
input: colors.primary900,
|
|
579
|
-
ring: colors.secondary600,
|
|
580
|
-
success: colors.success500,
|
|
581
|
-
warning: colors.warning500,
|
|
582
|
-
error: colors.error500,
|
|
583
|
-
info: colors.info500,
|
|
584
|
-
transparent: colors.transparent,
|
|
585
|
-
gradients: {
|
|
586
|
-
// Dégradé Institutionnel : Bleu très sombre vers Noir (effet profondeur)
|
|
587
|
-
primary: [colors.primary800, colors.black],
|
|
588
|
-
// Dégradé Électrique : Midnight Blue vers Noir
|
|
589
|
-
secondary: [colors.secondary900, colors.black],
|
|
590
|
-
// Mélange Signature Flipove Dark : Transition sombre et mystérieuse
|
|
591
|
-
vibrant: [colors.primary800, colors.secondary900],
|
|
592
|
-
// États : On part du sombre vers le noir pour un effet "Glow" subtil
|
|
593
|
-
success: [colors.success50, colors.success100],
|
|
594
|
-
warning: [colors.warning50, colors.warning100],
|
|
595
|
-
error: [colors.error50, colors.error100],
|
|
596
|
-
info: [colors.primary50, colors.primary200],
|
|
597
|
-
// Dégradé de fond ultra-profond
|
|
598
|
-
subtle: [colors.primary900, colors.black]
|
|
599
|
-
}
|
|
600
|
-
});
|
|
601
|
-
|
|
602
|
-
// foundation/theme/config/definitions/halloween.theme.ts
|
|
603
|
-
var halloweenTheme = createTheme({
|
|
604
|
-
// 🎃 Halloween - Sombre et mystérieux
|
|
605
|
-
background: colors.halloween.background,
|
|
606
|
-
// Noir absolu
|
|
607
|
-
foreground: colors.halloween.text,
|
|
608
|
-
// Texte orange
|
|
609
|
-
card: colors.halloween.surface,
|
|
610
|
-
// Gris très foncé
|
|
611
|
-
cardForeground: colors.halloween.text,
|
|
612
|
-
primary: colors.halloween.primary,
|
|
613
|
-
// Orange citrouille
|
|
614
|
-
primaryForeground: colors.black,
|
|
615
|
-
// Texte noir sur orange
|
|
616
|
-
secondary: colors.halloween.secondary,
|
|
617
|
-
// Brun chocolat
|
|
618
|
-
secondaryForeground: colors.white,
|
|
619
|
-
// Texte blanc sur brun
|
|
620
|
-
muted: colors.halloween.muted,
|
|
621
|
-
// Noir absolu
|
|
622
|
-
mutedForeground: colors.halloween.textSecondary,
|
|
623
|
-
// Texte doré
|
|
624
|
-
accent: colors.halloween.accent,
|
|
625
|
-
// Violet magique
|
|
626
|
-
accentForeground: colors.white,
|
|
627
|
-
// Texte blanc sur violet
|
|
628
|
-
destructive: colors.error600,
|
|
629
|
-
// Rouge standard
|
|
630
|
-
destructiveForeground: colors.white,
|
|
631
|
-
border: colors.halloween.border,
|
|
632
|
-
// Bordure grise
|
|
633
|
-
input: colors.halloween.surface,
|
|
634
|
-
// Input avec fond gris
|
|
635
|
-
ring: colors.halloween.primaryLight,
|
|
636
|
-
// Anneaux orange clair
|
|
637
|
-
success: colors.halloween.success,
|
|
638
|
-
// Vert sorcière
|
|
639
|
-
warning: colors.warning500,
|
|
640
|
-
// Orange standard
|
|
641
|
-
error: colors.error500,
|
|
642
|
-
// Rouge standard
|
|
643
|
-
info: colors.info500,
|
|
644
|
-
// Bleu standard
|
|
645
|
-
transparent: colors.transparent,
|
|
646
|
-
gradients: {
|
|
647
|
-
primary: [colors.halloween.primaryLight, colors.halloween.primaryDark],
|
|
648
|
-
// Orange dégradé
|
|
649
|
-
secondary: [colors.halloween.secondaryLight, colors.halloween.secondaryDark],
|
|
650
|
-
// Brun dégradé
|
|
651
|
-
success: [colors.halloween.successLight, colors.halloween.success],
|
|
652
|
-
// Vert dégradé
|
|
653
|
-
warning: [colors.warning100, colors.warning600],
|
|
654
|
-
// Orange standard
|
|
655
|
-
error: [colors.error100, colors.error600],
|
|
656
|
-
// Rouge standard
|
|
657
|
-
info: [colors.info100, colors.info600],
|
|
658
|
-
// Bleu standard
|
|
659
|
-
subtle: [colors.halloween.background, colors.halloween.muted],
|
|
660
|
-
// Noir vers gris
|
|
661
|
-
vibrant: [colors.halloween.accentLight, colors.halloween.primary]
|
|
662
|
-
// Violet vers orange
|
|
663
|
-
}
|
|
664
|
-
});
|
|
665
|
-
|
|
666
|
-
// foundation/theme/config/definitions/light.theme.ts
|
|
667
|
-
var lightTheme = createTheme({
|
|
668
|
-
background: colors.white,
|
|
669
|
-
foreground: colors.black,
|
|
670
|
-
card: colors.primary50,
|
|
671
|
-
cardForeground: colors.primary900,
|
|
672
|
-
primary: colors.primary500,
|
|
673
|
-
primaryForeground: colors.white,
|
|
674
|
-
secondary: colors.secondary500,
|
|
675
|
-
secondaryForeground: colors.white,
|
|
676
|
-
muted: colors.gray100,
|
|
677
|
-
mutedForeground: colors.gray500,
|
|
678
|
-
accent: colors.secondary50,
|
|
679
|
-
accentForeground: colors.secondary700,
|
|
680
|
-
destructive: colors.error600,
|
|
681
|
-
destructiveForeground: colors.white,
|
|
682
|
-
border: colors.primary100,
|
|
683
|
-
input: colors.white,
|
|
684
|
-
ring: colors.primary500,
|
|
685
|
-
success: colors.success600,
|
|
686
|
-
warning: colors.warning600,
|
|
687
|
-
error: colors.error600,
|
|
688
|
-
info: colors.info600,
|
|
689
|
-
transparent: colors.transparent,
|
|
690
|
-
gradients: {
|
|
691
|
-
// Dégradé Institutionnel : Très aérien (idéal pour des fonds de cartes ou headers légers)
|
|
692
|
-
primary: [colors.primary50, colors.white],
|
|
693
|
-
// Dégradé Électrique : Lumineux et frais
|
|
694
|
-
secondary: [colors.secondary200, colors.white],
|
|
695
|
-
// Mélange Signature Flipove : Version "Aurore" (douce transition entre les deux bleus clairs)
|
|
696
|
-
vibrant: [colors.primary100, colors.secondary100],
|
|
697
|
-
// États : Nuances claires pour ne pas agresser l'œil en mode Light
|
|
698
|
-
success: [colors.success50, colors.success100],
|
|
699
|
-
warning: [colors.warning50, colors.warning100],
|
|
700
|
-
error: [colors.error50, colors.error100],
|
|
701
|
-
info: [colors.primary50, colors.primary200],
|
|
702
|
-
// Dégradé de fond ultra-subtle
|
|
703
|
-
subtle: [colors.white, colors.primary50]
|
|
704
|
-
}
|
|
705
|
-
});
|
|
706
|
-
|
|
707
|
-
// foundation/theme/config/definitions/neon.theme.ts
|
|
708
|
-
var neonTheme = createTheme({
|
|
709
|
-
// Fond violet presque transparent et brillant
|
|
710
|
-
background: colors.neon.background,
|
|
711
|
-
// Violet très foncé et transparent
|
|
712
|
-
foreground: colors.neon.text,
|
|
713
|
-
// Blanc pur pour contraste maximal
|
|
714
|
-
card: colors.neon.surface,
|
|
715
|
-
// Surface violet clair
|
|
716
|
-
cardForeground: colors.neon.text,
|
|
717
|
-
// Couleurs principales - Vibrantes et brillantes
|
|
718
|
-
primary: colors.neon.primary,
|
|
719
|
-
// Violet vif et brillant
|
|
720
|
-
primaryForeground: colors.black,
|
|
721
|
-
// Texte noir sur violet brillant
|
|
722
|
-
secondary: colors.neon.secondary,
|
|
723
|
-
// Cyan électrique brillant
|
|
724
|
-
secondaryForeground: colors.black,
|
|
725
|
-
// Texte noir sur cyan
|
|
726
|
-
// Éléments en retrait et accents brillants
|
|
727
|
-
muted: colors.neon.muted,
|
|
728
|
-
// Violet foncé pour éléments discrets
|
|
729
|
-
mutedForeground: colors.neon.textSecondary,
|
|
730
|
-
// Texte secondaire violet clair
|
|
731
|
-
accent: colors.neon.accent,
|
|
732
|
-
// Rose neon vif
|
|
733
|
-
accentForeground: colors.white,
|
|
734
|
-
// Texte blanc sur rose
|
|
735
|
-
// Actions et états
|
|
736
|
-
destructive: colors.error600,
|
|
737
|
-
// Rouge standard pour erreurs
|
|
738
|
-
destructiveForeground: colors.white,
|
|
739
|
-
border: colors.neon.border,
|
|
740
|
-
// Bordures violettes vibrantes
|
|
741
|
-
input: colors.neon.surface,
|
|
742
|
-
// Input avec fond de surface
|
|
743
|
-
ring: colors.neon.primaryLight,
|
|
744
|
-
// Anneaux avec violet très brillant
|
|
745
|
-
// États sémantiques - Couleurs brillantes
|
|
746
|
-
success: colors.neon.success,
|
|
747
|
-
// Vert électrique brillant
|
|
748
|
-
warning: colors.warning500,
|
|
749
|
-
// Orange standard
|
|
750
|
-
error: colors.error500,
|
|
751
|
-
// Rouge standard
|
|
752
|
-
info: colors.neon.secondary,
|
|
753
|
-
// Cyan brillant pour informations
|
|
754
|
-
transparent: colors.transparent,
|
|
755
|
-
// Dégradés - Vibrants et électriques
|
|
756
|
-
gradients: {
|
|
757
|
-
primary: [colors.neon.primaryLight, colors.neon.primaryDark],
|
|
758
|
-
// Violet brillant dégradé
|
|
759
|
-
secondary: [colors.neon.secondaryLight, colors.neon.secondaryDark],
|
|
760
|
-
// Cyan électrique dégradé
|
|
761
|
-
success: [colors.neon.successLight, colors.neon.success],
|
|
762
|
-
// Vert électrique dégradé
|
|
763
|
-
warning: [colors.warning100, colors.warning600],
|
|
764
|
-
// Orange standard
|
|
765
|
-
error: [colors.error100, colors.error600],
|
|
766
|
-
// Rouge standard
|
|
767
|
-
info: [colors.neon.secondaryLight, colors.neon.secondaryDark],
|
|
768
|
-
// Cyan brillant dégradé
|
|
769
|
-
subtle: [colors.neon.background, colors.neon.muted],
|
|
770
|
-
// Violet transparent vers foncé
|
|
771
|
-
vibrant: [colors.neon.accentLight, colors.neon.primary]
|
|
772
|
-
// Rose vers violet brillant
|
|
773
|
-
}
|
|
774
|
-
});
|
|
775
|
-
|
|
776
|
-
// foundation/theme/config/definitions/spring.theme.ts
|
|
777
|
-
var springTheme = createTheme({
|
|
778
|
-
// 🌸 Printemps - Frais et floral
|
|
779
|
-
background: colors.spring.background,
|
|
780
|
-
// Blanc cassé très clair
|
|
781
|
-
foreground: colors.spring.text,
|
|
782
|
-
// Texte gris foncé
|
|
783
|
-
card: colors.spring.surface,
|
|
784
|
-
// Blanc pur pour les cartes
|
|
785
|
-
cardForeground: colors.spring.text,
|
|
786
|
-
primary: colors.spring.primary,
|
|
787
|
-
// Rose printanier
|
|
788
|
-
primaryForeground: colors.white,
|
|
789
|
-
// Texte blanc sur rose
|
|
790
|
-
secondary: colors.spring.secondary,
|
|
791
|
-
// Vert frais
|
|
792
|
-
secondaryForeground: colors.white,
|
|
793
|
-
// Texte blanc sur vert
|
|
794
|
-
muted: colors.spring.muted,
|
|
795
|
-
// Gris très clair
|
|
796
|
-
mutedForeground: colors.spring.textSecondary,
|
|
797
|
-
// Texte secondaire
|
|
798
|
-
accent: colors.spring.accent,
|
|
799
|
-
// Jaune doux
|
|
800
|
-
accentForeground: colors.black,
|
|
801
|
-
// Texte noir sur jaune
|
|
802
|
-
destructive: colors.error600,
|
|
803
|
-
// Rouge standard
|
|
804
|
-
destructiveForeground: colors.white,
|
|
805
|
-
border: colors.spring.border,
|
|
806
|
-
// Bordure douce
|
|
807
|
-
input: colors.spring.surface,
|
|
808
|
-
// Input avec fond blanc
|
|
809
|
-
ring: colors.spring.primaryLight,
|
|
810
|
-
// Anneaux rose clair
|
|
811
|
-
success: colors.spring.success,
|
|
812
|
-
// Vert printanier
|
|
813
|
-
warning: colors.warning500,
|
|
814
|
-
// Orange standard
|
|
815
|
-
error: colors.error500,
|
|
816
|
-
// Rouge standard
|
|
817
|
-
info: colors.info500,
|
|
818
|
-
// Bleu standard
|
|
819
|
-
transparent: colors.transparent,
|
|
820
|
-
gradients: {
|
|
821
|
-
primary: [colors.spring.primaryLight, colors.spring.primaryDark],
|
|
822
|
-
// Rose dégradé
|
|
823
|
-
secondary: [colors.spring.secondaryLight, colors.spring.secondaryDark],
|
|
824
|
-
// Vert dégradé
|
|
825
|
-
success: [colors.spring.successLight, colors.spring.success],
|
|
826
|
-
// Vert dégradé
|
|
827
|
-
warning: [colors.warning100, colors.warning600],
|
|
828
|
-
// Orange standard
|
|
829
|
-
error: [colors.error100, colors.error600],
|
|
830
|
-
// Rouge standard
|
|
831
|
-
info: [colors.info100, colors.info600],
|
|
832
|
-
// Bleu standard
|
|
833
|
-
subtle: [colors.spring.background, colors.spring.muted],
|
|
834
|
-
// Blanc cassé vers gris
|
|
835
|
-
vibrant: [colors.spring.accentLight, colors.spring.primary]
|
|
836
|
-
// Jaune vers rose
|
|
837
|
-
}
|
|
838
|
-
});
|
|
839
|
-
|
|
840
|
-
// foundation/theme/config/definitions/summer.theme.ts
|
|
841
|
-
var summerTheme = createTheme({
|
|
842
|
-
// ☀️ Été - Vibrant et solaire
|
|
843
|
-
background: colors.summer.background,
|
|
844
|
-
// Jaune crème très clair
|
|
845
|
-
foreground: colors.summer.text,
|
|
846
|
-
// Texte brun doré
|
|
847
|
-
card: colors.summer.surface,
|
|
848
|
-
// Blanc pur
|
|
849
|
-
cardForeground: colors.summer.text,
|
|
850
|
-
primary: colors.summer.primary,
|
|
851
|
-
// Orange solaire
|
|
852
|
-
primaryForeground: colors.white,
|
|
853
|
-
// Texte blanc sur orange
|
|
854
|
-
secondary: colors.summer.secondary,
|
|
855
|
-
// Rouge vif
|
|
856
|
-
secondaryForeground: colors.white,
|
|
857
|
-
// Texte blanc sur rouge
|
|
858
|
-
muted: colors.summer.muted,
|
|
859
|
-
// Jaune très clair
|
|
860
|
-
mutedForeground: colors.summer.textSecondary,
|
|
861
|
-
// Texte secondaire
|
|
862
|
-
accent: colors.summer.accent,
|
|
863
|
-
// Bleu ciel
|
|
864
|
-
accentForeground: colors.white,
|
|
865
|
-
// Texte blanc sur bleu
|
|
866
|
-
destructive: colors.error600,
|
|
867
|
-
// Rouge standard
|
|
868
|
-
destructiveForeground: colors.white,
|
|
869
|
-
border: colors.summer.border,
|
|
870
|
-
// Bordure jaune
|
|
871
|
-
input: colors.summer.surface,
|
|
872
|
-
// Input avec fond blanc
|
|
873
|
-
ring: colors.summer.primaryLight,
|
|
874
|
-
// Anneaux jaune vif
|
|
875
|
-
success: colors.summer.success,
|
|
876
|
-
// Vert frais
|
|
877
|
-
warning: colors.warning500,
|
|
878
|
-
// Orange standard
|
|
879
|
-
error: colors.error500,
|
|
880
|
-
// Rouge standard
|
|
881
|
-
info: colors.info500,
|
|
882
|
-
// Bleu standard
|
|
883
|
-
transparent: colors.transparent,
|
|
884
|
-
gradients: {
|
|
885
|
-
primary: [colors.summer.primaryLight, colors.summer.primaryDark],
|
|
886
|
-
// Jaune vers orange
|
|
887
|
-
secondary: [colors.summer.secondaryLight, colors.summer.secondaryDark],
|
|
888
|
-
// Rouge dégradé
|
|
889
|
-
success: [colors.summer.successLight, colors.summer.success],
|
|
890
|
-
// Vert dégradé
|
|
891
|
-
warning: [colors.warning100, colors.warning600],
|
|
892
|
-
// Orange standard
|
|
893
|
-
error: [colors.error100, colors.error600],
|
|
894
|
-
// Rouge standard
|
|
895
|
-
info: [colors.info100, colors.info600],
|
|
896
|
-
// Bleu standard
|
|
897
|
-
subtle: [colors.summer.background, colors.summer.muted],
|
|
898
|
-
// Jaune crème vers clair
|
|
899
|
-
vibrant: [colors.summer.accentLight, colors.summer.primary]
|
|
900
|
-
// Bleu vers orange
|
|
901
|
-
}
|
|
902
|
-
});
|
|
903
|
-
|
|
904
|
-
// foundation/theme/config/definitions/winter.theme.ts
|
|
905
|
-
var winterTheme = createTheme({
|
|
906
|
-
// ❄️ Hiver - Glacial et élégant
|
|
907
|
-
background: colors.winter.background,
|
|
908
|
-
// Bleu nuit très foncé
|
|
909
|
-
foreground: colors.winter.text,
|
|
910
|
-
// Texte blanc glacial
|
|
911
|
-
card: colors.winter.surface,
|
|
912
|
-
// Bleu nuit clair
|
|
913
|
-
cardForeground: colors.winter.text,
|
|
914
|
-
primary: colors.winter.primary,
|
|
915
|
-
// Bleu glacial
|
|
916
|
-
primaryForeground: colors.white,
|
|
917
|
-
// Texte blanc sur bleu
|
|
918
|
-
secondary: colors.winter.secondary,
|
|
919
|
-
// Blanc argenté
|
|
920
|
-
secondaryForeground: colors.black,
|
|
921
|
-
// Texte noir sur argent
|
|
922
|
-
muted: colors.winter.muted,
|
|
923
|
-
// Bleu nuit
|
|
924
|
-
mutedForeground: colors.winter.textSecondary,
|
|
925
|
-
// Texte argenté
|
|
926
|
-
accent: colors.winter.accent,
|
|
927
|
-
// Violet givré
|
|
928
|
-
accentForeground: colors.white,
|
|
929
|
-
// Texte blanc sur violet
|
|
930
|
-
destructive: colors.error600,
|
|
931
|
-
// Rouge standard
|
|
932
|
-
destructiveForeground: colors.white,
|
|
933
|
-
border: colors.winter.border,
|
|
934
|
-
// Bordure bleue
|
|
935
|
-
input: colors.winter.surface,
|
|
936
|
-
// Input avec fond bleu nuit
|
|
937
|
-
ring: colors.winter.primaryLight,
|
|
938
|
-
// Anneaux bleu clair
|
|
939
|
-
success: colors.winter.success,
|
|
940
|
-
// Vert sapin
|
|
941
|
-
warning: colors.warning500,
|
|
942
|
-
// Orange standard
|
|
943
|
-
error: colors.error500,
|
|
944
|
-
// Rouge standard
|
|
945
|
-
info: colors.info500,
|
|
946
|
-
// Bleu standard
|
|
947
|
-
transparent: colors.transparent,
|
|
948
|
-
gradients: {
|
|
949
|
-
primary: [colors.winter.primaryLight, colors.winter.primaryDark],
|
|
950
|
-
// Bleu dégradé
|
|
951
|
-
secondary: [colors.winter.secondaryLight, colors.winter.secondaryDark],
|
|
952
|
-
// Argent dégradé
|
|
953
|
-
success: [colors.winter.successLight, colors.winter.success],
|
|
954
|
-
// Vert dégradé
|
|
955
|
-
warning: [colors.warning100, colors.warning600],
|
|
956
|
-
// Orange standard
|
|
957
|
-
error: [colors.error100, colors.error600],
|
|
958
|
-
// Rouge standard
|
|
959
|
-
info: [colors.info100, colors.info600],
|
|
960
|
-
// Bleu standard
|
|
961
|
-
subtle: [colors.winter.background, colors.winter.muted],
|
|
962
|
-
// Bleu nuit vers clair
|
|
963
|
-
vibrant: [colors.winter.accentLight, colors.winter.primary]
|
|
964
|
-
// Violet vers bleu
|
|
965
|
-
}
|
|
966
|
-
});
|
|
967
|
-
function useColorScheme(theme) {
|
|
968
|
-
const nativeScheme = useColorScheme$1();
|
|
969
|
-
if (theme) return theme;
|
|
970
|
-
return nativeScheme ?? "light";
|
|
971
|
-
}
|
|
972
|
-
var ThemeContext = createContext(null);
|
|
973
|
-
var useTheme = (customTheme) => {
|
|
974
|
-
const context = useContext(ThemeContext);
|
|
975
|
-
if (!context) {
|
|
976
|
-
throw new Error("useTheme must be used within ThemeProvider");
|
|
977
|
-
}
|
|
978
|
-
if (customTheme && context.availableThemes[customTheme]) {
|
|
979
|
-
return {
|
|
980
|
-
theme: context.availableThemes[customTheme],
|
|
981
|
-
mode: customTheme,
|
|
982
|
-
setTheme: context.setTheme,
|
|
983
|
-
availableThemes: context.availableThemes
|
|
984
|
-
};
|
|
985
|
-
}
|
|
986
|
-
return context;
|
|
987
|
-
};
|
|
988
|
-
var ThemeProvider = ({
|
|
989
|
-
children,
|
|
990
|
-
defaultTheme,
|
|
991
|
-
customThemes = {}
|
|
992
|
-
}) => {
|
|
993
|
-
const systemColorScheme = useColorScheme();
|
|
994
|
-
const [currentTheme, setCurrentTheme] = useState(
|
|
995
|
-
defaultTheme || systemColorScheme
|
|
996
|
-
);
|
|
997
|
-
const [isManualSelection, setIsManualSelection] = useState(false);
|
|
998
|
-
const themeRegistry = {
|
|
999
|
-
light: lightTheme,
|
|
1000
|
-
dark: darkTheme,
|
|
1001
|
-
neon: neonTheme,
|
|
1002
|
-
spring: springTheme,
|
|
1003
|
-
summer: summerTheme,
|
|
1004
|
-
autumn: autumnTheme,
|
|
1005
|
-
winter: winterTheme,
|
|
1006
|
-
halloween: halloweenTheme,
|
|
1007
|
-
christmas: christmasTheme,
|
|
1008
|
-
...customThemes
|
|
1009
|
-
};
|
|
1010
|
-
useEffect(() => {
|
|
1011
|
-
if (defaultTheme) {
|
|
1012
|
-
setCurrentTheme(defaultTheme);
|
|
1013
|
-
}
|
|
1014
|
-
}, [defaultTheme]);
|
|
1015
|
-
useEffect(() => {
|
|
1016
|
-
if (defaultTheme && customThemes && Object.keys(customThemes).length > 0) {
|
|
1017
|
-
setCurrentTheme((prev) => prev);
|
|
1018
|
-
}
|
|
1019
|
-
}, [customThemes, defaultTheme]);
|
|
1020
|
-
useEffect(() => {
|
|
1021
|
-
if (!isManualSelection && !defaultTheme) {
|
|
1022
|
-
setCurrentTheme(systemColorScheme);
|
|
1023
|
-
}
|
|
1024
|
-
}, [systemColorScheme, defaultTheme, isManualSelection]);
|
|
1025
|
-
const setTheme = (theme) => {
|
|
1026
|
-
if (themeRegistry[theme]) {
|
|
1027
|
-
setCurrentTheme(theme);
|
|
1028
|
-
setIsManualSelection(true);
|
|
1029
|
-
} else {
|
|
1030
|
-
console.warn(`Theme "${theme}" is not available. Available themes:`, Object.keys(themeRegistry));
|
|
1031
|
-
}
|
|
1032
|
-
};
|
|
1033
|
-
const activeTheme = themeRegistry[currentTheme] || lightTheme;
|
|
1034
|
-
const value = {
|
|
1035
|
-
theme: activeTheme,
|
|
1036
|
-
mode: currentTheme,
|
|
1037
|
-
setTheme,
|
|
1038
|
-
availableThemes: themeRegistry
|
|
1039
|
-
};
|
|
1040
|
-
return /* @__PURE__ */ jsx(ThemeContext.Provider, { value, children });
|
|
1041
|
-
};
|
|
1042
|
-
|
|
1043
|
-
// foundation/web/primitives/Box.tsx
|
|
1044
13
|
var GRADIENT_ANGLES = {
|
|
1045
14
|
toTop: "to top",
|
|
1046
15
|
toBottom: "to bottom",
|
|
@@ -1061,7 +30,7 @@ function rnShadowToCss(s) {
|
|
|
1061
30
|
const opacity2 = s.shadowOpacity ?? 0.2;
|
|
1062
31
|
return `${ox}px ${oy}px ${blur * 2}px rgba(0,0,0,${opacity2})`;
|
|
1063
32
|
}
|
|
1064
|
-
var Box =
|
|
33
|
+
var Box = React.forwardRef(({
|
|
1065
34
|
// Padding
|
|
1066
35
|
p,
|
|
1067
36
|
pt,
|
|
@@ -1253,11 +222,11 @@ var Box = React2.forwardRef(({
|
|
|
1253
222
|
zIndex,
|
|
1254
223
|
style
|
|
1255
224
|
]);
|
|
1256
|
-
return
|
|
225
|
+
return React.createElement(Tag, { ref, style: computedStyle, ...rest }, children);
|
|
1257
226
|
});
|
|
1258
227
|
Box.displayName = "Box";
|
|
1259
228
|
var Box_default = Box;
|
|
1260
|
-
var Stack =
|
|
229
|
+
var Stack = React.forwardRef(({
|
|
1261
230
|
spacing: spacingToken = 0,
|
|
1262
231
|
align = "stretch",
|
|
1263
232
|
justify = "flex-start",
|
|
@@ -1286,7 +255,7 @@ var Stack = React2.forwardRef(({
|
|
|
1286
255
|
});
|
|
1287
256
|
Stack.displayName = "Stack";
|
|
1288
257
|
var Stack_default = Stack;
|
|
1289
|
-
var Inline =
|
|
258
|
+
var Inline = React.forwardRef(({
|
|
1290
259
|
spacing: spacingToken = 0,
|
|
1291
260
|
align = "center",
|
|
1292
261
|
justify = "flex-start",
|
|
@@ -1313,7 +282,7 @@ var Inline = React2.forwardRef(({
|
|
|
1313
282
|
});
|
|
1314
283
|
Inline.displayName = "Inline";
|
|
1315
284
|
var Inline_default = Inline;
|
|
1316
|
-
var Center =
|
|
285
|
+
var Center = React.forwardRef(({
|
|
1317
286
|
horizontal = true,
|
|
1318
287
|
vertical = true,
|
|
1319
288
|
children,
|
|
@@ -1338,7 +307,7 @@ var scrollbarHideStyle = {
|
|
|
1338
307
|
scrollbarWidth: "none",
|
|
1339
308
|
msOverflowStyle: "none"
|
|
1340
309
|
};
|
|
1341
|
-
var Scroll =
|
|
310
|
+
var Scroll = React.forwardRef(({
|
|
1342
311
|
direction = "vertical",
|
|
1343
312
|
hideScrollbar = false,
|
|
1344
313
|
children,
|
|
@@ -1394,2297 +363,13 @@ var Divider = ({
|
|
|
1394
363
|
return /* @__PURE__ */ jsx("div", { role: "separator", "aria-orientation": orientation, className, style: { ...baseStyle, ...style } });
|
|
1395
364
|
};
|
|
1396
365
|
var Divider_default = Divider;
|
|
1397
|
-
|
|
1398
|
-
// foundation/layout/registry/defaults.ts
|
|
1399
|
-
function extractDefaults(meta) {
|
|
1400
|
-
const defaults = {};
|
|
1401
|
-
for (const prop of meta.props) {
|
|
1402
|
-
if (prop.default !== void 0) {
|
|
1403
|
-
defaults[prop.name] = prop.default;
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
return defaults;
|
|
1407
|
-
}
|
|
1408
|
-
function resolveThemeDefaults(meta, theme) {
|
|
1409
|
-
const resolved = {};
|
|
1410
|
-
for (const prop of meta.props) {
|
|
1411
|
-
if (prop.themeDefault) {
|
|
1412
|
-
resolved[prop.name] = theme[prop.themeDefault];
|
|
1413
|
-
}
|
|
1414
|
-
}
|
|
1415
|
-
return resolved;
|
|
1416
|
-
}
|
|
1417
|
-
function applyDefaults(props, meta, theme) {
|
|
1418
|
-
const themeDefaults = theme ? resolveThemeDefaults(meta, theme) : {};
|
|
1419
|
-
const staticDefaults = extractDefaults(meta);
|
|
1420
|
-
const result = { ...themeDefaults, ...staticDefaults };
|
|
1421
|
-
for (const key of Object.keys(props)) {
|
|
1422
|
-
const value = props[key];
|
|
1423
|
-
if (value !== void 0) {
|
|
1424
|
-
result[key] = value;
|
|
1425
|
-
}
|
|
1426
|
-
}
|
|
1427
|
-
return result;
|
|
1428
|
-
}
|
|
1429
|
-
function applyVariant(props, variant) {
|
|
1430
|
-
const result = { ...variant.overrides };
|
|
1431
|
-
for (const key of Object.keys(props)) {
|
|
1432
|
-
const value = props[key];
|
|
1433
|
-
if (value !== void 0) {
|
|
1434
|
-
result[key] = value;
|
|
1435
|
-
}
|
|
1436
|
-
}
|
|
1437
|
-
return result;
|
|
1438
|
-
}
|
|
1439
|
-
function getConstants(meta) {
|
|
1440
|
-
return meta.constants ?? {};
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
// foundation/layout/registry/layouts.ts
|
|
1444
|
-
function getLayoutMeta(id) {
|
|
1445
|
-
return layoutRegistry.find((m) => m.id === id);
|
|
1446
|
-
}
|
|
1447
|
-
var layoutRegistry = [
|
|
1448
|
-
// ═══════════════════════════════════════════════════════════════════════════
|
|
1449
|
-
// PAGE
|
|
1450
|
-
// ═══════════════════════════════════════════════════════════════════════════
|
|
1451
|
-
{
|
|
1452
|
-
id: "RootLayout",
|
|
1453
|
-
label: "Root",
|
|
1454
|
-
description: "Root page container with direct flex control. Ideal as the base of every page.",
|
|
1455
|
-
category: "page",
|
|
1456
|
-
slots: [{ name: "children", label: "Content", required: true, kind: "children" }],
|
|
1457
|
-
responsive: false,
|
|
1458
|
-
animated: false,
|
|
1459
|
-
tags: ["root", "page", "container", "flex"],
|
|
1460
|
-
themeMapping: { root: "background" },
|
|
1461
|
-
props: [
|
|
1462
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "background" },
|
|
1463
|
-
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
1464
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 0 },
|
|
1465
|
-
{ name: "justifyContent", label: "Justify", type: "enum", group: "layout", default: "flex-start", options: ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"] },
|
|
1466
|
-
{ name: "alignItems", label: "Align Items", type: "enum", group: "layout", default: "stretch", options: ["stretch", "flex-start", "center", "flex-end", "baseline"] },
|
|
1467
|
-
{ name: "flexDirection", label: "Direction", type: "enum", group: "layout", default: "column", options: ["column", "row"] },
|
|
1468
|
-
{ name: "gap", label: "Gap", type: "number", group: "layout", default: 0 }
|
|
1469
|
-
]
|
|
1470
|
-
},
|
|
1471
|
-
{
|
|
1472
|
-
id: "VoidLayout",
|
|
1473
|
-
label: "Vide",
|
|
1474
|
-
description: "Conteneur minimal avec scroll, padding et maxWidth optionnels.",
|
|
1475
|
-
category: "page",
|
|
1476
|
-
slots: [{ name: "children", label: "Contenu", required: true, kind: "children" }],
|
|
1477
|
-
responsive: false,
|
|
1478
|
-
animated: false,
|
|
1479
|
-
tags: ["blank", "empty", "minimal", "wrapper"],
|
|
1480
|
-
props: [
|
|
1481
|
-
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout", description: "Largeur maximale du conteneur" },
|
|
1482
|
-
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
1483
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
1484
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1485
|
-
{ name: "padding", label: "Padding", type: "padding", group: "layout" },
|
|
1486
|
-
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
|
|
1487
|
-
{ name: "centerContent", label: "Centrer contenu", type: "boolean", group: "layout", default: false },
|
|
1488
|
-
{ name: "showBorder", label: "Bordure visible", type: "boolean", group: "style", default: false }
|
|
1489
|
-
]
|
|
1490
|
-
},
|
|
1491
|
-
{
|
|
1492
|
-
id: "CenteredLayout",
|
|
1493
|
-
label: "Centr\xE9",
|
|
1494
|
-
description: "Contenu centr\xE9 avec carte optionnelle et maxWidth.",
|
|
1495
|
-
category: "page",
|
|
1496
|
-
slots: [{ name: "children", label: "Contenu", required: true, kind: "children" }],
|
|
1497
|
-
responsive: true,
|
|
1498
|
-
animated: false,
|
|
1499
|
-
tags: ["centered", "form", "onboarding", "modal"],
|
|
1500
|
-
themeMapping: { root: "background", surface: "card" },
|
|
1501
|
-
props: [
|
|
1502
|
-
{ name: "maxWidth", label: "Largeur max carte", type: "number", group: "layout", default: 500 },
|
|
1503
|
-
{ name: "padding", label: "Padding carte", type: "spacing", group: "layout", default: 4 },
|
|
1504
|
-
{ name: "background", label: "Fond page", type: "color", group: "style", themeDefault: "background" },
|
|
1505
|
-
{ name: "cardBackground", label: "Fond carte", type: "color", group: "style", themeDefault: "card" },
|
|
1506
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "3xl" },
|
|
1507
|
-
{ name: "shadowed", label: "Ombre carte", type: "boolean", group: "style", default: false },
|
|
1508
|
-
{ name: "mobilePadding", label: "Padding mobile", type: "spacing", group: "layout", default: 4 },
|
|
1509
|
-
{ name: "desktopPadding", label: "Padding desktop", type: "spacing", group: "layout", default: 6 }
|
|
1510
|
-
]
|
|
1511
|
-
},
|
|
1512
|
-
{
|
|
1513
|
-
id: "AuthLayout",
|
|
1514
|
-
label: "Authentification",
|
|
1515
|
-
description: "Panel branding (desktop) + formulaire centr\xE9. Mobile : plein \xE9cran.",
|
|
1516
|
-
category: "page",
|
|
1517
|
-
themeMapping: { root: "background", surface: "card" },
|
|
1518
|
-
slots: [
|
|
1519
|
-
{ name: "children", label: "Formulaire", required: true, kind: "children" },
|
|
1520
|
-
{ name: "branding", label: "Panel branding", required: false, kind: "named" }
|
|
1521
|
-
],
|
|
1522
|
-
responsive: true,
|
|
1523
|
-
animated: false,
|
|
1524
|
-
tags: ["auth", "login", "signup", "onboarding"],
|
|
1525
|
-
props: [
|
|
1526
|
-
{ name: "brandingBackground", label: "Fond branding", type: "color", group: "style", themeDefault: "card" },
|
|
1527
|
-
{ name: "background", label: "Fond", type: "background", group: "style" },
|
|
1528
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1529
|
-
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
|
|
1530
|
-
{ name: "brandingRatio", label: "Ratio branding", type: "ratio", group: "layout", default: 0.5, min: 0, max: 1 },
|
|
1531
|
-
{ name: "padding", label: "Padding formulaire", type: "spacing", group: "layout", default: 5 },
|
|
1532
|
-
{ name: "shadowed", label: "Ombre mobile", type: "boolean", group: "style", default: true },
|
|
1533
|
-
{ name: "formMaxWidth", label: "Largeur max formulaire", type: "number", group: "layout", default: 520 },
|
|
1534
|
-
{ name: "formScrollPaddingY", label: "Padding scroll Y", type: "spacing", group: "layout", default: 8 },
|
|
1535
|
-
{ name: "formScrollPaddingX", label: "Padding scroll X", type: "spacing", group: "layout", default: 4 }
|
|
1536
|
-
]
|
|
1537
|
-
},
|
|
1538
|
-
{
|
|
1539
|
-
id: "DashboardLayout",
|
|
1540
|
-
label: "Dashboard",
|
|
1541
|
-
description: "Header fixe, sidebar collapsible, contenu scrollable, footer optionnel.",
|
|
1542
|
-
category: "page",
|
|
1543
|
-
themeMapping: { root: "background", surface: "card" },
|
|
1544
|
-
slots: [
|
|
1545
|
-
{ name: "header", label: "Header", required: true, kind: "named" },
|
|
1546
|
-
{ name: "content", label: "Contenu", required: true, kind: "named" },
|
|
1547
|
-
{ name: "sidebar", label: "Sidebar", required: false, kind: "named" },
|
|
1548
|
-
{ name: "footer", label: "Footer", required: false, kind: "named" }
|
|
1549
|
-
],
|
|
1550
|
-
responsive: true,
|
|
1551
|
-
animated: true,
|
|
1552
|
-
dependencies: ["react-native-reanimated"],
|
|
1553
|
-
tags: ["dashboard", "admin", "sidebar", "header"],
|
|
1554
|
-
props: [
|
|
1555
|
-
{ name: "sidebarWidth", label: "Largeur sidebar", type: "number", group: "layout", default: 260 },
|
|
1556
|
-
{ name: "sidebarCollapsedWidth", label: "Largeur sidebar r\xE9duite", type: "number", group: "layout", default: 70 },
|
|
1557
|
-
{ name: "headerHeight", label: "Hauteur header", type: "number", group: "layout", default: 70 },
|
|
1558
|
-
{ name: "footerHeight", label: "Hauteur footer", type: "number", group: "layout", default: 60 },
|
|
1559
|
-
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
|
|
1560
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1561
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
1562
|
-
{ name: "disableContentScroll", label: "D\xE9sactiver scroll contenu", type: "boolean", group: "behavior", default: false },
|
|
1563
|
-
{ name: "headerBackground", label: "Fond header", type: "color", group: "style", themeDefault: "card" },
|
|
1564
|
-
{ name: "sidebarBackground", label: "Fond sidebar", type: "color", group: "style", themeDefault: "card" },
|
|
1565
|
-
{ name: "contentBackground", label: "Fond contenu", type: "color", group: "style", themeDefault: "card" },
|
|
1566
|
-
{ name: "footerBackground", label: "Fond footer", type: "color", group: "style", themeDefault: "card" },
|
|
1567
|
-
{ name: "headerPaddingX", label: "Padding X header", type: "spacing", group: "layout", default: 4 },
|
|
1568
|
-
{ name: "mobileHeaderMinHeight", label: "Hauteur min header mobile", type: "number", group: "layout", default: 60 }
|
|
1569
|
-
]
|
|
1570
|
-
},
|
|
1571
|
-
{
|
|
1572
|
-
id: "ResponsiveLayout",
|
|
1573
|
-
label: "Responsive",
|
|
1574
|
-
description: "Layout adaptatif header/sidebar/content/footer avec 3 modes.",
|
|
1575
|
-
category: "page",
|
|
1576
|
-
themeMapping: { root: "background" },
|
|
1577
|
-
slots: [
|
|
1578
|
-
{ name: "content", label: "Contenu", required: true, kind: "named" },
|
|
1579
|
-
{ name: "header", label: "Header", required: false, kind: "named" },
|
|
1580
|
-
{ name: "sidebar", label: "Sidebar", required: false, kind: "named" },
|
|
1581
|
-
{ name: "footer", label: "Footer", required: false, kind: "named" }
|
|
1582
|
-
],
|
|
1583
|
-
responsive: true,
|
|
1584
|
-
animated: false,
|
|
1585
|
-
tags: ["responsive", "adaptive", "header", "sidebar", "footer"],
|
|
1586
|
-
props: [
|
|
1587
|
-
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
|
|
1588
|
-
{ name: "headerHeight", label: "Hauteur header", type: "number", group: "layout", default: 60 },
|
|
1589
|
-
{ name: "sidebarWidth", label: "Largeur sidebar", type: "number", group: "layout", default: 260 },
|
|
1590
|
-
{ name: "footerHeight", label: "Hauteur footer", type: "number", group: "layout", default: 60 },
|
|
1591
|
-
{ name: "adaptiveMode", label: "Mode adaptatif", type: "enum", group: "behavior", default: "basic", options: ["basic", "sidebar", "full"] },
|
|
1592
|
-
{ name: "hideHeader", label: "Cacher header", type: "boolean", group: "behavior", default: false },
|
|
1593
|
-
{ name: "hideFooter", label: "Cacher footer", type: "boolean", group: "behavior", default: false },
|
|
1594
|
-
{ name: "collapseFooterOnTablet", label: "Footer compact tablette", type: "boolean", group: "behavior", default: false },
|
|
1595
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
1596
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1597
|
-
{ name: "headerBackground", label: "Fond header", type: "color", group: "style", themeDefault: "background" },
|
|
1598
|
-
{ name: "sidebarBackground", label: "Fond sidebar", type: "color", group: "style", themeDefault: "background" },
|
|
1599
|
-
{ name: "footerBackground", label: "Fond footer", type: "color", group: "style", themeDefault: "background" },
|
|
1600
|
-
{ name: "contentBackground", label: "Fond contenu", type: "color", group: "style" },
|
|
1601
|
-
{ name: "padding", label: "Padding", type: "padding", group: "layout" },
|
|
1602
|
-
{ name: "contentPadding", label: "Padding contenu", type: "padding", group: "layout" },
|
|
1603
|
-
{ name: "mobileHeaderHeight", label: "Hauteur header mobile", type: "number", group: "layout", default: 56 },
|
|
1604
|
-
{ name: "tabletFooterHeight", label: "Hauteur footer tablette", type: "number", group: "layout", default: 48 },
|
|
1605
|
-
{ name: "sidebarMaxWidth", label: "Largeur max sidebar", type: "number", group: "layout", default: 320 }
|
|
1606
|
-
]
|
|
1607
|
-
},
|
|
1608
|
-
// ═══════════════════════════════════════════════════════════════════════════
|
|
1609
|
-
// CONTENT
|
|
1610
|
-
// ═══════════════════════════════════════════════════════════════════════════
|
|
1611
|
-
{
|
|
1612
|
-
id: "FlexLayout",
|
|
1613
|
-
label: "Flex",
|
|
1614
|
-
description: "Direction, wrap et espacement adaptatifs. Scroll optionnel.",
|
|
1615
|
-
category: "content",
|
|
1616
|
-
themeMapping: { root: "background" },
|
|
1617
|
-
slots: [{ name: "children", label: "\xC9l\xE9ments", required: true, kind: "children" }],
|
|
1618
|
-
responsive: true,
|
|
1619
|
-
animated: false,
|
|
1620
|
-
tags: ["flex", "row", "column", "wrap", "adaptive"],
|
|
1621
|
-
props: [
|
|
1622
|
-
{ name: "direction", label: "Direction", type: "enum", group: "layout", default: "row", options: ["row", "column"] },
|
|
1623
|
-
{ name: "wrap", label: "Retour \xE0 la ligne", type: "boolean", group: "layout", default: false },
|
|
1624
|
-
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 4 },
|
|
1625
|
-
{ name: "align", label: "Align Items", type: "enum", group: "layout", default: "stretch", options: ["stretch", "flex-start", "center", "flex-end", "baseline"] },
|
|
1626
|
-
{ name: "justify", label: "Justify Content", type: "enum", group: "layout", default: "flex-start", options: ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"] },
|
|
1627
|
-
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
1628
|
-
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: false },
|
|
1629
|
-
{ name: "padding", label: "Padding", type: "padding", group: "layout" },
|
|
1630
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
1631
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" }
|
|
1632
|
-
]
|
|
1633
|
-
},
|
|
1634
|
-
{
|
|
1635
|
-
id: "GridLayout",
|
|
1636
|
-
label: "Grille",
|
|
1637
|
-
description: "Grille responsive avec colonnes adaptatives.",
|
|
1638
|
-
category: "content",
|
|
1639
|
-
themeMapping: { root: "background", surface: "card" },
|
|
1640
|
-
slots: [{ name: "items", label: "Cellules", required: true, kind: "items" }],
|
|
1641
|
-
responsive: true,
|
|
1642
|
-
animated: false,
|
|
1643
|
-
previewItemCount: 6,
|
|
1644
|
-
tags: ["grid", "columns", "responsive"],
|
|
1645
|
-
props: [
|
|
1646
|
-
{ name: "columns", label: "Colonnes", type: "number", group: "layout", description: "Nombre de colonnes (auto si omis)" },
|
|
1647
|
-
{ name: "cellHeight", label: "Hauteur cellule", type: "number", group: "layout", description: "Hauteur fixe en px \u2014 omis = adaptatif au contenu" },
|
|
1648
|
-
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
|
|
1649
|
-
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
1650
|
-
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: false },
|
|
1651
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 0 },
|
|
1652
|
-
{ name: "itemBackground", label: "Fond items", type: "color", group: "style", themeDefault: "card" },
|
|
1653
|
-
{ name: "itemBorderRadius", label: "Rayon items", type: "radius", group: "style", default: "none" },
|
|
1654
|
-
{ name: "background", label: "Fond", type: "color", group: "style", default: "transparent" },
|
|
1655
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1656
|
-
{ name: "compact", label: "Mode compact", type: "boolean", group: "behavior", default: false }
|
|
1657
|
-
]
|
|
1658
|
-
},
|
|
1659
|
-
{
|
|
1660
|
-
id: "BentoLayout",
|
|
1661
|
-
label: "Bento",
|
|
1662
|
-
description: "Grille bento box avec cellules de tailles vari\xE9es.",
|
|
1663
|
-
category: "content",
|
|
1664
|
-
themeMapping: { root: "background" },
|
|
1665
|
-
slots: [{ name: "items", label: "Items", required: true, kind: "items" }],
|
|
1666
|
-
responsive: true,
|
|
1667
|
-
animated: false,
|
|
1668
|
-
previewItemCount: 5,
|
|
1669
|
-
tags: ["bento", "grid", "mosaic", "dashboard"],
|
|
1670
|
-
props: [
|
|
1671
|
-
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 2 },
|
|
1672
|
-
{ name: "itemBackground", label: "Fond items", type: "color", group: "style", themeDefault: "card" },
|
|
1673
|
-
{ name: "itemBorderRadius", label: "Rayon items", type: "radius", group: "style", default: "none" },
|
|
1674
|
-
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
1675
|
-
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout", default: 1200 },
|
|
1676
|
-
{ name: "baseHeight", label: "Hauteur de base", type: "number", group: "layout", default: 200 },
|
|
1677
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
1678
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1679
|
-
{ name: "cellConfig", label: "Config cellules", type: "json", group: "content", default: [] }
|
|
1680
|
-
]
|
|
1681
|
-
},
|
|
1682
|
-
{
|
|
1683
|
-
id: "MasonryLayout",
|
|
1684
|
-
label: "Masonry",
|
|
1685
|
-
description: "Grille masonry multi-colonnes.",
|
|
1686
|
-
category: "content",
|
|
1687
|
-
themeMapping: { root: "background", surface: "card" },
|
|
1688
|
-
slots: [{ name: "items", label: "Items", required: true, kind: "items" }],
|
|
1689
|
-
responsive: false,
|
|
1690
|
-
animated: false,
|
|
1691
|
-
previewItemCount: 6,
|
|
1692
|
-
tags: ["masonry", "pinterest", "waterfall"],
|
|
1693
|
-
props: [
|
|
1694
|
-
{ name: "columns", label: "Colonnes", type: "number", group: "layout", default: 2 },
|
|
1695
|
-
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 1 },
|
|
1696
|
-
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
1697
|
-
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
1698
|
-
{ name: "background", label: "Fond", type: "color", group: "style", default: "transparent" },
|
|
1699
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1700
|
-
{ name: "itemBackground", label: "Fond items", type: "color", group: "style", themeDefault: "card" },
|
|
1701
|
-
{ name: "itemBorderRadius", label: "Rayon items", type: "radius", group: "style", default: "none" },
|
|
1702
|
-
{ name: "padding", label: "Padding", type: "padding", group: "layout" }
|
|
1703
|
-
]
|
|
1704
|
-
},
|
|
1705
|
-
{
|
|
1706
|
-
id: "SplitLayout",
|
|
1707
|
-
label: "Split",
|
|
1708
|
-
description: "Deux panneaux (gauche/droite ou haut/bas) avec scroll ind\xE9pendant.",
|
|
1709
|
-
category: "content",
|
|
1710
|
-
themeMapping: { root: "background", left: "card", right: "card" },
|
|
1711
|
-
slots: [
|
|
1712
|
-
{ name: "left", label: "Panneau gauche", required: true, kind: "named" },
|
|
1713
|
-
{ name: "right", label: "Panneau droit", required: true, kind: "named" }
|
|
1714
|
-
],
|
|
1715
|
-
responsive: true,
|
|
1716
|
-
animated: false,
|
|
1717
|
-
tags: ["split", "two-pane", "master-detail"],
|
|
1718
|
-
props: [
|
|
1719
|
-
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
|
|
1720
|
-
{ name: "leftWidth", label: "Largeur gauche fixe", type: "number", group: "layout" },
|
|
1721
|
-
{ name: "ratio", label: "Ratio gauche", type: "ratio", group: "layout", default: 0.5, min: 0, max: 1 },
|
|
1722
|
-
{ name: "orientation", label: "Orientation", type: "enum", group: "layout", default: "horizontal", options: ["horizontal", "vertical"] },
|
|
1723
|
-
{ name: "hideLeftOnMobile", label: "Cacher gauche mobile", type: "boolean", group: "behavior", default: false },
|
|
1724
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
1725
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1726
|
-
{ name: "leftBackground", label: "Fond gauche", type: "color", group: "style", themeDefault: "card" },
|
|
1727
|
-
{ name: "rightBackground", label: "Fond droit", type: "color", group: "style", themeDefault: "card" },
|
|
1728
|
-
{ name: "leftBorderRadius", label: "Rayon gauche", type: "radius", group: "style", default: "none" },
|
|
1729
|
-
{ name: "rightBorderRadius", label: "Rayon droit", type: "radius", group: "style", default: "none" }
|
|
1730
|
-
]
|
|
1731
|
-
},
|
|
1732
|
-
{
|
|
1733
|
-
id: "FooterLayout",
|
|
1734
|
-
label: "Footer",
|
|
1735
|
-
description: "Contenu principal avec footer fixe ou scrollable.",
|
|
1736
|
-
category: "content",
|
|
1737
|
-
themeMapping: { root: "background" },
|
|
1738
|
-
slots: [
|
|
1739
|
-
{ name: "content", label: "Contenu", required: true, kind: "named" },
|
|
1740
|
-
{ name: "footer", label: "Footer", required: true, kind: "named" }
|
|
1741
|
-
],
|
|
1742
|
-
responsive: false,
|
|
1743
|
-
animated: false,
|
|
1744
|
-
tags: ["footer", "sticky", "bottom-bar"],
|
|
1745
|
-
props: [
|
|
1746
|
-
{ name: "footerHeight", label: "Hauteur footer", type: "number", group: "layout", default: 60 },
|
|
1747
|
-
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
|
|
1748
|
-
{ name: "sticky", label: "Footer sticky", type: "boolean", group: "behavior", default: false },
|
|
1749
|
-
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
1750
|
-
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
1751
|
-
{ name: "footerBackground", label: "Fond footer", type: "color", group: "style", themeDefault: "background" },
|
|
1752
|
-
{ name: "footerBorderRadius", label: "Rayon footer", type: "radius", group: "style", default: "none" },
|
|
1753
|
-
{ name: "contentBorderRadius", label: "Rayon contenu", type: "radius", group: "style", default: "none" },
|
|
1754
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
1755
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1756
|
-
{ name: "padding", label: "Padding contenu", type: "spacing", group: "layout", default: 5 },
|
|
1757
|
-
{ name: "footerPadding", label: "Padding footer", type: "spacing", group: "layout", default: 5 },
|
|
1758
|
-
{ name: "compact", label: "Mode compact", type: "boolean", group: "behavior", default: false }
|
|
1759
|
-
]
|
|
1760
|
-
},
|
|
1761
|
-
{
|
|
1762
|
-
id: "CrossTabLayout",
|
|
1763
|
-
label: "Cross Tab",
|
|
1764
|
-
description: "Grille r\xE9ordonnnable par drag & drop.",
|
|
1765
|
-
category: "content",
|
|
1766
|
-
themeMapping: { surface: "card" },
|
|
1767
|
-
constants: {
|
|
1768
|
-
springConfig: { damping: 18, stiffness: 120, mass: 0.5 }
|
|
1769
|
-
},
|
|
1770
|
-
slots: [{ name: "items", label: "Widgets", required: true, kind: "items" }],
|
|
1771
|
-
responsive: false,
|
|
1772
|
-
animated: true,
|
|
1773
|
-
previewItemCount: 4,
|
|
1774
|
-
dependencies: ["react-native-reanimated", "react-native-gesture-handler", "expo-haptics"],
|
|
1775
|
-
tags: ["drag", "drop", "reorder", "widgets", "grid"],
|
|
1776
|
-
props: [
|
|
1777
|
-
{ name: "columns", label: "Colonnes", type: "number", group: "layout", default: 2 },
|
|
1778
|
-
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 4 },
|
|
1779
|
-
{ name: "itemBackground", label: "Fond items", type: "color", group: "style", themeDefault: "card" },
|
|
1780
|
-
{ name: "itemBorderRadius", label: "Rayon items", type: "number", group: "style", default: 28 },
|
|
1781
|
-
{ name: "scrollEnabled", label: "Scroll activ\xE9", type: "boolean", group: "behavior", default: true },
|
|
1782
|
-
{ name: "springDamping", label: "Amortissement spring", type: "number", group: "behavior", default: 18 },
|
|
1783
|
-
{ name: "springStiffness", label: "Raideur spring", type: "number", group: "behavior", default: 120 },
|
|
1784
|
-
{ name: "longPressDuration", label: "Dur\xE9e long-press", type: "number", group: "behavior", default: 250 },
|
|
1785
|
-
{ name: "dragScale", label: "\xC9chelle drag", type: "ratio", group: "behavior", default: 1.05, min: 1, max: 1.5 },
|
|
1786
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" }
|
|
1787
|
-
]
|
|
1788
|
-
},
|
|
1789
|
-
// ═══════════════════════════════════════════════════════════════════════════
|
|
1790
|
-
// NAVIGATION
|
|
1791
|
-
// ═══════════════════════════════════════════════════════════════════════════
|
|
1792
|
-
{
|
|
1793
|
-
id: "SidebarLayout",
|
|
1794
|
-
label: "Sidebar",
|
|
1795
|
-
description: "Contenu avec sidebar lat\xE9rale, collapsible sur mobile.",
|
|
1796
|
-
category: "navigation",
|
|
1797
|
-
themeMapping: { root: "background", sidebar: "card", border: "border" },
|
|
1798
|
-
slots: [
|
|
1799
|
-
{ name: "sidebar", label: "Sidebar", required: true, kind: "named" },
|
|
1800
|
-
{ name: "content", label: "Contenu", required: true, kind: "named" }
|
|
1801
|
-
],
|
|
1802
|
-
responsive: true,
|
|
1803
|
-
animated: false,
|
|
1804
|
-
tags: ["sidebar", "navigation", "menu", "resizable"],
|
|
1805
|
-
props: [
|
|
1806
|
-
{ name: "sidebarWidth", label: "Largeur sidebar", type: "number", group: "layout", default: 280 },
|
|
1807
|
-
{ name: "position", label: "Position sidebar", type: "enum", group: "layout", default: "left", options: ["left", "right"] },
|
|
1808
|
-
{ name: "collapsible", label: "Collapsible mobile", type: "boolean", group: "behavior", default: true },
|
|
1809
|
-
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 4 },
|
|
1810
|
-
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
1811
|
-
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
1812
|
-
{ name: "background", label: "Fond", type: "background", group: "style" },
|
|
1813
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1814
|
-
{ name: "sidebarBackground", label: "Fond sidebar", type: "background", group: "style" },
|
|
1815
|
-
{ name: "sidebarBorderRadius", label: "Rayon sidebar", type: "radius", group: "style", default: "none" },
|
|
1816
|
-
{ name: "padding", label: "Padding", type: "padding", group: "layout" },
|
|
1817
|
-
{ name: "resizable", label: "Redimensionnable", type: "boolean", group: "behavior", default: false },
|
|
1818
|
-
{ name: "sidebarMinWidth", label: "Largeur min sidebar", type: "number", group: "layout", default: 150 },
|
|
1819
|
-
{ name: "sidebarMaxWidth", label: "Largeur max sidebar", type: "number", group: "layout", default: 600 }
|
|
1820
|
-
]
|
|
1821
|
-
},
|
|
1822
|
-
{
|
|
1823
|
-
id: "BottomDrawerLayout",
|
|
1824
|
-
label: "Tiroir bas",
|
|
1825
|
-
description: "Tiroir inf\xE9rieur anim\xE9 avec geste de swipe.",
|
|
1826
|
-
category: "navigation",
|
|
1827
|
-
themeMapping: { root: "background", drawer: "background", accent: "primary", border: "border" },
|
|
1828
|
-
constants: {
|
|
1829
|
-
springConfig: { damping: 25, stiffness: 200, mass: 0.5, overshootClamping: true }
|
|
1830
|
-
},
|
|
1831
|
-
slots: [
|
|
1832
|
-
{ name: "content", label: "Contenu principal", required: true, kind: "named" },
|
|
1833
|
-
{ name: "drawerContent", label: "Contenu du tiroir", required: true, kind: "named" }
|
|
1834
|
-
],
|
|
1835
|
-
responsive: true,
|
|
1836
|
-
animated: true,
|
|
1837
|
-
dependencies: ["react-native-reanimated", "react-native-gesture-handler", "expo-haptics"],
|
|
1838
|
-
tags: ["drawer", "bottom-sheet", "swipe", "modal"],
|
|
1839
|
-
props: [
|
|
1840
|
-
{ name: "drawerHeight", label: "Hauteur tiroir", type: "number", group: "layout", default: 400 },
|
|
1841
|
-
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
1842
|
-
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
1843
|
-
{ name: "drawerBackground", label: "Fond tiroir", type: "color", group: "style", themeDefault: "background" },
|
|
1844
|
-
{ name: "drawerBorderRadius", label: "Rayon tiroir", type: "radius", group: "style", default: "3xl" },
|
|
1845
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
1846
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1847
|
-
{ name: "defaultOpen", label: "Ouvert par d\xE9faut", type: "boolean", group: "behavior", default: false },
|
|
1848
|
-
{ name: "handleColor", label: "Couleur handle", type: "color", group: "style", themeDefault: "primary" },
|
|
1849
|
-
{ name: "backdropOpacity", label: "Opacit\xE9 backdrop", type: "ratio", group: "style", default: 0.4, min: 0, max: 1 },
|
|
1850
|
-
{ name: "contentScaleWhenOpen", label: "Scale contenu ouvert", type: "ratio", group: "behavior", default: 0.95, min: 0.5, max: 1 },
|
|
1851
|
-
{ name: "handleBarColor", label: "Couleur barre handle", type: "color", group: "style", themeDefault: "border" },
|
|
1852
|
-
{ name: "handleButtonSize", label: "Taille bouton handle", type: "number", group: "layout", default: 56 }
|
|
1853
|
-
]
|
|
1854
|
-
},
|
|
1855
|
-
{
|
|
1856
|
-
id: "TopDrawerLayout",
|
|
1857
|
-
label: "Tiroir haut",
|
|
1858
|
-
description: "Tiroir sup\xE9rieur anim\xE9 avec geste de swipe.",
|
|
1859
|
-
category: "navigation",
|
|
1860
|
-
themeMapping: { root: "background", drawer: "background", border: "border", muted: "muted" },
|
|
1861
|
-
constants: {
|
|
1862
|
-
springConfig: { damping: 25, stiffness: 200, mass: 0.5, overshootClamping: true }
|
|
1863
|
-
},
|
|
1864
|
-
slots: [
|
|
1865
|
-
{ name: "content", label: "Contenu principal", required: true, kind: "named" },
|
|
1866
|
-
{ name: "drawerContent", label: "Contenu du tiroir", required: true, kind: "named" }
|
|
1867
|
-
],
|
|
1868
|
-
responsive: false,
|
|
1869
|
-
animated: true,
|
|
1870
|
-
dependencies: ["react-native-reanimated", "react-native-gesture-handler", "expo-haptics"],
|
|
1871
|
-
tags: ["drawer", "top-sheet", "swipe", "notification"],
|
|
1872
|
-
props: [
|
|
1873
|
-
{ name: "drawerHeight", label: "Hauteur tiroir", type: "number", group: "layout", default: 600 },
|
|
1874
|
-
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
1875
|
-
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
1876
|
-
{ name: "drawerBackground", label: "Fond tiroir", type: "color", group: "style", themeDefault: "background" },
|
|
1877
|
-
{ name: "drawerBorderRadius", label: "Rayon tiroir", type: "radius", group: "style", default: "3xl" },
|
|
1878
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
1879
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1880
|
-
{ name: "defaultOpen", label: "Ouvert par d\xE9faut", type: "boolean", group: "behavior", default: false },
|
|
1881
|
-
{ name: "handleColor", label: "Couleur handle", type: "color", group: "style", themeDefault: "border" },
|
|
1882
|
-
{ name: "backdropOpacity", label: "Opacit\xE9 backdrop", type: "ratio", group: "style", default: 0.4, min: 0, max: 1 },
|
|
1883
|
-
{ name: "contentScaleWhenOpen", label: "Scale contenu ouvert", type: "ratio", group: "behavior", default: 0.95, min: 0.5, max: 1 },
|
|
1884
|
-
{ name: "closeButtonBackground", label: "Fond bouton fermer", type: "color", group: "style", themeDefault: "muted" },
|
|
1885
|
-
{ name: "closeButtonSize", label: "Taille bouton fermer", type: "number", group: "layout", default: 36 },
|
|
1886
|
-
{ name: "closeButtonBorderColor", label: "Bordure bouton fermer", type: "color", group: "style", themeDefault: "border" },
|
|
1887
|
-
{ name: "closeButtonTextColor", label: "Texte bouton fermer", type: "color", group: "style", themeDefault: "mutedForeground" }
|
|
1888
|
-
]
|
|
1889
|
-
},
|
|
1890
|
-
{
|
|
1891
|
-
id: "LeftDrawerLayout",
|
|
1892
|
-
label: "Tiroir gauche",
|
|
1893
|
-
description: "Tiroir lat\xE9ral gauche anim\xE9 avec geste de swipe.",
|
|
1894
|
-
category: "navigation",
|
|
1895
|
-
themeMapping: { root: "background", drawer: "background", accent: "primary", border: "border" },
|
|
1896
|
-
constants: {
|
|
1897
|
-
springConfig: { damping: 25, stiffness: 200, mass: 0.5, overshootClamping: true }
|
|
1898
|
-
},
|
|
1899
|
-
slots: [
|
|
1900
|
-
{ name: "content", label: "Contenu principal", required: true, kind: "named" },
|
|
1901
|
-
{ name: "drawerContent", label: "Contenu du tiroir", required: true, kind: "named" }
|
|
1902
|
-
],
|
|
1903
|
-
responsive: false,
|
|
1904
|
-
animated: true,
|
|
1905
|
-
dependencies: ["react-native-reanimated", "react-native-gesture-handler", "expo-haptics"],
|
|
1906
|
-
tags: ["drawer", "side-menu", "swipe", "navigation"],
|
|
1907
|
-
props: [
|
|
1908
|
-
{ name: "drawerWidth", label: "Largeur tiroir", type: "number", group: "layout", default: 280 },
|
|
1909
|
-
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
1910
|
-
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
1911
|
-
{ name: "drawerBackground", label: "Fond tiroir", type: "color", group: "style", themeDefault: "background" },
|
|
1912
|
-
{ name: "drawerBorderRadius", label: "Rayon tiroir", type: "radius", group: "style", default: "none" },
|
|
1913
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
1914
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1915
|
-
{ name: "defaultOpen", label: "Ouvert par d\xE9faut", type: "boolean", group: "behavior", default: false },
|
|
1916
|
-
{ name: "handleColor", label: "Couleur handle", type: "color", group: "style", themeDefault: "primary" },
|
|
1917
|
-
{ name: "backdropOpacity", label: "Opacit\xE9 backdrop", type: "ratio", group: "style", default: 0.4, min: 0, max: 1 },
|
|
1918
|
-
{ name: "contentScaleWhenOpen", label: "Scale contenu ouvert", type: "ratio", group: "behavior", default: 0.98, min: 0.5, max: 1 },
|
|
1919
|
-
{ name: "handleBarColor", label: "Couleur barre handle", type: "color", group: "style", themeDefault: "border" },
|
|
1920
|
-
{ name: "handleBarWidth", label: "Largeur zone geste", type: "number", group: "layout", default: 40 }
|
|
1921
|
-
]
|
|
1922
|
-
},
|
|
1923
|
-
// ═══════════════════════════════════════════════════════════════════════════
|
|
1924
|
-
// CARD
|
|
1925
|
-
// ═══════════════════════════════════════════════════════════════════════════
|
|
1926
|
-
{
|
|
1927
|
-
id: "DeckLayout",
|
|
1928
|
-
label: "Deck",
|
|
1929
|
-
description: "Stack de cartes swipeable avec effet de profondeur.",
|
|
1930
|
-
category: "card",
|
|
1931
|
-
constants: {
|
|
1932
|
-
swipeThreshold: 60,
|
|
1933
|
-
exitDistance: 450,
|
|
1934
|
-
springConfig: { damping: 20, stiffness: 200, mass: 0.5 }
|
|
1935
|
-
},
|
|
1936
|
-
slots: [{ name: "items", label: "Cartes", required: true, kind: "items" }],
|
|
1937
|
-
responsive: false,
|
|
1938
|
-
animated: true,
|
|
1939
|
-
previewItemCount: 4,
|
|
1940
|
-
dependencies: ["react-native-reanimated", "react-native-gesture-handler", "expo-haptics"],
|
|
1941
|
-
tags: ["deck", "cards", "swipe", "tinder", "stack"],
|
|
1942
|
-
props: [
|
|
1943
|
-
{ name: "peekOffset", label: "D\xE9calage peek", type: "number", group: "layout", default: 12 },
|
|
1944
|
-
{ name: "peekScale", label: "\xC9chelle peek", type: "ratio", group: "layout", default: 0.05, min: 0, max: 0.2 },
|
|
1945
|
-
{ name: "cycle", label: "Boucle", type: "boolean", group: "behavior", default: false },
|
|
1946
|
-
{ name: "cardShadow", label: "Ombre cartes", type: "boolean", group: "style", default: true },
|
|
1947
|
-
{ name: "cardBackground", label: "Fond carte", type: "color", group: "style", themeDefault: "card" },
|
|
1948
|
-
{ name: "cardBorderRadius", label: "Rayon carte", type: "radius", group: "style", default: 24 },
|
|
1949
|
-
{ name: "containerWidth", label: "Largeur container", type: "string", group: "layout", default: "90%" },
|
|
1950
|
-
{ name: "containerHeight", label: "Hauteur container", type: "string", group: "layout", default: "75%" },
|
|
1951
|
-
{ name: "peekCount", label: "Cartes en arri\xE8re", type: "number", group: "layout", default: 2 },
|
|
1952
|
-
{ name: "peekRotation", label: "Rotation peek", type: "number", group: "layout", default: 0 },
|
|
1953
|
-
{ name: "direction", label: "Direction", type: "enum", group: "behavior", default: "horizontal", options: ["horizontal", "vertical"] },
|
|
1954
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" }
|
|
1955
|
-
]
|
|
1956
|
-
},
|
|
1957
|
-
{
|
|
1958
|
-
id: "FlipLayout",
|
|
1959
|
-
label: "Flip",
|
|
1960
|
-
description: "Carousel avec flip recto/verso et swipe horizontal.",
|
|
1961
|
-
category: "card",
|
|
1962
|
-
themeMapping: { root: "background", surface: "card" },
|
|
1963
|
-
constants: {
|
|
1964
|
-
flipThreshold: 22,
|
|
1965
|
-
scaleFactor: 0.92,
|
|
1966
|
-
flipScaleFactor: 0.9,
|
|
1967
|
-
springNoBounce: { damping: 30, stiffness: 240, mass: 0.6 },
|
|
1968
|
-
springSnap: { damping: 35, stiffness: 300, mass: 0.5 },
|
|
1969
|
-
exitLeft: -700,
|
|
1970
|
-
exitRight: 700
|
|
1971
|
-
},
|
|
1972
|
-
slots: [
|
|
1973
|
-
{ name: "items", label: "Faces recto", required: true, kind: "items" },
|
|
1974
|
-
{ name: "backContent", label: "Faces verso", required: false, kind: "named-array" }
|
|
1975
|
-
],
|
|
1976
|
-
responsive: false,
|
|
1977
|
-
animated: true,
|
|
1978
|
-
previewItemCount: 3,
|
|
1979
|
-
dependencies: ["react-native-reanimated", "react-native-gesture-handler"],
|
|
1980
|
-
tags: ["flip", "card", "recto-verso", "flashcard"],
|
|
1981
|
-
props: [
|
|
1982
|
-
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
1983
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
1984
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1985
|
-
{ name: "cardBackground", label: "Fond carte", type: "color", group: "style", themeDefault: "card" },
|
|
1986
|
-
{ name: "flipPerspective", label: "Perspective flip", type: "number", group: "layout", default: 1200 },
|
|
1987
|
-
{ name: "swipeThreshold", label: "Seuil swipe", type: "number", group: "behavior", default: 40 },
|
|
1988
|
-
{ name: "padding", label: "Padding", type: "padding", group: "layout" },
|
|
1989
|
-
{ name: "cardBorderRadius", label: "Rayon carte", type: "radius", group: "style", default: 20 },
|
|
1990
|
-
{ name: "cardAspectRatio", label: "Ratio carte (web)", type: "number", group: "layout", default: 0.5625, description: "Ratio largeur/hauteur sur web \u2014 omis = adaptatif" },
|
|
1991
|
-
{ name: "cardMaxHeight", label: "Hauteur max carte", type: "number", group: "layout", description: "Hauteur max en px \u2014 omis = pas de limite" },
|
|
1992
|
-
{ name: "dezoomDuration", label: "Dur\xE9e d\xE9zoom", type: "number", group: "behavior", default: 120 },
|
|
1993
|
-
{ name: "flipDuration", label: "Dur\xE9e flip", type: "number", group: "behavior", default: 320 },
|
|
1994
|
-
{ name: "slideOutDuration", label: "Dur\xE9e slide out", type: "number", group: "behavior", default: 140 }
|
|
1995
|
-
]
|
|
1996
|
-
},
|
|
1997
|
-
{
|
|
1998
|
-
id: "SwiperLayout",
|
|
1999
|
-
label: "Swiper",
|
|
2000
|
-
description: "Carousel swipeable multi-directionnel avec pr\xE9chargement.",
|
|
2001
|
-
category: "card",
|
|
2002
|
-
themeMapping: { root: "background", surface: "card" },
|
|
2003
|
-
constants: {
|
|
2004
|
-
scaleFactor: 0.85
|
|
2005
|
-
},
|
|
2006
|
-
slots: [{ name: "items", label: "Slides", required: true, kind: "items" }],
|
|
2007
|
-
responsive: false,
|
|
2008
|
-
animated: true,
|
|
2009
|
-
previewItemCount: 4,
|
|
2010
|
-
dependencies: ["react-native-reanimated", "react-native-gesture-handler"],
|
|
2011
|
-
tags: ["swiper", "carousel", "slides", "stories"],
|
|
2012
|
-
props: [
|
|
2013
|
-
{ name: "enableSwipeUp", label: "Swipe haut", type: "boolean", group: "behavior", default: false },
|
|
2014
|
-
{ name: "enableSwipeDown", label: "Swipe bas", type: "boolean", group: "behavior", default: false },
|
|
2015
|
-
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
2016
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
2017
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
2018
|
-
{ name: "cardBackground", label: "Fond carte", type: "color", group: "style", themeDefault: "card" },
|
|
2019
|
-
{ name: "cardBorderRadius", label: "Rayon carte", type: "radius", group: "style", default: "none" },
|
|
2020
|
-
{ name: "showCardCount", label: "Compteur cartes", type: "boolean", group: "behavior", default: false },
|
|
2021
|
-
{ name: "preloadRange", label: "Pr\xE9chargement", type: "number", group: "behavior", default: 2 },
|
|
2022
|
-
{ name: "swipeThreshold", label: "Seuil swipe", type: "number", group: "behavior", default: 40 },
|
|
2023
|
-
{ name: "padding", label: "Padding", type: "padding", group: "layout" },
|
|
2024
|
-
{ name: "springDamping", label: "Amortissement spring", type: "number", group: "behavior", default: 12 },
|
|
2025
|
-
{ name: "springStiffness", label: "Raideur spring", type: "number", group: "behavior", default: 160 },
|
|
2026
|
-
{ name: "cardCountBackground", label: "Fond compteur", type: "color", group: "style", default: "rgba(0,0,0,0.6)" },
|
|
2027
|
-
{ name: "cardCountTextColor", label: "Texte compteur", type: "color", group: "style", default: "#fff" }
|
|
2028
|
-
]
|
|
2029
|
-
},
|
|
2030
|
-
// ═══════════════════════════════════════════════════════════════════════════
|
|
2031
|
-
// SCROLL
|
|
2032
|
-
// ═══════════════════════════════════════════════════════════════════════════
|
|
2033
|
-
{
|
|
2034
|
-
id: "ScrollLayout",
|
|
2035
|
-
label: "Scroll",
|
|
2036
|
-
description: "Structure scrollable avec header/footer sticky ou inline.",
|
|
2037
|
-
category: "scroll",
|
|
2038
|
-
themeMapping: { root: "background", surface: "card" },
|
|
2039
|
-
slots: [
|
|
2040
|
-
{ name: "content", label: "Contenu", required: true, kind: "named" },
|
|
2041
|
-
{ name: "header", label: "Header", required: false, kind: "named" },
|
|
2042
|
-
{ name: "footer", label: "Footer", required: false, kind: "named" }
|
|
2043
|
-
],
|
|
2044
|
-
responsive: true,
|
|
2045
|
-
animated: false,
|
|
2046
|
-
tags: ["scroll", "sticky", "header", "footer", "safe-area"],
|
|
2047
|
-
props: [
|
|
2048
|
-
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 4 },
|
|
2049
|
-
{ name: "useSafeAreaInsets", label: "Safe area", type: "boolean", group: "behavior", default: true },
|
|
2050
|
-
{ name: "headerHeight", label: "Hauteur header", type: "number", group: "layout", default: 80 },
|
|
2051
|
-
{ name: "footerHeight", label: "Hauteur footer", type: "number", group: "layout", default: 60 },
|
|
2052
|
-
{ name: "scrollDirection", label: "Direction scroll", type: "enum", group: "behavior", default: "vertical", options: ["vertical", "horizontal", "both"] },
|
|
2053
|
-
{ name: "showScrollIndicator", label: "Indicateur scroll", type: "boolean", group: "behavior", default: false },
|
|
2054
|
-
{ name: "enableBounces", label: "Rebond", type: "boolean", group: "behavior", default: true },
|
|
2055
|
-
{ name: "stickyHeader", label: "Header sticky", type: "boolean", group: "behavior", default: false },
|
|
2056
|
-
{ name: "stickyFooter", label: "Footer sticky", type: "boolean", group: "behavior", default: false },
|
|
2057
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
2058
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
2059
|
-
{ name: "headerBackground", label: "Fond header", type: "color", group: "style", themeDefault: "card" },
|
|
2060
|
-
{ name: "footerBackground", label: "Fond footer", type: "color", group: "style", themeDefault: "card" },
|
|
2061
|
-
{ name: "contentBackground", label: "Fond contenu", type: "color", group: "style" },
|
|
2062
|
-
{ name: "headerPadding", label: "Padding header", type: "spacing", group: "layout", default: 4 },
|
|
2063
|
-
{ name: "footerPadding", label: "Padding footer", type: "spacing", group: "layout", default: 4 },
|
|
2064
|
-
{ name: "mobileHeaderHeight", label: "Hauteur header mobile", type: "number", group: "layout", default: 60 },
|
|
2065
|
-
{ name: "mobileFooterHeight", label: "Hauteur footer mobile", type: "number", group: "layout", default: 50 }
|
|
2066
|
-
]
|
|
2067
|
-
},
|
|
2068
|
-
{
|
|
2069
|
-
id: "HeaderContentLayout",
|
|
2070
|
-
label: "Header collapsible",
|
|
2071
|
-
description: "Header qui se r\xE9duit au scroll avec contenu principal.",
|
|
2072
|
-
category: "scroll",
|
|
2073
|
-
themeMapping: { root: "background", header: "card", content: "card" },
|
|
2074
|
-
slots: [
|
|
2075
|
-
{ name: "header", label: "Header", required: true, kind: "named" },
|
|
2076
|
-
{ name: "content", label: "Contenu", required: true, kind: "named" }
|
|
2077
|
-
],
|
|
2078
|
-
responsive: false,
|
|
2079
|
-
animated: true,
|
|
2080
|
-
dependencies: ["react-native-reanimated"],
|
|
2081
|
-
tags: ["header", "collapsible", "scroll", "parallax"],
|
|
2082
|
-
props: [
|
|
2083
|
-
{ name: "headerHeight", label: "Hauteur header", type: "number", group: "layout", default: 150 },
|
|
2084
|
-
{ name: "headerCollapsedHeight", label: "Hauteur header r\xE9duit", type: "number", group: "layout", default: 60 },
|
|
2085
|
-
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
|
|
2086
|
-
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
2087
|
-
{ name: "headerBackground", label: "Fond header", type: "color", group: "style", themeDefault: "card" },
|
|
2088
|
-
{ name: "headerBorderRadius", label: "Rayon header", type: "radius", group: "style", default: "none" },
|
|
2089
|
-
{ name: "contentBackground", label: "Fond contenu", type: "color", group: "style", themeDefault: "card" },
|
|
2090
|
-
{ name: "contentBorderRadius", label: "Rayon contenu", type: "radius", group: "style", default: "none" },
|
|
2091
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
2092
|
-
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
2093
|
-
{ name: "padding", label: "Padding contenu", type: "spacing", group: "layout", default: 5 },
|
|
2094
|
-
{ name: "headerPadding", label: "Padding header", type: "spacing", group: "layout", default: 5 },
|
|
2095
|
-
{ name: "scrollEventThrottle", label: "Throttle scroll event", type: "number", group: "behavior", default: 16 }
|
|
2096
|
-
]
|
|
2097
|
-
},
|
|
2098
|
-
{
|
|
2099
|
-
id: "ParallaxLayout",
|
|
2100
|
-
label: "Parallax",
|
|
2101
|
-
description: "Rang\xE9es horizontales scrollables avec synchronisation parallaxe. Les items sont distribu\xE9s automatiquement en rang\xE9es selon itemsPerRow.",
|
|
2102
|
-
category: "scroll",
|
|
2103
|
-
slots: [{ name: "items", label: "Items", required: true, kind: "items" }],
|
|
2104
|
-
responsive: false,
|
|
2105
|
-
animated: true,
|
|
2106
|
-
previewItemCount: 9,
|
|
2107
|
-
dependencies: ["react-native-reanimated"],
|
|
2108
|
-
tags: ["parallax", "horizontal", "sync", "showcase"],
|
|
2109
|
-
props: [
|
|
2110
|
-
// Layout
|
|
2111
|
-
{ name: "rowCount", label: "Nombre de rang\xE9es", type: "number", group: "layout", default: 3 },
|
|
2112
|
-
{ name: "itemWidth", label: "Largeur item", type: "number", group: "layout", default: 200 },
|
|
2113
|
-
{ name: "spacing", label: "Espacement vertical", type: "spacing", group: "layout", default: 4 },
|
|
2114
|
-
{ name: "itemSpacing", label: "Espacement items", type: "number", group: "layout", default: 12 },
|
|
2115
|
-
// Style
|
|
2116
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
2117
|
-
{ name: "rowBackground", label: "Fond rang\xE9e", type: "color", group: "style" },
|
|
2118
|
-
{ name: "itemBackground", label: "Fond item", type: "color", group: "style", themeDefault: "card" },
|
|
2119
|
-
{ name: "itemBorderRadius", label: "Rayon item", type: "radius", group: "style", default: "none" },
|
|
2120
|
-
{ name: "rowBorderRadius", label: "Rayon rang\xE9e", type: "radius", group: "style", default: "none" },
|
|
2121
|
-
// Behavior
|
|
2122
|
-
{ name: "alternateDirection", label: "Direction altern\xE9e", type: "boolean", group: "behavior", default: true },
|
|
2123
|
-
{ name: "bounces", label: "Rebond scroll", type: "boolean", group: "behavior", default: false },
|
|
2124
|
-
{ name: "showScrollIndicator", label: "Indicateur scroll", type: "boolean", group: "behavior", default: false },
|
|
2125
|
-
{ name: "scrollEventThrottle", label: "Throttle scroll", type: "number", group: "behavior", default: 16 }
|
|
2126
|
-
]
|
|
2127
|
-
},
|
|
2128
|
-
// ═══════════════════════════════════════════════════════════════════════════
|
|
2129
|
-
// SPECIAL
|
|
2130
|
-
// ═══════════════════════════════════════════════════════════════════════════
|
|
2131
|
-
{
|
|
2132
|
-
id: "TutoLayout",
|
|
2133
|
-
label: "Tutoriel",
|
|
2134
|
-
description: "Overlay de tutoriel avec zones highlight et gestes.",
|
|
2135
|
-
category: "special",
|
|
2136
|
-
themeMapping: { root: "background", accent: "primary", text: "foreground" },
|
|
2137
|
-
constants: {
|
|
2138
|
-
swipeThreshold: 40
|
|
2139
|
-
},
|
|
2140
|
-
slots: [{ name: "children", label: "Contenu \xE0 annoter", required: true, kind: "children" }],
|
|
2141
|
-
responsive: false,
|
|
2142
|
-
animated: true,
|
|
2143
|
-
dependencies: ["react-native-reanimated"],
|
|
2144
|
-
tags: ["tutorial", "onboarding", "highlight", "walkthrough"],
|
|
2145
|
-
props: [
|
|
2146
|
-
{ name: "overlayOpacity", label: "Opacit\xE9 overlay", type: "ratio", group: "style", default: 0.78, min: 0, max: 1 },
|
|
2147
|
-
{ name: "overlayColor", label: "Couleur overlay", type: "color", group: "style" },
|
|
2148
|
-
{ name: "showSkip", label: "Bouton ignorer", type: "boolean", group: "behavior", default: true },
|
|
2149
|
-
{ name: "nextLabel", label: "Label suivant", type: "string", group: "content", default: "Suivant" },
|
|
2150
|
-
{ name: "finishLabel", label: "Label terminer", type: "string", group: "content", default: "Terminer" },
|
|
2151
|
-
{ name: "accentColor", label: "Couleur accent", type: "color", group: "style", themeDefault: "primary" },
|
|
2152
|
-
{ name: "textBackground", label: "Fond texte", type: "color", group: "style", themeDefault: "background" },
|
|
2153
|
-
{ name: "textColor", label: "Couleur texte", type: "color", group: "style", themeDefault: "foreground" },
|
|
2154
|
-
{ name: "mutedTextColor", label: "Texte secondaire", type: "color", group: "style", themeDefault: "mutedForeground" },
|
|
2155
|
-
{ name: "steps", label: "\xC9tapes", type: "json", group: "content", default: [] }
|
|
2156
|
-
]
|
|
2157
|
-
},
|
|
2158
|
-
{
|
|
2159
|
-
id: "SketchLayout",
|
|
2160
|
-
label: "Sketch (placeholder)",
|
|
2161
|
-
description: "Placeholder pour un canvas de dessin.",
|
|
2162
|
-
category: "special",
|
|
2163
|
-
slots: [],
|
|
2164
|
-
responsive: false,
|
|
2165
|
-
animated: false,
|
|
2166
|
-
tags: ["sketch", "draw", "canvas", "placeholder"],
|
|
2167
|
-
props: [
|
|
2168
|
-
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" }
|
|
2169
|
-
]
|
|
2170
|
-
},
|
|
2171
|
-
{
|
|
2172
|
-
id: "Swipe2ScreenLayout",
|
|
2173
|
-
label: "Swipe to Screen",
|
|
2174
|
-
description: "Layout de pr\xE9sentation avec swipe vers un \xE9cran projet\xE9 et QR code.",
|
|
2175
|
-
category: "special",
|
|
2176
|
-
slots: [{ name: "items", label: "Slides", required: true, kind: "items" }],
|
|
2177
|
-
responsive: false,
|
|
2178
|
-
animated: true,
|
|
2179
|
-
previewItemCount: 3,
|
|
2180
|
-
dependencies: ["react-native-gesture-handler", "expo-camera", "expo-haptics"],
|
|
2181
|
-
tags: ["swipe", "projection", "qr", "slides"],
|
|
2182
|
-
props: [
|
|
2183
|
-
{ name: "containerBackground", label: "Fond container", type: "color", group: "style", default: "#000" },
|
|
2184
|
-
{ name: "screenBackground", label: "Fond \xE9cran", type: "color", group: "style", default: "#fff" },
|
|
2185
|
-
{ name: "swipeThreshold", label: "Seuil swipe", type: "number", group: "behavior", default: 100 },
|
|
2186
|
-
{ name: "projectedScale", label: "Scale projet\xE9", type: "ratio", group: "behavior", default: 0.8, min: 0.5, max: 1 },
|
|
2187
|
-
{ name: "animationDuration", label: "Dur\xE9e animation", type: "number", group: "behavior", default: 300 },
|
|
2188
|
-
{ name: "slides", label: "Slides", type: "json", group: "content", default: [] }
|
|
2189
|
-
]
|
|
2190
|
-
},
|
|
2191
|
-
{
|
|
2192
|
-
id: "SystemLayout",
|
|
2193
|
-
label: "System UI",
|
|
2194
|
-
description: "Wrapper syst\xE8me g\xE9rant StatusBar, SafeAreaView et NavigationBar.",
|
|
2195
|
-
category: "special",
|
|
2196
|
-
slots: [{ name: "children", label: "Contenu", required: true, kind: "children" }],
|
|
2197
|
-
responsive: false,
|
|
2198
|
-
animated: false,
|
|
2199
|
-
dependencies: ["expo-status-bar", "react-native-safe-area-context"],
|
|
2200
|
-
tags: ["system", "statusbar", "navigation-bar", "safe-area"],
|
|
2201
|
-
props: [
|
|
2202
|
-
{ name: "rootBackgroundColor", label: "Couleur fond racine", type: "color", group: "style", default: "#0c3ddbff" },
|
|
2203
|
-
{ name: "statusBarContentStyle", label: "Style barre statut", type: "enum", group: "behavior", default: "auto", options: ["light", "dark", "auto"] },
|
|
2204
|
-
{ name: "edges", label: "Bords safe area", type: "json", group: "behavior", default: ["top", "bottom", "left", "right"] },
|
|
2205
|
-
{ name: "navigationBarContentStyle", label: "Style barre navigation", type: "enum", group: "behavior", options: ["light", "dark"] }
|
|
2206
|
-
]
|
|
2207
|
-
}
|
|
2208
|
-
];
|
|
2209
|
-
|
|
2210
|
-
// foundation/layout/registry/components.ts
|
|
2211
|
-
function getComponentMeta(id) {
|
|
2212
|
-
return componentRegistry.find((m) => m.id === id);
|
|
2213
|
-
}
|
|
2214
|
-
var componentRegistry = [
|
|
2215
|
-
{
|
|
2216
|
-
id: "Button",
|
|
2217
|
-
label: "Button",
|
|
2218
|
-
description: "Pressable button with variant and size support.",
|
|
2219
|
-
category: "action",
|
|
2220
|
-
tags: ["button", "cta", "action", "pressable"],
|
|
2221
|
-
themeMapping: { bg: "primary", text: "primaryForeground" },
|
|
2222
|
-
sizes: ["sm", "md", "lg"],
|
|
2223
|
-
variants: [
|
|
2224
|
-
{
|
|
2225
|
-
name: "primary",
|
|
2226
|
-
label: "Primary",
|
|
2227
|
-
overrides: { bg: void 0, color: void 0, borderWidth: 0 }
|
|
2228
|
-
},
|
|
2229
|
-
{
|
|
2230
|
-
name: "secondary",
|
|
2231
|
-
label: "Secondary",
|
|
2232
|
-
overrides: { bg: void 0, color: void 0, borderWidth: 0 }
|
|
2233
|
-
},
|
|
2234
|
-
{
|
|
2235
|
-
name: "outline",
|
|
2236
|
-
label: "Outline",
|
|
2237
|
-
overrides: { bg: "transparent", borderWidth: 1 }
|
|
2238
|
-
},
|
|
2239
|
-
{
|
|
2240
|
-
name: "ghost",
|
|
2241
|
-
label: "Ghost",
|
|
2242
|
-
overrides: { bg: "transparent", borderWidth: 0 }
|
|
2243
|
-
},
|
|
2244
|
-
{
|
|
2245
|
-
name: "destructive",
|
|
2246
|
-
label: "Destructive",
|
|
2247
|
-
overrides: { bg: void 0, color: void 0, borderWidth: 0 }
|
|
2248
|
-
}
|
|
2249
|
-
],
|
|
2250
|
-
props: [
|
|
2251
|
-
{ name: "label", label: "Label", type: "string", group: "content", default: "Button" },
|
|
2252
|
-
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "primary", options: ["primary", "secondary", "outline", "ghost", "destructive"] },
|
|
2253
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
2254
|
-
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
2255
|
-
{ name: "loading", label: "Loading", type: "boolean", group: "behavior", default: false },
|
|
2256
|
-
{ name: "fullWidth", label: "Full width", type: "boolean", group: "layout", default: false },
|
|
2257
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" },
|
|
2258
|
-
{ name: "iconPosition", label: "Icon position", type: "enum", group: "layout", default: "left", options: ["left", "right"] }
|
|
2259
|
-
]
|
|
2260
|
-
},
|
|
2261
|
-
{
|
|
2262
|
-
id: "TextInput",
|
|
2263
|
-
label: "Text Input",
|
|
2264
|
-
description: "Single-line text input with label, error state, and icon support.",
|
|
2265
|
-
category: "input",
|
|
2266
|
-
tags: ["input", "text", "field", "form"],
|
|
2267
|
-
themeMapping: { bg: "input", text: "foreground", border: "border", placeholder: "mutedForeground" },
|
|
2268
|
-
sizes: ["sm", "md", "lg"],
|
|
2269
|
-
variants: [
|
|
2270
|
-
{ name: "outlined", label: "Outlined", overrides: { borderWidth: 1, bg: "transparent" } },
|
|
2271
|
-
{ name: "filled", label: "Filled", overrides: { borderWidth: 0 } },
|
|
2272
|
-
{ name: "underline", label: "Underline", overrides: { borderWidth: 0, borderBottomWidth: 1, borderRadius: "none" } }
|
|
2273
|
-
],
|
|
2274
|
-
props: [
|
|
2275
|
-
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "outlined", options: ["outlined", "filled", "underline"] },
|
|
2276
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
2277
|
-
{ name: "placeholder", label: "Placeholder", type: "string", group: "content" },
|
|
2278
|
-
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2279
|
-
{ name: "error", label: "Error message", type: "string", group: "content" },
|
|
2280
|
-
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
2281
|
-
{ name: "secureEntry", label: "Password", type: "boolean", group: "behavior", default: false },
|
|
2282
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" },
|
|
2283
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" },
|
|
2284
|
-
{ name: "borderColor", label: "Border color", type: "color", group: "style", themeDefault: "border" }
|
|
2285
|
-
]
|
|
2286
|
-
},
|
|
2287
|
-
{
|
|
2288
|
-
id: "TextArea",
|
|
2289
|
-
label: "Text Area",
|
|
2290
|
-
description: "Multi-line text input.",
|
|
2291
|
-
category: "input",
|
|
2292
|
-
tags: ["textarea", "multiline", "input", "form"],
|
|
2293
|
-
themeMapping: { bg: "input", text: "foreground", border: "border" },
|
|
2294
|
-
sizes: ["sm", "md", "lg"],
|
|
2295
|
-
variants: [
|
|
2296
|
-
{ name: "outlined", label: "Outlined", overrides: { borderWidth: 1, bg: "transparent" } },
|
|
2297
|
-
{ name: "filled", label: "Filled", overrides: { borderWidth: 0 } }
|
|
2298
|
-
],
|
|
2299
|
-
props: [
|
|
2300
|
-
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "outlined", options: ["outlined", "filled"] },
|
|
2301
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
2302
|
-
{ name: "placeholder", label: "Placeholder", type: "string", group: "content" },
|
|
2303
|
-
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2304
|
-
{ name: "error", label: "Error message", type: "string", group: "content" },
|
|
2305
|
-
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
2306
|
-
{ name: "numberOfLines", label: "Lines", type: "number", group: "layout", default: 4 },
|
|
2307
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" },
|
|
2308
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" }
|
|
2309
|
-
]
|
|
2310
|
-
},
|
|
2311
|
-
{
|
|
2312
|
-
id: "Checkbox",
|
|
2313
|
-
label: "Checkbox",
|
|
2314
|
-
description: "Toggle checkbox with label.",
|
|
2315
|
-
category: "input",
|
|
2316
|
-
tags: ["checkbox", "toggle", "form", "boolean"],
|
|
2317
|
-
themeMapping: { active: "primary", border: "border" },
|
|
2318
|
-
sizes: ["sm", "md"],
|
|
2319
|
-
variants: [
|
|
2320
|
-
{ name: "square", label: "Square", overrides: { borderRadius: "sm" } },
|
|
2321
|
-
{ name: "rounded", label: "Rounded", overrides: { borderRadius: "full" } }
|
|
2322
|
-
],
|
|
2323
|
-
props: [
|
|
2324
|
-
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "square", options: ["square", "rounded"] },
|
|
2325
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
|
|
2326
|
-
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
2327
|
-
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2328
|
-
{ name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "primary" }
|
|
2329
|
-
]
|
|
2330
|
-
},
|
|
2331
|
-
{
|
|
2332
|
-
id: "Switch",
|
|
2333
|
-
label: "Switch",
|
|
2334
|
-
description: "Toggle switch.",
|
|
2335
|
-
category: "input",
|
|
2336
|
-
tags: ["switch", "toggle", "boolean"],
|
|
2337
|
-
themeMapping: { active: "primary", track: "muted" },
|
|
2338
|
-
sizes: ["sm", "md"],
|
|
2339
|
-
variants: [],
|
|
2340
|
-
props: [
|
|
2341
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
|
|
2342
|
-
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
2343
|
-
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2344
|
-
{ name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "primary" },
|
|
2345
|
-
{ name: "trackColor", label: "Track color", type: "color", group: "style", themeDefault: "muted" }
|
|
2346
|
-
]
|
|
2347
|
-
},
|
|
2348
|
-
{
|
|
2349
|
-
id: "Badge",
|
|
2350
|
-
label: "Badge",
|
|
2351
|
-
description: "Small status indicator or label.",
|
|
2352
|
-
category: "display",
|
|
2353
|
-
tags: ["badge", "tag", "label", "status"],
|
|
2354
|
-
themeMapping: { bg: "primary", text: "primaryForeground" },
|
|
2355
|
-
sizes: ["sm", "md"],
|
|
2356
|
-
variants: [
|
|
2357
|
-
{ name: "solid", label: "Solid", overrides: {} },
|
|
2358
|
-
{ name: "outline", label: "Outline", overrides: { bg: "transparent", borderWidth: 1 } },
|
|
2359
|
-
{ name: "subtle", label: "Subtle", overrides: {} }
|
|
2360
|
-
],
|
|
2361
|
-
props: [
|
|
2362
|
-
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2363
|
-
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "solid", options: ["solid", "outline", "subtle"] },
|
|
2364
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
|
|
2365
|
-
{ name: "color", label: "Color scheme", type: "enum", group: "style", default: "primary", options: ["primary", "secondary", "success", "warning", "error", "info"] },
|
|
2366
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" }
|
|
2367
|
-
]
|
|
2368
|
-
},
|
|
2369
|
-
{
|
|
2370
|
-
id: "Avatar",
|
|
2371
|
-
label: "Avatar",
|
|
2372
|
-
description: "User avatar with image, initials, or icon fallback.",
|
|
2373
|
-
category: "display",
|
|
2374
|
-
tags: ["avatar", "user", "profile", "image"],
|
|
2375
|
-
themeMapping: { bg: "muted", text: "mutedForeground" },
|
|
2376
|
-
sizes: ["xs", "sm", "md", "lg", "xl"],
|
|
2377
|
-
variants: [
|
|
2378
|
-
{ name: "circle", label: "Circle", overrides: { borderRadius: "full" } },
|
|
2379
|
-
{ name: "square", label: "Square", overrides: { borderRadius: "md" } }
|
|
2380
|
-
],
|
|
2381
|
-
props: [
|
|
2382
|
-
{ name: "variant", label: "Shape", type: "enum", group: "style", default: "circle", options: ["circle", "square"] },
|
|
2383
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["xs", "sm", "md", "lg", "xl"] },
|
|
2384
|
-
{ name: "source", label: "Image source", type: "string", group: "content" },
|
|
2385
|
-
{ name: "initials", label: "Initials", type: "string", group: "content" },
|
|
2386
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "muted" }
|
|
2387
|
-
]
|
|
2388
|
-
},
|
|
2389
|
-
{
|
|
2390
|
-
id: "IconButton",
|
|
2391
|
-
label: "Icon Button",
|
|
2392
|
-
description: "Pressable icon-only button.",
|
|
2393
|
-
category: "action",
|
|
2394
|
-
tags: ["icon", "button", "action"],
|
|
2395
|
-
themeMapping: { bg: "muted", icon: "foreground" },
|
|
2396
|
-
sizes: ["sm", "md", "lg"],
|
|
2397
|
-
variants: [
|
|
2398
|
-
{ name: "filled", label: "Filled", overrides: {} },
|
|
2399
|
-
{ name: "ghost", label: "Ghost", overrides: { bg: "transparent" } },
|
|
2400
|
-
{ name: "outline", label: "Outline", overrides: { bg: "transparent", borderWidth: 1 } }
|
|
2401
|
-
],
|
|
2402
|
-
props: [
|
|
2403
|
-
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "ghost", options: ["filled", "ghost", "outline"] },
|
|
2404
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
2405
|
-
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
2406
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" },
|
|
2407
|
-
{ name: "color", label: "Icon color", type: "color", group: "style", themeDefault: "foreground" }
|
|
2408
|
-
]
|
|
2409
|
-
},
|
|
2410
|
-
{
|
|
2411
|
-
id: "Chip",
|
|
2412
|
-
label: "Chip",
|
|
2413
|
-
description: "Selectable chip / tag with optional close action.",
|
|
2414
|
-
category: "input",
|
|
2415
|
-
tags: ["chip", "tag", "filter", "selectable"],
|
|
2416
|
-
themeMapping: { bg: "muted", text: "foreground", active: "primary" },
|
|
2417
|
-
sizes: ["sm", "md"],
|
|
2418
|
-
variants: [
|
|
2419
|
-
{ name: "filled", label: "Filled", overrides: {} },
|
|
2420
|
-
{ name: "outline", label: "Outline", overrides: { bg: "transparent", borderWidth: 1 } }
|
|
2421
|
-
],
|
|
2422
|
-
props: [
|
|
2423
|
-
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2424
|
-
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "filled", options: ["filled", "outline"] },
|
|
2425
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
|
|
2426
|
-
{ name: "selected", label: "Selected", type: "boolean", group: "behavior", default: false },
|
|
2427
|
-
{ name: "closable", label: "Closable", type: "boolean", group: "behavior", default: false },
|
|
2428
|
-
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
2429
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" }
|
|
2430
|
-
]
|
|
2431
|
-
},
|
|
2432
|
-
{
|
|
2433
|
-
id: "Spinner",
|
|
2434
|
-
label: "Spinner",
|
|
2435
|
-
description: "Loading indicator.",
|
|
2436
|
-
category: "feedback",
|
|
2437
|
-
tags: ["spinner", "loading", "indicator"],
|
|
2438
|
-
themeMapping: { color: "primary" },
|
|
2439
|
-
sizes: ["sm", "md", "lg"],
|
|
2440
|
-
variants: [],
|
|
2441
|
-
props: [
|
|
2442
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
2443
|
-
{ name: "color", label: "Color", type: "color", group: "style", themeDefault: "primary" }
|
|
2444
|
-
]
|
|
2445
|
-
},
|
|
2446
|
-
{
|
|
2447
|
-
id: "Select",
|
|
2448
|
-
label: "Select",
|
|
2449
|
-
description: "Dropdown select input with options.",
|
|
2450
|
-
category: "input",
|
|
2451
|
-
tags: ["select", "dropdown", "picker", "form"],
|
|
2452
|
-
themeMapping: { bg: "input", text: "foreground", border: "border" },
|
|
2453
|
-
sizes: ["sm", "md", "lg"],
|
|
2454
|
-
variants: [
|
|
2455
|
-
{ name: "outlined", label: "Outlined", overrides: { borderWidth: 1 } },
|
|
2456
|
-
{ name: "filled", label: "Filled", overrides: { borderWidth: 0 } }
|
|
2457
|
-
],
|
|
2458
|
-
props: [
|
|
2459
|
-
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "outlined", options: ["outlined", "filled"] },
|
|
2460
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
2461
|
-
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2462
|
-
{ name: "placeholder", label: "Placeholder", type: "string", group: "content", default: "Select..." },
|
|
2463
|
-
{ name: "error", label: "Error message", type: "string", group: "content" },
|
|
2464
|
-
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
2465
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" },
|
|
2466
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" }
|
|
2467
|
-
]
|
|
2468
|
-
},
|
|
2469
|
-
{
|
|
2470
|
-
id: "RadioGroup",
|
|
2471
|
-
label: "Radio Group",
|
|
2472
|
-
description: "Group of radio buttons for single selection.",
|
|
2473
|
-
category: "input",
|
|
2474
|
-
tags: ["radio", "group", "select", "form"],
|
|
2475
|
-
themeMapping: { active: "primary", border: "border", text: "foreground" },
|
|
2476
|
-
sizes: ["sm", "md"],
|
|
2477
|
-
variants: [],
|
|
2478
|
-
props: [
|
|
2479
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
|
|
2480
|
-
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2481
|
-
{ name: "direction", label: "Direction", type: "enum", group: "layout", default: "column", options: ["column", "row"] },
|
|
2482
|
-
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 2 },
|
|
2483
|
-
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
2484
|
-
{ name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "primary" }
|
|
2485
|
-
]
|
|
2486
|
-
},
|
|
2487
|
-
{
|
|
2488
|
-
id: "DatePicker",
|
|
2489
|
-
label: "Date Picker",
|
|
2490
|
-
description: "Date/time picker input.",
|
|
2491
|
-
category: "input",
|
|
2492
|
-
tags: ["date", "time", "picker", "calendar", "form"],
|
|
2493
|
-
themeMapping: { bg: "input", text: "foreground", border: "border", accent: "primary" },
|
|
2494
|
-
sizes: ["sm", "md", "lg"],
|
|
2495
|
-
variants: [],
|
|
2496
|
-
props: [
|
|
2497
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
2498
|
-
{ name: "mode", label: "Mode", type: "enum", group: "behavior", default: "date", options: ["date", "time", "datetime"] },
|
|
2499
|
-
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2500
|
-
{ name: "placeholder", label: "Placeholder", type: "string", group: "content", default: "Select date" },
|
|
2501
|
-
{ name: "error", label: "Error message", type: "string", group: "content" },
|
|
2502
|
-
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
2503
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" }
|
|
2504
|
-
]
|
|
2505
|
-
},
|
|
2506
|
-
{
|
|
2507
|
-
id: "FilePicker",
|
|
2508
|
-
label: "File Picker",
|
|
2509
|
-
description: "File/image upload input.",
|
|
2510
|
-
category: "input",
|
|
2511
|
-
tags: ["file", "upload", "image", "picker", "form"],
|
|
2512
|
-
themeMapping: { bg: "muted", text: "foreground", border: "border", accent: "primary" },
|
|
2513
|
-
sizes: ["sm", "md", "lg"],
|
|
2514
|
-
variants: [
|
|
2515
|
-
{ name: "button", label: "Button", overrides: {} },
|
|
2516
|
-
{ name: "dropzone", label: "Drop Zone", overrides: {} }
|
|
2517
|
-
],
|
|
2518
|
-
props: [
|
|
2519
|
-
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "button", options: ["button", "dropzone"] },
|
|
2520
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
2521
|
-
{ name: "accept", label: "Accept types", type: "string", group: "behavior", default: "image/*" },
|
|
2522
|
-
{ name: "multiple", label: "Multiple", type: "boolean", group: "behavior", default: false },
|
|
2523
|
-
{ name: "label", label: "Label", type: "string", group: "content", default: "Upload file" },
|
|
2524
|
-
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
2525
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" }
|
|
2526
|
-
]
|
|
2527
|
-
},
|
|
2528
|
-
{
|
|
2529
|
-
id: "Slider",
|
|
2530
|
-
label: "Slider",
|
|
2531
|
-
description: "Range slider input.",
|
|
2532
|
-
category: "input",
|
|
2533
|
-
tags: ["slider", "range", "input", "form"],
|
|
2534
|
-
themeMapping: { active: "primary", track: "muted" },
|
|
2535
|
-
sizes: ["sm", "md"],
|
|
2536
|
-
variants: [],
|
|
2537
|
-
props: [
|
|
2538
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
|
|
2539
|
-
{ name: "min", label: "Min", type: "number", group: "behavior", default: 0 },
|
|
2540
|
-
{ name: "max", label: "Max", type: "number", group: "behavior", default: 100 },
|
|
2541
|
-
{ name: "step", label: "Step", type: "number", group: "behavior", default: 1 },
|
|
2542
|
-
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2543
|
-
{ name: "showValue", label: "Show value", type: "boolean", group: "behavior", default: true },
|
|
2544
|
-
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
2545
|
-
{ name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "primary" }
|
|
2546
|
-
]
|
|
2547
|
-
},
|
|
2548
|
-
{
|
|
2549
|
-
id: "Image",
|
|
2550
|
-
label: "Image",
|
|
2551
|
-
description: "Image component with source, resize mode, and placeholder.",
|
|
2552
|
-
category: "display",
|
|
2553
|
-
tags: ["image", "photo", "picture", "media"],
|
|
2554
|
-
themeMapping: { bg: "muted" },
|
|
2555
|
-
sizes: [],
|
|
2556
|
-
variants: [],
|
|
2557
|
-
props: [
|
|
2558
|
-
{ name: "source", label: "Source URL", type: "string", group: "content" },
|
|
2559
|
-
{ name: "alt", label: "Alt text", type: "string", group: "content" },
|
|
2560
|
-
{ name: "resizeMode", label: "Resize mode", type: "enum", group: "style", default: "cover", options: ["cover", "contain", "stretch", "center"] },
|
|
2561
|
-
{ name: "width", label: "Width", type: "number", group: "layout" },
|
|
2562
|
-
{ name: "height", label: "Height", type: "number", group: "layout", default: 200 },
|
|
2563
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" },
|
|
2564
|
-
{ name: "background", label: "Placeholder bg", type: "color", group: "style", themeDefault: "muted" }
|
|
2565
|
-
]
|
|
2566
|
-
},
|
|
2567
|
-
{
|
|
2568
|
-
id: "Icon",
|
|
2569
|
-
label: "Icon",
|
|
2570
|
-
description: "Vector icon from Feather icon set.",
|
|
2571
|
-
category: "display",
|
|
2572
|
-
tags: ["icon", "feather", "vector", "symbol"],
|
|
2573
|
-
themeMapping: { color: "foreground" },
|
|
2574
|
-
sizes: ["sm", "md", "lg"],
|
|
2575
|
-
variants: [],
|
|
2576
|
-
props: [
|
|
2577
|
-
{ name: "name", label: "Icon name", type: "string", group: "content", default: "star" },
|
|
2578
|
-
{ name: "size", label: "Size", type: "number", group: "style", default: 24 },
|
|
2579
|
-
{ name: "color", label: "Color", type: "color", group: "style", themeDefault: "foreground" }
|
|
2580
|
-
]
|
|
2581
|
-
},
|
|
2582
|
-
{
|
|
2583
|
-
id: "Gradient",
|
|
2584
|
-
label: "Gradient",
|
|
2585
|
-
description: "Linear gradient background container.",
|
|
2586
|
-
category: "display",
|
|
2587
|
-
tags: ["gradient", "linear", "background", "color"],
|
|
2588
|
-
themeMapping: {},
|
|
2589
|
-
sizes: [],
|
|
2590
|
-
variants: [],
|
|
2591
|
-
props: [
|
|
2592
|
-
{ name: "startColor", label: "Start color", type: "color", group: "style", default: "#3b82f6" },
|
|
2593
|
-
{ name: "endColor", label: "End color", type: "color", group: "style", default: "#8b5cf6" },
|
|
2594
|
-
{ name: "direction", label: "Direction", type: "enum", group: "style", default: "vertical", options: ["vertical", "horizontal", "diagonal"] },
|
|
2595
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" },
|
|
2596
|
-
{ name: "height", label: "Height", type: "number", group: "layout" },
|
|
2597
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout" }
|
|
2598
|
-
]
|
|
2599
|
-
},
|
|
2600
|
-
{
|
|
2601
|
-
id: "Separator",
|
|
2602
|
-
label: "Separator",
|
|
2603
|
-
description: "Visual separator with optional label.",
|
|
2604
|
-
category: "display",
|
|
2605
|
-
tags: ["separator", "divider", "or", "line"],
|
|
2606
|
-
themeMapping: { color: "border", text: "mutedForeground" },
|
|
2607
|
-
sizes: [],
|
|
2608
|
-
variants: [],
|
|
2609
|
-
props: [
|
|
2610
|
-
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2611
|
-
{ name: "color", label: "Color", type: "color", group: "style", themeDefault: "border" },
|
|
2612
|
-
{ name: "thickness", label: "Thickness", type: "number", group: "style", default: 1 },
|
|
2613
|
-
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 4 }
|
|
2614
|
-
]
|
|
2615
|
-
},
|
|
2616
|
-
{
|
|
2617
|
-
id: "Text",
|
|
2618
|
-
label: "Text",
|
|
2619
|
-
description: "Text display component with typography control.",
|
|
2620
|
-
category: "display",
|
|
2621
|
-
tags: ["text", "label", "paragraph", "heading", "typography"],
|
|
2622
|
-
themeMapping: { color: "foreground" },
|
|
2623
|
-
sizes: [],
|
|
2624
|
-
variants: [],
|
|
2625
|
-
props: [
|
|
2626
|
-
{ name: "text", label: "Text", type: "string", group: "content", default: "Text" },
|
|
2627
|
-
{ name: "fontSize", label: "Font size", type: "number", group: "style", default: 14 },
|
|
2628
|
-
{ name: "fontWeight", label: "Font weight", type: "enum", group: "style", default: "400", options: ["300", "400", "500", "600", "700", "800"] },
|
|
2629
|
-
{ name: "color", label: "Color", type: "color", group: "style", themeDefault: "foreground" },
|
|
2630
|
-
{ name: "textAlign", label: "Align", type: "enum", group: "style", default: "left", options: ["left", "center", "right"] },
|
|
2631
|
-
{ name: "numberOfLines", label: "Max lines", type: "number", group: "behavior" }
|
|
2632
|
-
]
|
|
2633
|
-
},
|
|
2634
|
-
{
|
|
2635
|
-
id: "Video",
|
|
2636
|
-
label: "Video",
|
|
2637
|
-
description: "Video player with controls, autoplay, and loop.",
|
|
2638
|
-
category: "media",
|
|
2639
|
-
tags: ["video", "player", "media", "stream"],
|
|
2640
|
-
themeMapping: { bg: "muted" },
|
|
2641
|
-
sizes: [],
|
|
2642
|
-
variants: [],
|
|
2643
|
-
props: [
|
|
2644
|
-
{ name: "source", label: "Source URL", type: "string", group: "content" },
|
|
2645
|
-
{ name: "poster", label: "Poster URL", type: "string", group: "content" },
|
|
2646
|
-
{ name: "autoplay", label: "Autoplay", type: "boolean", group: "behavior", default: false },
|
|
2647
|
-
{ name: "loop", label: "Loop", type: "boolean", group: "behavior", default: false },
|
|
2648
|
-
{ name: "muted", label: "Muted", type: "boolean", group: "behavior", default: true },
|
|
2649
|
-
{ name: "controls", label: "Show controls", type: "boolean", group: "behavior", default: true },
|
|
2650
|
-
{ name: "resizeMode", label: "Resize mode", type: "enum", group: "style", default: "contain", options: ["cover", "contain", "stretch"] },
|
|
2651
|
-
{ name: "width", label: "Width", type: "number", group: "layout" },
|
|
2652
|
-
{ name: "height", label: "Height", type: "number", group: "layout", default: 220 },
|
|
2653
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" }
|
|
2654
|
-
]
|
|
2655
|
-
},
|
|
2656
|
-
{
|
|
2657
|
-
id: "Camera",
|
|
2658
|
-
label: "Camera",
|
|
2659
|
-
description: "Camera viewfinder for photo/video capture.",
|
|
2660
|
-
category: "media",
|
|
2661
|
-
tags: ["camera", "photo", "capture", "scan"],
|
|
2662
|
-
themeMapping: { bg: "muted" },
|
|
2663
|
-
sizes: [],
|
|
2664
|
-
variants: [],
|
|
2665
|
-
props: [
|
|
2666
|
-
{ name: "facing", label: "Facing", type: "enum", group: "behavior", default: "back", options: ["front", "back"] },
|
|
2667
|
-
{ name: "flash", label: "Flash", type: "enum", group: "behavior", default: "off", options: ["off", "on", "auto"] },
|
|
2668
|
-
{ name: "enableTorch", label: "Torch", type: "boolean", group: "behavior", default: false },
|
|
2669
|
-
{ name: "width", label: "Width", type: "number", group: "layout" },
|
|
2670
|
-
{ name: "height", label: "Height", type: "number", group: "layout", default: 300 },
|
|
2671
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" }
|
|
2672
|
-
]
|
|
2673
|
-
},
|
|
2674
|
-
{
|
|
2675
|
-
id: "WebView",
|
|
2676
|
-
label: "WebView",
|
|
2677
|
-
description: "Embedded web browser view.",
|
|
2678
|
-
category: "media",
|
|
2679
|
-
tags: ["webview", "browser", "iframe", "embed"],
|
|
2680
|
-
themeMapping: { bg: "muted" },
|
|
2681
|
-
sizes: [],
|
|
2682
|
-
variants: [],
|
|
2683
|
-
props: [
|
|
2684
|
-
{ name: "url", label: "URL", type: "string", group: "content", default: "https://expo.dev" },
|
|
2685
|
-
{ name: "width", label: "Width", type: "number", group: "layout" },
|
|
2686
|
-
{ name: "height", label: "Height", type: "number", group: "layout", default: 400 },
|
|
2687
|
-
{ name: "scrollEnabled", label: "Scroll", type: "boolean", group: "behavior", default: true },
|
|
2688
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" }
|
|
2689
|
-
]
|
|
2690
|
-
},
|
|
2691
|
-
{
|
|
2692
|
-
id: "MapView",
|
|
2693
|
-
label: "Map",
|
|
2694
|
-
description: "Interactive map view with markers.",
|
|
2695
|
-
category: "media",
|
|
2696
|
-
tags: ["map", "location", "gps", "marker"],
|
|
2697
|
-
themeMapping: {},
|
|
2698
|
-
sizes: [],
|
|
2699
|
-
variants: [],
|
|
2700
|
-
props: [
|
|
2701
|
-
{ name: "latitude", label: "Latitude", type: "number", group: "content", default: 48.8566 },
|
|
2702
|
-
{ name: "longitude", label: "Longitude", type: "number", group: "content", default: 2.3522 },
|
|
2703
|
-
{ name: "zoom", label: "Zoom", type: "number", group: "content", default: 12 },
|
|
2704
|
-
{ name: "width", label: "Width", type: "number", group: "layout" },
|
|
2705
|
-
{ name: "height", label: "Height", type: "number", group: "layout", default: 300 },
|
|
2706
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" },
|
|
2707
|
-
{ name: "showsUserLocation", label: "User location", type: "boolean", group: "behavior", default: true }
|
|
2708
|
-
]
|
|
2709
|
-
},
|
|
2710
|
-
{
|
|
2711
|
-
id: "BlurView",
|
|
2712
|
-
label: "Blur View",
|
|
2713
|
-
description: "Blurred background overlay container.",
|
|
2714
|
-
category: "display",
|
|
2715
|
-
tags: ["blur", "glass", "frosted", "overlay"],
|
|
2716
|
-
themeMapping: {},
|
|
2717
|
-
sizes: [],
|
|
2718
|
-
variants: [],
|
|
2719
|
-
props: [
|
|
2720
|
-
{ name: "intensity", label: "Intensity", type: "number", group: "style", default: 50 },
|
|
2721
|
-
{ name: "tint", label: "Tint", type: "enum", group: "style", default: "default", options: ["default", "light", "dark"] },
|
|
2722
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" },
|
|
2723
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout" }
|
|
2724
|
-
]
|
|
2725
|
-
},
|
|
2726
|
-
{
|
|
2727
|
-
id: "LottieAnimation",
|
|
2728
|
-
label: "Lottie",
|
|
2729
|
-
description: "Lottie animation player.",
|
|
2730
|
-
category: "media",
|
|
2731
|
-
tags: ["lottie", "animation", "motion", "json"],
|
|
2732
|
-
themeMapping: {},
|
|
2733
|
-
sizes: [],
|
|
2734
|
-
variants: [],
|
|
2735
|
-
props: [
|
|
2736
|
-
{ name: "source", label: "Source URL", type: "string", group: "content" },
|
|
2737
|
-
{ name: "autoPlay", label: "Auto play", type: "boolean", group: "behavior", default: true },
|
|
2738
|
-
{ name: "loop", label: "Loop", type: "boolean", group: "behavior", default: true },
|
|
2739
|
-
{ name: "speed", label: "Speed", type: "number", group: "behavior", default: 1 },
|
|
2740
|
-
{ name: "width", label: "Width", type: "number", group: "layout", default: 200 },
|
|
2741
|
-
{ name: "height", label: "Height", type: "number", group: "layout", default: 200 }
|
|
2742
|
-
]
|
|
2743
|
-
},
|
|
2744
|
-
{
|
|
2745
|
-
id: "ProgressBar",
|
|
2746
|
-
label: "Progress Bar",
|
|
2747
|
-
description: "Horizontal progress indicator.",
|
|
2748
|
-
category: "feedback",
|
|
2749
|
-
tags: ["progress", "bar", "loading", "percentage"],
|
|
2750
|
-
themeMapping: { active: "primary", track: "muted" },
|
|
2751
|
-
sizes: ["sm", "md"],
|
|
2752
|
-
variants: [],
|
|
2753
|
-
props: [
|
|
2754
|
-
{ name: "progress", label: "Progress (0-1)", type: "number", group: "content", default: 0.5 },
|
|
2755
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
|
|
2756
|
-
{ name: "color", label: "Color", type: "color", group: "style", themeDefault: "primary" },
|
|
2757
|
-
{ name: "trackColor", label: "Track color", type: "color", group: "style", themeDefault: "muted" },
|
|
2758
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" },
|
|
2759
|
-
{ name: "showLabel", label: "Show label", type: "boolean", group: "behavior", default: false }
|
|
2760
|
-
]
|
|
2761
|
-
},
|
|
2762
|
-
{
|
|
2763
|
-
id: "Accordion",
|
|
2764
|
-
label: "Accordion",
|
|
2765
|
-
description: "Expandable/collapsible content section.",
|
|
2766
|
-
category: "display",
|
|
2767
|
-
tags: ["accordion", "collapse", "expand", "faq"],
|
|
2768
|
-
themeMapping: { bg: "card", text: "foreground", border: "border" },
|
|
2769
|
-
sizes: [],
|
|
2770
|
-
variants: [],
|
|
2771
|
-
props: [
|
|
2772
|
-
{ name: "title", label: "Title", type: "string", group: "content", default: "Section" },
|
|
2773
|
-
{ name: "defaultOpen", label: "Default open", type: "boolean", group: "behavior", default: false },
|
|
2774
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2775
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" },
|
|
2776
|
-
{ name: "borderColor", label: "Border color", type: "color", group: "style", themeDefault: "border" }
|
|
2777
|
-
]
|
|
2778
|
-
},
|
|
2779
|
-
{
|
|
2780
|
-
id: "Tabs",
|
|
2781
|
-
label: "Tabs",
|
|
2782
|
-
description: "Tab navigation with content panels.",
|
|
2783
|
-
category: "navigation",
|
|
2784
|
-
tags: ["tabs", "navigation", "panel", "switch"],
|
|
2785
|
-
themeMapping: { active: "primary", bg: "card", border: "border" },
|
|
2786
|
-
sizes: [],
|
|
2787
|
-
variants: [],
|
|
2788
|
-
props: [
|
|
2789
|
-
{ name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "primary" },
|
|
2790
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2791
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" },
|
|
2792
|
-
{ name: "position", label: "Position", type: "enum", group: "layout", default: "top", options: ["top", "bottom"] }
|
|
2793
|
-
]
|
|
2794
|
-
},
|
|
2795
|
-
{
|
|
2796
|
-
id: "Pressable",
|
|
2797
|
-
label: "Pressable",
|
|
2798
|
-
description: "Generic pressable wrapper with feedback.",
|
|
2799
|
-
category: "action",
|
|
2800
|
-
tags: ["pressable", "touchable", "tap", "click"],
|
|
2801
|
-
themeMapping: {},
|
|
2802
|
-
sizes: [],
|
|
2803
|
-
variants: [],
|
|
2804
|
-
props: [
|
|
2805
|
-
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
2806
|
-
{ name: "opacity", label: "Press opacity", type: "number", group: "style", default: 0.7 }
|
|
2807
|
-
]
|
|
2808
|
-
},
|
|
2809
|
-
{
|
|
2810
|
-
id: "FlatList",
|
|
2811
|
-
label: "List",
|
|
2812
|
-
description: "Scrollable list with virtualization.",
|
|
2813
|
-
category: "display",
|
|
2814
|
-
tags: ["list", "flatlist", "scroll", "virtualized"],
|
|
2815
|
-
themeMapping: { bg: "background" },
|
|
2816
|
-
sizes: [],
|
|
2817
|
-
variants: [],
|
|
2818
|
-
props: [
|
|
2819
|
-
{ name: "horizontal", label: "Horizontal", type: "boolean", group: "layout", default: false },
|
|
2820
|
-
{ name: "numColumns", label: "Columns", type: "number", group: "layout", default: 1 },
|
|
2821
|
-
{ name: "spacing", label: "Item spacing", type: "spacing", group: "layout", default: 0 },
|
|
2822
|
-
{ name: "showsScrollIndicator", label: "Scroll indicator", type: "boolean", group: "behavior", default: true },
|
|
2823
|
-
{ name: "background", label: "Background", type: "color", group: "style" }
|
|
2824
|
-
]
|
|
2825
|
-
}
|
|
2826
|
-
];
|
|
2827
|
-
|
|
2828
|
-
// foundation/layout/registry/blocks/existing.ts
|
|
2829
|
-
var existingBlocks = [
|
|
2830
|
-
{
|
|
2831
|
-
id: "AuthFormBlock",
|
|
2832
|
-
label: "Auth Form",
|
|
2833
|
-
description: "Login/signup form with email, password, submit button, and optional social providers.",
|
|
2834
|
-
category: "auth",
|
|
2835
|
-
tags: ["auth", "login", "signup", "form", "email", "password"],
|
|
2836
|
-
themeMapping: { bg: "card", text: "foreground", accent: "primary" },
|
|
2837
|
-
components: ["TextInput", "Button"],
|
|
2838
|
-
slots: [
|
|
2839
|
-
{ name: "header", label: "Header (logo/title)", required: false, kind: "named" },
|
|
2840
|
-
{ name: "footer", label: "Footer (links)", required: false, kind: "named" },
|
|
2841
|
-
{ name: "social", label: "Social providers", required: false, kind: "named-array" }
|
|
2842
|
-
],
|
|
2843
|
-
props: [
|
|
2844
|
-
{ name: "mode", label: "Mode", type: "enum", group: "behavior", default: "login", options: ["login", "signup", "forgot"] },
|
|
2845
|
-
{ name: "showRemember", label: "Remember me", type: "boolean", group: "behavior", default: true },
|
|
2846
|
-
{ name: "showForgot", label: "Forgot password", type: "boolean", group: "behavior", default: true },
|
|
2847
|
-
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 4 },
|
|
2848
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2849
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
2850
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 5 },
|
|
2851
|
-
{ name: "buttonVariant", label: "Button variant", type: "enum", group: "style", default: "primary", options: ["primary", "secondary", "outline"] },
|
|
2852
|
-
{ name: "inputVariant", label: "Input variant", type: "enum", group: "style", default: "outlined", options: ["outlined", "filled", "underline"] },
|
|
2853
|
-
{ name: "submitLabel", label: "Submit label", type: "string", group: "content", default: "Sign In" },
|
|
2854
|
-
{ name: "forgotLabel", label: "Forgot label", type: "string", group: "content", default: "Forgot password?" }
|
|
2855
|
-
]
|
|
2856
|
-
},
|
|
2857
|
-
{
|
|
2858
|
-
id: "AvatarBlock",
|
|
2859
|
-
label: "Avatar Block",
|
|
2860
|
-
description: "Avatar with name, subtitle, and optional action.",
|
|
2861
|
-
category: "profile",
|
|
2862
|
-
tags: ["avatar", "user", "profile", "name"],
|
|
2863
|
-
themeMapping: { bg: "card", text: "foreground", subtitle: "mutedForeground" },
|
|
2864
|
-
components: ["Avatar"],
|
|
2865
|
-
slots: [{ name: "action", label: "Action button", required: false, kind: "named" }],
|
|
2866
|
-
props: [
|
|
2867
|
-
{ name: "name", label: "Name", type: "string", group: "content" },
|
|
2868
|
-
{ name: "subtitle", label: "Subtitle", type: "string", group: "content" },
|
|
2869
|
-
{ name: "source", label: "Image URL", type: "string", group: "content" },
|
|
2870
|
-
{ name: "initials", label: "Initials", type: "string", group: "content" },
|
|
2871
|
-
{ name: "size", label: "Avatar size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg", "xl"] },
|
|
2872
|
-
{ name: "direction", label: "Direction", type: "enum", group: "layout", default: "row", options: ["row", "column"] },
|
|
2873
|
-
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 3 },
|
|
2874
|
-
{ name: "showSubtitle", label: "Show subtitle", type: "boolean", group: "behavior", default: true }
|
|
2875
|
-
]
|
|
2876
|
-
},
|
|
2877
|
-
{
|
|
2878
|
-
id: "HeaderBlock",
|
|
2879
|
-
label: "Header Bar",
|
|
2880
|
-
description: "Top navigation bar with title, back button, and right actions.",
|
|
2881
|
-
category: "navigation",
|
|
2882
|
-
tags: ["header", "navbar", "topbar", "navigation", "back"],
|
|
2883
|
-
themeMapping: { bg: "card", text: "foreground", border: "border" },
|
|
2884
|
-
components: ["IconButton"],
|
|
2885
|
-
slots: [
|
|
2886
|
-
{ name: "left", label: "Left actions", required: false, kind: "named" },
|
|
2887
|
-
{ name: "title", label: "Title area", required: true, kind: "named" },
|
|
2888
|
-
{ name: "right", label: "Right actions", required: false, kind: "named-array" }
|
|
2889
|
-
],
|
|
2890
|
-
props: [
|
|
2891
|
-
{ name: "height", label: "Height", type: "number", group: "layout", default: 56 },
|
|
2892
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2893
|
-
{ name: "borderBottom", label: "Bottom border", type: "boolean", group: "style", default: true },
|
|
2894
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
|
|
2895
|
-
{ name: "transparent", label: "Transparent", type: "boolean", group: "style", default: false }
|
|
2896
|
-
]
|
|
2897
|
-
},
|
|
2898
|
-
{
|
|
2899
|
-
id: "SearchBarBlock",
|
|
2900
|
-
label: "Search Bar",
|
|
2901
|
-
description: "Search input with icon and optional filter button.",
|
|
2902
|
-
category: "navigation",
|
|
2903
|
-
tags: ["search", "input", "filter", "bar"],
|
|
2904
|
-
themeMapping: { bg: "muted", text: "foreground", placeholder: "mutedForeground" },
|
|
2905
|
-
components: ["TextInput", "IconButton"],
|
|
2906
|
-
slots: [{ name: "filters", label: "Filter actions", required: false, kind: "named-array" }],
|
|
2907
|
-
props: [
|
|
2908
|
-
{ name: "placeholder", label: "Placeholder", type: "string", group: "content", default: "Search..." },
|
|
2909
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "muted" },
|
|
2910
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" },
|
|
2911
|
-
{ name: "showFilter", label: "Show filter", type: "boolean", group: "behavior", default: false },
|
|
2912
|
-
{ name: "inputVariant", label: "Input variant", type: "enum", group: "style", default: "filled", options: ["outlined", "filled"] }
|
|
2913
|
-
]
|
|
2914
|
-
},
|
|
2915
|
-
{
|
|
2916
|
-
id: "StatCardBlock",
|
|
2917
|
-
label: "Stat Card",
|
|
2918
|
-
description: "Metric card with value, label, trend indicator, and optional icon.",
|
|
2919
|
-
category: "data",
|
|
2920
|
-
tags: ["stat", "metric", "card", "kpi", "dashboard"],
|
|
2921
|
-
themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
|
|
2922
|
-
components: ["Badge"],
|
|
2923
|
-
slots: [{ name: "icon", label: "Icon", required: false, kind: "named" }],
|
|
2924
|
-
props: [
|
|
2925
|
-
{ name: "value", label: "Value", type: "string", group: "content" },
|
|
2926
|
-
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2927
|
-
{ name: "trend", label: "Trend", type: "string", group: "content" },
|
|
2928
|
-
{ name: "trendUp", label: "Trend up", type: "boolean", group: "content", default: true },
|
|
2929
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2930
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
2931
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
|
|
2932
|
-
{ name: "showTrend", label: "Show trend", type: "boolean", group: "behavior", default: true },
|
|
2933
|
-
{ name: "shadow", label: "Shadow", type: "shadow", group: "style", default: "sm" }
|
|
2934
|
-
]
|
|
2935
|
-
},
|
|
2936
|
-
{
|
|
2937
|
-
id: "EmptyStateBlock",
|
|
2938
|
-
label: "Empty State",
|
|
2939
|
-
description: "Placeholder for empty lists or screens with icon, title, description, and action.",
|
|
2940
|
-
category: "feedback",
|
|
2941
|
-
tags: ["empty", "placeholder", "no-data", "illustration"],
|
|
2942
|
-
themeMapping: { text: "mutedForeground", accent: "primary" },
|
|
2943
|
-
components: ["Button"],
|
|
2944
|
-
slots: [{ name: "illustration", label: "Illustration", required: false, kind: "named" }],
|
|
2945
|
-
props: [
|
|
2946
|
-
{ name: "title", label: "Title", type: "string", group: "content" },
|
|
2947
|
-
{ name: "description", label: "Description", type: "string", group: "content" },
|
|
2948
|
-
{ name: "actionLabel", label: "Action label", type: "string", group: "content", default: "Get started" },
|
|
2949
|
-
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 4 },
|
|
2950
|
-
{ name: "showAction", label: "Show action", type: "boolean", group: "behavior", default: true },
|
|
2951
|
-
{ name: "actionVariant", label: "Action variant", type: "enum", group: "style", default: "primary", options: ["primary", "outline", "ghost"] }
|
|
2952
|
-
]
|
|
2953
|
-
},
|
|
2954
|
-
{
|
|
2955
|
-
id: "ListItemBlock",
|
|
2956
|
-
label: "List Item",
|
|
2957
|
-
description: "Standard list row with leading icon/avatar, title, subtitle, and trailing action.",
|
|
2958
|
-
category: "content",
|
|
2959
|
-
tags: ["list", "item", "row", "cell"],
|
|
2960
|
-
themeMapping: { bg: "card", text: "foreground", subtitle: "mutedForeground", border: "border" },
|
|
2961
|
-
components: ["Avatar", "IconButton"],
|
|
2962
|
-
slots: [
|
|
2963
|
-
{ name: "leading", label: "Leading element", required: false, kind: "named" },
|
|
2964
|
-
{ name: "trailing", label: "Trailing element", required: false, kind: "named" }
|
|
2965
|
-
],
|
|
2966
|
-
props: [
|
|
2967
|
-
{ name: "title", label: "Title", type: "string", group: "content" },
|
|
2968
|
-
{ name: "subtitle", label: "Subtitle", type: "string", group: "content" },
|
|
2969
|
-
{ name: "height", label: "Height", type: "number", group: "layout", default: 56 },
|
|
2970
|
-
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 3 },
|
|
2971
|
-
{ name: "showDivider", label: "Show divider", type: "boolean", group: "style", default: true },
|
|
2972
|
-
{ name: "pressable", label: "Pressable", type: "boolean", group: "behavior", default: true },
|
|
2973
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2974
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 }
|
|
2975
|
-
]
|
|
2976
|
-
},
|
|
2977
|
-
{
|
|
2978
|
-
id: "FormBlock",
|
|
2979
|
-
label: "Form",
|
|
2980
|
-
description: "Form container with validation, submit handling, and field layout.",
|
|
2981
|
-
category: "form",
|
|
2982
|
-
tags: ["form", "validation", "submit", "fields"],
|
|
2983
|
-
themeMapping: { bg: "card", text: "foreground", error: "destructive" },
|
|
2984
|
-
components: ["TextInput", "Button", "Select", "Checkbox", "Switch"],
|
|
2985
|
-
slots: [
|
|
2986
|
-
{ name: "children", label: "Form fields", required: true, kind: "children" },
|
|
2987
|
-
{ name: "header", label: "Form header", required: false, kind: "named" },
|
|
2988
|
-
{ name: "footer", label: "Form footer", required: false, kind: "named" }
|
|
2989
|
-
],
|
|
2990
|
-
props: [
|
|
2991
|
-
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 4 },
|
|
2992
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
|
|
2993
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2994
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
2995
|
-
{ name: "showReset", label: "Show reset", type: "boolean", group: "behavior", default: false },
|
|
2996
|
-
{ name: "submitLabel", label: "Submit label", type: "string", group: "content", default: "Submit" },
|
|
2997
|
-
{ name: "submitVariant", label: "Submit variant", type: "enum", group: "style", default: "primary", options: ["primary", "secondary", "outline"] },
|
|
2998
|
-
{ name: "validateOnBlur", label: "Validate on blur", type: "boolean", group: "behavior", default: true },
|
|
2999
|
-
{ name: "resetLabel", label: "Reset label", type: "string", group: "content", default: "Reset" }
|
|
3000
|
-
]
|
|
3001
|
-
},
|
|
3002
|
-
{
|
|
3003
|
-
id: "CardBlock",
|
|
3004
|
-
label: "Card",
|
|
3005
|
-
description: "Content card with optional image, title, description, and actions.",
|
|
3006
|
-
category: "content",
|
|
3007
|
-
tags: ["card", "content", "media", "article"],
|
|
3008
|
-
themeMapping: { bg: "card", text: "foreground", subtitle: "mutedForeground" },
|
|
3009
|
-
components: ["Button", "Badge"],
|
|
3010
|
-
slots: [
|
|
3011
|
-
{ name: "media", label: "Media (image/video)", required: false, kind: "named" },
|
|
3012
|
-
{ name: "actions", label: "Action buttons", required: false, kind: "named-array" }
|
|
3013
|
-
],
|
|
3014
|
-
props: [
|
|
3015
|
-
{ name: "title", label: "Title", type: "string", group: "content" },
|
|
3016
|
-
{ name: "description", label: "Description", type: "string", group: "content" },
|
|
3017
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
|
|
3018
|
-
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 3 },
|
|
3019
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
3020
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
3021
|
-
{ name: "shadow", label: "Shadow", type: "shadow", group: "style", default: "sm" },
|
|
3022
|
-
{ name: "pressable", label: "Pressable", type: "boolean", group: "behavior", default: false }
|
|
3023
|
-
]
|
|
3024
|
-
},
|
|
3025
|
-
{
|
|
3026
|
-
id: "ModalBlock",
|
|
3027
|
-
label: "Modal",
|
|
3028
|
-
description: "Modal overlay with content, close button, and backdrop.",
|
|
3029
|
-
category: "overlay",
|
|
3030
|
-
tags: ["modal", "dialog", "popup", "overlay"],
|
|
3031
|
-
themeMapping: { bg: "card", text: "foreground", backdrop: "background" },
|
|
3032
|
-
components: ["IconButton"],
|
|
3033
|
-
slots: [
|
|
3034
|
-
{ name: "children", label: "Content", required: true, kind: "children" },
|
|
3035
|
-
{ name: "footer", label: "Footer actions", required: false, kind: "named" }
|
|
3036
|
-
],
|
|
3037
|
-
props: [
|
|
3038
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 5 },
|
|
3039
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
3040
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "2xl" },
|
|
3041
|
-
{ name: "maxWidth", label: "Max width", type: "number", group: "layout", default: 500 },
|
|
3042
|
-
{ name: "showClose", label: "Show close", type: "boolean", group: "behavior", default: true },
|
|
3043
|
-
{ name: "backdropClose", label: "Close on backdrop", type: "boolean", group: "behavior", default: true }
|
|
3044
|
-
]
|
|
3045
|
-
},
|
|
3046
|
-
{
|
|
3047
|
-
id: "ToastBlock",
|
|
3048
|
-
label: "Toast",
|
|
3049
|
-
description: "Notification toast with icon, message, and auto-dismiss.",
|
|
3050
|
-
category: "feedback",
|
|
3051
|
-
tags: ["toast", "notification", "snackbar", "alert"],
|
|
3052
|
-
themeMapping: { bg: "card", text: "foreground" },
|
|
3053
|
-
components: ["IconButton"],
|
|
3054
|
-
slots: [],
|
|
3055
|
-
props: [
|
|
3056
|
-
{ name: "message", label: "Message", type: "string", group: "content" },
|
|
3057
|
-
{ name: "type", label: "Type", type: "enum", group: "style", default: "info", options: ["info", "success", "warning", "error"] },
|
|
3058
|
-
{ name: "position", label: "Position", type: "enum", group: "layout", default: "top", options: ["top", "bottom"] },
|
|
3059
|
-
{ name: "duration", label: "Duration (ms)", type: "number", group: "behavior", default: 3e3 },
|
|
3060
|
-
{ name: "showIcon", label: "Show icon", type: "boolean", group: "behavior", default: true },
|
|
3061
|
-
{ name: "dismissible", label: "Dismissible", type: "boolean", group: "behavior", default: true },
|
|
3062
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" }
|
|
3063
|
-
]
|
|
3064
|
-
}
|
|
3065
|
-
];
|
|
3066
|
-
|
|
3067
|
-
// foundation/layout/registry/blocks/new.ts
|
|
3068
|
-
var newBlocks = [
|
|
3069
|
-
{
|
|
3070
|
-
id: "SocialLinksBlock",
|
|
3071
|
-
label: "Social Links",
|
|
3072
|
-
description: "Row of social network icon buttons with optional labels and customizable layout.",
|
|
3073
|
-
category: "social",
|
|
3074
|
-
tags: ["social", "links", "icons", "network", "share"],
|
|
3075
|
-
themeMapping: { bg: "card", text: "foreground", accent: "primary" },
|
|
3076
|
-
components: ["Pressable"],
|
|
3077
|
-
slots: [],
|
|
3078
|
-
props: [
|
|
3079
|
-
{ name: "links", label: "Links", type: "string", group: "content" },
|
|
3080
|
-
{ name: "direction", label: "Direction", type: "enum", group: "layout", default: "row", options: ["row", "column"] },
|
|
3081
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
3082
|
-
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "icon", options: ["icon", "icon-label", "label"] },
|
|
3083
|
-
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 2 },
|
|
3084
|
-
{ name: "color", label: "Color", type: "color", group: "style", themeDefault: "foreground" },
|
|
3085
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
3086
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" },
|
|
3087
|
-
{ name: "showLabels", label: "Show labels", type: "boolean", group: "behavior", default: false }
|
|
3088
|
-
]
|
|
3089
|
-
},
|
|
3090
|
-
{
|
|
3091
|
-
id: "ProductCardBlock",
|
|
3092
|
-
label: "Product Card",
|
|
3093
|
-
description: "E-commerce product card with image, name, price, rating, and add-to-cart button.",
|
|
3094
|
-
category: "ecommerce",
|
|
3095
|
-
tags: ["product", "card", "ecommerce", "shop", "price", "rating"],
|
|
3096
|
-
themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
|
|
3097
|
-
components: ["Button", "Badge"],
|
|
3098
|
-
slots: [
|
|
3099
|
-
{ name: "image", label: "Product image", required: false, kind: "named" }
|
|
3100
|
-
],
|
|
3101
|
-
props: [
|
|
3102
|
-
{ name: "name", label: "Name", type: "string", group: "content" },
|
|
3103
|
-
{ name: "price", label: "Price", type: "string", group: "content" },
|
|
3104
|
-
{ name: "originalPrice", label: "Original price", type: "string", group: "content" },
|
|
3105
|
-
{ name: "imageUrl", label: "Image URL", type: "string", group: "content" },
|
|
3106
|
-
{ name: "rating", label: "Rating", type: "number", group: "content" },
|
|
3107
|
-
{ name: "reviewCount", label: "Review count", type: "number", group: "content" },
|
|
3108
|
-
{ name: "badge", label: "Badge", type: "string", group: "content" },
|
|
3109
|
-
{ name: "inStock", label: "In stock", type: "boolean", group: "behavior", default: true },
|
|
3110
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
3111
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
3112
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
|
|
3113
|
-
{ name: "shadow", label: "Shadow", type: "shadow", group: "style", default: "sm" }
|
|
3114
|
-
]
|
|
3115
|
-
},
|
|
3116
|
-
{
|
|
3117
|
-
id: "NotificationItemBlock",
|
|
3118
|
-
label: "Notification Item",
|
|
3119
|
-
description: "Notification row with icon, title, body, timestamp, and read state.",
|
|
3120
|
-
category: "feedback",
|
|
3121
|
-
tags: ["notification", "alert", "item", "row", "unread"],
|
|
3122
|
-
themeMapping: { bg: "card", text: "foreground", accent: "primary", border: "border" },
|
|
3123
|
-
components: ["IconButton"],
|
|
3124
|
-
slots: [],
|
|
3125
|
-
props: [
|
|
3126
|
-
{ name: "title", label: "Title", type: "string", group: "content" },
|
|
3127
|
-
{ name: "body", label: "Body", type: "string", group: "content" },
|
|
3128
|
-
{ name: "timestamp", label: "Timestamp", type: "string", group: "content" },
|
|
3129
|
-
{ name: "read", label: "Read", type: "boolean", group: "behavior", default: false },
|
|
3130
|
-
{ name: "iconName", label: "Icon name", type: "string", group: "content", default: "bell" },
|
|
3131
|
-
{ name: "iconColor", label: "Icon color", type: "color", group: "style", themeDefault: "primary" },
|
|
3132
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
3133
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
|
|
3134
|
-
{ name: "showDivider", label: "Show divider", type: "boolean", group: "style", default: true },
|
|
3135
|
-
{ name: "pressable", label: "Pressable", type: "boolean", group: "behavior", default: true }
|
|
3136
|
-
]
|
|
3137
|
-
},
|
|
3138
|
-
{
|
|
3139
|
-
id: "PricingCardBlock",
|
|
3140
|
-
label: "Pricing Card",
|
|
3141
|
-
description: "Pricing plan card with features list, price, period, and CTA button.",
|
|
3142
|
-
category: "ecommerce",
|
|
3143
|
-
tags: ["pricing", "plan", "card", "subscription", "features"],
|
|
3144
|
-
themeMapping: { bg: "card", text: "foreground", accent: "primary" },
|
|
3145
|
-
components: ["Button", "Badge"],
|
|
3146
|
-
slots: [],
|
|
3147
|
-
props: [
|
|
3148
|
-
{ name: "planName", label: "Plan name", type: "string", group: "content" },
|
|
3149
|
-
{ name: "price", label: "Price", type: "string", group: "content" },
|
|
3150
|
-
{ name: "period", label: "Period", type: "string", group: "content", default: "mo" },
|
|
3151
|
-
{ name: "description", label: "Description", type: "string", group: "content" },
|
|
3152
|
-
{ name: "features", label: "Features", type: "string", group: "content" },
|
|
3153
|
-
{ name: "ctaLabel", label: "CTA label", type: "string", group: "content", default: "Get started" },
|
|
3154
|
-
{ name: "highlighted", label: "Highlighted", type: "boolean", group: "style", default: false },
|
|
3155
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
3156
|
-
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
3157
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
3158
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 5 },
|
|
3159
|
-
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 3 },
|
|
3160
|
-
{ name: "shadow", label: "Shadow", type: "shadow", group: "style", default: "md" }
|
|
3161
|
-
]
|
|
3162
|
-
},
|
|
3163
|
-
{
|
|
3164
|
-
id: "TransactionItemBlock",
|
|
3165
|
-
label: "Transaction Item",
|
|
3166
|
-
description: "Financial transaction row with icon, merchant, amount, date, and status badge.",
|
|
3167
|
-
category: "finance",
|
|
3168
|
-
tags: ["transaction", "finance", "payment", "row", "amount"],
|
|
3169
|
-
themeMapping: { bg: "card", text: "foreground", border: "border", muted: "mutedForeground" },
|
|
3170
|
-
components: [],
|
|
3171
|
-
slots: [],
|
|
3172
|
-
props: [
|
|
3173
|
-
{ name: "merchant", label: "Merchant", type: "string", group: "content" },
|
|
3174
|
-
{ name: "category", label: "Category", type: "string", group: "content" },
|
|
3175
|
-
{ name: "amount", label: "Amount", type: "string", group: "content" },
|
|
3176
|
-
{ name: "date", label: "Date", type: "string", group: "content" },
|
|
3177
|
-
{ name: "type", label: "Type", type: "enum", group: "behavior", default: "debit", options: ["debit", "credit"] },
|
|
3178
|
-
{ name: "status", label: "Status", type: "enum", group: "behavior", default: "completed", options: ["completed", "pending", "failed"] },
|
|
3179
|
-
{ name: "iconName", label: "Icon name", type: "string", group: "content", default: "credit-card" },
|
|
3180
|
-
{ name: "iconColor", label: "Icon color", type: "color", group: "style", themeDefault: "primary" },
|
|
3181
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
3182
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
|
|
3183
|
-
{ name: "showDivider", label: "Show divider", type: "boolean", group: "style", default: true }
|
|
3184
|
-
]
|
|
3185
|
-
},
|
|
3186
|
-
{
|
|
3187
|
-
id: "OnboardingSlideBlock",
|
|
3188
|
-
label: "Onboarding Slide",
|
|
3189
|
-
description: "Single onboarding slide with illustration, title, description, dots, and CTA.",
|
|
3190
|
-
category: "onboarding",
|
|
3191
|
-
tags: ["onboarding", "slide", "intro", "welcome", "tutorial"],
|
|
3192
|
-
themeMapping: { bg: "background", text: "foreground", accent: "primary" },
|
|
3193
|
-
components: ["Button"],
|
|
3194
|
-
slots: [
|
|
3195
|
-
{ name: "illustration", label: "Illustration", required: false, kind: "named" }
|
|
3196
|
-
],
|
|
3197
|
-
props: [
|
|
3198
|
-
{ name: "title", label: "Title", type: "string", group: "content" },
|
|
3199
|
-
{ name: "description", label: "Description", type: "string", group: "content" },
|
|
3200
|
-
{ name: "totalSlides", label: "Total slides", type: "number", group: "behavior", default: 3 },
|
|
3201
|
-
{ name: "currentSlide", label: "Current slide", type: "number", group: "behavior", default: 0 },
|
|
3202
|
-
{ name: "ctaLabel", label: "CTA label", type: "string", group: "content", default: "Get started" },
|
|
3203
|
-
{ name: "skipLabel", label: "Skip label", type: "string", group: "content", default: "Skip" },
|
|
3204
|
-
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
3205
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "background" },
|
|
3206
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 6 }
|
|
3207
|
-
]
|
|
3208
|
-
},
|
|
3209
|
-
{
|
|
3210
|
-
id: "ChatBubbleBlock",
|
|
3211
|
-
label: "Chat Bubble",
|
|
3212
|
-
description: "Chat message bubble with sender/receiver layout, timestamp, and read status.",
|
|
3213
|
-
category: "messaging",
|
|
3214
|
-
tags: ["chat", "message", "bubble", "conversation", "messaging"],
|
|
3215
|
-
themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
|
|
3216
|
-
components: ["Avatar"],
|
|
3217
|
-
slots: [],
|
|
3218
|
-
props: [
|
|
3219
|
-
{ name: "message", label: "Message", type: "string", group: "content" },
|
|
3220
|
-
{ name: "timestamp", label: "Timestamp", type: "string", group: "content" },
|
|
3221
|
-
{ name: "isSent", label: "Is sent", type: "boolean", group: "behavior", default: false },
|
|
3222
|
-
{ name: "isRead", label: "Is read", type: "boolean", group: "behavior", default: false },
|
|
3223
|
-
{ name: "senderName", label: "Sender name", type: "string", group: "content" },
|
|
3224
|
-
{ name: "avatarUrl", label: "Avatar URL", type: "string", group: "content" },
|
|
3225
|
-
{ name: "showAvatar", label: "Show avatar", type: "boolean", group: "behavior", default: true },
|
|
3226
|
-
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
3227
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
3228
|
-
{ name: "maxWidth", label: "Max width", type: "number", group: "layout", default: 280 }
|
|
3229
|
-
]
|
|
3230
|
-
},
|
|
3231
|
-
{
|
|
3232
|
-
id: "CalendarEventBlock",
|
|
3233
|
-
label: "Calendar Event",
|
|
3234
|
-
description: "Event card with date badge, title, time range, location, and attendee count.",
|
|
3235
|
-
category: "calendar",
|
|
3236
|
-
tags: ["calendar", "event", "date", "schedule", "meeting"],
|
|
3237
|
-
themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
|
|
3238
|
-
components: [],
|
|
3239
|
-
slots: [],
|
|
3240
|
-
props: [
|
|
3241
|
-
{ name: "title", label: "Title", type: "string", group: "content" },
|
|
3242
|
-
{ name: "date", label: "Date", type: "string", group: "content" },
|
|
3243
|
-
{ name: "dayNumber", label: "Day number", type: "string", group: "content" },
|
|
3244
|
-
{ name: "month", label: "Month", type: "string", group: "content" },
|
|
3245
|
-
{ name: "startTime", label: "Start time", type: "string", group: "content" },
|
|
3246
|
-
{ name: "endTime", label: "End time", type: "string", group: "content" },
|
|
3247
|
-
{ name: "location", label: "Location", type: "string", group: "content" },
|
|
3248
|
-
{ name: "attendeeCount", label: "Attendee count", type: "number", group: "content" },
|
|
3249
|
-
{ name: "color", label: "Color", type: "color", group: "style", themeDefault: "primary" },
|
|
3250
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
3251
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
3252
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 }
|
|
3253
|
-
]
|
|
3254
|
-
},
|
|
3255
|
-
{
|
|
3256
|
-
id: "FileItemBlock",
|
|
3257
|
-
label: "File Item",
|
|
3258
|
-
description: "File list item with icon, name, size, type badge, and download/delete actions.",
|
|
3259
|
-
category: "files",
|
|
3260
|
-
tags: ["file", "item", "row", "document", "attachment"],
|
|
3261
|
-
themeMapping: { bg: "card", text: "foreground", border: "border", muted: "mutedForeground" },
|
|
3262
|
-
components: [],
|
|
3263
|
-
slots: [],
|
|
3264
|
-
props: [
|
|
3265
|
-
{ name: "name", label: "Name", type: "string", group: "content" },
|
|
3266
|
-
{ name: "size", label: "Size", type: "string", group: "content" },
|
|
3267
|
-
{ name: "type", label: "Type", type: "string", group: "content" },
|
|
3268
|
-
{ name: "updatedAt", label: "Updated at", type: "string", group: "content" },
|
|
3269
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
3270
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
|
|
3271
|
-
{ name: "showDivider", label: "Show divider", type: "boolean", group: "style", default: true },
|
|
3272
|
-
{ name: "pressable", label: "Pressable", type: "boolean", group: "behavior", default: true }
|
|
3273
|
-
]
|
|
3274
|
-
},
|
|
3275
|
-
{
|
|
3276
|
-
id: "ContactCardBlock",
|
|
3277
|
-
label: "Contact Card",
|
|
3278
|
-
description: "Contact card with avatar, name, role, company, and action buttons (call, email, web).",
|
|
3279
|
-
category: "profile",
|
|
3280
|
-
tags: ["contact", "card", "profile", "person", "address-book"],
|
|
3281
|
-
themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
|
|
3282
|
-
components: ["Avatar"],
|
|
3283
|
-
slots: [],
|
|
3284
|
-
props: [
|
|
3285
|
-
{ name: "name", label: "Name", type: "string", group: "content" },
|
|
3286
|
-
{ name: "role", label: "Role", type: "string", group: "content" },
|
|
3287
|
-
{ name: "company", label: "Company", type: "string", group: "content" },
|
|
3288
|
-
{ name: "avatarUrl", label: "Avatar URL", type: "string", group: "content" },
|
|
3289
|
-
{ name: "initials", label: "Initials", type: "string", group: "content" },
|
|
3290
|
-
{ name: "phone", label: "Phone", type: "string", group: "content" },
|
|
3291
|
-
{ name: "email", label: "Email", type: "string", group: "content" },
|
|
3292
|
-
{ name: "website", label: "Website", type: "string", group: "content" },
|
|
3293
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
3294
|
-
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
3295
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
3296
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
|
|
3297
|
-
{ name: "showActions", label: "Show actions", type: "boolean", group: "behavior", default: true }
|
|
3298
|
-
]
|
|
3299
|
-
},
|
|
3300
|
-
{
|
|
3301
|
-
id: "MapPinBlock",
|
|
3302
|
-
label: "Map Pin",
|
|
3303
|
-
description: "Location display card with address, coordinates, and open-in-maps action.",
|
|
3304
|
-
category: "location",
|
|
3305
|
-
tags: ["map", "location", "address", "pin", "geo"],
|
|
3306
|
-
themeMapping: { bg: "card", text: "foreground", accent: "primary", border: "border" },
|
|
3307
|
-
components: [],
|
|
3308
|
-
slots: [],
|
|
3309
|
-
props: [
|
|
3310
|
-
{ name: "address", label: "Address", type: "string", group: "content" },
|
|
3311
|
-
{ name: "city", label: "City", type: "string", group: "content" },
|
|
3312
|
-
{ name: "country", label: "Country", type: "string", group: "content" },
|
|
3313
|
-
{ name: "latitude", label: "Latitude", type: "number", group: "content" },
|
|
3314
|
-
{ name: "longitude", label: "Longitude", type: "number", group: "content" },
|
|
3315
|
-
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
3316
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
3317
|
-
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
3318
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
3319
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
|
|
3320
|
-
{ name: "showCoordinates", label: "Show coordinates", type: "boolean", group: "behavior", default: false },
|
|
3321
|
-
{ name: "showOpenButton", label: "Show open button", type: "boolean", group: "behavior", default: true }
|
|
3322
|
-
]
|
|
3323
|
-
},
|
|
3324
|
-
{
|
|
3325
|
-
id: "PasswordStrengthBlock",
|
|
3326
|
-
label: "Password Strength",
|
|
3327
|
-
description: "Password input with strength meter and requirements checklist.",
|
|
3328
|
-
category: "form",
|
|
3329
|
-
tags: ["password", "strength", "input", "form", "security"],
|
|
3330
|
-
themeMapping: { bg: "input", text: "foreground", border: "border", muted: "mutedForeground" },
|
|
3331
|
-
components: ["TextInput"],
|
|
3332
|
-
slots: [],
|
|
3333
|
-
props: [
|
|
3334
|
-
{ name: "value", label: "Value", type: "string", group: "content" },
|
|
3335
|
-
{ name: "label", label: "Label", type: "string", group: "content", default: "Password" },
|
|
3336
|
-
{ name: "placeholder", label: "Placeholder", type: "string", group: "content", default: "Enter password" },
|
|
3337
|
-
{ name: "showRequirements", label: "Show requirements", type: "boolean", group: "behavior", default: true },
|
|
3338
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" },
|
|
3339
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" }
|
|
3340
|
-
]
|
|
3341
|
-
},
|
|
3342
|
-
{
|
|
3343
|
-
id: "MediaPickerBlock",
|
|
3344
|
-
label: "Media Picker",
|
|
3345
|
-
description: "Image/video picker with preview grid and add button.",
|
|
3346
|
-
category: "media",
|
|
3347
|
-
tags: ["media", "picker", "image", "video", "upload", "gallery"],
|
|
3348
|
-
themeMapping: { bg: "muted", text: "foreground", accent: "primary" },
|
|
3349
|
-
components: [],
|
|
3350
|
-
slots: [],
|
|
3351
|
-
props: [
|
|
3352
|
-
{ name: "items", label: "Items", type: "string", group: "content" },
|
|
3353
|
-
{ name: "maxItems", label: "Max items", type: "number", group: "behavior", default: 9 },
|
|
3354
|
-
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
3355
|
-
{ name: "columns", label: "Columns", type: "number", group: "layout", default: 3 },
|
|
3356
|
-
{ name: "itemSize", label: "Item size", type: "number", group: "layout", default: 100 },
|
|
3357
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "muted" },
|
|
3358
|
-
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" }
|
|
3359
|
-
]
|
|
3360
|
-
},
|
|
3361
|
-
{
|
|
3362
|
-
id: "BannerBlock",
|
|
3363
|
-
label: "Banner",
|
|
3364
|
-
description: "Dismissible info/warning/error/success banner with icon and optional action.",
|
|
3365
|
-
category: "feedback",
|
|
3366
|
-
tags: ["banner", "alert", "info", "warning", "error", "success"],
|
|
3367
|
-
themeMapping: { text: "foreground", border: "border" },
|
|
3368
|
-
components: [],
|
|
3369
|
-
slots: [],
|
|
3370
|
-
props: [
|
|
3371
|
-
{ name: "type", label: "Type", type: "enum", group: "style", default: "info", options: ["info", "success", "warning", "error"] },
|
|
3372
|
-
{ name: "title", label: "Title", type: "string", group: "content" },
|
|
3373
|
-
{ name: "message", label: "Message", type: "string", group: "content" },
|
|
3374
|
-
{ name: "actionLabel", label: "Action label", type: "string", group: "content" },
|
|
3375
|
-
{ name: "dismissible", label: "Dismissible", type: "boolean", group: "behavior", default: true },
|
|
3376
|
-
{ name: "icon", label: "Icon", type: "string", group: "content" },
|
|
3377
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" },
|
|
3378
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 }
|
|
3379
|
-
]
|
|
3380
|
-
},
|
|
3381
|
-
{
|
|
3382
|
-
id: "CommentBlock",
|
|
3383
|
-
label: "Comment",
|
|
3384
|
-
description: "Comment/review item with avatar, author, content, timestamp, and like/reply actions.",
|
|
3385
|
-
category: "social",
|
|
3386
|
-
tags: ["comment", "review", "social", "like", "reply"],
|
|
3387
|
-
themeMapping: { bg: "card", text: "foreground", border: "border", muted: "mutedForeground" },
|
|
3388
|
-
components: ["Avatar"],
|
|
3389
|
-
slots: [],
|
|
3390
|
-
props: [
|
|
3391
|
-
{ name: "author", label: "Author", type: "string", group: "content" },
|
|
3392
|
-
{ name: "avatarUrl", label: "Avatar URL", type: "string", group: "content" },
|
|
3393
|
-
{ name: "initials", label: "Initials", type: "string", group: "content" },
|
|
3394
|
-
{ name: "content", label: "Content", type: "string", group: "content" },
|
|
3395
|
-
{ name: "timestamp", label: "Timestamp", type: "string", group: "content" },
|
|
3396
|
-
{ name: "likeCount", label: "Like count", type: "number", group: "content", default: 0 },
|
|
3397
|
-
{ name: "liked", label: "Liked", type: "boolean", group: "behavior", default: false },
|
|
3398
|
-
{ name: "replyCount", label: "Reply count", type: "number", group: "content", default: 0 },
|
|
3399
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
3400
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
|
|
3401
|
-
{ name: "showDivider", label: "Show divider", type: "boolean", group: "style", default: true }
|
|
3402
|
-
]
|
|
3403
|
-
},
|
|
3404
|
-
{
|
|
3405
|
-
id: "OTPInputBlock",
|
|
3406
|
-
label: "OTP Input",
|
|
3407
|
-
description: "One-time password input with N digit boxes and auto-focus progression.",
|
|
3408
|
-
category: "form",
|
|
3409
|
-
tags: ["otp", "code", "input", "verification", "form"],
|
|
3410
|
-
themeMapping: { bg: "input", text: "foreground", accent: "primary", border: "border" },
|
|
3411
|
-
components: ["TextInput"],
|
|
3412
|
-
slots: [],
|
|
3413
|
-
props: [
|
|
3414
|
-
{ name: "length", label: "Length", type: "number", group: "behavior", default: 6 },
|
|
3415
|
-
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
3416
|
-
{ name: "error", label: "Error", type: "string", group: "content" },
|
|
3417
|
-
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
3418
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
3419
|
-
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
3420
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" }
|
|
3421
|
-
]
|
|
3422
|
-
},
|
|
3423
|
-
{
|
|
3424
|
-
id: "TagInputBlock",
|
|
3425
|
-
label: "Tag Input",
|
|
3426
|
-
description: "Input field that creates removable tags/chips on Enter.",
|
|
3427
|
-
category: "form",
|
|
3428
|
-
tags: ["tag", "chip", "input", "form", "multi-select"],
|
|
3429
|
-
themeMapping: { bg: "input", text: "foreground", accent: "primary", border: "border" },
|
|
3430
|
-
components: ["TextInput"],
|
|
3431
|
-
slots: [],
|
|
3432
|
-
props: [
|
|
3433
|
-
{ name: "tags", label: "Tags", type: "string", group: "content" },
|
|
3434
|
-
{ name: "placeholder", label: "Placeholder", type: "string", group: "content", default: "Add tag..." },
|
|
3435
|
-
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
3436
|
-
{ name: "maxTags", label: "Max tags", type: "number", group: "behavior", default: 10 },
|
|
3437
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" },
|
|
3438
|
-
{ name: "tagColor", label: "Tag color", type: "color", group: "style", themeDefault: "primary" },
|
|
3439
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" }
|
|
3440
|
-
]
|
|
3441
|
-
},
|
|
3442
|
-
{
|
|
3443
|
-
id: "StepperBlock",
|
|
3444
|
-
label: "Stepper",
|
|
3445
|
-
description: "Multi-step progress indicator with labels, descriptions, and active state.",
|
|
3446
|
-
category: "navigation",
|
|
3447
|
-
tags: ["stepper", "steps", "progress", "wizard", "navigation"],
|
|
3448
|
-
themeMapping: { bg: "card", text: "foreground", accent: "primary", border: "border" },
|
|
3449
|
-
components: [],
|
|
3450
|
-
slots: [],
|
|
3451
|
-
props: [
|
|
3452
|
-
{ name: "steps", label: "Steps", type: "string", group: "content" },
|
|
3453
|
-
{ name: "currentStep", label: "Current step", type: "number", group: "behavior", default: 0 },
|
|
3454
|
-
{ name: "orientation", label: "Orientation", type: "enum", group: "layout", default: "horizontal", options: ["horizontal", "vertical"] },
|
|
3455
|
-
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
3456
|
-
{ name: "completedColor", label: "Completed color", type: "color", group: "style", themeDefault: "primary" },
|
|
3457
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
3458
|
-
{ name: "showLabels", label: "Show labels", type: "boolean", group: "behavior", default: true },
|
|
3459
|
-
{ name: "showDescriptions", label: "Show descriptions", type: "boolean", group: "behavior", default: false },
|
|
3460
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] }
|
|
3461
|
-
]
|
|
3462
|
-
},
|
|
3463
|
-
{
|
|
3464
|
-
id: "RatingBlock",
|
|
3465
|
-
label: "Rating",
|
|
3466
|
-
description: "Star rating input or display with configurable max stars and colors.",
|
|
3467
|
-
category: "feedback",
|
|
3468
|
-
tags: ["rating", "stars", "review", "score", "feedback"],
|
|
3469
|
-
themeMapping: { text: "foreground", muted: "mutedForeground" },
|
|
3470
|
-
components: [],
|
|
3471
|
-
slots: [],
|
|
3472
|
-
props: [
|
|
3473
|
-
{ name: "value", label: "Value", type: "number", group: "content", default: 0 },
|
|
3474
|
-
{ name: "maxStars", label: "Max stars", type: "number", group: "behavior", default: 5 },
|
|
3475
|
-
{ name: "readonly", label: "Readonly", type: "boolean", group: "behavior", default: false },
|
|
3476
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
3477
|
-
{ name: "activeColor", label: "Active color", type: "color", group: "style", default: "#f59e0b" },
|
|
3478
|
-
{ name: "inactiveColor", label: "Inactive color", type: "color", group: "style", themeDefault: "muted" },
|
|
3479
|
-
{ name: "showValue", label: "Show value", type: "boolean", group: "behavior", default: false },
|
|
3480
|
-
{ name: "label", label: "Label", type: "string", group: "content" }
|
|
3481
|
-
]
|
|
3482
|
-
},
|
|
3483
|
-
{
|
|
3484
|
-
id: "QuoteBlock",
|
|
3485
|
-
label: "Quote",
|
|
3486
|
-
description: "Stylized quote/testimonial with author, avatar, and accent bar.",
|
|
3487
|
-
category: "content",
|
|
3488
|
-
tags: ["quote", "testimonial", "blockquote", "author", "review"],
|
|
3489
|
-
themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
|
|
3490
|
-
components: ["Avatar"],
|
|
3491
|
-
slots: [],
|
|
3492
|
-
props: [
|
|
3493
|
-
{ name: "quote", label: "Quote", type: "string", group: "content" },
|
|
3494
|
-
{ name: "author", label: "Author", type: "string", group: "content" },
|
|
3495
|
-
{ name: "role", label: "Role", type: "string", group: "content" },
|
|
3496
|
-
{ name: "avatarUrl", label: "Avatar URL", type: "string", group: "content" },
|
|
3497
|
-
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
3498
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
3499
|
-
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
3500
|
-
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
|
|
3501
|
-
{ name: "showQuoteIcon", label: "Show quote icon", type: "boolean", group: "behavior", default: true },
|
|
3502
|
-
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "card", options: ["left-bar", "card", "minimal"] }
|
|
3503
|
-
]
|
|
3504
|
-
},
|
|
3505
|
-
{
|
|
3506
|
-
id: "TimelineBlock",
|
|
3507
|
-
label: "Timeline",
|
|
3508
|
-
description: "Vertical timeline with events, icons, timestamps, and connector lines.",
|
|
3509
|
-
category: "content",
|
|
3510
|
-
tags: ["timeline", "events", "history", "steps", "vertical"],
|
|
3511
|
-
themeMapping: { text: "foreground", accent: "primary", border: "border", muted: "mutedForeground" },
|
|
3512
|
-
components: [],
|
|
3513
|
-
slots: [],
|
|
3514
|
-
props: [
|
|
3515
|
-
{ name: "events", label: "Events", type: "string", group: "content" },
|
|
3516
|
-
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
3517
|
-
{ name: "lineColor", label: "Line color", type: "color", group: "style", themeDefault: "border" },
|
|
3518
|
-
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 3 },
|
|
3519
|
-
{ name: "showConnector", label: "Show connector", type: "boolean", group: "behavior", default: true }
|
|
3520
|
-
]
|
|
3521
|
-
},
|
|
3522
|
-
{
|
|
3523
|
-
id: "CounterBlock",
|
|
3524
|
-
label: "Counter",
|
|
3525
|
-
description: "Number counter with increment/decrement controls, min/max bounds, and step.",
|
|
3526
|
-
category: "form",
|
|
3527
|
-
tags: ["counter", "number", "input", "increment", "decrement"],
|
|
3528
|
-
themeMapping: { bg: "card", text: "foreground", accent: "primary", border: "border" },
|
|
3529
|
-
components: [],
|
|
3530
|
-
slots: [],
|
|
3531
|
-
props: [
|
|
3532
|
-
{ name: "value", label: "Value", type: "number", group: "content", default: 0 },
|
|
3533
|
-
{ name: "min", label: "Min", type: "number", group: "behavior", default: 0 },
|
|
3534
|
-
{ name: "max", label: "Max", type: "number", group: "behavior", default: 100 },
|
|
3535
|
-
{ name: "step", label: "Step", type: "number", group: "behavior", default: 1 },
|
|
3536
|
-
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
3537
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
3538
|
-
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
3539
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
3540
|
-
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false }
|
|
3541
|
-
]
|
|
3542
|
-
},
|
|
3543
|
-
{
|
|
3544
|
-
id: "SegmentedControlBlock",
|
|
3545
|
-
label: "Segmented Control",
|
|
3546
|
-
description: "iOS-style segmented control / tab switcher with customizable colors and sizes.",
|
|
3547
|
-
category: "navigation",
|
|
3548
|
-
tags: ["segmented", "control", "tabs", "switcher", "navigation"],
|
|
3549
|
-
themeMapping: { bg: "muted", text: "foreground", accent: "primary" },
|
|
3550
|
-
components: [],
|
|
3551
|
-
slots: [],
|
|
3552
|
-
props: [
|
|
3553
|
-
{ name: "segments", label: "Segments", type: "string", group: "content" },
|
|
3554
|
-
{ name: "value", label: "Value", type: "string", group: "behavior" },
|
|
3555
|
-
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "muted" },
|
|
3556
|
-
{ name: "activeBackground", label: "Active background", type: "color", group: "style", themeDefault: "card" },
|
|
3557
|
-
{ name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "foreground" },
|
|
3558
|
-
{ name: "inactiveColor", label: "Inactive color", type: "color", group: "style", themeDefault: "mutedForeground" },
|
|
3559
|
-
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
3560
|
-
{ name: "fullWidth", label: "Full width", type: "boolean", group: "layout", default: false }
|
|
3561
|
-
]
|
|
3562
|
-
}
|
|
3563
|
-
];
|
|
3564
|
-
|
|
3565
|
-
// foundation/layout/registry/blocks.ts
|
|
3566
|
-
var blockRegistry = [...existingBlocks, ...newBlocks];
|
|
3567
|
-
function getBlockMeta(id) {
|
|
3568
|
-
return blockRegistry.find((m) => m.id === id);
|
|
3569
|
-
}
|
|
3570
|
-
|
|
3571
|
-
// foundation/layout/registry/primitives.ts
|
|
3572
|
-
function getPrimitiveMeta(id) {
|
|
3573
|
-
return primitiveRegistry.find((m) => m.id === id);
|
|
3574
|
-
}
|
|
3575
|
-
var primitiveRegistry = [
|
|
3576
|
-
{
|
|
3577
|
-
id: "Box",
|
|
3578
|
-
label: "Box",
|
|
3579
|
-
description: "Flexible container with spacing, background, and border support.",
|
|
3580
|
-
category: "primitive",
|
|
3581
|
-
tags: ["box", "container", "view", "div"],
|
|
3582
|
-
slots: [{ name: "children", label: "Content", required: false }],
|
|
3583
|
-
props: [
|
|
3584
|
-
{ name: "flex", label: "Flex", type: "number", group: "layout" },
|
|
3585
|
-
{ name: "bg", label: "Background", type: "color", group: "style" },
|
|
3586
|
-
{ name: "p", label: "Padding", type: "spacing", group: "layout" },
|
|
3587
|
-
{ name: "px", label: "Padding X", type: "spacing", group: "layout" },
|
|
3588
|
-
{ name: "py", label: "Padding Y", type: "spacing", group: "layout" },
|
|
3589
|
-
{ name: "m", label: "Margin", type: "spacing", group: "layout" },
|
|
3590
|
-
{ name: "mx", label: "Margin X", type: "spacing", group: "layout" },
|
|
3591
|
-
{ name: "my", label: "Margin Y", type: "spacing", group: "layout" },
|
|
3592
|
-
{ name: "width", label: "Width", type: "number", group: "layout" },
|
|
3593
|
-
{ name: "height", label: "Height", type: "number", group: "layout" },
|
|
3594
|
-
{ name: "maxWidth", label: "Max Width", type: "number", group: "layout" },
|
|
3595
|
-
{ name: "minHeight", label: "Min Height", type: "number", group: "layout" },
|
|
3596
|
-
{ name: "borderRadius", label: "Border Radius", type: "radius", group: "style" },
|
|
3597
|
-
{ name: "overflow", label: "Overflow", type: "enum", group: "style", options: ["visible", "hidden", "scroll"] },
|
|
3598
|
-
{ name: "justifyContent", label: "Justify", type: "enum", group: "layout", options: ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"] },
|
|
3599
|
-
{ name: "alignItems", label: "Align Items", type: "enum", group: "layout", options: ["stretch", "flex-start", "center", "flex-end", "baseline"] },
|
|
3600
|
-
{ name: "alignSelf", label: "Align Self", type: "enum", group: "layout", options: ["auto", "flex-start", "center", "flex-end", "stretch"] }
|
|
3601
|
-
]
|
|
3602
|
-
},
|
|
3603
|
-
{
|
|
3604
|
-
id: "Stack",
|
|
3605
|
-
label: "Stack",
|
|
3606
|
-
description: "Vertical stack with consistent spacing between children.",
|
|
3607
|
-
category: "primitive",
|
|
3608
|
-
tags: ["stack", "vertical", "column", "vstack"],
|
|
3609
|
-
slots: [{ name: "children", label: "Content", required: false }],
|
|
3610
|
-
props: [
|
|
3611
|
-
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 2 },
|
|
3612
|
-
{ name: "align", label: "Align", type: "enum", group: "layout", options: ["stretch", "flex-start", "center", "flex-end"] },
|
|
3613
|
-
{ name: "bg", label: "Background", type: "color", group: "style" },
|
|
3614
|
-
{ name: "p", label: "Padding", type: "spacing", group: "layout" },
|
|
3615
|
-
{ name: "flex", label: "Flex", type: "number", group: "layout" }
|
|
3616
|
-
]
|
|
3617
|
-
},
|
|
3618
|
-
{
|
|
3619
|
-
id: "Inline",
|
|
3620
|
-
label: "Inline",
|
|
3621
|
-
description: "Horizontal row with spacing and alignment.",
|
|
3622
|
-
category: "primitive",
|
|
3623
|
-
tags: ["inline", "horizontal", "row", "hstack"],
|
|
3624
|
-
slots: [{ name: "children", label: "Content", required: false }],
|
|
3625
|
-
props: [
|
|
3626
|
-
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 2 },
|
|
3627
|
-
{ name: "align", label: "Align", type: "enum", group: "layout", options: ["stretch", "flex-start", "center", "flex-end", "baseline"] },
|
|
3628
|
-
{ name: "justify", label: "Justify", type: "enum", group: "layout", options: ["flex-start", "center", "flex-end", "space-between", "space-around"] },
|
|
3629
|
-
{ name: "wrap", label: "Wrap", type: "boolean", group: "layout", default: false },
|
|
3630
|
-
{ name: "bg", label: "Background", type: "color", group: "style" },
|
|
3631
|
-
{ name: "p", label: "Padding", type: "spacing", group: "layout" },
|
|
3632
|
-
{ name: "flex", label: "Flex", type: "number", group: "layout" },
|
|
3633
|
-
{ name: "fillWidth", label: "Fill Width", type: "boolean", group: "layout", default: false }
|
|
3634
|
-
]
|
|
3635
|
-
},
|
|
3636
|
-
{
|
|
3637
|
-
id: "Center",
|
|
3638
|
-
label: "Center",
|
|
3639
|
-
description: "Centers content both horizontally and vertically.",
|
|
3640
|
-
category: "primitive",
|
|
3641
|
-
tags: ["center", "align", "middle"],
|
|
3642
|
-
slots: [{ name: "children", label: "Content", required: false }],
|
|
3643
|
-
props: [
|
|
3644
|
-
{ name: "flex", label: "Flex", type: "number", group: "layout" },
|
|
3645
|
-
{ name: "bg", label: "Background", type: "color", group: "style" },
|
|
3646
|
-
{ name: "p", label: "Padding", type: "spacing", group: "layout" },
|
|
3647
|
-
{ name: "py", label: "Padding Y", type: "spacing", group: "layout" },
|
|
3648
|
-
{ name: "width", label: "Width", type: "number", group: "layout" },
|
|
3649
|
-
{ name: "height", label: "Height", type: "number", group: "layout" }
|
|
3650
|
-
]
|
|
3651
|
-
},
|
|
3652
|
-
{
|
|
3653
|
-
id: "Scroll",
|
|
3654
|
-
label: "Scroll",
|
|
3655
|
-
description: "Scrollable container.",
|
|
3656
|
-
category: "primitive",
|
|
3657
|
-
tags: ["scroll", "scrollview", "overflow"],
|
|
3658
|
-
slots: [{ name: "children", label: "Content", required: false }],
|
|
3659
|
-
props: [
|
|
3660
|
-
{ name: "horizontal", label: "Horizontal", type: "boolean", group: "layout", default: false },
|
|
3661
|
-
{ name: "showsScrollIndicator", label: "Show Indicator", type: "boolean", group: "behavior", default: true },
|
|
3662
|
-
{ name: "bg", label: "Background", type: "color", group: "style" },
|
|
3663
|
-
{ name: "p", label: "Padding", type: "spacing", group: "layout" },
|
|
3664
|
-
{ name: "flex", label: "Flex", type: "number", group: "layout" }
|
|
3665
|
-
]
|
|
3666
|
-
},
|
|
3667
|
-
{
|
|
3668
|
-
id: "Divider",
|
|
3669
|
-
label: "Divider",
|
|
3670
|
-
description: "Horizontal or vertical divider line.",
|
|
3671
|
-
category: "primitive",
|
|
3672
|
-
tags: ["divider", "separator", "line", "hr"],
|
|
3673
|
-
props: [
|
|
3674
|
-
{ name: "vertical", label: "Vertical", type: "boolean", group: "layout", default: false },
|
|
3675
|
-
{ name: "color", label: "Color", type: "color", group: "style" },
|
|
3676
|
-
{ name: "thickness", label: "Thickness", type: "number", group: "style", default: 1 },
|
|
3677
|
-
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout" }
|
|
3678
|
-
]
|
|
3679
|
-
}
|
|
3680
|
-
];
|
|
3681
366
|
var META = getComponentMeta("Button");
|
|
3682
367
|
var SIZE_MAP = {
|
|
3683
368
|
sm: { height: 32, px: 12, fontSize: 13, gap: 6 },
|
|
3684
369
|
md: { height: 40, px: 16, fontSize: 15, gap: 8 },
|
|
3685
370
|
lg: { height: 48, px: 20, fontSize: 17, gap: 10 }
|
|
3686
371
|
};
|
|
3687
|
-
var Button =
|
|
372
|
+
var Button = React.forwardRef((rawProps, ref) => {
|
|
3688
373
|
const { theme } = useTheme();
|
|
3689
374
|
const {
|
|
3690
375
|
label,
|
|
@@ -3785,7 +470,7 @@ var SIZE_MAP2 = {
|
|
|
3785
470
|
md: { height: 40, fontSize: 15, px: 12, labelSize: 13 },
|
|
3786
471
|
lg: { height: 48, fontSize: 17, px: 14, labelSize: 14 }
|
|
3787
472
|
};
|
|
3788
|
-
var TextInput =
|
|
473
|
+
var TextInput = React.forwardRef((rawProps, ref) => {
|
|
3789
474
|
const { theme } = useTheme();
|
|
3790
475
|
const merged = applyDefaults(rawProps, META2, theme);
|
|
3791
476
|
const {
|
|
@@ -3873,7 +558,7 @@ var SIZE_MAP3 = {
|
|
|
3873
558
|
md: { fontSize: 15, px: 12, labelSize: 13 },
|
|
3874
559
|
lg: { fontSize: 17, px: 14, labelSize: 14 }
|
|
3875
560
|
};
|
|
3876
|
-
var TextArea =
|
|
561
|
+
var TextArea = React.forwardRef((rawProps, ref) => {
|
|
3877
562
|
const { theme } = useTheme();
|
|
3878
563
|
const {
|
|
3879
564
|
label,
|
|
@@ -4064,7 +749,7 @@ var Icon = ({
|
|
|
4064
749
|
};
|
|
4065
750
|
var Icon_default = Icon;
|
|
4066
751
|
var SIZE_PX2 = { sm: 32, md: 40, lg: 48 };
|
|
4067
|
-
var IconButton =
|
|
752
|
+
var IconButton = React.forwardRef(({
|
|
4068
753
|
icon,
|
|
4069
754
|
variant = "ghost",
|
|
4070
755
|
size = "md",
|
|
@@ -4256,7 +941,7 @@ var Separator = ({
|
|
|
4256
941
|
};
|
|
4257
942
|
var Separator_default = Separator;
|
|
4258
943
|
var SIZE_PX4 = { sm: 16, md: 20 };
|
|
4259
|
-
var Checkbox =
|
|
944
|
+
var Checkbox = React.forwardRef(({
|
|
4260
945
|
label,
|
|
4261
946
|
variant = "square",
|
|
4262
947
|
size = "md",
|
|
@@ -4312,7 +997,7 @@ var Checkbox = React2.forwardRef(({
|
|
|
4312
997
|
});
|
|
4313
998
|
Checkbox.displayName = "Checkbox";
|
|
4314
999
|
var Checkbox_default = Checkbox;
|
|
4315
|
-
var Switch =
|
|
1000
|
+
var Switch = React.forwardRef(({
|
|
4316
1001
|
label,
|
|
4317
1002
|
size = "md",
|
|
4318
1003
|
activeColor,
|
|
@@ -4446,7 +1131,7 @@ var SIZE_MAP4 = {
|
|
|
4446
1131
|
md: { height: 40, fontSize: 15, px: 12 },
|
|
4447
1132
|
lg: { height: 48, fontSize: 17, px: 14 }
|
|
4448
1133
|
};
|
|
4449
|
-
var Select =
|
|
1134
|
+
var Select = React.forwardRef((rawProps, ref) => {
|
|
4450
1135
|
const { theme } = useTheme();
|
|
4451
1136
|
const {
|
|
4452
1137
|
label,
|
|
@@ -4497,7 +1182,7 @@ var Select = React2.forwardRef((rawProps, ref) => {
|
|
|
4497
1182
|
});
|
|
4498
1183
|
Select.displayName = "Select";
|
|
4499
1184
|
var Select_default = Select;
|
|
4500
|
-
var Slider =
|
|
1185
|
+
var Slider = React.forwardRef(({
|
|
4501
1186
|
label,
|
|
4502
1187
|
min = 0,
|
|
4503
1188
|
max = 100,
|
|
@@ -4751,7 +1436,7 @@ var Tabs = ({
|
|
|
4751
1436
|
var Tabs_default = Tabs;
|
|
4752
1437
|
var AccordionSingle = ({ title, children, defaultOpen = false, background, borderRadius = "lg", borderColor, style }) => {
|
|
4753
1438
|
const { theme } = useTheme();
|
|
4754
|
-
const [open, setOpen] =
|
|
1439
|
+
const [open, setOpen] = React.useState(defaultOpen);
|
|
4755
1440
|
const radius = radii[borderRadius];
|
|
4756
1441
|
const bg = background ?? theme.card;
|
|
4757
1442
|
const bc = borderColor ?? theme.border;
|
|
@@ -5616,93 +2301,6 @@ var ResponsiveLayout = (rawProps) => {
|
|
|
5616
2301
|
};
|
|
5617
2302
|
var ResponsiveLayout_default = ResponsiveLayout;
|
|
5618
2303
|
|
|
5619
|
-
|
|
5620
|
-
function defineConfig(config) {
|
|
5621
|
-
return config;
|
|
5622
|
-
}
|
|
5623
|
-
|
|
5624
|
-
// foundation/config/resolve.ts
|
|
5625
|
-
function resolveConfig(userConfig) {
|
|
5626
|
-
const tokens = resolveTokens(userConfig?.tokens);
|
|
5627
|
-
const themes = resolveThemes(userConfig?.themes);
|
|
5628
|
-
const defaultTheme = userConfig?.defaultTheme || "light";
|
|
5629
|
-
return { tokens, themes, defaultTheme };
|
|
5630
|
-
}
|
|
5631
|
-
function resolveTokens(overrides) {
|
|
5632
|
-
return {
|
|
5633
|
-
spacing: overrides?.spacing ? { ...spacing, ...overrides.spacing } : { ...spacing },
|
|
5634
|
-
breakpoints: overrides?.breakpoints ? { ...breakpoints, ...overrides.breakpoints } : { ...breakpoints },
|
|
5635
|
-
radii: overrides?.radii ? { ...radii, ...overrides.radii } : { ...radii },
|
|
5636
|
-
shadows: overrides?.shadows ? { ...shadows, ...overrides.shadows } : { ...shadows },
|
|
5637
|
-
colors: overrides?.colors ? deepMerge({ ...colors }, overrides.colors) : { ...colors },
|
|
5638
|
-
fontSizes: overrides?.fontSizes ? { ...fontSizes, ...overrides.fontSizes } : { ...fontSizes },
|
|
5639
|
-
fontWeights: overrides?.fontWeights ? { ...fontWeights, ...overrides.fontWeights } : { ...fontWeights },
|
|
5640
|
-
lineHeights: overrides?.lineHeights ? { ...lineHeights, ...overrides.lineHeights } : { ...lineHeights },
|
|
5641
|
-
durations: overrides?.durations ? { ...durations, ...overrides.durations } : { ...durations },
|
|
5642
|
-
opacity: overrides?.opacity ? { ...opacity, ...overrides.opacity } : { ...opacity },
|
|
5643
|
-
zIndices: overrides?.zIndices ? { ...zIndices, ...overrides.zIndices } : { ...zIndices }
|
|
5644
|
-
};
|
|
5645
|
-
}
|
|
5646
|
-
function resolveThemes(userThemes) {
|
|
5647
|
-
const themes = {};
|
|
5648
|
-
if (!userThemes) return themes;
|
|
5649
|
-
for (const [name, def] of Object.entries(userThemes)) {
|
|
5650
|
-
themes[name] = createTheme({
|
|
5651
|
-
...def.colors,
|
|
5652
|
-
gradients: def.gradients ? {
|
|
5653
|
-
primary: [],
|
|
5654
|
-
secondary: [],
|
|
5655
|
-
success: [],
|
|
5656
|
-
warning: [],
|
|
5657
|
-
error: [],
|
|
5658
|
-
info: [],
|
|
5659
|
-
subtle: [],
|
|
5660
|
-
vibrant: [],
|
|
5661
|
-
...def.gradients
|
|
5662
|
-
} : void 0
|
|
5663
|
-
});
|
|
5664
|
-
}
|
|
5665
|
-
return themes;
|
|
5666
|
-
}
|
|
5667
|
-
function deepMerge(target, source) {
|
|
5668
|
-
for (const key of Object.keys(source)) {
|
|
5669
|
-
if (typeof source[key] === "object" && source[key] !== null && !Array.isArray(source[key]) && typeof target[key] === "object" && target[key] !== null && !Array.isArray(target[key])) {
|
|
5670
|
-
target[key] = deepMerge(
|
|
5671
|
-
{ ...target[key] },
|
|
5672
|
-
source[key]
|
|
5673
|
-
);
|
|
5674
|
-
} else {
|
|
5675
|
-
target[key] = source[key];
|
|
5676
|
-
}
|
|
5677
|
-
}
|
|
5678
|
-
return target;
|
|
5679
|
-
}
|
|
5680
|
-
var ConfigContext = createContext(null);
|
|
5681
|
-
function useFoundationConfig() {
|
|
5682
|
-
const ctx = useContext(ConfigContext);
|
|
5683
|
-
if (!ctx) {
|
|
5684
|
-
throw new Error("useFoundationConfig must be used within FoundationProvider");
|
|
5685
|
-
}
|
|
5686
|
-
return ctx;
|
|
5687
|
-
}
|
|
5688
|
-
function useTokens() {
|
|
5689
|
-
return useFoundationConfig().tokens;
|
|
5690
|
-
}
|
|
5691
|
-
var FoundationProvider = ({
|
|
5692
|
-
children,
|
|
5693
|
-
config
|
|
5694
|
-
}) => {
|
|
5695
|
-
const resolved = useMemo(() => resolveConfig(config), [config]);
|
|
5696
|
-
return /* @__PURE__ */ jsx(ConfigContext.Provider, { value: resolved, children: /* @__PURE__ */ jsx(
|
|
5697
|
-
ThemeProvider,
|
|
5698
|
-
{
|
|
5699
|
-
defaultTheme: resolved.defaultTheme,
|
|
5700
|
-
customThemes: resolved.themes,
|
|
5701
|
-
children
|
|
5702
|
-
}
|
|
5703
|
-
) });
|
|
5704
|
-
};
|
|
5705
|
-
|
|
5706
|
-
export { Accordion_default as Accordion, AuthLayout_default as AuthLayout, Avatar_default as Avatar, Badge_default as Badge, Box_default as Box, Button_default as Button, Center_default as Center, CenteredLayout_default as CenteredLayout, Checkbox_default as Checkbox, Chip_default as Chip, DashboardLayout_default as DashboardLayout, Divider_default as Divider, FilePicker_default as FilePicker, FlexLayout_default as FlexLayout, FooterLayout_default as FooterLayout, FoundationProvider, GridLayout_default as GridLayout, Icon_default as Icon, IconButton_default as IconButton, Inline_default as Inline, ProgressBar_default as ProgressBar, RadioGroup_default as RadioGroup, ResponsiveLayout_default as ResponsiveLayout, RootLayout_default as RootLayout, Scroll_default as Scroll, Select_default as Select, Separator_default as Separator, SidebarLayout_default as SidebarLayout, Slider_default as Slider, Spinner_default as Spinner, SplitLayout_default as SplitLayout, Stack_default as Stack, Switch_default as Switch, Tabs_default as Tabs, Text_default as Text, TextArea_default as TextArea, TextInput_default as TextInput, ThemeProvider, applyDefaults, applyVariant, autumnTheme, blockRegistry, breakpoints, christmasTheme, colors, componentRegistry, createTheme, darkTheme, defineConfig, durations, easings, extractDefaults, fontSizes, fontWeights, getBlockMeta, getComponentMeta, getConstants, getLayoutMeta, getPrimitiveMeta, halloweenTheme, layoutRegistry, letterSpacings, lightTheme, lineHeights, neonTheme, opacity, primitiveRegistry, radii, resolveConfig, resolveThemeDefaults, shadows, spacing, springTheme, summerTheme, useColorScheme, useFoundationConfig, useTheme, useTokens, winterTheme, zIndices };
|
|
2304
|
+
export { Accordion_default as Accordion, AuthLayout_default as AuthLayout, Avatar_default as Avatar, Badge_default as Badge, Box_default as Box, Button_default as Button, Center_default as Center, CenteredLayout_default as CenteredLayout, Checkbox_default as Checkbox, Chip_default as Chip, DashboardLayout_default as DashboardLayout, Divider_default as Divider, FilePicker_default as FilePicker, FlexLayout_default as FlexLayout, FooterLayout_default as FooterLayout, GridLayout_default as GridLayout, Icon_default as Icon, IconButton_default as IconButton, Inline_default as Inline, ProgressBar_default as ProgressBar, RadioGroup_default as RadioGroup, ResponsiveLayout_default as ResponsiveLayout, RootLayout_default as RootLayout, Scroll_default as Scroll, Select_default as Select, Separator_default as Separator, SidebarLayout_default as SidebarLayout, Slider_default as Slider, Spinner_default as Spinner, SplitLayout_default as SplitLayout, Stack_default as Stack, Switch_default as Switch, Tabs_default as Tabs, Text_default as Text, TextArea_default as TextArea, TextInput_default as TextInput };
|
|
5707
2305
|
//# sourceMappingURL=index.mjs.map
|
|
5708
2306
|
//# sourceMappingURL=index.mjs.map
|