@xaui/native 0.2.8 → 0.9.1-alpha.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 (224) hide show
  1. package/dist/chunk-JDS6KGCM.cjs +791 -0
  2. package/dist/chunk-T3ZI2PZ6.js +791 -0
  3. package/dist/index.cjs +32 -1
  4. package/dist/index.d.cts +2 -2
  5. package/dist/index.d.ts +2 -2
  6. package/dist/index.js +32 -0
  7. package/dist/theme/index.cjs +32 -0
  8. package/dist/theme/index.d.cts +669 -0
  9. package/dist/theme/index.d.ts +669 -0
  10. package/dist/theme/index.js +32 -0
  11. package/package.json +26 -249
  12. package/README.md +0 -178
  13. package/dist/alert/index.cjs +0 -340
  14. package/dist/alert/index.d.cts +0 -46
  15. package/dist/alert/index.d.ts +0 -46
  16. package/dist/alert/index.js +0 -340
  17. package/dist/app-bar/index.cjs +0 -148
  18. package/dist/app-bar/index.d.cts +0 -59
  19. package/dist/app-bar/index.d.ts +0 -59
  20. package/dist/app-bar/index.js +0 -148
  21. package/dist/autocomplete/index.cjs +0 -1122
  22. package/dist/autocomplete/index.d.cts +0 -88
  23. package/dist/autocomplete/index.d.ts +0 -88
  24. package/dist/autocomplete/index.js +0 -1122
  25. package/dist/avatar/index.cjs +0 -281
  26. package/dist/avatar/index.d.cts +0 -123
  27. package/dist/avatar/index.d.ts +0 -123
  28. package/dist/avatar/index.js +0 -281
  29. package/dist/badge/index.cjs +0 -197
  30. package/dist/badge/index.d.cts +0 -94
  31. package/dist/badge/index.d.ts +0 -94
  32. package/dist/badge/index.js +0 -197
  33. package/dist/bottom-sheet/index.cjs +0 -9
  34. package/dist/bottom-sheet/index.d.cts +0 -84
  35. package/dist/bottom-sheet/index.d.ts +0 -84
  36. package/dist/bottom-sheet/index.js +0 -9
  37. package/dist/bottom-tab-bar/index.cjs +0 -497
  38. package/dist/bottom-tab-bar/index.d.cts +0 -211
  39. package/dist/bottom-tab-bar/index.d.ts +0 -211
  40. package/dist/bottom-tab-bar/index.js +0 -497
  41. package/dist/button/index.cjs +0 -392
  42. package/dist/button/index.d.cts +0 -174
  43. package/dist/button/index.d.ts +0 -174
  44. package/dist/button/index.js +0 -392
  45. package/dist/button.type-j1ZdkkSl.d.cts +0 -4
  46. package/dist/button.type-j1ZdkkSl.d.ts +0 -4
  47. package/dist/card/index.cjs +0 -338
  48. package/dist/card/index.d.cts +0 -191
  49. package/dist/card/index.d.ts +0 -191
  50. package/dist/card/index.js +0 -338
  51. package/dist/carousel/index.cjs +0 -381
  52. package/dist/carousel/index.d.cts +0 -147
  53. package/dist/carousel/index.d.ts +0 -147
  54. package/dist/carousel/index.js +0 -381
  55. package/dist/chart/index.cjs +0 -1026
  56. package/dist/chart/index.d.cts +0 -218
  57. package/dist/chart/index.d.ts +0 -218
  58. package/dist/chart/index.js +0 -1026
  59. package/dist/checkbox/index.cjs +0 -443
  60. package/dist/checkbox/index.d.cts +0 -73
  61. package/dist/checkbox/index.d.ts +0 -73
  62. package/dist/checkbox/index.js +0 -443
  63. package/dist/chip/index.cjs +0 -503
  64. package/dist/chip/index.d.cts +0 -195
  65. package/dist/chip/index.d.ts +0 -195
  66. package/dist/chip/index.js +0 -503
  67. package/dist/chunk-4JFWQ5XT.js +0 -368
  68. package/dist/chunk-56RPWZD2.cjs +0 -9
  69. package/dist/chunk-7UFBLUMV.cjs +0 -136
  70. package/dist/chunk-A45TVXU5.js +0 -337
  71. package/dist/chunk-BYWUAPC4.cjs +0 -368
  72. package/dist/chunk-DECMUMCI.js +0 -0
  73. package/dist/chunk-DHSTKO3K.cjs +0 -19
  74. package/dist/chunk-DJ4Q37UT.cjs +0 -75
  75. package/dist/chunk-EUQDGTST.cjs +0 -1
  76. package/dist/chunk-GBHQCAKW.js +0 -19
  77. package/dist/chunk-RBSA4NH4.js +0 -136
  78. package/dist/chunk-SHBDANQN.js +0 -9
  79. package/dist/chunk-UGEINZM7.cjs +0 -290
  80. package/dist/chunk-UU4HHBDN.js +0 -290
  81. package/dist/chunk-VSZEXOUN.js +0 -384
  82. package/dist/chunk-YIEUN3G5.cjs +0 -384
  83. package/dist/chunk-ZH6ZSV2Q.cjs +0 -337
  84. package/dist/chunk-ZY7IUTAT.js +0 -75
  85. package/dist/color-picker/index.cjs +0 -457
  86. package/dist/color-picker/index.d.cts +0 -124
  87. package/dist/color-picker/index.d.ts +0 -124
  88. package/dist/color-picker/index.js +0 -457
  89. package/dist/core/index.cjs +0 -24
  90. package/dist/core/index.d.cts +0 -28
  91. package/dist/core/index.d.ts +0 -28
  92. package/dist/core/index.js +0 -24
  93. package/dist/datepicker/index.cjs +0 -1625
  94. package/dist/datepicker/index.d.cts +0 -45
  95. package/dist/datepicker/index.d.ts +0 -45
  96. package/dist/datepicker/index.js +0 -1625
  97. package/dist/dialog/index.cjs +0 -372
  98. package/dist/dialog/index.d.cts +0 -151
  99. package/dist/dialog/index.d.ts +0 -151
  100. package/dist/dialog/index.js +0 -372
  101. package/dist/divider/index.cjs +0 -8
  102. package/dist/divider/index.d.cts +0 -30
  103. package/dist/divider/index.d.ts +0 -30
  104. package/dist/divider/index.js +0 -8
  105. package/dist/drawer/index.cjs +0 -237
  106. package/dist/drawer/index.d.cts +0 -58
  107. package/dist/drawer/index.d.ts +0 -58
  108. package/dist/drawer/index.js +0 -237
  109. package/dist/expansion-panel/index.cjs +0 -441
  110. package/dist/expansion-panel/index.d.cts +0 -153
  111. package/dist/expansion-panel/index.d.ts +0 -153
  112. package/dist/expansion-panel/index.js +0 -441
  113. package/dist/fab/index.cjs +0 -9
  114. package/dist/fab/index.d.cts +0 -10
  115. package/dist/fab/index.d.ts +0 -10
  116. package/dist/fab/index.js +0 -9
  117. package/dist/fab-menu/index.cjs +0 -330
  118. package/dist/fab-menu/index.d.cts +0 -125
  119. package/dist/fab-menu/index.d.ts +0 -125
  120. package/dist/fab-menu/index.js +0 -330
  121. package/dist/fab.type-CkUHmXU_.d.ts +0 -86
  122. package/dist/fab.type-DN0vtAh6.d.cts +0 -86
  123. package/dist/feature-discovery/index.cjs +0 -464
  124. package/dist/feature-discovery/index.d.cts +0 -82
  125. package/dist/feature-discovery/index.d.ts +0 -82
  126. package/dist/feature-discovery/index.js +0 -464
  127. package/dist/indicator/index.cjs +0 -8
  128. package/dist/indicator/index.d.cts +0 -47
  129. package/dist/indicator/index.d.ts +0 -47
  130. package/dist/indicator/index.js +0 -8
  131. package/dist/input/index.cjs +0 -1462
  132. package/dist/input/index.d.cts +0 -522
  133. package/dist/input/index.d.ts +0 -522
  134. package/dist/input/index.js +0 -1462
  135. package/dist/input-trigger/index.cjs +0 -197
  136. package/dist/input-trigger/index.d.cts +0 -11
  137. package/dist/input-trigger/index.d.ts +0 -11
  138. package/dist/input-trigger/index.js +0 -197
  139. package/dist/input-trigger.type-Ba4bM3Qp.d.cts +0 -180
  140. package/dist/input-trigger.type-Ba4bM3Qp.d.ts +0 -180
  141. package/dist/list/index.cjs +0 -395
  142. package/dist/list/index.d.cts +0 -188
  143. package/dist/list/index.d.ts +0 -188
  144. package/dist/list/index.js +0 -395
  145. package/dist/menu/index.cjs +0 -316
  146. package/dist/menu/index.d.cts +0 -115
  147. package/dist/menu/index.d.ts +0 -115
  148. package/dist/menu/index.js +0 -316
  149. package/dist/menubox/index.cjs +0 -297
  150. package/dist/menubox/index.d.cts +0 -98
  151. package/dist/menubox/index.d.ts +0 -98
  152. package/dist/menubox/index.js +0 -297
  153. package/dist/pager/index.cjs +0 -205
  154. package/dist/pager/index.d.cts +0 -93
  155. package/dist/pager/index.d.ts +0 -93
  156. package/dist/pager/index.js +0 -205
  157. package/dist/picker/index.cjs +0 -244
  158. package/dist/picker/index.d.cts +0 -121
  159. package/dist/picker/index.d.ts +0 -121
  160. package/dist/picker/index.js +0 -244
  161. package/dist/progress/index.cjs +0 -219
  162. package/dist/progress/index.d.cts +0 -47
  163. package/dist/progress/index.d.ts +0 -47
  164. package/dist/progress/index.js +0 -219
  165. package/dist/radio/index.cjs +0 -465
  166. package/dist/radio/index.d.cts +0 -145
  167. package/dist/radio/index.d.ts +0 -145
  168. package/dist/radio/index.js +0 -465
  169. package/dist/refresh-control/index.cjs +0 -45
  170. package/dist/refresh-control/index.d.cts +0 -55
  171. package/dist/refresh-control/index.d.ts +0 -55
  172. package/dist/refresh-control/index.js +0 -45
  173. package/dist/segment-button/index.cjs +0 -405
  174. package/dist/segment-button/index.d.cts +0 -141
  175. package/dist/segment-button/index.d.ts +0 -141
  176. package/dist/segment-button/index.js +0 -405
  177. package/dist/select/index.cjs +0 -878
  178. package/dist/select/index.d.cts +0 -192
  179. package/dist/select/index.d.ts +0 -192
  180. package/dist/select/index.js +0 -878
  181. package/dist/skeleton/index.cjs +0 -89
  182. package/dist/skeleton/index.d.cts +0 -45
  183. package/dist/skeleton/index.d.ts +0 -45
  184. package/dist/skeleton/index.js +0 -89
  185. package/dist/slider/index.cjs +0 -576
  186. package/dist/slider/index.d.cts +0 -171
  187. package/dist/slider/index.d.ts +0 -171
  188. package/dist/slider/index.js +0 -576
  189. package/dist/snackbar/index.cjs +0 -436
  190. package/dist/snackbar/index.d.cts +0 -174
  191. package/dist/snackbar/index.d.ts +0 -174
  192. package/dist/snackbar/index.js +0 -436
  193. package/dist/snippet/index.cjs +0 -314
  194. package/dist/snippet/index.d.cts +0 -95
  195. package/dist/snippet/index.d.ts +0 -95
  196. package/dist/snippet/index.js +0 -314
  197. package/dist/stepper/index.cjs +0 -550
  198. package/dist/stepper/index.d.cts +0 -137
  199. package/dist/stepper/index.d.ts +0 -137
  200. package/dist/stepper/index.js +0 -550
  201. package/dist/switch/index.cjs +0 -358
  202. package/dist/switch/index.d.cts +0 -28
  203. package/dist/switch/index.d.ts +0 -28
  204. package/dist/switch/index.js +0 -358
  205. package/dist/tabs/index.cjs +0 -440
  206. package/dist/tabs/index.d.cts +0 -180
  207. package/dist/tabs/index.d.ts +0 -180
  208. package/dist/tabs/index.js +0 -440
  209. package/dist/timepicker/index.cjs +0 -823
  210. package/dist/timepicker/index.d.cts +0 -215
  211. package/dist/timepicker/index.d.ts +0 -215
  212. package/dist/timepicker/index.js +0 -823
  213. package/dist/toolbar/index.cjs +0 -333
  214. package/dist/toolbar/index.d.cts +0 -100
  215. package/dist/toolbar/index.d.ts +0 -100
  216. package/dist/toolbar/index.js +0 -333
  217. package/dist/typography/index.cjs +0 -238
  218. package/dist/typography/index.d.cts +0 -113
  219. package/dist/typography/index.d.ts +0 -113
  220. package/dist/typography/index.js +0 -238
  221. package/dist/view/index.cjs +0 -1361
  222. package/dist/view/index.d.cts +0 -833
  223. package/dist/view/index.d.ts +0 -833
  224. package/dist/view/index.js +0 -1361
