@flipova/foundation 1.11.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +20 -94
  3. package/dist/chunk-4KNPSB67.js +423 -0
  4. package/dist/chunk-4KNPSB67.js.map +1 -0
  5. package/dist/chunk-4NPMHFKO.mjs +6609 -0
  6. package/dist/chunk-4NPMHFKO.mjs.map +1 -0
  7. package/dist/chunk-5LRV4YZO.js +7024 -0
  8. package/dist/chunk-5LRV4YZO.js.map +1 -0
  9. package/dist/chunk-5N5HC4ZA.mjs +3 -0
  10. package/dist/{chunk-HS2UOQU4.mjs.map → chunk-5N5HC4ZA.mjs.map} +1 -1
  11. package/dist/chunk-CKQBSIBR.mjs +6900 -0
  12. package/dist/chunk-CKQBSIBR.mjs.map +1 -0
  13. package/dist/chunk-DJP3T7OD.mjs +413 -0
  14. package/dist/chunk-DJP3T7OD.mjs.map +1 -0
  15. package/dist/chunk-DNV5UBNF.mjs +3 -0
  16. package/dist/chunk-DNV5UBNF.mjs.map +1 -0
  17. package/dist/chunk-IJTI6EX4.js +4 -0
  18. package/dist/{chunk-2VLBOYBU.js.map → chunk-IJTI6EX4.js.map} +1 -1
  19. package/dist/{chunk-D4QJYQOK.js → chunk-JYGNIQUU.js} +49 -44
  20. package/dist/chunk-JYGNIQUU.js.map +1 -0
  21. package/dist/{chunk-YTD4AWV2.mjs → chunk-NYZH4C27.mjs} +42 -37
  22. package/dist/chunk-NYZH4C27.mjs.map +1 -0
  23. package/dist/chunk-O7UP2OZR.js +6705 -0
  24. package/dist/chunk-O7UP2OZR.js.map +1 -0
  25. package/dist/chunk-OXKOGLXE.js +4 -0
  26. package/dist/chunk-OXKOGLXE.js.map +1 -0
  27. package/dist/chunk-RPO7RKXJ.js +428 -0
  28. package/dist/chunk-RPO7RKXJ.js.map +1 -0
  29. package/dist/chunk-TZUCBWHN.mjs +422 -0
  30. package/dist/chunk-TZUCBWHN.mjs.map +1 -0
  31. package/dist/cli/ds.js +8334 -0
  32. package/dist/cli/flipova.js +5021 -0
  33. package/dist/config/index.d.mts +65 -70
  34. package/dist/config/index.d.ts +65 -70
  35. package/dist/config/index.js +6 -6
  36. package/dist/config/index.mjs +1 -1
  37. package/dist/{index-D4qJw_Et.d.mts → index-CpBqkIpd.d.mts} +25 -2
  38. package/dist/{index-D4qJw_Et.d.ts → index-CpBqkIpd.d.ts} +25 -2
  39. package/dist/index.d.mts +7 -5
  40. package/dist/index.d.ts +7 -5
  41. package/dist/index.js +499 -298
  42. package/dist/index.mjs +5 -4
  43. package/dist/registry/index.d.mts +9693 -0
  44. package/dist/registry/index.d.ts +9693 -0
  45. package/dist/registry/index.js +388 -0
  46. package/dist/registry/index.mjs +3 -0
  47. package/dist/theme/index.d.mts +46 -49
  48. package/dist/theme/index.d.ts +46 -49
  49. package/dist/theme/index.js +7 -39
  50. package/dist/theme/index.mjs +1 -1
  51. package/dist/tokens/index.d.mts +265 -130
  52. package/dist/tokens/index.d.ts +265 -130
  53. package/dist/tokens/index.js +15 -31
  54. package/dist/tokens/index.mjs +1 -1
  55. package/dist/types/index.d.mts +200 -0
  56. package/dist/types/index.d.ts +200 -0
  57. package/dist/types/index.js +4 -0
  58. package/dist/types/index.js.map +1 -0
  59. package/dist/types/index.mjs +3 -0
  60. package/dist/types/index.mjs.map +1 -0
  61. package/dist/ui/index.d.mts +2981 -0
  62. package/dist/ui/index.d.ts +2981 -0
  63. package/dist/ui/index.js +729 -0
  64. package/dist/ui/index.js.map +1 -0
  65. package/dist/ui/index.mjs +4 -0
  66. package/dist/ui/index.mjs.map +1 -0
  67. package/package.json +62 -33
  68. package/dist/chunk-2VLBOYBU.js +0 -4
  69. package/dist/chunk-32VWREEH.mjs +0 -8256
  70. package/dist/chunk-32VWREEH.mjs.map +0 -1
  71. package/dist/chunk-3RJREGCN.js +0 -8407
  72. package/dist/chunk-3RJREGCN.js.map +0 -1
  73. package/dist/chunk-D4QJYQOK.js.map +0 -1
  74. package/dist/chunk-HS2UOQU4.mjs +0 -3
  75. package/dist/chunk-IKVONTJC.mjs +0 -397
  76. package/dist/chunk-IKVONTJC.mjs.map +0 -1
  77. package/dist/chunk-RRV2Q4SS.mjs +0 -655
  78. package/dist/chunk-RRV2Q4SS.mjs.map +0 -1
  79. package/dist/chunk-RUZBEFDO.js +0 -669
  80. package/dist/chunk-RUZBEFDO.js.map +0 -1
  81. package/dist/chunk-UBZMVSIN.js +0 -412
  82. package/dist/chunk-UBZMVSIN.js.map +0 -1
  83. package/dist/chunk-YTD4AWV2.mjs.map +0 -1
  84. package/dist/layout/index.d.mts +0 -2529
  85. package/dist/layout/index.d.ts +0 -2529
  86. package/dist/layout/index.js +0 -512
  87. package/dist/layout/index.mjs +0 -3
  88. package/dist/spacing-CXUulLF9.d.mts +0 -128
  89. package/dist/spacing-CXUulLF9.d.ts +0 -128
  90. package/dist/sso/index.js +0 -379
  91. package/dist/sso/index.js.map +0 -1
  92. package/dist/sso/index.mjs +0 -374
  93. package/dist/sso/index.mjs.map +0 -1
  94. package/dist/studio-v2/cli/index.js +0 -96
  95. package/dist/web/index.js +0 -6310
  96. package/dist/web/index.js.map +0 -1
  97. package/dist/web/index.mjs +0 -6201
  98. package/dist/web/index.mjs.map +0 -1
  99. package/studio-v2/apps/web/CHANGELOG.md +0 -7
  100. package/studio-v2/apps/web/LICENSE +0 -21
  101. package/studio-v2/apps/web/README.md +0 -56
  102. package/studio-v2/apps/web/dist/+not-found.html +0 -793
  103. package/studio-v2/apps/web/dist/_expo/.routes.json +0 -3
  104. package/studio-v2/apps/web/dist/_expo/static/css/global-a4717de456877faacb88ee482aa99653.css +0 -1
  105. package/studio-v2/apps/web/dist/_expo/static/js/web/entry-5d96588cc8f2ee5c00754cef9ac6481d.js +0 -15648
  106. package/studio-v2/apps/web/dist/_expo/static/js/web/index-470f33f64d8c4f7b8d8da2632b2959c2.js +0 -4
  107. package/studio-v2/apps/web/dist/_expo/static/js/web/index-f7fcd21ae9d8dacf4c88ea5796614af0.js +0 -3
  108. package/studio-v2/apps/web/dist/_sitemap.html +0 -793
  109. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/AntDesign.3f78af31cca60105799838a1a7a59fbd.ttf +0 -0
  110. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Entypo.31b5ffea3daddc69dd01a1f3d6cf63c5.ttf +0 -0
  111. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/EvilIcons.140c53a7643ea949007aa9a282153849.ttf +0 -0
  112. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Feather.ca4b48e04dc1ce10bfbddb262c8b835f.ttf +0 -0
  113. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome.b06871f281fee6b241d60582ae9369b9.ttf +0 -0
  114. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Brands.3b89dd103490708d19a95adcae52210e.ttf +0 -0
  115. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Regular.1f77739ca9ff2188b539c36f30ffa2be.ttf +0 -0
  116. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Solid.605ed7926cf39a2ad5ec2d1f9d391d3d.ttf +0 -0
  117. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Brands.56c8d80832e37783f12c05db7c8849e2.ttf +0 -0
  118. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Regular.370dd5af19f8364907b6e2c41f45dbbf.ttf +0 -0
  119. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Solid.adec7d6f310bc577f05e8fe06a5daccf.ttf +0 -0
  120. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Fontisto.b49ae8ab2dbccb02c4d11caaacf09eab.ttf +0 -0
  121. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Foundation.e20945d7c929279ef7a6f1db184a4470.ttf +0 -0
  122. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Ionicons.b4eb097d35f44ed943676fd56f6bdc51.ttf +0 -0
  123. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialCommunityIcons.6e435534bd35da5fef04168860a9b8fa.ttf +0 -0
  124. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialIcons.4e85bc9ebe07e0340c9c4fc2f6c38908.ttf +0 -0
  125. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Octicons.871378c6eab492a3e689a9385dc45a12.ttf +0 -0
  126. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/SimpleLineIcons.d2285965fe34b05465047401b8595dd0.ttf +0 -0
  127. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Zocial.1681f34aaca71b8dfb70756bca331eb2.ttf +0 -0
  128. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/drawer/lib/module/views/assets/toggle-drawer-icon.ae74bb20586a731af545e6b00fe14a09.png +0 -0
  129. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png +0 -0
  130. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png +0 -0
  131. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png +0 -0
  132. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png +0 -0
  133. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png +0 -0
  134. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png +0 -0
  135. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png +0 -0
  136. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png +0 -0
  137. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png +0 -0
  138. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png +0 -0
  139. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png +0 -0
  140. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/arrow_down.017bc6ba3fc25503e5eb5e53826d48a8.png +0 -0
  141. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/error.d1ea1496f9057eb392d5bbf3732a61b7.png +0 -0
  142. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/file.19eeb73b9593a38f8e9f418337fc7d10.png +0 -0
  143. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/forward.d8b800c443b8972542883e0b9de2bdc6.png +0 -0
  144. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/pkg.ab19f4cbc543357183a20571f68380a3.png +0 -0
  145. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png +0 -0
  146. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png +0 -0
  147. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png +0 -0
  148. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png +0 -0
  149. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png +0 -0
  150. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png +0 -0
  151. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png +0 -0
  152. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png +0 -0
  153. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png +0 -0
  154. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png +0 -0
  155. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png +0 -0
  156. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/sitemap.412dd9275b6b48ad28f5e3d81bb1f626.png +0 -0
  157. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/unmatched.20e71bdf79e3a97bf55fd9e164041578.png +0 -0
  158. package/studio-v2/apps/web/dist/index.html +0 -793
  159. /package/dist/{layout → registry}/index.js.map +0 -0
  160. /package/dist/{layout → registry}/index.mjs.map +0 -0
