@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
@@ -1,9 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkT7V6TILB_js = require('./chunk-T7V6TILB.js');
4
- var chunk45NSZH5Z_js = require('./chunk-45NSZH5Z.js');
5
- var chunkFLEEJX7L_js = require('./chunk-FLEEJX7L.js');
6
- var chunkDGUM43GV_js = require('./chunk-DGUM43GV.js');
3
+ var chunkRUZBEFDO_js = require('./chunk-RUZBEFDO.js');
4
+ var chunkUBZMVSIN_js = require('./chunk-UBZMVSIN.js');
7
5
  var React12 = require('react');
8
6
  var reactNative = require('react-native');
9
7
  var jsxRuntime = require('react/jsx-runtime');
@@ -41,11 +39,11 @@ var Animated12__default = /*#__PURE__*/_interopDefault(Animated12);
41
39
 
42
40
  var getBreakpoint = (innerWidth) => {
43
41
  const width = innerWidth ?? (reactNative.Platform.OS === "web" && typeof window !== "undefined" ? window.innerWidth : reactNative.Dimensions.get("window").width);
44
- if (width >= chunk45NSZH5Z_js.breakpoints["2xl"]) return "2xl";
45
- if (width >= chunk45NSZH5Z_js.breakpoints.xl) return "xl";
46
- if (width >= chunk45NSZH5Z_js.breakpoints.lg) return "lg";
47
- if (width >= chunk45NSZH5Z_js.breakpoints.md) return "md";
48
- if (width >= chunk45NSZH5Z_js.breakpoints.sm) return "sm";
42
+ if (width >= chunkUBZMVSIN_js.breakpoints["2xl"]) return "2xl";
43
+ if (width >= chunkUBZMVSIN_js.breakpoints.xl) return "xl";
44
+ if (width >= chunkUBZMVSIN_js.breakpoints.lg) return "lg";
45
+ if (width >= chunkUBZMVSIN_js.breakpoints.md) return "md";
46
+ if (width >= chunkUBZMVSIN_js.breakpoints.sm) return "sm";
49
47
  return "xs";
50
48
  };