@@ -1,833 +0,0 @@
1
- import React, { ReactNode, ReactElement, ComponentType } from 'react';
2
- import { AccessibilityRole, AccessibilityState, StyleProp, ViewStyle, ColorValue, ScrollViewProps } from 'react-native';
3
- import { EdgeInsets, Alignment, Border, BorderRadius, ShadowConfig, TransformConfig } from '@xaui/core';
4
- import { ThemeColor, Radius } from '@xaui/core/types';
5
-
6
- type ContainerProps = {
7
- /** Content to render inside the container. */
8
- children?: ReactNode;
9
- /** Width in logical pixels or percentage string (e.g. `'50%'`). */
10
- width?: number | `${number}%`;
11
- /** Height in logical pixels or percentage string (e.g. `'50%'`). */
12
- height?: number | `${number}%`;
13
- /** Minimum width constraint in logical pixels. */
14
- minWidth?: number;
15
- /** Maximum width constraint in logical pixels. */
16
- maxWidth?: number;
17
- /** Minimum height constraint in logical pixels. */
18
- minHeight?: number;
19
- /** Maximum height constraint in logical pixels. */
20
- maxHeight?: number;
21
- /** Width-to-height aspect ratio (e.g. `16 / 9`). */
22
- aspectRatio?: number;
23
- /** Flex grow/shrink factor. */
24
- flex?: number;
25
- /** Inner spacing — number for all sides or `{ top, bottom, left, right, horizontal, vertical }`. */
26
- padding?: EdgeInsets;
27
- /** Outer spacing — same shape as `padding`. */
28
- margin?: EdgeInsets;
29
- /** Alignment of children — named (`'center'`, `'topLeft'`, …) or coordinate `{ x, y }`. */
30
- alignment?: Alignment;
31
- /** Background color. */
32
- color?: string;
33
- /** Border — uniform `{ width, color, style }` or per-side `{ top, left, … }`. */
34
- border?: Border;
35
- /** Corner radius — number for all corners or `{ topLeft, topRight, bottomLeft, bottomRight }`. */
36
- borderRadius?: BorderRadius;
37
- /** Drop shadow config — `{ color, offset: { x, y }, blur, opacity, elevation }`. */
38
- shadow?: ShadowConfig;
39
- /** Clip children to the container bounds (`overflow: hidden`). */
40
- clip?: boolean;
41
- /** CSS / RN transforms — `{ rotate, scale, translateX, translateY, … }`. */
42
- transform?: TransformConfig;
43
- /** Opacity from `0` (transparent) to `1` (opaque). */
44
- opacity?: number;
45
- /** Tap handler — renders the container as `Pressable` when provided. */
46
- onPress?: () => void;
47
- /** Long-press handler (fires after 500 ms). */
48
- onLongPress?: () => void;
49
- /** Fired on touch/pointer down. */
50
- onPressIn?: () => void;
51
- /** Fired on touch/pointer up. */
52
- onPressOut?: () => void;
53
- /** Disables all press handlers when `true`. */
54
- disabled?: boolean;
55
- /** Screen reader label. */
56
- accessibilityLabel?: string;
57
- /** Accessibility role for assistive technologies. */
58
- accessibilityRole?: AccessibilityRole;
59
- /** Accessibility state (disabled, selected, …). */
60
- accessibilityState?: AccessibilityState;
61
- /** Whether the element is accessible to assistive technologies. */
62
- accessible?: boolean;
63
- /** Test identifier for e2e tests. */
64
- testID?: string;
65
- /** Raw style override applied to the underlying View / Pressable. */
66
- style?: StyleProp<ViewStyle>;
67
- };
68
-
69
- declare const Container: React.FC<ContainerProps>;
70
-
71
- type MainAxisAlignment = 'start' | 'end' | 'center' | 'spaceBetween' | 'spaceAround' | 'spaceEvenly';
72
- type CrossAxisAlignment = 'start' | 'end' | 'center' | 'stretch';
73
- /** Controls how much space the flex widget occupies in its main axis. */
74
- type MainAxisSize = 'min' | 'max';
75
- type Direction = 'horizontal' | 'vertical';
76
- type FlexProps = {
77
- /** Content to render inside the flex container. */
78
- children?: ReactNode;
79
- /** Axis direction — `'horizontal'` for row, `'vertical'` for column. */
80
- direction: Direction;
81
- /** How to place children along the main axis. @default 'start' */
82
- mainAxisAlignment?: MainAxisAlignment;
83
- /** How to place children along the cross axis. @default 'center' */
84
- crossAxisAlignment?: CrossAxisAlignment;
85
- /** Whether the flex takes max or min space in the main axis. @default 'max' */
86
- mainAxisSize?: MainAxisSize;
87
- /** Wrap children onto multiple lines when they overflow. @default false */
88
- wrap?: boolean;
89
- /** Gap in logical pixels between children. */
90
- gap?: number;
91
- /** Reverse the layout direction. @default false */
92
- reversed?: boolean;
93
- /** Flex factor applied to the container itself. */
94
- flex?: number;
95
- /** Raw style override applied to the underlying View. */
96
- style?: StyleProp<ViewStyle>;
97
- /** Test identifier for e2e tests. */
98
- testID?: string;
99
- };
100
- type RowProps = Omit<FlexProps, 'direction'>;
101
- type ColumnProps = Omit<FlexProps, 'direction'>;
102
- /** Controls how a `Flexible` child sizes itself within available space. */
103
- type FlexFit = 'tight' | 'loose';
104
- type FlexibleProps = {
105
- /** Content to render inside the flexible container. */
106
- children?: ReactNode;
107
- /** Flex factor — how much space to claim relative to siblings. @default 1 */
108
- flex?: number;
109
- /**
110
- * Sizing behaviour:
111
- * - `'tight'` — force the child to fill all allotted space (like `Expanded`).
112
- * - `'loose'` — allow the child to be at most the allotted size but no larger.
113
- * @default 'loose'
114
- */
115
- fit?: FlexFit;
116
- /** Raw style override applied to the underlying View. */
117
- style?: StyleProp<ViewStyle>;
118
- /** Test identifier for e2e tests. */
119
- testID?: string;
120
- };
121
- type WrapProps = {
122
- /** Content to render inside the wrap container. */
123
- children?: ReactNode;
124
- /** Primary axis direction. @default 'horizontal' */
125
- direction?: Direction;
126
- /** Alignment of children along the main axis within each run. @default 'start' */
127
- alignment?: MainAxisAlignment;
128
- /** Alignment of runs along the cross axis. @default 'start' */
129
- runAlignment?: MainAxisAlignment;
130
- /** Space between children along the main axis. @default 0 */
131
- spacing?: number;
132
- /** Space between runs along the cross axis. @default 0 */
133
- runSpacing?: number;
134
- /** Raw style override applied to the underlying View. */
135
- style?: StyleProp<ViewStyle>;
136
- /** Test identifier for e2e tests. */
137
- testID?: string;
138
- };
139
-
140
- declare const Flex: React.FC<FlexProps>;
141
-
142
- declare const Column: React.FC<ColumnProps>;
143
-
144
- declare const Row: React.FC<RowProps>;
145
-
146
- type ExpandedProps = {
147
- /** Content to render inside the expanded container. */
148
- children?: ReactNode;
149
- /** Flex factor — how much of the available space to take relative to siblings. @default 1 */
150
- flex?: number;
151
- /** Raw style override applied to the underlying View. */
152
- style?: StyleProp<ViewStyle>;
153
- /** Test identifier for e2e tests. */
154
- testID?: string;
155
- };
156
-
157
- declare const Expanded: React.FC<ExpandedProps>;
158
-
159
- declare const Flexible: React.FC<FlexibleProps>;
160
-
161
- type SpacerProps = {
162
- /**
163
- * Flex factor for the spacer.
164
- * @default 1
165
- */
166
- flex?: number;
167
- /**
168
- * Custom style for the spacer.
169
- */
170
- style?: StyleProp<ViewStyle>;
171
- };
172
-
173
- declare const Spacer: React.FC<SpacerProps>;
174
-
175
- declare const Wrap: React.FC<WrapProps>;
176
-
177
- type PaddingProps = {
178
- /** Content to render inside the padding container. */
179
- children?: ReactNode;
180
- /** Padding applied to all sides — number for uniform, or `{ top, bottom, left, right, horizontal, vertical }`. */
181
- padding: EdgeInsets;
182
- /** Raw style override applied to the underlying View. */
183
- style?: StyleProp<ViewStyle>;
184
- };
185
-
186
- declare const Padding: React.FC<PaddingProps>;
187
-
188
- type MarginProps = {
189
- /** Content to render inside the margin container. */
190
- children?: ReactNode;
191
- /** Margin applied to all sides — number for uniform, or `{ top, bottom, left, right, horizontal, vertical }`. */
192
- margin: EdgeInsets;
193
- /** Raw style override applied to the underlying View. */
194
- style?: StyleProp<ViewStyle>;
195
- };
196
-
197
- declare const Margin: React.FC<MarginProps>;
198
-
199
- type SizedBoxProps = {
200
- /**
201
- * Width in logical pixels.
202
- */
203
- width?: number;
204
- /**
205
- * Height in logical pixels.
206
- */
207
- height?: number;
208
- /**
209
- * Fills all available space — equivalent to Flutter's Expanded (flex: 1, alignSelf: 'stretch').
210
- * @default false
211
- */
212
- expand?: boolean;
213
- /**
214
- * Collapses to zero size — equivalent to Flutter's SizedBox.shrink().
215
- * @default false
216
- */
217
- shrink?: boolean;
218
- /**
219
- * Content to render inside the box.
220
- */
221
- children?: ReactNode;
222
- /**
223
- * Style override applied to the underlying View.
224
- */
225
- style?: StyleProp<ViewStyle>;
226
- /**
227
- * Test identifier for e2e tests.
228
- */
229
- testID?: string;
230
- };
231
-
232
- declare const SizedBox: React.FC<SizedBoxProps>;
233
-
234
- type BoxConstraints = {
235
- /**
236
- * Minimum width in logical pixels.
237
- */
238
- minWidth?: number;
239
- /**
240
- * Maximum width in logical pixels.
241
- */
242
- maxWidth?: number;
243
- /**
244
- * Minimum height in logical pixels.
245
- */
246
- minHeight?: number;
247
- /**
248
- * Maximum height in logical pixels.
249
- */
250
- maxHeight?: number;
251
- };
252
- type ConstrainedBoxProps = {
253
- /**
254
- * Size constraints to impose on the child — Flutter BoxConstraints equivalent.
255
- */
256
- constraints: BoxConstraints;
257
- /**
258
- * Content to render inside the box.
259
- */
260
- children?: ReactNode;
261
- /**
262
- * Style override applied to the underlying View.
263
- */
264
- style?: StyleProp<ViewStyle>;
265
- /**
266
- * Test identifier for e2e tests.
267
- */
268
- testID?: string;
269
- };
270
-
271
- declare const ConstrainedBox: React.FC<ConstrainedBoxProps>;
272
-
273
- type FractionallySizedBoxProps = {
274
- /**
275
- * Fraction of the parent's width (0–1). When undefined, the child chooses its own width.
276
- */
277
- widthFactor?: number;
278
- /**
279
- * Fraction of the parent's height (0–1). When undefined, the child chooses its own height.
280
- */
281
- heightFactor?: number;
282
- /**
283
- * How to align the child within the remaining space.
284
- * @default 'topLeft'
285
- */
286
- alignment?: Alignment;
287
- /**
288
- * Content to render inside the box.
289
- */
290
- children?: ReactNode;
291
- /**
292
- * Style override applied to the underlying View.
293
- */
294
- style?: StyleProp<ViewStyle>;
295
- /**
296
- * Test identifier for e2e tests.
297
- */
298
- testID?: string;
299
- };
300
-
301
- declare const FractionallySizedBox: React.FC<FractionallySizedBoxProps>;
302
-
303
- type PositionedViewProps = {
304
- /**
305
- * Content to render inside the positioned container.
306
- */
307
- children: ReactNode;
308
- /**
309
- * Top offset.
310
- */
311
- top?: number;
312
- /**
313
- * Right offset.
314
- */
315
- right?: number;
316
- /**
317
- * Bottom offset.
318
- */
319
- bottom?: number;
320
- /**
321
- * Left offset.
322
- */
323
- left?: number;
324
- /**
325
- * Z-index for stacking context.
326
- */
327
- zIndex?: number;
328
- /**
329
- * Custom style for the positioned container.
330
- */
331
- style?: StyleProp<ViewStyle>;
332
- };
333
-
334
- declare const PositionedView: React.FC<PositionedViewProps>;
335
-
336
- type BlurViewProps = {
337
- children: ReactNode;
338
- unlockable?: boolean;
339
- intensity?: number;
340
- overlayColor?: ColorValue;
341
- style?: StyleProp<ViewStyle>;
342
- };
343
-
344
- declare const BlurView: React.FC<BlurViewProps>;
345
-
346
- type RoundedViewProps = {
347
- /**
348
- * Content to be displayed inside the rounded view
349
- */
350
- children: ReactNode;
351
- /**
352
- * Border radius for all corners in pixels
353
- */
354
- all?: number;
355
- /**
356
- * Border radius for top corners (topLeft and topRight) in pixels
357
- */
358
- top?: number;
359
- /**
360
- * Border radius for bottom corners (bottomLeft and bottomRight) in pixels
361
- */
362
- bottom?: number;
363
- /**
364
- * Border radius for left corners (topLeft and bottomLeft) in pixels
365
- */
366
- left?: number;
367
- /**
368
- * Border radius for right corners (topRight and bottomRight) in pixels
369
- */
370
- right?: number;
371
- /**
372
- * Border radius for top-left corner in pixels
373
- */
374
- topLeft?: number;
375
- /**
376
- * Border radius for top-right corner in pixels
377
- */
378
- topRight?: number;
379
- /**
380
- * Border radius for bottom-left corner in pixels
381
- */
382
- bottomLeft?: number;
383
- /**
384
- * Border radius for bottom-right corner in pixels
385
- */
386
- bottomRight?: number;
387
- /**
388
- * Whether the view should take full width
389
- * @default false
390
- */
391
- fullWidth?: boolean;
392
- /**
393
- * Background color of the view
394
- */
395
- backgroundColor?: string;
396
- /**
397
- * If true, the view will NOT automatically grow to fill available space (e.g., via flex: 1).
398
- * @default false
399
- */
400
- noGrowth?: boolean;
401
- /**
402
- * Custom style for the view
403
- */
404
- style?: ViewStyle;
405
- };
406
-
407
- declare const RoundedView: React.FC<RoundedViewProps>;
408
-
409
- type AspectRatioProps = {
410
- /**
411
- * Content to be displayed inside the aspect ratio container.
412
- */
413
- children?: ReactNode;
414
- /**
415
- * Aspect ratio as a number (width / height).
416
- * Examples: 16/9, 4/3, 1, 2/1
417
- */
418
- ratio: number;
419
- /**
420
- * How to align the child within the container.
421
- */
422
- alignment?: Alignment;
423
- /**
424
- * Whether to clip content that overflows the container.
425
- * @default false
426
- */
427
- clip?: boolean;
428
- /**
429
- * Style override applied to the underlying View.
430
- */
431
- style?: StyleProp<ViewStyle>;
432
- /**
433
- * Test identifier for e2e tests.
434
- */
435
- testID?: string;
436
- };
437
-
438
- declare const AspectRatio: React.FC<AspectRatioProps>;
439
-
440
- type SurfaceThemeColor = ThemeColor | 'background' | 'foreground';
441
- type SurfaceProps = {
442
- /**
443
- * Content rendered inside the surface container.
444
- */
445
- children: ReactNode;
446
- /**
447
- * Theme-based color key used for background.
448
- * - Semantic keys (primary, secondary, etc.) use their `.background` tone.
449
- * - `background` / `foreground` use raw theme values.
450
- * @default 'background'
451
- */
452
- themeColor?: SurfaceThemeColor;
453
- /**
454
- * Uniform padding inside the surface.
455
- */
456
- padding?: number;
457
- /**
458
- * Border radius token.
459
- * @default 'none'
460
- */
461
- radius?: Radius;
462
- /**
463
- * Force the surface to take the full width.
464
- * @default false
465
- */
466
- fullWidth?: boolean;
467
- /**
468
- * Additional container styles.
469
- */
470
- style?: StyleProp<ViewStyle>;
471
- };
472
-
473
- declare const Surface: React.FC<SurfaceProps>;
474
-
475
- type ScreenProps = {
476
- /**
477
- * Content rendered inside the screen container.
478
- */
479
- children: ReactNode;
480
- /**
481
- * Uniform padding applied to the screen.
482
- */
483
- padding?: number;
484
- /**
485
- * Optional custom background color.
486
- * Uses theme background by default.
487
- */
488
- backgroundColor?: string;
489
- /**
490
- * Wrap content in a SafeAreaView.
491
- * @default false
492
- */
493
- safeArea?: boolean;
494
- /**
495
- * Additional container styles.
496
- */
497
- style?: StyleProp<ViewStyle>;
498
- };
499
-
500
- declare const Screen: React.FC<ScreenProps>;
501
-
502
- type AlignProps = {
503
- /** Content to align inside the container. */
504
- children?: ReactNode;
505
- /** Alignment of children — named (`'center'`, `'topLeft'`, …) or coordinate `{ x, y }`. */
506
- alignment: Alignment;
507
- /** Raw style override applied to the underlying View. */
508
- style?: StyleProp<ViewStyle>;
509
- };
510
-
511
- declare const Align: React.FC<AlignProps>;
512
-
513
- type CenterProps = {
514
- /** Content to center. */
515
- children?: ReactNode;
516
- /** Raw style override applied to the underlying View. */
517
- style?: StyleProp<ViewStyle>;
518
- };
519
-
520
- declare const Center: React.FC<CenterProps>;
521
-
522
- type GridProps = {
523
- /**
524
- * The grid items to render.
525
- */
526
- children: ReactNode;
527
- /**
528
- * Number of columns in the grid.
529
- * @default 2
530
- */
531
- columns?: number;
532
- /**
533
- * Spacing between rows and columns.
534
- */
535
- spacing?: number;
536
- /**
537
- * Spacing between rows.
538
- */
539
- rowSpacing?: number;
540
- /**
541
- * Spacing between columns.
542
- */
543
- columnSpacing?: number;
544
- /**
545
- * Custom style for the grid container.
546
- */
547
- style?: StyleProp<ViewStyle>;
548
- /**
549
- * Custom style for each grid item.
550
- */
551
- itemStyle?: StyleProp<ViewStyle>;
552
- };
553
-
554
- declare const Grid: React.FC<GridProps>;
555
-
556
- type GridItemProps = {
557
- /**
558
- * The content to render inside the grid item.
559
- */
560
- children: ReactNode;
561
- /**
562
- * Number of columns to span.
563
- * @default 1
564
- */
565
- span?: number;
566
- /**
567
- * Custom style for the grid item.
568
- */
569
- style?: StyleProp<ViewStyle>;
570
- };
571
-
572
- declare const GridItem: React.FC<GridItemProps>;
573
-
574
- type GridBuilderRenderItem<T> = (info: {
575
- item: T;
576
- index: number;
577
- }) => ReactElement | null;
578
- type GridBuilderItemBuilder<T> = (info: {
579
- item?: T;
580
- index: number;
581
- }) => ReactElement | null;
582
- type GridBuilderProps<T> = {
583
- /**
584
- * Data to render in the grid.
585
- */
586
- data?: readonly T[];
587
- /**
588
- * Number of items to render (Flutter-style).
589
- */
590
- itemCount?: number;
591
- /**
592
- * Render function for each item.
593
- */
594
- renderItem?: GridBuilderRenderItem<T>;
595
- /**
596
- * Builder function for each item (Flutter-style).
597
- */
598
- itemBuilder?: GridBuilderItemBuilder<T>;
599
- /**
600
- * Extract a stable key for each item.
601
- */
602
- keyExtractor?: (item: T, index: number) => string;
603
- /**
604
- * Number of columns in the grid.
605
- * @default 2
606
- */
607
- columns?: number;
608
- /**
609
- * Spacing between rows and columns.
610
- */
611
- spacing?: number;
612
- /**
613
- * Spacing between rows.
614
- */
615
- rowSpacing?: number;
616
- /**
617
- * Spacing between columns.
618
- */
619
- columnSpacing?: number;
620
- /**
621
- * Custom style for the grid container.
622
- */
623
- style?: StyleProp<ViewStyle>;
624
- /**
625
- * Custom style for each grid item container.
626
- */
627
- itemStyle?: StyleProp<ViewStyle>;
628
- /**
629
- * Enable or disable scrolling.
630
- */
631
- scrollEnabled?: boolean;
632
- /**
633
- * Called when the scroll reaches the end.
634
- */
635
- onEndReached?: () => void;
636
- /**
637
- * Distance from end (as a fraction of the viewport height).
638
- * @default 0.1
639
- */
640
- onEndReachedThreshold?: number;
641
- /**
642
- * Content container style for the list.
643
- */
644
- contentContainerStyle?: StyleProp<ViewStyle>;
645
- /**
646
- * Optional header element.
647
- */
648
- header?: ReactElement | ComponentType<any> | null;
649
- /**
650
- * Optional footer element.
651
- */
652
- footer?: ReactElement | ComponentType<any> | null;
653
- };
654
-
655
- declare const GridBuilder: {
656
- <T>({ data, itemCount, renderItem, itemBuilder, keyExtractor, columns, spacing, rowSpacing, columnSpacing, style, itemStyle, scrollEnabled, onEndReached, onEndReachedThreshold, contentContainerStyle, header, footer, }: GridBuilderProps<T>): React.JSX.Element | null;
657
- displayName: string;
658
- };
659
-
660
- type ConditionalViewAnimation = 'fade' | 'scale';
661
- type ConditionalViewProps = {
662
- /**
663
- * Whether the view is visible.
664
- */
665
- isVisible: boolean;
666
- /**
667
- * The content to render when visible.
668
- */
669
- children: ReactNode;
670
- /**
671
- * The animation to use when the view appears.
672
- * @default 'fade'
673
- */
674
- animation?: ConditionalViewAnimation;
675
- /**
676
- * Disable animations entirely.
677
- * @default false
678
- */
679
- disableAnimation?: boolean;
680
- };
681
-
682
- declare const ConditionalView: React.FC<ConditionalViewProps>;
683
-
684
- type MasonryGridProps = {
685
- /**
686
- * Items to render inside the masonry grid.
687
- */
688
- children: ReactNode;
689
- /**
690
- * Number of columns.
691
- * @default 2
692
- */
693
- columns?: number;
694
- /**
695
- * Spacing between rows and columns.
696
- */
697
- spacing?: number;
698
- /**
699
- * Spacing between rows.
700
- */
701
- rowSpacing?: number;
702
- /**
703
- * Spacing between columns.
704
- */
705
- columnSpacing?: number;
706
- /**
707
- * Custom style for the grid container.
708
- */
709
- style?: StyleProp<ViewStyle>;
710
- /**
711
- * Custom style for each column container.
712
- */
713
- columnStyle?: StyleProp<ViewStyle>;
714
- };
715
-
716
- declare const MasonryGrid: React.FC<MasonryGridProps>;
717
-
718
- type MasonryGridItemProps = {
719
- /**
720
- * The content to render inside the masonry item.
721
- */
722
- children: ReactNode;
723
- /**
724
- * Custom style for the masonry item container.
725
- */
726
- style?: StyleProp<ViewStyle>;
727
- };
728
-
729
- declare const MasonryGridItem: React.FC<MasonryGridItemProps>;
730
-
731
- type MasonryGridBuilderRenderItem<T> = (info: {
732
- item: T;
733
- index: number;
734
- }) => ReactElement | null;
735
- type MasonryGridBuilderItemBuilder<T> = (info: {
736
- item?: T;
737
- index: number;
738
- }) => ReactElement | null;
739
- type MasonryGridBuilderProps<T> = {
740
- /**
741
- * Data to render in the masonry grid.
742
- */
743
- data?: readonly T[];
744
- /**
745
- * Number of items to render (Flutter-style).
746
- */
747
- itemCount?: number;
748
- /**
749
- * Render function for each item.
750
- */
751
- renderItem?: MasonryGridBuilderRenderItem<T>;
752
- /**
753
- * Builder function for each item (Flutter-style).
754
- */
755
- itemBuilder?: MasonryGridBuilderItemBuilder<T>;
756
- /**
757
- * Extract a stable key for each item.
758
- */
759
- keyExtractor?: (item: T, index: number) => string;
760
- /**
761
- * Number of columns.
762
- * @default 2
763
- */
764
- columns?: number;
765
- /**
766
- * Spacing between rows and columns.
767
- */
768
- spacing?: number;
769
- /**
770
- * Spacing between rows.
771
- */
772
- rowSpacing?: number;
773
- /**
774
- * Spacing between columns.
775
- */
776
- columnSpacing?: number;
777
- /**
778
- * Custom style for the masonry container.
779
- */
780
- style?: StyleProp<ViewStyle>;
781
- /**
782
- * Custom style for each column container.
783
- */
784
- columnStyle?: StyleProp<ViewStyle>;
785
- /**
786
- * Called when the scroll reaches the end.
787
- */
788
- onEndReached?: () => void;
789
- /**
790
- * Distance from end (as a fraction of the viewport height).
791
- * @default 0.1
792
- */
793
- onEndReachedThreshold?: number;
794
- /**
795
- * Optional header element.
796
- */
797
- header?: ReactNode;
798
- /**
799
- * Optional footer element.
800
- */
801
- footer?: ReactNode;
802
- /**
803
- * Content container style for the ScrollView.
804
- */
805
- contentContainerStyle?: StyleProp<ViewStyle>;
806
- /**
807
- * Enable or disable scrolling.
808
- */
809
- scrollEnabled?: boolean;
810
- /**
811
- * Show the vertical scroll indicator.
812
- */
813
- showsVerticalScrollIndicator?: boolean;
814
- /**
815
- * Show the horizontal scroll indicator.
816
- */
817
- showsHorizontalScrollIndicator?: boolean;
818
- /**
819
- * Enable or disable bouncing.
820
- */
821
- bounces?: boolean;
822
- /**
823
- * Scroll handler called alongside internal infinite-scroll logic.
824
- */
825
- onScroll?: ScrollViewProps['onScroll'];
826
- };
827
-
828
- declare const MasonryGridBuilder: {
829
- <T>({ data, itemCount, renderItem, itemBuilder, keyExtractor, columns, spacing, rowSpacing, columnSpacing, style, columnStyle, onEndReached, onEndReachedThreshold, header, footer, scrollEnabled, contentContainerStyle, showsVerticalScrollIndicator, showsHorizontalScrollIndicator, bounces, onScroll, }: MasonryGridBuilderProps<T>): React.JSX.Element | null;
830
- displayName: string;
831
- };
832
-
833
- export { Align, type AlignProps, AspectRatio, type AspectRatioProps, BlurView, type BlurViewProps, type BoxConstraints, Center, type CenterProps, Column, type ColumnProps, ConditionalView, type ConditionalViewAnimation, type ConditionalViewProps, ConstrainedBox, type ConstrainedBoxProps, Container, type ContainerProps, type CrossAxisAlignment, type Direction, Expanded, type ExpandedProps, Flex, type FlexFit, type FlexProps, Flexible, type FlexibleProps, FractionallySizedBox, type FractionallySizedBoxProps, Grid, GridBuilder, type GridBuilderProps, GridItem, type GridItemProps, type GridProps, type MainAxisAlignment, type MainAxisSize, Margin, type MarginProps, MasonryGrid, MasonryGridBuilder, type MasonryGridBuilderProps, MasonryGridItem, type MasonryGridItemProps, type MasonryGridProps, Padding, type PaddingProps, PositionedView, type PositionedViewProps, RoundedView, type RoundedViewProps, Row, type RowProps, Screen, type ScreenProps, SizedBox, type SizedBoxProps, Spacer, type SpacerProps, Surface, type SurfaceProps, type SurfaceThemeColor, Wrap, type WrapProps };