@flipova/foundation 1.9.0 → 1.10.1

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 (135) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +64 -1
  3. package/dist/{chunk-3PYMFFVP.mjs → chunk-32VWREEH.mjs} +2289 -7
  4. package/dist/chunk-32VWREEH.mjs.map +1 -0
  5. package/dist/{chunk-5ZDSYOFL.js → chunk-3RJREGCN.js} +2604 -309
  6. package/dist/chunk-3RJREGCN.js.map +1 -0
  7. package/dist/{chunk-MWRMHYW2.js → chunk-D4QJYQOK.js} +17 -17
  8. package/dist/{chunk-MWRMHYW2.js.map → chunk-D4QJYQOK.js.map} +1 -1
  9. package/dist/{chunk-GZPFYWMA.mjs → chunk-IKVONTJC.mjs} +10 -3
  10. package/dist/chunk-IKVONTJC.mjs.map +1 -0
  11. package/dist/{chunk-RRZSROIT.mjs → chunk-RRV2Q4SS.mjs} +3 -3
  12. package/dist/{chunk-RRZSROIT.mjs.map → chunk-RRV2Q4SS.mjs.map} +1 -1
  13. package/dist/chunk-RUZBEFDO.js +669 -0
  14. package/dist/{chunk-T7V6TILB.js.map → chunk-RUZBEFDO.js.map} +1 -1
  15. package/dist/{chunk-45NSZH5Z.js → chunk-UBZMVSIN.js} +10 -2
  16. package/dist/chunk-UBZMVSIN.js.map +1 -0
  17. package/dist/{chunk-SYHGZT2M.mjs → chunk-YTD4AWV2.mjs} +4 -4
  18. package/dist/{chunk-SYHGZT2M.mjs.map → chunk-YTD4AWV2.mjs.map} +1 -1
  19. package/dist/config/index.js +6 -6
  20. package/dist/config/index.mjs +1 -1
  21. package/dist/index.d.mts +1 -2
  22. package/dist/index.d.ts +1 -2
  23. package/dist/index.js +200 -201
  24. package/dist/index.mjs +4 -5
  25. package/dist/layout/index.d.mts +192 -3
  26. package/dist/layout/index.d.ts +192 -3
  27. package/dist/layout/index.js +159 -160
  28. package/dist/layout/index.mjs +1 -2
  29. package/dist/studio-v2/cli/index.js +96 -0
  30. package/dist/theme/index.js +14 -14
  31. package/dist/theme/index.mjs +1 -1
  32. package/dist/tokens/index.js +14 -14
  33. package/dist/tokens/index.mjs +1 -1
  34. package/dist/web/index.js +3639 -363
  35. package/dist/web/index.js.map +1 -1
  36. package/dist/web/index.mjs +3463 -61
  37. package/dist/web/index.mjs.map +1 -1
  38. package/package.json +15 -8
  39. package/studio-v2/apps/web/CHANGELOG.md +7 -0
  40. package/studio-v2/apps/web/LICENSE +21 -0
  41. package/studio-v2/apps/web/README.md +56 -0
  42. package/studio-v2/apps/web/dist/+not-found.html +793 -0
  43. package/studio-v2/apps/web/dist/_expo/.routes.json +3 -0
  44. package/studio-v2/apps/web/dist/_expo/static/css/global-a4717de456877faacb88ee482aa99653.css +1 -0
  45. package/{studio/app/dist/_expo/static/js/web/entry-77f601f6b9353e7b6e3b18cdbe63ac99.js → studio-v2/apps/web/dist/_expo/static/js/web/entry-5d96588cc8f2ee5c00754cef9ac6481d.js} +3707 -17257
  46. package/studio-v2/apps/web/dist/_expo/static/js/web/index-470f33f64d8c4f7b8d8da2632b2959c2.js +4 -0
  47. package/{studio/app/dist/_expo/static/js/web/index-ac88f7a39991e452f0b4323da9aa4367.js → studio-v2/apps/web/dist/_expo/static/js/web/index-f7fcd21ae9d8dacf4c88ea5796614af0.js} +3 -3
  48. package/studio-v2/apps/web/dist/_sitemap.html +793 -0
  49. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/drawer/lib/module/views/assets/toggle-drawer-icon.ae74bb20586a731af545e6b00fe14a09.png +0 -0
  50. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png +0 -0
  51. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png +0 -0
  52. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png +0 -0
  53. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png +0 -0
  54. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png +0 -0
  55. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png +0 -0
  56. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png +0 -0
  57. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png +0 -0
  58. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png +0 -0
  59. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png +0 -0
  60. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png +0 -0
  61. package/studio-v2/apps/web/dist/index.html +793 -0
  62. package/dist/chunk-3PYMFFVP.mjs.map +0 -1
  63. package/dist/chunk-45NSZH5Z.js.map +0 -1
  64. package/dist/chunk-4QTEZKXE.mjs +0 -2287
  65. package/dist/chunk-4QTEZKXE.mjs.map +0 -1
  66. package/dist/chunk-5ZDSYOFL.js.map +0 -1
  67. package/dist/chunk-BJTO5JO5.mjs +0 -10
  68. package/dist/chunk-BJTO5JO5.mjs.map +0 -1
  69. package/dist/chunk-DGUM43GV.js +0 -12
  70. package/dist/chunk-DGUM43GV.js.map +0 -1
  71. package/dist/chunk-ECBM426M.mjs +0 -2647
  72. package/dist/chunk-ECBM426M.mjs.map +0 -1
  73. package/dist/chunk-EIWDEXBO.js +0 -2690
  74. package/dist/chunk-EIWDEXBO.js.map +0 -1
  75. package/dist/chunk-FLEEJX7L.js +0 -2301
  76. package/dist/chunk-FLEEJX7L.js.map +0 -1
  77. package/dist/chunk-GZPFYWMA.mjs.map +0 -1
  78. package/dist/chunk-T7V6TILB.js +0 -669
  79. package/dist/primitives-DVX2q5St.d.mts +0 -195
  80. package/dist/primitives-nj-4at-g.d.ts +0 -195
  81. package/dist/studio/cli/index.d.mts +0 -1
  82. package/dist/studio/cli/index.d.ts +0 -1
  83. package/dist/studio/cli/index.js +0 -42
  84. package/dist/studio/cli/index.js.map +0 -1
  85. package/dist/studio/cli/index.mjs +0 -35
  86. package/dist/studio/cli/index.mjs.map +0 -1
  87. package/dist/studio/index.d.mts +0 -441
  88. package/dist/studio/index.d.ts +0 -441
  89. package/dist/studio/index.js +0 -84
  90. package/dist/studio/index.js.map +0 -1
  91. package/dist/studio/index.mjs +0 -3
  92. package/dist/studio/index.mjs.map +0 -1
  93. package/dist/web/index.d.mts +0 -778
  94. package/dist/web/index.d.ts +0 -778
  95. package/studio/README.md +0 -154
  96. package/studio/app/dist/_expo/static/js/web/index-9587ee2e3c02826ac2da47e86fefe882.js +0 -4
  97. package/studio/app/dist/index.html +0 -37
  98. package/studio/app/dist/metadata.json +0 -1
  99. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/AntDesign.3f78af31cca60105799838a1a7a59fbd.ttf +0 -0
  100. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Entypo.31b5ffea3daddc69dd01a1f3d6cf63c5.ttf +0 -0
  101. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/EvilIcons.140c53a7643ea949007aa9a282153849.ttf +0 -0
  102. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Feather.ca4b48e04dc1ce10bfbddb262c8b835f.ttf +0 -0
  103. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome.b06871f281fee6b241d60582ae9369b9.ttf +0 -0
  104. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Brands.3b89dd103490708d19a95adcae52210e.ttf +0 -0
  105. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Regular.1f77739ca9ff2188b539c36f30ffa2be.ttf +0 -0
  106. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Solid.605ed7926cf39a2ad5ec2d1f9d391d3d.ttf +0 -0
  107. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Brands.56c8d80832e37783f12c05db7c8849e2.ttf +0 -0
  108. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Regular.370dd5af19f8364907b6e2c41f45dbbf.ttf +0 -0
  109. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Solid.adec7d6f310bc577f05e8fe06a5daccf.ttf +0 -0
  110. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Fontisto.b49ae8ab2dbccb02c4d11caaacf09eab.ttf +0 -0
  111. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Foundation.e20945d7c929279ef7a6f1db184a4470.ttf +0 -0
  112. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Ionicons.b4eb097d35f44ed943676fd56f6bdc51.ttf +0 -0
  113. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialCommunityIcons.6e435534bd35da5fef04168860a9b8fa.ttf +0 -0
  114. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialIcons.4e85bc9ebe07e0340c9c4fc2f6c38908.ttf +0 -0
  115. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Octicons.871378c6eab492a3e689a9385dc45a12.ttf +0 -0
  116. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/SimpleLineIcons.d2285965fe34b05465047401b8595dd0.ttf +0 -0
  117. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Zocial.1681f34aaca71b8dfb70756bca331eb2.ttf +0 -0
  118. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png +0 -0
  119. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png +0 -0
  120. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png +0 -0
  121. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png +0 -0
  122. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png +0 -0
  123. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png +0 -0
  124. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png +0 -0
  125. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png +0 -0
  126. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png +0 -0
  127. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png +0 -0
  128. /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png +0 -0
  129. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/arrow_down.017bc6ba3fc25503e5eb5e53826d48a8.png +0 -0
  130. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/error.d1ea1496f9057eb392d5bbf3732a61b7.png +0 -0
  131. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/file.19eeb73b9593a38f8e9f418337fc7d10.png +0 -0
  132. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/forward.d8b800c443b8972542883e0b9de2bdc6.png +0 -0
  133. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/pkg.ab19f4cbc543357183a20571f68380a3.png +0 -0
  134. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/sitemap.412dd9275b6b48ad28f5e3d81bb1f626.png +0 -0
  135. /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/unmatched.20e71bdf79e3a97bf55fd9e164041578.png +0 -0