51
49
  var getResponsiveValue = (value, currentBreakpoint) => {
@@ -119,7 +117,7 @@ var useResponsiveValue = (value) => {
119
117
  };
120
118
  var LinearGradient = null;
121
119
  try {
122
- LinearGradient = chunkDGUM43GV_js.__require("expo-linear-gradient").LinearGradient ?? null;
120
+ LinearGradient = chunkUBZMVSIN_js.__require("expo-linear-gradient").LinearGradient ?? null;
123
121
  } catch {
124
122
  LinearGradient = null;
125
123
  }
@@ -134,12 +132,12 @@ var GRADIENT_VECTORS = {
134
132
  toBottomRight: { start: { x: 0, y: 0 }, end: { x: 1, y: 1 } }
135
133
  };
136
134
  function sp(token) {
137
- return token != null ? chunk45NSZH5Z_js.spacing[token] : void 0;
135
+ return token != null ? chunkUBZMVSIN_js.spacing[token] : void 0;
138
136
  }
139
137
  function resolvePosition(value) {
140
138
  if (value == null) return void 0;
141
- if (typeof value === "string" && value in chunk45NSZH5Z_js.spacing)
142
- return chunk45NSZH5Z_js.spacing[value];
139
+ if (typeof value === "string" && value in chunkUBZMVSIN_js.spacing)
140
+ return chunkUBZMVSIN_js.spacing[value];
143
141
  return value;
144
142
  }
145
143
  var Box = ({
@@ -205,7 +203,7 @@ var Box = ({
205
203
  theme,
206
204
  ...rest
207
205
  }) => {
208
- const { theme: currentTheme } = chunkT7V6TILB_js.useTheme(theme);
206
+ const { theme: currentTheme } = chunkRUZBEFDO_js.useTheme(theme);
209
207
  const resP = useResponsiveValue(p);
210
208
  const resPT = useResponsiveValue(pt);
211
209
  const resPR = useResponsiveValue(pr);
@@ -245,11 +243,11 @@ var Box = ({
245
243
  // Fond — omis quand gradient actif (LinearGradient gère ça)
246
244
  backgroundColor: gradientColors ? void 0 : bg,
247
245
  // Bordure
248
- borderRadius: borderRadius ? chunk45NSZH5Z_js.radii[borderRadius] : void 0,
249
- borderTopLeftRadius: borderTopLeftRadius ? chunk45NSZH5Z_js.radii[borderTopLeftRadius] : void 0,
250
- borderTopRightRadius: borderTopRightRadius ? chunk45NSZH5Z_js.radii[borderTopRightRadius] : void 0,
251
- borderBottomLeftRadius: borderBottomLeftRadius ? chunk45NSZH5Z_js.radii[borderBottomLeftRadius] : void 0,
252
- borderBottomRightRadius: borderBottomRightRadius ? chunk45NSZH5Z_js.radii[borderBottomRightRadius] : void 0,
246
+ borderRadius: borderRadius ? chunkUBZMVSIN_js.radii[borderRadius] : void 0,
247
+ borderTopLeftRadius: borderTopLeftRadius ? chunkUBZMVSIN_js.radii[borderTopLeftRadius] : void 0,
248
+ borderTopRightRadius: borderTopRightRadius ? chunkUBZMVSIN_js.radii[borderTopRightRadius] : void 0,
249
+ borderBottomLeftRadius: borderBottomLeftRadius ? chunkUBZMVSIN_js.radii[borderBottomLeftRadius] : void 0,
250
+ borderBottomRightRadius: borderBottomRightRadius ? chunkUBZMVSIN_js.radii[borderBottomRightRadius] : void 0,
253
251
  // Flex
254
252
  flex,
255
253
  flexGrow,
@@ -260,9 +258,9 @@ var Box = ({
260
258
  alignSelf,
261
259
  justifyContent,
262
260
  flexWrap,
263
- gap: gap != null ? chunk45NSZH5Z_js.spacing[gap] : void 0,
264
- rowGap: rowGap != null ? chunk45NSZH5Z_js.spacing[rowGap] : void 0,
265
- columnGap: columnGap != null ? chunk45NSZH5Z_js.spacing[columnGap] : void 0,
261
+ gap: gap != null ? chunkUBZMVSIN_js.spacing[gap] : void 0,
262
+ rowGap: rowGap != null ? chunkUBZMVSIN_js.spacing[rowGap] : void 0,
263
+ columnGap: columnGap != null ? chunkUBZMVSIN_js.spacing[columnGap] : void 0,
266
264
  // Dimensions
267
265
  width,
268
266
  height,
@@ -280,7 +278,7 @@ var Box = ({
280
278
  bottom: resolvePosition(bottom),
281
279
  left: resolvePosition(left),
282
280
  // Ombre
283
- ...shadow ? chunk45NSZH5Z_js.shadows[shadow] : {}
281
+ ...shadow ? chunkUBZMVSIN_js.shadows[shadow] : {}
284
282
  };
285
283
  const flatStyle = [computed, ...Array.isArray(style) ? style : style ? [style] : []];
286
284
  return {
@@ -379,7 +377,7 @@ var Divider = ({
379
377
  color,
380
378
  thickness = 1
381
379
  }) => {
382
- const { theme } = chunkT7V6TILB_js.useTheme();
380
+ const { theme } = chunkRUZBEFDO_js.useTheme();
383
381
  const resolvedColor = color ?? theme.border;
384
382
  if (orientation === "vertical") {
385
383
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -431,7 +429,7 @@ var Inline = ({
431
429
  };
432
430
  var Inline_default = Inline;
433
431
  function sp2(token) {
434
- return token != null ? chunk45NSZH5Z_js.spacing[token] : void 0;
432
+ return token != null ? chunkUBZMVSIN_js.spacing[token] : void 0;
435
433
  }
436
434
  var Scroll = ({
437
435
  p,
@@ -455,7 +453,7 @@ var Scroll = ({
455
453
  paddingRight: sp2(pr),
456
454
  paddingLeft: sp2(pl),
457
455
  // pb résout à 0 si absent — évite de couper le contenu en bas
458
- paddingBottom: pb != null ? chunk45NSZH5Z_js.spacing[pb] : 0
456
+ paddingBottom: pb != null ? chunkUBZMVSIN_js.spacing[pb] : 0
459
457
  }),
460
458
  [p, px, py, pt, pr, pb, pl]
461
459
  );
@@ -503,9 +501,2293 @@ var Stack = ({
503
501
  return /* @__PURE__ */ jsxRuntime.jsx(Box_default, { ...layoutProps, style: resolvedStyle, ...rest, children });
504
502
  };
505
503
  var Stack_default = Stack;
506
- var META = chunkFLEEJX7L_js.getLayoutMeta("RootLayout");
504
+
505
+ // foundation/layout/registry/defaults.ts
506
+ function extractDefaults(meta) {
507
+ const defaults = {};
508
+ for (const prop of meta.props) {
509
+ if (prop.default !== void 0) {
510
+ defaults[prop.name] = prop.default;
511
+ }
512
+ }
513
+ return defaults;
514
+ }
515
+ function resolveThemeDefaults(meta, theme) {
516
+ const resolved = {};
517
+ for (const prop of meta.props) {
518
+ if (prop.themeDefault) {
519
+ resolved[prop.name] = theme[prop.themeDefault];
520
+ }
521
+ }
522
+ return resolved;
523
+ }
524
+ function applyDefaults(props, meta, theme) {
525
+ const themeDefaults = theme ? resolveThemeDefaults(meta, theme) : {};
526
+ const staticDefaults = extractDefaults(meta);
527
+ const result = { ...themeDefaults, ...staticDefaults };
528
+ for (const key of Object.keys(props)) {
529
+ const value = props[key];
530
+ if (value !== void 0) {
531
+ result[key] = value;
532
+ }
533
+ }
534
+ return result;
535
+ }
536
+ function applyVariant(props, variant) {
537
+ const result = { ...variant.overrides };
538
+ for (const key of Object.keys(props)) {
539
+ const value = props[key];
540
+ if (value !== void 0) {
541
+ result[key] = value;
542
+ }
543
+ }
544
+ return result;
545
+ }
546
+ function getConstants(meta) {
547
+ return meta.constants ?? {};
548
+ }
549
+
550
+ // foundation/layout/registry/layouts.ts
551
+ function getLayoutMeta(id) {
552
+ return layoutRegistry.find((m) => m.id === id);
553
+ }
554
+ var layoutRegistry = [
555
+ // ═══════════════════════════════════════════════════════════════════════════
556
+ // PAGE
557
+ // ═══════════════════════════════════════════════════════════════════════════
558
+ {
559
+ id: "RootLayout",
560
+ label: "Root",
561
+ description: "Root page container with direct flex control. Ideal as the base of every page.",
562
+ category: "page",
563
+ slots: [{ name: "children", label: "Content", required: true, kind: "children" }],
564
+ responsive: false,
565
+ animated: false,
566
+ tags: ["root", "page", "container", "flex"],
567
+ themeMapping: { root: "background" },
568
+ props: [
569
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "background" },
570
+ { name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
571
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 0 },
572
+ { name: "justifyContent", label: "Justify", type: "enum", group: "layout", default: "flex-start", options: ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"] },
573
+ { name: "alignItems", label: "Align Items", type: "enum", group: "layout", default: "stretch", options: ["stretch", "flex-start", "center", "flex-end", "baseline"] },
574
+ { name: "flexDirection", label: "Direction", type: "enum", group: "layout", default: "column", options: ["column", "row"] },
575
+ { name: "gap", label: "Gap", type: "number", group: "layout", default: 0 }
576
+ ]
577
+ },
578
+ {
579
+ id: "VoidLayout",
580
+ label: "Vide",
581
+ description: "Conteneur minimal avec scroll, padding et maxWidth optionnels.",
582
+ category: "page",
583
+ slots: [{ name: "children", label: "Contenu", required: true, kind: "children" }],
584
+ responsive: false,
585
+ animated: false,
586
+ tags: ["blank", "empty", "minimal", "wrapper"],
587
+ props: [
588
+ { name: "maxWidth", label: "Largeur max", type: "number", group: "layout", description: "Largeur maximale du conteneur" },
589
+ { name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
590
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
591
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
592
+ { name: "padding", label: "Padding", type: "padding", group: "layout" },
593
+ { name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
594
+ { name: "centerContent", label: "Centrer contenu", type: "boolean", group: "layout", default: false },
595
+ { name: "showBorder", label: "Bordure visible", type: "boolean", group: "style", default: false }
596
+ ]
597
+ },
598
+ {
599
+ id: "CenteredLayout",
600
+ label: "Centr\xE9",
601
+ description: "Contenu centr\xE9 avec carte optionnelle et maxWidth.",
602
+ category: "page",
603
+ slots: [{ name: "children", label: "Contenu", required: true, kind: "children" }],
604
+ responsive: true,
605
+ animated: false,
606
+ tags: ["centered", "form", "onboarding", "modal"],
607
+ themeMapping: { root: "background", surface: "card" },
608
+ props: [
609
+ { name: "maxWidth", label: "Largeur max carte", type: "number", group: "layout", default: 500 },
610
+ { name: "padding", label: "Padding carte", type: "spacing", group: "layout", default: 4 },
611
+ { name: "background", label: "Fond page", type: "color", group: "style", themeDefault: "background" },
612
+ { name: "cardBackground", label: "Fond carte", type: "color", group: "style", themeDefault: "card" },
613
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "3xl" },
614
+ { name: "shadowed", label: "Ombre carte", type: "boolean", group: "style", default: false },
615
+ { name: "mobilePadding", label: "Padding mobile", type: "spacing", group: "layout", default: 4 },
616
+ { name: "desktopPadding", label: "Padding desktop", type: "spacing", group: "layout", default: 6 }
617
+ ]
618
+ },
619
+ {
620
+ id: "AuthLayout",
621
+ label: "Authentification",
622
+ description: "Panel branding (desktop) + formulaire centr\xE9. Mobile : plein \xE9cran.",
623
+ category: "page",
624
+ themeMapping: { root: "background", surface: "card" },
625
+ slots: [
626
+ { name: "children", label: "Formulaire", required: true, kind: "children" },
627
+ { name: "branding", label: "Panel branding", required: false, kind: "named" }
628
+ ],
629
+ responsive: true,
630
+ animated: false,
631
+ tags: ["auth", "login", "signup", "onboarding"],
632
+ props: [
633
+ { name: "brandingBackground", label: "Fond branding", type: "color", group: "style", themeDefault: "card" },
634
+ { name: "background", label: "Fond", type: "background", group: "style" },
635
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
636
+ { name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
637
+ { name: "brandingRatio", label: "Ratio branding", type: "ratio", group: "layout", default: 0.5, min: 0, max: 1 },
638
+ { name: "padding", label: "Padding formulaire", type: "spacing", group: "layout", default: 5 },
639
+ { name: "shadowed", label: "Ombre mobile", type: "boolean", group: "style", default: true },
640
+ { name: "formMaxWidth", label: "Largeur max formulaire", type: "number", group: "layout", default: 520 },
641
+ { name: "formScrollPaddingY", label: "Padding scroll Y", type: "spacing", group: "layout", default: 8 },
642
+ { name: "formScrollPaddingX", label: "Padding scroll X", type: "spacing", group: "layout", default: 4 }
643
+ ]
644
+ },
645
+ {
646
+ id: "DashboardLayout",
647
+ label: "Dashboard",
648
+ description: "Header fixe, sidebar collapsible, contenu scrollable, footer optionnel.",
649
+ category: "page",
650
+ themeMapping: { root: "background", surface: "card" },
651
+ slots: [
652
+ { name: "header", label: "Header", required: true, kind: "named" },
653
+ { name: "content", label: "Contenu", required: true, kind: "named" },
654
+ { name: "sidebar", label: "Sidebar", required: false, kind: "named" },
655
+ { name: "footer", label: "Footer", required: false, kind: "named" }
656
+ ],
657
+ responsive: true,
658
+ animated: true,
659
+ dependencies: ["react-native-reanimated"],
660
+ tags: ["dashboard", "admin", "sidebar", "header"],
661
+ props: [
662
+ { name: "sidebarWidth", label: "Largeur sidebar", type: "number", group: "layout", default: 260 },
663
+ { name: "sidebarCollapsedWidth", label: "Largeur sidebar r\xE9duite", type: "number", group: "layout", default: 70 },
664
+ { name: "headerHeight", label: "Hauteur header", type: "number", group: "layout", default: 70 },
665
+ { name: "footerHeight", label: "Hauteur footer", type: "number", group: "layout", default: 60 },
666
+ { name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
667
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
668
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
669
+ { name: "disableContentScroll", label: "D\xE9sactiver scroll contenu", type: "boolean", group: "behavior", default: false },
670
+ { name: "headerBackground", label: "Fond header", type: "color", group: "style", themeDefault: "card" },
671
+ { name: "sidebarBackground", label: "Fond sidebar", type: "color", group: "style", themeDefault: "card" },
672
+ { name: "contentBackground", label: "Fond contenu", type: "color", group: "style", themeDefault: "card" },
673
+ { name: "footerBackground", label: "Fond footer", type: "color", group: "style", themeDefault: "card" },
674
+ { name: "headerPaddingX", label: "Padding X header", type: "spacing", group: "layout", default: 4 },
675
+ { name: "mobileHeaderMinHeight", label: "Hauteur min header mobile", type: "number", group: "layout", default: 60 }
676
+ ]
677
+ },
678
+ {
679
+ id: "ResponsiveLayout",
680
+ label: "Responsive",
681
+ description: "Layout adaptatif header/sidebar/content/footer avec 3 modes.",
682
+ category: "page",
683
+ themeMapping: { root: "background" },
684
+ slots: [
685
+ { name: "content", label: "Contenu", required: true, kind: "named" },
686
+ { name: "header", label: "Header", required: false, kind: "named" },
687
+ { name: "sidebar", label: "Sidebar", required: false, kind: "named" },
688
+ { name: "footer", label: "Footer", required: false, kind: "named" }
689
+ ],
690
+ responsive: true,
691
+ animated: false,
692
+ tags: ["responsive", "adaptive", "header", "sidebar", "footer"],
693
+ props: [
694
+ { name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
695
+ { name: "headerHeight", label: "Hauteur header", type: "number", group: "layout", default: 60 },
696
+ { name: "sidebarWidth", label: "Largeur sidebar", type: "number", group: "layout", default: 260 },
697
+ { name: "footerHeight", label: "Hauteur footer", type: "number", group: "layout", default: 60 },
698
+ { name: "adaptiveMode", label: "Mode adaptatif", type: "enum", group: "behavior", default: "basic", options: ["basic", "sidebar", "full"] },
699
+ { name: "hideHeader", label: "Cacher header", type: "boolean", group: "behavior", default: false },
700
+ { name: "hideFooter", label: "Cacher footer", type: "boolean", group: "behavior", default: false },
701
+ { name: "collapseFooterOnTablet", label: "Footer compact tablette", type: "boolean", group: "behavior", default: false },
702
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
703
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
704
+ { name: "headerBackground", label: "Fond header", type: "color", group: "style", themeDefault: "background" },
705
+ { name: "sidebarBackground", label: "Fond sidebar", type: "color", group: "style", themeDefault: "background" },
706
+ { name: "footerBackground", label: "Fond footer", type: "color", group: "style", themeDefault: "background" },
707
+ { name: "contentBackground", label: "Fond contenu", type: "color", group: "style" },
708
+ { name: "padding", label: "Padding", type: "padding", group: "layout" },
709
+ { name: "contentPadding", label: "Padding contenu", type: "padding", group: "layout" },
710
+ { name: "mobileHeaderHeight", label: "Hauteur header mobile", type: "number", group: "layout", default: 56 },
711
+ { name: "tabletFooterHeight", label: "Hauteur footer tablette", type: "number", group: "layout", default: 48 },
712
+ { name: "sidebarMaxWidth", label: "Largeur max sidebar", type: "number", group: "layout", default: 320 }
713
+ ]
714
+ },
715
+ // ═══════════════════════════════════════════════════════════════════════════
716
+ // CONTENT
717
+ // ═══════════════════════════════════════════════════════════════════════════
718
+ {
719
+ id: "FlexLayout",
720
+ label: "Flex",
721
+ description: "Direction, wrap et espacement adaptatifs. Scroll optionnel.",
722
+ category: "content",
723
+ themeMapping: { root: "background" },
724
+ slots: [{ name: "children", label: "\xC9l\xE9ments", required: true, kind: "children" }],
725
+ responsive: true,
726
+ animated: false,
727
+ tags: ["flex", "row", "column", "wrap", "adaptive"],
728
+ props: [
729
+ { name: "direction", label: "Direction", type: "enum", group: "layout", default: "row", options: ["row", "column"] },
730
+ { name: "wrap", label: "Retour \xE0 la ligne", type: "boolean", group: "layout", default: false },
731
+ { name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 4 },
732
+ { name: "align", label: "Align Items", type: "enum", group: "layout", default: "stretch", options: ["stretch", "flex-start", "center", "flex-end", "baseline"] },
733
+ { name: "justify", label: "Justify Content", type: "enum", group: "layout", default: "flex-start", options: ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"] },
734
+ { name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
735
+ { name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: false },
736
+ { name: "padding", label: "Padding", type: "padding", group: "layout" },
737
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
738
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" }
739
+ ]
740
+ },
741
+ {
742
+ id: "GridLayout",
743
+ label: "Grille",
744
+ description: "Grille responsive avec colonnes adaptatives.",
745
+ category: "content",
746
+ themeMapping: { root: "background", surface: "card" },
747
+ slots: [{ name: "items", label: "Cellules", required: true, kind: "items" }],
748
+ responsive: true,
749
+ animated: false,
750
+ previewItemCount: 6,
751
+ tags: ["grid", "columns", "responsive"],
752
+ props: [
753
+ { name: "columns", label: "Colonnes", type: "number", group: "layout", description: "Nombre de colonnes (auto si omis)" },
754
+ { name: "cellHeight", label: "Hauteur cellule", type: "number", group: "layout", description: "Hauteur fixe en px \u2014 omis = adaptatif au contenu" },
755
+ { name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
756
+ { name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
757
+ { name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: false },
758
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 0 },
759
+ { name: "itemBackground", label: "Fond items", type: "color", group: "style", themeDefault: "card" },
760
+ { name: "itemBorderRadius", label: "Rayon items", type: "radius", group: "style", default: "none" },
761
+ { name: "background", label: "Fond", type: "color", group: "style", default: "transparent" },
762
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
763
+ { name: "compact", label: "Mode compact", type: "boolean", group: "behavior", default: false }
764
+ ]
765
+ },
766
+ {
767
+ id: "BentoLayout",
768
+ label: "Bento",
769
+ description: "Grille bento box avec cellules de tailles vari\xE9es.",
770
+ category: "content",
771
+ themeMapping: { root: "background" },
772
+ slots: [{ name: "items", label: "Items", required: true, kind: "items" }],
773
+ responsive: true,
774
+ animated: false,
775
+ previewItemCount: 5,
776
+ tags: ["bento", "grid", "mosaic", "dashboard"],
777
+ props: [
778
+ { name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 2 },
779
+ { name: "itemBackground", label: "Fond items", type: "color", group: "style", themeDefault: "card" },
780
+ { name: "itemBorderRadius", label: "Rayon items", type: "radius", group: "style", default: "none" },
781
+ { name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
782
+ { name: "maxWidth", label: "Largeur max", type: "number", group: "layout", default: 1200 },
783
+ { name: "baseHeight", label: "Hauteur de base", type: "number", group: "layout", default: 200 },
784
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
785
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
786
+ { name: "cellConfig", label: "Config cellules", type: "json", group: "content", default: [] }
787
+ ]
788
+ },
789
+ {
790
+ id: "MasonryLayout",
791
+ label: "Masonry",
792
+ description: "Grille masonry multi-colonnes.",
793
+ category: "content",
794
+ themeMapping: { root: "background", surface: "card" },
795
+ slots: [{ name: "items", label: "Items", required: true, kind: "items" }],
796
+ responsive: false,
797
+ animated: false,
798
+ previewItemCount: 6,
799
+ tags: ["masonry", "pinterest", "waterfall"],
800
+ props: [
801
+ { name: "columns", label: "Colonnes", type: "number", group: "layout", default: 2 },
802
+ { name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 1 },
803
+ { name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
804
+ { name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
805
+ { name: "background", label: "Fond", type: "color", group: "style", default: "transparent" },
806
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
807
+ { name: "itemBackground", label: "Fond items", type: "color", group: "style", themeDefault: "card" },
808
+ { name: "itemBorderRadius", label: "Rayon items", type: "radius", group: "style", default: "none" },
809
+ { name: "padding", label: "Padding", type: "padding", group: "layout" }
810
+ ]
811
+ },
812
+ {
813
+ id: "SplitLayout",
814
+ label: "Split",
815
+ description: "Deux panneaux (gauche/droite ou haut/bas) avec scroll ind\xE9pendant.",
816
+ category: "content",
817
+ themeMapping: { root: "background", left: "card", right: "card" },
818
+ slots: [
819
+ { name: "left", label: "Panneau gauche", required: true, kind: "named" },
820
+ { name: "right", label: "Panneau droit", required: true, kind: "named" }
821
+ ],
822
+ responsive: true,
823
+ animated: false,
824
+ tags: ["split", "two-pane", "master-detail"],
825
+ props: [
826
+ { name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
827
+ { name: "leftWidth", label: "Largeur gauche fixe", type: "number", group: "layout" },
828
+ { name: "ratio", label: "Ratio gauche", type: "ratio", group: "layout", default: 0.5, min: 0, max: 1 },
829
+ { name: "orientation", label: "Orientation", type: "enum", group: "layout", default: "horizontal", options: ["horizontal", "vertical"] },
830
+ { name: "hideLeftOnMobile", label: "Cacher gauche mobile", type: "boolean", group: "behavior", default: false },
831
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
832
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
833
+ { name: "leftBackground", label: "Fond gauche", type: "color", group: "style", themeDefault: "card" },
834
+ { name: "rightBackground", label: "Fond droit", type: "color", group: "style", themeDefault: "card" },
835
+ { name: "leftBorderRadius", label: "Rayon gauche", type: "radius", group: "style", default: "none" },
836
+ { name: "rightBorderRadius", label: "Rayon droit", type: "radius", group: "style", default: "none" }
837
+ ]
838
+ },
839
+ {
840
+ id: "FooterLayout",
841
+ label: "Footer",
842
+ description: "Contenu principal avec footer fixe ou scrollable.",
843
+ category: "content",
844
+ themeMapping: { root: "background" },
845
+ slots: [
846
+ { name: "content", label: "Contenu", required: true, kind: "named" },
847
+ { name: "footer", label: "Footer", required: true, kind: "named" }
848
+ ],
849
+ responsive: false,
850
+ animated: false,
851
+ tags: ["footer", "sticky", "bottom-bar"],
852
+ props: [
853
+ { name: "footerHeight", label: "Hauteur footer", type: "number", group: "layout", default: 60 },
854
+ { name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
855
+ { name: "sticky", label: "Footer sticky", type: "boolean", group: "behavior", default: false },
856
+ { name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
857
+ { name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
858
+ { name: "footerBackground", label: "Fond footer", type: "color", group: "style", themeDefault: "background" },
859
+ { name: "footerBorderRadius", label: "Rayon footer", type: "radius", group: "style", default: "none" },
860
+ { name: "contentBorderRadius", label: "Rayon contenu", type: "radius", group: "style", default: "none" },
861
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
862
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
863
+ { name: "padding", label: "Padding contenu", type: "spacing", group: "layout", default: 5 },
864
+ { name: "footerPadding", label: "Padding footer", type: "spacing", group: "layout", default: 5 },
865
+ { name: "compact", label: "Mode compact", type: "boolean", group: "behavior", default: false }
866
+ ]
867
+ },
868
+ {
869
+ id: "CrossTabLayout",
870
+ label: "Cross Tab",
871
+ description: "Grille r\xE9ordonnnable par drag & drop.",
872
+ category: "content",
873
+ themeMapping: { surface: "card" },
874
+ constants: {
875
+ springConfig: { damping: 18, stiffness: 120, mass: 0.5 }
876
+ },
877
+ slots: [{ name: "items", label: "Widgets", required: true, kind: "items" }],
878
+ responsive: false,
879
+ animated: true,
880
+ previewItemCount: 4,
881
+ dependencies: ["react-native-reanimated", "react-native-gesture-handler", "expo-haptics"],
882
+ tags: ["drag", "drop", "reorder", "widgets", "grid"],
883
+ props: [
884
+ { name: "columns", label: "Colonnes", type: "number", group: "layout", default: 2 },
885
+ { name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 4 },
886
+ { name: "itemBackground", label: "Fond items", type: "color", group: "style", themeDefault: "card" },
887
+ { name: "itemBorderRadius", label: "Rayon items", type: "number", group: "style", default: 28 },
888
+ { name: "scrollEnabled", label: "Scroll activ\xE9", type: "boolean", group: "behavior", default: true },
889
+ { name: "springDamping", label: "Amortissement spring", type: "number", group: "behavior", default: 18 },
890
+ { name: "springStiffness", label: "Raideur spring", type: "number", group: "behavior", default: 120 },
891
+ { name: "longPressDuration", label: "Dur\xE9e long-press", type: "number", group: "behavior", default: 250 },
892
+ { name: "dragScale", label: "\xC9chelle drag", type: "ratio", group: "behavior", default: 1.05, min: 1, max: 1.5 },
893
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" }
894
+ ]
895
+ },
896
+ // ═══════════════════════════════════════════════════════════════════════════
897
+ // NAVIGATION
898
+ // ═══════════════════════════════════════════════════════════════════════════
899
+ {
900
+ id: "SidebarLayout",
901
+ label: "Sidebar",
902
+ description: "Contenu avec sidebar lat\xE9rale, collapsible sur mobile.",
903
+ category: "navigation",
904
+ themeMapping: { root: "background", sidebar: "card", border: "border" },
905
+ slots: [
906
+ { name: "sidebar", label: "Sidebar", required: true, kind: "named" },
907
+ { name: "content", label: "Contenu", required: true, kind: "named" }
908
+ ],
909
+ responsive: true,
910
+ animated: false,
911
+ tags: ["sidebar", "navigation", "menu", "resizable"],
912
+ props: [
913
+ { name: "sidebarWidth", label: "Largeur sidebar", type: "number", group: "layout", default: 280 },
914
+ { name: "position", label: "Position sidebar", type: "enum", group: "layout", default: "left", options: ["left", "right"] },
915
+ { name: "collapsible", label: "Collapsible mobile", type: "boolean", group: "behavior", default: true },
916
+ { name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 4 },
917
+ { name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
918
+ { name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
919
+ { name: "background", label: "Fond", type: "background", group: "style" },
920
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
921
+ { name: "sidebarBackground", label: "Fond sidebar", type: "background", group: "style" },
922
+ { name: "sidebarBorderRadius", label: "Rayon sidebar", type: "radius", group: "style", default: "none" },
923
+ { name: "padding", label: "Padding", type: "padding", group: "layout" },
924
+ { name: "resizable", label: "Redimensionnable", type: "boolean", group: "behavior", default: false },
925
+ { name: "sidebarMinWidth", label: "Largeur min sidebar", type: "number", group: "layout", default: 150 },
926
+ { name: "sidebarMaxWidth", label: "Largeur max sidebar", type: "number", group: "layout", default: 600 }
927
+ ]
928
+ },
929
+ {
930
+ id: "BottomDrawerLayout",
931
+ label: "Tiroir bas",
932
+ description: "Tiroir inf\xE9rieur anim\xE9 avec geste de swipe.",
933
+ category: "navigation",
934
+ themeMapping: { root: "background", drawer: "background", accent: "primary", border: "border" },
935
+ constants: {
936
+ springConfig: { damping: 25, stiffness: 200, mass: 0.5, overshootClamping: true }
937
+ },
938
+ slots: [
939
+ { name: "content", label: "Contenu principal", required: true, kind: "named" },
940
+ { name: "drawerContent", label: "Contenu du tiroir", required: true, kind: "named" }
941
+ ],
942
+ responsive: true,
943
+ animated: true,
944
+ dependencies: ["react-native-reanimated", "react-native-gesture-handler", "expo-haptics"],
945
+ tags: ["drawer", "bottom-sheet", "swipe", "modal"],
946
+ props: [
947
+ { name: "drawerHeight", label: "Hauteur tiroir", type: "number", group: "layout", default: 400 },
948
+ { name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
949
+ { name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
950
+ { name: "drawerBackground", label: "Fond tiroir", type: "color", group: "style", themeDefault: "background" },
951
+ { name: "drawerBorderRadius", label: "Rayon tiroir", type: "radius", group: "style", default: "3xl" },
952
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
953
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
954
+ { name: "defaultOpen", label: "Ouvert par d\xE9faut", type: "boolean", group: "behavior", default: false },
955
+ { name: "handleColor", label: "Couleur handle", type: "color", group: "style", themeDefault: "primary" },
956
+ { name: "backdropOpacity", label: "Opacit\xE9 backdrop", type: "ratio", group: "style", default: 0.4, min: 0, max: 1 },
957
+ { name: "contentScaleWhenOpen", label: "Scale contenu ouvert", type: "ratio", group: "behavior", default: 0.95, min: 0.5, max: 1 },
958
+ { name: "handleBarColor", label: "Couleur barre handle", type: "color", group: "style", themeDefault: "border" },
959
+ { name: "handleButtonSize", label: "Taille bouton handle", type: "number", group: "layout", default: 56 }
960
+ ]
961
+ },
962
+ {
963
+ id: "TopDrawerLayout",
964
+ label: "Tiroir haut",
965
+ description: "Tiroir sup\xE9rieur anim\xE9 avec geste de swipe.",
966
+ category: "navigation",
967
+ themeMapping: { root: "background", drawer: "background", border: "border", muted: "muted" },
968
+ constants: {
969
+ springConfig: { damping: 25, stiffness: 200, mass: 0.5, overshootClamping: true }
970
+ },
971
+ slots: [
972
+ { name: "content", label: "Contenu principal", required: true, kind: "named" },
973
+ { name: "drawerContent", label: "Contenu du tiroir", required: true, kind: "named" }
974
+ ],
975
+ responsive: false,
976
+ animated: true,
977
+ dependencies: ["react-native-reanimated", "react-native-gesture-handler", "expo-haptics"],
978
+ tags: ["drawer", "top-sheet", "swipe", "notification"],
979
+ props: [
980
+ { name: "drawerHeight", label: "Hauteur tiroir", type: "number", group: "layout", default: 600 },
981
+ { name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
982
+ { name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
983
+ { name: "drawerBackground", label: "Fond tiroir", type: "color", group: "style", themeDefault: "background" },
984
+ { name: "drawerBorderRadius", label: "Rayon tiroir", type: "radius", group: "style", default: "3xl" },
985
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
986
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
987
+ { name: "defaultOpen", label: "Ouvert par d\xE9faut", type: "boolean", group: "behavior", default: false },
988
+ { name: "handleColor", label: "Couleur handle", type: "color", group: "style", themeDefault: "border" },
989
+ { name: "backdropOpacity", label: "Opacit\xE9 backdrop", type: "ratio", group: "style", default: 0.4, min: 0, max: 1 },
990
+ { name: "contentScaleWhenOpen", label: "Scale contenu ouvert", type: "ratio", group: "behavior", default: 0.95, min: 0.5, max: 1 },
991
+ { name: "closeButtonBackground", label: "Fond bouton fermer", type: "color", group: "style", themeDefault: "muted" },
992
+ { name: "closeButtonSize", label: "Taille bouton fermer", type: "number", group: "layout", default: 36 },
993
+ { name: "closeButtonBorderColor", label: "Bordure bouton fermer", type: "color", group: "style", themeDefault: "border" },
994
+ { name: "closeButtonTextColor", label: "Texte bouton fermer", type: "color", group: "style", themeDefault: "mutedForeground" }
995
+ ]
996
+ },
997
+ {
998
+ id: "LeftDrawerLayout",
999
+ label: "Tiroir gauche",
1000
+ description: "Tiroir lat\xE9ral gauche anim\xE9 avec geste de swipe.",
1001
+ category: "navigation",
1002
+ themeMapping: { root: "background", drawer: "background", accent: "primary", border: "border" },
1003
+ constants: {
1004
+ springConfig: { damping: 25, stiffness: 200, mass: 0.5, overshootClamping: true }
1005
+ },
1006
+ slots: [
1007
+ { name: "content", label: "Contenu principal", required: true, kind: "named" },
1008
+ { name: "drawerContent", label: "Contenu du tiroir", required: true, kind: "named" }
1009
+ ],
1010
+ responsive: false,
1011
+ animated: true,
1012
+ dependencies: ["react-native-reanimated", "react-native-gesture-handler", "expo-haptics"],
1013
+ tags: ["drawer", "side-menu", "swipe", "navigation"],
1014
+ props: [
1015
+ { name: "drawerWidth", label: "Largeur tiroir", type: "number", group: "layout", default: 280 },
1016
+ { name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
1017
+ { name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
1018
+ { name: "drawerBackground", label: "Fond tiroir", type: "color", group: "style", themeDefault: "background" },
1019
+ { name: "drawerBorderRadius", label: "Rayon tiroir", type: "radius", group: "style", default: "none" },
1020
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
1021
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
1022
+ { name: "defaultOpen", label: "Ouvert par d\xE9faut", type: "boolean", group: "behavior", default: false },
1023
+ { name: "handleColor", label: "Couleur handle", type: "color", group: "style", themeDefault: "primary" },
1024
+ { name: "backdropOpacity", label: "Opacit\xE9 backdrop", type: "ratio", group: "style", default: 0.4, min: 0, max: 1 },
1025
+ { name: "contentScaleWhenOpen", label: "Scale contenu ouvert", type: "ratio", group: "behavior", default: 0.98, min: 0.5, max: 1 },
1026
+ { name: "handleBarColor", label: "Couleur barre handle", type: "color", group: "style", themeDefault: "border" },
1027
+ { name: "handleBarWidth", label: "Largeur zone geste", type: "number", group: "layout", default: 40 }
1028
+ ]
1029
+ },
1030
+ // ═══════════════════════════════════════════════════════════════════════════
1031
+ // CARD
1032
+ // ═══════════════════════════════════════════════════════════════════════════
1033
+ {
1034
+ id: "DeckLayout",
1035
+ label: "Deck",
1036
+ description: "Stack de cartes swipeable avec effet de profondeur.",
1037
+ category: "card",
1038
+ constants: {
1039
+ swipeThreshold: 60,
1040
+ exitDistance: 450,
1041
+ springConfig: { damping: 20, stiffness: 200, mass: 0.5 }
1042
+ },
1043
+ slots: [{ name: "items", label: "Cartes", required: true, kind: "items" }],
1044
+ responsive: false,
1045
+ animated: true,
1046
+ previewItemCount: 4,
1047
+ dependencies: ["react-native-reanimated", "react-native-gesture-handler", "expo-haptics"],
1048
+ tags: ["deck", "cards", "swipe", "tinder", "stack"],
1049
+ props: [
1050
+ { name: "peekOffset", label: "D\xE9calage peek", type: "number", group: "layout", default: 12 },
1051
+ { name: "peekScale", label: "\xC9chelle peek", type: "ratio", group: "layout", default: 0.05, min: 0, max: 0.2 },
1052
+ { name: "cycle", label: "Boucle", type: "boolean", group: "behavior", default: false },
1053
+ { name: "cardShadow", label: "Ombre cartes", type: "boolean", group: "style", default: true },
1054
+ { name: "cardBackground", label: "Fond carte", type: "color", group: "style", themeDefault: "card" },
1055
+ { name: "cardBorderRadius", label: "Rayon carte", type: "radius", group: "style", default: 24 },
1056
+ { name: "containerWidth", label: "Largeur container", type: "string", group: "layout", default: "90%" },
1057
+ { name: "containerHeight", label: "Hauteur container", type: "string", group: "layout", default: "75%" },
1058
+ { name: "peekCount", label: "Cartes en arri\xE8re", type: "number", group: "layout", default: 2 },
1059
+ { name: "peekRotation", label: "Rotation peek", type: "number", group: "layout", default: 0 },
1060
+ { name: "direction", label: "Direction", type: "enum", group: "behavior", default: "horizontal", options: ["horizontal", "vertical"] },
1061
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" }
1062
+ ]
1063
+ },
1064
+ {
1065
+ id: "FlipLayout",
1066
+ label: "Flip",
1067
+ description: "Carousel avec flip recto/verso et swipe horizontal.",
1068
+ category: "card",
1069
+ themeMapping: { root: "background", surface: "card" },
1070
+ constants: {
1071
+ flipThreshold: 22,
1072
+ scaleFactor: 0.92,
1073
+ flipScaleFactor: 0.9,
1074
+ springNoBounce: { damping: 30, stiffness: 240, mass: 0.6 },
1075
+ springSnap: { damping: 35, stiffness: 300, mass: 0.5 },
1076
+ exitLeft: -700,
1077
+ exitRight: 700
1078
+ },
1079
+ slots: [
1080
+ { name: "items", label: "Faces recto", required: true, kind: "items" },
1081
+ { name: "backContent", label: "Faces verso", required: false, kind: "named-array" }
1082
+ ],
1083
+ responsive: false,
1084
+ animated: true,
1085
+ previewItemCount: 3,
1086
+ dependencies: ["react-native-reanimated", "react-native-gesture-handler"],
1087
+ tags: ["flip", "card", "recto-verso", "flashcard"],
1088
+ props: [
1089
+ { name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
1090
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
1091
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
1092
+ { name: "cardBackground", label: "Fond carte", type: "color", group: "style", themeDefault: "card" },
1093
+ { name: "flipPerspective", label: "Perspective flip", type: "number", group: "layout", default: 1200 },
1094
+ { name: "swipeThreshold", label: "Seuil swipe", type: "number", group: "behavior", default: 40 },
1095
+ { name: "padding", label: "Padding", type: "padding", group: "layout" },
1096
+ { name: "cardBorderRadius", label: "Rayon carte", type: "radius", group: "style", default: 20 },
1097
+ { name: "cardAspectRatio", label: "Ratio carte (web)", type: "number", group: "layout", default: 0.5625, description: "Ratio largeur/hauteur sur web \u2014 omis = adaptatif" },
1098
+ { name: "cardMaxHeight", label: "Hauteur max carte", type: "number", group: "layout", description: "Hauteur max en px \u2014 omis = pas de limite" },
1099
+ { name: "dezoomDuration", label: "Dur\xE9e d\xE9zoom", type: "number", group: "behavior", default: 120 },
1100
+ { name: "flipDuration", label: "Dur\xE9e flip", type: "number", group: "behavior", default: 320 },
1101
+ { name: "slideOutDuration", label: "Dur\xE9e slide out", type: "number", group: "behavior", default: 140 }
1102
+ ]
1103
+ },
1104
+ {
1105
+ id: "SwiperLayout",
1106
+ label: "Swiper",
1107
+ description: "Carousel swipeable multi-directionnel avec pr\xE9chargement.",
1108
+ category: "card",
1109
+ themeMapping: { root: "background", surface: "card" },
1110
+ constants: {
1111
+ scaleFactor: 0.85
1112
+ },
1113
+ slots: [{ name: "items", label: "Slides", required: true, kind: "items" }],
1114
+ responsive: false,
1115
+ animated: true,
1116
+ previewItemCount: 4,
1117
+ dependencies: ["react-native-reanimated", "react-native-gesture-handler"],
1118
+ tags: ["swiper", "carousel", "slides", "stories"],
1119
+ props: [
1120
+ { name: "enableSwipeUp", label: "Swipe haut", type: "boolean", group: "behavior", default: false },
1121
+ { name: "enableSwipeDown", label: "Swipe bas", type: "boolean", group: "behavior", default: false },
1122
+ { name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
1123
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
1124
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
1125
+ { name: "cardBackground", label: "Fond carte", type: "color", group: "style", themeDefault: "card" },
1126
+ { name: "cardBorderRadius", label: "Rayon carte", type: "radius", group: "style", default: "none" },
1127
+ { name: "showCardCount", label: "Compteur cartes", type: "boolean", group: "behavior", default: false },
1128
+ { name: "preloadRange", label: "Pr\xE9chargement", type: "number", group: "behavior", default: 2 },
1129
+ { name: "swipeThreshold", label: "Seuil swipe", type: "number", group: "behavior", default: 40 },
1130
+ { name: "padding", label: "Padding", type: "padding", group: "layout" },
1131
+ { name: "springDamping", label: "Amortissement spring", type: "number", group: "behavior", default: 12 },
1132
+ { name: "springStiffness", label: "Raideur spring", type: "number", group: "behavior", default: 160 },
1133
+ { name: "cardCountBackground", label: "Fond compteur", type: "color", group: "style", default: "rgba(0,0,0,0.6)" },
1134
+ { name: "cardCountTextColor", label: "Texte compteur", type: "color", group: "style", default: "#fff" }
1135
+ ]
1136
+ },
1137
+ // ═══════════════════════════════════════════════════════════════════════════
1138
+ // SCROLL
1139
+ // ═══════════════════════════════════════════════════════════════════════════
1140
+ {
1141
+ id: "ScrollLayout",
1142
+ label: "Scroll",
1143
+ description: "Structure scrollable avec header/footer sticky ou inline.",
1144
+ category: "scroll",
1145
+ themeMapping: { root: "background", surface: "card" },
1146
+ slots: [
1147
+ { name: "content", label: "Contenu", required: true, kind: "named" },
1148
+ { name: "header", label: "Header", required: false, kind: "named" },
1149
+ { name: "footer", label: "Footer", required: false, kind: "named" }
1150
+ ],
1151
+ responsive: true,
1152
+ animated: false,
1153
+ tags: ["scroll", "sticky", "header", "footer", "safe-area"],
1154
+ props: [
1155
+ { name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 4 },
1156
+ { name: "useSafeAreaInsets", label: "Safe area", type: "boolean", group: "behavior", default: true },
1157
+ { name: "headerHeight", label: "Hauteur header", type: "number", group: "layout", default: 80 },
1158
+ { name: "footerHeight", label: "Hauteur footer", type: "number", group: "layout", default: 60 },
1159
+ { name: "scrollDirection", label: "Direction scroll", type: "enum", group: "behavior", default: "vertical", options: ["vertical", "horizontal", "both"] },
1160
+ { name: "showScrollIndicator", label: "Indicateur scroll", type: "boolean", group: "behavior", default: false },
1161
+ { name: "enableBounces", label: "Rebond", type: "boolean", group: "behavior", default: true },
1162
+ { name: "stickyHeader", label: "Header sticky", type: "boolean", group: "behavior", default: false },
1163
+ { name: "stickyFooter", label: "Footer sticky", type: "boolean", group: "behavior", default: false },
1164
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
1165
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
1166
+ { name: "headerBackground", label: "Fond header", type: "color", group: "style", themeDefault: "card" },
1167
+ { name: "footerBackground", label: "Fond footer", type: "color", group: "style", themeDefault: "card" },
1168
+ { name: "contentBackground", label: "Fond contenu", type: "color", group: "style" },
1169
+ { name: "headerPadding", label: "Padding header", type: "spacing", group: "layout", default: 4 },
1170
+ { name: "footerPadding", label: "Padding footer", type: "spacing", group: "layout", default: 4 },
1171
+ { name: "mobileHeaderHeight", label: "Hauteur header mobile", type: "number", group: "layout", default: 60 },
1172
+ { name: "mobileFooterHeight", label: "Hauteur footer mobile", type: "number", group: "layout", default: 50 }
1173
+ ]
1174
+ },
1175
+ {
1176
+ id: "HeaderContentLayout",
1177
+ label: "Header collapsible",
1178
+ description: "Header qui se r\xE9duit au scroll avec contenu principal.",
1179
+ category: "scroll",
1180
+ themeMapping: { root: "background", header: "card", content: "card" },
1181
+ slots: [
1182
+ { name: "header", label: "Header", required: true, kind: "named" },
1183
+ { name: "content", label: "Contenu", required: true, kind: "named" }
1184
+ ],
1185
+ responsive: false,
1186
+ animated: true,
1187
+ dependencies: ["react-native-reanimated"],
1188
+ tags: ["header", "collapsible", "scroll", "parallax"],
1189
+ props: [
1190
+ { name: "headerHeight", label: "Hauteur header", type: "number", group: "layout", default: 150 },
1191
+ { name: "headerCollapsedHeight", label: "Hauteur header r\xE9duit", type: "number", group: "layout", default: 60 },
1192
+ { name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
1193
+ { name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
1194
+ { name: "headerBackground", label: "Fond header", type: "color", group: "style", themeDefault: "card" },
1195
+ { name: "headerBorderRadius", label: "Rayon header", type: "radius", group: "style", default: "none" },
1196
+ { name: "contentBackground", label: "Fond contenu", type: "color", group: "style", themeDefault: "card" },
1197
+ { name: "contentBorderRadius", label: "Rayon contenu", type: "radius", group: "style", default: "none" },
1198
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
1199
+ { name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
1200
+ { name: "padding", label: "Padding contenu", type: "spacing", group: "layout", default: 5 },
1201
+ { name: "headerPadding", label: "Padding header", type: "spacing", group: "layout", default: 5 },
1202
+ { name: "scrollEventThrottle", label: "Throttle scroll event", type: "number", group: "behavior", default: 16 }
1203
+ ]
1204
+ },
1205
+ {
1206
+ id: "ParallaxLayout",
1207
+ label: "Parallax",
1208
+ description: "Rang\xE9es horizontales scrollables avec synchronisation parallaxe. Les items sont distribu\xE9s automatiquement en rang\xE9es selon itemsPerRow.",
1209
+ category: "scroll",
1210
+ slots: [{ name: "items", label: "Items", required: true, kind: "items" }],
1211
+ responsive: false,
1212
+ animated: true,
1213
+ previewItemCount: 9,
1214
+ dependencies: ["react-native-reanimated"],
1215
+ tags: ["parallax", "horizontal", "sync", "showcase"],
1216
+ props: [
1217
+ // Layout
1218
+ { name: "rowCount", label: "Nombre de rang\xE9es", type: "number", group: "layout", default: 3 },
1219
+ { name: "itemWidth", label: "Largeur item", type: "number", group: "layout", default: 200 },
1220
+ { name: "spacing", label: "Espacement vertical", type: "spacing", group: "layout", default: 4 },
1221
+ { name: "itemSpacing", label: "Espacement items", type: "number", group: "layout", default: 12 },
1222
+ // Style
1223
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
1224
+ { name: "rowBackground", label: "Fond rang\xE9e", type: "color", group: "style" },
1225
+ { name: "itemBackground", label: "Fond item", type: "color", group: "style", themeDefault: "card" },
1226
+ { name: "itemBorderRadius", label: "Rayon item", type: "radius", group: "style", default: "none" },
1227
+ { name: "rowBorderRadius", label: "Rayon rang\xE9e", type: "radius", group: "style", default: "none" },
1228
+ // Behavior
1229
+ { name: "alternateDirection", label: "Direction altern\xE9e", type: "boolean", group: "behavior", default: true },
1230
+ { name: "bounces", label: "Rebond scroll", type: "boolean", group: "behavior", default: false },
1231
+ { name: "showScrollIndicator", label: "Indicateur scroll", type: "boolean", group: "behavior", default: false },
1232
+ { name: "scrollEventThrottle", label: "Throttle scroll", type: "number", group: "behavior", default: 16 }
1233
+ ]
1234
+ },
1235
+ // ═══════════════════════════════════════════════════════════════════════════
1236
+ // SPECIAL
1237
+ // ═══════════════════════════════════════════════════════════════════════════
1238
+ {
1239
+ id: "TutoLayout",
1240
+ label: "Tutoriel",
1241
+ description: "Overlay de tutoriel avec zones highlight et gestes.",
1242
+ category: "special",
1243
+ themeMapping: { root: "background", accent: "primary", text: "foreground" },
1244
+ constants: {
1245
+ swipeThreshold: 40
1246
+ },
1247
+ slots: [{ name: "children", label: "Contenu \xE0 annoter", required: true, kind: "children" }],
1248
+ responsive: false,
1249
+ animated: true,
1250
+ dependencies: ["react-native-reanimated"],
1251
+ tags: ["tutorial", "onboarding", "highlight", "walkthrough"],
1252
+ props: [
1253
+ { name: "overlayOpacity", label: "Opacit\xE9 overlay", type: "ratio", group: "style", default: 0.78, min: 0, max: 1 },
1254
+ { name: "overlayColor", label: "Couleur overlay", type: "color", group: "style" },
1255
+ { name: "showSkip", label: "Bouton ignorer", type: "boolean", group: "behavior", default: true },
1256
+ { name: "nextLabel", label: "Label suivant", type: "string", group: "content", default: "Suivant" },
1257
+ { name: "finishLabel", label: "Label terminer", type: "string", group: "content", default: "Terminer" },
1258
+ { name: "accentColor", label: "Couleur accent", type: "color", group: "style", themeDefault: "primary" },
1259
+ { name: "textBackground", label: "Fond texte", type: "color", group: "style", themeDefault: "background" },
1260
+ { name: "textColor", label: "Couleur texte", type: "color", group: "style", themeDefault: "foreground" },
1261
+ { name: "mutedTextColor", label: "Texte secondaire", type: "color", group: "style", themeDefault: "mutedForeground" },
1262
+ { name: "steps", label: "\xC9tapes", type: "json", group: "content", default: [] }
1263
+ ]
1264
+ },
1265
+ {
1266
+ id: "SketchLayout",
1267
+ label: "Sketch (placeholder)",
1268
+ description: "Placeholder pour un canvas de dessin.",
1269
+ category: "special",
1270
+ slots: [],
1271
+ responsive: false,
1272
+ animated: false,
1273
+ tags: ["sketch", "draw", "canvas", "placeholder"],
1274
+ props: [
1275
+ { name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" }
1276
+ ]
1277
+ },
1278
+ {
1279
+ id: "Swipe2ScreenLayout",
1280
+ label: "Swipe to Screen",
1281
+ description: "Layout de pr\xE9sentation avec swipe vers un \xE9cran projet\xE9 et QR code.",
1282
+ category: "special",
1283
+ slots: [{ name: "items", label: "Slides", required: true, kind: "items" }],
1284
+ responsive: false,
1285
+ animated: true,
1286
+ previewItemCount: 3,
1287
+ dependencies: ["react-native-gesture-handler", "expo-camera", "expo-haptics"],
1288
+ tags: ["swipe", "projection", "qr", "slides"],
1289
+ props: [
1290
+ { name: "containerBackground", label: "Fond container", type: "color", group: "style", default: "#000" },
1291
+ { name: "screenBackground", label: "Fond \xE9cran", type: "color", group: "style", default: "#fff" },
1292
+ { name: "swipeThreshold", label: "Seuil swipe", type: "number", group: "behavior", default: 100 },
1293
+ { name: "projectedScale", label: "Scale projet\xE9", type: "ratio", group: "behavior", default: 0.8, min: 0.5, max: 1 },
1294
+ { name: "animationDuration", label: "Dur\xE9e animation", type: "number", group: "behavior", default: 300 },
1295
+ { name: "slides", label: "Slides", type: "json", group: "content", default: [] }
1296
+ ]
1297
+ },
1298
+ {
1299
+ id: "SystemLayout",
1300
+ label: "System UI",
1301
+ description: "Wrapper syst\xE8me g\xE9rant StatusBar, SafeAreaView et NavigationBar.",
1302
+ category: "special",
1303
+ slots: [{ name: "children", label: "Contenu", required: true, kind: "children" }],
1304
+ responsive: false,
1305
+ animated: false,
1306
+ dependencies: ["expo-status-bar", "react-native-safe-area-context"],
1307
+ tags: ["system", "statusbar", "navigation-bar", "safe-area"],
1308
+ props: [
1309
+ { name: "rootBackgroundColor", label: "Couleur fond racine", type: "color", group: "style", default: "#0c3ddbff" },
1310
+ { name: "statusBarContentStyle", label: "Style barre statut", type: "enum", group: "behavior", default: "auto", options: ["light", "dark", "auto"] },
1311
+ { name: "edges", label: "Bords safe area", type: "json", group: "behavior", default: ["top", "bottom", "left", "right"] },
1312
+ { name: "navigationBarContentStyle", label: "Style barre navigation", type: "enum", group: "behavior", options: ["light", "dark"] }
1313
+ ]
1314
+ }
1315
+ ];
1316
+
1317
+ // foundation/layout/registry/components.ts
1318
+ function getComponentMeta(id) {
1319
+ return componentRegistry.find((m) => m.id === id);
1320
+ }
1321
+ var componentRegistry = [
1322
+ {
1323
+ id: "Button",
1324
+ label: "Button",
1325
+ description: "Pressable button with variant and size support.",
1326
+ category: "action",
1327
+ tags: ["button", "cta", "action", "pressable"],
1328
+ themeMapping: { bg: "primary", text: "primaryForeground" },
1329
+ sizes: ["sm", "md", "lg"],
1330
+ variants: [
1331
+ {
1332
+ name: "primary",
1333
+ label: "Primary",
1334
+ overrides: { bg: void 0, color: void 0, borderWidth: 0 }
1335
+ },
1336
+ {
1337
+ name: "secondary",
1338
+ label: "Secondary",
1339
+ overrides: { bg: void 0, color: void 0, borderWidth: 0 }
1340
+ },
1341
+ {
1342
+ name: "outline",
1343
+ label: "Outline",
1344
+ overrides: { bg: "transparent", borderWidth: 1 }
1345
+ },
1346
+ {
1347
+ name: "ghost",
1348
+ label: "Ghost",
1349
+ overrides: { bg: "transparent", borderWidth: 0 }
1350
+ },
1351
+ {
1352
+ name: "destructive",
1353
+ label: "Destructive",
1354
+ overrides: { bg: void 0, color: void 0, borderWidth: 0 }
1355
+ }
1356
+ ],
1357
+ props: [
1358
+ { name: "label", label: "Label", type: "string", group: "content", default: "Button" },
1359
+ { name: "variant", label: "Variant", type: "enum", group: "style", default: "primary", options: ["primary", "secondary", "outline", "ghost", "destructive"] },
1360
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
1361
+ { name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
1362
+ { name: "loading", label: "Loading", type: "boolean", group: "behavior", default: false },
1363
+ { name: "fullWidth", label: "Full width", type: "boolean", group: "layout", default: false },
1364
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" },
1365
+ { name: "iconPosition", label: "Icon position", type: "enum", group: "layout", default: "left", options: ["left", "right"] }
1366
+ ]
1367
+ },
1368
+ {
1369
+ id: "TextInput",
1370
+ label: "Text Input",
1371
+ description: "Single-line text input with label, error state, and icon support.",
1372
+ category: "input",
1373
+ tags: ["input", "text", "field", "form"],
1374
+ themeMapping: { bg: "input", text: "foreground", border: "border", placeholder: "mutedForeground" },
1375
+ sizes: ["sm", "md", "lg"],
1376
+ variants: [
1377
+ { name: "outlined", label: "Outlined", overrides: { borderWidth: 1, bg: "transparent" } },
1378
+ { name: "filled", label: "Filled", overrides: { borderWidth: 0 } },
1379
+ { name: "underline", label: "Underline", overrides: { borderWidth: 0, borderBottomWidth: 1, borderRadius: "none" } }
1380
+ ],
1381
+ props: [
1382
+ { name: "variant", label: "Variant", type: "enum", group: "style", default: "outlined", options: ["outlined", "filled", "underline"] },
1383
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
1384
+ { name: "placeholder", label: "Placeholder", type: "string", group: "content" },
1385
+ { name: "label", label: "Label", type: "string", group: "content" },
1386
+ { name: "error", label: "Error message", type: "string", group: "content" },
1387
+ { name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
1388
+ { name: "secureEntry", label: "Password", type: "boolean", group: "behavior", default: false },
1389
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" },
1390
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" },
1391
+ { name: "borderColor", label: "Border color", type: "color", group: "style", themeDefault: "border" }
1392
+ ]
1393
+ },
1394
+ {
1395
+ id: "TextArea",
1396
+ label: "Text Area",
1397
+ description: "Multi-line text input.",
1398
+ category: "input",
1399
+ tags: ["textarea", "multiline", "input", "form"],
1400
+ themeMapping: { bg: "input", text: "foreground", border: "border" },
1401
+ sizes: ["sm", "md", "lg"],
1402
+ variants: [
1403
+ { name: "outlined", label: "Outlined", overrides: { borderWidth: 1, bg: "transparent" } },
1404
+ { name: "filled", label: "Filled", overrides: { borderWidth: 0 } }
1405
+ ],
1406
+ props: [
1407
+ { name: "variant", label: "Variant", type: "enum", group: "style", default: "outlined", options: ["outlined", "filled"] },
1408
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
1409
+ { name: "placeholder", label: "Placeholder", type: "string", group: "content" },
1410
+ { name: "label", label: "Label", type: "string", group: "content" },
1411
+ { name: "error", label: "Error message", type: "string", group: "content" },
1412
+ { name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
1413
+ { name: "numberOfLines", label: "Lines", type: "number", group: "layout", default: 4 },
1414
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" },
1415
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" }
1416
+ ]
1417
+ },
1418
+ {
1419
+ id: "Checkbox",
1420
+ label: "Checkbox",
1421
+ description: "Toggle checkbox with label.",
1422
+ category: "input",
1423
+ tags: ["checkbox", "toggle", "form", "boolean"],
1424
+ themeMapping: { active: "primary", border: "border" },
1425
+ sizes: ["sm", "md"],
1426
+ variants: [
1427
+ { name: "square", label: "Square", overrides: { borderRadius: "sm" } },
1428
+ { name: "rounded", label: "Rounded", overrides: { borderRadius: "full" } }
1429
+ ],
1430
+ props: [
1431
+ { name: "variant", label: "Variant", type: "enum", group: "style", default: "square", options: ["square", "rounded"] },
1432
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
1433
+ { name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
1434
+ { name: "label", label: "Label", type: "string", group: "content" },
1435
+ { name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "primary" }
1436
+ ]
1437
+ },
1438
+ {
1439
+ id: "Switch",
1440
+ label: "Switch",
1441
+ description: "Toggle switch.",
1442
+ category: "input",
1443
+ tags: ["switch", "toggle", "boolean"],
1444
+ themeMapping: { active: "primary", track: "muted" },
1445
+ sizes: ["sm", "md"],
1446
+ variants: [],
1447
+ props: [
1448
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
1449
+ { name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
1450
+ { name: "label", label: "Label", type: "string", group: "content" },
1451
+ { name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "primary" },
1452
+ { name: "trackColor", label: "Track color", type: "color", group: "style", themeDefault: "muted" }
1453
+ ]
1454
+ },
1455
+ {
1456
+ id: "Badge",
1457
+ label: "Badge",
1458
+ description: "Small status indicator or label.",
1459
+ category: "display",
1460
+ tags: ["badge", "tag", "label", "status"],
1461
+ themeMapping: { bg: "primary", text: "primaryForeground" },
1462
+ sizes: ["sm", "md"],
1463
+ variants: [
1464
+ { name: "solid", label: "Solid", overrides: {} },
1465
+ { name: "outline", label: "Outline", overrides: { bg: "transparent", borderWidth: 1 } },
1466
+ { name: "subtle", label: "Subtle", overrides: {} }
1467
+ ],
1468
+ props: [
1469
+ { name: "label", label: "Label", type: "string", group: "content" },
1470
+ { name: "variant", label: "Variant", type: "enum", group: "style", default: "solid", options: ["solid", "outline", "subtle"] },
1471
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
1472
+ { name: "color", label: "Color scheme", type: "enum", group: "style", default: "primary", options: ["primary", "secondary", "success", "warning", "error", "info"] },
1473
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" }
1474
+ ]
1475
+ },
1476
+ {
1477
+ id: "Avatar",
1478
+ label: "Avatar",
1479
+ description: "User avatar with image, initials, or icon fallback.",
1480
+ category: "display",
1481
+ tags: ["avatar", "user", "profile", "image"],
1482
+ themeMapping: { bg: "muted", text: "mutedForeground" },
1483
+ sizes: ["xs", "sm", "md", "lg", "xl"],
1484
+ variants: [
1485
+ { name: "circle", label: "Circle", overrides: { borderRadius: "full" } },
1486
+ { name: "square", label: "Square", overrides: { borderRadius: "md" } }
1487
+ ],
1488
+ props: [
1489
+ { name: "variant", label: "Shape", type: "enum", group: "style", default: "circle", options: ["circle", "square"] },
1490
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["xs", "sm", "md", "lg", "xl"] },
1491
+ { name: "source", label: "Image source", type: "string", group: "content" },
1492
+ { name: "initials", label: "Initials", type: "string", group: "content" },
1493
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "muted" }
1494
+ ]
1495
+ },
1496
+ {
1497
+ id: "IconButton",
1498
+ label: "Icon Button",
1499
+ description: "Pressable icon-only button.",
1500
+ category: "action",
1501
+ tags: ["icon", "button", "action"],
1502
+ themeMapping: { bg: "muted", icon: "foreground" },
1503
+ sizes: ["sm", "md", "lg"],
1504
+ variants: [
1505
+ { name: "filled", label: "Filled", overrides: {} },
1506
+ { name: "ghost", label: "Ghost", overrides: { bg: "transparent" } },
1507
+ { name: "outline", label: "Outline", overrides: { bg: "transparent", borderWidth: 1 } }
1508
+ ],
1509
+ props: [
1510
+ { name: "variant", label: "Variant", type: "enum", group: "style", default: "ghost", options: ["filled", "ghost", "outline"] },
1511
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
1512
+ { name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
1513
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" },
1514
+ { name: "color", label: "Icon color", type: "color", group: "style", themeDefault: "foreground" }
1515
+ ]
1516
+ },
1517
+ {
1518
+ id: "Chip",
1519
+ label: "Chip",
1520
+ description: "Selectable chip / tag with optional close action.",
1521
+ category: "input",
1522
+ tags: ["chip", "tag", "filter", "selectable"],
1523
+ themeMapping: { bg: "muted", text: "foreground", active: "primary" },
1524
+ sizes: ["sm", "md"],
1525
+ variants: [
1526
+ { name: "filled", label: "Filled", overrides: {} },
1527
+ { name: "outline", label: "Outline", overrides: { bg: "transparent", borderWidth: 1 } }
1528
+ ],
1529
+ props: [
1530
+ { name: "label", label: "Label", type: "string", group: "content" },
1531
+ { name: "variant", label: "Variant", type: "enum", group: "style", default: "filled", options: ["filled", "outline"] },
1532
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
1533
+ { name: "selected", label: "Selected", type: "boolean", group: "behavior", default: false },
1534
+ { name: "closable", label: "Closable", type: "boolean", group: "behavior", default: false },
1535
+ { name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
1536
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" }
1537
+ ]
1538
+ },
1539
+ {
1540
+ id: "Spinner",
1541
+ label: "Spinner",
1542
+ description: "Loading indicator.",
1543
+ category: "feedback",
1544
+ tags: ["spinner", "loading", "indicator"],
1545
+ themeMapping: { color: "primary" },
1546
+ sizes: ["sm", "md", "lg"],
1547
+ variants: [],
1548
+ props: [
1549
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
1550
+ { name: "color", label: "Color", type: "color", group: "style", themeDefault: "primary" }
1551
+ ]
1552
+ },
1553
+ {
1554
+ id: "Select",
1555
+ label: "Select",
1556
+ description: "Dropdown select input with options.",
1557
+ category: "input",
1558
+ tags: ["select", "dropdown", "picker", "form"],
1559
+ themeMapping: { bg: "input", text: "foreground", border: "border" },
1560
+ sizes: ["sm", "md", "lg"],
1561
+ variants: [
1562
+ { name: "outlined", label: "Outlined", overrides: { borderWidth: 1 } },
1563
+ { name: "filled", label: "Filled", overrides: { borderWidth: 0 } }
1564
+ ],
1565
+ props: [
1566
+ { name: "variant", label: "Variant", type: "enum", group: "style", default: "outlined", options: ["outlined", "filled"] },
1567
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
1568
+ { name: "label", label: "Label", type: "string", group: "content" },
1569
+ { name: "placeholder", label: "Placeholder", type: "string", group: "content", default: "Select..." },
1570
+ { name: "error", label: "Error message", type: "string", group: "content" },
1571
+ { name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
1572
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" },
1573
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" }
1574
+ ]
1575
+ },
1576
+ {
1577
+ id: "RadioGroup",
1578
+ label: "Radio Group",
1579
+ description: "Group of radio buttons for single selection.",
1580
+ category: "input",
1581
+ tags: ["radio", "group", "select", "form"],
1582
+ themeMapping: { active: "primary", border: "border", text: "foreground" },
1583
+ sizes: ["sm", "md"],
1584
+ variants: [],
1585
+ props: [
1586
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
1587
+ { name: "label", label: "Label", type: "string", group: "content" },
1588
+ { name: "direction", label: "Direction", type: "enum", group: "layout", default: "column", options: ["column", "row"] },
1589
+ { name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 2 },
1590
+ { name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
1591
+ { name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "primary" }
1592
+ ]
1593
+ },
1594
+ {
1595
+ id: "DatePicker",
1596
+ label: "Date Picker",
1597
+ description: "Date/time picker input.",
1598
+ category: "input",
1599
+ tags: ["date", "time", "picker", "calendar", "form"],
1600
+ themeMapping: { bg: "input", text: "foreground", border: "border", accent: "primary" },
1601
+ sizes: ["sm", "md", "lg"],
1602
+ variants: [],
1603
+ props: [
1604
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
1605
+ { name: "mode", label: "Mode", type: "enum", group: "behavior", default: "date", options: ["date", "time", "datetime"] },
1606
+ { name: "label", label: "Label", type: "string", group: "content" },
1607
+ { name: "placeholder", label: "Placeholder", type: "string", group: "content", default: "Select date" },
1608
+ { name: "error", label: "Error message", type: "string", group: "content" },
1609
+ { name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
1610
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" }
1611
+ ]
1612
+ },
1613
+ {
1614
+ id: "FilePicker",
1615
+ label: "File Picker",
1616
+ description: "File/image upload input.",
1617
+ category: "input",
1618
+ tags: ["file", "upload", "image", "picker", "form"],
1619
+ themeMapping: { bg: "muted", text: "foreground", border: "border", accent: "primary" },
1620
+ sizes: ["sm", "md", "lg"],
1621
+ variants: [
1622
+ { name: "button", label: "Button", overrides: {} },
1623
+ { name: "dropzone", label: "Drop Zone", overrides: {} }
1624
+ ],
1625
+ props: [
1626
+ { name: "variant", label: "Variant", type: "enum", group: "style", default: "button", options: ["button", "dropzone"] },
1627
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
1628
+ { name: "accept", label: "Accept types", type: "string", group: "behavior", default: "image/*" },
1629
+ { name: "multiple", label: "Multiple", type: "boolean", group: "behavior", default: false },
1630
+ { name: "label", label: "Label", type: "string", group: "content", default: "Upload file" },
1631
+ { name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
1632
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" }
1633
+ ]
1634
+ },
1635
+ {
1636
+ id: "Slider",
1637
+ label: "Slider",
1638
+ description: "Range slider input.",
1639
+ category: "input",
1640
+ tags: ["slider", "range", "input", "form"],
1641
+ themeMapping: { active: "primary", track: "muted" },
1642
+ sizes: ["sm", "md"],
1643
+ variants: [],
1644
+ props: [
1645
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
1646
+ { name: "min", label: "Min", type: "number", group: "behavior", default: 0 },
1647
+ { name: "max", label: "Max", type: "number", group: "behavior", default: 100 },
1648
+ { name: "step", label: "Step", type: "number", group: "behavior", default: 1 },
1649
+ { name: "label", label: "Label", type: "string", group: "content" },
1650
+ { name: "showValue", label: "Show value", type: "boolean", group: "behavior", default: true },
1651
+ { name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
1652
+ { name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "primary" }
1653
+ ]
1654
+ },
1655
+ {
1656
+ id: "Image",
1657
+ label: "Image",
1658
+ description: "Image component with source, resize mode, and placeholder.",
1659
+ category: "display",
1660
+ tags: ["image", "photo", "picture", "media"],
1661
+ themeMapping: { bg: "muted" },
1662
+ sizes: [],
1663
+ variants: [],
1664
+ props: [
1665
+ { name: "source", label: "Source URL", type: "string", group: "content" },
1666
+ { name: "alt", label: "Alt text", type: "string", group: "content" },
1667
+ { name: "resizeMode", label: "Resize mode", type: "enum", group: "style", default: "cover", options: ["cover", "contain", "stretch", "center"] },
1668
+ { name: "width", label: "Width", type: "number", group: "layout" },
1669
+ { name: "height", label: "Height", type: "number", group: "layout", default: 200 },
1670
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" },
1671
+ { name: "background", label: "Placeholder bg", type: "color", group: "style", themeDefault: "muted" }
1672
+ ]
1673
+ },
1674
+ {
1675
+ id: "Icon",
1676
+ label: "Icon",
1677
+ description: "Vector icon from Feather icon set.",
1678
+ category: "display",
1679
+ tags: ["icon", "feather", "vector", "symbol"],
1680
+ themeMapping: { color: "foreground" },
1681
+ sizes: ["sm", "md", "lg"],
1682
+ variants: [],
1683
+ props: [
1684
+ { name: "name", label: "Icon name", type: "string", group: "content", default: "star" },
1685
+ { name: "size", label: "Size", type: "number", group: "style", default: 24 },
1686
+ { name: "color", label: "Color", type: "color", group: "style", themeDefault: "foreground" }
1687
+ ]
1688
+ },
1689
+ {
1690
+ id: "Gradient",
1691
+ label: "Gradient",
1692
+ description: "Linear gradient background container.",
1693
+ category: "display",
1694
+ tags: ["gradient", "linear", "background", "color"],
1695
+ themeMapping: {},
1696
+ sizes: [],
1697
+ variants: [],
1698
+ props: [
1699
+ { name: "startColor", label: "Start color", type: "color", group: "style", default: "#3b82f6" },
1700
+ { name: "endColor", label: "End color", type: "color", group: "style", default: "#8b5cf6" },
1701
+ { name: "direction", label: "Direction", type: "enum", group: "style", default: "vertical", options: ["vertical", "horizontal", "diagonal"] },
1702
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" },
1703
+ { name: "height", label: "Height", type: "number", group: "layout" },
1704
+ { name: "padding", label: "Padding", type: "spacing", group: "layout" }
1705
+ ]
1706
+ },
1707
+ {
1708
+ id: "Separator",
1709
+ label: "Separator",
1710
+ description: "Visual separator with optional label.",
1711
+ category: "display",
1712
+ tags: ["separator", "divider", "or", "line"],
1713
+ themeMapping: { color: "border", text: "mutedForeground" },
1714
+ sizes: [],
1715
+ variants: [],
1716
+ props: [
1717
+ { name: "label", label: "Label", type: "string", group: "content" },
1718
+ { name: "color", label: "Color", type: "color", group: "style", themeDefault: "border" },
1719
+ { name: "thickness", label: "Thickness", type: "number", group: "style", default: 1 },
1720
+ { name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 4 }
1721
+ ]
1722
+ },
1723
+ {
1724
+ id: "Text",
1725
+ label: "Text",
1726
+ description: "Text display component with typography control.",
1727
+ category: "display",
1728
+ tags: ["text", "label", "paragraph", "heading", "typography"],
1729
+ themeMapping: { color: "foreground" },
1730
+ sizes: [],
1731
+ variants: [],
1732
+ props: [
1733
+ { name: "text", label: "Text", type: "string", group: "content", default: "Text" },
1734
+ { name: "fontSize", label: "Font size", type: "number", group: "style", default: 14 },
1735
+ { name: "fontWeight", label: "Font weight", type: "enum", group: "style", default: "400", options: ["300", "400", "500", "600", "700", "800"] },
1736
+ { name: "color", label: "Color", type: "color", group: "style", themeDefault: "foreground" },
1737
+ { name: "textAlign", label: "Align", type: "enum", group: "style", default: "left", options: ["left", "center", "right"] },
1738
+ { name: "numberOfLines", label: "Max lines", type: "number", group: "behavior" }
1739
+ ]
1740
+ },
1741
+ {
1742
+ id: "Video",
1743
+ label: "Video",
1744
+ description: "Video player with controls, autoplay, and loop.",
1745
+ category: "media",
1746
+ tags: ["video", "player", "media", "stream"],
1747
+ themeMapping: { bg: "muted" },
1748
+ sizes: [],
1749
+ variants: [],
1750
+ props: [
1751
+ { name: "source", label: "Source URL", type: "string", group: "content" },
1752
+ { name: "poster", label: "Poster URL", type: "string", group: "content" },
1753
+ { name: "autoplay", label: "Autoplay", type: "boolean", group: "behavior", default: false },
1754
+ { name: "loop", label: "Loop", type: "boolean", group: "behavior", default: false },
1755
+ { name: "muted", label: "Muted", type: "boolean", group: "behavior", default: true },
1756
+ { name: "controls", label: "Show controls", type: "boolean", group: "behavior", default: true },
1757
+ { name: "resizeMode", label: "Resize mode", type: "enum", group: "style", default: "contain", options: ["cover", "contain", "stretch"] },
1758
+ { name: "width", label: "Width", type: "number", group: "layout" },
1759
+ { name: "height", label: "Height", type: "number", group: "layout", default: 220 },
1760
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" }
1761
+ ]
1762
+ },
1763
+ {
1764
+ id: "Camera",
1765
+ label: "Camera",
1766
+ description: "Camera viewfinder for photo/video capture.",
1767
+ category: "media",
1768
+ tags: ["camera", "photo", "capture", "scan"],
1769
+ themeMapping: { bg: "muted" },
1770
+ sizes: [],
1771
+ variants: [],
1772
+ props: [
1773
+ { name: "facing", label: "Facing", type: "enum", group: "behavior", default: "back", options: ["front", "back"] },
1774
+ { name: "flash", label: "Flash", type: "enum", group: "behavior", default: "off", options: ["off", "on", "auto"] },
1775
+ { name: "enableTorch", label: "Torch", type: "boolean", group: "behavior", default: false },
1776
+ { name: "width", label: "Width", type: "number", group: "layout" },
1777
+ { name: "height", label: "Height", type: "number", group: "layout", default: 300 },
1778
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" }
1779
+ ]
1780
+ },
1781
+ {
1782
+ id: "WebView",
1783
+ label: "WebView",
1784
+ description: "Embedded web browser view.",
1785
+ category: "media",
1786
+ tags: ["webview", "browser", "iframe", "embed"],
1787
+ themeMapping: { bg: "muted" },
1788
+ sizes: [],
1789
+ variants: [],
1790
+ props: [
1791
+ { name: "url", label: "URL", type: "string", group: "content", default: "https://expo.dev" },
1792
+ { name: "width", label: "Width", type: "number", group: "layout" },
1793
+ { name: "height", label: "Height", type: "number", group: "layout", default: 400 },
1794
+ { name: "scrollEnabled", label: "Scroll", type: "boolean", group: "behavior", default: true },
1795
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" }
1796
+ ]
1797
+ },
1798
+ {
1799
+ id: "MapView",
1800
+ label: "Map",
1801
+ description: "Interactive map view with markers.",
1802
+ category: "media",
1803
+ tags: ["map", "location", "gps", "marker"],
1804
+ themeMapping: {},
1805
+ sizes: [],
1806
+ variants: [],
1807
+ props: [
1808
+ { name: "latitude", label: "Latitude", type: "number", group: "content", default: 48.8566 },
1809
+ { name: "longitude", label: "Longitude", type: "number", group: "content", default: 2.3522 },
1810
+ { name: "zoom", label: "Zoom", type: "number", group: "content", default: 12 },
1811
+ { name: "width", label: "Width", type: "number", group: "layout" },
1812
+ { name: "height", label: "Height", type: "number", group: "layout", default: 300 },
1813
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" },
1814
+ { name: "showsUserLocation", label: "User location", type: "boolean", group: "behavior", default: true }
1815
+ ]
1816
+ },
1817
+ {
1818
+ id: "BlurView",
1819
+ label: "Blur View",
1820
+ description: "Blurred background overlay container.",
1821
+ category: "display",
1822
+ tags: ["blur", "glass", "frosted", "overlay"],
1823
+ themeMapping: {},
1824
+ sizes: [],
1825
+ variants: [],
1826
+ props: [
1827
+ { name: "intensity", label: "Intensity", type: "number", group: "style", default: 50 },
1828
+ { name: "tint", label: "Tint", type: "enum", group: "style", default: "default", options: ["default", "light", "dark"] },
1829
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" },
1830
+ { name: "padding", label: "Padding", type: "spacing", group: "layout" }
1831
+ ]
1832
+ },
1833
+ {
1834
+ id: "LottieAnimation",
1835
+ label: "Lottie",
1836
+ description: "Lottie animation player.",
1837
+ category: "media",
1838
+ tags: ["lottie", "animation", "motion", "json"],
1839
+ themeMapping: {},
1840
+ sizes: [],
1841
+ variants: [],
1842
+ props: [
1843
+ { name: "source", label: "Source URL", type: "string", group: "content" },
1844
+ { name: "autoPlay", label: "Auto play", type: "boolean", group: "behavior", default: true },
1845
+ { name: "loop", label: "Loop", type: "boolean", group: "behavior", default: true },
1846
+ { name: "speed", label: "Speed", type: "number", group: "behavior", default: 1 },
1847
+ { name: "width", label: "Width", type: "number", group: "layout", default: 200 },
1848
+ { name: "height", label: "Height", type: "number", group: "layout", default: 200 }
1849
+ ]
1850
+ },
1851
+ {
1852
+ id: "ProgressBar",
1853
+ label: "Progress Bar",
1854
+ description: "Horizontal progress indicator.",
1855
+ category: "feedback",
1856
+ tags: ["progress", "bar", "loading", "percentage"],
1857
+ themeMapping: { active: "primary", track: "muted" },
1858
+ sizes: ["sm", "md"],
1859
+ variants: [],
1860
+ props: [
1861
+ { name: "progress", label: "Progress (0-1)", type: "number", group: "content", default: 0.5 },
1862
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
1863
+ { name: "color", label: "Color", type: "color", group: "style", themeDefault: "primary" },
1864
+ { name: "trackColor", label: "Track color", type: "color", group: "style", themeDefault: "muted" },
1865
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" },
1866
+ { name: "showLabel", label: "Show label", type: "boolean", group: "behavior", default: false }
1867
+ ]
1868
+ },
1869
+ {
1870
+ id: "Accordion",
1871
+ label: "Accordion",
1872
+ description: "Expandable/collapsible content section.",
1873
+ category: "display",
1874
+ tags: ["accordion", "collapse", "expand", "faq"],
1875
+ themeMapping: { bg: "card", text: "foreground", border: "border" },
1876
+ sizes: [],
1877
+ variants: [],
1878
+ props: [
1879
+ { name: "title", label: "Title", type: "string", group: "content", default: "Section" },
1880
+ { name: "defaultOpen", label: "Default open", type: "boolean", group: "behavior", default: false },
1881
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
1882
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" },
1883
+ { name: "borderColor", label: "Border color", type: "color", group: "style", themeDefault: "border" }
1884
+ ]
1885
+ },
1886
+ {
1887
+ id: "Tabs",
1888
+ label: "Tabs",
1889
+ description: "Tab navigation with content panels.",
1890
+ category: "navigation",
1891
+ tags: ["tabs", "navigation", "panel", "switch"],
1892
+ themeMapping: { active: "primary", bg: "card", border: "border" },
1893
+ sizes: [],
1894
+ variants: [],
1895
+ props: [
1896
+ { name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "primary" },
1897
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
1898
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" },
1899
+ { name: "position", label: "Position", type: "enum", group: "layout", default: "top", options: ["top", "bottom"] }
1900
+ ]
1901
+ },
1902
+ {
1903
+ id: "Pressable",
1904
+ label: "Pressable",
1905
+ description: "Generic pressable wrapper with feedback.",
1906
+ category: "action",
1907
+ tags: ["pressable", "touchable", "tap", "click"],
1908
+ themeMapping: {},
1909
+ sizes: [],
1910
+ variants: [],
1911
+ props: [
1912
+ { name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
1913
+ { name: "opacity", label: "Press opacity", type: "number", group: "style", default: 0.7 }
1914
+ ]
1915
+ },
1916
+ {
1917
+ id: "FlatList",
1918
+ label: "List",
1919
+ description: "Scrollable list with virtualization.",
1920
+ category: "display",
1921
+ tags: ["list", "flatlist", "scroll", "virtualized"],
1922
+ themeMapping: { bg: "background" },
1923
+ sizes: [],
1924
+ variants: [],
1925
+ props: [
1926
+ { name: "horizontal", label: "Horizontal", type: "boolean", group: "layout", default: false },
1927
+ { name: "numColumns", label: "Columns", type: "number", group: "layout", default: 1 },
1928
+ { name: "spacing", label: "Item spacing", type: "spacing", group: "layout", default: 0 },
1929
+ { name: "showsScrollIndicator", label: "Scroll indicator", type: "boolean", group: "behavior", default: true },
1930
+ { name: "background", label: "Background", type: "color", group: "style" }
1931
+ ]
1932
+ }
1933
+ ];
1934
+
1935
+ // foundation/layout/registry/blocks/existing.ts
1936
+ var existingBlocks = [
1937
+ {
1938
+ id: "AuthFormBlock",
1939
+ label: "Auth Form",
1940
+ description: "Login/signup form with email, password, submit button, and optional social providers.",
1941
+ category: "auth",
1942
+ tags: ["auth", "login", "signup", "form", "email", "password"],
1943
+ themeMapping: { bg: "card", text: "foreground", accent: "primary" },
1944
+ components: ["TextInput", "Button"],
1945
+ slots: [
1946
+ { name: "header", label: "Header (logo/title)", required: false, kind: "named" },
1947
+ { name: "footer", label: "Footer (links)", required: false, kind: "named" },
1948
+ { name: "social", label: "Social providers", required: false, kind: "named-array" }
1949
+ ],
1950
+ props: [
1951
+ { name: "mode", label: "Mode", type: "enum", group: "behavior", default: "login", options: ["login", "signup", "forgot"] },
1952
+ { name: "showRemember", label: "Remember me", type: "boolean", group: "behavior", default: true },
1953
+ { name: "showForgot", label: "Forgot password", type: "boolean", group: "behavior", default: true },
1954
+ { name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 4 },
1955
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
1956
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
1957
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 5 },
1958
+ { name: "buttonVariant", label: "Button variant", type: "enum", group: "style", default: "primary", options: ["primary", "secondary", "outline"] },
1959
+ { name: "inputVariant", label: "Input variant", type: "enum", group: "style", default: "outlined", options: ["outlined", "filled", "underline"] },
1960
+ { name: "submitLabel", label: "Submit label", type: "string", group: "content", default: "Sign In" },
1961
+ { name: "forgotLabel", label: "Forgot label", type: "string", group: "content", default: "Forgot password?" }
1962
+ ]
1963
+ },
1964
+ {
1965
+ id: "AvatarBlock",
1966
+ label: "Avatar Block",
1967
+ description: "Avatar with name, subtitle, and optional action.",
1968
+ category: "profile",
1969
+ tags: ["avatar", "user", "profile", "name"],
1970
+ themeMapping: { bg: "card", text: "foreground", subtitle: "mutedForeground" },
1971
+ components: ["Avatar"],
1972
+ slots: [{ name: "action", label: "Action button", required: false, kind: "named" }],
1973
+ props: [
1974
+ { name: "name", label: "Name", type: "string", group: "content" },
1975
+ { name: "subtitle", label: "Subtitle", type: "string", group: "content" },
1976
+ { name: "source", label: "Image URL", type: "string", group: "content" },
1977
+ { name: "initials", label: "Initials", type: "string", group: "content" },
1978
+ { name: "size", label: "Avatar size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg", "xl"] },
1979
+ { name: "direction", label: "Direction", type: "enum", group: "layout", default: "row", options: ["row", "column"] },
1980
+ { name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 3 },
1981
+ { name: "showSubtitle", label: "Show subtitle", type: "boolean", group: "behavior", default: true }
1982
+ ]
1983
+ },
1984
+ {
1985
+ id: "HeaderBlock",
1986
+ label: "Header Bar",
1987
+ description: "Top navigation bar with title, back button, and right actions.",
1988
+ category: "navigation",
1989
+ tags: ["header", "navbar", "topbar", "navigation", "back"],
1990
+ themeMapping: { bg: "card", text: "foreground", border: "border" },
1991
+ components: ["IconButton"],
1992
+ slots: [
1993
+ { name: "left", label: "Left actions", required: false, kind: "named" },
1994
+ { name: "title", label: "Title area", required: true, kind: "named" },
1995
+ { name: "right", label: "Right actions", required: false, kind: "named-array" }
1996
+ ],
1997
+ props: [
1998
+ { name: "height", label: "Height", type: "number", group: "layout", default: 56 },
1999
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2000
+ { name: "borderBottom", label: "Bottom border", type: "boolean", group: "style", default: true },
2001
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
2002
+ { name: "transparent", label: "Transparent", type: "boolean", group: "style", default: false }
2003
+ ]
2004
+ },
2005
+ {
2006
+ id: "SearchBarBlock",
2007
+ label: "Search Bar",
2008
+ description: "Search input with icon and optional filter button.",
2009
+ category: "navigation",
2010
+ tags: ["search", "input", "filter", "bar"],
2011
+ themeMapping: { bg: "muted", text: "foreground", placeholder: "mutedForeground" },
2012
+ components: ["TextInput", "IconButton"],
2013
+ slots: [{ name: "filters", label: "Filter actions", required: false, kind: "named-array" }],
2014
+ props: [
2015
+ { name: "placeholder", label: "Placeholder", type: "string", group: "content", default: "Search..." },
2016
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "muted" },
2017
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" },
2018
+ { name: "showFilter", label: "Show filter", type: "boolean", group: "behavior", default: false },
2019
+ { name: "inputVariant", label: "Input variant", type: "enum", group: "style", default: "filled", options: ["outlined", "filled"] }
2020
+ ]
2021
+ },
2022
+ {
2023
+ id: "StatCardBlock",
2024
+ label: "Stat Card",
2025
+ description: "Metric card with value, label, trend indicator, and optional icon.",
2026
+ category: "data",
2027
+ tags: ["stat", "metric", "card", "kpi", "dashboard"],
2028
+ themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
2029
+ components: ["Badge"],
2030
+ slots: [{ name: "icon", label: "Icon", required: false, kind: "named" }],
2031
+ props: [
2032
+ { name: "value", label: "Value", type: "string", group: "content" },
2033
+ { name: "label", label: "Label", type: "string", group: "content" },
2034
+ { name: "trend", label: "Trend", type: "string", group: "content" },
2035
+ { name: "trendUp", label: "Trend up", type: "boolean", group: "content", default: true },
2036
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2037
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
2038
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
2039
+ { name: "showTrend", label: "Show trend", type: "boolean", group: "behavior", default: true },
2040
+ { name: "shadow", label: "Shadow", type: "shadow", group: "style", default: "sm" }
2041
+ ]
2042
+ },
2043
+ {
2044
+ id: "EmptyStateBlock",
2045
+ label: "Empty State",
2046
+ description: "Placeholder for empty lists or screens with icon, title, description, and action.",
2047
+ category: "feedback",
2048
+ tags: ["empty", "placeholder", "no-data", "illustration"],
2049
+ themeMapping: { text: "mutedForeground", accent: "primary" },
2050
+ components: ["Button"],
2051
+ slots: [{ name: "illustration", label: "Illustration", required: false, kind: "named" }],
2052
+ props: [
2053
+ { name: "title", label: "Title", type: "string", group: "content" },
2054
+ { name: "description", label: "Description", type: "string", group: "content" },
2055
+ { name: "actionLabel", label: "Action label", type: "string", group: "content", default: "Get started" },
2056
+ { name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 4 },
2057
+ { name: "showAction", label: "Show action", type: "boolean", group: "behavior", default: true },
2058
+ { name: "actionVariant", label: "Action variant", type: "enum", group: "style", default: "primary", options: ["primary", "outline", "ghost"] }
2059
+ ]
2060
+ },
2061
+ {
2062
+ id: "ListItemBlock",
2063
+ label: "List Item",
2064
+ description: "Standard list row with leading icon/avatar, title, subtitle, and trailing action.",
2065
+ category: "content",
2066
+ tags: ["list", "item", "row", "cell"],
2067
+ themeMapping: { bg: "card", text: "foreground", subtitle: "mutedForeground", border: "border" },
2068
+ components: ["Avatar", "IconButton"],
2069
+ slots: [
2070
+ { name: "leading", label: "Leading element", required: false, kind: "named" },
2071
+ { name: "trailing", label: "Trailing element", required: false, kind: "named" }
2072
+ ],
2073
+ props: [
2074
+ { name: "title", label: "Title", type: "string", group: "content" },
2075
+ { name: "subtitle", label: "Subtitle", type: "string", group: "content" },
2076
+ { name: "height", label: "Height", type: "number", group: "layout", default: 56 },
2077
+ { name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 3 },
2078
+ { name: "showDivider", label: "Show divider", type: "boolean", group: "style", default: true },
2079
+ { name: "pressable", label: "Pressable", type: "boolean", group: "behavior", default: true },
2080
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2081
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 }
2082
+ ]
2083
+ },
2084
+ {
2085
+ id: "FormBlock",
2086
+ label: "Form",
2087
+ description: "Form container with validation, submit handling, and field layout.",
2088
+ category: "form",
2089
+ tags: ["form", "validation", "submit", "fields"],
2090
+ themeMapping: { bg: "card", text: "foreground", error: "destructive" },
2091
+ components: ["TextInput", "Button", "Select", "Checkbox", "Switch"],
2092
+ slots: [
2093
+ { name: "children", label: "Form fields", required: true, kind: "children" },
2094
+ { name: "header", label: "Form header", required: false, kind: "named" },
2095
+ { name: "footer", label: "Form footer", required: false, kind: "named" }
2096
+ ],
2097
+ props: [
2098
+ { name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 4 },
2099
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
2100
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2101
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
2102
+ { name: "showReset", label: "Show reset", type: "boolean", group: "behavior", default: false },
2103
+ { name: "submitLabel", label: "Submit label", type: "string", group: "content", default: "Submit" },
2104
+ { name: "submitVariant", label: "Submit variant", type: "enum", group: "style", default: "primary", options: ["primary", "secondary", "outline"] },
2105
+ { name: "validateOnBlur", label: "Validate on blur", type: "boolean", group: "behavior", default: true },
2106
+ { name: "resetLabel", label: "Reset label", type: "string", group: "content", default: "Reset" }
2107
+ ]
2108
+ },
2109
+ {
2110
+ id: "CardBlock",
2111
+ label: "Card",
2112
+ description: "Content card with optional image, title, description, and actions.",
2113
+ category: "content",
2114
+ tags: ["card", "content", "media", "article"],
2115
+ themeMapping: { bg: "card", text: "foreground", subtitle: "mutedForeground" },
2116
+ components: ["Button", "Badge"],
2117
+ slots: [
2118
+ { name: "media", label: "Media (image/video)", required: false, kind: "named" },
2119
+ { name: "actions", label: "Action buttons", required: false, kind: "named-array" }
2120
+ ],
2121
+ props: [
2122
+ { name: "title", label: "Title", type: "string", group: "content" },
2123
+ { name: "description", label: "Description", type: "string", group: "content" },
2124
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
2125
+ { name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 3 },
2126
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2127
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
2128
+ { name: "shadow", label: "Shadow", type: "shadow", group: "style", default: "sm" },
2129
+ { name: "pressable", label: "Pressable", type: "boolean", group: "behavior", default: false }
2130
+ ]
2131
+ },
2132
+ {
2133
+ id: "ModalBlock",
2134
+ label: "Modal",
2135
+ description: "Modal overlay with content, close button, and backdrop.",
2136
+ category: "overlay",
2137
+ tags: ["modal", "dialog", "popup", "overlay"],
2138
+ themeMapping: { bg: "card", text: "foreground", backdrop: "background" },
2139
+ components: ["IconButton"],
2140
+ slots: [
2141
+ { name: "children", label: "Content", required: true, kind: "children" },
2142
+ { name: "footer", label: "Footer actions", required: false, kind: "named" }
2143
+ ],
2144
+ props: [
2145
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 5 },
2146
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2147
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "2xl" },
2148
+ { name: "maxWidth", label: "Max width", type: "number", group: "layout", default: 500 },
2149
+ { name: "showClose", label: "Show close", type: "boolean", group: "behavior", default: true },
2150
+ { name: "backdropClose", label: "Close on backdrop", type: "boolean", group: "behavior", default: true }
2151
+ ]
2152
+ },
2153
+ {
2154
+ id: "ToastBlock",
2155
+ label: "Toast",
2156
+ description: "Notification toast with icon, message, and auto-dismiss.",
2157
+ category: "feedback",
2158
+ tags: ["toast", "notification", "snackbar", "alert"],
2159
+ themeMapping: { bg: "card", text: "foreground" },
2160
+ components: ["IconButton"],
2161
+ slots: [],
2162
+ props: [
2163
+ { name: "message", label: "Message", type: "string", group: "content" },
2164
+ { name: "type", label: "Type", type: "enum", group: "style", default: "info", options: ["info", "success", "warning", "error"] },
2165
+ { name: "position", label: "Position", type: "enum", group: "layout", default: "top", options: ["top", "bottom"] },
2166
+ { name: "duration", label: "Duration (ms)", type: "number", group: "behavior", default: 3e3 },
2167
+ { name: "showIcon", label: "Show icon", type: "boolean", group: "behavior", default: true },
2168
+ { name: "dismissible", label: "Dismissible", type: "boolean", group: "behavior", default: true },
2169
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" }
2170
+ ]
2171
+ }
2172
+ ];
2173
+
2174
+ // foundation/layout/registry/blocks/new.ts
2175
+ var newBlocks = [
2176
+ {
2177
+ id: "SocialLinksBlock",
2178
+ label: "Social Links",
2179
+ description: "Row of social network icon buttons with optional labels and customizable layout.",
2180
+ category: "social",
2181
+ tags: ["social", "links", "icons", "network", "share"],
2182
+ themeMapping: { bg: "card", text: "foreground", accent: "primary" },
2183
+ components: ["Pressable"],
2184
+ slots: [],
2185
+ props: [
2186
+ { name: "links", label: "Links", type: "string", group: "content" },
2187
+ { name: "direction", label: "Direction", type: "enum", group: "layout", default: "row", options: ["row", "column"] },
2188
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
2189
+ { name: "variant", label: "Variant", type: "enum", group: "style", default: "icon", options: ["icon", "icon-label", "label"] },
2190
+ { name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 2 },
2191
+ { name: "color", label: "Color", type: "color", group: "style", themeDefault: "foreground" },
2192
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2193
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" },
2194
+ { name: "showLabels", label: "Show labels", type: "boolean", group: "behavior", default: false }
2195
+ ]
2196
+ },
2197
+ {
2198
+ id: "ProductCardBlock",
2199
+ label: "Product Card",
2200
+ description: "E-commerce product card with image, name, price, rating, and add-to-cart button.",
2201
+ category: "ecommerce",
2202
+ tags: ["product", "card", "ecommerce", "shop", "price", "rating"],
2203
+ themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
2204
+ components: ["Button", "Badge"],
2205
+ slots: [
2206
+ { name: "image", label: "Product image", required: false, kind: "named" }
2207
+ ],
2208
+ props: [
2209
+ { name: "name", label: "Name", type: "string", group: "content" },
2210
+ { name: "price", label: "Price", type: "string", group: "content" },
2211
+ { name: "originalPrice", label: "Original price", type: "string", group: "content" },
2212
+ { name: "imageUrl", label: "Image URL", type: "string", group: "content" },
2213
+ { name: "rating", label: "Rating", type: "number", group: "content" },
2214
+ { name: "reviewCount", label: "Review count", type: "number", group: "content" },
2215
+ { name: "badge", label: "Badge", type: "string", group: "content" },
2216
+ { name: "inStock", label: "In stock", type: "boolean", group: "behavior", default: true },
2217
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2218
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
2219
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
2220
+ { name: "shadow", label: "Shadow", type: "shadow", group: "style", default: "sm" }
2221
+ ]
2222
+ },
2223
+ {
2224
+ id: "NotificationItemBlock",
2225
+ label: "Notification Item",
2226
+ description: "Notification row with icon, title, body, timestamp, and read state.",
2227
+ category: "feedback",
2228
+ tags: ["notification", "alert", "item", "row", "unread"],
2229
+ themeMapping: { bg: "card", text: "foreground", accent: "primary", border: "border" },
2230
+ components: ["IconButton"],
2231
+ slots: [],
2232
+ props: [
2233
+ { name: "title", label: "Title", type: "string", group: "content" },
2234
+ { name: "body", label: "Body", type: "string", group: "content" },
2235
+ { name: "timestamp", label: "Timestamp", type: "string", group: "content" },
2236
+ { name: "read", label: "Read", type: "boolean", group: "behavior", default: false },
2237
+ { name: "iconName", label: "Icon name", type: "string", group: "content", default: "bell" },
2238
+ { name: "iconColor", label: "Icon color", type: "color", group: "style", themeDefault: "primary" },
2239
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2240
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
2241
+ { name: "showDivider", label: "Show divider", type: "boolean", group: "style", default: true },
2242
+ { name: "pressable", label: "Pressable", type: "boolean", group: "behavior", default: true }
2243
+ ]
2244
+ },
2245
+ {
2246
+ id: "PricingCardBlock",
2247
+ label: "Pricing Card",
2248
+ description: "Pricing plan card with features list, price, period, and CTA button.",
2249
+ category: "ecommerce",
2250
+ tags: ["pricing", "plan", "card", "subscription", "features"],
2251
+ themeMapping: { bg: "card", text: "foreground", accent: "primary" },
2252
+ components: ["Button", "Badge"],
2253
+ slots: [],
2254
+ props: [
2255
+ { name: "planName", label: "Plan name", type: "string", group: "content" },
2256
+ { name: "price", label: "Price", type: "string", group: "content" },
2257
+ { name: "period", label: "Period", type: "string", group: "content", default: "mo" },
2258
+ { name: "description", label: "Description", type: "string", group: "content" },
2259
+ { name: "features", label: "Features", type: "string", group: "content" },
2260
+ { name: "ctaLabel", label: "CTA label", type: "string", group: "content", default: "Get started" },
2261
+ { name: "highlighted", label: "Highlighted", type: "boolean", group: "style", default: false },
2262
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2263
+ { name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
2264
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
2265
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 5 },
2266
+ { name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 3 },
2267
+ { name: "shadow", label: "Shadow", type: "shadow", group: "style", default: "md" }
2268
+ ]
2269
+ },
2270
+ {
2271
+ id: "TransactionItemBlock",
2272
+ label: "Transaction Item",
2273
+ description: "Financial transaction row with icon, merchant, amount, date, and status badge.",
2274
+ category: "finance",
2275
+ tags: ["transaction", "finance", "payment", "row", "amount"],
2276
+ themeMapping: { bg: "card", text: "foreground", border: "border", muted: "mutedForeground" },
2277
+ components: [],
2278
+ slots: [],
2279
+ props: [
2280
+ { name: "merchant", label: "Merchant", type: "string", group: "content" },
2281
+ { name: "category", label: "Category", type: "string", group: "content" },
2282
+ { name: "amount", label: "Amount", type: "string", group: "content" },
2283
+ { name: "date", label: "Date", type: "string", group: "content" },
2284
+ { name: "type", label: "Type", type: "enum", group: "behavior", default: "debit", options: ["debit", "credit"] },
2285
+ { name: "status", label: "Status", type: "enum", group: "behavior", default: "completed", options: ["completed", "pending", "failed"] },
2286
+ { name: "iconName", label: "Icon name", type: "string", group: "content", default: "credit-card" },
2287
+ { name: "iconColor", label: "Icon color", type: "color", group: "style", themeDefault: "primary" },
2288
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2289
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
2290
+ { name: "showDivider", label: "Show divider", type: "boolean", group: "style", default: true }
2291
+ ]
2292
+ },
2293
+ {
2294
+ id: "OnboardingSlideBlock",
2295
+ label: "Onboarding Slide",
2296
+ description: "Single onboarding slide with illustration, title, description, dots, and CTA.",
2297
+ category: "onboarding",
2298
+ tags: ["onboarding", "slide", "intro", "welcome", "tutorial"],
2299
+ themeMapping: { bg: "background", text: "foreground", accent: "primary" },
2300
+ components: ["Button"],
2301
+ slots: [
2302
+ { name: "illustration", label: "Illustration", required: false, kind: "named" }
2303
+ ],
2304
+ props: [
2305
+ { name: "title", label: "Title", type: "string", group: "content" },
2306
+ { name: "description", label: "Description", type: "string", group: "content" },
2307
+ { name: "totalSlides", label: "Total slides", type: "number", group: "behavior", default: 3 },
2308
+ { name: "currentSlide", label: "Current slide", type: "number", group: "behavior", default: 0 },
2309
+ { name: "ctaLabel", label: "CTA label", type: "string", group: "content", default: "Get started" },
2310
+ { name: "skipLabel", label: "Skip label", type: "string", group: "content", default: "Skip" },
2311
+ { name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
2312
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "background" },
2313
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 6 }
2314
+ ]
2315
+ },
2316
+ {
2317
+ id: "ChatBubbleBlock",
2318
+ label: "Chat Bubble",
2319
+ description: "Chat message bubble with sender/receiver layout, timestamp, and read status.",
2320
+ category: "messaging",
2321
+ tags: ["chat", "message", "bubble", "conversation", "messaging"],
2322
+ themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
2323
+ components: ["Avatar"],
2324
+ slots: [],
2325
+ props: [
2326
+ { name: "message", label: "Message", type: "string", group: "content" },
2327
+ { name: "timestamp", label: "Timestamp", type: "string", group: "content" },
2328
+ { name: "isSent", label: "Is sent", type: "boolean", group: "behavior", default: false },
2329
+ { name: "isRead", label: "Is read", type: "boolean", group: "behavior", default: false },
2330
+ { name: "senderName", label: "Sender name", type: "string", group: "content" },
2331
+ { name: "avatarUrl", label: "Avatar URL", type: "string", group: "content" },
2332
+ { name: "showAvatar", label: "Show avatar", type: "boolean", group: "behavior", default: true },
2333
+ { name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
2334
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2335
+ { name: "maxWidth", label: "Max width", type: "number", group: "layout", default: 280 }
2336
+ ]
2337
+ },
2338
+ {
2339
+ id: "CalendarEventBlock",
2340
+ label: "Calendar Event",
2341
+ description: "Event card with date badge, title, time range, location, and attendee count.",
2342
+ category: "calendar",
2343
+ tags: ["calendar", "event", "date", "schedule", "meeting"],
2344
+ themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
2345
+ components: [],
2346
+ slots: [],
2347
+ props: [
2348
+ { name: "title", label: "Title", type: "string", group: "content" },
2349
+ { name: "date", label: "Date", type: "string", group: "content" },
2350
+ { name: "dayNumber", label: "Day number", type: "string", group: "content" },
2351
+ { name: "month", label: "Month", type: "string", group: "content" },
2352
+ { name: "startTime", label: "Start time", type: "string", group: "content" },
2353
+ { name: "endTime", label: "End time", type: "string", group: "content" },
2354
+ { name: "location", label: "Location", type: "string", group: "content" },
2355
+ { name: "attendeeCount", label: "Attendee count", type: "number", group: "content" },
2356
+ { name: "color", label: "Color", type: "color", group: "style", themeDefault: "primary" },
2357
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2358
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
2359
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 }
2360
+ ]
2361
+ },
2362
+ {
2363
+ id: "FileItemBlock",
2364
+ label: "File Item",
2365
+ description: "File list item with icon, name, size, type badge, and download/delete actions.",
2366
+ category: "files",
2367
+ tags: ["file", "item", "row", "document", "attachment"],
2368
+ themeMapping: { bg: "card", text: "foreground", border: "border", muted: "mutedForeground" },
2369
+ components: [],
2370
+ slots: [],
2371
+ props: [
2372
+ { name: "name", label: "Name", type: "string", group: "content" },
2373
+ { name: "size", label: "Size", type: "string", group: "content" },
2374
+ { name: "type", label: "Type", type: "string", group: "content" },
2375
+ { name: "updatedAt", label: "Updated at", type: "string", group: "content" },
2376
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2377
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
2378
+ { name: "showDivider", label: "Show divider", type: "boolean", group: "style", default: true },
2379
+ { name: "pressable", label: "Pressable", type: "boolean", group: "behavior", default: true }
2380
+ ]
2381
+ },
2382
+ {
2383
+ id: "ContactCardBlock",
2384
+ label: "Contact Card",
2385
+ description: "Contact card with avatar, name, role, company, and action buttons (call, email, web).",
2386
+ category: "profile",
2387
+ tags: ["contact", "card", "profile", "person", "address-book"],
2388
+ themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
2389
+ components: ["Avatar"],
2390
+ slots: [],
2391
+ props: [
2392
+ { name: "name", label: "Name", type: "string", group: "content" },
2393
+ { name: "role", label: "Role", type: "string", group: "content" },
2394
+ { name: "company", label: "Company", type: "string", group: "content" },
2395
+ { name: "avatarUrl", label: "Avatar URL", type: "string", group: "content" },
2396
+ { name: "initials", label: "Initials", type: "string", group: "content" },
2397
+ { name: "phone", label: "Phone", type: "string", group: "content" },
2398
+ { name: "email", label: "Email", type: "string", group: "content" },
2399
+ { name: "website", label: "Website", type: "string", group: "content" },
2400
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2401
+ { name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
2402
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
2403
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
2404
+ { name: "showActions", label: "Show actions", type: "boolean", group: "behavior", default: true }
2405
+ ]
2406
+ },
2407
+ {
2408
+ id: "MapPinBlock",
2409
+ label: "Map Pin",
2410
+ description: "Location display card with address, coordinates, and open-in-maps action.",
2411
+ category: "location",
2412
+ tags: ["map", "location", "address", "pin", "geo"],
2413
+ themeMapping: { bg: "card", text: "foreground", accent: "primary", border: "border" },
2414
+ components: [],
2415
+ slots: [],
2416
+ props: [
2417
+ { name: "address", label: "Address", type: "string", group: "content" },
2418
+ { name: "city", label: "City", type: "string", group: "content" },
2419
+ { name: "country", label: "Country", type: "string", group: "content" },
2420
+ { name: "latitude", label: "Latitude", type: "number", group: "content" },
2421
+ { name: "longitude", label: "Longitude", type: "number", group: "content" },
2422
+ { name: "label", label: "Label", type: "string", group: "content" },
2423
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2424
+ { name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
2425
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
2426
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
2427
+ { name: "showCoordinates", label: "Show coordinates", type: "boolean", group: "behavior", default: false },
2428
+ { name: "showOpenButton", label: "Show open button", type: "boolean", group: "behavior", default: true }
2429
+ ]
2430
+ },
2431
+ {
2432
+ id: "PasswordStrengthBlock",
2433
+ label: "Password Strength",
2434
+ description: "Password input with strength meter and requirements checklist.",
2435
+ category: "form",
2436
+ tags: ["password", "strength", "input", "form", "security"],
2437
+ themeMapping: { bg: "input", text: "foreground", border: "border", muted: "mutedForeground" },
2438
+ components: ["TextInput"],
2439
+ slots: [],
2440
+ props: [
2441
+ { name: "value", label: "Value", type: "string", group: "content" },
2442
+ { name: "label", label: "Label", type: "string", group: "content", default: "Password" },
2443
+ { name: "placeholder", label: "Placeholder", type: "string", group: "content", default: "Enter password" },
2444
+ { name: "showRequirements", label: "Show requirements", type: "boolean", group: "behavior", default: true },
2445
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" },
2446
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" }
2447
+ ]
2448
+ },
2449
+ {
2450
+ id: "MediaPickerBlock",
2451
+ label: "Media Picker",
2452
+ description: "Image/video picker with preview grid and add button.",
2453
+ category: "media",
2454
+ tags: ["media", "picker", "image", "video", "upload", "gallery"],
2455
+ themeMapping: { bg: "muted", text: "foreground", accent: "primary" },
2456
+ components: [],
2457
+ slots: [],
2458
+ props: [
2459
+ { name: "items", label: "Items", type: "string", group: "content" },
2460
+ { name: "maxItems", label: "Max items", type: "number", group: "behavior", default: 9 },
2461
+ { name: "label", label: "Label", type: "string", group: "content" },
2462
+ { name: "columns", label: "Columns", type: "number", group: "layout", default: 3 },
2463
+ { name: "itemSize", label: "Item size", type: "number", group: "layout", default: 100 },
2464
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "muted" },
2465
+ { name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" }
2466
+ ]
2467
+ },
2468
+ {
2469
+ id: "BannerBlock",
2470
+ label: "Banner",
2471
+ description: "Dismissible info/warning/error/success banner with icon and optional action.",
2472
+ category: "feedback",
2473
+ tags: ["banner", "alert", "info", "warning", "error", "success"],
2474
+ themeMapping: { text: "foreground", border: "border" },
2475
+ components: [],
2476
+ slots: [],
2477
+ props: [
2478
+ { name: "type", label: "Type", type: "enum", group: "style", default: "info", options: ["info", "success", "warning", "error"] },
2479
+ { name: "title", label: "Title", type: "string", group: "content" },
2480
+ { name: "message", label: "Message", type: "string", group: "content" },
2481
+ { name: "actionLabel", label: "Action label", type: "string", group: "content" },
2482
+ { name: "dismissible", label: "Dismissible", type: "boolean", group: "behavior", default: true },
2483
+ { name: "icon", label: "Icon", type: "string", group: "content" },
2484
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" },
2485
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 }
2486
+ ]
2487
+ },
2488
+ {
2489
+ id: "CommentBlock",
2490
+ label: "Comment",
2491
+ description: "Comment/review item with avatar, author, content, timestamp, and like/reply actions.",
2492
+ category: "social",
2493
+ tags: ["comment", "review", "social", "like", "reply"],
2494
+ themeMapping: { bg: "card", text: "foreground", border: "border", muted: "mutedForeground" },
2495
+ components: ["Avatar"],
2496
+ slots: [],
2497
+ props: [
2498
+ { name: "author", label: "Author", type: "string", group: "content" },
2499
+ { name: "avatarUrl", label: "Avatar URL", type: "string", group: "content" },
2500
+ { name: "initials", label: "Initials", type: "string", group: "content" },
2501
+ { name: "content", label: "Content", type: "string", group: "content" },
2502
+ { name: "timestamp", label: "Timestamp", type: "string", group: "content" },
2503
+ { name: "likeCount", label: "Like count", type: "number", group: "content", default: 0 },
2504
+ { name: "liked", label: "Liked", type: "boolean", group: "behavior", default: false },
2505
+ { name: "replyCount", label: "Reply count", type: "number", group: "content", default: 0 },
2506
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2507
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
2508
+ { name: "showDivider", label: "Show divider", type: "boolean", group: "style", default: true }
2509
+ ]
2510
+ },
2511
+ {
2512
+ id: "OTPInputBlock",
2513
+ label: "OTP Input",
2514
+ description: "One-time password input with N digit boxes and auto-focus progression.",
2515
+ category: "form",
2516
+ tags: ["otp", "code", "input", "verification", "form"],
2517
+ themeMapping: { bg: "input", text: "foreground", accent: "primary", border: "border" },
2518
+ components: ["TextInput"],
2519
+ slots: [],
2520
+ props: [
2521
+ { name: "length", label: "Length", type: "number", group: "behavior", default: 6 },
2522
+ { name: "label", label: "Label", type: "string", group: "content" },
2523
+ { name: "error", label: "Error", type: "string", group: "content" },
2524
+ { name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
2525
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
2526
+ { name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
2527
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" }
2528
+ ]
2529
+ },
2530
+ {
2531
+ id: "TagInputBlock",
2532
+ label: "Tag Input",
2533
+ description: "Input field that creates removable tags/chips on Enter.",
2534
+ category: "form",
2535
+ tags: ["tag", "chip", "input", "form", "multi-select"],
2536
+ themeMapping: { bg: "input", text: "foreground", accent: "primary", border: "border" },
2537
+ components: ["TextInput"],
2538
+ slots: [],
2539
+ props: [
2540
+ { name: "tags", label: "Tags", type: "string", group: "content" },
2541
+ { name: "placeholder", label: "Placeholder", type: "string", group: "content", default: "Add tag..." },
2542
+ { name: "label", label: "Label", type: "string", group: "content" },
2543
+ { name: "maxTags", label: "Max tags", type: "number", group: "behavior", default: 10 },
2544
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" },
2545
+ { name: "tagColor", label: "Tag color", type: "color", group: "style", themeDefault: "primary" },
2546
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" }
2547
+ ]
2548
+ },
2549
+ {
2550
+ id: "StepperBlock",
2551
+ label: "Stepper",
2552
+ description: "Multi-step progress indicator with labels, descriptions, and active state.",
2553
+ category: "navigation",
2554
+ tags: ["stepper", "steps", "progress", "wizard", "navigation"],
2555
+ themeMapping: { bg: "card", text: "foreground", accent: "primary", border: "border" },
2556
+ components: [],
2557
+ slots: [],
2558
+ props: [
2559
+ { name: "steps", label: "Steps", type: "string", group: "content" },
2560
+ { name: "currentStep", label: "Current step", type: "number", group: "behavior", default: 0 },
2561
+ { name: "orientation", label: "Orientation", type: "enum", group: "layout", default: "horizontal", options: ["horizontal", "vertical"] },
2562
+ { name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
2563
+ { name: "completedColor", label: "Completed color", type: "color", group: "style", themeDefault: "primary" },
2564
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2565
+ { name: "showLabels", label: "Show labels", type: "boolean", group: "behavior", default: true },
2566
+ { name: "showDescriptions", label: "Show descriptions", type: "boolean", group: "behavior", default: false },
2567
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] }
2568
+ ]
2569
+ },
2570
+ {
2571
+ id: "RatingBlock",
2572
+ label: "Rating",
2573
+ description: "Star rating input or display with configurable max stars and colors.",
2574
+ category: "feedback",
2575
+ tags: ["rating", "stars", "review", "score", "feedback"],
2576
+ themeMapping: { text: "foreground", muted: "mutedForeground" },
2577
+ components: [],
2578
+ slots: [],
2579
+ props: [
2580
+ { name: "value", label: "Value", type: "number", group: "content", default: 0 },
2581
+ { name: "maxStars", label: "Max stars", type: "number", group: "behavior", default: 5 },
2582
+ { name: "readonly", label: "Readonly", type: "boolean", group: "behavior", default: false },
2583
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
2584
+ { name: "activeColor", label: "Active color", type: "color", group: "style", default: "#f59e0b" },
2585
+ { name: "inactiveColor", label: "Inactive color", type: "color", group: "style", themeDefault: "muted" },
2586
+ { name: "showValue", label: "Show value", type: "boolean", group: "behavior", default: false },
2587
+ { name: "label", label: "Label", type: "string", group: "content" }
2588
+ ]
2589
+ },
2590
+ {
2591
+ id: "QuoteBlock",
2592
+ label: "Quote",
2593
+ description: "Stylized quote/testimonial with author, avatar, and accent bar.",
2594
+ category: "content",
2595
+ tags: ["quote", "testimonial", "blockquote", "author", "review"],
2596
+ themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
2597
+ components: ["Avatar"],
2598
+ slots: [],
2599
+ props: [
2600
+ { name: "quote", label: "Quote", type: "string", group: "content" },
2601
+ { name: "author", label: "Author", type: "string", group: "content" },
2602
+ { name: "role", label: "Role", type: "string", group: "content" },
2603
+ { name: "avatarUrl", label: "Avatar URL", type: "string", group: "content" },
2604
+ { name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
2605
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2606
+ { name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
2607
+ { name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
2608
+ { name: "showQuoteIcon", label: "Show quote icon", type: "boolean", group: "behavior", default: true },
2609
+ { name: "variant", label: "Variant", type: "enum", group: "style", default: "card", options: ["left-bar", "card", "minimal"] }
2610
+ ]
2611
+ },
2612
+ {
2613
+ id: "TimelineBlock",
2614
+ label: "Timeline",
2615
+ description: "Vertical timeline with events, icons, timestamps, and connector lines.",
2616
+ category: "content",
2617
+ tags: ["timeline", "events", "history", "steps", "vertical"],
2618
+ themeMapping: { text: "foreground", accent: "primary", border: "border", muted: "mutedForeground" },
2619
+ components: [],
2620
+ slots: [],
2621
+ props: [
2622
+ { name: "events", label: "Events", type: "string", group: "content" },
2623
+ { name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
2624
+ { name: "lineColor", label: "Line color", type: "color", group: "style", themeDefault: "border" },
2625
+ { name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 3 },
2626
+ { name: "showConnector", label: "Show connector", type: "boolean", group: "behavior", default: true }
2627
+ ]
2628
+ },
2629
+ {
2630
+ id: "CounterBlock",
2631
+ label: "Counter",
2632
+ description: "Number counter with increment/decrement controls, min/max bounds, and step.",
2633
+ category: "form",
2634
+ tags: ["counter", "number", "input", "increment", "decrement"],
2635
+ themeMapping: { bg: "card", text: "foreground", accent: "primary", border: "border" },
2636
+ components: [],
2637
+ slots: [],
2638
+ props: [
2639
+ { name: "value", label: "Value", type: "number", group: "content", default: 0 },
2640
+ { name: "min", label: "Min", type: "number", group: "behavior", default: 0 },
2641
+ { name: "max", label: "Max", type: "number", group: "behavior", default: 100 },
2642
+ { name: "step", label: "Step", type: "number", group: "behavior", default: 1 },
2643
+ { name: "label", label: "Label", type: "string", group: "content" },
2644
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
2645
+ { name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
2646
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
2647
+ { name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false }
2648
+ ]
2649
+ },
2650
+ {
2651
+ id: "SegmentedControlBlock",
2652
+ label: "Segmented Control",
2653
+ description: "iOS-style segmented control / tab switcher with customizable colors and sizes.",
2654
+ category: "navigation",
2655
+ tags: ["segmented", "control", "tabs", "switcher", "navigation"],
2656
+ themeMapping: { bg: "muted", text: "foreground", accent: "primary" },
2657
+ components: [],
2658
+ slots: [],
2659
+ props: [
2660
+ { name: "segments", label: "Segments", type: "string", group: "content" },
2661
+ { name: "value", label: "Value", type: "string", group: "behavior" },
2662
+ { name: "background", label: "Background", type: "color", group: "style", themeDefault: "muted" },
2663
+ { name: "activeBackground", label: "Active background", type: "color", group: "style", themeDefault: "card" },
2664
+ { name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "foreground" },
2665
+ { name: "inactiveColor", label: "Inactive color", type: "color", group: "style", themeDefault: "mutedForeground" },
2666
+ { name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
2667
+ { name: "fullWidth", label: "Full width", type: "boolean", group: "layout", default: false }
2668
+ ]
2669
+ }
2670
+ ];
2671
+
2672
+ // foundation/layout/registry/blocks.ts
2673
+ var blockRegistry = [...existingBlocks, ...newBlocks];
2674
+ function getBlockMeta(id) {
2675
+ return blockRegistry.find((m) => m.id === id);
2676
+ }
2677
+
2678
+ // foundation/layout/registry/primitives.ts
2679
+ function getPrimitiveMeta(id) {
2680
+ return primitiveRegistry.find((m) => m.id === id);
2681
+ }
2682
+ var primitiveRegistry = [
2683
+ {
2684
+ id: "Box",
2685
+ label: "Box",
2686
+ description: "Flexible container with spacing, background, and border support.",
2687
+ category: "primitive",
2688
+ tags: ["box", "container", "view", "div"],
2689
+ slots: [{ name: "children", label: "Content", required: false }],
2690
+ props: [
2691
+ { name: "flex", label: "Flex", type: "number", group: "layout" },
2692
+ { name: "bg", label: "Background", type: "color", group: "style" },
2693
+ { name: "p", label: "Padding", type: "spacing", group: "layout" },
2694
+ { name: "px", label: "Padding X", type: "spacing", group: "layout" },
2695
+ { name: "py", label: "Padding Y", type: "spacing", group: "layout" },
2696
+ { name: "m", label: "Margin", type: "spacing", group: "layout" },
2697
+ { name: "mx", label: "Margin X", type: "spacing", group: "layout" },
2698
+ { name: "my", label: "Margin Y", type: "spacing", group: "layout" },
2699
+ { name: "width", label: "Width", type: "number", group: "layout" },
2700
+ { name: "height", label: "Height", type: "number", group: "layout" },
2701
+ { name: "maxWidth", label: "Max Width", type: "number", group: "layout" },
2702
+ { name: "minHeight", label: "Min Height", type: "number", group: "layout" },
2703
+ { name: "borderRadius", label: "Border Radius", type: "radius", group: "style" },
2704
+ { name: "overflow", label: "Overflow", type: "enum", group: "style", options: ["visible", "hidden", "scroll"] },
2705
+ { name: "justifyContent", label: "Justify", type: "enum", group: "layout", options: ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"] },
2706
+ { name: "alignItems", label: "Align Items", type: "enum", group: "layout", options: ["stretch", "flex-start", "center", "flex-end", "baseline"] },
2707
+ { name: "alignSelf", label: "Align Self", type: "enum", group: "layout", options: ["auto", "flex-start", "center", "flex-end", "stretch"] }
2708
+ ]
2709
+ },
2710
+ {
2711
+ id: "Stack",
2712
+ label: "Stack",
2713
+ description: "Vertical stack with consistent spacing between children.",
2714
+ category: "primitive",
2715
+ tags: ["stack", "vertical", "column", "vstack"],
2716
+ slots: [{ name: "children", label: "Content", required: false }],
2717
+ props: [
2718
+ { name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 2 },
2719
+ { name: "align", label: "Align", type: "enum", group: "layout", options: ["stretch", "flex-start", "center", "flex-end"] },
2720
+ { name: "bg", label: "Background", type: "color", group: "style" },
2721
+ { name: "p", label: "Padding", type: "spacing", group: "layout" },
2722
+ { name: "flex", label: "Flex", type: "number", group: "layout" }
2723
+ ]
2724
+ },
2725
+ {
2726
+ id: "Inline",
2727
+ label: "Inline",
2728
+ description: "Horizontal row with spacing and alignment.",
2729
+ category: "primitive",
2730
+ tags: ["inline", "horizontal", "row", "hstack"],
2731
+ slots: [{ name: "children", label: "Content", required: false }],
2732
+ props: [
2733
+ { name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 2 },
2734
+ { name: "align", label: "Align", type: "enum", group: "layout", options: ["stretch", "flex-start", "center", "flex-end", "baseline"] },
2735
+ { name: "justify", label: "Justify", type: "enum", group: "layout", options: ["flex-start", "center", "flex-end", "space-between", "space-around"] },
2736
+ { name: "wrap", label: "Wrap", type: "boolean", group: "layout", default: false },
2737
+ { name: "bg", label: "Background", type: "color", group: "style" },
2738
+ { name: "p", label: "Padding", type: "spacing", group: "layout" },
2739
+ { name: "flex", label: "Flex", type: "number", group: "layout" },
2740
+ { name: "fillWidth", label: "Fill Width", type: "boolean", group: "layout", default: false }
2741
+ ]
2742
+ },
2743
+ {
2744
+ id: "Center",
2745
+ label: "Center",
2746
+ description: "Centers content both horizontally and vertically.",
2747
+ category: "primitive",
2748
+ tags: ["center", "align", "middle"],
2749
+ slots: [{ name: "children", label: "Content", required: false }],
2750
+ props: [
2751
+ { name: "flex", label: "Flex", type: "number", group: "layout" },
2752
+ { name: "bg", label: "Background", type: "color", group: "style" },
2753
+ { name: "p", label: "Padding", type: "spacing", group: "layout" },
2754
+ { name: "py", label: "Padding Y", type: "spacing", group: "layout" },
2755
+ { name: "width", label: "Width", type: "number", group: "layout" },
2756
+ { name: "height", label: "Height", type: "number", group: "layout" }
2757
+ ]
2758
+ },
2759
+ {
2760
+ id: "Scroll",
2761
+ label: "Scroll",
2762
+ description: "Scrollable container.",
2763
+ category: "primitive",
2764
+ tags: ["scroll", "scrollview", "overflow"],
2765
+ slots: [{ name: "children", label: "Content", required: false }],
2766
+ props: [
2767
+ { name: "horizontal", label: "Horizontal", type: "boolean", group: "layout", default: false },
2768
+ { name: "showsScrollIndicator", label: "Show Indicator", type: "boolean", group: "behavior", default: true },
2769
+ { name: "bg", label: "Background", type: "color", group: "style" },
2770
+ { name: "p", label: "Padding", type: "spacing", group: "layout" },
2771
+ { name: "flex", label: "Flex", type: "number", group: "layout" }
2772
+ ]
2773
+ },
2774
+ {
2775
+ id: "Divider",
2776
+ label: "Divider",
2777
+ description: "Horizontal or vertical divider line.",
2778
+ category: "primitive",
2779
+ tags: ["divider", "separator", "line", "hr"],
2780
+ props: [
2781
+ { name: "vertical", label: "Vertical", type: "boolean", group: "layout", default: false },
2782
+ { name: "color", label: "Color", type: "color", group: "style" },
2783
+ { name: "thickness", label: "Thickness", type: "number", group: "style", default: 1 },
2784
+ { name: "spacing", label: "Spacing", type: "spacing", group: "layout" }
2785
+ ]
2786
+ }
2787
+ ];
2788
+ var META = getLayoutMeta("RootLayout");
507
2789
  var RootLayout = (rawProps) => {
508
- const { theme } = chunkT7V6TILB_js.useTheme();
2790
+ const { theme } = chunkRUZBEFDO_js.useTheme();
509
2791
  const {
510
2792
  children,
511
2793
  background,
@@ -515,7 +2797,7 @@ var RootLayout = (rawProps) => {
515
2797
  alignItems,
516
2798
  flexDirection,
517
2799
  gap
518
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META, theme);
2800
+ } = applyDefaults(rawProps, META, theme);
519
2801
  const bg = background || theme.background;
520
2802
  const containerStyle = {
521
2803
  flex: 1,
@@ -539,9 +2821,9 @@ var RootLayout = (rawProps) => {
539
2821
  return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: containerStyle, children });
540
2822
  };
541
2823
  var RootLayout_default = RootLayout;
542
- var META2 = chunkFLEEJX7L_js.getLayoutMeta("AuthLayout");
2824
+ var META2 = getLayoutMeta("AuthLayout");
543
2825
  var AuthLayout = (rawProps) => {
544
- const { theme } = chunkT7V6TILB_js.useTheme();
2826
+ const { theme } = chunkRUZBEFDO_js.useTheme();
545
2827
  const {
546
2828
  children,
547
2829
  branding,
@@ -555,7 +2837,7 @@ var AuthLayout = (rawProps) => {
555
2837
  formMaxWidth,
556
2838
  formScrollPaddingY,
557
2839
  formScrollPaddingX
558
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META2, theme);
2840
+ } = applyDefaults(rawProps, META2, theme);
559
2841
  const { breakpoint, isMobile } = useBreakpoint();
560
2842
  if (!breakpoint) return null;
561
2843
  const rootBg = !isMobile ? Array.isArray(background) ? void 0 : background : void 0;
@@ -592,7 +2874,7 @@ function useStudioItems(items, count, placeholder) {
592
2874
  if (safe.length > 0) return safe;
593
2875
  return Array.from({ length: Math.max(1, count) }, (_, i) => placeholder(i));
594
2876
  }
595
- var META3 = chunkFLEEJX7L_js.getLayoutMeta("BentoLayout");
2877
+ var META3 = getLayoutMeta("BentoLayout");
596
2878
  var generateModernBentoConfig = (itemCount, isMobile) => {
597
2879
  const config = [];
598
2880
  const patterns = [
@@ -619,7 +2901,7 @@ var generateModernBentoConfig = (itemCount, isMobile) => {
619
2901
  return config;
620
2902
  };
621
2903
  var BentoLayout = (rawProps) => {
622
- const { theme } = chunkT7V6TILB_js.useTheme();
2904
+ const { theme } = chunkRUZBEFDO_js.useTheme();
623
2905
  const {
624
2906
  items: itemsProp,
625
2907
  children: childrenProp,
@@ -632,7 +2914,7 @@ var BentoLayout = (rawProps) => {
632
2914
  baseHeight,
633
2915
  background,
634
2916
  borderRadius
635
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META3, theme);
2917
+ } = applyDefaults(rawProps, META3, theme);
636
2918
  const { isMobile } = useBreakpoint();
637
2919
  const maxCols = isMobile ? 2 : 4;
638
2920
  const rawItems = Array.isArray(itemsProp) && itemsProp.length > 0 ? itemsProp : React12__default.default.Children.toArray(childrenProp).filter(Boolean);
@@ -711,10 +2993,10 @@ var BentoLayout = (rawProps) => {
711
2993
  };
712
2994
  var BentoLayout_default = BentoLayout;
713
2995
  var AnimatedBox = Animated12__default.default.createAnimatedComponent(Box_default);
714
- var META4 = chunkFLEEJX7L_js.getLayoutMeta("BottomDrawerLayout");
715
- var { springConfig: SPRING_CONFIG } = chunkFLEEJX7L_js.getConstants(META4);
2996
+ var META4 = getLayoutMeta("BottomDrawerLayout");
2997
+ var { springConfig: SPRING_CONFIG } = getConstants(META4);
716
2998
  var BottomDrawerLayout = (rawProps) => {
717
- const { theme } = chunkT7V6TILB_js.useTheme();
2999
+ const { theme } = chunkRUZBEFDO_js.useTheme();
718
3000
  const {
719
3001
  content,
720
3002
  drawerContent,
@@ -732,7 +3014,7 @@ var BottomDrawerLayout = (rawProps) => {
732
3014
  contentScaleWhenOpen,
733
3015
  handleBarColor,
734
3016
  handleButtonSize
735
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META4, theme);
3017
+ } = applyDefaults(rawProps, META4, theme);
736
3018
  const { isMobile } = useBreakpoint();
737
3019
  const [isOpen, setIsOpen] = React12.useState(defaultOpen);
738
3020
  const translateY = Animated12.useSharedValue(defaultOpen ? 0 : drawerHeight);
@@ -873,9 +3155,9 @@ var styles = reactNative.StyleSheet.create({
873
3155
  }
874
3156
  });
875
3157
  var BottomDrawerLayout_default = BottomDrawerLayout;
876
- var META5 = chunkFLEEJX7L_js.getLayoutMeta("CenteredLayout");
3158
+ var META5 = getLayoutMeta("CenteredLayout");
877
3159
  var CenteredLayout = (rawProps) => {
878
- const { theme } = chunkT7V6TILB_js.useTheme();
3160
+ const { theme } = chunkRUZBEFDO_js.useTheme();
879
3161
  const {
880
3162
  children,
881
3163
  maxWidth,
@@ -886,7 +3168,7 @@ var CenteredLayout = (rawProps) => {
886
3168
  shadowed,
887
3169
  mobilePadding,
888
3170
  desktopPadding
889
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META5, theme);
3171
+ } = applyDefaults(rawProps, META5, theme);
890
3172
  const { isMobile } = useBreakpoint();
891
3173
  const pageBg = background;
892
3174
  const cardBg = isMobile ? "transparent" : cardBackground;
@@ -905,9 +3187,9 @@ var CenteredLayout = (rawProps) => {
905
3187
  ) }) }) });
906
3188
  };
907
3189
  var CenteredLayout_default = CenteredLayout;
908
- var META6 = chunkFLEEJX7L_js.getLayoutMeta("CrossTabLayout");
3190
+ var META6 = getLayoutMeta("CrossTabLayout");
909
3191
  var CrossTabLayout = (rawProps) => {
910
- const { theme } = chunkT7V6TILB_js.useTheme();
3192
+ const { theme } = chunkRUZBEFDO_js.useTheme();
911
3193
  const {
912
3194
  items: itemsProp,
913
3195
  children: childrenProp,
@@ -922,7 +3204,7 @@ var CrossTabLayout = (rawProps) => {
922
3204
  longPressDuration,
923
3205
  dragScale,
924
3206
  background
925
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META6, theme);
3207
+ } = applyDefaults(rawProps, META6, theme);
926
3208
  const SPRING = { damping: springDamping, stiffness: springStiffness, mass: 0.5 };
927
3209
  const isWeb2 = reactNative.Platform.OS === "web";
928
3210
  const [containerWidth, setContainerWidth] = React12.useState(0);
@@ -942,7 +3224,7 @@ var CrossTabLayout = (rawProps) => {
942
3224
  return newChildren;
943
3225
  });
944
3226
  }, [rawItems]);
945
- const gap = React12.useMemo(() => chunk45NSZH5Z_js.spacing[spacing2] ?? 0, [spacing2]);
3227
+ const gap = React12.useMemo(() => chunkUBZMVSIN_js.spacing[spacing2] ?? 0, [spacing2]);
946
3228
  const cellWidth = React12.useMemo(() => (containerWidth || 300) / columns, [containerWidth, columns]);
947
3229
  const handleSwap = React12.useCallback((fromIdx, toIdx) => {
948
3230
  if (toIdx < 0 || toIdx >= items.length || fromIdx === toIdx) return;
@@ -1055,11 +3337,11 @@ var DraggableCell = ({
1055
3337
  ) });
1056
3338
  };
1057
3339
  var CrossTabLayout_default = CrossTabLayout;
1058
- var META7 = chunkFLEEJX7L_js.getLayoutMeta("DashboardLayout");
3340
+ var META7 = getLayoutMeta("DashboardLayout");
1059
3341
  var AnimatedBox2 = Animated12__default.default.createAnimatedComponent(Box_default);
1060
3342
  var HamburgerIcon = ({ color }) => /* @__PURE__ */ jsxRuntime.jsx(Stack_default, { spacing: 1, p: 4, align: "center", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsxRuntime.jsx(Box_default, { width: 20, height: 2, bg: color, opacity: 0.5 }, i)) });
1061
3343
  var DashboardLayout = (rawProps) => {
1062
- const { theme } = chunkT7V6TILB_js.useTheme();
3344
+ const { theme } = chunkRUZBEFDO_js.useTheme();
1063
3345
  const {
1064
3346
  header,
1065
3347
  sidebar,
@@ -1079,7 +3361,7 @@ var DashboardLayout = (rawProps) => {
1079
3361
  footerBackground,
1080
3362
  headerPaddingX,
1081
3363
  mobileHeaderMinHeight
1082
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META7, theme);
3364
+ } = applyDefaults(rawProps, META7, theme);
1083
3365
  const { isMobile } = useBreakpoint();
1084
3366
  const [isCollapsed, setIsCollapsed] = React12.useState(false);
1085
3367
  const sidebarAnimWidth = Animated12.useSharedValue(sidebarWidth);
@@ -1145,8 +3427,8 @@ var DashboardLayout = (rawProps) => {
1145
3427
  ] });
1146
3428
  };
1147
3429
  var DashboardLayout_default = DashboardLayout;
1148
- var META8 = chunkFLEEJX7L_js.getLayoutMeta("DeckLayout");
1149
- var C = chunkFLEEJX7L_js.getConstants(META8);
3430
+ var META8 = getLayoutMeta("DeckLayout");
3431
+ var C = getConstants(META8);
1150
3432
  var SWIPE_THRESHOLD = C.swipeThreshold;
1151
3433
  var EXIT_DISTANCE = C.exitDistance;
1152
3434
  var SPRING_CONFIG2 = C.springConfig;
@@ -1175,8 +3457,8 @@ var PeekCard = ({
1175
3457
  return /* @__PURE__ */ jsxRuntime.jsx(Animated12__default.default.View, { style: [styles2.card, animatedStyle, { backgroundColor: cardBackground, borderRadius: cardBorderRadius }], children: child });
1176
3458
  };
1177
3459
  var DeckLayout = (rawProps) => {
1178
- const { theme } = chunkT7V6TILB_js.useTheme();
1179
- const { items: itemsProp, cards: cardsProp, children: childrenProp, peekOffset, peekScale, peekCount, cardBackground, cardBorderRadius, containerWidth, containerHeight, peekRotation, direction, background } = chunkFLEEJX7L_js.applyDefaults(rawProps, META8, theme);
3460
+ const { theme } = chunkRUZBEFDO_js.useTheme();
3461
+ const { items: itemsProp, cards: cardsProp, children: childrenProp, peekOffset, peekScale, peekCount, cardBackground, cardBorderRadius, containerWidth, containerHeight, peekRotation, direction, background } = applyDefaults(rawProps, META8, theme);
1180
3462
  const rawItems = Array.isArray(itemsProp) && itemsProp.length > 0 ? itemsProp : Array.isArray(cardsProp) && cardsProp.length > 0 ? cardsProp : Array.isArray(childrenProp) ? childrenProp : React12__default.default.Children.toArray(childrenProp);
1181
3463
  const childrenArray = useStudioItems(
1182
3464
  rawItems,
@@ -1325,9 +3607,9 @@ function resolveLayoutPadding(padding) {
1325
3607
  pr: padding.right ?? padding.horizontal
1326
3608
  };
1327
3609
  }
1328
- var META9 = chunkFLEEJX7L_js.getLayoutMeta("FlexLayout");
3610
+ var META9 = getLayoutMeta("FlexLayout");
1329
3611
  var FlexLayout = (rawProps) => {
1330
- const { theme } = chunkT7V6TILB_js.useTheme();
3612
+ const { theme } = chunkRUZBEFDO_js.useTheme();
1331
3613
  const {
1332
3614
  direction,
1333
3615
  wrap,
@@ -1342,7 +3624,7 @@ var FlexLayout = (rawProps) => {
1342
3624
  background,
1343
3625
  borderRadius,
1344
3626
  children
1345
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META9, theme);
3627
+ } = applyDefaults(rawProps, META9, theme);
1346
3628
  const { isMobile, isTablet, isDesktop } = useBreakpoint();
1347
3629
  const finalSpacing = useAdaptiveValue(adaptiveSpacing, spacingProp);
1348
3630
  const finalDirection = useAdaptiveValue(adaptiveDirection, direction);
@@ -1400,8 +3682,8 @@ var usePlatformInfo = () => {
1400
3682
  isAndroid: reactNative.Platform.OS === "android"
1401
3683
  };
1402
3684
  };
1403
- var META10 = chunkFLEEJX7L_js.getLayoutMeta("FlipLayout");
1404
- var C2 = chunkFLEEJX7L_js.getConstants(META10);
3685
+ var META10 = getLayoutMeta("FlipLayout");
3686
+ var C2 = getConstants(META10);
1405
3687
  C2.swipeThreshold;
1406
3688
  var FLIP_THRESHOLD = C2.flipThreshold;
1407
3689
  var SCALE_FACTOR = C2.scaleFactor;
@@ -1438,7 +3720,7 @@ var WebButton = React12__default.default.memo(({
1438
3720
  }
1439
3721
  ));
1440
3722
  var FlipLayout = (rawProps) => {
1441
- const { theme } = chunkT7V6TILB_js.useTheme();
3723
+ const { theme } = chunkRUZBEFDO_js.useTheme();
1442
3724
  const {
1443
3725
  items: itemsProp,
1444
3726
  cards: cardsRaw,
@@ -1458,7 +3740,7 @@ var FlipLayout = (rawProps) => {
1458
3740
  dezoomDuration,
1459
3741
  flipDuration,
1460
3742
  slideOutDuration
1461
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META10, theme);
3743
+ } = applyDefaults(rawProps, META10, theme);
1462
3744
  const { isWeb: isWeb2 } = usePlatformInfo();
1463
3745
  const rawCards = Array.isArray(itemsProp) && itemsProp.length > 0 ? itemsProp : Array.isArray(cardsRaw) && cardsRaw.length > 0 ? cardsRaw : Array.isArray(childrenRaw) ? childrenRaw : childrenRaw != null ? React12__default.default.Children.toArray(childrenRaw) : [];
1464
3746
  const children = rawCards;
@@ -1722,9 +4004,9 @@ var FlipLayout = (rawProps) => {
1722
4004
  );
1723
4005
  };
1724
4006
  var FlipLayout_default = FlipLayout;
1725
- var META11 = chunkFLEEJX7L_js.getLayoutMeta("FooterLayout");
4007
+ var META11 = getLayoutMeta("FooterLayout");
1726
4008
  var FooterLayout = (rawProps) => {
1727
- const { theme } = chunkT7V6TILB_js.useTheme();
4009
+ const { theme } = chunkRUZBEFDO_js.useTheme();
1728
4010
  const {
1729
4011
  content,
1730
4012
  footer,
@@ -1741,7 +4023,7 @@ var FooterLayout = (rawProps) => {
1741
4023
  padding,
1742
4024
  footerPadding,
1743
4025
  compact
1744
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META11, theme);
4026
+ } = applyDefaults(rawProps, META11, theme);
1745
4027
  const config = React12.useMemo(() => ({
1746
4028
  height: compact ? footerHeight * 0.8 : footerHeight,
1747
4029
  contentP: compact ? 3 : padding,
@@ -1759,10 +4041,10 @@ var FooterLayout = (rawProps) => {
1759
4041
  ] }) });
1760
4042
  };
1761
4043
  var FooterLayout_default = FooterLayout;
1762
- var META12 = chunkFLEEJX7L_js.getLayoutMeta("GridLayout");
4044
+ var META12 = getLayoutMeta("GridLayout");
1763
4045
  var GridLayout = (rawProps) => {
1764
- const { theme } = chunkT7V6TILB_js.useTheme();
1765
- const cfg = chunkFLEEJX7L_js.applyDefaults(rawProps, META12, theme);
4046
+ const { theme } = chunkRUZBEFDO_js.useTheme();
4047
+ const cfg = applyDefaults(rawProps, META12, theme);
1766
4048
  const { isMobile, isTablet } = useBreakpoint();
1767
4049
  const defaultColumns = React12.useMemo(() => {
1768
4050
  if (isMobile) return 1;
@@ -1791,10 +4073,10 @@ var GridLayout = (rawProps) => {
1791
4073
  return /* @__PURE__ */ jsxRuntime.jsx(Box_default, { flex: 1, bg: cfg.background, borderRadius: cfg.borderRadius, overflow: "hidden", children: cfg.scrollable ? /* @__PURE__ */ jsxRuntime.jsx(Scroll_default, { contentContainerStyle: { flexGrow: 1 }, children: content }) : content });
1792
4074
  };
1793
4075
  var GridLayout_default = GridLayout;
1794
- var META13 = chunkFLEEJX7L_js.getLayoutMeta("HeaderContentLayout");
4076
+ var META13 = getLayoutMeta("HeaderContentLayout");
1795
4077
  var AnimatedBox3 = Animated12__default.default.createAnimatedComponent(Box_default);
1796
4078
  var HeaderContentLayout = (rawProps) => {
1797
- const { theme } = chunkT7V6TILB_js.useTheme();
4079
+ const { theme } = chunkRUZBEFDO_js.useTheme();
1798
4080
  const {
1799
4081
  header,
1800
4082
  content,
@@ -1811,7 +4093,7 @@ var HeaderContentLayout = (rawProps) => {
1811
4093
  padding,
1812
4094
  headerPadding,
1813
4095
  scrollEventThrottle
1814
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META13, theme);
4096
+ } = applyDefaults(rawProps, META13, theme);
1815
4097
  const scrollY = Animated12.useSharedValue(0);
1816
4098
  const scrollHandler = Animated12.useAnimatedScrollHandler((event) => {
1817
4099
  scrollY.value = event.contentOffset.y;
@@ -1882,10 +4164,10 @@ var HeaderContentLayout = (rawProps) => {
1882
4164
  };
1883
4165
  var HeaderContentLayout_default = HeaderContentLayout;
1884
4166
  var AnimatedBox4 = Animated12__default.default.createAnimatedComponent(Box_default);
1885
- var META14 = chunkFLEEJX7L_js.getLayoutMeta("LeftDrawerLayout");
1886
- var { springConfig: SPRING_CONFIG3 } = chunkFLEEJX7L_js.getConstants(META14);
4167
+ var META14 = getLayoutMeta("LeftDrawerLayout");
4168
+ var { springConfig: SPRING_CONFIG3 } = getConstants(META14);
1887
4169
  var LeftDrawerLayout = (rawProps) => {
1888
- const { theme } = chunkT7V6TILB_js.useTheme();
4170
+ const { theme } = chunkRUZBEFDO_js.useTheme();
1889
4171
  const {
1890
4172
  content,
1891
4173
  drawerContent,
@@ -1903,7 +4185,7 @@ var LeftDrawerLayout = (rawProps) => {
1903
4185
  contentScaleWhenOpen,
1904
4186
  handleBarColor,
1905
4187
  handleBarWidth
1906
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META14, theme);
4188
+ } = applyDefaults(rawProps, META14, theme);
1907
4189
  const [isOpen, setIsOpen] = React12.useState(defaultOpen);
1908
4190
  const translateX = Animated12.useSharedValue(defaultOpen ? 0 : -drawerWidth);
1909
4191
  const context = Animated12.useSharedValue({ x: 0 });
@@ -2009,9 +4291,9 @@ var styles3 = reactNative.StyleSheet.create({
2009
4291
  }
2010
4292
  });
2011
4293
  var LeftDrawerLayout_default = LeftDrawerLayout;
2012
- var META15 = chunkFLEEJX7L_js.getLayoutMeta("MasonryLayout");
4294
+ var META15 = getLayoutMeta("MasonryLayout");
2013
4295
  var MasonryLayout = (rawProps) => {
2014
- const { theme } = chunkT7V6TILB_js.useTheme();
4296
+ const { theme } = chunkRUZBEFDO_js.useTheme();
2015
4297
  const {
2016
4298
  items: itemsProp,
2017
4299
  children: childrenProp,
@@ -2024,7 +4306,7 @@ var MasonryLayout = (rawProps) => {
2024
4306
  itemBackground,
2025
4307
  itemBorderRadius,
2026
4308
  padding
2027
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META15, theme);
4309
+ } = applyDefaults(rawProps, META15, theme);
2028
4310
  const rawItems = Array.isArray(itemsProp) && itemsProp.length > 0 ? itemsProp : React12__default.default.Children.toArray(childrenProp).filter(Boolean);
2029
4311
  const resolvedItems = useStudioItems(
2030
4312
  rawItems,
@@ -2083,9 +4365,9 @@ var MasonryLayout = (rawProps) => {
2083
4365
  );
2084
4366
  };
2085
4367
  var MasonryLayout_default = MasonryLayout;
2086
- var META16 = chunkFLEEJX7L_js.getLayoutMeta("ParallaxLayout");
4368
+ var META16 = getLayoutMeta("ParallaxLayout");
2087
4369
  var ParallaxLayout = (rawProps) => {
2088
- const { theme } = chunkT7V6TILB_js.useTheme();
4370
+ const { theme } = chunkRUZBEFDO_js.useTheme();
2089
4371
  const {
2090
4372
  items: itemsProp,
2091
4373
  children: childrenProp,
@@ -2102,7 +4384,7 @@ var ParallaxLayout = (rawProps) => {
2102
4384
  bounces,
2103
4385
  showScrollIndicator,
2104
4386
  scrollEventThrottle
2105
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META16, theme);
4387
+ } = applyDefaults(rawProps, META16, theme);
2106
4388
  const rawItems = Array.isArray(itemsProp) && itemsProp.length > 0 ? itemsProp : React12__default.default.Children.toArray(childrenProp).filter(Boolean);
2107
4389
  const safeItems = useStudioItems(
2108
4390
  rawItems,
@@ -2121,7 +4403,7 @@ var ParallaxLayout = (rawProps) => {
2121
4403
  const masterRowIndex = Animated12.useSharedValue(-1);
2122
4404
  const contentWidths = Animated12.useSharedValue(new Array(rows.length).fill(0));
2123
4405
  const containerWidths = Animated12.useSharedValue(new Array(rows.length).fill(0));
2124
- const gap = chunk45NSZH5Z_js.spacing[spacing2] ?? 0;
4406
+ const gap = chunkUBZMVSIN_js.spacing[spacing2] ?? 0;
2125
4407
  return /* @__PURE__ */ jsxRuntime.jsx(Scroll_default, { children: /* @__PURE__ */ jsxRuntime.jsx(Box_default, { py: spacing2, bg: background, children: rows.map((rowItems, index) => /* @__PURE__ */ jsxRuntime.jsx(
2126
4408
  ParallaxRow,
2127
4409
  {
@@ -2275,9 +4557,9 @@ var ParallaxRow = ({
2275
4557
  );
2276
4558
  };
2277
4559
  var ParallaxLayout_default = ParallaxLayout;
2278
- var META17 = chunkFLEEJX7L_js.getLayoutMeta("ResponsiveLayout");
4560
+ var META17 = getLayoutMeta("ResponsiveLayout");
2279
4561
  var ResponsiveLayout = (rawProps) => {
2280
- const { theme } = chunkT7V6TILB_js.useTheme();
4562
+ const { theme } = chunkRUZBEFDO_js.useTheme();
2281
4563
  const {
2282
4564
  header,
2283
4565
  sidebar,
@@ -2302,7 +4584,7 @@ var ResponsiveLayout = (rawProps) => {
2302
4584
  mobileHeaderHeight,
2303
4585
  tabletFooterHeight,
2304
4586
  sidebarMaxWidth
2305
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META17, theme);
4587
+ } = applyDefaults(rawProps, META17, theme);
2306
4588
  const { breakpoint, isMobile } = useBreakpoint();
2307
4589
  const isTabletRange = breakpoint === "md" || breakpoint === "lg";
2308
4590
  const config = React12.useMemo(() => ({
@@ -2389,9 +4671,9 @@ var useSafeArea = () => {
2389
4671
  horizontal: insets.left + insets.right
2390
4672
  };
2391
4673
  };
2392
- var META18 = chunkFLEEJX7L_js.getLayoutMeta("ScrollLayout");
4674
+ var META18 = getLayoutMeta("ScrollLayout");
2393
4675
  var ScrollLayout = (rawProps) => {
2394
- const { theme } = chunkT7V6TILB_js.useTheme();
4676
+ const { theme } = chunkRUZBEFDO_js.useTheme();
2395
4677
  const {
2396
4678
  header,
2397
4679
  content,
@@ -2414,7 +4696,7 @@ var ScrollLayout = (rawProps) => {
2414
4696
  footerPadding,
2415
4697
  mobileHeaderHeight,
2416
4698
  mobileFooterHeight
2417
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META18, theme);
4699
+ } = applyDefaults(rawProps, META18, theme);
2418
4700
  const { isMobile } = useBreakpoint();
2419
4701
  const safeArea = useSafeArea();
2420
4702
  const finalBg = background;
@@ -2494,9 +4776,9 @@ var ScrollLayout = (rawProps) => {
2494
4776
  );
2495
4777
  };
2496
4778
  var ScrollLayout_default = ScrollLayout;
2497
- var META19 = chunkFLEEJX7L_js.getLayoutMeta("SidebarLayout");
4779
+ var META19 = getLayoutMeta("SidebarLayout");
2498
4780
  var SidebarLayout = (rawProps) => {
2499
- const { theme } = chunkT7V6TILB_js.useTheme();
4781
+ const { theme } = chunkRUZBEFDO_js.useTheme();
2500
4782
  const {
2501
4783
  sidebar,
2502
4784
  content,
@@ -2514,7 +4796,7 @@ var SidebarLayout = (rawProps) => {
2514
4796
  resizable,
2515
4797
  sidebarMinWidth,
2516
4798
  sidebarMaxWidth
2517
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META19, theme);
4799
+ } = applyDefaults(rawProps, META19, theme);
2518
4800
  const { isMobile } = useBreakpoint();
2519
4801
  const showSidebar = !(collapsible && isMobile);
2520
4802
  const canResize = resizable && reactNative.Platform.OS === "web" && !isMobile;
@@ -2576,10 +4858,10 @@ var SidebarLayout = (rawProps) => {
2576
4858
  );
2577
4859
  };
2578
4860
  var SidebarLayout_default = SidebarLayout;
2579
- var META20 = chunkFLEEJX7L_js.getLayoutMeta("SketchLayout");
4861
+ var META20 = getLayoutMeta("SketchLayout");
2580
4862
  var SketchLayout = (rawProps) => {
2581
- const { theme } = chunkT7V6TILB_js.useTheme();
2582
- const { background } = chunkFLEEJX7L_js.applyDefaults(rawProps, META20, theme);
4863
+ const { theme } = chunkRUZBEFDO_js.useTheme();
4864
+ const { background } = applyDefaults(rawProps, META20, theme);
2583
4865
  return /* @__PURE__ */ jsxRuntime.jsx(Box_default, { flex: 1, bg: background, children: /* @__PURE__ */ jsxRuntime.jsx(Center_default, { flex: 1, p: 5, children: /* @__PURE__ */ jsxRuntime.jsxs(Stack_default, { spacing: 2, align: "center", children: [
2584
4866
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { fontSize: 18, fontWeight: "600", color: theme.foreground, textAlign: "center" }, children: "Drawing Canvas Placeholder" }),
2585
4867
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { fontSize: 14, color: theme.mutedForeground, textAlign: "center" }, children: "Skia-based drawing component has been removed" }),
@@ -2587,9 +4869,9 @@ var SketchLayout = (rawProps) => {
2587
4869
  ] }) }) });
2588
4870
  };
2589
4871
  var SketchLayout_default = SketchLayout;
2590
- var META21 = chunkFLEEJX7L_js.getLayoutMeta("SplitLayout");
4872
+ var META21 = getLayoutMeta("SplitLayout");
2591
4873
  var SplitLayout = (rawProps) => {
2592
- const { theme } = chunkT7V6TILB_js.useTheme();
4874
+ const { theme } = chunkRUZBEFDO_js.useTheme();
2593
4875
  const {
2594
4876
  left,
2595
4877
  right,
@@ -2604,7 +4886,7 @@ var SplitLayout = (rawProps) => {
2604
4886
  rightBackground,
2605
4887
  leftBorderRadius,
2606
4888
  rightBorderRadius
2607
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META21, theme);
4889
+ } = applyDefaults(rawProps, META21, theme);
2608
4890
  const { isMobile } = useBreakpoint();
2609
4891
  const isVertical = orientation === "vertical";
2610
4892
  const leftFlex = React12.useMemo(() => leftWidth ? void 0 : ratio, [leftWidth, ratio]);
@@ -2628,12 +4910,12 @@ var SplitLayout = (rawProps) => {
2628
4910
  ] }) });
2629
4911
  };
2630
4912
  var SplitLayout_default = SplitLayout;
2631
- var META22 = chunkFLEEJX7L_js.getLayoutMeta("SwiperLayout");
2632
- var C3 = chunkFLEEJX7L_js.getConstants(META22);
4913
+ var META22 = getLayoutMeta("SwiperLayout");
4914
+ var C3 = getConstants(META22);
2633
4915
  C3.swipeThreshold;
2634
4916
  var SCALE_FACTOR2 = C3.scaleFactor;
2635
4917
  var SwiperLayout = (rawProps) => {
2636
- const { theme } = chunkT7V6TILB_js.useTheme();
4918
+ const { theme } = chunkRUZBEFDO_js.useTheme();
2637
4919
  const {
2638
4920
  items: itemsProp,
2639
4921
  slides: slidesProp,
@@ -2658,7 +4940,7 @@ var SwiperLayout = (rawProps) => {
2658
4940
  padding,
2659
4941
  cardCountBackground,
2660
4942
  cardCountTextColor
2661
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META22, theme);
4943
+ } = applyDefaults(rawProps, META22, theme);
2662
4944
  const springConfig = { damping: springDamping, stiffness: springStiffness };
2663
4945
  const rawItems = Array.isArray(itemsProp) && itemsProp.length > 0 ? itemsProp : Array.isArray(slidesProp) && slidesProp.length > 0 ? slidesProp : Array.isArray(childrenProp) ? childrenProp : React12__default.default.Children.toArray(childrenProp);
2664
4946
  const resolvedChildren = useStudioItems(
@@ -2821,9 +5103,9 @@ var SwiperLayout = (rawProps) => {
2821
5103
  };
2822
5104
  var SwiperLayout_default = SwiperLayout;
2823
5105
  var { height: SCREEN_HEIGHT, width: SCREEN_WIDTH } = reactNative.Dimensions.get("window");
2824
- var META23 = chunkFLEEJX7L_js.getLayoutMeta("Swipe2ScreenLayout");
5106
+ var META23 = getLayoutMeta("Swipe2ScreenLayout");
2825
5107
  var Swipe2ScreenLayout = (rawProps) => {
2826
- const { theme } = chunkT7V6TILB_js.useTheme();
5108
+ const { theme } = chunkRUZBEFDO_js.useTheme();
2827
5109
  const {
2828
5110
  containerBackground,
2829
5111
  screenBackground,
@@ -2831,7 +5113,7 @@ var Swipe2ScreenLayout = (rawProps) => {
2831
5113
  projectedScale,
2832
5114
  animationDuration,
2833
5115
  slides
2834
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META23, theme);
5116
+ } = applyDefaults(rawProps, META23, theme);
2835
5117
  const [permission, requestPermission] = expoCamera.useCameraPermissions();
2836
5118
  const [isConnected, setIsConnected] = React12.useState(false);
2837
5119
  const [isProjected, setIsProjected] = React12.useState(false);
@@ -2968,7 +5250,7 @@ var styles4 = reactNative.StyleSheet.create({
2968
5250
  locked: { backgroundColor: "#ff3b30", borderColor: "#ff3b30" }
2969
5251
  });
2970
5252
  var Swipe2ScreenLayout_default = Swipe2ScreenLayout;
2971
- var META24 = chunkFLEEJX7L_js.getLayoutMeta("SystemLayout");
5253
+ var META24 = getLayoutMeta("SystemLayout");
2972
5254
  var getContrastStyle = (hexColor) => {
2973
5255
  const hex = hexColor.replace("#", "");
2974
5256
  if (hex.length < 6) return "dark";
@@ -2987,7 +5269,7 @@ var SystemUIWrapper = (rawProps) => {
2987
5269
  navigationBarReferenceColor,
2988
5270
  edges,
2989
5271
  style
2990
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META24);
5272
+ } = applyDefaults(rawProps, META24);
2991
5273
  const insets = reactNativeSafeAreaContext.useSafeAreaInsets();
2992
5274
  const { height } = reactNative.useWindowDimensions();
2993
5275
  const referenceColor = React12.useMemo(() => {
@@ -3049,11 +5331,11 @@ var styles5 = reactNative.StyleSheet.create({
3049
5331
  content: { flex: 1 }
3050
5332
  });
3051
5333
  var AnimatedBox5 = Animated12__default.default.createAnimatedComponent(Box_default);
3052
- var META25 = chunkFLEEJX7L_js.getLayoutMeta("TopDrawerLayout");
3053
- var { springConfig: SPRING_CONFIG4 } = chunkFLEEJX7L_js.getConstants(META25);
5334
+ var META25 = getLayoutMeta("TopDrawerLayout");
5335
+ var { springConfig: SPRING_CONFIG4 } = getConstants(META25);
3054
5336
  var TopDrawerLayout = React12__default.default.forwardRef(
3055
5337
  (rawProps, ref) => {
3056
- const { theme } = chunkT7V6TILB_js.useTheme();
5338
+ const { theme } = chunkRUZBEFDO_js.useTheme();
3057
5339
  const {
3058
5340
  content,
3059
5341
  drawerContent,
@@ -3073,7 +5355,7 @@ var TopDrawerLayout = React12__default.default.forwardRef(
3073
5355
  closeButtonSize,
3074
5356
  closeButtonBorderColor,
3075
5357
  closeButtonTextColor
3076
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META25, theme);
5358
+ } = applyDefaults(rawProps, META25, theme);
3077
5359
  const [isOpen, setIsOpen] = React12.useState(defaultOpen);
3078
5360
  const translateY = Animated12.useSharedValue(defaultOpen ? 0 : -drawerHeight);
3079
5361
  const context = Animated12.useSharedValue({ y: 0 });
@@ -3329,7 +5611,7 @@ var styles6 = reactNative.StyleSheet.create({
3329
5611
  }
3330
5612
  });
3331
5613
  var TopDrawerLayout_default = TopDrawerLayout;
3332
- var META26 = chunkFLEEJX7L_js.getLayoutMeta("TutoLayout");
5614
+ var META26 = getLayoutMeta("TutoLayout");
3333
5615
  var { width: SW, height: SH } = reactNative.Dimensions.get("window");
3334
5616
  var isRefZone = (z) => "ref" in z && z.ref !== void 0;
3335
5617
  var useTutoRef = () => React12.useRef(null);
@@ -3368,7 +5650,7 @@ var measureRef = (ref, padding) => new Promise((resolve) => {
3368
5650
  });
3369
5651
  });
3370
5652
  });
3371
- var { swipeThreshold: SWIPE_THRESHOLD3 = 40 } = chunkFLEEJX7L_js.getConstants(META26);
5653
+ var { swipeThreshold: SWIPE_THRESHOLD3 = 40 } = getConstants(META26);
3372
5654
  var gestureMatches = (gesture, dx, dy, duration) => {
3373
5655
  const absDx = Math.abs(dx);
3374
5656
  const absDy = Math.abs(dy);
@@ -3497,7 +5779,7 @@ var HighlightZone = ({ zone, color }) => {
3497
5779
  const { x: zx, y: zy, width: zw, height: zh } = zone;
3498
5780
  const zc = zone.color ?? color;
3499
5781
  const op = Animated12.useSharedValue(0);
3500
- const borderRadius = zone.shape === "circle" ? Math.max(zw, zh) / 2 : zone.shape === "pill" ? Math.min(zw, zh) / 2 : chunk45NSZH5Z_js.radii.lg;
5782
+ const borderRadius = zone.shape === "circle" ? Math.max(zw, zh) / 2 : zone.shape === "pill" ? Math.min(zw, zh) / 2 : chunkUBZMVSIN_js.radii.lg;
3501
5783
  React12.useEffect(() => {
3502
5784
  const delay = zone.delay ?? 0;
3503
5785
  op.value = Animated12.withDelay(delay, Animated12.withTiming(1, { duration: 300 }));
@@ -3599,12 +5881,12 @@ var TutoLayout = (rawProps) => {
3599
5881
  textBackground,
3600
5882
  textColor,
3601
5883
  mutedTextColor
3602
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META26, chunkT7V6TILB_js.useTheme().theme);
5884
+ } = applyDefaults(rawProps, META26, chunkRUZBEFDO_js.useTheme().theme);
3603
5885
  const steps = Array.isArray(stepsProp) ? stepsProp : [];
3604
5886
  const isVisible = visible ?? false;
3605
5887
  const handleFinish = onFinish ?? (() => {
3606
5888
  });
3607
- const { theme } = chunkT7V6TILB_js.useTheme();
5889
+ const { theme } = chunkRUZBEFDO_js.useTheme();
3608
5890
  const insets = reactNativeSafeAreaContext.useSafeAreaInsets();
3609
5891
  const bgColor = overlayColor ?? "#000";
3610
5892
  const [stepIndex, setStepIndex] = React12.useState(0);
@@ -3620,7 +5902,7 @@ var TutoLayout = (rawProps) => {
3620
5902
  const results = [];
3621
5903
  for (const zone of zones) {
3622
5904
  if (isRefZone(zone)) {
3623
- const padding = zone.padding ?? chunk45NSZH5Z_js.spacing[2];
5905
+ const padding = zone.padding ?? chunkUBZMVSIN_js.spacing[2];
3624
5906
  const measured = await measureRef(zone.ref, padding);
3625
5907
  if (measured) results.push({
3626
5908
  ...measured,
@@ -3729,8 +6011,8 @@ var TutoLayout = (rawProps) => {
3729
6011
  contentStyle,
3730
6012
  {
3731
6013
  position: "absolute",
3732
- left: chunk45NSZH5Z_js.spacing[3],
3733
- right: chunk45NSZH5Z_js.spacing[3],
6014
+ left: chunkUBZMVSIN_js.spacing[3],
6015
+ right: chunkUBZMVSIN_js.spacing[3],
3734
6016
  ...textPos === "top" ? { top: 52 } : textPos === "center" ? { top: SH / 2 - 28 } : { bottom: 32 + insets.bottom }
3735
6017
  }
3736
6018
  ], children: /* @__PURE__ */ jsxRuntime.jsxs(Box_default, { style: [s.band, { backgroundColor: textBackground ?? `${theme.background}F8` }], children: [
@@ -3740,7 +6022,7 @@ var TutoLayout = (rawProps) => {
3740
6022
  style: [
3741
6023
  s.dot,
3742
6024
  {
3743
- width: i === stepIndex ? chunk45NSZH5Z_js.spacing[3] : 4,
6025
+ width: i === stepIndex ? chunkUBZMVSIN_js.spacing[3] : 4,
3744
6026
  backgroundColor: i === stepIndex ? accentColor ?? theme.primary : `${textColor ?? theme.foreground}2E`
3745
6027
  }
3746
6028
  ]
@@ -3786,10 +6068,10 @@ var s = reactNative.StyleSheet.create({
3786
6068
  band: {
3787
6069
  flexDirection: "row",
3788
6070
  alignItems: "center",
3789
- gap: chunk45NSZH5Z_js.spacing[2],
6071
+ gap: chunkUBZMVSIN_js.spacing[2],
3790
6072
  backgroundColor: "transparent",
3791
6073
  borderRadius: 20,
3792
- paddingHorizontal: chunk45NSZH5Z_js.spacing[3],
6074
+ paddingHorizontal: chunkUBZMVSIN_js.spacing[3],
3793
6075
  paddingVertical: 10,
3794
6076
  overflow: "hidden"
3795
6077
  },
@@ -3826,7 +6108,7 @@ var s = reactNative.StyleSheet.create({
3826
6108
  actions: {
3827
6109
  flexDirection: "row",
3828
6110
  alignItems: "center",
3829
- gap: chunk45NSZH5Z_js.spacing[2],
6111
+ gap: chunkUBZMVSIN_js.spacing[2],
3830
6112
  flexShrink: 0
3831
6113
  },
3832
6114
  skipText: {
@@ -3837,8 +6119,8 @@ var s = reactNative.StyleSheet.create({
3837
6119
  flexDirection: "row",
3838
6120
  alignItems: "center",
3839
6121
  gap: 3,
3840
- borderRadius: chunk45NSZH5Z_js.radii.md,
3841
- paddingHorizontal: chunk45NSZH5Z_js.spacing[3],
6122
+ borderRadius: chunkUBZMVSIN_js.radii.md,
6123
+ paddingHorizontal: chunkUBZMVSIN_js.spacing[3],
3842
6124
  paddingVertical: 6
3843
6125
  },
3844
6126
  nextText: {
@@ -3846,9 +6128,9 @@ var s = reactNative.StyleSheet.create({
3846
6128
  fontWeight: "600"
3847
6129
  }
3848
6130
  });
3849
- var META27 = chunkFLEEJX7L_js.getLayoutMeta("VoidLayout");
6131
+ var META27 = getLayoutMeta("VoidLayout");
3850
6132
  var VoidLayout = (rawProps) => {
3851
- const { theme } = chunkT7V6TILB_js.useTheme();
6133
+ const { theme } = chunkRUZBEFDO_js.useTheme();
3852
6134
  const {
3853
6135
  children,
3854
6136
  maxWidth,
@@ -3859,7 +6141,7 @@ var VoidLayout = (rawProps) => {
3859
6141
  spacing: spacing2,
3860
6142
  centerContent,
3861
6143
  showBorder
3862
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META27, theme);
6144
+ } = applyDefaults(rawProps, META27, theme);
3863
6145
  const borderStyle = React12.useMemo(
3864
6146
  () => showBorder ? { borderWidth: 1, borderColor: theme.border } : void 0,
3865
6147
  [showBorder, theme.border]
@@ -3890,14 +6172,14 @@ var VoidLayout = (rawProps) => {
3890
6172
  ) });
3891
6173
  };
3892
6174
  var VoidLayout_default = VoidLayout;
3893
- var META28 = chunkFLEEJX7L_js.getComponentMeta("Button");
6175
+ var META28 = getComponentMeta("Button");
3894
6176
  var SIZE_MAP = {
3895
6177
  sm: { height: 32, px: 3, fontSize: 13 },
3896
6178
  md: { height: 40, px: 4, fontSize: 15 },
3897
6179
  lg: { height: 48, px: 5, fontSize: 17 }
3898
6180
  };
3899
6181
  var Button = (rawProps) => {
3900
- const { theme } = chunkT7V6TILB_js.useTheme();
6182
+ const { theme } = chunkRUZBEFDO_js.useTheme();
3901
6183
  const {
3902
6184
  label,
3903
6185
  icon,
@@ -3910,7 +6192,7 @@ var Button = (rawProps) => {
3910
6192
  iconPosition,
3911
6193
  onPress,
3912
6194
  children
3913
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META28, theme);
6195
+ } = applyDefaults(rawProps, META28, theme);
3914
6196
  const sizeConfig = SIZE_MAP[size] || SIZE_MAP.md;
3915
6197
  const colors = React12.useMemo(() => {
3916
6198
  switch (variant) {
@@ -3958,14 +6240,14 @@ var Button = (rawProps) => {
3958
6240
  );
3959
6241
  };
3960
6242
  var Button_default = Button;
3961
- var META29 = chunkFLEEJX7L_js.getComponentMeta("TextInput");
6243
+ var META29 = getComponentMeta("TextInput");
3962
6244
  var SIZE_MAP2 = {
3963
6245
  sm: { height: 32, fontSize: 13, labelSize: 11 },
3964
6246
  md: { height: 40, fontSize: 15, labelSize: 13 },
3965
6247
  lg: { height: 48, fontSize: 17, labelSize: 14 }
3966
6248
  };
3967
6249
  var TextInputComponent = (rawProps) => {
3968
- const { theme } = chunkT7V6TILB_js.useTheme();
6250
+ const { theme } = chunkRUZBEFDO_js.useTheme();
3969
6251
  const {
3970
6252
  value,
3971
6253
  onChangeText,
@@ -3980,7 +6262,7 @@ var TextInputComponent = (rawProps) => {
3980
6262
  background,
3981
6263
  borderColor,
3982
6264
  icon
3983
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META29, theme);
6265
+ } = applyDefaults(rawProps, META29, theme);
3984
6266
  const [focused, setFocused] = React12.useState(false);
3985
6267
  const sizeConfig = SIZE_MAP2[size] || SIZE_MAP2.md;
3986
6268
  const resolvedBg = variant === "outlined" ? "transparent" : background || theme.input;
@@ -4021,10 +6303,10 @@ var TextInputComponent = (rawProps) => {
4021
6303
  ] });
4022
6304
  };
4023
6305
  var TextInput_default = TextInputComponent;
4024
- var META30 = chunkFLEEJX7L_js.getComponentMeta("TextArea");
6306
+ var META30 = getComponentMeta("TextArea");
4025
6307
  var TextArea = (rawProps) => {
4026
- const { theme } = chunkT7V6TILB_js.useTheme();
4027
- const { value, onChangeText, variant, size, placeholder, label, error, disabled, numberOfLines, borderRadius, background } = chunkFLEEJX7L_js.applyDefaults(rawProps, META30, theme);
6308
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6309
+ const { value, onChangeText, variant, size, placeholder, label, error, disabled, numberOfLines, borderRadius, background } = applyDefaults(rawProps, META30, theme);
4028
6310
  const [focused, setFocused] = React12.useState(false);
4029
6311
  const h = { sm: 80, md: 120, lg: 180 }[size] || 120;
4030
6312
  const fs = { sm: 13, md: 15, lg: 17 }[size] || 15;
@@ -4051,10 +6333,10 @@ var TextArea = (rawProps) => {
4051
6333
  ] });
4052
6334
  };
4053
6335
  var TextArea_default = TextArea;
4054
- var META31 = chunkFLEEJX7L_js.getComponentMeta("Checkbox");
6336
+ var META31 = getComponentMeta("Checkbox");
4055
6337
  var Checkbox = (rawProps) => {
4056
- const { theme } = chunkT7V6TILB_js.useTheme();
4057
- const { checked, onChange, variant, size, disabled, label, activeColor } = chunkFLEEJX7L_js.applyDefaults(rawProps, META31, theme);
6338
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6339
+ const { checked, onChange, variant, size, disabled, label, activeColor } = applyDefaults(rawProps, META31, theme);
4058
6340
  const s25 = size === "sm" ? 18 : 22;
4059
6341
  const br = variant === "rounded" ? s25 / 2 : 4;
4060
6342
  const bg = checked ? activeColor || theme.primary : "transparent";
@@ -4065,10 +6347,10 @@ var Checkbox = (rawProps) => {
4065
6347
  ] }) });
4066
6348
  };
4067
6349
  var Checkbox_default = Checkbox;
4068
- var META32 = chunkFLEEJX7L_js.getComponentMeta("Switch");
6350
+ var META32 = getComponentMeta("Switch");
4069
6351
  var SwitchComponent = (rawProps) => {
4070
- const { theme } = chunkT7V6TILB_js.useTheme();
4071
- const { value, onChange, size, disabled, label, activeColor, trackColor } = chunkFLEEJX7L_js.applyDefaults(rawProps, META32, theme);
6352
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6353
+ const { value, onChange, size, disabled, label, activeColor, trackColor } = applyDefaults(rawProps, META32, theme);
4072
6354
  const scale = size === "sm" ? 0.8 : 1;
4073
6355
  return /* @__PURE__ */ jsxRuntime.jsxs(Inline_default, { spacing: 2, align: "center", children: [
4074
6356
  label ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { fontSize: size === "sm" ? 13 : 15, color: theme.foreground, flex: 1 }, children: label }) : null,
@@ -4088,10 +6370,10 @@ var SwitchComponent = (rawProps) => {
4088
6370
  ] });
4089
6371
  };
4090
6372
  var Switch_default = SwitchComponent;
4091
- var META33 = chunkFLEEJX7L_js.getComponentMeta("Badge");
6373
+ var META33 = getComponentMeta("Badge");
4092
6374
  var Badge = (rawProps) => {
4093
- const { theme } = chunkT7V6TILB_js.useTheme();
4094
- const { children, label, variant, size, color, borderRadius } = chunkFLEEJX7L_js.applyDefaults(rawProps, META33, theme);
6375
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6376
+ const { children, label, variant, size, color, borderRadius } = applyDefaults(rawProps, META33, theme);
4095
6377
  const colorMap = {
4096
6378
  primary: { bg: theme.primary, text: theme.primaryForeground },
4097
6379
  secondary: { bg: theme.secondary, text: theme.secondaryForeground },
@@ -4119,11 +6401,11 @@ var Badge = (rawProps) => {
4119
6401
  );
4120
6402
  };
4121
6403
  var Badge_default = Badge;
4122
- var META34 = chunkFLEEJX7L_js.getComponentMeta("Avatar");
6404
+ var META34 = getComponentMeta("Avatar");
4123
6405
  var SIZE_MAP3 = { xs: 24, sm: 32, md: 40, lg: 56, xl: 72 };
4124
6406
  var Avatar = (rawProps) => {
4125
- const { theme } = chunkT7V6TILB_js.useTheme();
4126
- const { source, initials, variant, size, background } = chunkFLEEJX7L_js.applyDefaults(rawProps, META34, theme);
6407
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6408
+ const { source, initials, variant, size, background } = applyDefaults(rawProps, META34, theme);
4127
6409
  const dim = SIZE_MAP3[size] || SIZE_MAP3.md;
4128
6410
  const br = variant === "circle" ? dim / 2 : 8;
4129
6411
  const bg = background || theme.muted;
@@ -4131,11 +6413,11 @@ var Avatar = (rawProps) => {
4131
6413
  return /* @__PURE__ */ jsxRuntime.jsx(Box_default, { width: dim, height: dim, bg, style: { borderRadius: br, overflow: "hidden" }, children: source ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Image, { source: { uri: source }, style: { width: dim, height: dim } }) : /* @__PURE__ */ jsxRuntime.jsx(Center_default, { flex: 1, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { fontSize: fs, fontWeight: "600", color: theme.mutedForeground }, children: initials || "?" }) }) });
4132
6414
  };
4133
6415
  var Avatar_default = Avatar;
4134
- var META35 = chunkFLEEJX7L_js.getComponentMeta("IconButton");
6416
+ var META35 = getComponentMeta("IconButton");
4135
6417
  var SIZE_MAP4 = { sm: 32, md: 40, lg: 48 };
4136
6418
  var IconButton = (rawProps) => {
4137
- const { theme } = chunkT7V6TILB_js.useTheme();
4138
- const { children, icon, variant, size, disabled, borderRadius, color, onPress } = chunkFLEEJX7L_js.applyDefaults(rawProps, META35, theme);
6419
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6420
+ const { children, icon, variant, size, disabled, borderRadius, color, onPress } = applyDefaults(rawProps, META35, theme);
4139
6421
  const dim = SIZE_MAP4[size] || SIZE_MAP4.md;
4140
6422
  const bg = variant === "filled" ? theme.muted : "transparent";
4141
6423
  const bc = variant === "outline" ? theme.border : void 0;
@@ -4152,10 +6434,10 @@ var IconButton = (rawProps) => {
4152
6434
  ) });
4153
6435
  };
4154
6436
  var IconButton_default = IconButton;
4155
- var META36 = chunkFLEEJX7L_js.getComponentMeta("Chip");
6437
+ var META36 = getComponentMeta("Chip");
4156
6438
  var Chip = (rawProps) => {
4157
- const { theme } = chunkT7V6TILB_js.useTheme();
4158
- const { children, label, variant, size, selected, closable, disabled, borderRadius, onPress, onClose } = chunkFLEEJX7L_js.applyDefaults(rawProps, META36, theme);
6439
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6440
+ const { children, label, variant, size, selected, closable, disabled, borderRadius, onPress, onClose } = applyDefaults(rawProps, META36, theme);
4159
6441
  const h = size === "sm" ? 28 : 34;
4160
6442
  const fs = size === "sm" ? 12 : 14;
4161
6443
  const bg = selected ? theme.primary : variant === "outline" ? "transparent" : theme.muted;
@@ -4177,18 +6459,18 @@ var Chip = (rawProps) => {
4177
6459
  ) });
4178
6460
  };
4179
6461
  var Chip_default = Chip;
4180
- var META37 = chunkFLEEJX7L_js.getComponentMeta("Spinner");
6462
+ var META37 = getComponentMeta("Spinner");
4181
6463
  var Spinner = (rawProps) => {
4182
- const { theme } = chunkT7V6TILB_js.useTheme();
4183
- const { size, color } = chunkFLEEJX7L_js.applyDefaults(rawProps, META37, theme);
6464
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6465
+ const { size, color } = applyDefaults(rawProps, META37, theme);
4184
6466
  const rnSize = size === "lg" ? "large" : "small";
4185
6467
  return /* @__PURE__ */ jsxRuntime.jsx(reactNative.ActivityIndicator, { size: rnSize, color: color || theme.primary });
4186
6468
  };
4187
6469
  var Spinner_default = Spinner;
4188
- var META38 = chunkFLEEJX7L_js.getComponentMeta("Select");
6470
+ var META38 = getComponentMeta("Select");
4189
6471
  var Select = (rawProps) => {
4190
- const { theme } = chunkT7V6TILB_js.useTheme();
4191
- const { value, options, onChange, variant, size, label, placeholder, error, disabled, borderRadius, background } = chunkFLEEJX7L_js.applyDefaults(rawProps, META38, theme);
6472
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6473
+ const { value, options, onChange, variant, size, label, placeholder, error, disabled, borderRadius, background } = applyDefaults(rawProps, META38, theme);
4192
6474
  const [open, setOpen] = React12.useState(false);
4193
6475
  const h = { sm: 32, md: 40, lg: 48 }[size] || 40;
4194
6476
  const fs = { sm: 13, md: 15, lg: 17 }[size] || 15;
@@ -4217,10 +6499,10 @@ var Select = (rawProps) => {
4217
6499
  ] });
4218
6500
  };
4219
6501
  var Select_default = Select;
4220
- var META39 = chunkFLEEJX7L_js.getComponentMeta("RadioGroup");
6502
+ var META39 = getComponentMeta("RadioGroup");
4221
6503
  var RadioGroup = (rawProps) => {
4222
- const { theme } = chunkT7V6TILB_js.useTheme();
4223
- const { value, options, onChange, size, label, direction, disabled, activeColor } = chunkFLEEJX7L_js.applyDefaults(rawProps, META39, theme);
6504
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6505
+ const { value, options, onChange, size, label, direction, disabled, activeColor } = applyDefaults(rawProps, META39, theme);
4224
6506
  const dim = size === "sm" ? 18 : 22;
4225
6507
  const fs = size === "sm" ? 13 : 15;
4226
6508
  const color = activeColor || theme.primary;
@@ -4237,10 +6519,10 @@ var RadioGroup = (rawProps) => {
4237
6519
  ] });
4238
6520
  };
4239
6521
  var RadioGroup_default = RadioGroup;
4240
- var META40 = chunkFLEEJX7L_js.getComponentMeta("DatePicker");
6522
+ var META40 = getComponentMeta("DatePicker");
4241
6523
  var DatePicker = (rawProps) => {
4242
- const { theme } = chunkT7V6TILB_js.useTheme();
4243
- const { value, mode, size, label, placeholder, error, disabled, borderRadius } = chunkFLEEJX7L_js.applyDefaults(rawProps, META40, theme);
6524
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6525
+ const { value, mode, size, label, placeholder, error, disabled, borderRadius } = applyDefaults(rawProps, META40, theme);
4244
6526
  const h = { sm: 32, md: 40, lg: 48 }[size] || 40;
4245
6527
  const fs = { sm: 13, md: 15, lg: 17 }[size] || 15;
4246
6528
  const icon = mode === "time" ? "\u{1F550}" : "\u{1F4C5}";
@@ -4266,10 +6548,10 @@ var DatePicker = (rawProps) => {
4266
6548
  ] });
4267
6549
  };
4268
6550
  var DatePicker_default = DatePicker;
4269
- var META41 = chunkFLEEJX7L_js.getComponentMeta("FilePicker");
6551
+ var META41 = getComponentMeta("FilePicker");
4270
6552
  var FilePicker = (rawProps) => {
4271
- const { theme } = chunkT7V6TILB_js.useTheme();
4272
- const { variant, size, label, disabled, borderRadius, onPick } = chunkFLEEJX7L_js.applyDefaults(rawProps, META41, theme);
6553
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6554
+ const { variant, size, label, disabled, borderRadius, onPick } = applyDefaults(rawProps, META41, theme);
4273
6555
  const h = variant === "dropzone" ? { sm: 80, md: 120, lg: 160 }[size] || 120 : { sm: 32, md: 40, lg: 48 }[size] || 40;
4274
6556
  if (variant === "dropzone") {
4275
6557
  return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { onPress: onPick, disabled, style: { opacity: disabled ? 0.5 : 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -4304,10 +6586,10 @@ var FilePicker = (rawProps) => {
4304
6586
  ) });
4305
6587
  };
4306
6588
  var FilePicker_default = FilePicker;
4307
- var META42 = chunkFLEEJX7L_js.getComponentMeta("Slider");
6589
+ var META42 = getComponentMeta("Slider");
4308
6590
  var Slider = (rawProps) => {
4309
- const { theme } = chunkT7V6TILB_js.useTheme();
4310
- const { value, onChange, size, min, max, step, label, showValue, disabled, activeColor } = chunkFLEEJX7L_js.applyDefaults(rawProps, META42, theme);
6591
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6592
+ const { value, onChange, size, min, max, step, label, showValue, disabled, activeColor } = applyDefaults(rawProps, META42, theme);
4311
6593
  const pct = Math.max(0, Math.min(100, ((Number(value) || 0) - min) / (max - min) * 100));
4312
6594
  const h = size === "sm" ? 4 : 6;
4313
6595
  const color = activeColor || theme.primary;
@@ -4331,27 +6613,27 @@ var Slider = (rawProps) => {
4331
6613
  ] });
4332
6614
  };
4333
6615
  var Slider_default = Slider;
4334
- var META43 = chunkFLEEJX7L_js.getComponentMeta("Image");
6616
+ var META43 = getComponentMeta("Image");
4335
6617
  var ImageComp = (rawProps) => {
4336
- const { theme } = chunkT7V6TILB_js.useTheme();
4337
- const { source, alt, resizeMode, width, height, borderRadius, background } = chunkFLEEJX7L_js.applyDefaults(rawProps, META43, theme);
6618
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6619
+ const { source, alt, resizeMode, width, height, borderRadius, background } = applyDefaults(rawProps, META43, theme);
4338
6620
  if (!source) {
4339
6621
  return /* @__PURE__ */ jsxRuntime.jsx(Box_default, { width: width || void 0, height, bg: background || theme.muted, borderRadius, children: /* @__PURE__ */ jsxRuntime.jsx(Center_default, { flex: 1, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { fontSize: 24, opacity: 0.3 }, children: "\u{1F5BC}\uFE0F" }) }) });
4340
6622
  }
4341
6623
  return /* @__PURE__ */ jsxRuntime.jsx(Box_default, { width: width || void 0, height, bg: background || theme.muted, borderRadius, overflow: "hidden", children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Image, { source: { uri: source }, style: { width: "100%", height: "100%", resizeMode }, accessibilityLabel: alt }) });
4342
6624
  };
4343
6625
  var ImageComp_default = ImageComp;
4344
- var META44 = chunkFLEEJX7L_js.getComponentMeta("Icon");
6626
+ var META44 = getComponentMeta("Icon");
4345
6627
  var IconComp = (rawProps) => {
4346
- const { theme } = chunkT7V6TILB_js.useTheme();
4347
- const { name, size, color } = chunkFLEEJX7L_js.applyDefaults(rawProps, META44, theme);
6628
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6629
+ const { name, size, color } = applyDefaults(rawProps, META44, theme);
4348
6630
  return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { fontSize: size, color: color || theme.foreground }, children: "\u2B21" });
4349
6631
  };
4350
6632
  var IconComp_default = IconComp;
4351
- var META45 = chunkFLEEJX7L_js.getComponentMeta("Gradient");
6633
+ var META45 = getComponentMeta("Gradient");
4352
6634
  var GradientComp = (rawProps) => {
4353
- const { theme } = chunkT7V6TILB_js.useTheme();
4354
- const { children, startColor, endColor, borderRadius, height, padding } = chunkFLEEJX7L_js.applyDefaults(rawProps, META45, theme);
6635
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6636
+ const { children, startColor, endColor, borderRadius, height, padding } = applyDefaults(rawProps, META45, theme);
4355
6637
  return /* @__PURE__ */ jsxRuntime.jsx(
4356
6638
  Box_default,
4357
6639
  {
@@ -4365,10 +6647,10 @@ var GradientComp = (rawProps) => {
4365
6647
  );
4366
6648
  };
4367
6649
  var GradientComp_default = GradientComp;
4368
- var META46 = chunkFLEEJX7L_js.getComponentMeta("Separator");
6650
+ var META46 = getComponentMeta("Separator");
4369
6651
  var SeparatorComp = (rawProps) => {
4370
- const { theme } = chunkT7V6TILB_js.useTheme();
4371
- const { label, color, thickness, spacing: spacing2 } = chunkFLEEJX7L_js.applyDefaults(rawProps, META46, theme);
6652
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6653
+ const { label, color, thickness, spacing: spacing2 } = applyDefaults(rawProps, META46, theme);
4372
6654
  const c = color || theme.border;
4373
6655
  const my = Number(spacing2) * 4 || 16;
4374
6656
  if (label) {
@@ -4381,10 +6663,10 @@ var SeparatorComp = (rawProps) => {
4381
6663
  return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: { height: thickness, backgroundColor: c, marginVertical: my } });
4382
6664
  };
4383
6665
  var SeparatorComp_default = SeparatorComp;
4384
- var META47 = chunkFLEEJX7L_js.getComponentMeta("Text");
6666
+ var META47 = getComponentMeta("Text");
4385
6667
  var TextComp = (rawProps) => {
4386
- const { theme } = chunkT7V6TILB_js.useTheme();
4387
- const { text, fontSize, fontWeight, color, textAlign, numberOfLines, children } = chunkFLEEJX7L_js.applyDefaults(rawProps, META47, theme);
6668
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6669
+ const { text, fontSize, fontWeight, color, textAlign, numberOfLines, children } = applyDefaults(rawProps, META47, theme);
4388
6670
  return /* @__PURE__ */ jsxRuntime.jsx(
4389
6671
  reactNative.Text,
4390
6672
  {
@@ -4395,20 +6677,20 @@ var TextComp = (rawProps) => {
4395
6677
  );
4396
6678
  };
4397
6679
  var TextComp_default = TextComp;
4398
- var META48 = chunkFLEEJX7L_js.getComponentMeta("Video");
6680
+ var META48 = getComponentMeta("Video");
4399
6681
  var VideoComp = (rawProps) => {
4400
- const { theme } = chunkT7V6TILB_js.useTheme();
4401
- const { source, height, borderRadius } = chunkFLEEJX7L_js.applyDefaults(rawProps, META48, theme);
6682
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6683
+ const { source, height, borderRadius } = applyDefaults(rawProps, META48, theme);
4402
6684
  return /* @__PURE__ */ jsxRuntime.jsx(Box_default, { height, bg: "#000", borderRadius, overflow: "hidden", children: /* @__PURE__ */ jsxRuntime.jsxs(Center_default, { flex: 1, children: [
4403
6685
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { fontSize: 32 }, children: "\u25B6\uFE0F" }),
4404
6686
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { color: "#fff", fontSize: 11, marginTop: 4, opacity: 0.7 }, children: source || "No source" })
4405
6687
  ] }) });
4406
6688
  };
4407
6689
  var VideoComp_default = VideoComp;
4408
- var META49 = chunkFLEEJX7L_js.getComponentMeta("Camera");
6690
+ var META49 = getComponentMeta("Camera");
4409
6691
  var CameraComp = (rawProps) => {
4410
- const { theme } = chunkT7V6TILB_js.useTheme();
4411
- const { facing, height, borderRadius } = chunkFLEEJX7L_js.applyDefaults(rawProps, META49, theme);
6692
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6693
+ const { facing, height, borderRadius } = applyDefaults(rawProps, META49, theme);
4412
6694
  return /* @__PURE__ */ jsxRuntime.jsx(Box_default, { height, bg: "#1a1a2e", borderRadius, overflow: "hidden", children: /* @__PURE__ */ jsxRuntime.jsxs(Center_default, { flex: 1, children: [
4413
6695
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { fontSize: 32 }, children: "\u{1F4F7}" }),
4414
6696
  /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { style: { color: "#fff", fontSize: 11, marginTop: 4, opacity: 0.7 }, children: [
@@ -4418,20 +6700,20 @@ var CameraComp = (rawProps) => {
4418
6700
  ] }) });
4419
6701
  };
4420
6702
  var CameraComp_default = CameraComp;
4421
- var META50 = chunkFLEEJX7L_js.getComponentMeta("WebView");
6703
+ var META50 = getComponentMeta("WebView");
4422
6704
  var WebViewComp = (rawProps) => {
4423
- const { theme } = chunkT7V6TILB_js.useTheme();
4424
- const { url, height, borderRadius } = chunkFLEEJX7L_js.applyDefaults(rawProps, META50, theme);
6705
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6706
+ const { url, height, borderRadius } = applyDefaults(rawProps, META50, theme);
4425
6707
  return /* @__PURE__ */ jsxRuntime.jsx(Box_default, { height, bg: theme.muted, borderRadius, overflow: "hidden", children: /* @__PURE__ */ jsxRuntime.jsxs(Center_default, { flex: 1, children: [
4426
6708
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { fontSize: 24 }, children: "\u{1F310}" }),
4427
6709
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { color: theme.mutedForeground, fontSize: 10, marginTop: 4 }, children: url || "https://..." })
4428
6710
  ] }) });
4429
6711
  };
4430
6712
  var WebViewComp_default = WebViewComp;
4431
- var META51 = chunkFLEEJX7L_js.getComponentMeta("MapView");
6713
+ var META51 = getComponentMeta("MapView");
4432
6714
  var MapViewComp = (rawProps) => {
4433
- const { theme } = chunkT7V6TILB_js.useTheme();
4434
- const { latitude, longitude, height, borderRadius } = chunkFLEEJX7L_js.applyDefaults(rawProps, META51, theme);
6715
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6716
+ const { latitude, longitude, height, borderRadius } = applyDefaults(rawProps, META51, theme);
4435
6717
  return /* @__PURE__ */ jsxRuntime.jsx(Box_default, { height, bg: "#e8eaed", borderRadius, overflow: "hidden", children: /* @__PURE__ */ jsxRuntime.jsxs(Center_default, { flex: 1, children: [
4436
6718
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { fontSize: 32 }, children: "\u{1F5FA}\uFE0F" }),
4437
6719
  /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { style: { color: "#666", fontSize: 10, marginTop: 4 }, children: [
@@ -4442,10 +6724,10 @@ var MapViewComp = (rawProps) => {
4442
6724
  ] }) });
4443
6725
  };
4444
6726
  var MapViewComp_default = MapViewComp;
4445
- var META52 = chunkFLEEJX7L_js.getComponentMeta("ProgressBar");
6727
+ var META52 = getComponentMeta("ProgressBar");
4446
6728
  var ProgressBar = (rawProps) => {
4447
- const { theme } = chunkT7V6TILB_js.useTheme();
4448
- const { progress, size, color, trackColor, borderRadius, showLabel } = chunkFLEEJX7L_js.applyDefaults(rawProps, META52, theme);
6729
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6730
+ const { progress, size, color, trackColor, borderRadius, showLabel } = applyDefaults(rawProps, META52, theme);
4449
6731
  const h = size === "sm" ? 4 : 8;
4450
6732
  const pct = Math.max(0, Math.min(100, (Number(progress) || 0) * 100));
4451
6733
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { children: [
@@ -4457,10 +6739,10 @@ var ProgressBar = (rawProps) => {
4457
6739
  ] });
4458
6740
  };
4459
6741
  var ProgressBar_default = ProgressBar;
4460
- var META53 = chunkFLEEJX7L_js.getComponentMeta("Accordion");
6742
+ var META53 = getComponentMeta("Accordion");
4461
6743
  var Accordion = (rawProps) => {
4462
- const { theme } = chunkT7V6TILB_js.useTheme();
4463
- const { children, title, defaultOpen, background, borderRadius, borderColor } = chunkFLEEJX7L_js.applyDefaults(rawProps, META53, theme);
6744
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6745
+ const { children, title, defaultOpen, background, borderRadius, borderColor } = applyDefaults(rawProps, META53, theme);
4464
6746
  const [open, setOpen] = React12.useState(!!defaultOpen);
4465
6747
  return /* @__PURE__ */ jsxRuntime.jsxs(
4466
6748
  Box_default,
@@ -4479,9 +6761,9 @@ var Accordion = (rawProps) => {
4479
6761
  );
4480
6762
  };
4481
6763
  var Accordion_default = Accordion;
4482
- var META54 = chunkFLEEJX7L_js.getBlockMeta("AuthFormBlock");
6764
+ var META54 = getBlockMeta("AuthFormBlock");
4483
6765
  var AuthFormBlock = (rawProps) => {
4484
- const { theme } = chunkT7V6TILB_js.useTheme();
6766
+ const { theme } = chunkRUZBEFDO_js.useTheme();
4485
6767
  const {
4486
6768
  mode,
4487
6769
  showRemember,
@@ -4497,7 +6779,7 @@ var AuthFormBlock = (rawProps) => {
4497
6779
  social,
4498
6780
  onSubmit,
4499
6781
  onForgotPassword
4500
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META54, theme);
6782
+ } = applyDefaults(rawProps, META54, theme);
4501
6783
  const [email, setEmail] = React12__default.default.useState("");
4502
6784
  const [password, setPassword] = React12__default.default.useState("");
4503
6785
  const [name, setName] = React12__default.default.useState("");
@@ -4555,9 +6837,9 @@ var AuthFormBlock = (rawProps) => {
4555
6837
  ] }) });
4556
6838
  };
4557
6839
  var AuthFormBlock_default = AuthFormBlock;
4558
- var META55 = chunkFLEEJX7L_js.getBlockMeta("HeaderBlock");
6840
+ var META55 = getBlockMeta("HeaderBlock");
4559
6841
  var HeaderBlock = (rawProps) => {
4560
- const { theme } = chunkT7V6TILB_js.useTheme();
6842
+ const { theme } = chunkRUZBEFDO_js.useTheme();
4561
6843
  const {
4562
6844
  title,
4563
6845
  left,
@@ -4567,7 +6849,7 @@ var HeaderBlock = (rawProps) => {
4567
6849
  borderBottom,
4568
6850
  padding,
4569
6851
  transparent
4570
- } = chunkFLEEJX7L_js.applyDefaults(rawProps, META55, theme);
6852
+ } = applyDefaults(rawProps, META55, theme);
4571
6853
  const bg = transparent ? "transparent" : background;
4572
6854
  return /* @__PURE__ */ jsxRuntime.jsx(
4573
6855
  Box_default,
@@ -4586,10 +6868,10 @@ var HeaderBlock = (rawProps) => {
4586
6868
  );
4587
6869
  };
4588
6870
  var HeaderBlock_default = HeaderBlock;
4589
- var META56 = chunkFLEEJX7L_js.getBlockMeta("FormBlock");
6871
+ var META56 = getBlockMeta("FormBlock");
4590
6872
  var FormBlock = (rawProps) => {
4591
- const { theme } = chunkT7V6TILB_js.useTheme();
4592
- const { children, header, footer, spacing: spacing2, padding, background, borderRadius, showReset, submitLabel } = chunkFLEEJX7L_js.applyDefaults(rawProps, META56, theme);
6873
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6874
+ const { children, header, footer, spacing: spacing2, padding, background, borderRadius, showReset, submitLabel } = applyDefaults(rawProps, META56, theme);
4593
6875
  return /* @__PURE__ */ jsxRuntime.jsx(Box_default, { bg: background || theme.card, borderRadius, p: padding, children: /* @__PURE__ */ jsxRuntime.jsxs(Stack_default, { spacing: spacing2, children: [
4594
6876
  header,
4595
6877
  children,
@@ -4597,10 +6879,10 @@ var FormBlock = (rawProps) => {
4597
6879
  ] }) });
4598
6880
  };
4599
6881
  var FormBlock_default = FormBlock;
4600
- var META57 = chunkFLEEJX7L_js.getBlockMeta("CardBlock");
6882
+ var META57 = getBlockMeta("CardBlock");
4601
6883
  var CardBlock = (rawProps) => {
4602
- const { theme } = chunkT7V6TILB_js.useTheme();
4603
- const { children, media, actions, padding, spacing: spacing2, background, borderRadius } = chunkFLEEJX7L_js.applyDefaults(rawProps, META57, theme);
6884
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6885
+ const { children, media, actions, padding, spacing: spacing2, background, borderRadius } = applyDefaults(rawProps, META57, theme);
4604
6886
  return /* @__PURE__ */ jsxRuntime.jsxs(
4605
6887
  Box_default,
4606
6888
  {
@@ -4619,10 +6901,10 @@ var CardBlock = (rawProps) => {
4619
6901
  );
4620
6902
  };
4621
6903
  var CardBlock_default = CardBlock;
4622
- var META58 = chunkFLEEJX7L_js.getBlockMeta("ListItemBlock");
6904
+ var META58 = getBlockMeta("ListItemBlock");
4623
6905
  var ListItemBlock = (rawProps) => {
4624
- const { theme } = chunkT7V6TILB_js.useTheme();
4625
- const { children, leading, trailing, title, subtitle, height, showDivider, pressable, background, padding, onPress } = chunkFLEEJX7L_js.applyDefaults(rawProps, META58, theme);
6906
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6907
+ const { children, leading, trailing, title, subtitle, height, showDivider, pressable, background, padding, onPress } = applyDefaults(rawProps, META58, theme);
4626
6908
  const Wrapper = pressable ? reactNative.Pressable : Box_default;
4627
6909
  return /* @__PURE__ */ jsxRuntime.jsx(Wrapper, { onPress: pressable ? onPress : void 0, style: { minHeight: height }, children: /* @__PURE__ */ jsxRuntime.jsx(
4628
6910
  Box_default,
@@ -4644,10 +6926,10 @@ var ListItemBlock = (rawProps) => {
4644
6926
  ) });
4645
6927
  };
4646
6928
  var ListItemBlock_default = ListItemBlock;
4647
- var META59 = chunkFLEEJX7L_js.getBlockMeta("SearchBarBlock");
6929
+ var META59 = getBlockMeta("SearchBarBlock");
4648
6930
  var SearchBarBlock = (rawProps) => {
4649
- const { theme } = chunkT7V6TILB_js.useTheme();
4650
- const { filters, value, onChangeText, placeholder, background, borderRadius, showFilter } = chunkFLEEJX7L_js.applyDefaults(rawProps, META59, theme);
6931
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6932
+ const { filters, value, onChangeText, placeholder, background, borderRadius, showFilter } = applyDefaults(rawProps, META59, theme);
4651
6933
  return /* @__PURE__ */ jsxRuntime.jsx(Box_default, { bg: background || theme.muted, borderRadius, px: 3, py: 2, children: /* @__PURE__ */ jsxRuntime.jsxs(Inline_default, { spacing: 2, align: "center", children: [
4652
6934
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { fontSize: 16, color: theme.mutedForeground }, children: "\u{1F50D}" }),
4653
6935
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -4664,10 +6946,10 @@ var SearchBarBlock = (rawProps) => {
4664
6946
  ] }) });
4665
6947
  };
4666
6948
  var SearchBarBlock_default = SearchBarBlock;
4667
- var META60 = chunkFLEEJX7L_js.getBlockMeta("StatCardBlock");
6949
+ var META60 = getBlockMeta("StatCardBlock");
4668
6950
  var StatCardBlock = (rawProps) => {
4669
- const { theme } = chunkT7V6TILB_js.useTheme();
4670
- const { children, icon, value, label, trend, trendUp, background, borderRadius, padding, showTrend } = chunkFLEEJX7L_js.applyDefaults(rawProps, META60, theme);
6951
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6952
+ const { children, icon, value, label, trend, trendUp, background, borderRadius, padding, showTrend } = applyDefaults(rawProps, META60, theme);
4671
6953
  return /* @__PURE__ */ jsxRuntime.jsx(
4672
6954
  Box_default,
4673
6955
  {
@@ -4689,10 +6971,10 @@ var StatCardBlock = (rawProps) => {
4689
6971
  );
4690
6972
  };
4691
6973
  var StatCardBlock_default = StatCardBlock;
4692
- var META61 = chunkFLEEJX7L_js.getBlockMeta("EmptyStateBlock");
6974
+ var META61 = getBlockMeta("EmptyStateBlock");
4693
6975
  var EmptyStateBlock = (rawProps) => {
4694
- const { theme } = chunkT7V6TILB_js.useTheme();
4695
- const { children, illustration, title, description, spacing: spacing2, showAction, actionLabel } = chunkFLEEJX7L_js.applyDefaults(rawProps, META61, theme);
6976
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6977
+ const { children, illustration, title, description, spacing: spacing2, showAction, actionLabel } = applyDefaults(rawProps, META61, theme);
4696
6978
  return /* @__PURE__ */ jsxRuntime.jsx(Center_default, { py: 8, children: /* @__PURE__ */ jsxRuntime.jsxs(Stack_default, { spacing: spacing2, align: "center", children: [
4697
6979
  illustration || /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { fontSize: 48, opacity: 0.3 }, children: "\u{1F4ED}" }),
4698
6980
  title ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: { fontSize: 18, fontWeight: "600", color: theme.foreground, textAlign: "center" }, children: title }) : null,
@@ -4702,10 +6984,10 @@ var EmptyStateBlock = (rawProps) => {
4702
6984
  ] }) });
4703
6985
  };
4704
6986
  var EmptyStateBlock_default = EmptyStateBlock;
4705
- var META62 = chunkFLEEJX7L_js.getBlockMeta("AvatarBlock");
6987
+ var META62 = getBlockMeta("AvatarBlock");
4706
6988
  var AvatarBlock = (rawProps) => {
4707
- const { theme } = chunkT7V6TILB_js.useTheme();
4708
- const { children, action, name, subtitle, source, initials, size, direction, spacing: spacing2, showSubtitle } = chunkFLEEJX7L_js.applyDefaults(rawProps, META62, theme);
6989
+ const { theme } = chunkRUZBEFDO_js.useTheme();
6990
+ const { children, action, name, subtitle, source, initials, size, direction, spacing: spacing2, showSubtitle } = applyDefaults(rawProps, META62, theme);
4709
6991
  const Wrapper = direction === "column" ? Stack_default : Inline_default;
4710
6992
  return /* @__PURE__ */ jsxRuntime.jsxs(Wrapper, { spacing: spacing2, align: "center", children: [
4711
6993
  /* @__PURE__ */ jsxRuntime.jsx(Avatar_default, { source, initials, size }),
@@ -4718,10 +7000,10 @@ var AvatarBlock = (rawProps) => {
4718
7000
  ] });
4719
7001
  };
4720
7002
  var AvatarBlock_default = AvatarBlock;
4721
- var META63 = chunkFLEEJX7L_js.getBlockMeta("ModalBlock");
7003
+ var META63 = getBlockMeta("ModalBlock");
4722
7004
  var ModalBlock = (rawProps) => {
4723
- const { theme } = chunkT7V6TILB_js.useTheme();
4724
- const { children, footer, padding, background, borderRadius, maxWidth, showClose } = chunkFLEEJX7L_js.applyDefaults(rawProps, META63, theme);
7005
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7006
+ const { children, footer, padding, background, borderRadius, maxWidth, showClose } = applyDefaults(rawProps, META63, theme);
4725
7007
  return /* @__PURE__ */ jsxRuntime.jsxs(
4726
7008
  Box_default,
4727
7009
  {
@@ -4740,7 +7022,7 @@ var ModalBlock = (rawProps) => {
4740
7022
  );
4741
7023
  };
4742
7024
  var ModalBlock_default = ModalBlock;
4743
- var META64 = chunkFLEEJX7L_js.getBlockMeta("ToastBlock");
7025
+ var META64 = getBlockMeta("ToastBlock");
4744
7026
  var TYPE_CONFIG = {
4745
7027
  info: { icon: "\u2139\uFE0F", color: "#3b82f6" },
4746
7028
  success: { icon: "\u2705", color: "#22c55e" },
@@ -4748,8 +7030,8 @@ var TYPE_CONFIG = {
4748
7030
  error: { icon: "\u274C", color: "#ef4444" }
4749
7031
  };
4750
7032
  var ToastBlock = (rawProps) => {
4751
- const { theme } = chunkT7V6TILB_js.useTheme();
4752
- const { children, message, type, showIcon, dismissible, borderRadius } = chunkFLEEJX7L_js.applyDefaults(rawProps, META64, theme);
7033
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7034
+ const { children, message, type, showIcon, dismissible, borderRadius } = applyDefaults(rawProps, META64, theme);
4753
7035
  const cfg = TYPE_CONFIG[type] || TYPE_CONFIG.info;
4754
7036
  return /* @__PURE__ */ jsxRuntime.jsx(
4755
7037
  Box_default,
@@ -4768,7 +7050,7 @@ var ToastBlock = (rawProps) => {
4768
7050
  );
4769
7051
  };
4770
7052
  var ToastBlock_default = ToastBlock;
4771
- var META65 = chunkFLEEJX7L_js.getBlockMeta("SocialLinksBlock");
7053
+ var META65 = getBlockMeta("SocialLinksBlock");
4772
7054
  var PLATFORM_ICONS = {
4773
7055
  twitter: "twitter",
4774
7056
  instagram: "instagram",
@@ -4796,8 +7078,8 @@ var PLATFORM_COLORS = {
4796
7078
  var SIZE_MAP5 = { sm: 16, md: 22, lg: 28 };
4797
7079
  var PAD_MAP = { sm: 6, md: 10, lg: 14 };
4798
7080
  var SocialLinksBlock = (rawProps) => {
4799
- const { theme } = chunkT7V6TILB_js.useTheme();
4800
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META65, theme);
7081
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7082
+ const props = applyDefaults(rawProps, META65, theme);
4801
7083
  const { links = [], direction, size, variant, spacing: spacing2, color, background, borderRadius, onPress } = props;
4802
7084
  const iconSize = SIZE_MAP5[size] ?? 22;
4803
7085
  const pad = PAD_MAP[size] ?? 10;
@@ -4837,10 +7119,10 @@ var s2 = reactNative.StyleSheet.create({
4837
7119
  btn: { alignItems: "center", justifyContent: "center" },
4838
7120
  label: { marginTop: 2, fontWeight: "500" }
4839
7121
  });
4840
- var META66 = chunkFLEEJX7L_js.getBlockMeta("ProductCardBlock");
7122
+ var META66 = getBlockMeta("ProductCardBlock");
4841
7123
  var ProductCardBlock = (rawProps) => {
4842
- const { theme } = chunkT7V6TILB_js.useTheme();
4843
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META66, theme);
7124
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7125
+ const props = applyDefaults(rawProps, META66, theme);
4844
7126
  const { name, price, originalPrice, imageUrl, rating, reviewCount, badge, inStock, background, padding, onPress, onAddToCart, onWishlist } = props;
4845
7127
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { onPress, style: [s3.root, {
4846
7128
  backgroundColor: background || theme.card,
@@ -4904,10 +7186,10 @@ var s3 = reactNative.StyleSheet.create({
4904
7186
  cartBtn: { flexDirection: "row", alignItems: "center", justifyContent: "center", gap: 6, borderRadius: 8, paddingVertical: 10 },
4905
7187
  cartText: { color: "#fff", fontSize: 13, fontWeight: "600" }
4906
7188
  });
4907
- var META67 = chunkFLEEJX7L_js.getBlockMeta("NotificationItemBlock");
7189
+ var META67 = getBlockMeta("NotificationItemBlock");
4908
7190
  var NotificationItemBlock = (rawProps) => {
4909
- const { theme } = chunkT7V6TILB_js.useTheme();
4910
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META67, theme);
7191
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7192
+ const props = applyDefaults(rawProps, META67, theme);
4911
7193
  const { title, body, timestamp, read, iconName, iconColor, background, padding, showDivider, pressable, onPress, onDismiss } = props;
4912
7194
  const Wrapper = pressable ? reactNative.Pressable : reactNative.View;
4913
7195
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -4944,10 +7226,10 @@ var s4 = reactNative.StyleSheet.create({
4944
7226
  ts: { fontSize: 10, marginTop: 2 },
4945
7227
  dismiss: { padding: 4 }
4946
7228
  });
4947
- var META68 = chunkFLEEJX7L_js.getBlockMeta("PricingCardBlock");
7229
+ var META68 = getBlockMeta("PricingCardBlock");
4948
7230
  var PricingCardBlock = (rawProps) => {
4949
- const { theme } = chunkT7V6TILB_js.useTheme();
4950
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META68, theme);
7231
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7232
+ const props = applyDefaults(rawProps, META68, theme);
4951
7233
  const { planName, price, period, description, features = [], ctaLabel, highlighted, background, accentColor, borderRadius, padding, spacing: spacing2, onPress } = props;
4952
7234
  const accent = accentColor || theme.primary;
4953
7235
  const bg = background || (highlighted ? accent : theme.card);
@@ -4999,15 +7281,15 @@ var s5 = reactNative.StyleSheet.create({
4999
7281
  cta: { borderRadius: 10, paddingVertical: 14, alignItems: "center" },
5000
7282
  ctaText: { fontSize: 14, fontWeight: "700" }
5001
7283
  });
5002
- var META69 = chunkFLEEJX7L_js.getBlockMeta("TransactionItemBlock");
7284
+ var META69 = getBlockMeta("TransactionItemBlock");
5003
7285
  var STATUS_CONFIG = {
5004
7286
  completed: { color: "#22c55e", label: "Completed" },
5005
7287
  pending: { color: "#f59e0b", label: "Pending" },
5006
7288
  failed: { color: "#ef4444", label: "Failed" }
5007
7289
  };
5008
7290
  var TransactionItemBlock = (rawProps) => {
5009
- const { theme } = chunkT7V6TILB_js.useTheme();
5010
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META69, theme);
7291
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7292
+ const props = applyDefaults(rawProps, META69, theme);
5011
7293
  const { merchant, category, amount, date, type, status, iconName, iconColor, background, padding, showDivider } = props;
5012
7294
  const isCredit = type === "credit";
5013
7295
  const amountColor = isCredit ? "#22c55e" : theme.foreground;
@@ -5049,10 +7331,10 @@ var s6 = reactNative.StyleSheet.create({
5049
7331
  statusBadge: { paddingHorizontal: 6, paddingVertical: 2, borderRadius: 6 },
5050
7332
  statusText: { fontSize: 9, fontWeight: "700" }
5051
7333
  });
5052
- var META70 = chunkFLEEJX7L_js.getBlockMeta("OnboardingSlideBlock");
7334
+ var META70 = getBlockMeta("OnboardingSlideBlock");
5053
7335
  var OnboardingSlideBlock = (rawProps) => {
5054
- const { theme } = chunkT7V6TILB_js.useTheme();
5055
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META70, theme);
7336
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7337
+ const props = applyDefaults(rawProps, META70, theme);
5056
7338
  const { title, description, illustration, totalSlides, currentSlide, ctaLabel, skipLabel, accentColor, background, padding, onNext, onSkip } = props;
5057
7339
  const accent = accentColor || theme.primary;
5058
7340
  const isLast = currentSlide >= totalSlides - 1;
@@ -5088,10 +7370,10 @@ var s7 = reactNative.StyleSheet.create({
5088
7370
  cta: { flexDirection: "row", alignItems: "center", gap: 8, paddingHorizontal: 32, paddingVertical: 14, borderRadius: 14, alignSelf: "stretch", justifyContent: "center" },
5089
7371
  ctaText: { color: "#fff", fontSize: 15, fontWeight: "700" }
5090
7372
  });
5091
- var META71 = chunkFLEEJX7L_js.getBlockMeta("ChatBubbleBlock");
7373
+ var META71 = getBlockMeta("ChatBubbleBlock");
5092
7374
  var ChatBubbleBlock = (rawProps) => {
5093
- const { theme } = chunkT7V6TILB_js.useTheme();
5094
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META71, theme);
7375
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7376
+ const props = applyDefaults(rawProps, META71, theme);
5095
7377
  const { message, timestamp, isSent, isRead, senderName, avatarUrl, showAvatar, accentColor, background, maxWidth } = props;
5096
7378
  const accent = accentColor || theme.primary;
5097
7379
  const bubbleBg = isSent ? accent : background || theme.card;
@@ -5129,10 +7411,10 @@ var s8 = reactNative.StyleSheet.create({
5129
7411
  footerReceived: { justifyContent: "flex-start" },
5130
7412
  ts: { fontSize: 10 }
5131
7413
  });
5132
- var META72 = chunkFLEEJX7L_js.getBlockMeta("CalendarEventBlock");
7414
+ var META72 = getBlockMeta("CalendarEventBlock");
5133
7415
  var CalendarEventBlock = (rawProps) => {
5134
- const { theme } = chunkT7V6TILB_js.useTheme();
5135
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META72, theme);
7416
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7417
+ const props = applyDefaults(rawProps, META72, theme);
5136
7418
  const { title, date, dayNumber, month, startTime, endTime, location, attendeeCount, color, background, padding, onPress } = props;
5137
7419
  const accent = color || theme.primary;
5138
7420
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [s9.root, {
@@ -5182,7 +7464,7 @@ var s9 = reactNative.StyleSheet.create({
5182
7464
  row: { flexDirection: "row", alignItems: "center", gap: 5 },
5183
7465
  meta: { fontSize: 11 }
5184
7466
  });
5185
- var META73 = chunkFLEEJX7L_js.getBlockMeta("FileItemBlock");
7467
+ var META73 = getBlockMeta("FileItemBlock");
5186
7468
  var EXT_ICONS = {
5187
7469
  pdf: { icon: "file-text", color: "#ef4444" },
5188
7470
  doc: { icon: "file-text", color: "#3b82f6" },
@@ -5196,8 +7478,8 @@ var EXT_ICONS = {
5196
7478
  zip: { icon: "archive", color: "#6b7280" }
5197
7479
  };
5198
7480
  var FileItemBlock = (rawProps) => {
5199
- const { theme } = chunkT7V6TILB_js.useTheme();
5200
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META73, theme);
7481
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7482
+ const props = applyDefaults(rawProps, META73, theme);
5201
7483
  const { name, size, type, updatedAt, background, padding, showDivider, pressable, onPress, onDownload, onDelete } = props;
5202
7484
  const ext = (type || name?.split(".").pop() || "").toLowerCase();
5203
7485
  const cfg = EXT_ICONS[ext] || { icon: "file", color: theme.mutedForeground };
@@ -5240,10 +7522,10 @@ var s10 = reactNative.StyleSheet.create({
5240
7522
  actions: { flexDirection: "row", gap: 4 },
5241
7523
  actionBtn: { padding: 6 }
5242
7524
  });
5243
- var META74 = chunkFLEEJX7L_js.getBlockMeta("ContactCardBlock");
7525
+ var META74 = getBlockMeta("ContactCardBlock");
5244
7526
  var ContactCardBlock = (rawProps) => {
5245
- const { theme } = chunkT7V6TILB_js.useTheme();
5246
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META74, theme);
7527
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7528
+ const props = applyDefaults(rawProps, META74, theme);
5247
7529
  const { name, role, company, avatarUrl, initials, phone, email, website, background, accentColor, padding, showActions, onPress } = props;
5248
7530
  const accent = accentColor || theme.primary;
5249
7531
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { onPress, style: [s11.root, {
@@ -5284,10 +7566,10 @@ var s11 = reactNative.StyleSheet.create({
5284
7566
  actions: { flexDirection: "row", gap: 10, marginTop: 14 },
5285
7567
  actionBtn: { flex: 1, height: 40, borderRadius: 10, alignItems: "center", justifyContent: "center" }
5286
7568
  });
5287
- var META75 = chunkFLEEJX7L_js.getBlockMeta("MapPinBlock");
7569
+ var META75 = getBlockMeta("MapPinBlock");
5288
7570
  var MapPinBlock = (rawProps) => {
5289
- const { theme } = chunkT7V6TILB_js.useTheme();
5290
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META75, theme);
7571
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7572
+ const props = applyDefaults(rawProps, META75, theme);
5291
7573
  const { address, city, country, latitude, longitude, label, background, accentColor, padding, showCoordinates, showOpenButton, onPress } = props;
5292
7574
  const accent = accentColor || theme.primary;
5293
7575
  const openMaps = () => {
@@ -5325,7 +7607,7 @@ var s12 = reactNative.StyleSheet.create({
5325
7607
  coords: { fontSize: 10, fontFamily: "monospace" },
5326
7608
  openBtn: { width: 36, height: 36, borderRadius: 10, alignItems: "center", justifyContent: "center", flexShrink: 0 }
5327
7609
  });
5328
- var META76 = chunkFLEEJX7L_js.getBlockMeta("PasswordStrengthBlock");
7610
+ var META76 = getBlockMeta("PasswordStrengthBlock");
5329
7611
  function getStrength(pwd) {
5330
7612
  let score = 0;
5331
7613
  if (pwd.length >= 8) score++;
@@ -5348,8 +7630,8 @@ var REQUIREMENTS = [
5348
7630
  { label: "Special character", test: (p) => /[^A-Za-z0-9]/.test(p) }
5349
7631
  ];
5350
7632
  var PasswordStrengthBlock = (rawProps) => {
5351
- const { theme } = chunkT7V6TILB_js.useTheme();
5352
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META76, theme);
7633
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7634
+ const props = applyDefaults(rawProps, META76, theme);
5353
7635
  const { value: extVal, label, placeholder, showRequirements, background, onChange } = props;
5354
7636
  const [internal, setInternal] = React12.useState("");
5355
7637
  const [visible, setVisible] = React12.useState(false);
@@ -5402,10 +7684,10 @@ var s13 = reactNative.StyleSheet.create({
5402
7684
  req: { flexDirection: "row", alignItems: "center", gap: 6 },
5403
7685
  reqText: { fontSize: 11 }
5404
7686
  });
5405
- var META77 = chunkFLEEJX7L_js.getBlockMeta("MediaPickerBlock");
7687
+ var META77 = getBlockMeta("MediaPickerBlock");
5406
7688
  var MediaPickerBlock = (rawProps) => {
5407
- const { theme } = chunkT7V6TILB_js.useTheme();
5408
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META77, theme);
7689
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7690
+ const props = applyDefaults(rawProps, META77, theme);
5409
7691
  const { items = [], maxItems, label, columns, itemSize, background, accentColor, onAdd, onRemove, onPress } = props;
5410
7692
  const accent = accentColor || theme.primary;
5411
7693
  const canAdd = !maxItems || items.length < maxItems;
@@ -5456,7 +7738,7 @@ var s14 = reactNative.StyleSheet.create({
5456
7738
  addText: { fontSize: 10, fontWeight: "600" },
5457
7739
  count: { fontSize: 10, textAlign: "right" }
5458
7740
  });
5459
- var META78 = chunkFLEEJX7L_js.getBlockMeta("BannerBlock");
7741
+ var META78 = getBlockMeta("BannerBlock");
5460
7742
  var TYPE_CONFIG2 = {
5461
7743
  info: { bg: "rgba(59,130,246,0.1)", border: "rgba(59,130,246,0.3)", icon: "info", color: "#3b82f6" },
5462
7744
  success: { bg: "rgba(34,197,94,0.1)", border: "rgba(34,197,94,0.3)", icon: "check-circle", color: "#22c55e" },
@@ -5464,8 +7746,8 @@ var TYPE_CONFIG2 = {
5464
7746
  error: { bg: "rgba(239,68,68,0.1)", border: "rgba(239,68,68,0.3)", icon: "alert-circle", color: "#ef4444" }
5465
7747
  };
5466
7748
  var BannerBlock = (rawProps) => {
5467
- const { theme } = chunkT7V6TILB_js.useTheme();
5468
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META78, theme);
7749
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7750
+ const props = applyDefaults(rawProps, META78, theme);
5469
7751
  const { type, title, message, actionLabel, dismissible, icon, padding, onAction, onDismiss } = props;
5470
7752
  const [dismissed, setDismissed] = React12.useState(false);
5471
7753
  if (dismissed) return null;
@@ -5495,10 +7777,10 @@ var s15 = reactNative.StyleSheet.create({
5495
7777
  actionText: { fontSize: 12, fontWeight: "600" },
5496
7778
  dismiss: { padding: 2 }
5497
7779
  });
5498
- var META79 = chunkFLEEJX7L_js.getBlockMeta("CommentBlock");
7780
+ var META79 = getBlockMeta("CommentBlock");
5499
7781
  var CommentBlock = (rawProps) => {
5500
- const { theme } = chunkT7V6TILB_js.useTheme();
5501
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META79, theme);
7782
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7783
+ const props = applyDefaults(rawProps, META79, theme);
5502
7784
  const { author, avatarUrl, initials, content, timestamp, likeCount, liked, replyCount, background, padding, showDivider, onLike, onReply, onPress } = props;
5503
7785
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { onPress, style: [s16.root, {
5504
7786
  backgroundColor: background || "transparent",
@@ -5541,11 +7823,11 @@ var s16 = reactNative.StyleSheet.create({
5541
7823
  action: { flexDirection: "row", alignItems: "center", gap: 4 },
5542
7824
  actionText: { fontSize: 11 }
5543
7825
  });
5544
- var META80 = chunkFLEEJX7L_js.getBlockMeta("OTPInputBlock");
7826
+ var META80 = getBlockMeta("OTPInputBlock");
5545
7827
  var SIZE_MAP6 = { sm: 36, md: 48, lg: 58 };
5546
7828
  var OTPInputBlock = (rawProps) => {
5547
- const { theme } = chunkT7V6TILB_js.useTheme();
5548
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META80, theme);
7829
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7830
+ const props = applyDefaults(rawProps, META80, theme);
5549
7831
  const { length, label, error, disabled, size, accentColor, background, onChange, onComplete } = props;
5550
7832
  const [digits, setDigits] = React12.useState(Array(length).fill(""));
5551
7833
  const refs = React12.useRef([]);
@@ -5603,10 +7885,10 @@ var s17 = reactNative.StyleSheet.create({
5603
7885
  box: { borderWidth: 1.5, textAlign: "center", fontWeight: "700" },
5604
7886
  error: { fontSize: 11 }
5605
7887
  });
5606
- var META81 = chunkFLEEJX7L_js.getBlockMeta("TagInputBlock");
7888
+ var META81 = getBlockMeta("TagInputBlock");
5607
7889
  var TagInputBlock = (rawProps) => {
5608
- const { theme } = chunkT7V6TILB_js.useTheme();
5609
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META81, theme);
7890
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7891
+ const props = applyDefaults(rawProps, META81, theme);
5610
7892
  const { tags: externalTags, placeholder, label, maxTags, background, tagColor, onChange } = props;
5611
7893
  const [inputValue, setInputValue] = React12.useState("");
5612
7894
  const [internalTags, setInternalTags] = React12.useState(externalTags || []);
@@ -5664,11 +7946,11 @@ var s18 = reactNative.StyleSheet.create({
5664
7946
  input: { fontSize: 13, flex: 1, paddingVertical: 2 },
5665
7947
  count: { fontSize: 10, textAlign: "right" }
5666
7948
  });
5667
- var META82 = chunkFLEEJX7L_js.getBlockMeta("StepperBlock");
7949
+ var META82 = getBlockMeta("StepperBlock");
5668
7950
  var SIZE_MAP7 = { sm: 24, md: 32, lg: 40 };
5669
7951
  var StepperBlock = (rawProps) => {
5670
- const { theme } = chunkT7V6TILB_js.useTheme();
5671
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META82, theme);
7952
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7953
+ const props = applyDefaults(rawProps, META82, theme);
5672
7954
  const { steps = [], currentStep, orientation, accentColor, completedColor, showLabels, showDescriptions, size } = props;
5673
7955
  const accent = accentColor || theme.primary;
5674
7956
  const completed = completedColor || theme.primary;
@@ -5705,11 +7987,11 @@ var s19 = reactNative.StyleSheet.create({
5705
7987
  label: { fontSize: 12, fontWeight: "600", textAlign: "center" },
5706
7988
  desc: { fontSize: 10, textAlign: "center", marginTop: 2 }
5707
7989
  });
5708
- var META83 = chunkFLEEJX7L_js.getBlockMeta("RatingBlock");
7990
+ var META83 = getBlockMeta("RatingBlock");
5709
7991
  var SIZE_MAP8 = { sm: 16, md: 22, lg: 30 };
5710
7992
  var RatingBlock = (rawProps) => {
5711
- const { theme } = chunkT7V6TILB_js.useTheme();
5712
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META83, theme);
7993
+ const { theme } = chunkRUZBEFDO_js.useTheme();
7994
+ const props = applyDefaults(rawProps, META83, theme);
5713
7995
  const { value, maxStars, readonly, size, activeColor, inactiveColor, showValue, label, onChange } = props;
5714
7996
  const [hovered, setHovered] = React12.useState(null);
5715
7997
  const starSize = SIZE_MAP8[size] ?? 22;
@@ -5754,10 +8036,10 @@ var s20 = reactNative.StyleSheet.create({
5754
8036
  star: { padding: 2 },
5755
8037
  value: { marginLeft: 6, fontWeight: "600" }
5756
8038
  });
5757
- var META84 = chunkFLEEJX7L_js.getBlockMeta("QuoteBlock");
8039
+ var META84 = getBlockMeta("QuoteBlock");
5758
8040
  var QuoteBlock = (rawProps) => {
5759
- const { theme } = chunkT7V6TILB_js.useTheme();
5760
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META84, theme);
8041
+ const { theme } = chunkRUZBEFDO_js.useTheme();
8042
+ const props = applyDefaults(rawProps, META84, theme);
5761
8043
  const { quote, author, role, avatarUrl, accentColor, background, padding, showQuoteIcon, variant } = props;
5762
8044
  const accent = accentColor || theme.primary;
5763
8045
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [
@@ -5787,10 +8069,10 @@ var s21 = reactNative.StyleSheet.create({
5787
8069
  author: { fontSize: 13, fontWeight: "600" },
5788
8070
  role: { fontSize: 11 }
5789
8071
  });
5790
- var META85 = chunkFLEEJX7L_js.getBlockMeta("TimelineBlock");
8072
+ var META85 = getBlockMeta("TimelineBlock");
5791
8073
  var TimelineBlock = (rawProps) => {
5792
- const { theme } = chunkT7V6TILB_js.useTheme();
5793
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META85, theme);
8074
+ const { theme } = chunkRUZBEFDO_js.useTheme();
8075
+ const props = applyDefaults(rawProps, META85, theme);
5794
8076
  const { events = [], accentColor, lineColor, spacing: spacing2, showConnector } = props;
5795
8077
  const accent = accentColor || theme.primary;
5796
8078
  const line = lineColor || theme.border;
@@ -5823,11 +8105,11 @@ var s22 = reactNative.StyleSheet.create({
5823
8105
  ts: { fontSize: 10 },
5824
8106
  desc: { fontSize: 12, lineHeight: 16, marginTop: 2 }
5825
8107
  });
5826
- var META86 = chunkFLEEJX7L_js.getBlockMeta("CounterBlock");
8108
+ var META86 = getBlockMeta("CounterBlock");
5827
8109
  var SIZE_MAP9 = { sm: { btn: 28, font: 14 }, md: { btn: 36, font: 18 }, lg: { btn: 44, font: 22 } };
5828
8110
  var CounterBlock = (rawProps) => {
5829
- const { theme } = chunkT7V6TILB_js.useTheme();
5830
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META86, theme);
8111
+ const { theme } = chunkRUZBEFDO_js.useTheme();
8112
+ const props = applyDefaults(rawProps, META86, theme);
5831
8113
  const { value: extVal, min, max, step, label, size, accentColor, background, disabled, onChange } = props;
5832
8114
  const [internal, setInternal] = React12.useState(extVal ?? 0);
5833
8115
  const val = extVal ?? internal;
@@ -5871,11 +8153,11 @@ var s23 = reactNative.StyleSheet.create({
5871
8153
  btn: { alignItems: "center", justifyContent: "center" },
5872
8154
  value: { textAlign: "center", fontWeight: "700" }
5873
8155
  });
5874
- var META87 = chunkFLEEJX7L_js.getBlockMeta("SegmentedControlBlock");
8156
+ var META87 = getBlockMeta("SegmentedControlBlock");
5875
8157
  var SIZE_MAP10 = { sm: { h: 30, font: 11 }, md: { h: 38, font: 13 }, lg: { h: 46, font: 15 } };
5876
8158
  var SegmentedControlBlock = (rawProps) => {
5877
- const { theme } = chunkT7V6TILB_js.useTheme();
5878
- const props = chunkFLEEJX7L_js.applyDefaults(rawProps, META87, theme);
8159
+ const { theme } = chunkRUZBEFDO_js.useTheme();
8160
+ const props = applyDefaults(rawProps, META87, theme);
5879
8161
  const { segments = [], value: extVal, background, activeBackground, activeColor, inactiveColor, size, fullWidth, onChange } = props;
5880
8162
  const [internal, setInternal] = React12.useState(segments[0]?.value ?? "");
5881
8163
  const active = extVal ?? internal;
@@ -5928,7 +8210,7 @@ var platformSelect = (platforms) => {
5928
8210
  if (isWeb && platforms.web !== void 0) return platforms.web;
5929
8211
  return platforms.default;
5930
8212
  };
5931
- var breakpointValues = chunk45NSZH5Z_js.breakpoints;
8213
+ var breakpointValues = chunkUBZMVSIN_js.breakpoints;
5932
8214
  var orderedBreakpoints = ["xs", "sm", "md", "lg", "xl", "2xl"];
5933
8215
  var showOnly = (visibleAt) => {
5934
8216
  if (reactNative.Platform.OS !== "web") return {};
@@ -5968,7 +8250,7 @@ var injectResponsiveStyle = (key, minWidth, maxWidth) => {
5968
8250
 
5969
8251
  // foundation/layout/utils/spacingToStyle.ts
5970
8252
  var spacingToStyle = (value) => {
5971
- const getValue = (v) => typeof v === "number" ? v : chunk45NSZH5Z_js.spacing[v];
8253
+ const getValue = (v) => typeof v === "number" ? v : chunkUBZMVSIN_js.spacing[v];
5972
8254
  if (Array.isArray(value)) {
5973
8255
  if (value.length === 2) {
5974
8256
  return {
@@ -6089,15 +8371,28 @@ exports.TutoLayout = TutoLayout;
6089
8371
  exports.VideoComp_default = VideoComp_default;
6090
8372
  exports.VoidLayout_default = VoidLayout_default;
6091
8373
  exports.WebViewComp_default = WebViewComp_default;
8374
+ exports.applyDefaults = applyDefaults;
8375
+ exports.applyVariant = applyVariant;
8376
+ exports.blockRegistry = blockRegistry;
8377
+ exports.componentRegistry = componentRegistry;
8378
+ exports.extractDefaults = extractDefaults;
8379
+ exports.getBlockMeta = getBlockMeta;
6092
8380
  exports.getBreakpoint = getBreakpoint;
8381
+ exports.getComponentMeta = getComponentMeta;
8382
+ exports.getConstants = getConstants;
8383
+ exports.getLayoutMeta = getLayoutMeta;
8384
+ exports.getPrimitiveMeta = getPrimitiveMeta;
6093
8385
  exports.getResponsiveValue = getResponsiveValue;
6094
8386
  exports.hideAt = hideAt;
6095
8387
  exports.isAndroid = isAndroid;
6096
8388
  exports.isIOS = isIOS;
6097
8389
  exports.isWeb = isWeb;
8390
+ exports.layoutRegistry = layoutRegistry;
6098
8391
  exports.platformSelect = platformSelect;
8392
+ exports.primitiveRegistry = primitiveRegistry;
6099
8393
  exports.resolveBackground = resolveBackground;
6100
8394
  exports.resolveLayoutPadding = resolveLayoutPadding;
8395
+ exports.resolveThemeDefaults = resolveThemeDefaults;
6101
8396
  exports.showOnly = showOnly;
6102
8397
  exports.spacingToStyle = spacingToStyle;
6103
8398
  exports.useAdaptiveValue = useAdaptiveValue;
@@ -6108,5 +8403,5 @@ exports.useResponsiveValue = useResponsiveValue;
6108
8403
  exports.useSafeArea = useSafeArea;
6109
8404
  exports.useStudioItems = useStudioItems;
6110
8405
  exports.useTutoRef = useTutoRef;
6111
- //# sourceMappingURL=chunk-5ZDSYOFL.js.map
6112
- //# sourceMappingURL=chunk-5ZDSYOFL.js.map
8406
+ //# sourceMappingURL=chunk-3RJREGCN.js.map
8407
+ //# sourceMappingURL=chunk-3RJREGCN.js.map