@flipova/foundation 1.8.0 → 1.9.0

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