package/dist/web/index.js CHANGED
@@ -1,10 +1,7 @@
1
1
  'use strict';
2
2
 
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');
3
+ var React2 = require('react');
4
+ var reactNative = require('react-native');
8
5
  var jsxRuntime = require('react/jsx-runtime');
9
6
  var LucideIcons = require('lucide-react');
10
7
  var RadixTabs = require('@radix-ui/react-tabs');
@@ -29,10 +26,1047 @@ function _interopNamespace(e) {
29
26
  return Object.freeze(n);
30
27
  }
31
28
 
32
- var React__default = /*#__PURE__*/_interopDefault(React);
29
+ var React2__default = /*#__PURE__*/_interopDefault(React2);
33
30
  var LucideIcons__namespace = /*#__PURE__*/_interopNamespace(LucideIcons);
34
31
  var RadixTabs__namespace = /*#__PURE__*/_interopNamespace(RadixTabs);
35
32
 
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
36
1070
  var GRADIENT_ANGLES = {
37
1071
  toTop: "to top",
38
1072
  toBottom: "to bottom",
@@ -53,7 +1087,7 @@ function rnShadowToCss(s) {
53
1087
  const opacity2 = s.shadowOpacity ?? 0.2;
54
1088
  return `${ox}px ${oy}px ${blur * 2}px rgba(0,0,0,${opacity2})`;
55
1089
  }
56
- var Box = React__default.default.forwardRef(({
1090
+ var Box = React2__default.default.forwardRef(({
57
1091
  // Padding
58
1092
  p,
59
1093
  pt,
@@ -117,8 +1151,8 @@ var Box = React__default.default.forwardRef(({
117
1151
  children,
118
1152
  ...rest
119
1153
  }, ref) => {
120
- const { theme: currentTheme } = chunkT7V6TILB_js.useTheme(themeProp);
121
- const computedStyle = React.useMemo(() => {
1154
+ const { theme: currentTheme } = useTheme(themeProp);
1155
+ const computedStyle = React2.useMemo(() => {
122
1156
  let backgroundImage;
123
1157
  let backgroundColor;
124
1158
  if (gradient) {
@@ -129,9 +1163,9 @@ var Box = React__default.default.forwardRef(({
129
1163
  }
130
1164
  let boxShadow;
131
1165
  if (shadow) {
132
- boxShadow = rnShadowToCss(chunk45NSZH5Z_js.shadows[shadow]);
1166
+ boxShadow = rnShadowToCss(shadows[shadow]);
133
1167
  }
134
- const sp = (token) => token != null ? chunk45NSZH5Z_js.spacing[token] : void 0;
1168
+ const sp = (token) => token != null ? spacing[token] : void 0;
135
1169
  const resolved = {
136
1170
  // Padding
137
1171
  padding: sp(p) != null && !px && !py && !pt && !pr && !pb && !pl ? sp(p) : void 0,
@@ -149,26 +1183,26 @@ var Box = React__default.default.forwardRef(({
149
1183
  backgroundColor,
150
1184
  backgroundImage,
151
1185
  // Border radius
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,
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,
157
1191
  // Shadow
158
1192
  boxShadow,
159
- // Flex
160
- display: flex != null || flexDirection || alignItems || justifyContent || flexGrow != null ? "flex" : void 0,
1193
+ // Flex (RN View Defaults)
1194
+ display: "flex",
1195
+ flexDirection: flexDirection ?? "column",
1196
+ alignItems: alignItems ?? "stretch",
1197
+ justifyContent: justifyContent ?? "flex-start",
161
1198
  flex,
162
1199
  flexGrow,
163
1200
  flexShrink,
164
1201
  flexBasis,
165
- flexDirection,
166
- alignItems,
167
1202
  alignSelf,
168
- justifyContent,
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,
1203
+ gap: gap != null ? spacing[gap] : void 0,
1204
+ rowGap: rowGap != null ? spacing[rowGap] : void 0,
1205
+ columnGap: columnGap != null ? spacing[columnGap] : void 0,
172
1206
  flexWrap,
173
1207
  // Dimensions
174
1208
  width,
@@ -245,11 +1279,11 @@ var Box = React__default.default.forwardRef(({
245
1279
  zIndex,
246
1280
  style
247
1281
  ]);
248
- return React__default.default.createElement(Tag, { ref, style: computedStyle, ...rest }, children);
1282
+ return React2__default.default.createElement(Tag, { ref, style: computedStyle, ...rest }, children);
249
1283
  });
250
1284
  Box.displayName = "Box";
251
1285
  var Box_default = Box;
252
- var Stack = React__default.default.forwardRef(({
1286
+ var Stack = React2__default.default.forwardRef(({
253
1287
  spacing: spacingToken = 0,
254
1288
  align = "stretch",
255
1289
  justify = "flex-start",
@@ -278,7 +1312,7 @@ var Stack = React__default.default.forwardRef(({
278
1312
  });
279
1313
  Stack.displayName = "Stack";
280
1314
  var Stack_default = Stack;
281
- var Inline = React__default.default.forwardRef(({
1315
+ var Inline = React2__default.default.forwardRef(({
282
1316
  spacing: spacingToken = 0,
283
1317
  align = "center",
284
1318
  justify = "flex-start",
@@ -305,7 +1339,7 @@ var Inline = React__default.default.forwardRef(({
305
1339
  });
306
1340
  Inline.displayName = "Inline";
307
1341
  var Inline_default = Inline;
308
- var Center = React__default.default.forwardRef(({
1342
+ var Center = React2__default.default.forwardRef(({
309
1343
  horizontal = true,
310
1344
  vertical = true,
311
1345
  children,
@@ -330,7 +1364,7 @@ var scrollbarHideStyle = {
330
1364
  scrollbarWidth: "none",
331
1365
  msOverflowStyle: "none"
332
1366
  };
333
- var Scroll = React__default.default.forwardRef(({
1367
+ var Scroll = React2__default.default.forwardRef(({
334
1368
  direction = "vertical",
335
1369
  hideScrollbar = false,
336
1370
  children,
@@ -365,9 +1399,9 @@ var Divider = ({
365
1399
  className,
366
1400
  style
367
1401
  }) => {
368
- const { theme } = chunkT7V6TILB_js.useTheme();
1402
+ const { theme } = useTheme();
369
1403
  const resolvedColor = color ?? theme.border;
370
- const margin = spacingToken != null ? chunk45NSZH5Z_js.spacing[spacingToken] : void 0;
1404
+ const margin = spacingToken != null ? spacing[spacingToken] : void 0;
371
1405
  const baseStyle = orientation === "horizontal" ? {
372
1406
  width: "100%",
373
1407
  height: thickness,
@@ -386,14 +1420,2298 @@ var Divider = ({
386
1420
  return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "separator", "aria-orientation": orientation, className, style: { ...baseStyle, ...style } });
387
1421
  };
388
1422
  var Divider_default = Divider;
389
- var META = chunkFLEEJX7L_js.getComponentMeta("Button");
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");
390
3708
  var SIZE_MAP = {
391
3709
  sm: { height: 32, px: 12, fontSize: 13, gap: 6 },
392
3710
  md: { height: 40, px: 16, fontSize: 15, gap: 8 },
393
3711
  lg: { height: 48, px: 20, fontSize: 17, gap: 10 }
394
3712
  };
395
- var Button = React__default.default.forwardRef((rawProps, ref) => {
396
- const { theme } = chunkT7V6TILB_js.useTheme();
3713
+ var Button = React2__default.default.forwardRef((rawProps, ref) => {
3714
+ const { theme } = useTheme();
397
3715
  const {
398
3716
  label,
399
3717
  icon,
@@ -409,10 +3727,10 @@ var Button = React__default.default.forwardRef((rawProps, ref) => {
409
3727
  children,
410
3728
  style,
411
3729
  ...rest
412
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META, theme);
3730
+ } = applyDefaults(rawProps, META, theme);
413
3731
  const sizeConfig = SIZE_MAP[size] ?? SIZE_MAP.md;
414
- const radius = borderRadius ? chunk45NSZH5Z_js.radii[borderRadius] : chunk45NSZH5Z_js.radii.md;
415
- const colors2 = React.useMemo(() => {
3732
+ const radius = borderRadius ? radii[borderRadius] : radii.md;
3733
+ const colors2 = React2.useMemo(() => {
416
3734
  switch (variant) {
417
3735
  case "secondary":
418
3736
  return { bg: theme.secondary, text: theme.secondaryForeground, border: "none" };
@@ -487,15 +3805,15 @@ var Button = React__default.default.forwardRef((rawProps, ref) => {
487
3805
  });
488
3806
  Button.displayName = "Button";
489
3807
  var Button_default = Button;
490
- var META2 = chunkFLEEJX7L_js.getComponentMeta("TextInput");
3808
+ var META2 = getComponentMeta("TextInput");
491
3809
  var SIZE_MAP2 = {
492
3810
  sm: { height: 32, fontSize: 13, px: 10, labelSize: 12 },
493
3811
  md: { height: 40, fontSize: 15, px: 12, labelSize: 13 },
494
3812
  lg: { height: 48, fontSize: 17, px: 14, labelSize: 14 }
495
3813
  };
496
- var TextInput = React__default.default.forwardRef((rawProps, ref) => {
497
- const { theme } = chunkT7V6TILB_js.useTheme();
498
- const merged = chunkFLEEJX7L_js.applyDefaults(rawProps, META2, theme);
3814
+ var TextInput = React2__default.default.forwardRef((rawProps, ref) => {
3815
+ const { theme } = useTheme();
3816
+ const merged = applyDefaults(rawProps, META2, theme);
499
3817
  const {
500
3818
  label,
501
3819
  error,
@@ -511,7 +3829,7 @@ var TextInput = React__default.default.forwardRef((rawProps, ref) => {
511
3829
  ...rest
512
3830
  } = merged;
513
3831
  const sizeConfig = SIZE_MAP2[size] ?? SIZE_MAP2.md;
514
- const radius = borderRadius ? chunk45NSZH5Z_js.radii[borderRadius] : chunk45NSZH5Z_js.radii.md;
3832
+ const radius = borderRadius ? radii[borderRadius] : radii.md;
515
3833
  const getBorderStyle = () => {
516
3834
  const bc = borderColor ?? theme.border;
517
3835
  switch (variant) {
@@ -575,14 +3893,14 @@ var TextInput = React__default.default.forwardRef((rawProps, ref) => {
575
3893
  });
576
3894
  TextInput.displayName = "TextInput";
577
3895
  var TextInput_default = TextInput;
578
- var META3 = chunkFLEEJX7L_js.getComponentMeta("TextArea");
3896
+ var META3 = getComponentMeta("TextArea");
579
3897
  var SIZE_MAP3 = {
580
3898
  sm: { fontSize: 13, px: 10, labelSize: 12 },
581
3899
  md: { fontSize: 15, px: 12, labelSize: 13 },
582
3900
  lg: { fontSize: 17, px: 14, labelSize: 14 }
583
3901
  };
584
- var TextArea = React__default.default.forwardRef((rawProps, ref) => {
585
- const { theme } = chunkT7V6TILB_js.useTheme();
3902
+ var TextArea = React2__default.default.forwardRef((rawProps, ref) => {
3903
+ const { theme } = useTheme();
586
3904
  const {
587
3905
  label,
588
3906
  error,
@@ -595,9 +3913,9 @@ var TextArea = React__default.default.forwardRef((rawProps, ref) => {
595
3913
  placeholder,
596
3914
  style,
597
3915
  ...rest
598
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META3, theme);
3916
+ } = applyDefaults(rawProps, META3, theme);
599
3917
  const sizeConfig = SIZE_MAP3[size] ?? SIZE_MAP3.md;
600
- const radius = borderRadius ? chunk45NSZH5Z_js.radii[borderRadius] : chunk45NSZH5Z_js.radii.md;
3918
+ const radius = borderRadius ? radii[borderRadius] : radii.md;
601
3919
  const textareaStyle = {
602
3920
  padding: sizeConfig.px,
603
3921
  fontSize: sizeConfig.fontSize,
@@ -639,6 +3957,38 @@ var TextArea = React__default.default.forwardRef((rawProps, ref) => {
639
3957
  });
640
3958
  TextArea.displayName = "TextArea";
641
3959
  var TextArea_default = TextArea;
3960
+ var Text = ({
3961
+ text,
3962
+ fontSize = 14,
3963
+ fontWeight = "400",
3964
+ color,
3965
+ textAlign = "left",
3966
+ numberOfLines,
3967
+ as: Tag = "p",
3968
+ children,
3969
+ style,
3970
+ ...rest
3971
+ }) => {
3972
+ const { theme } = useTheme();
3973
+ const textStyle = {
3974
+ fontSize,
3975
+ fontWeight,
3976
+ color: color ?? theme.foreground,
3977
+ textAlign,
3978
+ fontFamily: "inherit",
3979
+ margin: 0,
3980
+ padding: 0,
3981
+ ...numberOfLines != null ? {
3982
+ display: "-webkit-box",
3983
+ WebkitLineClamp: numberOfLines,
3984
+ WebkitBoxOrient: "vertical",
3985
+ overflow: "hidden"
3986
+ } : {},
3987
+ ...style
3988
+ };
3989
+ return /* @__PURE__ */ jsxRuntime.jsx(Tag, { style: textStyle, ...rest, children: children ?? text });
3990
+ };
3991
+ var Text_default = Text;
642
3992
  var COLOR_MAP = {
643
3993
  primary: { solid: ["primary", "primaryForeground"], subtle: ["primary", "primaryForeground"] },
644
3994
  secondary: { solid: ["secondary", "secondaryForeground"], subtle: ["secondary", "secondaryForeground"] },
@@ -657,10 +4007,10 @@ var Badge = ({
657
4007
  style,
658
4008
  ...rest
659
4009
  }) => {
660
- const { theme } = chunkT7V6TILB_js.useTheme();
4010
+ const { theme } = useTheme();
661
4011
  const resolveColor = (c) => c in theme ? theme[c] : c;
662
4012
  const colorDef = COLOR_MAP[color] ?? COLOR_MAP.primary;
663
- const radius = chunk45NSZH5Z_js.radii[borderRadius];
4013
+ const radius = radii[borderRadius];
664
4014
  const bgColor = variant === "solid" ? resolveColor(colorDef.solid[0]) : variant === "subtle" ? resolveColor(colorDef.subtle[0]) + "22" : "transparent";
665
4015
  const textColor = variant === "solid" ? resolveColor(colorDef.solid[1]) : resolveColor(colorDef.subtle[1]);
666
4016
  const badgeStyle = {
@@ -701,11 +4051,11 @@ var Avatar = ({
701
4051
  style,
702
4052
  ...rest
703
4053
  }) => {
704
- const { theme } = chunkT7V6TILB_js.useTheme();
705
- const [imgError, setImgError] = React.useState(false);
4054
+ const { theme } = useTheme();
4055
+ const [imgError, setImgError] = React2.useState(false);
706
4056
  const px = SIZE_PX[size] ?? SIZE_PX.md;
707
4057
  const bg = background ?? theme.muted;
708
- const radius = variant === "circle" ? "50%" : chunk45NSZH5Z_js.radii.md;
4058
+ const radius = variant === "circle" ? "50%" : radii.md;
709
4059
  const containerStyle = {
710
4060
  width: px,
711
4061
  height: px,
@@ -751,7 +4101,7 @@ var Icon = ({
751
4101
  className,
752
4102
  style
753
4103
  }) => {
754
- const { theme } = chunkT7V6TILB_js.useTheme();
4104
+ const { theme } = useTheme();
755
4105
  const resolvedColor = color ?? theme.foreground;
756
4106
  const key = toPascalCase(name);
757
4107
  const IconComponent = LucideIcons__namespace[key];
@@ -772,7 +4122,7 @@ var Icon = ({
772
4122
  };
773
4123
  var Icon_default = Icon;
774
4124
  var SIZE_PX2 = { sm: 32, md: 40, lg: 48 };
775
- var IconButton = React__default.default.forwardRef(({
4125
+ var IconButton = React2__default.default.forwardRef(({
776
4126
  icon,
777
4127
  variant = "ghost",
778
4128
  size = "md",
@@ -784,9 +4134,9 @@ var IconButton = React__default.default.forwardRef(({
784
4134
  style,
785
4135
  ...rest
786
4136
  }, ref) => {
787
- const { theme } = chunkT7V6TILB_js.useTheme();
4137
+ const { theme } = useTheme();
788
4138
  const px = SIZE_PX2[size] ?? SIZE_PX2.md;
789
- const radius = chunk45NSZH5Z_js.radii[borderRadius];
4139
+ const radius = radii[borderRadius];
790
4140
  const bg = variant === "filled" ? theme.muted : "transparent";
791
4141
  const border = variant === "outline" ? `1px solid ${theme.border}` : "none";
792
4142
  const btnStyle = {
@@ -829,7 +4179,7 @@ IconButton.displayName = "IconButton";
829
4179
  var IconButton_default = IconButton;
830
4180
  var SIZE_PX3 = { sm: 16, md: 24, lg: 36 };
831
4181
  var Spinner = ({ size = "md", color, className, style }) => {
832
- const { theme } = chunkT7V6TILB_js.useTheme();
4182
+ const { theme } = useTheme();
833
4183
  const px = SIZE_PX3[size] ?? SIZE_PX3.md;
834
4184
  const c = color ?? theme.primary;
835
4185
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -860,38 +4210,6 @@ var Spinner = ({ size = "md", color, className, style }) => {
860
4210
  ] });
861
4211
  };
862
4212
  var Spinner_default = Spinner;
863
- var Text = ({
864
- text,
865
- fontSize = 14,
866
- fontWeight = "400",
867
- color,
868
- textAlign = "left",
869
- numberOfLines,
870
- as: Tag = "p",
871
- children,
872
- style,
873
- ...rest
874
- }) => {
875
- const { theme } = chunkT7V6TILB_js.useTheme();
876
- const textStyle = {
877
- fontSize,
878
- fontWeight,
879
- color: color ?? theme.foreground,
880
- textAlign,
881
- fontFamily: "inherit",
882
- margin: 0,
883
- padding: 0,
884
- ...numberOfLines != null ? {
885
- display: "-webkit-box",
886
- WebkitLineClamp: numberOfLines,
887
- WebkitBoxOrient: "vertical",
888
- overflow: "hidden"
889
- } : {},
890
- ...style
891
- };
892
- return /* @__PURE__ */ jsxRuntime.jsx(Tag, { style: textStyle, ...rest, children: children ?? text });
893
- };
894
- var Text_default = Text;
895
4213
  var Separator = ({
896
4214
  label,
897
4215
  color,
@@ -901,9 +4219,9 @@ var Separator = ({
901
4219
  style,
902
4220
  ...rest
903
4221
  }) => {
904
- const { theme } = chunkT7V6TILB_js.useTheme();
4222
+ const { theme } = useTheme();
905
4223
  const lineColor = color ?? theme.border;
906
- const margin = spacingToken != null ? chunk45NSZH5Z_js.spacing[spacingToken] : 0;
4224
+ const margin = spacingToken != null ? spacing[spacingToken] : 0;
907
4225
  if (orientation === "vertical") {
908
4226
  return /* @__PURE__ */ jsxRuntime.jsx(
909
4227
  "div",
@@ -964,7 +4282,7 @@ var Separator = ({
964
4282
  };
965
4283
  var Separator_default = Separator;
966
4284
  var SIZE_PX4 = { sm: 16, md: 20 };
967
- var Checkbox = React__default.default.forwardRef(({
4285
+ var Checkbox = React2__default.default.forwardRef(({
968
4286
  label,
969
4287
  variant = "square",
970
4288
  size = "md",
@@ -976,10 +4294,10 @@ var Checkbox = React__default.default.forwardRef(({
976
4294
  style,
977
4295
  ...rest
978
4296
  }, ref) => {
979
- const { theme } = chunkT7V6TILB_js.useTheme();
980
- const id = React.useId();
4297
+ const { theme } = useTheme();
4298
+ const id = React2.useId();
981
4299
  const px = SIZE_PX4[size] ?? SIZE_PX4.md;
982
- const radius = variant === "rounded" ? "50%" : chunk45NSZH5Z_js.radii.sm;
4300
+ const radius = variant === "rounded" ? "50%" : radii.sm;
983
4301
  const color = activeColor ?? theme.primary;
984
4302
  const wrapStyle = {
985
4303
  display: "inline-flex",
@@ -1020,7 +4338,7 @@ var Checkbox = React__default.default.forwardRef(({
1020
4338
  });
1021
4339
  Checkbox.displayName = "Checkbox";
1022
4340
  var Checkbox_default = Checkbox;
1023
- var Switch = React__default.default.forwardRef(({
4341
+ var Switch = React2__default.default.forwardRef(({
1024
4342
  label,
1025
4343
  size = "md",
1026
4344
  activeColor,
@@ -1032,8 +4350,8 @@ var Switch = React__default.default.forwardRef(({
1032
4350
  style,
1033
4351
  ...rest
1034
4352
  }, ref) => {
1035
- const { theme } = chunkT7V6TILB_js.useTheme();
1036
- const id = React.useId();
4353
+ const { theme } = useTheme();
4354
+ const id = React2.useId();
1037
4355
  const w = size === "sm" ? 36 : 44;
1038
4356
  const h = size === "sm" ? 20 : 24;
1039
4357
  const color = activeColor ?? theme.primary;
@@ -1109,9 +4427,9 @@ var RadioGroup = ({
1109
4427
  style,
1110
4428
  ...rest
1111
4429
  }) => {
1112
- const { theme } = chunkT7V6TILB_js.useTheme();
1113
- const name = React.useId();
1114
- const gap = chunk45NSZH5Z_js.spacing[spacingToken];
4430
+ const { theme } = useTheme();
4431
+ const name = React2.useId();
4432
+ const gap = spacing[spacingToken];
1115
4433
  const color = activeColor ?? theme.primary;
1116
4434
  const fontSize = size === "sm" ? 13 : 14;
1117
4435
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 4, ...style }, ...rest, children: [
@@ -1148,14 +4466,14 @@ var RadioGroup = ({
1148
4466
  ] });
1149
4467
  };
1150
4468
  var RadioGroup_default = RadioGroup;
1151
- var META4 = chunkFLEEJX7L_js.getComponentMeta("Select");
4469
+ var META4 = getComponentMeta("Select");
1152
4470
  var SIZE_MAP4 = {
1153
4471
  sm: { height: 32, fontSize: 13, px: 10 },
1154
4472
  md: { height: 40, fontSize: 15, px: 12 },
1155
4473
  lg: { height: 48, fontSize: 17, px: 14 }
1156
4474
  };
1157
- var Select = React__default.default.forwardRef((rawProps, ref) => {
1158
- const { theme } = chunkT7V6TILB_js.useTheme();
4475
+ var Select = React2__default.default.forwardRef((rawProps, ref) => {
4476
+ const { theme } = useTheme();
1159
4477
  const {
1160
4478
  label,
1161
4479
  error,
@@ -1169,9 +4487,9 @@ var Select = React__default.default.forwardRef((rawProps, ref) => {
1169
4487
  style,
1170
4488
  children,
1171
4489
  ...rest
1172
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META4, theme);
4490
+ } = applyDefaults(rawProps, META4, theme);
1173
4491
  const sizeConfig = SIZE_MAP4[size] ?? SIZE_MAP4.md;
1174
- const radius = borderRadius ? chunk45NSZH5Z_js.radii[borderRadius] : chunk45NSZH5Z_js.radii.md;
4492
+ const radius = borderRadius ? radii[borderRadius] : radii.md;
1175
4493
  const selectStyle = {
1176
4494
  height: sizeConfig.height,
1177
4495
  paddingLeft: sizeConfig.px,
@@ -1205,7 +4523,7 @@ var Select = React__default.default.forwardRef((rawProps, ref) => {
1205
4523
  });
1206
4524
  Select.displayName = "Select";
1207
4525
  var Select_default = Select;
1208
- var Slider = React__default.default.forwardRef(({
4526
+ var Slider = React2__default.default.forwardRef(({
1209
4527
  label,
1210
4528
  min = 0,
1211
4529
  max = 100,
@@ -1220,7 +4538,7 @@ var Slider = React__default.default.forwardRef(({
1220
4538
  style,
1221
4539
  ...rest
1222
4540
  }, ref) => {
1223
- const { theme } = chunkT7V6TILB_js.useTheme();
4541
+ const { theme } = useTheme();
1224
4542
  const color = activeColor ?? theme.primary;
1225
4543
  const h = size === "sm" ? 4 : 6;
1226
4544
  const sliderStyle = {
@@ -1268,9 +4586,9 @@ var ProgressBar = ({
1268
4586
  style,
1269
4587
  ...rest
1270
4588
  }) => {
1271
- const { theme } = chunkT7V6TILB_js.useTheme();
4589
+ const { theme } = useTheme();
1272
4590
  const h = size === "sm" ? 4 : 8;
1273
- const radius = chunk45NSZH5Z_js.radii[borderRadius];
4591
+ const radius = radii[borderRadius];
1274
4592
  const pct = Math.min(1, Math.max(0, progress)) * 100;
1275
4593
  const trackStyle = {
1276
4594
  width: "100%",
@@ -1311,8 +4629,8 @@ var Chip = ({
1311
4629
  children,
1312
4630
  ...rest
1313
4631
  }) => {
1314
- const { theme } = chunkT7V6TILB_js.useTheme();
1315
- const radius = chunk45NSZH5Z_js.radii[borderRadius];
4632
+ const { theme } = useTheme();
4633
+ const radius = radii[borderRadius];
1316
4634
  const px = size === "sm" ? 8 : 12;
1317
4635
  const py = size === "sm" ? 3 : 5;
1318
4636
  const fontSize = size === "sm" ? 12 : 13;
@@ -1392,10 +4710,10 @@ var Tabs = ({
1392
4710
  style,
1393
4711
  className
1394
4712
  }) => {
1395
- const { theme } = chunkT7V6TILB_js.useTheme();
4713
+ const { theme } = useTheme();
1396
4714
  const color = activeColor ?? theme.primary;
1397
4715
  const bg = background ?? theme.card;
1398
- const radius = chunk45NSZH5Z_js.radii[borderRadius];
4716
+ const radius = radii[borderRadius];
1399
4717
  const tabListStyle = {
1400
4718
  display: "flex",
1401
4719
  flexDirection: "row",
@@ -1458,9 +4776,9 @@ var Tabs = ({
1458
4776
  };
1459
4777
  var Tabs_default = Tabs;
1460
4778
  var AccordionSingle = ({ title, children, defaultOpen = false, background, borderRadius = "lg", borderColor, style }) => {
1461
- const { theme } = chunkT7V6TILB_js.useTheme();
1462
- const [open, setOpen] = React__default.default.useState(defaultOpen);
1463
- const radius = chunk45NSZH5Z_js.radii[borderRadius];
4779
+ const { theme } = useTheme();
4780
+ const [open, setOpen] = React2__default.default.useState(defaultOpen);
4781
+ const radius = radii[borderRadius];
1464
4782
  const bg = background ?? theme.card;
1465
4783
  const bc = borderColor ?? theme.border;
1466
4784
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -1538,7 +4856,7 @@ var Accordion = ({
1538
4856
  borderColor,
1539
4857
  style
1540
4858
  }) => {
1541
- const { theme } = chunkT7V6TILB_js.useTheme();
4859
+ const { theme } = useTheme();
1542
4860
  if (items && items.length > 0) {
1543
4861
  return /* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", flexDirection: "column", gap: 8, ...style }, children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
1544
4862
  AccordionSingle,
@@ -1579,11 +4897,11 @@ var FilePicker = ({
1579
4897
  style,
1580
4898
  ...rest
1581
4899
  }) => {
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];
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];
1587
4905
  const h = size === "sm" ? 32 : size === "lg" ? 48 : 40;
1588
4906
  const handleChange = (e) => {
1589
4907
  const files = e.target.files;
@@ -1692,9 +5010,9 @@ var FilePicker = ({
1692
5010
  ] });
1693
5011
  };
1694
5012
  var FilePicker_default = FilePicker;
1695
- var META5 = chunkFLEEJX7L_js.getLayoutMeta("RootLayout");
5013
+ var META5 = getLayoutMeta("RootLayout");
1696
5014
  var RootLayout = (rawProps) => {
1697
- const { theme } = chunkT7V6TILB_js.useTheme();
5015
+ const { theme } = useTheme();
1698
5016
  const {
1699
5017
  background,
1700
5018
  scrollable,
@@ -1706,17 +5024,17 @@ var RootLayout = (rawProps) => {
1706
5024
  children,
1707
5025
  style,
1708
5026
  ...rest
1709
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META5, theme);
5027
+ } = applyDefaults(rawProps, META5, theme);
1710
5028
  const layoutStyle = {
1711
5029
  display: "flex",
1712
5030
  flexDirection: flexDirection ?? "column",
1713
5031
  justifyContent,
1714
5032
  alignItems,
1715
- gap: gapToken != null ? chunk45NSZH5Z_js.spacing[gapToken] : void 0,
5033
+ gap: gapToken != null ? spacing[gapToken] : void 0,
1716
5034
  minHeight: "100vh",
1717
5035
  width: "100%",
1718
5036
  backgroundColor: background ?? theme.background,
1719
- padding: paddingToken != null ? chunk45NSZH5Z_js.spacing[paddingToken] : void 0,
5037
+ padding: paddingToken != null ? spacing[paddingToken] : void 0,
1720
5038
  overflowY: scrollable ? "auto" : "hidden",
1721
5039
  boxSizing: "border-box",
1722
5040
  ...style
@@ -1724,9 +5042,9 @@ var RootLayout = (rawProps) => {
1724
5042
  return /* @__PURE__ */ jsxRuntime.jsx("div", { style: layoutStyle, ...rest, children });
1725
5043
  };
1726
5044
  var RootLayout_default = RootLayout;
1727
- var META6 = chunkFLEEJX7L_js.getLayoutMeta("CenteredLayout");
5045
+ var META6 = getLayoutMeta("CenteredLayout");
1728
5046
  var CenteredLayout = (rawProps) => {
1729
- const { theme } = chunkT7V6TILB_js.useTheme();
5047
+ const { theme } = useTheme();
1730
5048
  const {
1731
5049
  maxWidth,
1732
5050
  padding: paddingToken,
@@ -1737,7 +5055,7 @@ var CenteredLayout = (rawProps) => {
1737
5055
  children,
1738
5056
  style,
1739
5057
  ...rest
1740
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META6, theme);
5058
+ } = applyDefaults(rawProps, META6, theme);
1741
5059
  const outerStyle = {
1742
5060
  display: "flex",
1743
5061
  alignItems: "center",
@@ -1752,18 +5070,18 @@ var CenteredLayout = (rawProps) => {
1752
5070
  const cardStyle = {
1753
5071
  width: "100%",
1754
5072
  maxWidth: maxWidth ?? 500,
1755
- padding: paddingToken != null ? chunk45NSZH5Z_js.spacing[paddingToken] : chunk45NSZH5Z_js.spacing[4],
5073
+ padding: paddingToken != null ? spacing[paddingToken] : spacing[4],
1756
5074
  backgroundColor: cardBackground ?? theme.card,
1757
- borderRadius: borderRadius ? chunk45NSZH5Z_js.radii[borderRadius] : chunk45NSZH5Z_js.radii["3xl"],
5075
+ borderRadius: borderRadius ? radii[borderRadius] : radii["3xl"],
1758
5076
  boxShadow: shadowed ? `0 4px 32px rgba(0,0,0,0.12)` : "none",
1759
5077
  boxSizing: "border-box"
1760
5078
  };
1761
5079
  return /* @__PURE__ */ jsxRuntime.jsx("div", { style: outerStyle, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx("div", { style: cardStyle, children }) });
1762
5080
  };
1763
5081
  var CenteredLayout_default = CenteredLayout;
1764
- var META7 = chunkFLEEJX7L_js.getLayoutMeta("AuthLayout");
5082
+ var META7 = getLayoutMeta("AuthLayout");
1765
5083
  var AuthLayout = (rawProps) => {
1766
- const { theme } = chunkT7V6TILB_js.useTheme();
5084
+ const { theme } = useTheme();
1767
5085
  const {
1768
5086
  branding,
1769
5087
  brandingBackground,
@@ -1779,11 +5097,11 @@ var AuthLayout = (rawProps) => {
1779
5097
  children,
1780
5098
  style,
1781
5099
  ...rest
1782
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META7, theme);
5100
+ } = applyDefaults(rawProps, META7, theme);
1783
5101
  const ratio = brandingRatio ?? 0.5;
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];
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];
1787
5105
  const containerStyle = {
1788
5106
  display: "flex",
1789
5107
  flexDirection: "row",
@@ -1818,7 +5136,7 @@ var AuthLayout = (rawProps) => {
1818
5136
  width: "100%",
1819
5137
  maxWidth: formMaxWidth ?? 520,
1820
5138
  backgroundColor: theme.card,
1821
- borderRadius: borderRadius ? chunk45NSZH5Z_js.radii[borderRadius] : "none",
5139
+ borderRadius: borderRadius ? radii[borderRadius] : "none",
1822
5140
  padding: pad,
1823
5141
  boxShadow: shadowed ? "0 4px 24px rgba(0,0,0,0.1)" : "none",
1824
5142
  boxSizing: "border-box"
@@ -1837,9 +5155,9 @@ var AuthLayout = (rawProps) => {
1837
5155
  ] });
1838
5156
  };
1839
5157
  var AuthLayout_default = AuthLayout;
1840
- var META8 = chunkFLEEJX7L_js.getLayoutMeta("DashboardLayout");
5158
+ var META8 = getLayoutMeta("DashboardLayout");
1841
5159
  var DashboardLayout = (rawProps) => {
1842
- const { theme } = chunkT7V6TILB_js.useTheme();
5160
+ const { theme } = useTheme();
1843
5161
  const {
1844
5162
  header,
1845
5163
  sidebar,
@@ -1859,12 +5177,12 @@ var DashboardLayout = (rawProps) => {
1859
5177
  children,
1860
5178
  style,
1861
5179
  ...rest
1862
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META8, theme);
1863
- const [collapsed, setCollapsed] = React.useState(defaultSidebarCollapsed ?? false);
5180
+ } = applyDefaults(rawProps, META8, theme);
5181
+ const [collapsed, setCollapsed] = React2.useState(defaultSidebarCollapsed ?? false);
1864
5182
  const sw = collapsed ? sidebarCollapsedWidth ?? 70 : sidebarWidth ?? 260;
1865
5183
  const hh = headerHeight ?? 70;
1866
5184
  const fh = footerHeight ?? 60;
1867
- const hpx = headerPaddingX != null ? chunk45NSZH5Z_js.spacing[headerPaddingX] : chunk45NSZH5Z_js.spacing[4];
5185
+ const hpx = headerPaddingX != null ? spacing[headerPaddingX] : spacing[4];
1868
5186
  const rootStyle = {
1869
5187
  display: "grid",
1870
5188
  gridTemplateColumns: sidebar ? `${sw}px 1fr` : "1fr",
@@ -1939,9 +5257,9 @@ var DashboardLayout = (rawProps) => {
1939
5257
  ] });
1940
5258
  };
1941
5259
  var DashboardLayout_default = DashboardLayout;
1942
- var META9 = chunkFLEEJX7L_js.getLayoutMeta("SidebarLayout");
5260
+ var META9 = getLayoutMeta("SidebarLayout");
1943
5261
  var SidebarLayout = (rawProps) => {
1944
- const { theme } = chunkT7V6TILB_js.useTheme();
5262
+ const { theme } = useTheme();
1945
5263
  const {
1946
5264
  sidebar,
1947
5265
  sidebarWidth,
@@ -1958,10 +5276,10 @@ var SidebarLayout = (rawProps) => {
1958
5276
  children,
1959
5277
  style,
1960
5278
  ...rest
1961
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META9, theme);
5279
+ } = applyDefaults(rawProps, META9, theme);
1962
5280
  const sw = sidebarWidth ?? 280;
1963
- const gap = spacingToken != null ? chunk45NSZH5Z_js.spacing[spacingToken] : chunk45NSZH5Z_js.spacing[4];
1964
- const pad = paddingToken != null ? chunk45NSZH5Z_js.spacing[paddingToken] : void 0;
5281
+ const gap = spacingToken != null ? spacing[spacingToken] : spacing[4];
5282
+ const pad = paddingToken != null ? spacing[paddingToken] : void 0;
1965
5283
  const containerStyle = {
1966
5284
  display: "flex",
1967
5285
  flexDirection: position === "right" ? "row-reverse" : "row",
@@ -1969,7 +5287,7 @@ var SidebarLayout = (rawProps) => {
1969
5287
  maxWidth: maxWidth ?? void 0,
1970
5288
  gap,
1971
5289
  backgroundColor: background ?? void 0,
1972
- borderRadius: borderRadius ? chunk45NSZH5Z_js.radii[borderRadius] : void 0,
5290
+ borderRadius: borderRadius ? radii[borderRadius] : void 0,
1973
5291
  padding: pad,
1974
5292
  boxSizing: "border-box",
1975
5293
  minHeight: "100vh",
@@ -1979,7 +5297,7 @@ var SidebarLayout = (rawProps) => {
1979
5297
  width: sw,
1980
5298
  flexShrink: 0,
1981
5299
  backgroundColor: sidebarBackground ?? theme.card,
1982
- borderRadius: sidebarBorderRadius ? chunk45NSZH5Z_js.radii[sidebarBorderRadius] : void 0,
5300
+ borderRadius: sidebarBorderRadius ? radii[sidebarBorderRadius] : void 0,
1983
5301
  overflowY: "auto",
1984
5302
  alignSelf: "flex-start",
1985
5303
  position: "sticky",
@@ -2006,9 +5324,9 @@ var SidebarLayout = (rawProps) => {
2006
5324
  ] });
2007
5325
  };
2008
5326
  var SidebarLayout_default = SidebarLayout;
2009
- var META10 = chunkFLEEJX7L_js.getLayoutMeta("GridLayout");
5327
+ var META10 = getLayoutMeta("GridLayout");
2010
5328
  var GridLayout = (rawProps) => {
2011
- const { theme } = chunkT7V6TILB_js.useTheme();
5329
+ const { theme } = useTheme();
2012
5330
  const {
2013
5331
  columns,
2014
5332
  cellHeight,
@@ -2025,9 +5343,9 @@ var GridLayout = (rawProps) => {
2025
5343
  children,
2026
5344
  style,
2027
5345
  ...rest
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;
5346
+ } = applyDefaults(rawProps, META10, theme);
5347
+ const gap = spacingToken != null ? spacing[spacingToken] : 0;
5348
+ const pad = paddingToken != null ? spacing[paddingToken] : 0;
2031
5349
  const minCellWidth = compact ? 140 : 200;
2032
5350
  const gridStyle = {
2033
5351
  display: "grid",
@@ -2037,7 +5355,7 @@ var GridLayout = (rawProps) => {
2037
5355
  maxWidth: maxWidth ?? void 0,
2038
5356
  padding: pad,
2039
5357
  backgroundColor: background ?? "transparent",
2040
- borderRadius: borderRadius ? chunk45NSZH5Z_js.radii[borderRadius] : void 0,
5358
+ borderRadius: borderRadius ? radii[borderRadius] : void 0,
2041
5359
  overflowY: scrollable ? "auto" : void 0,
2042
5360
  boxSizing: "border-box",
2043
5361
  ...style
@@ -2045,7 +5363,7 @@ var GridLayout = (rawProps) => {
2045
5363
  const cellStyle = {
2046
5364
  height: cellHeight ?? void 0,
2047
5365
  backgroundColor: itemBackground ?? theme.card,
2048
- borderRadius: itemBorderRadius ? chunk45NSZH5Z_js.radii[itemBorderRadius] : void 0,
5366
+ borderRadius: itemBorderRadius ? radii[itemBorderRadius] : void 0,
2049
5367
  overflow: "hidden",
2050
5368
  boxSizing: "border-box"
2051
5369
  };
@@ -2055,9 +5373,9 @@ var GridLayout = (rawProps) => {
2055
5373
  return /* @__PURE__ */ jsxRuntime.jsx("div", { style: gridStyle, ...rest, children });
2056
5374
  };
2057
5375
  var GridLayout_default = GridLayout;
2058
- var META11 = chunkFLEEJX7L_js.getLayoutMeta("FlexLayout");
5376
+ var META11 = getLayoutMeta("FlexLayout");
2059
5377
  var FlexLayout = (rawProps) => {
2060
- const { theme } = chunkT7V6TILB_js.useTheme();
5378
+ const { theme } = useTheme();
2061
5379
  const {
2062
5380
  direction,
2063
5381
  wrap,
@@ -2072,18 +5390,18 @@ var FlexLayout = (rawProps) => {
2072
5390
  children,
2073
5391
  style,
2074
5392
  ...rest
2075
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META11, theme);
5393
+ } = applyDefaults(rawProps, META11, theme);
2076
5394
  const flexStyle = {
2077
5395
  display: "flex",
2078
5396
  flexDirection: direction ?? "row",
2079
5397
  flexWrap: wrap ? "wrap" : "nowrap",
2080
- gap: spacingToken != null ? chunk45NSZH5Z_js.spacing[spacingToken] : chunk45NSZH5Z_js.spacing[4],
5398
+ gap: spacingToken != null ? spacing[spacingToken] : spacing[4],
2081
5399
  alignItems: align ?? "stretch",
2082
5400
  justifyContent: justify ?? "flex-start",
2083
5401
  maxWidth: maxWidth ?? void 0,
2084
- padding: paddingToken != null ? chunk45NSZH5Z_js.spacing[paddingToken] : void 0,
5402
+ padding: paddingToken != null ? spacing[paddingToken] : void 0,
2085
5403
  backgroundColor: background ?? "transparent",
2086
- borderRadius: borderRadius ? chunk45NSZH5Z_js.radii[borderRadius] : void 0,
5404
+ borderRadius: borderRadius ? radii[borderRadius] : void 0,
2087
5405
  overflowX: scrollable && direction === "row" ? "auto" : void 0,
2088
5406
  overflowY: scrollable && direction === "column" ? "auto" : void 0,
2089
5407
  boxSizing: "border-box",
@@ -2093,9 +5411,9 @@ var FlexLayout = (rawProps) => {
2093
5411
  return /* @__PURE__ */ jsxRuntime.jsx("div", { style: flexStyle, ...rest, children });
2094
5412
  };
2095
5413
  var FlexLayout_default = FlexLayout;
2096
- var META12 = chunkFLEEJX7L_js.getLayoutMeta("SplitLayout");
5414
+ var META12 = getLayoutMeta("SplitLayout");
2097
5415
  var SplitLayout = (rawProps) => {
2098
- const { theme } = chunkT7V6TILB_js.useTheme();
5416
+ const { theme } = useTheme();
2099
5417
  const {
2100
5418
  left,
2101
5419
  right,
@@ -2113,8 +5431,8 @@ var SplitLayout = (rawProps) => {
2113
5431
  children,
2114
5432
  style,
2115
5433
  ...rest
2116
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META12, theme);
2117
- const gap = spacingToken != null ? chunk45NSZH5Z_js.spacing[spacingToken] : 0;
5434
+ } = applyDefaults(rawProps, META12, theme);
5435
+ const gap = spacingToken != null ? spacing[spacingToken] : 0;
2118
5436
  const r = ratio ?? 0.5;
2119
5437
  const isVertical = orientation === "vertical";
2120
5438
  const containerStyle = {
@@ -2125,7 +5443,7 @@ var SplitLayout = (rawProps) => {
2125
5443
  height: isVertical ? "100%" : void 0,
2126
5444
  minHeight: isVertical ? void 0 : "100%",
2127
5445
  backgroundColor: background ?? void 0,
2128
- borderRadius: borderRadius ? chunk45NSZH5Z_js.radii[borderRadius] : void 0,
5446
+ borderRadius: borderRadius ? radii[borderRadius] : void 0,
2129
5447
  boxSizing: "border-box",
2130
5448
  ...style
2131
5449
  };
@@ -2134,14 +5452,14 @@ var SplitLayout = (rawProps) => {
2134
5452
  width: leftWidth ?? void 0,
2135
5453
  flexShrink: 0,
2136
5454
  backgroundColor: leftBackground ?? theme.card,
2137
- borderRadius: leftBorderRadius ? chunk45NSZH5Z_js.radii[leftBorderRadius] : void 0,
5455
+ borderRadius: leftBorderRadius ? radii[leftBorderRadius] : void 0,
2138
5456
  overflow: "auto",
2139
5457
  boxSizing: "border-box"
2140
5458
  };
2141
5459
  const rightStyle = {
2142
5460
  flex: 1 - r,
2143
5461
  backgroundColor: rightBackground ?? theme.card,
2144
- borderRadius: rightBorderRadius ? chunk45NSZH5Z_js.radii[rightBorderRadius] : void 0,
5462
+ borderRadius: rightBorderRadius ? radii[rightBorderRadius] : void 0,
2145
5463
  overflow: "auto",
2146
5464
  minWidth: 0,
2147
5465
  boxSizing: "border-box"
@@ -2157,9 +5475,9 @@ var SplitLayout = (rawProps) => {
2157
5475
  ] });
2158
5476
  };
2159
5477
  var SplitLayout_default = SplitLayout;
2160
- var META13 = chunkFLEEJX7L_js.getLayoutMeta("FooterLayout");
5478
+ var META13 = getLayoutMeta("FooterLayout");
2161
5479
  var FooterLayout = (rawProps) => {
2162
- const { theme } = chunkT7V6TILB_js.useTheme();
5480
+ const { theme } = useTheme();
2163
5481
  const {
2164
5482
  footer,
2165
5483
  footerHeight,
@@ -2178,11 +5496,11 @@ var FooterLayout = (rawProps) => {
2178
5496
  children,
2179
5497
  style,
2180
5498
  ...rest
2181
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META13, theme);
5499
+ } = applyDefaults(rawProps, META13, theme);
2182
5500
  const fh = footerHeight ?? 60;
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];
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];
2186
5504
  const containerStyle = {
2187
5505
  display: "flex",
2188
5506
  flexDirection: "column",
@@ -2190,7 +5508,7 @@ var FooterLayout = (rawProps) => {
2190
5508
  width: "100%",
2191
5509
  maxWidth: maxWidth ?? void 0,
2192
5510
  backgroundColor: background ?? theme.background,
2193
- borderRadius: borderRadius ? chunk45NSZH5Z_js.radii[borderRadius] : void 0,
5511
+ borderRadius: borderRadius ? radii[borderRadius] : void 0,
2194
5512
  boxSizing: "border-box",
2195
5513
  ...style
2196
5514
  };
@@ -2198,7 +5516,7 @@ var FooterLayout = (rawProps) => {
2198
5516
  flex: 1,
2199
5517
  padding: pad,
2200
5518
  overflowY: scrollable ? "auto" : void 0,
2201
- borderRadius: contentBorderRadius ? chunk45NSZH5Z_js.radii[contentBorderRadius] : void 0,
5519
+ borderRadius: contentBorderRadius ? radii[contentBorderRadius] : void 0,
2202
5520
  marginBottom: sticky ? fh + gap : gap,
2203
5521
  boxSizing: "border-box"
2204
5522
  };
@@ -2206,7 +5524,7 @@ var FooterLayout = (rawProps) => {
2206
5524
  height: fh,
2207
5525
  padding: compact ? fPad / 2 : fPad,
2208
5526
  backgroundColor: footerBackground ?? theme.background,
2209
- borderRadius: footerBorderRadius ? chunk45NSZH5Z_js.radii[footerBorderRadius] : void 0,
5527
+ borderRadius: footerBorderRadius ? radii[footerBorderRadius] : void 0,
2210
5528
  borderTop: `1px solid ${theme.border}`,
2211
5529
  display: "flex",
2212
5530
  alignItems: "center",
@@ -2220,9 +5538,9 @@ var FooterLayout = (rawProps) => {
2220
5538
  ] });
2221
5539
  };
2222
5540
  var FooterLayout_default = FooterLayout;
2223
- var META14 = chunkFLEEJX7L_js.getLayoutMeta("ResponsiveLayout");
5541
+ var META14 = getLayoutMeta("ResponsiveLayout");
2224
5542
  var ResponsiveLayout = (rawProps) => {
2225
- const { theme } = chunkT7V6TILB_js.useTheme();
5543
+ const { theme } = useTheme();
2226
5544
  const {
2227
5545
  content,
2228
5546
  header,
@@ -2246,12 +5564,12 @@ var ResponsiveLayout = (rawProps) => {
2246
5564
  children,
2247
5565
  style,
2248
5566
  ...rest
2249
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META14, theme);
5567
+ } = applyDefaults(rawProps, META14, theme);
2250
5568
  const hh = headerHeight ?? 60;
2251
5569
  const sw = Math.min(sidebarWidth ?? 260, sidebarMaxWidth ?? 320);
2252
5570
  const fh = footerHeight ?? 60;
2253
- const gap = spacingToken != null ? chunk45NSZH5Z_js.spacing[spacingToken] : 0;
2254
- const cPad = contentPadToken != null ? chunk45NSZH5Z_js.spacing[contentPadToken] : void 0;
5571
+ const gap = spacingToken != null ? spacing[spacingToken] : 0;
5572
+ const cPad = contentPadToken != null ? spacing[contentPadToken] : void 0;
2255
5573
  const hasSidebar = sidebar && (adaptiveMode === "sidebar" || adaptiveMode === "full");
2256
5574
  const rootStyle = {
2257
5575
  display: "flex",
@@ -2259,7 +5577,7 @@ var ResponsiveLayout = (rawProps) => {
2259
5577
  minHeight: "100vh",
2260
5578
  width: "100%",
2261
5579
  backgroundColor: background ?? theme.background,
2262
- borderRadius: borderRadius ? chunk45NSZH5Z_js.radii[borderRadius] : void 0,
5580
+ borderRadius: borderRadius ? radii[borderRadius] : void 0,
2263
5581
  boxSizing: "border-box",
2264
5582
  ...style
2265
5583
  };
@@ -2324,182 +5642,93 @@ var ResponsiveLayout = (rawProps) => {
2324
5642
  };
2325
5643
  var ResponsiveLayout_default = ResponsiveLayout;
2326
5644
 
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
- });
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
+
2503
5732
  exports.Accordion = Accordion_default;
2504
5733
  exports.AuthLayout = AuthLayout_default;
2505
5734
  exports.Avatar = Avatar_default;
@@ -2515,10 +5744,13 @@ exports.Divider = Divider_default;
2515
5744
  exports.FilePicker = FilePicker_default;
2516
5745
  exports.FlexLayout = FlexLayout_default;
2517
5746
  exports.FooterLayout = FooterLayout_default;
5747
+ exports.FoundationProvider = FoundationProvider;
2518
5748
  exports.GridLayout = GridLayout_default;
2519
5749
  exports.Icon = Icon_default;
2520
5750
  exports.IconButton = IconButton_default;
2521
5751
  exports.Inline = Inline_default;
5752
+ exports.Input = TextInput_default;
5753
+ exports.Label = Text_default;
2522
5754
  exports.ProgressBar = ProgressBar_default;
2523
5755
  exports.RadioGroup = RadioGroup_default;
2524
5756
  exports.ResponsiveLayout = ResponsiveLayout_default;
@@ -2536,5 +5768,49 @@ exports.Tabs = Tabs_default;
2536
5768
  exports.Text = Text_default;
2537
5769
  exports.TextArea = TextArea_default;
2538
5770
  exports.TextInput = TextInput_default;
5771
+ exports.Textarea = TextArea_default;
5772
+ exports.ThemeProvider = ThemeProvider;
5773
+ exports.applyDefaults = applyDefaults;
5774
+ exports.applyVariant = applyVariant;
5775
+ exports.autumnTheme = autumnTheme;
5776
+ exports.blockRegistry = blockRegistry;
5777
+ exports.breakpoints = breakpoints;
5778
+ exports.christmasTheme = christmasTheme;
5779
+ exports.colors = colors;
5780
+ exports.componentRegistry = componentRegistry;
5781
+ exports.createTheme = createTheme;
5782
+ exports.darkTheme = darkTheme;
5783
+ exports.defineConfig = defineConfig;
5784
+ exports.durations = durations;
5785
+ exports.easings = easings;
5786
+ exports.extractDefaults = extractDefaults;
5787
+ exports.fontSizes = fontSizes;
5788
+ exports.fontWeights = fontWeights;
5789
+ exports.getBlockMeta = getBlockMeta;
5790
+ exports.getComponentMeta = getComponentMeta;
5791
+ exports.getConstants = getConstants;
5792
+ exports.getLayoutMeta = getLayoutMeta;
5793
+ exports.getPrimitiveMeta = getPrimitiveMeta;
5794
+ exports.halloweenTheme = halloweenTheme;
5795
+ exports.layoutRegistry = layoutRegistry;
5796
+ exports.letterSpacings = letterSpacings;
5797
+ exports.lightTheme = lightTheme;
5798
+ exports.lineHeights = lineHeights;
5799
+ exports.neonTheme = neonTheme;
5800
+ exports.opacity = opacity;
5801
+ exports.primitiveRegistry = primitiveRegistry;
5802
+ exports.radii = radii;
5803
+ exports.resolveConfig = resolveConfig;
5804
+ exports.resolveThemeDefaults = resolveThemeDefaults;
5805
+ exports.shadows = shadows;
5806
+ exports.spacing = spacing;
5807
+ exports.springTheme = springTheme;
5808
+ exports.summerTheme = summerTheme;
5809
+ exports.useColorScheme = useColorScheme;
5810
+ exports.useFoundationConfig = useFoundationConfig;
5811
+ exports.useTheme = useTheme;
5812
+ exports.useTokens = useTokens;
5813
+ exports.winterTheme = winterTheme;
5814
+ exports.zIndices = zIndices;
2539
5815
  //# sourceMappingURL=index.js.map
2540
5816
  //# sourceMappingURL=index.js.map