@@ -1,2529 +0,0 @@
1
- import React from 'react';
2
- import { ViewProps, ViewStyle, ScrollViewProps, View } from 'react-native';
3
- import { C as ColorScheme, b as ThemeMode, a as CustomThemeMode } from '../index-D4qJw_Et.mjs';
4
- import { B as Breakpoint, a as SpacingToken, R as RadiusToken, S as ShadowToken, c as spacing } from '../spacing-CXUulLF9.mjs';
5
-
6
- declare const getBreakpoint: (innerWidth?: number) => Breakpoint;
7
- type ResponsiveValue<T> = T | Partial<Record<Breakpoint, T>>;
8
- declare const getResponsiveValue: <T>(value: ResponsiveValue<T>, currentBreakpoint: Breakpoint) => T;
9
-
10
- /**
11
- * Box — Primitive niveau 0
12
- *
13
- * Règle d'or : AUCUN layout composant ne touche ViewStyle directement.
14
- * Tout passe par Box. Box est l'unique pont entre les tokens et React Native.
15
- *
16
- * Ce que Box fait :
17
- * - Résout les spacing tokens (p, m, gap…) → nombre RN
18
- * - Résout les radius tokens, shadow tokens
19
- * - Gère le gradient (LinearGradient) de façon transparente
20
- * - Supporte les valeurs responsives via ResponsiveValue<T>
21
- * - Accepte un override de theme local
22
- *
23
- * Ce que Box ne fait PAS :
24
- * - Pas d'opinion sur la direction (colonne/ligne → Stack / Inline)
25
- * - Pas de scroll (→ Scroll)
26
- * - Pas de centrage sémantique (→ Center)
27
- */
28
-
29
- type GradientDirection = "toTop" | "toBottom" | "toLeft" | "toRight" | "toTopLeft" | "toTopRight" | "toBottomLeft" | "toBottomRight";
30
- interface BoxProps extends Omit<ViewProps, "style"> {
31
- p?: ResponsiveValue<SpacingToken>;
32
- pt?: ResponsiveValue<SpacingToken>;
33
- pr?: ResponsiveValue<SpacingToken>;
34
- pb?: ResponsiveValue<SpacingToken>;
35
- pl?: ResponsiveValue<SpacingToken>;
36
- px?: ResponsiveValue<SpacingToken>;
37
- py?: ResponsiveValue<SpacingToken>;
38
- m?: ResponsiveValue<SpacingToken>;
39
- mt?: ResponsiveValue<SpacingToken>;
40
- mr?: ResponsiveValue<SpacingToken>;
41
- mb?: ResponsiveValue<SpacingToken>;
42
- ml?: ResponsiveValue<SpacingToken>;
43
- mx?: ResponsiveValue<SpacingToken>;
44
- my?: ResponsiveValue<SpacingToken>;
45
- bg?: string;
46
- gradient?: keyof ColorScheme["gradients"] | [string, string, ...string[]];
47
- gradientDirection?: GradientDirection;
48
- borderRadius?: RadiusToken;
49
- borderTopLeftRadius?: RadiusToken;
50
- borderTopRightRadius?: RadiusToken;
51
- borderBottomLeftRadius?: RadiusToken;
52
- borderBottomRightRadius?: RadiusToken;
53
- shadow?: ShadowToken;
54
- flex?: number;
55
- flexGrow?: number;
56
- flexShrink?: number;
57
- flexBasis?: ViewStyle["flexBasis"];
58
- flexDirection?: ViewStyle["flexDirection"];
59
- alignItems?: ViewStyle["alignItems"];
60
- alignSelf?: ViewStyle["alignSelf"];
61
- justifyContent?: ViewStyle["justifyContent"];
62
- gap?: SpacingToken;
63
- rowGap?: SpacingToken;
64
- columnGap?: SpacingToken;
65
- flexWrap?: ViewStyle["flexWrap"];
66
- width?: ViewStyle["width"];
67
- height?: ViewStyle["height"];
68
- minWidth?: ViewStyle["minWidth"];
69
- minHeight?: ViewStyle["minHeight"];
70
- maxWidth?: ViewStyle["maxWidth"];
71
- maxHeight?: ViewStyle["maxHeight"];
72
- position?: ViewStyle["position"];
73
- top?: ViewStyle["top"] | SpacingToken;
74
- right?: ViewStyle["right"] | SpacingToken;
75
- bottom?: ViewStyle["bottom"] | SpacingToken;
76
- left?: ViewStyle["left"] | SpacingToken;
77
- zIndex?: ViewStyle["zIndex"];
78
- overflow?: ViewStyle["overflow"];
79
- opacity?: ViewStyle["opacity"];
80
- style?: ViewStyle | ViewStyle[];
81
- children?: React.ReactNode;
82
- /** Surcharge de thème local (ex. : forcer dark dans un composant). */
83
- theme?: ThemeMode | CustomThemeMode;
84
- }
85
- /**
86
- * @example
87
- * // Layout simple
88
- * <Box px={4} py={2} bg={theme.card} borderRadius="md">…</Box>
89
- *
90
- * // Gradient
91
- * <Box gradient="primary" gradientDirection="toRight" p={6}>…</Box>
92
- *
93
- * // Responsive spacing
94
- * <Box px={{ xs: 4, md: 8 }}>…</Box>
95
- */
96
- declare const Box: React.FC<BoxProps>;
97
-
98
- /**
99
- * Center — Primitive niveau 1
100
- *
101
- * Centre ses enfants sur un ou les deux axes.
102
- * Par défaut (sans props), centre sur les deux axes.
103
- *
104
- * Construit sur Box ; ne touche jamais ViewStyle directement.
105
- *
106
- * @example
107
- * // Centrage total (cas le plus fréquent)
108
- * <Center flex={1}>
109
- * <Spinner />
110
- * </Center>
111
- *
112
- * // Centrage horizontal seulement
113
- * <Center horizontal>
114
- * <Text>Titre de section</Text>
115
- * </Center>
116
- *
117
- * // Centrage vertical seulement dans une hauteur fixe
118
- * <Center vertical height={80}>
119
- * <Text>Label</Text>
120
- * </Center>
121
- */
122
-
123
- interface CenterProps extends Omit<BoxProps, "alignItems" | "justifyContent"> {
124
- /** Centre horizontalement (axe transversal). */
125
- horizontal?: boolean;
126
- /** Centre verticalement (axe principal). */
127
- vertical?: boolean;
128
- }
129
- declare const Center: React.FC<CenterProps>;
130
-
131
- /**
132
- * Divider — Primitive niveau 1
133
- *
134
- * Séparateur visuel horizontal ou vertical.
135
- * Construit sur Box.
136
- *
137
- * @example
138
- * <Stack spacing={4}>
139
- * <Text>Section A</Text>
140
- * <Divider />
141
- * <Text>Section B</Text>
142
- * </Stack>
143
- *
144
- * // Vertical (dans un Inline)
145
- * <Inline spacing={4} align="stretch">
146
- * <Text>Gauche</Text>
147
- * <Divider orientation="vertical" />
148
- * <Text>Droite</Text>
149
- * </Inline>
150
- */
151
-
152
- interface DividerProps {
153
- orientation?: "horizontal" | "vertical";
154
- color?: string;
155
- thickness?: number;
156
- }
157
- declare const Divider: React.FC<DividerProps>;
158
-
159
- /**
160
- * Inline — Primitive niveau 1 (axe horizontal)
161
- *
162
- * Aligne ses enfants côte à côte avec espacement uniforme.
163
- * Construit sur Box ; ne touche jamais ViewStyle directement.
164
- *
165
- * Règle : si tu as besoin d'un axe vertical → utilise Stack.
166
- *
167
- * @example
168
- * // Bouton avec icône + label
169
- * <Inline spacing={2} align="center">
170
- * <Icon name="star" />
171
- * <Text>Favoris</Text>
172
- * </Inline>
173
- *
174
- * // Tags avec retour à la ligne
175
- * <Inline spacing={2} wrap>
176
- * {tags.map(t => <Tag key={t} label={t} />)}
177
- * </Inline>
178
- *
179
- * // Barre de navigation : items aux extrémités
180
- * <Inline justify="space-between" fillWidth>
181
- * <Logo />
182
- * <Menu />
183
- * </Inline>
184
- */
185
-
186
- interface InlineProps extends Omit<BoxProps, "gap" | "flexDirection" | "flexWrap"> {
187
- /** Espacement entre enfants (token spacing). Défaut : 0. */
188
- spacing?: SpacingToken;
189
- /** Alignement transversal (`alignItems`). Défaut : "center". */
190
- align?: BoxProps["alignItems"];
191
- /** Alignement principal (`justifyContent`). Défaut : "flex-start". */
192
- justify?: BoxProps["justifyContent"];
193
- /** Autorise le retour à la ligne. */
194
- wrap?: boolean;
195
- /** Inverse l'ordre (`row-reverse`). */
196
- reverse?: boolean;
197
- /** Raccourci pour `width: "100%"`. */
198
- fillWidth?: boolean;
199
- }
200
- declare const Inline: React.FC<InlineProps>;
201
-
202
- /**
203
- * Scroll — Primitive niveau 1
204
- *
205
- * ScrollView prête à l'emploi avec :
206
- * - Gestion du padding interne (tokens spacing)
207
- * - Conteneur Box externe (overflow:hidden, flex:1)
208
- * - Valeurs par défaut sensées (keyboardShouldPersistTaps, nestedScrollEnabled)
209
- *
210
- * Construit sur Box pour le conteneur externe.
211
- * Ne touche jamais ViewStyle directement (sauf contentContainerStyle pass-through).
212
- *
213
- * @example
214
- * // Scroll vertical simple
215
- * <Scroll px={4} py={6}>
216
- * {items.map(…)}
217
- * </Scroll>
218
- *
219
- * // Scroll horizontal
220
- * <Scroll horizontal showsHorizontalScrollIndicator={false}>
221
- * {cards.map(…)}
222
- * </Scroll>
223
- *
224
- * // Avec conteneur personnalisé
225
- * <Scroll containerProps={{ bg: theme.card, borderRadius: "xl" }} p={4}>
226
- * {content}
227
- * </Scroll>
228
- */
229
-
230
- interface ScrollProps extends ScrollViewProps {
231
- /** Padding uniforme dans la zone de contenu. */
232
- p?: SpacingToken;
233
- px?: SpacingToken;
234
- py?: SpacingToken;
235
- pt?: SpacingToken;
236
- pr?: SpacingToken;
237
- pb?: SpacingToken;
238
- pl?: SpacingToken;
239
- /** Props transmises au conteneur Box externe. */
240
- containerProps?: Partial<BoxProps>;
241
- }
242
- declare const Scroll: React.FC<ScrollProps>;
243
-
244
- /**
245
- * Stack — Primitive niveau 1 (axe vertical)
246
- *
247
- * Empile ses enfants en colonne avec un espacement uniforme.
248
- * Construit sur Box ; ne touche jamais ViewStyle directement.
249
- *
250
- * Règle : si tu as besoin d'un axe horizontal → utilise Inline.
251
- * Si tu mélanges les deux dans un écran → compose Stack + Inline.
252
- *
253
- * @example
254
- * <Stack spacing={4}>
255
- * <Text>Titre</Text>
256
- * <Text>Corps</Text>
257
- * </Stack>
258
- *
259
- * // Avec distribution
260
- * <Stack distribute fillHeight>
261
- * <Header />
262
- * <Content />
263
- * <Footer />
264
- * </Stack>
265
- */
266
-
267
- interface StackProps extends Omit<BoxProps, "gap" | "flexDirection"> {
268
- /** Espacement entre enfants (token spacing). Défaut : 0. */
269
- spacing?: SpacingToken;
270
- /** Alignement sur l'axe transversal (`alignItems`). Défaut : "stretch". */
271
- align?: BoxProps["alignItems"];
272
- /** Alignement sur l'axe principal (`justifyContent`). Ignoré si `distribute`. */
273
- justify?: BoxProps["justifyContent"];
274
- /** Inverse l'ordre (`column-reverse`). */
275
- reverse?: boolean;
276
- /** Distribue les enfants équitablement (`space-between`). */
277
- distribute?: boolean;
278
- /** Étire la stack pour remplir la hauteur dispo (`flex:1` + `minHeight:0`). */
279
- fillHeight?: boolean;
280
- }
281
- declare const Stack: React.FC<StackProps>;
282
-
283
- /**
284
- * RootLayout — Root page container with full flex control.
285
- *
286
- * Unlike VoidLayout, this layout is a single flex container that directly
287
- * passes justifyContent/alignItems to its children. No nested Box wrappers.
288
- * Designed to be the root node of every page in the studio.
289
- */
290
-
291
- interface RootLayoutProps {
292
- children: React.ReactNode;
293
- background?: string;
294
- scrollable?: boolean;
295
- padding?: number;
296
- justifyContent?: "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly";
297
- alignItems?: "stretch" | "flex-start" | "center" | "flex-end" | "baseline";
298
- flexDirection?: "column" | "row";
299
- gap?: number;
300
- }
301
- declare const RootLayout: React.FC<RootLayoutProps>;
302
-
303
- /**
304
- * AuthLayout
305
- *
306
- * Authentication layout with a branding panel (desktop) and a centered form.
307
- * On mobile, the form is full-screen with a background or gradient.
308
- */
309
-
310
- interface AuthLayoutProps {
311
- children: React.ReactNode;
312
- branding?: React.ReactNode;
313
- brandingBackground?: string;
314
- background?: string | string[];
315
- borderRadius?: RadiusToken;
316
- spacing?: SpacingToken;
317
- brandingRatio?: number;
318
- padding?: SpacingToken;
319
- shadowed?: boolean;
320
- formMaxWidth?: number;
321
- formScrollPaddingY?: SpacingToken;
322
- formScrollPaddingX?: SpacingToken;
323
- }
324
- declare const AuthLayout: React.FC<AuthLayoutProps>;
325
-
326
- /**
327
- * BentoLayout
328
- *
329
- * Dynamic bento-box grid for displaying content of varying sizes.
330
- * Automatically generates cell configurations or accepts manual ones, adapting to mobile/desktop.
331
- */
332
-
333
- interface BentoCellConfig {
334
- index: number;
335
- cols: number;
336
- rows: number;
337
- priority?: 'high' | 'medium' | 'low';
338
- }
339
- interface BentoLayoutProps {
340
- items?: React.ReactNode[];
341
- children?: React.ReactNode | React.ReactNode[];
342
- spacing?: SpacingToken;
343
- itemBackground?: string;
344
- itemBorderRadius?: RadiusToken;
345
- scrollable?: boolean;
346
- maxWidth?: number;
347
- cellConfig?: BentoCellConfig[];
348
- baseHeight?: number;
349
- background?: string;
350
- borderRadius?: RadiusToken;
351
- }
352
- declare const BentoLayout: React.FC<BentoLayoutProps>;
353
-
354
- /**
355
- * BottomDrawerLayout
356
- *
357
- * Animated bottom drawer with swipe gesture and haptic feedback.
358
- * Main content sits above a sliding drawer panel.
359
- */
360
-
361
- interface BottomDrawerLayoutProps {
362
- content: React.ReactNode;
363
- drawerContent: React.ReactNode;
364
- drawerHeight?: number;
365
- maxWidth?: number;
366
- scrollable?: boolean;
367
- drawerBackground?: string;
368
- drawerBorderRadius?: RadiusToken;
369
- background?: string;
370
- borderRadius?: RadiusToken;
371
- defaultOpen?: boolean;
372
- onToggle?: (isOpen: boolean) => void;
373
- handleColor?: string;
374
- backdropOpacity?: number;
375
- contentScaleWhenOpen?: number;
376
- handleBarColor?: string;
377
- handleButtonSize?: number;
378
- }
379
- declare const BottomDrawerLayout: React.FC<BottomDrawerLayoutProps>;
380
-
381
- /**
382
- * CenteredLayout
383
- *
384
- * Horizontally and vertically centered content with optional maxWidth.
385
- * Typically used for auth pages, forms, and onboarding screens.
386
- */
387
-
388
- interface CenteredLayoutProps {
389
- children: React.ReactNode;
390
- maxWidth?: number;
391
- padding?: SpacingToken;
392
- background?: string;
393
- cardBackground?: string;
394
- borderRadius?: RadiusToken;
395
- shadowed?: boolean;
396
- mobilePadding?: SpacingToken;
397
- desktopPadding?: SpacingToken;
398
- }
399
- declare const CenteredLayout: React.FC<CenteredLayoutProps>;
400
-
401
- /**
402
- * CrossTabLayout
403
- *
404
- * Drag-and-drop reorderable grid with haptic feedback.
405
- * Children can be rearranged by long-pressing and dragging.
406
- */
407
-
408
- type SpacingKey$1 = keyof typeof spacing;
409
- interface CrossTabLayoutProps {
410
- items?: React.ReactElement[];
411
- children?: React.ReactNode | React.ReactElement[];
412
- columns?: number;
413
- spacing?: SpacingKey$1;
414
- itemBackground?: string;
415
- itemBorderRadius?: number;
416
- scrollEnabled?: boolean;
417
- onOrderChange?: (newOrderKeys: string[]) => void;
418
- springDamping?: number;
419
- springStiffness?: number;
420
- longPressDuration?: number;
421
- dragScale?: number;
422
- background?: string;
423
- }
424
- declare const CrossTabLayout: React.FC<CrossTabLayoutProps>;
425
-
426
- /**
427
- * DashboardLayout
428
- *
429
- * Classic dashboard structure with a fixed header, optional collapsible sidebar, content area, and optional footer.
430
- * On mobile, the sidebar stacks below the content or is hidden.
431
- */
432
-
433
- interface DashboardLayoutProps {
434
- header: React.ReactNode;
435
- content: React.ReactNode;
436
- sidebar?: React.ReactNode;
437
- footer?: React.ReactNode;
438
- sidebarWidth?: number;
439
- sidebarCollapsedWidth?: number;
440
- headerHeight?: number;
441
- footerHeight?: number;
442
- spacing?: SpacingToken;
443
- borderRadius?: RadiusToken;
444
- background?: string;
445
- disableContentScroll?: boolean;
446
- headerBackground?: string;
447
- sidebarBackground?: string;
448
- contentBackground?: string;
449
- footerBackground?: string;
450
- headerPaddingX?: SpacingToken;
451
- mobileHeaderMinHeight?: number;
452
- }
453
- declare const DashboardLayout: React.FC<DashboardLayoutProps>;
454
-
455
- /**
456
- * DeckLayout
457
- *
458
- * Swipeable card stack with depth effect.
459
- * Background cards are visible with offset and reduced scale.
460
- */
461
-
462
- interface DeckLayoutProps {
463
- items?: React.ReactNode[];
464
- cards?: React.ReactNode[];
465
- children?: React.ReactNode | React.ReactNode[];
466
- peekOffset?: number;
467
- peekScale?: number;
468
- cycle?: boolean;
469
- peekCount?: number;
470
- peekRotation?: number;
471
- direction?: string;
472
- background?: string;
473
- cardShadow?: boolean;
474
- cardBackground?: string;
475
- cardBorderRadius?: number;
476
- containerWidth?: string;
477
- containerHeight?: string;
478
- }
479
- declare const _default: React.NamedExoticComponent<DeckLayoutProps>;
480
-
481
- interface LayoutPadding {
482
- top?: SpacingToken;
483
- bottom?: SpacingToken;
484
- left?: SpacingToken;
485
- right?: SpacingToken;
486
- horizontal?: SpacingToken;
487
- vertical?: SpacingToken;
488
- }
489
- type LayoutBackground = string | [string, string, ...string[]];
490
- type ThemeColorRole = Exclude<{
491
- [K in keyof ColorScheme]: ColorScheme[K] extends string ? K : never;
492
- }[keyof ColorScheme], undefined>;
493
- interface SlotDescriptor {
494
- name: string;
495
- label: string;
496
- required: boolean;
497
- /**
498
- * kind — explicit slot mode, no heuristic needed.
499
- *
500
- * - "children" : standard React children (layout receives `children` prop)
501
- * - "items" : primary array slot (layout receives `items={[...]}` or named prop)
502
- * - "named" : single ReactNode passed as a named prop (e.g. `header={<Header />}`)
503
- * - "named-array" : array of ReactNodes passed as a named prop (e.g. `backContent={[...]}`)
504
- *
505
- * Defaults to "children" when omitted for backward compatibility.
506
- */
507
- kind?: "children" | "items" | "named" | "named-array";
508
- /** @deprecated use `kind: "items"` instead */
509
- array?: boolean;
510
- }
511
- type PropType = "string" | "number" | "boolean" | "spacing" | "radius" | "shadow" | "color" | "background" | "padding" | "enum" | "ratio" | "json";
512
- interface PropDescriptor<T = unknown> {
513
- name: string;
514
- label: string;
515
- type: PropType;
516
- default?: T;
517
- themeDefault?: ThemeColorRole;
518
- description?: string;
519
- required?: boolean;
520
- options?: readonly string[];
521
- min?: number;
522
- max?: number;
523
- group?: "style" | "layout" | "behavior" | "content";
524
- }
525
- type LayoutCategory = "page" | "content" | "navigation" | "card" | "scroll" | "special";
526
- type ComponentCategory = "input" | "action" | "display" | "feedback" | "overlay" | "media" | "navigation";
527
- type BlockCategory = "auth" | "profile" | "navigation" | "content" | "data" | "feedback" | "form" | "overlay" | "social" | "ecommerce" | "finance" | "onboarding" | "messaging" | "calendar" | "files" | "location" | "media";
528
- interface SpringConfig {
529
- damping: number;
530
- stiffness: number;
531
- mass?: number;
532
- overshootClamping?: boolean;
533
- }
534
- interface LayoutConstants {
535
- springConfig?: SpringConfig;
536
- springSnap?: SpringConfig;
537
- springNoBounce?: SpringConfig;
538
- swipeThreshold?: number;
539
- flipThreshold?: number;
540
- exitDistance?: number;
541
- scaleFactor?: number;
542
- flipScaleFactor?: number;
543
- dezoomDuration?: number;
544
- flipDuration?: number;
545
- slideOutDuration?: number;
546
- exitLeft?: number;
547
- exitRight?: number;
548
- }
549
- interface VariantDescriptor {
550
- name: string;
551
- label: string;
552
- description?: string;
553
- overrides: Record<string, unknown>;
554
- }
555
- interface BaseMeta {
556
- id: string;
557
- label: string;
558
- description: string;
559
- props: PropDescriptor[];
560
- themeMapping?: Record<string, ThemeColorRole>;
561
- tags: string[];
562
- }
563
- interface LayoutMeta extends BaseMeta {
564
- category: LayoutCategory;
565
- slots: SlotDescriptor[];
566
- constants?: LayoutConstants;
567
- responsive: boolean;
568
- animated: boolean;
569
- dependencies?: string[];
570
- /** Number of placeholder items to show in Studio when the slot is empty (default: 3) */
571
- previewItemCount?: number;
572
- /**
573
- * Platforms this layout is available on.
574
- * Omit to indicate support for all platforms.
575
- * @example ["native", "web"]
576
- */
577
- platforms?: ("native" | "web")[];
578
- }
579
- interface ComponentMeta extends BaseMeta {
580
- category: ComponentCategory;
581
- variants: VariantDescriptor[];
582
- sizes?: string[];
583
- /**
584
- * Platforms this component is available on.
585
- * Omit to indicate support for all platforms.
586
- */
587
- platforms?: ("native" | "web")[];
588
- }
589
- interface BlockMeta extends BaseMeta {
590
- category: BlockCategory;
591
- slots: SlotDescriptor[];
592
- components: string[];
593
- }
594
- type AnyMeta = LayoutMeta | ComponentMeta | BlockMeta;
595
- type DefaultsOf<T extends Record<string, unknown>> = {
596
- [K in keyof T]?: T[K];
597
- };
598
-
599
- /**
600
- * FlexLayout
601
- *
602
- * Flexible layout with adaptive direction, wrap, and spacing.
603
- * Supports optional scrolling and directional padding.
604
- */
605
-
606
- interface FlexLayoutProps extends Omit<BoxProps, "gap" | "p" | "padding"> {
607
- direction?: "row" | "column";
608
- wrap?: boolean;
609
- spacing?: SpacingToken;
610
- align?: BoxProps["alignItems"];
611
- justify?: BoxProps["justifyContent"];
612
- maxWidth?: number;
613
- scrollable?: boolean;
614
- adaptiveSpacing?: {
615
- mobile?: SpacingToken;
616
- tablet?: SpacingToken;
617
- desktop?: SpacingToken;
618
- };
619
- adaptiveDirection?: {
620
- mobile?: "row" | "column";
621
- tablet?: "row" | "column";
622
- desktop?: "row" | "column";
623
- };
624
- padding?: LayoutPadding;
625
- background?: string;
626
- borderRadius?: RadiusToken;
627
- }
628
- declare const FlexLayout: React.FC<FlexLayoutProps>;
629
-
630
- /**
631
- * FlipLayout
632
- *
633
- * Card carousel with flip (front/back) and horizontal swipe.
634
- * Supports touch gestures and web-based navigation controls.
635
- */
636
-
637
- interface FlipLayoutProps {
638
- items?: React.ReactNode[];
639
- cards?: React.ReactNode[];
640
- children?: React.ReactNode | React.ReactNode[];
641
- backContent?: React.ReactNode[];
642
- onFlip?: (index: number, isFlipped: boolean) => void;
643
- onSwipe?: (index: number, direction: 'left' | 'right') => void;
644
- springConfig?: {
645
- damping?: number;
646
- stiffness?: number;
647
- };
648
- maxWidth?: number;
649
- background?: string;
650
- borderRadius?: RadiusToken;
651
- cardBackground?: string;
652
- cardBorderRadius?: number;
653
- cardAspectRatio?: number;
654
- cardMaxHeight?: number;
655
- flipPerspective?: number;
656
- swipeThreshold?: number;
657
- padding?: LayoutPadding;
658
- dezoomDuration?: number;
659
- flipDuration?: number;
660
- slideOutDuration?: number;
661
- }
662
- declare const FlipLayout: React.FC<FlipLayoutProps>;
663
-
664
- /**
665
- * FooterLayout
666
- *
667
- * Main content area with a fixed or scrollable footer.
668
- * Supports compact mode and sticky footer positioning.
669
- */
670
-
671
- interface FooterLayoutProps {
672
- content: React.ReactNode;
673
- footer: React.ReactNode;
674
- footerHeight?: number;
675
- spacing?: SpacingToken;
676
- sticky?: boolean;
677
- maxWidth?: number;
678
- scrollable?: boolean;
679
- footerBackground?: string;
680
- footerBorderRadius?: RadiusToken;
681
- contentBorderRadius?: RadiusToken;
682
- background?: string;
683
- borderRadius?: RadiusToken;
684
- padding?: SpacingToken;
685
- footerPadding?: SpacingToken;
686
- compact?: boolean;
687
- }
688
- declare const FooterLayout: React.FC<FooterLayoutProps>;
689
-
690
- /**
691
- * GridLayout
692
- *
693
- * Responsive grid with adaptive columns based on breakpoint.
694
- * Supports scrolling, padding, and compact mode.
695
- */
696
-
697
- interface GridLayoutProps {
698
- items?: React.ReactNode[];
699
- children?: React.ReactNode | React.ReactNode[];
700
- columns?: number;
701
- cellHeight?: number | "auto";
702
- spacing?: SpacingToken;
703
- maxWidth?: number;
704
- scrollable?: boolean;
705
- padding?: SpacingToken;
706
- itemBackground?: string;
707
- itemBorderRadius?: RadiusToken;
708
- background?: string;
709
- borderRadius?: RadiusToken;
710
- compact?: boolean;
711
- }
712
- declare const GridLayout: React.FC<GridLayoutProps>;
713
-
714
- /**
715
- * HeaderContentLayout
716
- *
717
- * Collapsible header that shrinks on scroll with a main content area below.
718
- * The header progressively reduces in height as the user scrolls.
719
- */
720
-
721
- interface HeaderContentLayoutProps {
722
- header: React.ReactNode;
723
- content: React.ReactNode;
724
- headerHeight?: number;
725
- headerCollapsedHeight?: number;
726
- spacing?: SpacingToken;
727
- maxWidth?: number;
728
- headerBackground?: string;
729
- headerBorderRadius?: RadiusToken;
730
- contentBackground?: string;
731
- contentBorderRadius?: RadiusToken;
732
- background?: string;
733
- borderRadius?: RadiusToken;
734
- padding?: SpacingToken;
735
- headerPadding?: SpacingToken;
736
- scrollEventThrottle?: number;
737
- }
738
- declare const HeaderContentLayout: React.FC<HeaderContentLayoutProps>;
739
-
740
- /**
741
- * LeftDrawerLayout
742
- *
743
- * Animated left-side drawer with swipe-to-close gesture and haptic feedback.
744
- * Content shifts when the drawer opens, with a backdrop overlay.
745
- */
746
-
747
- interface LeftDrawerLayoutProps {
748
- content: React.ReactNode;
749
- drawerContent: React.ReactNode;
750
- drawerWidth?: number;
751
- maxWidth?: number;
752
- scrollable?: boolean;
753
- drawerBackground?: string;
754
- drawerBorderRadius?: RadiusToken;
755
- background?: string;
756
- borderRadius?: RadiusToken;
757
- defaultOpen?: boolean;
758
- onToggle?: (isOpen: boolean) => void;
759
- handleColor?: string;
760
- backdropOpacity?: number;
761
- contentScaleWhenOpen?: number;
762
- handleBarColor?: string;
763
- handleBarWidth?: number;
764
- }
765
- declare const LeftDrawerLayout: React.FC<LeftDrawerLayoutProps>;
766
-
767
- /**
768
- * MasonryLayout
769
- *
770
- * Multi-column masonry grid with alternating item distribution.
771
- * Supports scrolling, directional padding, and custom backgrounds.
772
- */
773
-
774
- interface MasonryLayoutProps {
775
- items?: React.ReactNode[];
776
- children?: React.ReactNode | React.ReactNode[];
777
- columns?: number;
778
- spacing?: SpacingToken;
779
- maxWidth?: number;
780
- scrollable?: boolean;
781
- background?: string;
782
- borderRadius?: RadiusToken;
783
- itemBackground?: string;
784
- itemBorderRadius?: RadiusToken;
785
- padding?: LayoutPadding;
786
- }
787
- declare const MasonryLayout: React.FC<MasonryLayoutProps>;
788
-
789
- /**
790
- * ParallaxLayout
791
- *
792
- * Horizontally scrollable rows with parallax synchronization.
793
- * Items are distributed into `rowCount` rows automatically.
794
- * All rows scroll in sync — odd rows scroll in reverse when alternateDirection is true.
795
- * Item cells adapt to their content height (no fixed height).
796
- */
797
-
798
- type SpacingKey = keyof typeof spacing;
799
- interface ParallaxLayoutProps {
800
- /** Flat list of items — distributed into rowCount rows automatically */
801
- items?: React.ReactNode[];
802
- children?: React.ReactNode | React.ReactNode[];
803
- /** Number of rows to distribute items into (default: 3) */
804
- rowCount?: number;
805
- /** Width of each item cell in px (default: 200) */
806
- itemWidth?: number;
807
- /** Vertical spacing between rows */
808
- spacing?: SpacingKey;
809
- /** Horizontal gap between items within a row (default: 12) */
810
- itemSpacing?: number;
811
- /** Alternate scroll direction on odd rows */
812
- alternateDirection?: boolean;
813
- /** Container background */
814
- background?: string;
815
- /** Background color for each row strip */
816
- rowBackground?: string;
817
- /** Background color for each item cell */
818
- itemBackground?: string;
819
- /** Border radius for each item cell */
820
- itemBorderRadius?: RadiusToken;
821
- /** Border radius for each row strip */
822
- rowBorderRadius?: RadiusToken;
823
- /** Enable scroll bounce (default: false) */
824
- bounces?: boolean;
825
- /** Show horizontal scroll indicator (default: false) */
826
- showScrollIndicator?: boolean;
827
- /** Scroll event throttle in ms (default: 16) */
828
- scrollEventThrottle?: number;
829
- }
830
- declare const ParallaxLayout: React.FC<ParallaxLayoutProps>;
831
-
832
- /**
833
- * ResponsiveLayout
834
- *
835
- * Adaptive layout with header, sidebar, content, and footer.
836
- * Three modes: basic, sidebar, full — adapts to the current breakpoint.
837
- */
838
-
839
- interface ResponsiveLayoutProps {
840
- header?: React.ReactNode;
841
- sidebar?: React.ReactNode;
842
- content: React.ReactNode;
843
- footer?: React.ReactNode;
844
- spacing?: SpacingToken;
845
- headerHeight?: number;
846
- sidebarWidth?: number;
847
- footerHeight?: number;
848
- adaptiveMode?: 'basic' | 'sidebar' | 'full';
849
- hideHeader?: boolean;
850
- hideFooter?: boolean;
851
- collapseFooterOnTablet?: boolean;
852
- background?: string;
853
- borderRadius?: RadiusToken;
854
- headerBackground?: string;
855
- sidebarBackground?: string;
856
- footerBackground?: string;
857
- contentBackground?: string;
858
- padding?: LayoutPadding;
859
- contentPadding?: LayoutPadding;
860
- mobileHeaderHeight?: number;
861
- tabletFooterHeight?: number;
862
- sidebarMaxWidth?: number;
863
- }
864
- declare const ResponsiveLayout: React.FC<ResponsiveLayoutProps>;
865
-
866
- /**
867
- * ScrollLayout
868
- *
869
- * Scrollable structure with optional sticky or inline header/footer.
870
- * Handles safe area insets and scroll direction configuration.
871
- */
872
-
873
- interface ScrollLayoutProps {
874
- header?: React.ReactNode;
875
- content: React.ReactNode;
876
- footer?: React.ReactNode;
877
- spacing?: SpacingToken;
878
- useSafeAreaInsets?: boolean;
879
- headerHeight?: number;
880
- footerHeight?: number;
881
- scrollDirection?: "vertical" | "horizontal" | "both";
882
- showScrollIndicator?: boolean;
883
- enableBounces?: boolean;
884
- stickyHeader?: boolean;
885
- stickyFooter?: boolean;
886
- background?: string;
887
- borderRadius?: RadiusToken;
888
- headerBackground?: string;
889
- footerBackground?: string;
890
- contentBackground?: string;
891
- headerPadding?: SpacingToken;
892
- footerPadding?: SpacingToken;
893
- mobileHeaderHeight?: number;
894
- mobileFooterHeight?: number;
895
- }
896
- declare const ScrollLayout: React.FC<ScrollLayoutProps>;
897
-
898
- /**
899
- * SidebarLayout
900
- *
901
- * Main content with a lateral sidebar (left or right).
902
- * Collapsible on mobile, resizable on web/desktop. Supports gradient backgrounds.
903
- */
904
-
905
- interface SidebarLayoutProps {
906
- sidebar: React.ReactNode;
907
- content: React.ReactNode;
908
- sidebarWidth?: number;
909
- position?: "left" | "right";
910
- collapsible?: boolean;
911
- spacing?: SpacingToken;
912
- maxWidth?: number;
913
- scrollable?: boolean;
914
- background?: LayoutBackground;
915
- borderRadius?: RadiusToken;
916
- sidebarBackground?: LayoutBackground;
917
- sidebarBorderRadius?: RadiusToken;
918
- padding?: LayoutPadding;
919
- resizable?: boolean;
920
- sidebarMinWidth?: number;
921
- sidebarMaxWidth?: number;
922
- }
923
- declare const SidebarLayout: React.FC<SidebarLayoutProps>;
924
-
925
- /**
926
- * SketchLayout
927
- *
928
- * Placeholder for a drawing canvas layout.
929
- * Currently displays a placeholder message; intended for future implementation.
930
- */
931
-
932
- interface SketchLayoutProps {
933
- background?: string;
934
- }
935
- declare const SketchLayout: React.FC<SketchLayoutProps>;
936
-
937
- /**
938
- * SplitLayout
939
- *
940
- * Splits the screen into two panels (left/right or top/bottom).
941
- * Each panel has its own scroll area.
942
- */
943
-
944
- interface SplitLayoutProps {
945
- left: React.ReactNode;
946
- right: React.ReactNode;
947
- spacing?: SpacingToken;
948
- leftWidth?: number;
949
- ratio?: number;
950
- orientation?: "horizontal" | "vertical";
951
- hideLeftOnMobile?: boolean;
952
- background?: string;
953
- borderRadius?: RadiusToken;
954
- leftBackground?: string;
955
- rightBackground?: string;
956
- leftBorderRadius?: RadiusToken;
957
- rightBorderRadius?: RadiusToken;
958
- }
959
- declare const SplitLayout: React.FC<SplitLayoutProps>;
960
-
961
- /**
962
- * SwiperLayout
963
- *
964
- * Multi-directional swipeable carousel with adjacent card preloading.
965
- * Supports left/right/up/down swipe gestures for smooth transitions.
966
- */
967
-
968
- interface SwiperLayoutProps {
969
- items?: React.ReactNode[];
970
- slides?: React.ReactNode[];
971
- children?: React.ReactNode | React.ReactNode[];
972
- onSwipeLeft?: (index: number) => void;
973
- onSwipeRight?: (index: number) => void;
974
- onSwipeUp?: (index: number) => void;
975
- onSwipeDown?: (index: number) => void;
976
- cardStyle?: ViewStyle;
977
- springDamping?: number;
978
- springStiffness?: number;
979
- enableSwipeUp?: boolean;
980
- enableSwipeDown?: boolean;
981
- maxWidth?: number;
982
- background?: string;
983
- borderRadius?: RadiusToken;
984
- cardBackground?: string;
985
- cardBorderRadius?: RadiusToken;
986
- showCardCount?: boolean;
987
- preloadRange?: number;
988
- swipeThreshold?: number;
989
- padding?: LayoutPadding;
990
- cardCountBackground?: string;
991
- cardCountTextColor?: string;
992
- }
993
- declare const SwiperLayout: React.FC<SwiperLayoutProps>;
994
-
995
- /**
996
- * Swipe2ScreenLayout
997
- *
998
- * Swipe-to-project layout with camera-based QR pairing and lock mode.
999
- * Slides can be swiped up to project and pulled down to dismiss.
1000
- */
1001
-
1002
- interface Slide {
1003
- content: React.ReactNode;
1004
- }
1005
- interface Swipe2ScreenLayoutProps {
1006
- slides?: Slide[];
1007
- containerBackground?: string;
1008
- screenBackground?: string;
1009
- swipeThreshold?: number;
1010
- projectedScale?: number;
1011
- animationDuration?: number;
1012
- }
1013
- declare const Swipe2ScreenLayout: React.FC<Swipe2ScreenLayoutProps>;
1014
-
1015
- /**
1016
- * SystemLayout
1017
- *
1018
- * Root-level wrapper that manages status bar, navigation bar, and safe area insets.
1019
- * Handles platform-specific system UI configuration including Android navigation bar styling.
1020
- */
1021
-
1022
- interface SystemUIWrapperProps {
1023
- children: React.ReactNode;
1024
- rootBackgroundColor?: string | string[];
1025
- statusBarContentStyle?: 'light' | 'dark' | 'auto';
1026
- navigationBarContentStyle?: 'light' | 'dark';
1027
- navigationBarReferenceColor?: string;
1028
- edges?: ('top' | 'bottom' | 'left' | 'right')[];
1029
- style?: ViewStyle;
1030
- }
1031
- declare const SystemUIWrapper: React.FC<SystemUIWrapperProps>;
1032
-
1033
- /**
1034
- * TopDrawerLayout
1035
- *
1036
- * Animated top drawer with pan gesture and haptic feedback.
1037
- * Supports imperative control via ref (open/close/toggle).
1038
- */
1039
-
1040
- interface TopDrawerHandle {
1041
- open: () => void;
1042
- close: () => void;
1043
- toggle: () => void;
1044
- isOpen: () => boolean;
1045
- }
1046
- interface TopDrawerLayoutProps {
1047
- content: React.ReactNode;
1048
- drawerContent: React.ReactNode;
1049
- drawerHeight?: number;
1050
- maxWidth?: number;
1051
- scrollable?: boolean;
1052
- drawerBackground?: string;
1053
- drawerBorderRadius?: RadiusToken;
1054
- background?: string;
1055
- borderRadius?: RadiusToken;
1056
- defaultOpen?: boolean;
1057
- onToggle?: (isOpen: boolean) => void;
1058
- handleColor?: string;
1059
- backdropOpacity?: number;
1060
- contentScaleWhenOpen?: number;
1061
- closeButtonBackground?: string;
1062
- closeButtonSize?: number;
1063
- closeButtonBorderColor?: string;
1064
- closeButtonTextColor?: string;
1065
- }
1066
- declare const TopDrawerLayout: React.ForwardRefExoticComponent<TopDrawerLayoutProps & React.RefAttributes<TopDrawerHandle>>;
1067
-
1068
- /**
1069
- * TutoLayout
1070
- *
1071
- * Step-by-step tutorial overlay with highlight zones, gesture detection, and animated transitions.
1072
- * Supports manual and ref-based zone positioning, multiple gesture types, and auto-advance.
1073
- */
1074
-
1075
- type TutoZoneShape = 'circle' | 'rect' | 'pill';
1076
- type TutoGesture = 'swipe-left' | 'swipe-right' | 'swipe-up' | 'swipe-down' | 'tap' | 'double-tap' | 'long-press' | 'pinch' | 'rotate';
1077
- type TutoLabelPosition = 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
1078
- interface TutoZoneManual {
1079
- id: string;
1080
- x: number;
1081
- y: number;
1082
- width: number;
1083
- height: number;
1084
- unit?: 'px' | '%';
1085
- shape?: TutoZoneShape;
1086
- color?: string;
1087
- gesture?: TutoGesture;
1088
- label?: string;
1089
- labelPosition?: TutoLabelPosition;
1090
- delay?: number;
1091
- }
1092
- interface TutoZoneRef {
1093
- id: string;
1094
- ref: React.RefObject<View | null>;
1095
- padding?: number;
1096
- shape?: TutoZoneShape;
1097
- color?: string;
1098
- gesture?: TutoGesture;
1099
- label?: string;
1100
- labelPosition?: TutoLabelPosition;
1101
- delay?: number;
1102
- }
1103
- type TutoZone = TutoZoneManual | TutoZoneRef;
1104
- interface TutoStep {
1105
- zones: TutoZone[];
1106
- title?: string;
1107
- description?: string;
1108
- textPosition?: 'top' | 'bottom' | 'center';
1109
- autoDuration?: number;
1110
- }
1111
- interface TutoLayoutProps {
1112
- steps?: TutoStep[];
1113
- children?: React.ReactNode;
1114
- visible?: boolean;
1115
- onFinish?: () => void;
1116
- onStepChange?: (index: number) => void;
1117
- overlayOpacity?: number;
1118
- overlayColor?: string;
1119
- showSkip?: boolean;
1120
- nextLabel?: string;
1121
- finishLabel?: string;
1122
- accentColor?: string;
1123
- textBackground?: string;
1124
- textColor?: string;
1125
- mutedTextColor?: string;
1126
- }
1127
- declare const useTutoRef: () => React.RefObject<View | null>;
1128
- declare const TutoLayout: React.FC<TutoLayoutProps>;
1129
-
1130
- /**
1131
- * VoidLayout
1132
- *
1133
- * Minimal, unopinionated container with optional scroll, padding, maxWidth, and centering.
1134
- * Ideal as a neutral base layout.
1135
- */
1136
-
1137
- interface VoidLayoutProps {
1138
- children: React.ReactNode;
1139
- maxWidth?: number;
1140
- scrollable?: boolean;
1141
- background?: string;
1142
- borderRadius?: RadiusToken;
1143
- padding?: LayoutPadding;
1144
- spacing?: SpacingToken;
1145
- centerContent?: boolean;
1146
- showBorder?: boolean;
1147
- }
1148
- declare const VoidLayout: React.FC<VoidLayoutProps>;
1149
-
1150
- /**
1151
- * Button
1152
- *
1153
- * Pressable button with variant, size, loading, and icon support.
1154
- * All defaults and variants come from the component registry.
1155
- */
1156
-
1157
- interface ButtonProps {
1158
- children?: React.ReactNode;
1159
- label?: string;
1160
- icon?: React.ReactNode;
1161
- variant?: "primary" | "secondary" | "outline" | "ghost" | "destructive";
1162
- size?: "sm" | "md" | "lg";
1163
- disabled?: boolean;
1164
- loading?: boolean;
1165
- fullWidth?: boolean;
1166
- borderRadius?: RadiusToken;
1167
- iconPosition?: "left" | "right";
1168
- onPress?: () => void;
1169
- }
1170
- declare const Button: React.FC<ButtonProps>;
1171
-
1172
- /**
1173
- * TextInput
1174
- *
1175
- * Single-line text input with label, error state, and variant support.
1176
- * All defaults come from the component registry.
1177
- */
1178
-
1179
- interface TextInputProps {
1180
- value?: string;
1181
- onChangeText?: (text: string) => void;
1182
- variant?: "outlined" | "filled" | "underline";
1183
- size?: "sm" | "md" | "lg";
1184
- placeholder?: string;
1185
- label?: string;
1186
- error?: string;
1187
- disabled?: boolean;
1188
- secureEntry?: boolean;
1189
- borderRadius?: RadiusToken;
1190
- background?: string;
1191
- borderColor?: string;
1192
- icon?: React.ReactNode;
1193
- }
1194
- declare const TextInputComponent: React.FC<TextInputProps>;
1195
-
1196
- /**
1197
- * TextArea — Multi-line text input with label and error support.
1198
- */
1199
-
1200
- interface TextAreaProps {
1201
- value?: string;
1202
- onChangeText?: (t: string) => void;
1203
- variant?: "outlined" | "filled";
1204
- size?: "sm" | "md" | "lg";
1205
- placeholder?: string;
1206
- label?: string;
1207
- error?: string;
1208
- disabled?: boolean;
1209
- numberOfLines?: number;
1210
- borderRadius?: string;
1211
- background?: string;
1212
- children?: React.ReactNode;
1213
- }
1214
- declare const TextArea: React.FC<TextAreaProps>;
1215
-
1216
- /**
1217
- * Checkbox — Toggle checkbox with label.
1218
- */
1219
-
1220
- interface CheckboxProps {
1221
- checked?: boolean;
1222
- onChange?: (v: boolean) => void;
1223
- variant?: "square" | "rounded";
1224
- size?: "sm" | "md";
1225
- disabled?: boolean;
1226
- label?: string;
1227
- activeColor?: string;
1228
- children?: React.ReactNode;
1229
- }
1230
- declare const Checkbox: React.FC<CheckboxProps>;
1231
-
1232
- /**
1233
- * Switch — Toggle switch with label.
1234
- */
1235
-
1236
- interface SwitchProps {
1237
- value?: boolean;
1238
- onChange?: (v: boolean) => void;
1239
- size?: "sm" | "md";
1240
- disabled?: boolean;
1241
- label?: string;
1242
- activeColor?: string;
1243
- trackColor?: string;
1244
- children?: React.ReactNode;
1245
- }
1246
- declare const SwitchComponent: React.FC<SwitchProps>;
1247
-
1248
- /**
1249
- * Badge — Small status indicator or label.
1250
- */
1251
-
1252
- interface BadgeProps {
1253
- children?: React.ReactNode;
1254
- label?: string;
1255
- variant?: "solid" | "outline" | "subtle";
1256
- size?: "sm" | "md";
1257
- color?: string;
1258
- borderRadius?: string;
1259
- }
1260
- declare const Badge: React.FC<BadgeProps>;
1261
-
1262
- /**
1263
- * Avatar — User avatar with image, initials, or icon fallback.
1264
- */
1265
-
1266
- interface AvatarProps {
1267
- source?: string;
1268
- initials?: string;
1269
- variant?: "circle" | "square";
1270
- size?: "xs" | "sm" | "md" | "lg" | "xl";
1271
- background?: string;
1272
- children?: React.ReactNode;
1273
- }
1274
- declare const Avatar: React.FC<AvatarProps>;
1275
-
1276
- /**
1277
- * IconButton — Pressable icon-only button.
1278
- */
1279
-
1280
- interface IconButtonProps {
1281
- children?: React.ReactNode;
1282
- icon?: React.ReactNode;
1283
- variant?: "filled" | "ghost" | "outline";
1284
- size?: "sm" | "md" | "lg";
1285
- disabled?: boolean;
1286
- borderRadius?: string;
1287
- color?: string;
1288
- onPress?: () => void;
1289
- }
1290
- declare const IconButton: React.FC<IconButtonProps>;
1291
-
1292
- /**
1293
- * Chip — Selectable chip/tag with optional close action.
1294
- */
1295
-
1296
- interface ChipProps {
1297
- children?: React.ReactNode;
1298
- label?: string;
1299
- variant?: "filled" | "outline";
1300
- size?: "sm" | "md";
1301
- selected?: boolean;
1302
- closable?: boolean;
1303
- disabled?: boolean;
1304
- borderRadius?: string;
1305
- onPress?: () => void;
1306
- onClose?: () => void;
1307
- }
1308
- declare const Chip: React.FC<ChipProps>;
1309
-
1310
- /**
1311
- * Spinner — Loading indicator.
1312
- */
1313
-
1314
- interface SpinnerProps {
1315
- size?: "sm" | "md" | "lg";
1316
- color?: string;
1317
- children?: React.ReactNode;
1318
- }
1319
- declare const Spinner: React.FC<SpinnerProps>;
1320
-
1321
- /**
1322
- * Select — Dropdown select input (simplified for RN).
1323
- */
1324
-
1325
- interface SelectProps {
1326
- value?: string;
1327
- options?: {
1328
- label: string;
1329
- value: string;
1330
- }[];
1331
- onChange?: (v: string) => void;
1332
- variant?: "outlined" | "filled";
1333
- size?: "sm" | "md" | "lg";
1334
- label?: string;
1335
- placeholder?: string;
1336
- error?: string;
1337
- disabled?: boolean;
1338
- borderRadius?: string;
1339
- background?: string;
1340
- children?: React.ReactNode;
1341
- }
1342
- declare const Select: React.FC<SelectProps>;
1343
-
1344
- /**
1345
- * RadioGroup — Group of radio buttons for single selection.
1346
- */
1347
-
1348
- interface RadioGroupProps {
1349
- value?: string;
1350
- options?: {
1351
- label: string;
1352
- value: string;
1353
- }[];
1354
- onChange?: (v: string) => void;
1355
- size?: "sm" | "md";
1356
- label?: string;
1357
- direction?: "column" | "row";
1358
- spacing?: number;
1359
- disabled?: boolean;
1360
- activeColor?: string;
1361
- children?: React.ReactNode;
1362
- }
1363
- declare const RadioGroup: React.FC<RadioGroupProps>;
1364
-
1365
- /**
1366
- * DatePicker — Date/time picker input (simplified for RN).
1367
- */
1368
-
1369
- interface DatePickerProps {
1370
- value?: string;
1371
- onChange?: (v: string) => void;
1372
- mode?: "date" | "time" | "datetime";
1373
- size?: "sm" | "md" | "lg";
1374
- label?: string;
1375
- placeholder?: string;
1376
- error?: string;
1377
- disabled?: boolean;
1378
- borderRadius?: string;
1379
- children?: React.ReactNode;
1380
- }
1381
- declare const DatePicker: React.FC<DatePickerProps>;
1382
-
1383
- /**
1384
- * FilePicker — File/image upload input.
1385
- */
1386
-
1387
- interface FilePickerProps {
1388
- variant?: "button" | "dropzone";
1389
- size?: "sm" | "md" | "lg";
1390
- accept?: string;
1391
- multiple?: boolean;
1392
- label?: string;
1393
- disabled?: boolean;
1394
- borderRadius?: string;
1395
- onPick?: () => void;
1396
- children?: React.ReactNode;
1397
- }
1398
- declare const FilePicker: React.FC<FilePickerProps>;
1399
-
1400
- /**
1401
- * Slider — Range slider input (simplified for RN web).
1402
- */
1403
-
1404
- interface SliderProps {
1405
- value?: number;
1406
- onChange?: (v: number) => void;
1407
- size?: "sm" | "md";
1408
- min?: number;
1409
- max?: number;
1410
- step?: number;
1411
- label?: string;
1412
- showValue?: boolean;
1413
- disabled?: boolean;
1414
- activeColor?: string;
1415
- children?: React.ReactNode;
1416
- }
1417
- declare const Slider: React.FC<SliderProps>;
1418
-
1419
- /**
1420
- * Image — Image component with source, resize mode, and placeholder.
1421
- */
1422
-
1423
- interface ImageCompProps {
1424
- source?: string;
1425
- alt?: string;
1426
- resizeMode?: "cover" | "contain" | "stretch" | "center";
1427
- width?: number;
1428
- height?: number;
1429
- borderRadius?: string;
1430
- background?: string;
1431
- children?: React.ReactNode;
1432
- }
1433
- declare const ImageComp: React.FC<ImageCompProps>;
1434
-
1435
- /**
1436
- * Icon — Vector icon from Feather icon set.
1437
- */
1438
-
1439
- interface IconCompProps {
1440
- name?: string;
1441
- size?: number;
1442
- color?: string;
1443
- children?: React.ReactNode;
1444
- }
1445
- declare const IconComp: React.FC<IconCompProps>;
1446
-
1447
- /**
1448
- * Gradient — Linear gradient background container.
1449
- */
1450
-
1451
- interface GradientCompProps {
1452
- children?: React.ReactNode;
1453
- startColor?: string;
1454
- endColor?: string;
1455
- direction?: "vertical" | "horizontal" | "diagonal";
1456
- borderRadius?: string;
1457
- height?: number;
1458
- padding?: number;
1459
- }
1460
- declare const GradientComp: React.FC<GradientCompProps>;
1461
-
1462
- /**
1463
- * Separator — Visual separator with optional label.
1464
- */
1465
-
1466
- interface SeparatorCompProps {
1467
- label?: string;
1468
- color?: string;
1469
- thickness?: number;
1470
- spacing?: number;
1471
- children?: React.ReactNode;
1472
- }
1473
- declare const SeparatorComp: React.FC<SeparatorCompProps>;
1474
-
1475
- /**
1476
- * Text — Text display component with typography control.
1477
- */
1478
-
1479
- interface TextCompProps {
1480
- text?: string;
1481
- fontSize?: number;
1482
- fontWeight?: string;
1483
- color?: string;
1484
- textAlign?: "left" | "center" | "right";
1485
- numberOfLines?: number;
1486
- children?: React.ReactNode;
1487
- }
1488
- declare const TextComp: React.FC<TextCompProps>;
1489
-
1490
- /**
1491
- * Video — Video player placeholder (uses expo-av at runtime).
1492
- */
1493
-
1494
- interface VideoCompProps {
1495
- source?: string;
1496
- poster?: string;
1497
- autoplay?: boolean;
1498
- loop?: boolean;
1499
- muted?: boolean;
1500
- controls?: boolean;
1501
- resizeMode?: string;
1502
- width?: number;
1503
- height?: number;
1504
- borderRadius?: string;
1505
- children?: React.ReactNode;
1506
- }
1507
- declare const VideoComp: React.FC<VideoCompProps>;
1508
-
1509
- /**
1510
- * Camera — Camera viewfinder placeholder (uses expo-camera at runtime).
1511
- */
1512
-
1513
- interface CameraCompProps {
1514
- facing?: string;
1515
- flash?: string;
1516
- enableTorch?: boolean;
1517
- width?: number;
1518
- height?: number;
1519
- borderRadius?: string;
1520
- children?: React.ReactNode;
1521
- }
1522
- declare const CameraComp: React.FC<CameraCompProps>;
1523
-
1524
- /**
1525
- * WebView — Embedded web browser placeholder.
1526
- */
1527
-
1528
- interface WebViewCompProps {
1529
- url?: string;
1530
- width?: number;
1531
- height?: number;
1532
- scrollEnabled?: boolean;
1533
- borderRadius?: string;
1534
- children?: React.ReactNode;
1535
- }
1536
- declare const WebViewComp: React.FC<WebViewCompProps>;
1537
-
1538
- /**
1539
- * MapView — Interactive map placeholder (uses react-native-maps at runtime).
1540
- */
1541
-
1542
- interface MapViewCompProps {
1543
- latitude?: number;
1544
- longitude?: number;
1545
- zoom?: number;
1546
- width?: number;
1547
- height?: number;
1548
- borderRadius?: string;
1549
- showsUserLocation?: boolean;
1550
- children?: React.ReactNode;
1551
- }
1552
- declare const MapViewComp: React.FC<MapViewCompProps>;
1553
-
1554
- /**
1555
- * ProgressBar — Horizontal progress indicator.
1556
- */
1557
-
1558
- interface ProgressBarProps {
1559
- progress?: number;
1560
- size?: "sm" | "md";
1561
- color?: string;
1562
- trackColor?: string;
1563
- borderRadius?: string;
1564
- showLabel?: boolean;
1565
- children?: React.ReactNode;
1566
- }
1567
- declare const ProgressBar: React.FC<ProgressBarProps>;
1568
-
1569
- /**
1570
- * Accordion — Expandable/collapsible content section.
1571
- */
1572
-
1573
- interface AccordionProps {
1574
- children?: React.ReactNode;
1575
- title?: string;
1576
- defaultOpen?: boolean;
1577
- background?: string;
1578
- borderRadius?: string;
1579
- borderColor?: string;
1580
- }
1581
- declare const Accordion: React.FC<AccordionProps>;
1582
-
1583
- /**
1584
- * AuthFormBlock
1585
- *
1586
- * Login/signup form combining TextInput and Button components.
1587
- * Supports login, signup, and forgot-password modes.
1588
- */
1589
-
1590
- interface AuthFormBlockProps {
1591
- mode?: "login" | "signup" | "forgot";
1592
- showRemember?: boolean;
1593
- showForgot?: boolean;
1594
- spacing?: SpacingToken;
1595
- background?: string;
1596
- borderRadius?: RadiusToken;
1597
- padding?: SpacingToken;
1598
- buttonVariant?: "primary" | "secondary" | "outline";
1599
- inputVariant?: "outlined" | "filled" | "underline";
1600
- header?: React.ReactNode;
1601
- footer?: React.ReactNode;
1602
- social?: React.ReactNode[];
1603
- onSubmit?: (data: {
1604
- email: string;
1605
- password: string;
1606
- name?: string;
1607
- }) => void;
1608
- onForgotPassword?: () => void;
1609
- }
1610
- declare const AuthFormBlock: React.FC<AuthFormBlockProps>;
1611
-
1612
- /**
1613
- * HeaderBlock
1614
- *
1615
- * Top navigation bar with title, optional back/left action, and right actions.
1616
- */
1617
-
1618
- interface HeaderBlockProps {
1619
- title: React.ReactNode;
1620
- left?: React.ReactNode;
1621
- right?: React.ReactNode[];
1622
- height?: number;
1623
- background?: string;
1624
- borderBottom?: boolean;
1625
- padding?: SpacingToken;
1626
- transparent?: boolean;
1627
- }
1628
- declare const HeaderBlock: React.FC<HeaderBlockProps>;
1629
-
1630
- /**
1631
- * FormBlock — Form container with submit button and optional reset.
1632
- */
1633
-
1634
- interface FormBlockProps {
1635
- children?: React.ReactNode;
1636
- header?: React.ReactNode;
1637
- footer?: React.ReactNode;
1638
- spacing?: number;
1639
- padding?: number;
1640
- background?: string;
1641
- borderRadius?: string;
1642
- showReset?: boolean;
1643
- submitLabel?: string;
1644
- submitVariant?: string;
1645
- validateOnBlur?: boolean;
1646
- onSubmit?: () => void;
1647
- onReset?: () => void;
1648
- }
1649
- declare const FormBlock: React.FC<FormBlockProps>;
1650
-
1651
- /**
1652
- * CardBlock — Content card with optional media, title, description, and actions.
1653
- */
1654
-
1655
- interface CardBlockProps {
1656
- children?: React.ReactNode;
1657
- media?: React.ReactNode;
1658
- actions?: React.ReactNode;
1659
- padding?: number;
1660
- spacing?: number;
1661
- background?: string;
1662
- borderRadius?: string;
1663
- shadow?: string;
1664
- pressable?: boolean;
1665
- }
1666
- declare const CardBlock: React.FC<CardBlockProps>;
1667
-
1668
- /**
1669
- * ListItemBlock — Standard list row with leading, title, subtitle, and trailing.
1670
- */
1671
-
1672
- interface ListItemBlockProps {
1673
- children?: React.ReactNode;
1674
- leading?: React.ReactNode;
1675
- trailing?: React.ReactNode;
1676
- title?: string;
1677
- subtitle?: string;
1678
- height?: number;
1679
- spacing?: number;
1680
- showDivider?: boolean;
1681
- pressable?: boolean;
1682
- background?: string;
1683
- padding?: number;
1684
- onPress?: () => void;
1685
- }
1686
- declare const ListItemBlock: React.FC<ListItemBlockProps>;
1687
-
1688
- /**
1689
- * SearchBarBlock — Search input with icon and optional filter button.
1690
- */
1691
-
1692
- interface SearchBarBlockProps {
1693
- children?: React.ReactNode;
1694
- filters?: React.ReactNode;
1695
- value?: string;
1696
- onChangeText?: (t: string) => void;
1697
- placeholder?: string;
1698
- background?: string;
1699
- borderRadius?: string;
1700
- showFilter?: boolean;
1701
- inputVariant?: string;
1702
- }
1703
- declare const SearchBarBlock: React.FC<SearchBarBlockProps>;
1704
-
1705
- /**
1706
- * StatCardBlock — Metric card with value, label, and trend indicator.
1707
- */
1708
-
1709
- interface StatCardBlockProps {
1710
- children?: React.ReactNode;
1711
- icon?: React.ReactNode;
1712
- value?: string;
1713
- label?: string;
1714
- trend?: string;
1715
- trendUp?: boolean;
1716
- background?: string;
1717
- borderRadius?: string;
1718
- padding?: number;
1719
- showTrend?: boolean;
1720
- shadow?: string;
1721
- }
1722
- declare const StatCardBlock: React.FC<StatCardBlockProps>;
1723
-
1724
- /**
1725
- * EmptyStateBlock — Placeholder for empty lists with icon, title, description, and action.
1726
- */
1727
-
1728
- interface EmptyStateBlockProps {
1729
- children?: React.ReactNode;
1730
- illustration?: React.ReactNode;
1731
- title?: string;
1732
- description?: string;
1733
- spacing?: number;
1734
- showAction?: boolean;
1735
- actionVariant?: string;
1736
- actionLabel?: string;
1737
- onAction?: () => void;
1738
- }
1739
- declare const EmptyStateBlock: React.FC<EmptyStateBlockProps>;
1740
-
1741
- /**
1742
- * AvatarBlock — Avatar with name, subtitle, and optional action.
1743
- */
1744
-
1745
- interface AvatarBlockProps {
1746
- children?: React.ReactNode;
1747
- action?: React.ReactNode;
1748
- name?: string;
1749
- subtitle?: string;
1750
- source?: string;
1751
- initials?: string;
1752
- size?: string;
1753
- direction?: "row" | "column";
1754
- spacing?: number;
1755
- showSubtitle?: boolean;
1756
- }
1757
- declare const AvatarBlock: React.FC<AvatarBlockProps>;
1758
-
1759
- /**
1760
- * ModalBlock — Modal overlay with content, close button, and backdrop.
1761
- */
1762
-
1763
- interface ModalBlockProps {
1764
- children?: React.ReactNode;
1765
- footer?: React.ReactNode;
1766
- padding?: number;
1767
- background?: string;
1768
- borderRadius?: string;
1769
- maxWidth?: number;
1770
- showClose?: boolean;
1771
- backdropClose?: boolean;
1772
- onClose?: () => void;
1773
- }
1774
- declare const ModalBlock: React.FC<ModalBlockProps>;
1775
-
1776
- /**
1777
- * ToastBlock — Notification toast with icon, message, and auto-dismiss.
1778
- */
1779
-
1780
- interface ToastBlockProps {
1781
- children?: React.ReactNode;
1782
- message?: string;
1783
- type?: "info" | "success" | "warning" | "error";
1784
- position?: "top" | "bottom";
1785
- duration?: number;
1786
- showIcon?: boolean;
1787
- dismissible?: boolean;
1788
- borderRadius?: string;
1789
- onDismiss?: () => void;
1790
- }
1791
- declare const ToastBlock: React.FC<ToastBlockProps>;
1792
-
1793
- /**
1794
- * SocialLinksBlock — Row of social network icon buttons with optional labels.
1795
- * Supports onPress per platform, customizable size, layout direction, and colors.
1796
- */
1797
-
1798
- type SocialPlatform = "twitter" | "instagram" | "facebook" | "linkedin" | "github" | "youtube" | "tiktok" | "discord" | "website" | "email";
1799
- interface SocialLink {
1800
- platform: SocialPlatform;
1801
- url: string;
1802
- label?: string;
1803
- }
1804
- interface SocialLinksBlockProps {
1805
- links?: SocialLink[];
1806
- direction?: "row" | "column";
1807
- size?: "sm" | "md" | "lg";
1808
- variant?: "icon" | "icon-label" | "label";
1809
- spacing?: number;
1810
- color?: string;
1811
- background?: string;
1812
- borderRadius?: string;
1813
- showLabels?: boolean;
1814
- onPress?: (platform: SocialPlatform, url: string) => void;
1815
- }
1816
- declare const SocialLinksBlock: React.FC<SocialLinksBlockProps>;
1817
-
1818
- /**
1819
- * ProductCardBlock — E-commerce product card with image, name, price, rating, and add-to-cart.
1820
- */
1821
-
1822
- interface ProductCardBlockProps {
1823
- name?: string;
1824
- price?: string;
1825
- originalPrice?: string;
1826
- imageUrl?: string;
1827
- rating?: number;
1828
- reviewCount?: number;
1829
- badge?: string;
1830
- inStock?: boolean;
1831
- background?: string;
1832
- borderRadius?: string;
1833
- padding?: number;
1834
- shadow?: string;
1835
- onPress?: () => void;
1836
- onAddToCart?: () => void;
1837
- onWishlist?: () => void;
1838
- }
1839
- declare const ProductCardBlock: React.FC<ProductCardBlockProps>;
1840
-
1841
- /**
1842
- * NotificationItemBlock — Notification row with icon, title, body, timestamp, and read state.
1843
- */
1844
-
1845
- interface NotificationItemBlockProps {
1846
- title?: string;
1847
- body?: string;
1848
- timestamp?: string;
1849
- read?: boolean;
1850
- iconName?: string;
1851
- iconColor?: string;
1852
- background?: string;
1853
- padding?: number;
1854
- showDivider?: boolean;
1855
- pressable?: boolean;
1856
- onPress?: () => void;
1857
- onDismiss?: () => void;
1858
- }
1859
- declare const NotificationItemBlock: React.FC<NotificationItemBlockProps>;
1860
-
1861
- /**
1862
- * PricingCardBlock — Pricing plan card with features list, price, and CTA.
1863
- */
1864
-
1865
- interface PricingCardBlockProps {
1866
- planName?: string;
1867
- price?: string;
1868
- period?: string;
1869
- description?: string;
1870
- features?: string[];
1871
- ctaLabel?: string;
1872
- highlighted?: boolean;
1873
- background?: string;
1874
- accentColor?: string;
1875
- borderRadius?: string;
1876
- padding?: number;
1877
- spacing?: number;
1878
- shadow?: string;
1879
- onPress?: () => void;
1880
- }
1881
- declare const PricingCardBlock: React.FC<PricingCardBlockProps>;
1882
-
1883
- /**
1884
- * TransactionItemBlock — Financial transaction row with icon, merchant, amount, date, and status.
1885
- */
1886
-
1887
- interface TransactionItemBlockProps {
1888
- merchant?: string;
1889
- category?: string;
1890
- amount?: string;
1891
- date?: string;
1892
- type?: "debit" | "credit";
1893
- status?: "completed" | "pending" | "failed";
1894
- iconName?: string;
1895
- iconColor?: string;
1896
- background?: string;
1897
- padding?: number;
1898
- showDivider?: boolean;
1899
- }
1900
- declare const TransactionItemBlock: React.FC<TransactionItemBlockProps>;
1901
-
1902
- /**
1903
- * OnboardingSlideBlock — Single onboarding slide with illustration, title, description, and dots.
1904
- */
1905
-
1906
- interface OnboardingSlideBlockProps {
1907
- title?: string;
1908
- description?: string;
1909
- illustration?: React.ReactNode;
1910
- totalSlides?: number;
1911
- currentSlide?: number;
1912
- ctaLabel?: string;
1913
- skipLabel?: string;
1914
- accentColor?: string;
1915
- background?: string;
1916
- padding?: number;
1917
- onNext?: () => void;
1918
- onSkip?: () => void;
1919
- }
1920
- declare const OnboardingSlideBlock: React.FC<OnboardingSlideBlockProps>;
1921
-
1922
- /**
1923
- * ChatBubbleBlock — Chat message bubble with sender/receiver layout, timestamp, and read status.
1924
- */
1925
-
1926
- interface ChatBubbleBlockProps {
1927
- message?: string;
1928
- timestamp?: string;
1929
- isSent?: boolean;
1930
- isRead?: boolean;
1931
- senderName?: string;
1932
- avatarUrl?: string;
1933
- showAvatar?: boolean;
1934
- accentColor?: string;
1935
- background?: string;
1936
- maxWidth?: number;
1937
- }
1938
- declare const ChatBubbleBlock: React.FC<ChatBubbleBlockProps>;
1939
-
1940
- /**
1941
- * CalendarEventBlock — Event card with date badge, title, time, location, and attendees.
1942
- */
1943
-
1944
- interface CalendarEventBlockProps {
1945
- title?: string;
1946
- date?: string;
1947
- dayNumber?: string;
1948
- month?: string;
1949
- startTime?: string;
1950
- endTime?: string;
1951
- location?: string;
1952
- attendeeCount?: number;
1953
- color?: string;
1954
- background?: string;
1955
- borderRadius?: string;
1956
- padding?: number;
1957
- onPress?: () => void;
1958
- }
1959
- declare const CalendarEventBlock: React.FC<CalendarEventBlockProps>;
1960
-
1961
- /**
1962
- * FileItemBlock — File list item with icon, name, size, type badge, and actions.
1963
- */
1964
-
1965
- interface FileItemBlockProps {
1966
- name?: string;
1967
- size?: string;
1968
- type?: string;
1969
- updatedAt?: string;
1970
- background?: string;
1971
- padding?: number;
1972
- showDivider?: boolean;
1973
- pressable?: boolean;
1974
- onPress?: () => void;
1975
- onDownload?: () => void;
1976
- onDelete?: () => void;
1977
- }
1978
- declare const FileItemBlock: React.FC<FileItemBlockProps>;
1979
-
1980
- /**
1981
- * ContactCardBlock — Contact card with avatar, name, role, and action buttons (call, email, message).
1982
- */
1983
-
1984
- interface ContactCardBlockProps {
1985
- name?: string;
1986
- role?: string;
1987
- company?: string;
1988
- avatarUrl?: string;
1989
- initials?: string;
1990
- phone?: string;
1991
- email?: string;
1992
- website?: string;
1993
- background?: string;
1994
- accentColor?: string;
1995
- borderRadius?: string;
1996
- padding?: number;
1997
- showActions?: boolean;
1998
- onPress?: () => void;
1999
- }
2000
- declare const ContactCardBlock: React.FC<ContactCardBlockProps>;
2001
-
2002
- /**
2003
- * MapPinBlock — Location display card with address, coordinates, and open-in-maps action.
2004
- */
2005
-
2006
- interface MapPinBlockProps {
2007
- address?: string;
2008
- city?: string;
2009
- country?: string;
2010
- latitude?: number;
2011
- longitude?: number;
2012
- label?: string;
2013
- background?: string;
2014
- accentColor?: string;
2015
- borderRadius?: string;
2016
- padding?: number;
2017
- showCoordinates?: boolean;
2018
- showOpenButton?: boolean;
2019
- onPress?: () => void;
2020
- }
2021
- declare const MapPinBlock: React.FC<MapPinBlockProps>;
2022
-
2023
- /**
2024
- * PasswordStrengthBlock — Password input with strength meter and requirements checklist.
2025
- */
2026
-
2027
- interface PasswordStrengthBlockProps {
2028
- value?: string;
2029
- label?: string;
2030
- placeholder?: string;
2031
- showRequirements?: boolean;
2032
- background?: string;
2033
- borderRadius?: string;
2034
- onChange?: (value: string) => void;
2035
- }
2036
- declare const PasswordStrengthBlock: React.FC<PasswordStrengthBlockProps>;
2037
-
2038
- /**
2039
- * MediaPickerBlock — Image/video picker with preview grid and add button.
2040
- */
2041
-
2042
- interface MediaItem {
2043
- uri: string;
2044
- type?: "image" | "video";
2045
- }
2046
- interface MediaPickerBlockProps {
2047
- items?: MediaItem[];
2048
- maxItems?: number;
2049
- label?: string;
2050
- columns?: number;
2051
- itemSize?: number;
2052
- background?: string;
2053
- accentColor?: string;
2054
- onAdd?: () => void;
2055
- onRemove?: (index: number) => void;
2056
- onPress?: (item: MediaItem, index: number) => void;
2057
- }
2058
- declare const MediaPickerBlock: React.FC<MediaPickerBlockProps>;
2059
-
2060
- /**
2061
- * BannerBlock — Dismissible info/warning/error/success banner with icon and action.
2062
- */
2063
-
2064
- interface BannerBlockProps {
2065
- type?: "info" | "success" | "warning" | "error";
2066
- title?: string;
2067
- message?: string;
2068
- actionLabel?: string;
2069
- dismissible?: boolean;
2070
- icon?: string;
2071
- borderRadius?: string;
2072
- padding?: number;
2073
- onAction?: () => void;
2074
- onDismiss?: () => void;
2075
- }
2076
- declare const BannerBlock: React.FC<BannerBlockProps>;
2077
-
2078
- /**
2079
- * CommentBlock — Comment/review item with avatar, author, content, timestamp, and like action.
2080
- */
2081
-
2082
- interface CommentBlockProps {
2083
- author?: string;
2084
- avatarUrl?: string;
2085
- initials?: string;
2086
- content?: string;
2087
- timestamp?: string;
2088
- likeCount?: number;
2089
- liked?: boolean;
2090
- replyCount?: number;
2091
- background?: string;
2092
- padding?: number;
2093
- showDivider?: boolean;
2094
- onLike?: () => void;
2095
- onReply?: () => void;
2096
- onPress?: () => void;
2097
- }
2098
- declare const CommentBlock: React.FC<CommentBlockProps>;
2099
-
2100
- /**
2101
- * OTPInputBlock — One-time password input with N digit boxes and auto-focus.
2102
- */
2103
-
2104
- interface OTPInputBlockProps {
2105
- length?: number;
2106
- label?: string;
2107
- error?: string;
2108
- disabled?: boolean;
2109
- size?: "sm" | "md" | "lg";
2110
- accentColor?: string;
2111
- background?: string;
2112
- onChange?: (value: string) => void;
2113
- onComplete?: (value: string) => void;
2114
- }
2115
- declare const OTPInputBlock: React.FC<OTPInputBlockProps>;
2116
-
2117
- /**
2118
- * TagInputBlock — Input field that creates removable tags/chips on Enter.
2119
- */
2120
-
2121
- interface TagInputBlockProps {
2122
- tags?: string[];
2123
- placeholder?: string;
2124
- label?: string;
2125
- maxTags?: number;
2126
- background?: string;
2127
- tagColor?: string;
2128
- borderRadius?: string;
2129
- onChange?: (tags: string[]) => void;
2130
- }
2131
- declare const TagInputBlock: React.FC<TagInputBlockProps>;
2132
-
2133
- /**
2134
- * StepperBlock — Multi-step progress indicator with labels and active state.
2135
- */
2136
-
2137
- interface Step {
2138
- label: string;
2139
- description?: string;
2140
- }
2141
- interface StepperBlockProps {
2142
- steps?: Step[];
2143
- currentStep?: number;
2144
- orientation?: "horizontal" | "vertical";
2145
- accentColor?: string;
2146
- completedColor?: string;
2147
- background?: string;
2148
- showLabels?: boolean;
2149
- showDescriptions?: boolean;
2150
- size?: "sm" | "md" | "lg";
2151
- }
2152
- declare const StepperBlock: React.FC<StepperBlockProps>;
2153
-
2154
- /**
2155
- * RatingBlock — Star rating input or display with half-star support.
2156
- */
2157
-
2158
- interface RatingBlockProps {
2159
- value?: number;
2160
- maxStars?: number;
2161
- readonly?: boolean;
2162
- size?: "sm" | "md" | "lg";
2163
- activeColor?: string;
2164
- inactiveColor?: string;
2165
- showValue?: boolean;
2166
- label?: string;
2167
- onChange?: (value: number) => void;
2168
- }
2169
- declare const RatingBlock: React.FC<RatingBlockProps>;
2170
-
2171
- /**
2172
- * QuoteBlock — Stylized quote/testimonial with author, avatar, and accent bar.
2173
- */
2174
-
2175
- interface QuoteBlockProps {
2176
- quote?: string;
2177
- author?: string;
2178
- role?: string;
2179
- avatarUrl?: string;
2180
- accentColor?: string;
2181
- background?: string;
2182
- borderRadius?: string;
2183
- padding?: number;
2184
- showQuoteIcon?: boolean;
2185
- variant?: "left-bar" | "card" | "minimal";
2186
- }
2187
- declare const QuoteBlock: React.FC<QuoteBlockProps>;
2188
-
2189
- /**
2190
- * TimelineBlock — Vertical timeline with events, icons, and timestamps.
2191
- */
2192
-
2193
- interface TimelineEvent {
2194
- title: string;
2195
- description?: string;
2196
- timestamp?: string;
2197
- iconName?: string;
2198
- iconColor?: string;
2199
- completed?: boolean;
2200
- }
2201
- interface TimelineBlockProps {
2202
- events?: TimelineEvent[];
2203
- accentColor?: string;
2204
- lineColor?: string;
2205
- spacing?: number;
2206
- showConnector?: boolean;
2207
- }
2208
- declare const TimelineBlock: React.FC<TimelineBlockProps>;
2209
-
2210
- /**
2211
- * CounterBlock — Animated number counter with increment/decrement controls.
2212
- */
2213
-
2214
- interface CounterBlockProps {
2215
- value?: number;
2216
- min?: number;
2217
- max?: number;
2218
- step?: number;
2219
- label?: string;
2220
- size?: "sm" | "md" | "lg";
2221
- accentColor?: string;
2222
- background?: string;
2223
- disabled?: boolean;
2224
- onChange?: (value: number) => void;
2225
- }
2226
- declare const CounterBlock: React.FC<CounterBlockProps>;
2227
-
2228
- /**
2229
- * SegmentedControlBlock — iOS-style segmented control / tab switcher.
2230
- */
2231
-
2232
- interface Segment {
2233
- label: string;
2234
- value: string;
2235
- }
2236
- interface SegmentedControlBlockProps {
2237
- segments?: Segment[];
2238
- value?: string;
2239
- background?: string;
2240
- activeBackground?: string;
2241
- activeColor?: string;
2242
- inactiveColor?: string;
2243
- size?: "sm" | "md" | "lg";
2244
- fullWidth?: boolean;
2245
- onChange?: (value: string) => void;
2246
- }
2247
- declare const SegmentedControlBlock: React.FC<SegmentedControlBlockProps>;
2248
-
2249
- /**
2250
- * useBreakpoint — Hook niveau 1
2251
- *
2252
- * Détecte le breakpoint courant et expose des helpers dérivés
2253
- * pour éviter la duplication `breakpoint === "xs" || breakpoint === "sm"`
2254
- * dans chaque layout.
2255
- *
2256
- * @example
2257
- * const { breakpoint, isMobile, isTablet, isDesktop } = useBreakpoint();
2258
- *
2259
- * // Avant (dupliqué partout) :
2260
- * const isMobile = breakpoint === "xs" || breakpoint === "sm";
2261
- *
2262
- * // Après :
2263
- * const { isMobile } = useBreakpoint();
2264
- */
2265
-
2266
- interface BreakpointInfo {
2267
- /** Breakpoint brut (xs, sm, md, lg, xl, 2xl). Null en SSR avant hydratation. */
2268
- breakpoint: Breakpoint | null;
2269
- /** xs ou sm */
2270
- isMobile: boolean;
2271
- /** md */
2272
- isTablet: boolean;
2273
- /** lg, xl ou 2xl */
2274
- isDesktop: boolean;
2275
- /** md ou plus */
2276
- isAtLeastTablet: boolean;
2277
- /** lg ou plus */
2278
- isAtLeastDesktop: boolean;
2279
- }
2280
- declare const useBreakpoint: () => BreakpointInfo;
2281
-
2282
- declare const useResponsiveValue: <T>(value: ResponsiveValue<T>) => T | null;
2283
-
2284
- /**
2285
- * usePlatformInfo — Hook niveau 1
2286
- *
2287
- * Détection de plateforme (iOS / Android / Web).
2288
- * À utiliser UNIQUEMENT pour des comportements liés à la plateforme
2289
- * (haptics, cursor, keyboard, etc.), PAS pour du responsive.
2290
- *
2291
- * Pour le responsive → useBreakpoint().
2292
- *
2293
- * @example
2294
- * const { isWeb, isNative } = usePlatformInfo();
2295
- * if (isNative) Haptics.impactAsync(...);
2296
- */
2297
- interface PlatformInfo {
2298
- /** true si Platform.OS === 'web' */
2299
- isWeb: boolean;
2300
- /** true si Platform.OS !== 'web' (iOS ou Android) */
2301
- isNative: boolean;
2302
- /** true si Platform.OS === 'ios' */
2303
- isIOS: boolean;
2304
- /** true si Platform.OS === 'android' */
2305
- isAndroid: boolean;
2306
- }
2307
- declare const usePlatformInfo: () => PlatformInfo;
2308
-
2309
- /**
2310
- * Hook pour accéder aux dimensions des zones sécurisées
2311
- * @returns Objet contenant les dimensions des zones sécurisées
2312
- */
2313
- declare const useSafeArea: () => {
2314
- top: number;
2315
- bottom: number;
2316
- left: number;
2317
- right: number;
2318
- vertical: number;
2319
- horizontal: number;
2320
- };
2321
-
2322
- /**
2323
- * useAdaptiveValue — Hook utilitaire
2324
- *
2325
- * Sélectionne une valeur selon le breakpoint courant.
2326
- * Élimine la duplication du pattern if(isMobile)/if(isTablet)/if(isDesktop).
2327
- *
2328
- * @example
2329
- * const spacing = useAdaptiveValue({ mobile: 2, tablet: 4, desktop: 8 }, 4);
2330
- */
2331
- interface AdaptiveConfig<T> {
2332
- mobile?: T;
2333
- tablet?: T;
2334
- desktop?: T;
2335
- }
2336
- declare function useAdaptiveValue<T>(adaptive: AdaptiveConfig<T> | undefined, fallback: T): T;
2337
-
2338
- /**
2339
- * PlatformOverride — Context to override platform detection in studio/preview mode.
2340
- * When provided, useBreakpoint and usePlatformInfo will use these values instead of real ones.
2341
- */
2342
-
2343
- interface PlatformOverrideValue {
2344
- breakpoint?: BreakpointInfo;
2345
- platform?: PlatformInfo;
2346
- }
2347
- declare const usePlatformOverride: () => PlatformOverrideValue | null;
2348
- declare const PlatformOverrideProvider: React.FC<{
2349
- value: PlatformOverrideValue;
2350
- children: React.ReactNode;
2351
- }>;
2352
-
2353
- /**
2354
- * useStudioItems — Standard hook for multi-item layouts.
2355
- *
2356
- * When a layout receives an empty items array (e.g. freshly dropped in Studio),
2357
- * returns placeholder ReactNode items so the layout renders visibly.
2358
- *
2359
- * ## Standard for multi-item layouts
2360
- *
2361
- * A multi-item layout (DeckLayout, SwiperLayout, GridLayout, BentoLayout,
2362
- * MasonryLayout, ParallaxLayout, CrossTabLayout, FlipLayout...) follows this contract:
2363
- *
2364
- * ### Registry (layouts.ts)
2365
- * ```ts
2366
- * {
2367
- * id: "MyLayout",
2368
- * slots: [{ name: "items", label: "Items", required: true, array: true }],
2369
- * previewItemCount: 4, // how many placeholders/template copies to show
2370
- * props: [...]
2371
- * }
2372
- * ```
2373
- * - Slot name must NOT be "children" (use "items", "cards", "slides", etc.)
2374
- * - `array: true` triggers mode "items" in slotConfig → ItemsRenderer
2375
- *
2376
- * ### Component (MyLayout.tsx)
2377
- * ```ts
2378
- * interface MyLayoutProps {
2379
- * items?: React.ReactNode[]; // new standard prop
2380
- * children?: React.ReactNode | React.ReactNode[]; // backward compat
2381
- * }
2382
- * const resolvedItems = useStudioItems(items ?? [], previewCount, placeholder);
2383
- * ```
2384
- *
2385
- * ### Three rendering modes (handled by ItemsRenderer in Studio)
2386
- * 1. **Static** — N children dropped → N items
2387
- * 2. **Template** — 1 child with repeatBinding → N copies (edit preview)
2388
- * 3. **Data** — layout has repeatBinding → resolve $state.alias → N items
2389
- *
2390
- * Usage:
2391
- * const resolvedItems = useStudioItems(items, previewItemCount, renderPlaceholder);
2392
- */
2393
-
2394
- /**
2395
- * @param items The actual items array from props
2396
- * @param count Number of placeholder items to show when empty (from registry previewItemCount)
2397
- * @param placeholder Factory for a single placeholder node given its index
2398
- */
2399
- declare function useStudioItems(items: React.ReactNode[], count: number, placeholder: (index: number) => React.ReactNode): React.ReactNode[];
2400
-
2401
- declare const isIOS: boolean;
2402
- declare const isAndroid: boolean;
2403
- declare const isWeb: boolean;
2404
- declare const platformSelect: <T>(platforms: {
2405
- ios?: T;
2406
- android?: T;
2407
- web?: T;
2408
- default: T;
2409
- }) => T;
2410
-
2411
- /**
2412
- * Retourne un style qui rend l'élément visible uniquement
2413
- * pour les breakpoints fournis, via CSS media queries sur web.
2414
- * Sur native, retourne un style vide (à combiner avec logique JS).
2415
- *
2416
- * @example
2417
- * // Visible uniquement sur mobile
2418
- * <Box style={showOnly(["xs", "sm"])} />
2419
- *
2420
- * // Visible uniquement sur desktop
2421
- * <Box style={showOnly(["md", "lg", "xl", "2xl"])} />
2422
- */
2423
- declare const showOnly: (visibleAt: Breakpoint[]) => any;
2424
- /**
2425
- * Inverse de showOnly : cache l'élément aux breakpoints fournis.
2426
- */
2427
- declare const hideAt: (hiddenAt: Breakpoint[]) => any;
2428
-
2429
- type SpacingShorthand = SpacingToken | number;
2430
- declare const spacingToStyle: (value: SpacingShorthand | [SpacingShorthand, SpacingShorthand] | [SpacingShorthand, SpacingShorthand, SpacingShorthand, SpacingShorthand]) => Partial<ViewStyle>;
2431
-
2432
- /**
2433
- * Résout un LayoutPadding en props individuelles pt/pb/pl/pr.
2434
- * Élimine la duplication dans 7+ layouts.
2435
- */
2436
-
2437
- interface ResolvedPadding {
2438
- pt?: SpacingToken;
2439
- pb?: SpacingToken;
2440
- pl?: SpacingToken;
2441
- pr?: SpacingToken;
2442
- }
2443
- declare function resolveLayoutPadding(padding?: LayoutPadding): ResolvedPadding;
2444
-
2445
- /**
2446
- * Résout un LayoutBackground (string | [string, string, ...]) en props bg + gradient.
2447
- * Élimine la duplication dans AuthLayout, SidebarLayout, etc.
2448
- */
2449
-
2450
- interface ResolvedBackground {
2451
- bg?: string;
2452
- gradient?: [string, string];
2453
- }
2454
- declare function resolveBackground(background?: LayoutBackground): ResolvedBackground;
2455
-
2456
- /**
2457
- * Helpers to extract and apply defaults and constants from any registry meta.
2458
- * Works with LayoutMeta, ComponentMeta, and BlockMeta.
2459
- */
2460
-
2461
- declare function extractDefaults(meta: AnyMeta): Record<string, unknown>;
2462
- declare function resolveThemeDefaults(meta: AnyMeta, theme: ColorScheme): Record<string, string>;
2463
- declare function applyDefaults<T extends object>(props: T, meta: AnyMeta, theme?: ColorScheme): T;
2464
- declare function applyVariant<T extends object>(props: T, variant: VariantDescriptor): T;
2465
- declare function getConstants(meta: LayoutMeta): LayoutConstants;
2466
-
2467
- /**
2468
- * Layout Registry — Définitions complètes
2469
- *
2470
- * Chaque layout est décrit avec ses slots, props configurables,
2471
- * valeurs par défaut, types, groupes et contraintes.
2472
- */
2473
-
2474
- declare function getLayoutMeta(id: string): LayoutMeta | undefined;
2475
- declare const layoutRegistry: LayoutMeta[];
2476
-
2477
- /**
2478
- * Component Registry
2479
- *
2480
- * Base UI components: buttons, inputs, badges, avatars, etc.
2481
- * Each component supports variants (e.g. primary/secondary/ghost for buttons)
2482
- * and sizes. Theme-aware via themeDefault on color props.
2483
- */
2484
-
2485
- declare function getComponentMeta(id: string): ComponentMeta | undefined;
2486
- declare const componentRegistry: ComponentMeta[];
2487
-
2488
- /**
2489
- * Block Registry
2490
- *
2491
- * Functional blocks that combine primitives and base components.
2492
- * Each block is a higher-level UI pattern (auth form, header bar, avatar group, etc.)
2493
- * with named slots and theme-aware styling.
2494
- */
2495
-
2496
- declare const blockRegistry: BlockMeta[];
2497
- declare function getBlockMeta(id: string): BlockMeta | undefined;
2498
-
2499
- /**
2500
- * Primitives Registry
2501
- *
2502
- * Low-level layout primitives available in the studio.
2503
- * These are the building blocks for all layouts and components.
2504
- */
2505
- interface PrimitiveMeta {
2506
- id: string;
2507
- label: string;
2508
- description: string;
2509
- category: "primitive";
2510
- tags: string[];
2511
- props: {
2512
- name: string;
2513
- label: string;
2514
- type: string;
2515
- group: string;
2516
- default?: any;
2517
- options?: string[];
2518
- description?: string;
2519
- }[];
2520
- slots?: {
2521
- name: string;
2522
- label: string;
2523
- required: boolean;
2524
- }[];
2525
- }
2526
- declare function getPrimitiveMeta(id: string): PrimitiveMeta | undefined;
2527
- declare const primitiveRegistry: PrimitiveMeta[];
2528
-
2529
- export { Accordion, type AdaptiveConfig, type AnyMeta, AuthFormBlock, AuthLayout, type AuthLayoutProps, Avatar, AvatarBlock, type AvatarProps, Badge, type BadgeProps, BannerBlock, type BentoCellConfig, BentoLayout, type BentoLayoutProps, type BlockCategory, type BlockMeta, BottomDrawerLayout, type BottomDrawerLayoutProps, Box, type BoxProps, type BreakpointInfo, Button, type ButtonProps, CalendarEventBlock, CameraComp, CardBlock, Center, type CenterProps, CenteredLayout, type CenteredLayoutProps, ChatBubbleBlock, Checkbox, type CheckboxProps, Chip, type ChipProps, CommentBlock, type ComponentCategory, type ComponentMeta, ContactCardBlock, CounterBlock, CrossTabLayout, type CrossTabLayoutProps, DashboardLayout, type DashboardLayoutProps, DatePicker, type DatePickerProps, _default as DeckLayout, type DefaultsOf, Divider, type DividerProps, EmptyStateBlock, FileItemBlock, FilePicker, type FilePickerProps, FlexLayout, type FlexLayoutProps, FlipLayout, type FlipLayoutProps, FooterLayout, type FooterLayoutProps, FormBlock, GradientComp, type GradientCompProps, GridLayout, type GridLayoutProps, HeaderBlock, HeaderContentLayout, type HeaderContentLayoutProps, IconButton, type IconButtonProps, IconComp, type IconCompProps, ImageComp, type ImageCompProps, Inline, type InlineProps, type LayoutBackground, type LayoutCategory, type LayoutConstants, type LayoutMeta, type LayoutPadding, LeftDrawerLayout, type LeftDrawerLayoutProps, ListItemBlock, MapPinBlock, MapViewComp, MasonryLayout, type MasonryLayoutProps, MediaPickerBlock, ModalBlock, NotificationItemBlock, OTPInputBlock, OnboardingSlideBlock, ParallaxLayout, type ParallaxLayoutProps, PasswordStrengthBlock, type PlatformInfo, PlatformOverrideProvider, type PlatformOverrideValue, PricingCardBlock, ProductCardBlock, ProgressBar, type PropDescriptor, type PropType, QuoteBlock, RadioGroup, type RadioGroupProps, RatingBlock, type ResolvedBackground, type ResolvedPadding, ResponsiveLayout, type ResponsiveLayoutProps, type ResponsiveValue, RootLayout, Scroll, ScrollLayout, type ScrollLayoutProps, type ScrollProps, SearchBarBlock, SegmentedControlBlock, Select, type SelectProps, SeparatorComp, type SeparatorCompProps, SidebarLayout, type SidebarLayoutProps, SketchLayout, Slider, type SliderProps, type SlotDescriptor, SocialLinksBlock, Spinner, type SpinnerProps, SplitLayout, type SplitLayoutProps, type SpringConfig, Stack, type StackProps, StatCardBlock, StepperBlock, Swipe2ScreenLayout, SwiperLayout, type SwiperLayoutProps, SwitchComponent as Switch, type SwitchProps, SystemUIWrapper, TagInputBlock, TextArea, type TextAreaProps, TextComp, type TextCompProps, TextInputComponent as TextInput, type TextInputProps, type ThemeColorRole, TimelineBlock, ToastBlock, type TopDrawerHandle, TopDrawerLayout, type TopDrawerLayoutProps, TransactionItemBlock, type TutoGesture, type TutoLabelPosition, TutoLayout, type TutoLayoutProps, type TutoStep, type TutoZone, type TutoZoneManual, type TutoZoneRef, type TutoZoneShape, type VariantDescriptor, VideoComp, VoidLayout, type VoidLayoutProps, WebViewComp, applyDefaults, applyVariant, blockRegistry, componentRegistry, extractDefaults, getBlockMeta, getBreakpoint, getComponentMeta, getConstants, getLayoutMeta, getPrimitiveMeta, getResponsiveValue, hideAt, isAndroid, isIOS, isWeb, layoutRegistry, platformSelect, primitiveRegistry, resolveBackground, resolveLayoutPadding, resolveThemeDefaults, showOnly, spacingToStyle, useAdaptiveValue, useBreakpoint, usePlatformInfo, usePlatformOverride, useResponsiveValue, useSafeArea, useStudioItems, useTutoRef };