@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.
- package/CHANGELOG.md +6 -0
- package/README.md +20 -94
- package/dist/chunk-4KNPSB67.js +423 -0
- package/dist/chunk-4KNPSB67.js.map +1 -0
- package/dist/chunk-4NPMHFKO.mjs +6609 -0
- package/dist/chunk-4NPMHFKO.mjs.map +1 -0
- package/dist/chunk-5LRV4YZO.js +7024 -0
- package/dist/chunk-5LRV4YZO.js.map +1 -0
- package/dist/chunk-5N5HC4ZA.mjs +3 -0
- package/dist/{chunk-HS2UOQU4.mjs.map → chunk-5N5HC4ZA.mjs.map} +1 -1
- package/dist/chunk-CKQBSIBR.mjs +6900 -0
- package/dist/chunk-CKQBSIBR.mjs.map +1 -0
- package/dist/chunk-DJP3T7OD.mjs +413 -0
- package/dist/chunk-DJP3T7OD.mjs.map +1 -0
- package/dist/chunk-DNV5UBNF.mjs +3 -0
- package/dist/chunk-DNV5UBNF.mjs.map +1 -0
- package/dist/chunk-IJTI6EX4.js +4 -0
- package/dist/{chunk-2VLBOYBU.js.map → chunk-IJTI6EX4.js.map} +1 -1
- package/dist/{chunk-D4QJYQOK.js → chunk-JYGNIQUU.js} +49 -44
- package/dist/chunk-JYGNIQUU.js.map +1 -0
- package/dist/{chunk-YTD4AWV2.mjs → chunk-NYZH4C27.mjs} +42 -37
- package/dist/chunk-NYZH4C27.mjs.map +1 -0
- package/dist/chunk-O7UP2OZR.js +6705 -0
- package/dist/chunk-O7UP2OZR.js.map +1 -0
- package/dist/chunk-OXKOGLXE.js +4 -0
- package/dist/chunk-OXKOGLXE.js.map +1 -0
- package/dist/chunk-RPO7RKXJ.js +428 -0
- package/dist/chunk-RPO7RKXJ.js.map +1 -0
- package/dist/chunk-TZUCBWHN.mjs +422 -0
- package/dist/chunk-TZUCBWHN.mjs.map +1 -0
- package/dist/cli/ds.js +8334 -0
- package/dist/cli/flipova.js +5021 -0
- package/dist/config/index.d.mts +65 -70
- package/dist/config/index.d.ts +65 -70
- package/dist/config/index.js +6 -6
- package/dist/config/index.mjs +1 -1
- package/dist/{index-D4qJw_Et.d.mts → index-CpBqkIpd.d.mts} +25 -2
- package/dist/{index-D4qJw_Et.d.ts → index-CpBqkIpd.d.ts} +25 -2
- package/dist/index.d.mts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +499 -298
- package/dist/index.mjs +5 -4
- package/dist/registry/index.d.mts +9693 -0
- package/dist/registry/index.d.ts +9693 -0
- package/dist/registry/index.js +388 -0
- package/dist/registry/index.mjs +3 -0
- package/dist/theme/index.d.mts +46 -49
- package/dist/theme/index.d.ts +46 -49
- package/dist/theme/index.js +7 -39
- package/dist/theme/index.mjs +1 -1
- package/dist/tokens/index.d.mts +265 -130
- package/dist/tokens/index.d.ts +265 -130
- package/dist/tokens/index.js +15 -31
- package/dist/tokens/index.mjs +1 -1
- package/dist/types/index.d.mts +200 -0
- package/dist/types/index.d.ts +200 -0
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/index.mjs +3 -0
- package/dist/types/index.mjs.map +1 -0
- package/dist/ui/index.d.mts +2981 -0
- package/dist/ui/index.d.ts +2981 -0
- package/dist/ui/index.js +729 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/index.mjs +4 -0
- package/dist/ui/index.mjs.map +1 -0
- package/package.json +62 -33
- package/dist/chunk-2VLBOYBU.js +0 -4
- package/dist/chunk-32VWREEH.mjs +0 -8256
- package/dist/chunk-32VWREEH.mjs.map +0 -1
- package/dist/chunk-3RJREGCN.js +0 -8407
- package/dist/chunk-3RJREGCN.js.map +0 -1
- package/dist/chunk-D4QJYQOK.js.map +0 -1
- package/dist/chunk-HS2UOQU4.mjs +0 -3
- package/dist/chunk-IKVONTJC.mjs +0 -397
- package/dist/chunk-IKVONTJC.mjs.map +0 -1
- package/dist/chunk-RRV2Q4SS.mjs +0 -655
- package/dist/chunk-RRV2Q4SS.mjs.map +0 -1
- package/dist/chunk-RUZBEFDO.js +0 -669
- package/dist/chunk-RUZBEFDO.js.map +0 -1
- package/dist/chunk-UBZMVSIN.js +0 -412
- package/dist/chunk-UBZMVSIN.js.map +0 -1
- package/dist/chunk-YTD4AWV2.mjs.map +0 -1
- package/dist/layout/index.d.mts +0 -2529
- package/dist/layout/index.d.ts +0 -2529
- package/dist/layout/index.js +0 -512
- package/dist/layout/index.mjs +0 -3
- package/dist/spacing-CXUulLF9.d.mts +0 -128
- package/dist/spacing-CXUulLF9.d.ts +0 -128
- package/dist/sso/index.js +0 -379
- package/dist/sso/index.js.map +0 -1
- package/dist/sso/index.mjs +0 -374
- package/dist/sso/index.mjs.map +0 -1
- package/dist/studio-v2/cli/index.js +0 -96
- package/dist/web/index.js +0 -6310
- package/dist/web/index.js.map +0 -1
- package/dist/web/index.mjs +0 -6201
- package/dist/web/index.mjs.map +0 -1
- package/studio-v2/apps/web/CHANGELOG.md +0 -7
- package/studio-v2/apps/web/LICENSE +0 -21
- package/studio-v2/apps/web/README.md +0 -56
- package/studio-v2/apps/web/dist/+not-found.html +0 -793
- package/studio-v2/apps/web/dist/_expo/.routes.json +0 -3
- package/studio-v2/apps/web/dist/_expo/static/css/global-a4717de456877faacb88ee482aa99653.css +0 -1
- package/studio-v2/apps/web/dist/_expo/static/js/web/entry-5d96588cc8f2ee5c00754cef9ac6481d.js +0 -15648
- package/studio-v2/apps/web/dist/_expo/static/js/web/index-470f33f64d8c4f7b8d8da2632b2959c2.js +0 -4
- package/studio-v2/apps/web/dist/_expo/static/js/web/index-f7fcd21ae9d8dacf4c88ea5796614af0.js +0 -3
- package/studio-v2/apps/web/dist/_sitemap.html +0 -793
- package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/AntDesign.3f78af31cca60105799838a1a7a59fbd.ttf +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Entypo.31b5ffea3daddc69dd01a1f3d6cf63c5.ttf +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/EvilIcons.140c53a7643ea949007aa9a282153849.ttf +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Feather.ca4b48e04dc1ce10bfbddb262c8b835f.ttf +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome.b06871f281fee6b241d60582ae9369b9.ttf +0 -0
- 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
- 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
- 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
- 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
- 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
- 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
- package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Fontisto.b49ae8ab2dbccb02c4d11caaacf09eab.ttf +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Foundation.e20945d7c929279ef7a6f1db184a4470.ttf +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Ionicons.b4eb097d35f44ed943676fd56f6bdc51.ttf +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialCommunityIcons.6e435534bd35da5fef04168860a9b8fa.ttf +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialIcons.4e85bc9ebe07e0340c9c4fc2f6c38908.ttf +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Octicons.871378c6eab492a3e689a9385dc45a12.ttf +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/SimpleLineIcons.d2285965fe34b05465047401b8595dd0.ttf +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Zocial.1681f34aaca71b8dfb70756bca331eb2.ttf +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/drawer/lib/module/views/assets/toggle-drawer-icon.ae74bb20586a731af545e6b00fe14a09.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/arrow_down.017bc6ba3fc25503e5eb5e53826d48a8.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/error.d1ea1496f9057eb392d5bbf3732a61b7.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/file.19eeb73b9593a38f8e9f418337fc7d10.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/forward.d8b800c443b8972542883e0b9de2bdc6.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/pkg.ab19f4cbc543357183a20571f68380a3.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/sitemap.412dd9275b6b48ad28f5e3d81bb1f626.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/unmatched.20e71bdf79e3a97bf55fd9e164041578.png +0 -0
- package/studio-v2/apps/web/dist/index.html +0 -793
- /package/dist/{layout → registry}/index.js.map +0 -0
- /package/dist/{layout → registry}/index.mjs.map +0 -0
|
@@ -0,0 +1,2981 @@
|
|
|
1
|
+
import React$1 from 'react';
|
|
2
|
+
export { AccordionMeta, AudioMeta, AuthLayoutMeta, AvatarMeta, AvatarPickerMeta, BadgeMeta, BadgeWrapperMeta, BentoLayoutMeta, BlurViewMeta, BlurWrapperMeta, BottomDrawerLayoutMeta, BoxMeta, ButtonMeta, CameraMeta, CardMeta, CenterMeta, CenteredLayoutMeta, CheckboxMeta, ChipMeta, CollapsibleWrapperMeta, ColorPickerMeta, DashboardLayoutMeta, DatePickerMeta, DeckLayoutMeta, DividerMeta, EmojiPickerMeta, FadeInWrapperMeta, FilePickerMeta, FlatListMeta, FlexLayoutMeta, FlipLayoutMeta, FooterLayoutMeta, GifPickerMeta, GradientMeta, GridLayoutMeta, HeaderContentLayoutMeta, IconButtonMeta, IconMeta, IconPickerMeta, ImageMeta, InlineMeta, KeyboardAvoidWrapperMeta, LeftDrawerLayoutMeta, LottieAnimationMeta, MapViewMeta, MasonryLayoutMeta, NumberInputMeta, OTPInputMeta, ParallaxLayoutMeta, PasswordInputMeta, PressableMeta, ProgressBarMeta, RadioGroupMeta, ResponsiveLayoutMeta, RootLayoutMeta, SafeAreaWrapperMeta, ScalePressWrapperMeta, ScrollLayoutMeta, ScrollMeta, SearchInputMeta, SelectMeta, SeparatorMeta, ShimmerWrapperMeta, SidebarLayoutMeta, SkeletonWrapperMeta, SketchLayoutMeta, SlideUpWrapperMeta, SliderMeta, SortableGridLayoutMeta, SpinnerMeta, SplitLayoutMeta, StackMeta, Swipe2ScreenLayoutMeta, SwiperLayoutMeta, SwitchMeta, SystemLayoutMeta, TabsMeta, TextAreaMeta, TextInputMeta, TextMeta, TooltipWrapperMeta, TopDrawerLayoutMeta, TutoLayoutMeta, VideoMeta, VoidLayoutMeta, WebViewMeta, WheelPickerMeta } from '../registry/index.mjs';
|
|
3
|
+
import { StyleProp, ViewStyle, LayoutRectangle } from 'react-native';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import { Breakpoint } from '../tokens/index.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Properties for the Box component.
|
|
9
|
+
*/
|
|
10
|
+
interface BoxProps {
|
|
11
|
+
/** The content to be rendered inside the Box. */
|
|
12
|
+
children?: React$1.ReactNode;
|
|
13
|
+
/** Defines how the Box grows or shrinks to fill available space within a flex container. */
|
|
14
|
+
flex?: number;
|
|
15
|
+
/** Background color of the Box. Can be a theme token or a literal color value. */
|
|
16
|
+
bg?: string;
|
|
17
|
+
/** Padding applied uniformly to all sides. */
|
|
18
|
+
p?: number | string;
|
|
19
|
+
/** Padding applied to the horizontal sides (left and right). */
|
|
20
|
+
px?: number | string;
|
|
21
|
+
/** Padding applied to the vertical sides (top and bottom). */
|
|
22
|
+
py?: number | string;
|
|
23
|
+
/** Margin applied uniformly to all sides. */
|
|
24
|
+
m?: number | string;
|
|
25
|
+
/** Margin applied to the horizontal sides (left and right). */
|
|
26
|
+
mx?: number | string;
|
|
27
|
+
/** Margin applied to the vertical sides (top and bottom). */
|
|
28
|
+
my?: number | string;
|
|
29
|
+
/** Fixed width of the Box. */
|
|
30
|
+
width?: number | string;
|
|
31
|
+
/** Fixed height of the Box. */
|
|
32
|
+
height?: number | string;
|
|
33
|
+
/** Maximum width the Box can grow to. */
|
|
34
|
+
maxWidth?: number | string;
|
|
35
|
+
/** Minimum height the Box must have. */
|
|
36
|
+
minHeight?: number | string;
|
|
37
|
+
/** Border radius for rounding the corners of the Box. */
|
|
38
|
+
borderRadius?: number | string;
|
|
39
|
+
/** Determines how to handle content that overflows the Box's bounds. */
|
|
40
|
+
overflow?: 'visible' | 'hidden' | 'scroll';
|
|
41
|
+
/** Flexbox property to align children along the main axis. */
|
|
42
|
+
justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
43
|
+
/** Flexbox property to align children along the cross axis. */
|
|
44
|
+
alignItems?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline';
|
|
45
|
+
/** Overrides the alignItems value for this specific Box within its parent flex container. */
|
|
46
|
+
alignSelf?: 'auto' | 'flex-start' | 'center' | 'flex-end' | 'stretch';
|
|
47
|
+
/** Any other props (including accessibility and View props) to spread onto the root element. */
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare const _default$9: React$1.NamedExoticComponent<BoxProps>;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Properties for the Center component.
|
|
55
|
+
*/
|
|
56
|
+
interface CenterProps {
|
|
57
|
+
/** The content to be centered horizontally and vertically. */
|
|
58
|
+
children?: React$1.ReactNode;
|
|
59
|
+
/** Any other props (including style and accessibility props) to spread onto the root element. */
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare const _default$8: React$1.NamedExoticComponent<CenterProps>;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Properties for the Inline component.
|
|
67
|
+
*/
|
|
68
|
+
interface InlineProps {
|
|
69
|
+
/** The spacing between children items. Uses React Native gap. Defaults to 8. */
|
|
70
|
+
gap?: number;
|
|
71
|
+
/** The items to be laid out horizontally with wrapping. */
|
|
72
|
+
children?: React$1.ReactNode;
|
|
73
|
+
/** Any other props (including style and accessibility props) to spread onto the root element. */
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare const _default$7: React$1.NamedExoticComponent<InlineProps>;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Properties for the Scroll component.
|
|
81
|
+
*/
|
|
82
|
+
interface ScrollProps {
|
|
83
|
+
/** If true, the scroll view's children are arranged horizontally in a row. */
|
|
84
|
+
horizontal?: boolean;
|
|
85
|
+
/** The content to be rendered inside the scrollable view. */
|
|
86
|
+
children?: React$1.ReactNode;
|
|
87
|
+
/** Any other props (including style and ScrollView props) to spread onto the root element. */
|
|
88
|
+
[key: string]: any;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare const _default$6: React$1.NamedExoticComponent<ScrollProps>;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Properties for the Stack component.
|
|
95
|
+
*/
|
|
96
|
+
interface StackProps {
|
|
97
|
+
/** The axis along which to stack the children. Defaults to 'column'. */
|
|
98
|
+
direction?: 'row' | 'column';
|
|
99
|
+
/** The size of the gap between children. Defaults to 16. */
|
|
100
|
+
gap?: number;
|
|
101
|
+
/** The items to be stacked. */
|
|
102
|
+
children?: React$1.ReactNode;
|
|
103
|
+
/** Any other props (including style and View props) to spread onto the root element. */
|
|
104
|
+
[key: string]: any;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare const _default$5: React$1.NamedExoticComponent<StackProps>;
|
|
108
|
+
|
|
109
|
+
interface BadgeWrapperProps {
|
|
110
|
+
/** Number to display in badge. If 0, no badge is shown unless showZero is true. */
|
|
111
|
+
count?: number;
|
|
112
|
+
/** Show badge even if count is 0 */
|
|
113
|
+
showZero?: boolean;
|
|
114
|
+
/** Badge background color */
|
|
115
|
+
color?: string;
|
|
116
|
+
[key: string]: any;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @component BadgeWrapper
|
|
121
|
+
* @description Wraps an element and places a customizable notification badge in the top right corner.
|
|
122
|
+
*/
|
|
123
|
+
declare const BadgeWrapper: React$1.FC<BadgeWrapperProps>;
|
|
124
|
+
|
|
125
|
+
interface BlurWrapperProps {
|
|
126
|
+
/** Blur intensity (1-100) */
|
|
127
|
+
intensity?: number;
|
|
128
|
+
/** Tint color (light, dark, default) */
|
|
129
|
+
tint?: string;
|
|
130
|
+
[key: string]: any;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @component BlurWrapper
|
|
135
|
+
* @description Wraps children in a frosted glass/blur container.
|
|
136
|
+
*/
|
|
137
|
+
declare const BlurWrapper: React$1.FC<BlurWrapperProps>;
|
|
138
|
+
|
|
139
|
+
interface CollapsibleWrapperProps {
|
|
140
|
+
/** Whether the container is expanded */
|
|
141
|
+
isExpanded?: boolean;
|
|
142
|
+
[key: string]: any;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @component CollapsibleWrapper
|
|
147
|
+
* @description A container that smoothly expands or collapses its children height.
|
|
148
|
+
*/
|
|
149
|
+
declare const CollapsibleWrapper: React$1.FC<CollapsibleWrapperProps>;
|
|
150
|
+
|
|
151
|
+
interface FadeInWrapperProps {
|
|
152
|
+
/** Animation duration in ms */
|
|
153
|
+
duration?: number;
|
|
154
|
+
/** Animation delay in ms */
|
|
155
|
+
delay?: number;
|
|
156
|
+
[key: string]: any;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @component FadeInWrapper
|
|
161
|
+
* @description Animates its children in with a smooth opacity fade on mount.
|
|
162
|
+
*/
|
|
163
|
+
declare const FadeInWrapper: React$1.FC<FadeInWrapperProps>;
|
|
164
|
+
|
|
165
|
+
interface KeyboardAvoidWrapperProps {
|
|
166
|
+
/** Extra offset above keyboard */
|
|
167
|
+
offset?: number;
|
|
168
|
+
[key: string]: any;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @component KeyboardAvoidWrapper
|
|
173
|
+
* @description Automatically handles keyboard layout shifting for its wrapped children.
|
|
174
|
+
*/
|
|
175
|
+
declare const KeyboardAvoidWrapper: React$1.FC<KeyboardAvoidWrapperProps>;
|
|
176
|
+
|
|
177
|
+
interface SafeAreaWrapperProps {
|
|
178
|
+
/** Edges to apply safe area (top, bottom, left, right) */
|
|
179
|
+
edges?: string[];
|
|
180
|
+
[key: string]: any;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* @component SafeAreaWrapper
|
|
185
|
+
* @description A convenient wrapper that applies safe area boundaries to specific sections of children.
|
|
186
|
+
*/
|
|
187
|
+
declare const SafeAreaWrapper: React$1.FC<SafeAreaWrapperProps>;
|
|
188
|
+
|
|
189
|
+
interface ScalePressWrapperProps {
|
|
190
|
+
/** Scale factor when pressed */
|
|
191
|
+
scaleTo?: number;
|
|
192
|
+
[key: string]: any;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @component ScalePressWrapper
|
|
197
|
+
* @description Wraps any element and adds a bouncy shrink effect when pressed.
|
|
198
|
+
*/
|
|
199
|
+
declare const ScalePressWrapper: React$1.FC<ScalePressWrapperProps>;
|
|
200
|
+
|
|
201
|
+
interface ShimmerWrapperProps {
|
|
202
|
+
/** Whether to show the shimmer */
|
|
203
|
+
isLoading?: boolean;
|
|
204
|
+
[key: string]: any;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @component ShimmerWrapper
|
|
209
|
+
* @description Adds a shiny animated loading shimmer effect over its children.
|
|
210
|
+
*/
|
|
211
|
+
declare const ShimmerWrapper: React$1.FC<ShimmerWrapperProps>;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Props for the SkeletonWrapper component.
|
|
215
|
+
*/
|
|
216
|
+
interface SkeletonWrapperProps {
|
|
217
|
+
/** Whether the component is currently loading. If true, shows skeleton. */
|
|
218
|
+
isLoading: boolean;
|
|
219
|
+
/** Children elements to measure and optionally render */
|
|
220
|
+
children: React.ReactNode;
|
|
221
|
+
/** Any other props for the container */
|
|
222
|
+
[key: string]: any;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
declare const _default$4: React$1.NamedExoticComponent<SkeletonWrapperProps>;
|
|
226
|
+
|
|
227
|
+
interface SlideUpWrapperProps {
|
|
228
|
+
/** Animation duration in ms */
|
|
229
|
+
duration?: number;
|
|
230
|
+
/** Animation delay in ms */
|
|
231
|
+
delay?: number;
|
|
232
|
+
/** Distance to slide from in pixels */
|
|
233
|
+
distance?: number;
|
|
234
|
+
[key: string]: any;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @component SlideUpWrapper
|
|
239
|
+
* @description Animates its children sliding up from below on mount.
|
|
240
|
+
*/
|
|
241
|
+
declare const SlideUpWrapper: React$1.FC<SlideUpWrapperProps>;
|
|
242
|
+
|
|
243
|
+
interface TooltipWrapperProps {
|
|
244
|
+
/** Tooltip text */
|
|
245
|
+
text?: string;
|
|
246
|
+
/** Whether tooltip is visible */
|
|
247
|
+
isVisible?: boolean;
|
|
248
|
+
[key: string]: any;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @component TooltipWrapper
|
|
253
|
+
* @description Wraps a component and displays a tooltip bubble near it.
|
|
254
|
+
*/
|
|
255
|
+
declare const TooltipWrapper: React$1.FC<TooltipWrapperProps>;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Properties for the Accordion component.
|
|
259
|
+
*/
|
|
260
|
+
interface AccordionProps {
|
|
261
|
+
/** The text displayed in the header of the accordion. */
|
|
262
|
+
title?: string;
|
|
263
|
+
/** Whether the accordion should be open by default on initial mount. */
|
|
264
|
+
defaultOpen?: boolean;
|
|
265
|
+
/** Background color of the accordion container. */
|
|
266
|
+
background?: string;
|
|
267
|
+
/** Border radius of the accordion container. Can be a theme token size (e.g. 'sm') or a number. */
|
|
268
|
+
borderRadius?: string | number;
|
|
269
|
+
/** Border color of the accordion container. */
|
|
270
|
+
borderColor?: string;
|
|
271
|
+
/** The content to be revealed when the accordion is expanded. */
|
|
272
|
+
children?: React$1.ReactNode;
|
|
273
|
+
/** Callback fired when the accordion's open state changes. */
|
|
274
|
+
onToggle?: (isOpen: boolean) => void;
|
|
275
|
+
/** Any other props to pass down to the container element. */
|
|
276
|
+
[key: string]: any;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
declare const _default$3: React$1.NamedExoticComponent<AccordionProps>;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Props for the Audio component.
|
|
283
|
+
*/
|
|
284
|
+
interface AudioProps {
|
|
285
|
+
/** The source URI of the audio file */
|
|
286
|
+
source: string;
|
|
287
|
+
/** Whether the audio should auto-play */
|
|
288
|
+
autoPlay?: boolean;
|
|
289
|
+
/** Any other props for the container */
|
|
290
|
+
[key: string]: any;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
declare const _default$2: React$1.NamedExoticComponent<AudioProps>;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Properties for the Avatar component.
|
|
297
|
+
*/
|
|
298
|
+
interface AvatarProps {
|
|
299
|
+
/** The URL of the image to display. If omitted, initials will be shown. */
|
|
300
|
+
src?: string;
|
|
301
|
+
/** Explicit initials to display. Overrides derived initials from the alt prop. */
|
|
302
|
+
initials?: string;
|
|
303
|
+
/** The size variant of the avatar. Dictates width, height, and font size. Defaults to 'md'. */
|
|
304
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
305
|
+
/** Alternative text for screen readers. Also used to derive initials if `initials` is not provided. */
|
|
306
|
+
alt?: string;
|
|
307
|
+
/** Any other props (including style) to spread onto the root element. */
|
|
308
|
+
[key: string]: any;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
declare const _default$1: React$1.NamedExoticComponent<AvatarProps>;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Properties for the AvatarPicker component.
|
|
315
|
+
*/
|
|
316
|
+
interface AvatarPickerProps {
|
|
317
|
+
/**
|
|
318
|
+
* Callback fired when an avatar is selected or uploaded.
|
|
319
|
+
* @param uri The URI of the selected image.
|
|
320
|
+
*/
|
|
321
|
+
onChange?: (uri: string) => void;
|
|
322
|
+
/**
|
|
323
|
+
* Currently selected avatar URI.
|
|
324
|
+
*/
|
|
325
|
+
value?: string;
|
|
326
|
+
/**
|
|
327
|
+
* Additional style to apply to the container.
|
|
328
|
+
*/
|
|
329
|
+
style?: StyleProp<ViewStyle>;
|
|
330
|
+
/**
|
|
331
|
+
* Any other properties to pass to the container view.
|
|
332
|
+
*/
|
|
333
|
+
[key: string]: any;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* @component AvatarPicker
|
|
338
|
+
* @description A robust and beautiful avatar picker component.
|
|
339
|
+
* Supports predefined avatars and an intuitive image selection and cropping interface using expo-image-picker.
|
|
340
|
+
*
|
|
341
|
+
* @example
|
|
342
|
+
* <AvatarPicker
|
|
343
|
+
* value={selectedUri}
|
|
344
|
+
* onChange={(uri) => setSelectedUri(uri)}
|
|
345
|
+
* />
|
|
346
|
+
*/
|
|
347
|
+
declare const AvatarPicker: React$1.FC<AvatarPickerProps>;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Properties for the Badge component.
|
|
351
|
+
*/
|
|
352
|
+
interface BadgeProps {
|
|
353
|
+
/** The text content to display inside the badge. */
|
|
354
|
+
label: string;
|
|
355
|
+
/** The visual style variant of the badge, mapped to theme colors. Defaults to 'default'. */
|
|
356
|
+
variant?: 'default' | 'destructive' | 'outline' | 'secondary';
|
|
357
|
+
/** Any other props to spread onto the container element. */
|
|
358
|
+
[key: string]: any;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
declare const _default: React$1.NamedExoticComponent<BadgeProps>;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Properties for the BlurView component.
|
|
365
|
+
*/
|
|
366
|
+
interface BlurViewProps {
|
|
367
|
+
/**
|
|
368
|
+
* A number from 1 to 100 to control the intensity of the blur effect.
|
|
369
|
+
* Higher values mean more blur.
|
|
370
|
+
* @default 50
|
|
371
|
+
*/
|
|
372
|
+
intensity?: number;
|
|
373
|
+
/**
|
|
374
|
+
* The tint color of the blur effect.
|
|
375
|
+
* Can be 'light', 'dark', or 'default'.
|
|
376
|
+
* @default 'default'
|
|
377
|
+
*/
|
|
378
|
+
tint?: 'light' | 'dark' | 'default';
|
|
379
|
+
/**
|
|
380
|
+
* The content to render inside the blurred container.
|
|
381
|
+
*/
|
|
382
|
+
children?: React.ReactNode;
|
|
383
|
+
/**
|
|
384
|
+
* Additional properties to pass down to the container.
|
|
385
|
+
*/
|
|
386
|
+
[key: string]: any;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* A BlurView component that provides a blurred background effect.
|
|
391
|
+
*
|
|
392
|
+
* @description
|
|
393
|
+
* This component is used to create visual depth and hierarchy by applying a blur effect
|
|
394
|
+
* over the underlying content. It wraps `expo-blur` to provide a consistent API and styling.
|
|
395
|
+
*
|
|
396
|
+
* @useCases
|
|
397
|
+
* - Creating modals or overlays where the background content should remain visible but out of focus.
|
|
398
|
+
* - Building floating navigation bars or toolbars with a frosted glass effect.
|
|
399
|
+
* - Emphasizing foreground elements without completely obscuring the background context.
|
|
400
|
+
*
|
|
401
|
+
* @structure
|
|
402
|
+
* - `ExpoBlurView`: The underlying component from `expo-blur` that applies the effect.
|
|
403
|
+
* - Renders children inside the blurred container.
|
|
404
|
+
*
|
|
405
|
+
* @accessibility
|
|
406
|
+
* - Consider contrast and legibility when placing text or interactive elements over a blur.
|
|
407
|
+
* - Ensure the blur does not interfere with the accessibility tree; it is primarily a visual effect.
|
|
408
|
+
*/
|
|
409
|
+
declare const BlurView: React$1.FC<BlurViewProps>;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Properties for the Button component.
|
|
413
|
+
*/
|
|
414
|
+
interface ButtonProps {
|
|
415
|
+
/**
|
|
416
|
+
* The text label to display inside the button.
|
|
417
|
+
*/
|
|
418
|
+
label?: string;
|
|
419
|
+
/**
|
|
420
|
+
* Callback function executed when the button is pressed.
|
|
421
|
+
*/
|
|
422
|
+
onPress?: () => void;
|
|
423
|
+
/**
|
|
424
|
+
* Whether the button is disabled. If true, interactions are ignored and the visual state is adjusted.
|
|
425
|
+
* @default false
|
|
426
|
+
*/
|
|
427
|
+
disabled?: boolean;
|
|
428
|
+
/**
|
|
429
|
+
* Whether the button is in a loading state. If true, an ActivityIndicator is shown and interactions are disabled.
|
|
430
|
+
* @default false
|
|
431
|
+
*/
|
|
432
|
+
loading?: boolean;
|
|
433
|
+
/**
|
|
434
|
+
* The visual style variant of the button.
|
|
435
|
+
* Determines background and text colors.
|
|
436
|
+
* @default 'default'
|
|
437
|
+
*/
|
|
438
|
+
variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
|
|
439
|
+
/**
|
|
440
|
+
* The size of the button, affecting padding, height, and width (for icon size).
|
|
441
|
+
* @default 'default'
|
|
442
|
+
*/
|
|
443
|
+
size?: 'default' | 'sm' | 'lg' | 'icon';
|
|
444
|
+
/**
|
|
445
|
+
* Additional properties to pass down to the underlying Pressable.
|
|
446
|
+
*/
|
|
447
|
+
[key: string]: any;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* A highly customizable Button component for handling user interactions.
|
|
452
|
+
*
|
|
453
|
+
* @description
|
|
454
|
+
* This component provides a styled, accessible pressable area. It supports multiple variants,
|
|
455
|
+
* sizes, and a loading state to indicate background processing.
|
|
456
|
+
*
|
|
457
|
+
* @useCases
|
|
458
|
+
* - Submitting forms or triggering actions.
|
|
459
|
+
* - Navigating between different screens (e.g., as a link variant).
|
|
460
|
+
* - Displaying a loading state while awaiting a network response.
|
|
461
|
+
*
|
|
462
|
+
* @structure
|
|
463
|
+
* - `Pressable`: The core interactive element handling touch events.
|
|
464
|
+
* - `ActivityIndicator`: Conditionally rendered when the button is in a loading state.
|
|
465
|
+
* - `Text`: Displays the button label.
|
|
466
|
+
*
|
|
467
|
+
* @accessibility
|
|
468
|
+
* - Uses `accessibilityRole="button"` to inform screen readers of its purpose.
|
|
469
|
+
* - Manages `accessibilityState` to communicate `disabled` and `busy` (loading) states.
|
|
470
|
+
* - Ensure sufficient color contrast for the text against the button background in all variants.
|
|
471
|
+
*/
|
|
472
|
+
declare const Button: React$1.FC<ButtonProps>;
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Properties for the Camera component.
|
|
476
|
+
*/
|
|
477
|
+
interface CameraProps {
|
|
478
|
+
/**
|
|
479
|
+
* The active camera facing direction ('back' or 'front').
|
|
480
|
+
* @default 'back'
|
|
481
|
+
*/
|
|
482
|
+
facing?: 'back' | 'front';
|
|
483
|
+
/**
|
|
484
|
+
* Whether the camera is active and rendering.
|
|
485
|
+
* Can be used to pause the camera preview.
|
|
486
|
+
* @default true
|
|
487
|
+
*/
|
|
488
|
+
isActive?: boolean;
|
|
489
|
+
/**
|
|
490
|
+
* Callback fired when a photo or video is captured.
|
|
491
|
+
* @param uri The local file URI of the captured media.
|
|
492
|
+
*/
|
|
493
|
+
onCapture?: (uri: string) => void;
|
|
494
|
+
/**
|
|
495
|
+
* Additional properties to pass to the container or underlying camera component.
|
|
496
|
+
*/
|
|
497
|
+
[key: string]: any;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* A camera component for capturing photos or videos.
|
|
502
|
+
*
|
|
503
|
+
* @description
|
|
504
|
+
* This component wraps `expo-camera` to provide a consistent interface for camera integration.
|
|
505
|
+
* It handles permission requests automatically upon mounting.
|
|
506
|
+
*
|
|
507
|
+
* @useCases
|
|
508
|
+
* - Scanning QR codes or barcodes.
|
|
509
|
+
* - Capturing user avatars or profile photos.
|
|
510
|
+
* - Recording video clips within the application.
|
|
511
|
+
*
|
|
512
|
+
* @structure
|
|
513
|
+
* - Manages camera permissions using `useCameraPermissions`.
|
|
514
|
+
* - Conditionally renders a loading state, permission denied state, or the actual `CameraView`.
|
|
515
|
+
* - The `CameraView` fills its container using absolute positioning or flexbox depending on styles.
|
|
516
|
+
*
|
|
517
|
+
* @accessibility
|
|
518
|
+
* - Provides fallback text ("No access to camera") when permissions are denied, which is readable by screen readers.
|
|
519
|
+
* - Ensure that any controls layered over the camera (buttons, overlays) have sufficient contrast and accessibility labels.
|
|
520
|
+
*/
|
|
521
|
+
declare const Camera: React$1.FC<CameraProps>;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Properties for the Card component.
|
|
525
|
+
*/
|
|
526
|
+
interface CardProps {
|
|
527
|
+
/**
|
|
528
|
+
* The content to display inside the card.
|
|
529
|
+
*/
|
|
530
|
+
children?: React.ReactNode;
|
|
531
|
+
/**
|
|
532
|
+
* Additional style or functional properties to pass to the underlying View.
|
|
533
|
+
*/
|
|
534
|
+
[key: string]: any;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* A container component used to group related content and actions.
|
|
539
|
+
*
|
|
540
|
+
* @description
|
|
541
|
+
* The Card component provides a distinct visual boundary (usually with a border, background,
|
|
542
|
+
* and subtle shadow) to separate discrete pieces of information from the rest of the UI.
|
|
543
|
+
*
|
|
544
|
+
* @useCases
|
|
545
|
+
* - Displaying a summary of an item (e.g., a product, user profile, or article snippet).
|
|
546
|
+
* - Grouping related form fields or settings.
|
|
547
|
+
* - Creating modular dashboard widgets.
|
|
548
|
+
*
|
|
549
|
+
* @structure
|
|
550
|
+
* - Wraps its children inside a styled `View`.
|
|
551
|
+
* - Applies theming to backgrounds, borders, and shadows out of the box.
|
|
552
|
+
*
|
|
553
|
+
* @accessibility
|
|
554
|
+
* - Cards themselves are typically just presentational containers.
|
|
555
|
+
* - If a card is interactive as a whole, consider wrapping it in a `Pressable` or passing accessibility roles via `rest`.
|
|
556
|
+
* - Ensure logical heading structures and reading orders inside the card content.
|
|
557
|
+
*/
|
|
558
|
+
declare const Card: React$1.FC<CardProps>;
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Properties for the Checkbox component.
|
|
562
|
+
*/
|
|
563
|
+
interface CheckboxProps {
|
|
564
|
+
/**
|
|
565
|
+
* Whether the checkbox is checked. If provided, the component operates in controlled mode.
|
|
566
|
+
*/
|
|
567
|
+
checked?: boolean;
|
|
568
|
+
/**
|
|
569
|
+
* Callback fired when the checkbox state changes.
|
|
570
|
+
* @param checked The new checked state.
|
|
571
|
+
*/
|
|
572
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
573
|
+
/**
|
|
574
|
+
* Whether the checkbox is disabled.
|
|
575
|
+
* @default false
|
|
576
|
+
*/
|
|
577
|
+
disabled?: boolean;
|
|
578
|
+
/**
|
|
579
|
+
* The text label to display next to the checkbox.
|
|
580
|
+
*/
|
|
581
|
+
label?: string;
|
|
582
|
+
/**
|
|
583
|
+
* Additional properties to pass to the wrapper component.
|
|
584
|
+
*/
|
|
585
|
+
[key: string]: any;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* A control that allows the user to toggle between checked and not checked states.
|
|
590
|
+
*
|
|
591
|
+
* @description
|
|
592
|
+
* This component provides a customizable checkbox with optional labeling. It supports both controlled
|
|
593
|
+
* and uncontrolled modes of operation.
|
|
594
|
+
*
|
|
595
|
+
* @useCases
|
|
596
|
+
* - Selecting one or multiple options from a list.
|
|
597
|
+
* - Agreeing to terms and conditions.
|
|
598
|
+
* - Toggling a boolean setting.
|
|
599
|
+
*
|
|
600
|
+
* @structure
|
|
601
|
+
* - `Pressable`: Wraps the entire component (checkbox + label) to increase the tap target size.
|
|
602
|
+
* - `View`: Renders the visual box.
|
|
603
|
+
* - `Check`: A Lucide icon rendered inside the box when checked.
|
|
604
|
+
* - `Text`: Displays the optional label next to the checkbox.
|
|
605
|
+
*
|
|
606
|
+
* @accessibility
|
|
607
|
+
* - The entire wrapper is pressable to aid users with limited dexterity.
|
|
608
|
+
* - Depending on the use case, consider adding explicit `accessibilityRole="checkbox"` and
|
|
609
|
+
* `accessibilityState={{ checked: logic.checked, disabled: logic.disabled }}` to the Pressable via `rest`.
|
|
610
|
+
*/
|
|
611
|
+
declare const Checkbox: React$1.FC<CheckboxProps>;
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Properties for the Chip component.
|
|
615
|
+
*/
|
|
616
|
+
interface ChipProps {
|
|
617
|
+
/**
|
|
618
|
+
* The text label to display inside the chip.
|
|
619
|
+
*/
|
|
620
|
+
label: string;
|
|
621
|
+
/**
|
|
622
|
+
* Callback fired when the chip is pressed.
|
|
623
|
+
*/
|
|
624
|
+
onPress?: () => void;
|
|
625
|
+
/**
|
|
626
|
+
* Callback fired when the delete icon is pressed.
|
|
627
|
+
* If provided, a delete icon will be rendered.
|
|
628
|
+
*/
|
|
629
|
+
onDelete?: () => void;
|
|
630
|
+
/**
|
|
631
|
+
* Whether the chip is currently in a selected state (affects visual styling).
|
|
632
|
+
* @default false
|
|
633
|
+
*/
|
|
634
|
+
selected?: boolean;
|
|
635
|
+
/**
|
|
636
|
+
* Whether the chip is disabled.
|
|
637
|
+
* @default false
|
|
638
|
+
*/
|
|
639
|
+
disabled?: boolean;
|
|
640
|
+
/**
|
|
641
|
+
* Additional properties to pass to the main wrapper component.
|
|
642
|
+
*/
|
|
643
|
+
[key: string]: any;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* A compact, interactive element used for input, attribute, or action representation.
|
|
648
|
+
*
|
|
649
|
+
* @description
|
|
650
|
+
* Chips are used to represent small blocks of information. They are most commonly used either for
|
|
651
|
+
* tags/categories, selectable options, or deletable items.
|
|
652
|
+
*
|
|
653
|
+
* @useCases
|
|
654
|
+
* - Displaying tags or categories for an article.
|
|
655
|
+
* - Showing applied filters that the user can dismiss.
|
|
656
|
+
* - Offering selectable choices in a compact form.
|
|
657
|
+
*
|
|
658
|
+
* @structure
|
|
659
|
+
* - `Pressable`: Wraps the chip to handle main interactions (like selecting).
|
|
660
|
+
* - `Text`: Displays the chip's label.
|
|
661
|
+
* - An optional delete icon (X) wrapped in a `Pressable` for dismissal.
|
|
662
|
+
*
|
|
663
|
+
* @accessibility
|
|
664
|
+
* - The delete button has a `hitSlop` to increase its touchable area without increasing its visual size.
|
|
665
|
+
* - Consider passing accessibility labels to the delete button if used, to clarify its purpose (e.g., "Remove [tag name]").
|
|
666
|
+
*/
|
|
667
|
+
declare const Chip: React$1.FC<ChipProps>;
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Properties for the ColorPicker component.
|
|
671
|
+
*/
|
|
672
|
+
interface ColorPickerProps {
|
|
673
|
+
/**
|
|
674
|
+
* Callback fired when a color is selected.
|
|
675
|
+
* @param color The hex representation of the selected color.
|
|
676
|
+
*/
|
|
677
|
+
onChange?: (color: string) => void;
|
|
678
|
+
/**
|
|
679
|
+
* Currently selected color in hex format.
|
|
680
|
+
* @default "#FF0000"
|
|
681
|
+
*/
|
|
682
|
+
value?: string;
|
|
683
|
+
/**
|
|
684
|
+
* Additional style to apply to the container.
|
|
685
|
+
*/
|
|
686
|
+
style?: StyleProp<ViewStyle>;
|
|
687
|
+
/**
|
|
688
|
+
* Any other properties to pass to the container view.
|
|
689
|
+
*/
|
|
690
|
+
[key: string]: any;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* @component ColorPicker
|
|
695
|
+
* @description A robust and beautiful hue/saturation/lightness selection interface utilizing react-native-reanimated-color-picker.
|
|
696
|
+
* It provides a premium design with soft shadows, rounded corners, and a polished user interface.
|
|
697
|
+
*
|
|
698
|
+
* @example
|
|
699
|
+
* <ColorPicker
|
|
700
|
+
* value="#3498db"
|
|
701
|
+
* onChange={(color) => console.log(color)}
|
|
702
|
+
* />
|
|
703
|
+
*/
|
|
704
|
+
declare const ColorPicker: React$1.FC<ColorPickerProps>;
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Properties for the DatePicker component.
|
|
708
|
+
*/
|
|
709
|
+
interface DatePickerProps {
|
|
710
|
+
/**
|
|
711
|
+
* The currently selected date.
|
|
712
|
+
* @default new Date()
|
|
713
|
+
*/
|
|
714
|
+
value?: Date;
|
|
715
|
+
/**
|
|
716
|
+
* Callback fired when the user selects a new date.
|
|
717
|
+
* @param date The newly selected Date object.
|
|
718
|
+
*/
|
|
719
|
+
onDateChange?: (date: Date) => void;
|
|
720
|
+
/**
|
|
721
|
+
* Whether the date picker is disabled.
|
|
722
|
+
* @default false
|
|
723
|
+
*/
|
|
724
|
+
disabled?: boolean;
|
|
725
|
+
/**
|
|
726
|
+
* Additional properties to pass to the underlying container or picker component.
|
|
727
|
+
*/
|
|
728
|
+
[key: string]: any;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* A cross-platform component for selecting dates.
|
|
733
|
+
*
|
|
734
|
+
* @description
|
|
735
|
+
* This component provides a unified date selection interface across Web, iOS, and Android.
|
|
736
|
+
* It uses the native HTML5 date input on the web, and `@react-native-community/datetimepicker` on native platforms.
|
|
737
|
+
*
|
|
738
|
+
* @useCases
|
|
739
|
+
* - Selecting birth dates or appointment dates.
|
|
740
|
+
* - Filtering lists by a date range.
|
|
741
|
+
* - Providing date input for form fields.
|
|
742
|
+
*
|
|
743
|
+
* @structure
|
|
744
|
+
* - Manages the visibility state (`show`) of the native date picker modal.
|
|
745
|
+
* - On Web: Renders an `<input type="date">`.
|
|
746
|
+
* - On Native: Renders a `Pressable` trigger that displays the selected date alongside a Calendar icon.
|
|
747
|
+
* Tapping it opens the `DateTimePicker`.
|
|
748
|
+
*
|
|
749
|
+
* @accessibility
|
|
750
|
+
* - The native trigger acts as a button and could benefit from `accessibilityRole="button"`.
|
|
751
|
+
* - For web, the native input manages its own accessibility.
|
|
752
|
+
*/
|
|
753
|
+
declare const DatePicker: React$1.FC<DatePickerProps>;
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Properties for the Divider component.
|
|
757
|
+
*/
|
|
758
|
+
interface DividerProps {
|
|
759
|
+
/**
|
|
760
|
+
* The axis along which the divider should render.
|
|
761
|
+
* @default 'horizontal'
|
|
762
|
+
*/
|
|
763
|
+
orientation?: 'horizontal' | 'vertical';
|
|
764
|
+
/**
|
|
765
|
+
* The thickness (height for horizontal, width for vertical) of the divider in points/pixels.
|
|
766
|
+
* @default 1
|
|
767
|
+
*/
|
|
768
|
+
thickness?: number;
|
|
769
|
+
/**
|
|
770
|
+
* An optional custom color for the divider. Can be a theme token or a literal color string.
|
|
771
|
+
* If omitted, falls back to the theme's border color.
|
|
772
|
+
*/
|
|
773
|
+
color?: string;
|
|
774
|
+
/**
|
|
775
|
+
* Additional properties to pass to the underlying View.
|
|
776
|
+
*/
|
|
777
|
+
[key: string]: any;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* A visual separator used to distinguish between different content sections.
|
|
782
|
+
*
|
|
783
|
+
* @description
|
|
784
|
+
* The Divider component renders a thin line (horizontal or vertical) to visually break up
|
|
785
|
+
* lists, layouts, or distinct conceptual areas of a screen.
|
|
786
|
+
*
|
|
787
|
+
* @useCases
|
|
788
|
+
* - Separating items in a list or menu.
|
|
789
|
+
* - Dividing the header from the main body content.
|
|
790
|
+
* - Creating clear visual boundaries in dense data displays.
|
|
791
|
+
*
|
|
792
|
+
* @structure
|
|
793
|
+
* - Wraps a simple styled `View` that manages its dimensions based on orientation and thickness.
|
|
794
|
+
*
|
|
795
|
+
* @accessibility
|
|
796
|
+
* - Dividers are typically decorative. Consider applying `accessible={false}` and `importantForAccessibility="no"`
|
|
797
|
+
* so they are ignored by screen readers, unless they signify a semantic break that should be announced.
|
|
798
|
+
*/
|
|
799
|
+
declare const Divider: React$1.FC<DividerProps>;
|
|
800
|
+
|
|
801
|
+
interface EmojiPickerProps {
|
|
802
|
+
/** Callback fired when an emoji is selected */
|
|
803
|
+
onChange?: (emoji: string, isAnimated?: boolean) => void;
|
|
804
|
+
/** Currently selected emoji */
|
|
805
|
+
value?: string;
|
|
806
|
+
/** Whether to show animated emojis toggle */
|
|
807
|
+
showAnimated?: boolean;
|
|
808
|
+
[key: string]: any;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* @component EmojiPicker
|
|
813
|
+
* @description A robust emoji picker with category-based selection and Google Noto Animated WebP support.
|
|
814
|
+
*/
|
|
815
|
+
declare const EmojiPicker: React$1.FC<EmojiPickerProps>;
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* Props for the FilePicker component.
|
|
819
|
+
*/
|
|
820
|
+
interface FilePickerProps {
|
|
821
|
+
/**
|
|
822
|
+
* Callback fired when a file is successfully selected.
|
|
823
|
+
* @param file The file object returned by the document picker.
|
|
824
|
+
*/
|
|
825
|
+
onFileSelect?: (file: any) => void;
|
|
826
|
+
/**
|
|
827
|
+
* Disables the file picker, preventing interaction if set to true.
|
|
828
|
+
*/
|
|
829
|
+
disabled?: boolean;
|
|
830
|
+
/**
|
|
831
|
+
* The text label displayed inside the file picker button. Defaults to 'Select a file'.
|
|
832
|
+
*/
|
|
833
|
+
label?: string;
|
|
834
|
+
/**
|
|
835
|
+
* Optional MIME type to restrict file selection (e.g. 'image/*').
|
|
836
|
+
*/
|
|
837
|
+
accept?: string;
|
|
838
|
+
/**
|
|
839
|
+
* Any other props to spread to the underlying Pressable or container.
|
|
840
|
+
*/
|
|
841
|
+
[key: string]: any;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* FilePicker component provides a user interface to select documents or files from the device.
|
|
846
|
+
*
|
|
847
|
+
* Role & Use Cases:
|
|
848
|
+
* Primarily used in forms or settings pages where users need to upload documents, images, or other files.
|
|
849
|
+
* It leverages the `expo-document-picker` to trigger the native file selection UI.
|
|
850
|
+
*
|
|
851
|
+
* Structure:
|
|
852
|
+
* Renders a visually accessible `Pressable` container wrapping an upload icon and a text label.
|
|
853
|
+
*
|
|
854
|
+
* Accessibility:
|
|
855
|
+
* Uses `accessibilityRole="button"` and `accessibilityLabel` to ensure screen readers correctly identify it as an interactive element.
|
|
856
|
+
*/
|
|
857
|
+
declare const FilePicker: React$1.FC<FilePickerProps>;
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* Props for the FlatList component.
|
|
861
|
+
*/
|
|
862
|
+
interface FlatListProps {
|
|
863
|
+
/**
|
|
864
|
+
* An array of data objects to be rendered as a list.
|
|
865
|
+
*/
|
|
866
|
+
data: any[];
|
|
867
|
+
/**
|
|
868
|
+
* Function that takes an item from the data array and returns a React element to render.
|
|
869
|
+
*/
|
|
870
|
+
renderItem: ({ item, index }: {
|
|
871
|
+
item: any;
|
|
872
|
+
index: number;
|
|
873
|
+
}) => React.ReactNode;
|
|
874
|
+
/**
|
|
875
|
+
* Function to extract a unique key for a given item at the specified index.
|
|
876
|
+
* If not provided, it defaults to using `item.id` or the index as a fallback.
|
|
877
|
+
*/
|
|
878
|
+
keyExtractor?: (item: any, index: number) => string;
|
|
879
|
+
/**
|
|
880
|
+
* If true, renders items horizontally instead of vertically.
|
|
881
|
+
*/
|
|
882
|
+
horizontal?: boolean;
|
|
883
|
+
/**
|
|
884
|
+
* Additional properties to pass directly to the React Native FlatList.
|
|
885
|
+
*/
|
|
886
|
+
[key: string]: any;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* FlatList component is a wrapper around React Native's FlatList for efficient rendering of large data lists.
|
|
891
|
+
*
|
|
892
|
+
* Role & Use Cases:
|
|
893
|
+
* Use this component whenever you need to display a scrollable list of items, such as feeds, contact lists, or menus.
|
|
894
|
+
* It is highly performant as it only renders items currently visible on the screen.
|
|
895
|
+
*
|
|
896
|
+
* Structure:
|
|
897
|
+
* Extends the native `FlatList` and automatically applies theme-based styling and meta configurations.
|
|
898
|
+
*
|
|
899
|
+
* Accessibility:
|
|
900
|
+
* Inherits the standard list accessibility features from React Native. Ensure to pass appropriate accessibility props to the `renderItem` components.
|
|
901
|
+
*/
|
|
902
|
+
declare const FlatList: React$1.FC<FlatListProps>;
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* Props for the GifPicker component.
|
|
906
|
+
*/
|
|
907
|
+
interface GifPickerProps {
|
|
908
|
+
/** Callback fired when a GIF is selected */
|
|
909
|
+
onChange?: (gifUrl: string) => void;
|
|
910
|
+
/** Currently selected GIF URL */
|
|
911
|
+
value?: string;
|
|
912
|
+
/** Optional API key for Giphy/Tenor (mocked if not provided) */
|
|
913
|
+
apiKey?: string;
|
|
914
|
+
/** Optional limit of GIFs to fetch */
|
|
915
|
+
limit?: number;
|
|
916
|
+
/** Custom styles */
|
|
917
|
+
style?: any;
|
|
918
|
+
/** Any other props */
|
|
919
|
+
[key: string]: any;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* @component GifPicker
|
|
924
|
+
* @description A robust GIF picker that integrates searching and selecting animated GIFs, fully typed and styled.
|
|
925
|
+
*/
|
|
926
|
+
declare const GifPicker: React$1.FC<GifPickerProps>;
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* Props for the Gradient component.
|
|
930
|
+
*/
|
|
931
|
+
interface GradientProps {
|
|
932
|
+
/**
|
|
933
|
+
* An array of colors that represent the stops in the gradient.
|
|
934
|
+
* e.g., ['#ff0000', '#00ff00']
|
|
935
|
+
*/
|
|
936
|
+
colors: string[];
|
|
937
|
+
/**
|
|
938
|
+
* Optional starting coordinate of the gradient, specified as { x, y } where x and y are between 0 and 1.
|
|
939
|
+
*/
|
|
940
|
+
start?: {
|
|
941
|
+
x: number;
|
|
942
|
+
y: number;
|
|
943
|
+
};
|
|
944
|
+
/**
|
|
945
|
+
* Optional ending coordinate of the gradient, specified as { x, y } where x and y are between 0 and 1.
|
|
946
|
+
*/
|
|
947
|
+
end?: {
|
|
948
|
+
x: number;
|
|
949
|
+
y: number;
|
|
950
|
+
};
|
|
951
|
+
/**
|
|
952
|
+
* Child components to render inside the gradient view.
|
|
953
|
+
*/
|
|
954
|
+
children?: React.ReactNode;
|
|
955
|
+
/**
|
|
956
|
+
* Additional properties to spread to the underlying linear gradient component.
|
|
957
|
+
*/
|
|
958
|
+
[key: string]: any;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* Gradient component applies a linear color gradient to its children or background.
|
|
963
|
+
*
|
|
964
|
+
* Role & Use Cases:
|
|
965
|
+
* Used for decorative backgrounds, stylized buttons, or overlay effects to enhance the visual design.
|
|
966
|
+
*
|
|
967
|
+
* Structure:
|
|
968
|
+
* Wraps `expo-linear-gradient` to provide a consistent API and theming.
|
|
969
|
+
*
|
|
970
|
+
* Accessibility:
|
|
971
|
+
* Primarily a visual enhancement. If the gradient contains important content, ensure the children themselves are accessible.
|
|
972
|
+
*/
|
|
973
|
+
declare const Gradient: React$1.FC<GradientProps>;
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* Props for the Icon component.
|
|
977
|
+
*/
|
|
978
|
+
interface IconProps {
|
|
979
|
+
/**
|
|
980
|
+
* The name of the icon to render, corresponding to a component name in `lucide-react-native`.
|
|
981
|
+
* e.g., 'Home', 'Settings'.
|
|
982
|
+
*/
|
|
983
|
+
name: string;
|
|
984
|
+
/**
|
|
985
|
+
* The size of the icon in pixels. Defaults to 24.
|
|
986
|
+
*/
|
|
987
|
+
size?: number;
|
|
988
|
+
/**
|
|
989
|
+
* The color of the icon. Falls back to the theme's foreground color if not specified.
|
|
990
|
+
*/
|
|
991
|
+
color?: string;
|
|
992
|
+
/**
|
|
993
|
+
* Additional props to pass to the wrapping View container.
|
|
994
|
+
*/
|
|
995
|
+
[key: string]: any;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* Icon component provides a generic wrapper for rendering vector icons.
|
|
1000
|
+
*
|
|
1001
|
+
* Role & Use Cases:
|
|
1002
|
+
* Used to display visual symbols for actions, navigation, or status.
|
|
1003
|
+
* Relies on `lucide-react-native` for the icon set.
|
|
1004
|
+
*
|
|
1005
|
+
* Structure:
|
|
1006
|
+
* Dynamically imports and renders an icon based on the provided name string. Fallbacks to `HelpCircle` if the name is not found.
|
|
1007
|
+
*
|
|
1008
|
+
* Accessibility:
|
|
1009
|
+
* Decorative by default. Wrap in a `Pressable` with an `accessibilityLabel` or add accessibility props if the icon conveys standalone semantic meaning.
|
|
1010
|
+
*/
|
|
1011
|
+
declare const Icon: React$1.FC<IconProps>;
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* Props for the IconButton component.
|
|
1015
|
+
*/
|
|
1016
|
+
interface IconButtonProps {
|
|
1017
|
+
/**
|
|
1018
|
+
* The name of the icon to display, corresponding to a `lucide-react-native` component.
|
|
1019
|
+
*/
|
|
1020
|
+
icon: string;
|
|
1021
|
+
/**
|
|
1022
|
+
* Callback executed when the button is pressed.
|
|
1023
|
+
*/
|
|
1024
|
+
onPress?: () => void;
|
|
1025
|
+
/**
|
|
1026
|
+
* The size of the icon in pixels. The button container will scale accordingly.
|
|
1027
|
+
*/
|
|
1028
|
+
size?: number;
|
|
1029
|
+
/**
|
|
1030
|
+
* Disables the button, applying a visual opacity and preventing interaction.
|
|
1031
|
+
*/
|
|
1032
|
+
disabled?: boolean;
|
|
1033
|
+
/**
|
|
1034
|
+
* Visual variant of the button:
|
|
1035
|
+
* - 'default': Solid background with primary theme colors.
|
|
1036
|
+
* - 'ghost': Transparent background.
|
|
1037
|
+
* - 'outline': Transparent background with a border.
|
|
1038
|
+
*/
|
|
1039
|
+
variant?: 'default' | 'ghost' | 'outline';
|
|
1040
|
+
/**
|
|
1041
|
+
* Additional props to pass down to the wrapping Pressable component.
|
|
1042
|
+
*/
|
|
1043
|
+
[key: string]: any;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* IconButton component renders a pressable icon with customizable variants and sizes.
|
|
1048
|
+
*
|
|
1049
|
+
* Role & Use Cases:
|
|
1050
|
+
* Ideal for standalone icon actions like 'close', 'edit', 'favorite', or navigation triggers.
|
|
1051
|
+
*
|
|
1052
|
+
* Structure:
|
|
1053
|
+
* Wraps a dynamic vector icon (`lucide-react-native`) inside a `Pressable`.
|
|
1054
|
+
* Supports theming variants ('default', 'ghost', 'outline').
|
|
1055
|
+
*
|
|
1056
|
+
* Accessibility:
|
|
1057
|
+
* Includes `accessibilityRole="button"`. Ensure consumers provide a meaningful `accessibilityLabel`
|
|
1058
|
+
* (via `rest` props) since icons do not contain visible text.
|
|
1059
|
+
*/
|
|
1060
|
+
declare const IconButton: React$1.FC<IconButtonProps>;
|
|
1061
|
+
|
|
1062
|
+
/**
|
|
1063
|
+
* Props for the IconPicker component.
|
|
1064
|
+
*/
|
|
1065
|
+
interface IconPickerProps {
|
|
1066
|
+
/** Callback fired when an icon is selected */
|
|
1067
|
+
onChange?: (iconName: string) => void;
|
|
1068
|
+
/** Currently selected icon */
|
|
1069
|
+
value?: string;
|
|
1070
|
+
/** Custom styles */
|
|
1071
|
+
style?: any;
|
|
1072
|
+
/** Catch-all for other props */
|
|
1073
|
+
[key: string]: any;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* @component IconPicker
|
|
1078
|
+
* @description A robust icon picker with a searchable grid of standard icons. Beautifully styled and typed.
|
|
1079
|
+
*/
|
|
1080
|
+
declare const IconPicker: React$1.FC<IconPickerProps>;
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* Props for the Image component.
|
|
1084
|
+
*/
|
|
1085
|
+
interface ImageProps {
|
|
1086
|
+
/**
|
|
1087
|
+
* The source URI of the image to display.
|
|
1088
|
+
*/
|
|
1089
|
+
src: string;
|
|
1090
|
+
/**
|
|
1091
|
+
* Alternative text description for accessibility.
|
|
1092
|
+
*/
|
|
1093
|
+
alt?: string;
|
|
1094
|
+
/**
|
|
1095
|
+
* Determines how the image should be resized to fit its container.
|
|
1096
|
+
* Maps to `expo-image`'s `contentFit` prop.
|
|
1097
|
+
* - 'cover': Scales the image uniformly so both dimensions are equal to or greater than the corresponding limits.
|
|
1098
|
+
* - 'contain': Scales the image uniformly so both dimensions are equal to or less than the corresponding limits.
|
|
1099
|
+
* - 'stretch': Scales the image non-uniformly to exactly match the container bounds.
|
|
1100
|
+
*/
|
|
1101
|
+
resizeMode?: 'cover' | 'contain' | 'stretch';
|
|
1102
|
+
/**
|
|
1103
|
+
* Additional props to pass to the outer container View.
|
|
1104
|
+
*/
|
|
1105
|
+
[key: string]: any;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* Image component provides a highly performant image renderer using `expo-image`.
|
|
1110
|
+
*
|
|
1111
|
+
* Role & Use Cases:
|
|
1112
|
+
* Use for rendering local, remote, or cached images across the application.
|
|
1113
|
+
* Excellent for lists and grids due to its high performance and caching capabilities.
|
|
1114
|
+
*
|
|
1115
|
+
* Structure:
|
|
1116
|
+
* Wraps `ExpoImage` inside a generic `View` to allow consistent container styling.
|
|
1117
|
+
* Applies a default 200ms transition for smooth loading.
|
|
1118
|
+
*
|
|
1119
|
+
* Accessibility:
|
|
1120
|
+
* Utilizes the `accessibilityLabel` mapped from the `alt` prop to ensure screen readers can describe the image.
|
|
1121
|
+
*/
|
|
1122
|
+
declare const Image: React$1.FC<ImageProps>;
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* Props for the LottieAnimation component.
|
|
1126
|
+
*/
|
|
1127
|
+
interface LottieAnimationProps {
|
|
1128
|
+
/**
|
|
1129
|
+
* The source of the animation. Can be a local JSON file (via `require`) or a remote URI string.
|
|
1130
|
+
*/
|
|
1131
|
+
source: any;
|
|
1132
|
+
/**
|
|
1133
|
+
* Indicates whether the animation should start playing automatically when mounted. Defaults to true.
|
|
1134
|
+
*/
|
|
1135
|
+
autoPlay?: boolean;
|
|
1136
|
+
/**
|
|
1137
|
+
* Indicates whether the animation should loop continuously. Defaults to true.
|
|
1138
|
+
*/
|
|
1139
|
+
loop?: boolean;
|
|
1140
|
+
/**
|
|
1141
|
+
* Additional properties to pass to the underlying container View.
|
|
1142
|
+
*/
|
|
1143
|
+
[key: string]: any;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
/**
|
|
1147
|
+
* LottieAnimation component renders high-quality vector animations using `lottie-react-native`.
|
|
1148
|
+
*
|
|
1149
|
+
* Role & Use Cases:
|
|
1150
|
+
* Ideal for onboarding screens, success states, or complex loading indicators.
|
|
1151
|
+
*
|
|
1152
|
+
* Structure:
|
|
1153
|
+
* Wraps `LottieView` inside a `View` container to control layout and sizing.
|
|
1154
|
+
* Ensures the animation source is correctly parsed whether it's a local require() or a remote URI string.
|
|
1155
|
+
*
|
|
1156
|
+
* Accessibility:
|
|
1157
|
+
* As animations are primarily visual, consider providing a textual description nearby or adding `accessibilityLabel`
|
|
1158
|
+
* to the container for screen readers if the animation conveys critical information.
|
|
1159
|
+
*/
|
|
1160
|
+
declare const LottieAnimation: React$1.FC<LottieAnimationProps>;
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Props for the MapView component.
|
|
1164
|
+
*/
|
|
1165
|
+
interface MapViewProps {
|
|
1166
|
+
/**
|
|
1167
|
+
* The initial latitude coordinate for the center of the map. Defaults to 48.8566 (Paris).
|
|
1168
|
+
*/
|
|
1169
|
+
latitude?: number;
|
|
1170
|
+
/**
|
|
1171
|
+
* The initial longitude coordinate for the center of the map. Defaults to 2.3522 (Paris).
|
|
1172
|
+
*/
|
|
1173
|
+
longitude?: number;
|
|
1174
|
+
/**
|
|
1175
|
+
* The initial zoom level of the map. Higher values zoom in closer. Defaults to 12.
|
|
1176
|
+
*/
|
|
1177
|
+
zoom?: number;
|
|
1178
|
+
/**
|
|
1179
|
+
* Additional properties to pass to the outer View container.
|
|
1180
|
+
*/
|
|
1181
|
+
[key: string]: any;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* MapView component integrates `react-native-maps` for displaying interactive maps.
|
|
1186
|
+
*
|
|
1187
|
+
* Role & Use Cases:
|
|
1188
|
+
* Useful for showing locations, tracking routes, or displaying geographical data.
|
|
1189
|
+
* Defaults to using the Google Maps provider (`PROVIDER_GOOGLE`).
|
|
1190
|
+
*
|
|
1191
|
+
* Structure:
|
|
1192
|
+
* Wraps `RNMapView` inside a stylized `View` container. Uses `StyleSheet.absoluteFill`
|
|
1193
|
+
* to ensure the map fills its container completely.
|
|
1194
|
+
*
|
|
1195
|
+
* Accessibility:
|
|
1196
|
+
* Map interactions can be complex for screen readers. Ensure to provide alternative representations
|
|
1197
|
+
* of the map data (like a list of locations) if the map is central to the user experience.
|
|
1198
|
+
*/
|
|
1199
|
+
declare const MapView: React$1.FC<MapViewProps>;
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* Props for the NumberInput component.
|
|
1203
|
+
*/
|
|
1204
|
+
interface NumberInputProps {
|
|
1205
|
+
/** The current numeric value */
|
|
1206
|
+
value?: number;
|
|
1207
|
+
/** Callback when value changes */
|
|
1208
|
+
onChange?: (val: number) => void;
|
|
1209
|
+
/** Minimum value allowed */
|
|
1210
|
+
min?: number;
|
|
1211
|
+
/** Maximum value allowed */
|
|
1212
|
+
max?: number;
|
|
1213
|
+
/** Step amount for the increment/decrement buttons */
|
|
1214
|
+
step?: number;
|
|
1215
|
+
/** Whether decimal values are allowed */
|
|
1216
|
+
allowDecimal?: boolean;
|
|
1217
|
+
/** Error message to display below the input */
|
|
1218
|
+
error?: string;
|
|
1219
|
+
/** Additional styling or wrapper props */
|
|
1220
|
+
[key: string]: any;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* @component NumberInput
|
|
1225
|
+
* @description A highly robust numeric input with increment/decrement steppers and format validation.
|
|
1226
|
+
*/
|
|
1227
|
+
declare const NumberInput: React$1.FC<NumberInputProps>;
|
|
1228
|
+
|
|
1229
|
+
interface OTPInputProps {
|
|
1230
|
+
/** The length of the OTP (number of cells) */
|
|
1231
|
+
length?: number;
|
|
1232
|
+
/** Current value of the OTP */
|
|
1233
|
+
value?: string;
|
|
1234
|
+
/** Callback when the value changes */
|
|
1235
|
+
onChangeText?: (val: string) => void;
|
|
1236
|
+
[key: string]: any;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* @component OTPInput
|
|
1241
|
+
* @description An auto-advancing, multi-cell verification code input.
|
|
1242
|
+
*/
|
|
1243
|
+
declare const OTPInput: React$1.FC<OTPInputProps>;
|
|
1244
|
+
|
|
1245
|
+
interface PasswordInputProps {
|
|
1246
|
+
/** The current password value */
|
|
1247
|
+
value?: string;
|
|
1248
|
+
/** Callback fired when the text changes */
|
|
1249
|
+
onChangeText?: (val: string) => void;
|
|
1250
|
+
/** Placeholder text for the input */
|
|
1251
|
+
placeholder?: string;
|
|
1252
|
+
/** Whether to show the strength meter. Default: true */
|
|
1253
|
+
showStrengthMeter?: boolean;
|
|
1254
|
+
/** Additional styling */
|
|
1255
|
+
style?: ViewStyle;
|
|
1256
|
+
[key: string]: any;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* @component PasswordInput
|
|
1261
|
+
* @description A secure text input with visibility toggle and a visual strength meter.
|
|
1262
|
+
*/
|
|
1263
|
+
declare const PasswordInput: React$1.FC<PasswordInputProps>;
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
* Props for the Pressable component.
|
|
1267
|
+
* Defines the contract for external interactions.
|
|
1268
|
+
*/
|
|
1269
|
+
interface PressableProps {
|
|
1270
|
+
/**
|
|
1271
|
+
* Callback invoked when the user presses the component.
|
|
1272
|
+
*/
|
|
1273
|
+
onPress?: () => void;
|
|
1274
|
+
/**
|
|
1275
|
+
* If true, disables all touch interactions and visually dims the component.
|
|
1276
|
+
*/
|
|
1277
|
+
disabled?: boolean;
|
|
1278
|
+
/**
|
|
1279
|
+
* The content to be rendered inside the pressable area.
|
|
1280
|
+
*/
|
|
1281
|
+
children?: React.ReactNode;
|
|
1282
|
+
/**
|
|
1283
|
+
* Additional props to pass down to the underlying React Native Pressable.
|
|
1284
|
+
*/
|
|
1285
|
+
[key: string]: any;
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* A highly customizable wrapper around React Native's Pressable component.
|
|
1290
|
+
* It serves as the base for building interactive elements like buttons, list items, and tabs.
|
|
1291
|
+
*
|
|
1292
|
+
* **Use Cases:**
|
|
1293
|
+
* - Creating custom buttons or interactive cards.
|
|
1294
|
+
* - Making any view respond to touch events.
|
|
1295
|
+
*
|
|
1296
|
+
* **Structure:**
|
|
1297
|
+
* Utilizes the native `Pressable` to capture touch interactions without adding additional DOM/View hierarchy.
|
|
1298
|
+
*
|
|
1299
|
+
* **Accessibility Considerations:**
|
|
1300
|
+
* - Ensure `accessibilityRole` and `accessibilityLabel` are passed via props for screen readers.
|
|
1301
|
+
* - Visual feedback is necessary (opacity, background color change) when pressed, which can be managed via the `style` prop or the `disabled` state.
|
|
1302
|
+
*/
|
|
1303
|
+
declare const Pressable: React$1.FC<PressableProps>;
|
|
1304
|
+
|
|
1305
|
+
/**
|
|
1306
|
+
* Props for the ProgressBar component.
|
|
1307
|
+
*/
|
|
1308
|
+
interface ProgressBarProps {
|
|
1309
|
+
/**
|
|
1310
|
+
* The current progress value as a percentage (from 0 to 100).
|
|
1311
|
+
*/
|
|
1312
|
+
progress?: number;
|
|
1313
|
+
/**
|
|
1314
|
+
* Additional props to pass down to the container View.
|
|
1315
|
+
*/
|
|
1316
|
+
[key: string]: any;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* A visual component that displays the completion progress of a task.
|
|
1321
|
+
*
|
|
1322
|
+
* **Use Cases:**
|
|
1323
|
+
* - Showing loading progress.
|
|
1324
|
+
* - Indicating completion percentage of form steps.
|
|
1325
|
+
*
|
|
1326
|
+
* **Structure:**
|
|
1327
|
+
* A container view with a nested fill view. The width of the nested view represents the progress.
|
|
1328
|
+
*
|
|
1329
|
+
* **Accessibility Considerations:**
|
|
1330
|
+
* - Provide `accessibilityRole="progressbar"` (handled via props if needed).
|
|
1331
|
+
* - Consider passing `accessibilityValue={{ now: logic.progress, min: 0, max: 100 }}` to make it readable by screen readers.
|
|
1332
|
+
*/
|
|
1333
|
+
declare const ProgressBar: React$1.FC<ProgressBarProps>;
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* Props for the RadioGroup component.
|
|
1337
|
+
*/
|
|
1338
|
+
interface RadioGroupProps {
|
|
1339
|
+
/**
|
|
1340
|
+
* The currently selected value.
|
|
1341
|
+
*/
|
|
1342
|
+
value?: string;
|
|
1343
|
+
/**
|
|
1344
|
+
* Callback fired when a new radio option is selected.
|
|
1345
|
+
*/
|
|
1346
|
+
onValueChange?: (value: string) => void;
|
|
1347
|
+
/**
|
|
1348
|
+
* Array of options to display in the radio group.
|
|
1349
|
+
*/
|
|
1350
|
+
options: {
|
|
1351
|
+
label: string;
|
|
1352
|
+
value: string;
|
|
1353
|
+
}[];
|
|
1354
|
+
/**
|
|
1355
|
+
* If true, disables the entire group and prevents selection changes.
|
|
1356
|
+
*/
|
|
1357
|
+
disabled?: boolean;
|
|
1358
|
+
/**
|
|
1359
|
+
* Additional props to pass to the container view.
|
|
1360
|
+
*/
|
|
1361
|
+
[key: string]: any;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
/**
|
|
1365
|
+
* A group of radio buttons allowing a single selection from multiple options.
|
|
1366
|
+
*
|
|
1367
|
+
* **Use Cases:**
|
|
1368
|
+
* - Form inputs requiring a single choice from a visible list of options.
|
|
1369
|
+
* - Settings panels where users must select one active mode or preference.
|
|
1370
|
+
*
|
|
1371
|
+
* **Structure:**
|
|
1372
|
+
* A container holding multiple `Pressable` items. Each item contains a custom radio button graphic
|
|
1373
|
+
* (built with nested views) and a text label.
|
|
1374
|
+
*
|
|
1375
|
+
* **Accessibility Considerations:**
|
|
1376
|
+
* - Should ideally group choices via `accessibilityRole="radiogroup"`.
|
|
1377
|
+
* - Each item should have `accessibilityRole="radio"` and `accessibilityState={{ checked: isSelected }}`.
|
|
1378
|
+
*/
|
|
1379
|
+
declare const RadioGroup: React$1.FC<RadioGroupProps>;
|
|
1380
|
+
|
|
1381
|
+
interface SearchInputProps {
|
|
1382
|
+
/** The search text */
|
|
1383
|
+
value?: string;
|
|
1384
|
+
/** Callback on text change */
|
|
1385
|
+
onChangeText?: (val: string) => void;
|
|
1386
|
+
/** Debounce time in ms. Default 300 */
|
|
1387
|
+
debounceMs?: number;
|
|
1388
|
+
/** Placeholder text */
|
|
1389
|
+
placeholder?: string;
|
|
1390
|
+
/** Additional styling */
|
|
1391
|
+
style?: ViewStyle;
|
|
1392
|
+
[key: string]: any;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* @component SearchInput
|
|
1397
|
+
* @description A specialized input for searching with debounce and a clear button.
|
|
1398
|
+
*/
|
|
1399
|
+
declare const SearchInput: React$1.FC<SearchInputProps>;
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Props for the Select component.
|
|
1403
|
+
*/
|
|
1404
|
+
interface SelectProps {
|
|
1405
|
+
/**
|
|
1406
|
+
* The currently selected value.
|
|
1407
|
+
*/
|
|
1408
|
+
value?: string;
|
|
1409
|
+
/**
|
|
1410
|
+
* Callback fired when a new option is selected.
|
|
1411
|
+
*/
|
|
1412
|
+
onValueChange?: (value: string) => void;
|
|
1413
|
+
/**
|
|
1414
|
+
* List of available choices to pick from.
|
|
1415
|
+
*/
|
|
1416
|
+
options: {
|
|
1417
|
+
label: string;
|
|
1418
|
+
value: string;
|
|
1419
|
+
}[];
|
|
1420
|
+
/**
|
|
1421
|
+
* Temporary text shown when no value is selected.
|
|
1422
|
+
*/
|
|
1423
|
+
placeholder?: string;
|
|
1424
|
+
/**
|
|
1425
|
+
* Disables interaction with the picker.
|
|
1426
|
+
*/
|
|
1427
|
+
disabled?: boolean;
|
|
1428
|
+
/**
|
|
1429
|
+
* Additional props to pass to the container view.
|
|
1430
|
+
*/
|
|
1431
|
+
[key: string]: any;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
/**
|
|
1435
|
+
* A dropdown selection component.
|
|
1436
|
+
*
|
|
1437
|
+
* **Use Cases:**
|
|
1438
|
+
* - Forms requiring the user to choose one option from a long list.
|
|
1439
|
+
* - Filters or settings where space is limited and options are mutually exclusive.
|
|
1440
|
+
*
|
|
1441
|
+
* **Structure:**
|
|
1442
|
+
* Wraps `@react-native-picker/picker` within a styled container view. The Picker fills the container seamlessly using `absoluteFill`.
|
|
1443
|
+
*
|
|
1444
|
+
* **Accessibility Considerations:**
|
|
1445
|
+
* - The underlying Picker maps to native picker accessibility controls.
|
|
1446
|
+
* - Ensure `accessibilityLabel` is provided (via props) so screen readers can announce the purpose of the picker.
|
|
1447
|
+
*/
|
|
1448
|
+
declare const Select: React$1.FC<SelectProps>;
|
|
1449
|
+
|
|
1450
|
+
/**
|
|
1451
|
+
* Props for the Separator component.
|
|
1452
|
+
*/
|
|
1453
|
+
interface SeparatorProps {
|
|
1454
|
+
/**
|
|
1455
|
+
* The orientation of the separator, deciding if it renders as a line horizontally or vertically.
|
|
1456
|
+
*/
|
|
1457
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1458
|
+
/**
|
|
1459
|
+
* Additional props to pass down to the container View.
|
|
1460
|
+
*/
|
|
1461
|
+
[key: string]: any;
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
/**
|
|
1465
|
+
* A visual divider to separate content vertically or horizontally.
|
|
1466
|
+
*
|
|
1467
|
+
* **Use Cases:**
|
|
1468
|
+
* - Dividing list items.
|
|
1469
|
+
* - Separating sections of a layout visually.
|
|
1470
|
+
*
|
|
1471
|
+
* **Structure:**
|
|
1472
|
+
* A simple View that alters its width and height based on the `orientation` prop.
|
|
1473
|
+
*
|
|
1474
|
+
* **Accessibility Considerations:**
|
|
1475
|
+
* - Normally purely decorative, so it doesn't need to be read by screen readers.
|
|
1476
|
+
* - Consider passing `accessibilityRole="none"` or `accessible={false}` if needed.
|
|
1477
|
+
*/
|
|
1478
|
+
declare const Separator: React$1.FC<SeparatorProps>;
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* Props for the Slider component.
|
|
1482
|
+
*/
|
|
1483
|
+
interface SliderProps {
|
|
1484
|
+
/**
|
|
1485
|
+
* The current numerical value of the slider.
|
|
1486
|
+
*/
|
|
1487
|
+
value?: number;
|
|
1488
|
+
/**
|
|
1489
|
+
* Callback fired when the slider value changes.
|
|
1490
|
+
*/
|
|
1491
|
+
onValueChange?: (value: number) => void;
|
|
1492
|
+
/**
|
|
1493
|
+
* The minimum allowable value.
|
|
1494
|
+
*/
|
|
1495
|
+
min?: number;
|
|
1496
|
+
/**
|
|
1497
|
+
* The maximum allowable value.
|
|
1498
|
+
*/
|
|
1499
|
+
max?: number;
|
|
1500
|
+
/**
|
|
1501
|
+
* The step size between values.
|
|
1502
|
+
*/
|
|
1503
|
+
step?: number;
|
|
1504
|
+
/**
|
|
1505
|
+
* If true, disables user interaction with the slider.
|
|
1506
|
+
*/
|
|
1507
|
+
disabled?: boolean;
|
|
1508
|
+
/**
|
|
1509
|
+
* Additional props to pass to the container view.
|
|
1510
|
+
*/
|
|
1511
|
+
[key: string]: any;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* A slider component for selecting a value from a continuous or discrete range.
|
|
1516
|
+
*
|
|
1517
|
+
* **Use Cases:**
|
|
1518
|
+
* - Volume or brightness controls.
|
|
1519
|
+
* - Selecting a price range or age.
|
|
1520
|
+
*
|
|
1521
|
+
* **Structure:**
|
|
1522
|
+
* Wraps `@react-native-community/slider` to apply unified theme colors and spacing.
|
|
1523
|
+
*
|
|
1524
|
+
* **Accessibility Considerations:**
|
|
1525
|
+
* - The native slider handles basic accessibility (e.g., increment/decrement actions).
|
|
1526
|
+
* - Always pass an `accessibilityLabel` or use an adjacent text label so the user knows what the slider controls.
|
|
1527
|
+
*/
|
|
1528
|
+
declare const Slider: React$1.FC<SliderProps>;
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
* Props for the Spinner component.
|
|
1532
|
+
*/
|
|
1533
|
+
interface SpinnerProps {
|
|
1534
|
+
/**
|
|
1535
|
+
* Size of the spinner. Usually 'small' or 'large'.
|
|
1536
|
+
* Numeric values fallback to 'small' on native platforms, though scaling could be applied.
|
|
1537
|
+
*/
|
|
1538
|
+
size?: 'small' | 'large' | number;
|
|
1539
|
+
/**
|
|
1540
|
+
* Optional custom color for the spinner. Falls back to theme primary color.
|
|
1541
|
+
*/
|
|
1542
|
+
color?: string;
|
|
1543
|
+
/**
|
|
1544
|
+
* Additional props to pass to the container view.
|
|
1545
|
+
*/
|
|
1546
|
+
[key: string]: any;
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
/**
|
|
1550
|
+
* A loading spinner component to indicate activity or loading state.
|
|
1551
|
+
*
|
|
1552
|
+
* **Use Cases:**
|
|
1553
|
+
* - Showing that data is being fetched.
|
|
1554
|
+
* - Indicating a processing state on a button or screen.
|
|
1555
|
+
*
|
|
1556
|
+
* **Structure:**
|
|
1557
|
+
* Wraps React Native's native `ActivityIndicator` inside a `View` container,
|
|
1558
|
+
* applying theme colors automatically.
|
|
1559
|
+
*
|
|
1560
|
+
* **Accessibility Considerations:**
|
|
1561
|
+
* - Ensure `accessibilityLabel` (e.g., "Loading...") is passed so screen readers can announce the loading state.
|
|
1562
|
+
* - Often used with `accessibilityRole="progressbar"`.
|
|
1563
|
+
*/
|
|
1564
|
+
declare const Spinner: React$1.FC<SpinnerProps>;
|
|
1565
|
+
|
|
1566
|
+
/**
|
|
1567
|
+
* Props for the Switch component.
|
|
1568
|
+
*/
|
|
1569
|
+
interface SwitchProps {
|
|
1570
|
+
/**
|
|
1571
|
+
* The controlled checked state of the switch.
|
|
1572
|
+
* If provided, the switch operates in controlled mode and relies on `onCheckedChange` to update its state.
|
|
1573
|
+
*/
|
|
1574
|
+
checked?: boolean;
|
|
1575
|
+
/**
|
|
1576
|
+
* Callback invoked when the switch's checked state changes.
|
|
1577
|
+
* Receives the new boolean state as its argument.
|
|
1578
|
+
*/
|
|
1579
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
1580
|
+
/**
|
|
1581
|
+
* Disables the switch, preventing user interaction and altering its visual opacity.
|
|
1582
|
+
*/
|
|
1583
|
+
disabled?: boolean;
|
|
1584
|
+
/**
|
|
1585
|
+
* Optional text label rendered alongside the switch track.
|
|
1586
|
+
* Also serves as the primary accessibility label if provided.
|
|
1587
|
+
*/
|
|
1588
|
+
label?: string;
|
|
1589
|
+
/**
|
|
1590
|
+
* Additional custom props that will be passed down to the root Pressable element.
|
|
1591
|
+
*/
|
|
1592
|
+
[key: string]: any;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
/**
|
|
1596
|
+
* A highly accessible, animated toggle switch component.
|
|
1597
|
+
*
|
|
1598
|
+
* @role
|
|
1599
|
+
* Provides a boolean input control that allows the user to toggle between checked and unchecked states.
|
|
1600
|
+
*
|
|
1601
|
+
* @useCases
|
|
1602
|
+
* - Settings panels to toggle preferences.
|
|
1603
|
+
* - Form fields for boolean choices (e.g., "I agree to terms", "Enable notifications").
|
|
1604
|
+
*
|
|
1605
|
+
* @structure
|
|
1606
|
+
* - Uses a `Pressable` wrapper for interaction and accessibility.
|
|
1607
|
+
* - Contains a `View` acting as the track.
|
|
1608
|
+
* - Uses an `Animated.View` from `react-native-reanimated` for the thumb to provide smooth spring animations when toggled.
|
|
1609
|
+
* - Optionally renders a `Text` component for the label next to the switch.
|
|
1610
|
+
*
|
|
1611
|
+
* @accessibility
|
|
1612
|
+
* - Implements `accessibilityRole="switch"`.
|
|
1613
|
+
* - Uses `accessibilityState` to announce the current `checked` and `disabled` states to screen readers.
|
|
1614
|
+
* - Uses `accessibilityLabel` from the provided label or defaults to "Toggle Switch".
|
|
1615
|
+
*/
|
|
1616
|
+
declare const Switch: React$1.FC<SwitchProps>;
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* Props for the Tabs component.
|
|
1620
|
+
*/
|
|
1621
|
+
interface TabsProps {
|
|
1622
|
+
/**
|
|
1623
|
+
* An array of tab objects. Each tab must have a unique `key`, a `title` for the tab label,
|
|
1624
|
+
* and an optional `content` node to display when active.
|
|
1625
|
+
*/
|
|
1626
|
+
tabs: {
|
|
1627
|
+
key: string;
|
|
1628
|
+
title: string;
|
|
1629
|
+
content?: React.ReactNode;
|
|
1630
|
+
}[];
|
|
1631
|
+
/**
|
|
1632
|
+
* The key of the tab that should be active by default upon initial render.
|
|
1633
|
+
*/
|
|
1634
|
+
defaultActiveKey?: string;
|
|
1635
|
+
/**
|
|
1636
|
+
* Callback invoked when the user selects a different tab.
|
|
1637
|
+
* Receives the key of the newly selected tab.
|
|
1638
|
+
*/
|
|
1639
|
+
onChange?: (key: string) => void;
|
|
1640
|
+
/**
|
|
1641
|
+
* Additional custom props that will be passed down to the root container.
|
|
1642
|
+
*/
|
|
1643
|
+
[key: string]: any;
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
/**
|
|
1647
|
+
* A navigational component to switch between different views or content panes.
|
|
1648
|
+
*
|
|
1649
|
+
* @role
|
|
1650
|
+
* Provides a tabbed interface allowing users to navigate between distinct sections of content within the same context.
|
|
1651
|
+
*
|
|
1652
|
+
* @useCases
|
|
1653
|
+
* - Switching between different data categories (e.g., "Recent", "Favorites", "All").
|
|
1654
|
+
* - Navigating through different settings pages.
|
|
1655
|
+
*
|
|
1656
|
+
* @structure
|
|
1657
|
+
* - Container `View` wrapping the tab bar and the content.
|
|
1658
|
+
* - Tab bar `View` holding multiple `Pressable` tabs.
|
|
1659
|
+
* - Content `View` displaying the active tab's `ReactNode`.
|
|
1660
|
+
*
|
|
1661
|
+
* @accessibility
|
|
1662
|
+
* - The tab bar uses `accessibilityRole="tablist"`.
|
|
1663
|
+
* - Each tab uses `accessibilityRole="tab"`.
|
|
1664
|
+
* - The active state is conveyed to screen readers via `accessibilityState={{ selected: isActive }}`.
|
|
1665
|
+
*/
|
|
1666
|
+
declare const Tabs: React$1.FC<TabsProps>;
|
|
1667
|
+
|
|
1668
|
+
/**
|
|
1669
|
+
* Props for the Text component.
|
|
1670
|
+
*/
|
|
1671
|
+
interface TextProps {
|
|
1672
|
+
/**
|
|
1673
|
+
* The content to be rendered inside the Text component.
|
|
1674
|
+
*/
|
|
1675
|
+
children?: React.ReactNode;
|
|
1676
|
+
/**
|
|
1677
|
+
* The typography variant determining font size, weight, and default margins.
|
|
1678
|
+
*/
|
|
1679
|
+
variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'p' | 'small' | 'muted';
|
|
1680
|
+
/**
|
|
1681
|
+
* Horizontal text alignment.
|
|
1682
|
+
*/
|
|
1683
|
+
align?: 'left' | 'center' | 'right';
|
|
1684
|
+
/**
|
|
1685
|
+
* Override for the font weight. If omitted, the variant's default weight is used.
|
|
1686
|
+
*/
|
|
1687
|
+
weight?: 'normal' | 'bold' | '600';
|
|
1688
|
+
/**
|
|
1689
|
+
* Additional custom props that will be passed down to the underlying Text component.
|
|
1690
|
+
*/
|
|
1691
|
+
[key: string]: any;
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* A foundational typography component.
|
|
1696
|
+
*
|
|
1697
|
+
* @role
|
|
1698
|
+
* Renders text on the screen using predefined design system variants.
|
|
1699
|
+
*
|
|
1700
|
+
* @useCases
|
|
1701
|
+
* - Displaying headings, paragraphs, and labels.
|
|
1702
|
+
* - Enforcing consistent typography (font sizes, weights, and colors) across the app.
|
|
1703
|
+
*
|
|
1704
|
+
* @structure
|
|
1705
|
+
* - Wraps the React Native `Text` component.
|
|
1706
|
+
*
|
|
1707
|
+
* @accessibility
|
|
1708
|
+
* - Inherits React Native's `Text` accessibility features.
|
|
1709
|
+
* - Text content is automatically accessible to screen readers.
|
|
1710
|
+
*/
|
|
1711
|
+
declare const Text: React$1.FC<TextProps>;
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* Props for the TextArea component.
|
|
1715
|
+
*/
|
|
1716
|
+
interface TextAreaProps {
|
|
1717
|
+
/** The controlled text value of the text area. */
|
|
1718
|
+
value?: string;
|
|
1719
|
+
/** The default text value for an uncontrolled text area. */
|
|
1720
|
+
defaultValue?: string;
|
|
1721
|
+
/** Callback invoked when the text changes. */
|
|
1722
|
+
onChangeText?: (text: string) => void;
|
|
1723
|
+
/** Placeholder text shown when the text area is empty. */
|
|
1724
|
+
placeholder?: string;
|
|
1725
|
+
/** Disables the text area, preventing user input. */
|
|
1726
|
+
disabled?: boolean;
|
|
1727
|
+
/** Error message to display below the text area. */
|
|
1728
|
+
error?: string;
|
|
1729
|
+
/** Approximate number of lines to dictate the initial minimum height. */
|
|
1730
|
+
lines?: number;
|
|
1731
|
+
/** Additional custom props that will be passed to the container View. */
|
|
1732
|
+
[key: string]: any;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
/**
|
|
1736
|
+
* @component TextArea
|
|
1737
|
+
* @description An auto-expanding multi-line text input with smooth height transitions.
|
|
1738
|
+
*/
|
|
1739
|
+
declare const TextArea: React$1.FC<TextAreaProps>;
|
|
1740
|
+
|
|
1741
|
+
/**
|
|
1742
|
+
* Props for the TextInput component.
|
|
1743
|
+
*/
|
|
1744
|
+
interface TextInputProps {
|
|
1745
|
+
/**
|
|
1746
|
+
* The controlled text value of the input.
|
|
1747
|
+
*/
|
|
1748
|
+
value?: string;
|
|
1749
|
+
/**
|
|
1750
|
+
* The default text value for an uncontrolled input.
|
|
1751
|
+
*/
|
|
1752
|
+
defaultValue?: string;
|
|
1753
|
+
/**
|
|
1754
|
+
* Callback invoked when the text changes.
|
|
1755
|
+
*/
|
|
1756
|
+
onChangeText?: (text: string) => void;
|
|
1757
|
+
/**
|
|
1758
|
+
* Placeholder text shown when the input is empty.
|
|
1759
|
+
*/
|
|
1760
|
+
placeholder?: string;
|
|
1761
|
+
/**
|
|
1762
|
+
* Disables the input, preventing user interaction.
|
|
1763
|
+
*/
|
|
1764
|
+
disabled?: boolean;
|
|
1765
|
+
/**
|
|
1766
|
+
* Error message to display below the input. Also styles the border red.
|
|
1767
|
+
*/
|
|
1768
|
+
error?: string;
|
|
1769
|
+
/**
|
|
1770
|
+
* Additional custom props that will be passed to the container View.
|
|
1771
|
+
*/
|
|
1772
|
+
[key: string]: any;
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
/**
|
|
1776
|
+
* A single-line text input component.
|
|
1777
|
+
*
|
|
1778
|
+
* @role
|
|
1779
|
+
* Provides a field for users to enter single-line text content, such as names or email addresses.
|
|
1780
|
+
*
|
|
1781
|
+
* @useCases
|
|
1782
|
+
* - Registration and login forms.
|
|
1783
|
+
* - Search bars.
|
|
1784
|
+
*
|
|
1785
|
+
* @structure
|
|
1786
|
+
* - Wraps a React Native `TextInput` inside a `View` container.
|
|
1787
|
+
* - Optionally renders an error `Text` below the input.
|
|
1788
|
+
*
|
|
1789
|
+
* @accessibility
|
|
1790
|
+
* - The underlying `TextInput` is naturally accessible.
|
|
1791
|
+
* - Error text should ideally be linked to the input via accessibility hints or announcements in a fully accessible form setup.
|
|
1792
|
+
*/
|
|
1793
|
+
declare const TextInput: React$1.FC<TextInputProps>;
|
|
1794
|
+
|
|
1795
|
+
/**
|
|
1796
|
+
* Props for the Video component.
|
|
1797
|
+
*/
|
|
1798
|
+
interface VideoProps {
|
|
1799
|
+
/**
|
|
1800
|
+
* The URI or local path to the video file.
|
|
1801
|
+
*/
|
|
1802
|
+
source: string;
|
|
1803
|
+
/**
|
|
1804
|
+
* If true, the video will start playing automatically once loaded.
|
|
1805
|
+
*/
|
|
1806
|
+
autoPlay?: boolean;
|
|
1807
|
+
/**
|
|
1808
|
+
* If true, the video will restart from the beginning once it reaches the end.
|
|
1809
|
+
*/
|
|
1810
|
+
loop?: boolean;
|
|
1811
|
+
/**
|
|
1812
|
+
* Determines whether native playback controls should be displayed. Defaults to true.
|
|
1813
|
+
*/
|
|
1814
|
+
controls?: boolean;
|
|
1815
|
+
/**
|
|
1816
|
+
* Additional custom props that will be passed to the container View.
|
|
1817
|
+
*/
|
|
1818
|
+
[key: string]: any;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* A media component for video playback.
|
|
1823
|
+
*
|
|
1824
|
+
* @role
|
|
1825
|
+
* Embeds and plays video content from a given URI or source.
|
|
1826
|
+
*
|
|
1827
|
+
* @useCases
|
|
1828
|
+
* - Showing tutorials, promotional videos, or user-generated content.
|
|
1829
|
+
* - Background videos for landing pages (using autoPlay and loop).
|
|
1830
|
+
*
|
|
1831
|
+
* @structure
|
|
1832
|
+
* - Uses a standard `View` for the container to apply layout constraints.
|
|
1833
|
+
* - Relies on `expo-video`'s `VideoView` component for native playback capabilities.
|
|
1834
|
+
*
|
|
1835
|
+
* @accessibility
|
|
1836
|
+
* - Controls should be made accessible natively by `expo-video`.
|
|
1837
|
+
* - When controls are hidden (e.g., background video), ensure the video content is strictly decorative or alternate text/captions are provided elsewhere.
|
|
1838
|
+
*/
|
|
1839
|
+
declare const Video: React$1.FC<VideoProps>;
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* Props for the WebView component.
|
|
1843
|
+
*/
|
|
1844
|
+
interface WebViewProps {
|
|
1845
|
+
/**
|
|
1846
|
+
* The URL or URI to load inside the web view.
|
|
1847
|
+
*/
|
|
1848
|
+
source: string;
|
|
1849
|
+
/**
|
|
1850
|
+
* Additional custom props that will be passed to the container View.
|
|
1851
|
+
*/
|
|
1852
|
+
[key: string]: any;
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* An embedded web browser component.
|
|
1857
|
+
*
|
|
1858
|
+
* @role
|
|
1859
|
+
* Renders web content inside a native application view.
|
|
1860
|
+
*
|
|
1861
|
+
* @useCases
|
|
1862
|
+
* - Displaying external websites or articles without leaving the app.
|
|
1863
|
+
* - Rendering complex HTML strings or rich text.
|
|
1864
|
+
* - Loading web-based auth flows or payment gateways.
|
|
1865
|
+
*
|
|
1866
|
+
* @structure
|
|
1867
|
+
* - Wraps `react-native-webview` inside a `View` container.
|
|
1868
|
+
*
|
|
1869
|
+
* @accessibility
|
|
1870
|
+
* - The web content should inherently implement its own ARIA and semantic HTML for screen readers.
|
|
1871
|
+
*/
|
|
1872
|
+
declare const WebView: React$1.FC<WebViewProps>;
|
|
1873
|
+
|
|
1874
|
+
/**
|
|
1875
|
+
* Represents a single item in the WheelPicker
|
|
1876
|
+
*/
|
|
1877
|
+
interface WheelPickerItem {
|
|
1878
|
+
/** Display text for the item */
|
|
1879
|
+
label: string;
|
|
1880
|
+
/** Unique value identifying the item */
|
|
1881
|
+
value: string;
|
|
1882
|
+
}
|
|
1883
|
+
interface WheelPickerProps {
|
|
1884
|
+
/** Array of items to pick from */
|
|
1885
|
+
items: WheelPickerItem[];
|
|
1886
|
+
/** Currently selected value */
|
|
1887
|
+
value?: string;
|
|
1888
|
+
/** Callback fired when an item is selected */
|
|
1889
|
+
onChange?: (value: string) => void;
|
|
1890
|
+
/** Height of a single item in pixels (default: 44) */
|
|
1891
|
+
itemHeight?: number;
|
|
1892
|
+
/** Maximum number of items to show in the wheel before moving the rest to a submenu (default: 7) */
|
|
1893
|
+
maxItemsInWheel?: number;
|
|
1894
|
+
/** Label for the "More..." option (default: 'More...') */
|
|
1895
|
+
moreLabel?: string;
|
|
1896
|
+
/** Additional styling or container props */
|
|
1897
|
+
[key: string]: any;
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* @component WheelPicker
|
|
1902
|
+
* @description A fully robust 3D scrollable barrel wheel picker with submenu support.
|
|
1903
|
+
*/
|
|
1904
|
+
declare const WheelPicker: React$1.FC<WheelPickerProps>;
|
|
1905
|
+
|
|
1906
|
+
/**
|
|
1907
|
+
* Props for the AuthLayout component.
|
|
1908
|
+
*/
|
|
1909
|
+
interface AuthLayoutProps {
|
|
1910
|
+
/**
|
|
1911
|
+
* The visual element to display alongside the authentication form.
|
|
1912
|
+
* Typically an Image or SVG component providing branding or context.
|
|
1913
|
+
*/
|
|
1914
|
+
image?: React.ReactNode;
|
|
1915
|
+
/**
|
|
1916
|
+
* The authentication form components (e.g., inputs, buttons).
|
|
1917
|
+
* These are rendered within a centered, padded container.
|
|
1918
|
+
*/
|
|
1919
|
+
children?: React.ReactNode;
|
|
1920
|
+
/**
|
|
1921
|
+
* Allows overriding standard View properties and extending with custom layout attributes.
|
|
1922
|
+
*/
|
|
1923
|
+
[key: string]: any;
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
/**
|
|
1927
|
+
* @component AuthLayout
|
|
1928
|
+
* @description
|
|
1929
|
+
* AuthLayout provides a foundational structure tailored specifically for authentication screens
|
|
1930
|
+
* (e.g., login, registration, password recovery). It splits the viewport into a split-screen
|
|
1931
|
+
* layout featuring an illustrative or branding image alongside a dedicated form container.
|
|
1932
|
+
*
|
|
1933
|
+
* @useCases
|
|
1934
|
+
* - Login or Registration pages where a primary marketing image is desired.
|
|
1935
|
+
* - Onboarding flows with distinct visual separation between content and input.
|
|
1936
|
+
*
|
|
1937
|
+
* @structure
|
|
1938
|
+
* - Renders a row-based Flexbox container.
|
|
1939
|
+
* - Left/Top side: An optional visual container for branding/imagery.
|
|
1940
|
+
* - Right/Bottom side: A centered container for authentication forms.
|
|
1941
|
+
*
|
|
1942
|
+
* @accessibility
|
|
1943
|
+
* - Ensure that the provided `image` node contains appropriate `accessibilityLabel` attributes if it conveys meaning.
|
|
1944
|
+
* - The form container acts as a standard `View`, but screen readers should be guided sequentially from the image (if any) to the form.
|
|
1945
|
+
*/
|
|
1946
|
+
declare const AuthLayout: React$1.FC<AuthLayoutProps>;
|
|
1947
|
+
|
|
1948
|
+
/**
|
|
1949
|
+
* Props for the BentoLayout component.
|
|
1950
|
+
*/
|
|
1951
|
+
interface BentoLayoutProps {
|
|
1952
|
+
/**
|
|
1953
|
+
* The grid items to be displayed in the bento layout.
|
|
1954
|
+
*/
|
|
1955
|
+
children?: React.ReactNode;
|
|
1956
|
+
/**
|
|
1957
|
+
* The spacing gap between bento items, measured in pixels.
|
|
1958
|
+
* Controls both the row and column gaps equivalently.
|
|
1959
|
+
*/
|
|
1960
|
+
gap?: number;
|
|
1961
|
+
/**
|
|
1962
|
+
* Allows overriding standard View properties and extending with custom layout attributes.
|
|
1963
|
+
*/
|
|
1964
|
+
[key: string]: any;
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
/**
|
|
1968
|
+
* @component BentoLayout
|
|
1969
|
+
* @description
|
|
1970
|
+
* BentoLayout implements a "bento box" style grid, dynamically distributing its children
|
|
1971
|
+
* into differently sized rectangular compartments. It aims to create an engaging, masonry-like
|
|
1972
|
+
* visual hierarchy.
|
|
1973
|
+
*
|
|
1974
|
+
* @useCases
|
|
1975
|
+
* - Dashboards displaying varying widgets (charts, stats, lists).
|
|
1976
|
+
* - Portfolios or media galleries requiring dynamic grid weighting.
|
|
1977
|
+
*
|
|
1978
|
+
* @structure
|
|
1979
|
+
* - Employs a flex-wrap row container to flow items continuously.
|
|
1980
|
+
* - Wraps each child in a container that simulates bento sizing (large, medium, or small)
|
|
1981
|
+
* based on its positional index.
|
|
1982
|
+
*
|
|
1983
|
+
* @accessibility
|
|
1984
|
+
* - The semantic ordering matches the visual DOM flow.
|
|
1985
|
+
* - Content should be naturally understandable in sequential order.
|
|
1986
|
+
*/
|
|
1987
|
+
declare const BentoLayout: React$1.FC<BentoLayoutProps>;
|
|
1988
|
+
|
|
1989
|
+
/**
|
|
1990
|
+
* Props for the BottomDrawerLayout component.
|
|
1991
|
+
*/
|
|
1992
|
+
interface BottomDrawerLayoutProps {
|
|
1993
|
+
/**
|
|
1994
|
+
* The content to display inside the bottom drawer when it is open.
|
|
1995
|
+
*/
|
|
1996
|
+
drawer?: React.ReactNode;
|
|
1997
|
+
/**
|
|
1998
|
+
* The primary screen content displayed behind the drawer.
|
|
1999
|
+
*/
|
|
2000
|
+
children?: React.ReactNode;
|
|
2001
|
+
/**
|
|
2002
|
+
* Determines whether the drawer is currently visible (true) or hidden (false).
|
|
2003
|
+
*/
|
|
2004
|
+
isOpen?: boolean;
|
|
2005
|
+
/**
|
|
2006
|
+
* Callback invoked when the user taps the background overlay to dismiss the drawer.
|
|
2007
|
+
*/
|
|
2008
|
+
onClose?: () => void;
|
|
2009
|
+
/**
|
|
2010
|
+
* Additional properties to spread onto the main container.
|
|
2011
|
+
*/
|
|
2012
|
+
[key: string]: any;
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
/**
|
|
2016
|
+
* @component BottomDrawerLayout
|
|
2017
|
+
* @description
|
|
2018
|
+
* BottomDrawerLayout provides a primary content area overlaid with a dismissible drawer
|
|
2019
|
+
* that slides up from the bottom of the screen.
|
|
2020
|
+
*
|
|
2021
|
+
* @useCases
|
|
2022
|
+
* - Displaying secondary contextual actions or menus.
|
|
2023
|
+
* - Presenting supplementary information without navigating away from the main screen.
|
|
2024
|
+
*
|
|
2025
|
+
* @structure
|
|
2026
|
+
* - A main content container (flex: 1).
|
|
2027
|
+
* - A semi-transparent overlay covering the screen when the drawer is open (captures taps to close).
|
|
2028
|
+
* - A bottom-anchored drawer container holding the drawer content.
|
|
2029
|
+
*
|
|
2030
|
+
* @accessibility
|
|
2031
|
+
* - The overlay acts as a dismiss button. It should properly describe its "close" action to screen readers.
|
|
2032
|
+
* - When open, focus should ideally be trapped within the drawer or immediately directed to it.
|
|
2033
|
+
*/
|
|
2034
|
+
declare const BottomDrawerLayout: React$1.FC<BottomDrawerLayoutProps>;
|
|
2035
|
+
|
|
2036
|
+
/**
|
|
2037
|
+
* Props for the CenteredLayout component.
|
|
2038
|
+
*/
|
|
2039
|
+
interface CenteredLayoutProps {
|
|
2040
|
+
/**
|
|
2041
|
+
* The content to be centered horizontally and vertically.
|
|
2042
|
+
*/
|
|
2043
|
+
children?: React.ReactNode;
|
|
2044
|
+
/**
|
|
2045
|
+
* Additional styles or View properties for the container.
|
|
2046
|
+
*/
|
|
2047
|
+
[key: string]: any;
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
/**
|
|
2051
|
+
* @component CenteredLayout
|
|
2052
|
+
* @description
|
|
2053
|
+
* CenteredLayout is a simple utility layout that perfectly centers its children
|
|
2054
|
+
* both horizontally and vertically within the available space.
|
|
2055
|
+
*
|
|
2056
|
+
* @useCases
|
|
2057
|
+
* - Loading screens with a central spinner.
|
|
2058
|
+
* - Error states or "empty" states displaying a central icon and message.
|
|
2059
|
+
* - Splash screens.
|
|
2060
|
+
*
|
|
2061
|
+
* @structure
|
|
2062
|
+
* - A single Flexbox container taking up all available space.
|
|
2063
|
+
* - Employs justifyContent and alignItems to center contents.
|
|
2064
|
+
*
|
|
2065
|
+
* @accessibility
|
|
2066
|
+
* - Transparent from an accessibility perspective; it simply groups elements visually.
|
|
2067
|
+
* - Ensure child elements have appropriate accessibility roles if needed.
|
|
2068
|
+
*/
|
|
2069
|
+
declare const CenteredLayout: React$1.FC<CenteredLayoutProps>;
|
|
2070
|
+
|
|
2071
|
+
/**
|
|
2072
|
+
* Props for the DashboardLayout component.
|
|
2073
|
+
*/
|
|
2074
|
+
interface DashboardLayoutProps {
|
|
2075
|
+
/**
|
|
2076
|
+
* The React node to render in the left-hand sidebar container.
|
|
2077
|
+
*/
|
|
2078
|
+
sidebar?: React.ReactNode;
|
|
2079
|
+
/**
|
|
2080
|
+
* The React node to render in the top header container above the main content.
|
|
2081
|
+
*/
|
|
2082
|
+
header?: React.ReactNode;
|
|
2083
|
+
/**
|
|
2084
|
+
* The primary application content rendered below the header.
|
|
2085
|
+
*/
|
|
2086
|
+
children?: React.ReactNode;
|
|
2087
|
+
/**
|
|
2088
|
+
* The fixed width of the sidebar. Defaults to 250.
|
|
2089
|
+
*/
|
|
2090
|
+
sidebarWidth?: number;
|
|
2091
|
+
/**
|
|
2092
|
+
* Additional properties to spread onto the outermost container.
|
|
2093
|
+
*/
|
|
2094
|
+
[key: string]: any;
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
/**
|
|
2098
|
+
* @component DashboardLayout
|
|
2099
|
+
* @description
|
|
2100
|
+
* DashboardLayout provides a classic web-style app layout, typically featuring a fixed
|
|
2101
|
+
* vertical sidebar on the left and a top header spanning the remaining width.
|
|
2102
|
+
*
|
|
2103
|
+
* @useCases
|
|
2104
|
+
* - Admin panels or complex data-heavy applications.
|
|
2105
|
+
* - Navigation-heavy apps needing a persistent menu across all screens.
|
|
2106
|
+
*
|
|
2107
|
+
* @structure
|
|
2108
|
+
* - Outer container uses a row-based Flexbox layout.
|
|
2109
|
+
* - Left side: A sidebar with a fixed or dynamically provided width.
|
|
2110
|
+
* - Right side: A main content column (flex: 1).
|
|
2111
|
+
* - Main column top: A header container.
|
|
2112
|
+
* - Main column bottom: The primary scrolling children content.
|
|
2113
|
+
*
|
|
2114
|
+
* @accessibility
|
|
2115
|
+
* - Ensure logical tab-ordering from Sidebar -> Header -> Main Content.
|
|
2116
|
+
* - Wrap sidebar items in proper accessible touch targets.
|
|
2117
|
+
*/
|
|
2118
|
+
declare const DashboardLayout: React$1.FC<DashboardLayoutProps>;
|
|
2119
|
+
|
|
2120
|
+
/**
|
|
2121
|
+
* Props for the DeckLayout component.
|
|
2122
|
+
*/
|
|
2123
|
+
interface DeckLayoutProps {
|
|
2124
|
+
/**
|
|
2125
|
+
* The individual cards to be rendered within the deck stack.
|
|
2126
|
+
* Each child represents a swipable card.
|
|
2127
|
+
*/
|
|
2128
|
+
children?: React.ReactNode;
|
|
2129
|
+
/**
|
|
2130
|
+
* Additional styles or View properties for the background container.
|
|
2131
|
+
*/
|
|
2132
|
+
[key: string]: any;
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
/**
|
|
2136
|
+
* @component DeckLayout
|
|
2137
|
+
* @description
|
|
2138
|
+
* DeckLayout implements a Tinder-like swipable card interface. Children are rendered as
|
|
2139
|
+
* stacked cards that users can drag and swipe away to reveal the next item.
|
|
2140
|
+
*
|
|
2141
|
+
* @useCases
|
|
2142
|
+
* - Discovery interfaces (matching apps, product discovery).
|
|
2143
|
+
* - Flashcards or bite-sized educational content.
|
|
2144
|
+
*
|
|
2145
|
+
* @structure
|
|
2146
|
+
* - Cards are stacked absolutely on top of each other in the center of the screen.
|
|
2147
|
+
* - Uses Reanimated and Gesture Handler to track pans and animate standard deck interactions.
|
|
2148
|
+
* - Z-index is dynamically assigned to keep the active card on top and scaled correctly.
|
|
2149
|
+
*
|
|
2150
|
+
* @accessibility
|
|
2151
|
+
* - Swiping actions should have accessible alternative buttons for users with motor impairments.
|
|
2152
|
+
* - The active card must clearly announce its contents. Hidden cards should ideally have `importantForAccessibility="no"`.
|
|
2153
|
+
*/
|
|
2154
|
+
declare const DeckLayout: React$1.FC<DeckLayoutProps>;
|
|
2155
|
+
|
|
2156
|
+
/**
|
|
2157
|
+
* Props for the FlexLayout component.
|
|
2158
|
+
*/
|
|
2159
|
+
interface FlexLayoutProps {
|
|
2160
|
+
/**
|
|
2161
|
+
* The React elements to render inside the layout.
|
|
2162
|
+
*/
|
|
2163
|
+
children?: React.ReactNode;
|
|
2164
|
+
/**
|
|
2165
|
+
* Defines the primary axis of the flex container.
|
|
2166
|
+
* 'row' arranges children horizontally, 'column' vertically.
|
|
2167
|
+
* Defaults to 'column'.
|
|
2168
|
+
*/
|
|
2169
|
+
direction?: 'row' | 'column';
|
|
2170
|
+
/**
|
|
2171
|
+
* The spacing between adjacent flex items in pixels.
|
|
2172
|
+
* Defaults to 0.
|
|
2173
|
+
*/
|
|
2174
|
+
gap?: number;
|
|
2175
|
+
/**
|
|
2176
|
+
* Additional properties to pass to the underlying React Native View component.
|
|
2177
|
+
*/
|
|
2178
|
+
[key: string]: any;
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
/**
|
|
2182
|
+
* A flexible layout component that arranges its children in a row or column.
|
|
2183
|
+
* It uses flexbox under the hood and allows configuring the primary axis
|
|
2184
|
+
* and gap between elements.
|
|
2185
|
+
*
|
|
2186
|
+
* Use cases:
|
|
2187
|
+
* - Simple linear arrangements of components (e.g., toolbars, lists).
|
|
2188
|
+
* - Distributing space evenly along a single axis.
|
|
2189
|
+
*
|
|
2190
|
+
* Accessibility considerations:
|
|
2191
|
+
* - Make sure to pass appropriate accessibility labels to the underlying `View` if this layout serves a semantic purpose.
|
|
2192
|
+
*/
|
|
2193
|
+
declare const FlexLayout: React$1.FC<FlexLayoutProps>;
|
|
2194
|
+
|
|
2195
|
+
/**
|
|
2196
|
+
* Props for the FlipLayout component.
|
|
2197
|
+
*/
|
|
2198
|
+
interface FlipLayoutProps {
|
|
2199
|
+
/**
|
|
2200
|
+
* The React node to render on the front side of the layout.
|
|
2201
|
+
*/
|
|
2202
|
+
front?: React.ReactNode;
|
|
2203
|
+
/**
|
|
2204
|
+
* The React node to render on the back side of the layout.
|
|
2205
|
+
*/
|
|
2206
|
+
back?: React.ReactNode;
|
|
2207
|
+
/**
|
|
2208
|
+
* Additional properties to pass to the underlying Pressable container.
|
|
2209
|
+
*/
|
|
2210
|
+
[key: string]: any;
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2213
|
+
/**
|
|
2214
|
+
* An animated interactive layout component that visually flips between a front
|
|
2215
|
+
* and back side, similar to a physical card.
|
|
2216
|
+
*
|
|
2217
|
+
* Use cases:
|
|
2218
|
+
* - Flashcards for educational apps.
|
|
2219
|
+
* - Revealing additional details (e.g., product specs on the back of a product card).
|
|
2220
|
+
*
|
|
2221
|
+
* Accessibility considerations:
|
|
2222
|
+
* - The component is wrapped in a `Pressable` which provides interactive behaviors.
|
|
2223
|
+
* - Ensure `accessibilityRole="button"` and `accessibilityHint` are passed if it behaves as a toggle.
|
|
2224
|
+
*/
|
|
2225
|
+
declare const FlipLayout: React$1.FC<FlipLayoutProps>;
|
|
2226
|
+
|
|
2227
|
+
/**
|
|
2228
|
+
* Props for the FooterLayout component.
|
|
2229
|
+
*/
|
|
2230
|
+
interface FooterLayoutProps {
|
|
2231
|
+
/**
|
|
2232
|
+
* The React element to display in the persistent footer section at the bottom.
|
|
2233
|
+
*/
|
|
2234
|
+
footer?: React.ReactNode;
|
|
2235
|
+
/**
|
|
2236
|
+
* The main content to render in the scrollable or flexible area above the footer.
|
|
2237
|
+
*/
|
|
2238
|
+
children?: React.ReactNode;
|
|
2239
|
+
/**
|
|
2240
|
+
* Additional standard React Native View properties to pass to the container view.
|
|
2241
|
+
*/
|
|
2242
|
+
[key: string]: any;
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
/**
|
|
2246
|
+
* A standard layout that provides a main content area and a fixed footer area.
|
|
2247
|
+
* The content area flexibly consumes the available space above the footer.
|
|
2248
|
+
*
|
|
2249
|
+
* Use cases:
|
|
2250
|
+
* - App screens that require a persistent bottom action bar or navigation.
|
|
2251
|
+
* - Modals or dialogues with sticky bottom confirmation buttons.
|
|
2252
|
+
*
|
|
2253
|
+
* Accessibility considerations:
|
|
2254
|
+
* - Semantic layout structure; ensure that focus order feels natural and
|
|
2255
|
+
* the footer has an appropriate accessibility role if it acts as a landmark (e.g. bottom navigation).
|
|
2256
|
+
*/
|
|
2257
|
+
declare const FooterLayout: React$1.FC<FooterLayoutProps>;
|
|
2258
|
+
|
|
2259
|
+
/**
|
|
2260
|
+
* Props for the GridLayout component.
|
|
2261
|
+
*/
|
|
2262
|
+
interface GridLayoutProps {
|
|
2263
|
+
/**
|
|
2264
|
+
* The React elements to render as items in the grid.
|
|
2265
|
+
*/
|
|
2266
|
+
children?: React.ReactNode;
|
|
2267
|
+
/**
|
|
2268
|
+
* The number of columns to display in the grid. Defaults to 2.
|
|
2269
|
+
*/
|
|
2270
|
+
columns?: number;
|
|
2271
|
+
/**
|
|
2272
|
+
* The gap (spacing) between items in the grid. Defaults to 16.
|
|
2273
|
+
*/
|
|
2274
|
+
gap?: number;
|
|
2275
|
+
/**
|
|
2276
|
+
* Additional properties to pass to the underlying React Native View component.
|
|
2277
|
+
*/
|
|
2278
|
+
[key: string]: any;
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
/**
|
|
2282
|
+
* A layout component that arranges its children into a responsive grid.
|
|
2283
|
+
* It uses flexWrap to break items into rows, calculating the item width based on the configured columns.
|
|
2284
|
+
*
|
|
2285
|
+
* Use cases:
|
|
2286
|
+
* - Image galleries or product listings displaying items in a uniform grid.
|
|
2287
|
+
* - Dashboard cards layout.
|
|
2288
|
+
*
|
|
2289
|
+
* Accessibility considerations:
|
|
2290
|
+
* - If representing a data grid, ensure proper accessibility roles (e.g., `role="grid"` on container, `role="gridcell"` on children).
|
|
2291
|
+
* - Consider the navigation flow (left-to-right, top-to-bottom) for screen readers.
|
|
2292
|
+
*/
|
|
2293
|
+
declare const GridLayout: React$1.FC<GridLayoutProps>;
|
|
2294
|
+
|
|
2295
|
+
/**
|
|
2296
|
+
* Props for the HeaderContentLayout component.
|
|
2297
|
+
*/
|
|
2298
|
+
interface HeaderContentLayoutProps {
|
|
2299
|
+
/**
|
|
2300
|
+
* The React element to display in the fixed header area at the top.
|
|
2301
|
+
*/
|
|
2302
|
+
header?: React.ReactNode;
|
|
2303
|
+
/**
|
|
2304
|
+
* The main React elements to display in the flexible content area below the header.
|
|
2305
|
+
*/
|
|
2306
|
+
children?: React.ReactNode;
|
|
2307
|
+
/**
|
|
2308
|
+
* Additional properties to pass to the underlying React Native View wrapper.
|
|
2309
|
+
*/
|
|
2310
|
+
[key: string]: any;
|
|
2311
|
+
}
|
|
2312
|
+
|
|
2313
|
+
/**
|
|
2314
|
+
* A standard layout providing a fixed top header area and a flexible main content area below.
|
|
2315
|
+
*
|
|
2316
|
+
* Use cases:
|
|
2317
|
+
* - App screens with a persistent top navigation bar or title area.
|
|
2318
|
+
* - Views where content scrolls under a stationary header.
|
|
2319
|
+
*
|
|
2320
|
+
* Accessibility considerations:
|
|
2321
|
+
* - Ensure the header element has an appropriate accessibility role (like `header` or `heading`)
|
|
2322
|
+
* to provide proper landmarks for screen reader navigation.
|
|
2323
|
+
*/
|
|
2324
|
+
declare const HeaderContentLayout: React$1.FC<HeaderContentLayoutProps>;
|
|
2325
|
+
|
|
2326
|
+
/**
|
|
2327
|
+
* Props for the LeftDrawerLayout component.
|
|
2328
|
+
*/
|
|
2329
|
+
interface LeftDrawerLayoutProps {
|
|
2330
|
+
/**
|
|
2331
|
+
* The React elements to display inside the drawer panel when it is open.
|
|
2332
|
+
*/
|
|
2333
|
+
drawer?: React.ReactNode;
|
|
2334
|
+
/**
|
|
2335
|
+
* The main screen content to display beneath the drawer.
|
|
2336
|
+
*/
|
|
2337
|
+
children?: React.ReactNode;
|
|
2338
|
+
/**
|
|
2339
|
+
* A boolean indicating whether the drawer is currently open and visible.
|
|
2340
|
+
*/
|
|
2341
|
+
isOpen?: boolean;
|
|
2342
|
+
/**
|
|
2343
|
+
* A callback function invoked when the overlay backdrop is pressed to close the drawer.
|
|
2344
|
+
*/
|
|
2345
|
+
onClose?: () => void;
|
|
2346
|
+
/**
|
|
2347
|
+
* Additional properties to pass to the underlying React Native View component.
|
|
2348
|
+
*/
|
|
2349
|
+
[key: string]: any;
|
|
2350
|
+
}
|
|
2351
|
+
|
|
2352
|
+
/**
|
|
2353
|
+
* A layout component that implements a standard left-side navigation drawer pattern.
|
|
2354
|
+
* It renders the main content and conditionally overlays a backdrop and sliding drawer.
|
|
2355
|
+
*
|
|
2356
|
+
* Use cases:
|
|
2357
|
+
* - App-level global navigation menus.
|
|
2358
|
+
* - Sidebar filters for search results or e-commerce lists.
|
|
2359
|
+
*
|
|
2360
|
+
* Accessibility considerations:
|
|
2361
|
+
* - When the drawer is open, screen readers should ideally be trapped within the drawer content.
|
|
2362
|
+
* - Ensure the backdrop `Pressable` provides a clear accessibilityLabel like "Close drawer"
|
|
2363
|
+
* and appropriate `accessibilityRole="button"`.
|
|
2364
|
+
*/
|
|
2365
|
+
declare const LeftDrawerLayout: React$1.FC<LeftDrawerLayoutProps>;
|
|
2366
|
+
|
|
2367
|
+
/**
|
|
2368
|
+
* Props for the MasonryLayout component.
|
|
2369
|
+
*/
|
|
2370
|
+
interface MasonryLayoutProps {
|
|
2371
|
+
/**
|
|
2372
|
+
* The React elements to render within the masonry layout.
|
|
2373
|
+
*/
|
|
2374
|
+
children?: React.ReactNode;
|
|
2375
|
+
/**
|
|
2376
|
+
* The total number of columns to divide the content into.
|
|
2377
|
+
*/
|
|
2378
|
+
columns?: number;
|
|
2379
|
+
/**
|
|
2380
|
+
* The spacing between both columns and rows of items.
|
|
2381
|
+
*/
|
|
2382
|
+
gap?: number;
|
|
2383
|
+
/**
|
|
2384
|
+
* Additional properties to pass to the underlying React Native View component.
|
|
2385
|
+
*/
|
|
2386
|
+
[key: string]: any;
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
/**
|
|
2390
|
+
* A layout component that arranges children into a Masonry (Pinterest-style) grid.
|
|
2391
|
+
* It distributes items iteratively across the specified number of columns.
|
|
2392
|
+
*
|
|
2393
|
+
* Use cases:
|
|
2394
|
+
* - Displaying lists of images or cards of varying heights.
|
|
2395
|
+
* - News feeds with varying length content snippets.
|
|
2396
|
+
*
|
|
2397
|
+
* Accessibility considerations:
|
|
2398
|
+
* - Depending on the reading order, visually, items are read down a column before moving to the next.
|
|
2399
|
+
* - Consider if a screen reader user needs to read items row-by-row instead. If so, a standard grid layout might be preferred, or `tabIndex` / `accessibilityOrder` might need adjustment.
|
|
2400
|
+
*/
|
|
2401
|
+
declare const MasonryLayout: React$1.FC<MasonryLayoutProps>;
|
|
2402
|
+
|
|
2403
|
+
/**
|
|
2404
|
+
* Properties for the ParallaxLayout component.
|
|
2405
|
+
*/
|
|
2406
|
+
interface ParallaxLayoutProps {
|
|
2407
|
+
/**
|
|
2408
|
+
* The React Node representing the header content (often an image) to display with a parallax effect.
|
|
2409
|
+
*/
|
|
2410
|
+
headerImage?: React.ReactNode;
|
|
2411
|
+
/**
|
|
2412
|
+
* The main content to display below the parallax header inside a scrollable area.
|
|
2413
|
+
*/
|
|
2414
|
+
children?: React.ReactNode;
|
|
2415
|
+
/**
|
|
2416
|
+
* The height of the header image area in logical pixels.
|
|
2417
|
+
* Defaults to 250.
|
|
2418
|
+
*/
|
|
2419
|
+
headerHeight?: number;
|
|
2420
|
+
/**
|
|
2421
|
+
* Additional generic properties to pass to the container view.
|
|
2422
|
+
*/
|
|
2423
|
+
[key: string]: any;
|
|
2424
|
+
}
|
|
2425
|
+
|
|
2426
|
+
/**
|
|
2427
|
+
* ParallaxLayout provides a scrollable view with a parallax header effect.
|
|
2428
|
+
* The header image translates and scales based on the scroll position.
|
|
2429
|
+
* This layout is ideal for profile screens, detailed views, or any page where a prominent header image should react smoothly to scroll interactions.
|
|
2430
|
+
*
|
|
2431
|
+
* Accessibility considerations:
|
|
2432
|
+
* - Ensure the header image has an appropriate accessible label or role if it conveys meaningful information.
|
|
2433
|
+
* - The inner ScrollView should naturally support scroll accessibility actions.
|
|
2434
|
+
*/
|
|
2435
|
+
declare const ParallaxLayout: React$1.FC<ParallaxLayoutProps>;
|
|
2436
|
+
|
|
2437
|
+
/**
|
|
2438
|
+
* Properties for the ResponsiveLayout component.
|
|
2439
|
+
*/
|
|
2440
|
+
interface ResponsiveLayoutProps {
|
|
2441
|
+
/**
|
|
2442
|
+
* The React nodes to be rendered inside this layout.
|
|
2443
|
+
*/
|
|
2444
|
+
children?: React.ReactNode;
|
|
2445
|
+
/**
|
|
2446
|
+
* The width threshold in logical pixels above which the layout switches to desktop mode (row direction).
|
|
2447
|
+
* Defaults to 768.
|
|
2448
|
+
*/
|
|
2449
|
+
breakpoint?: number;
|
|
2450
|
+
/**
|
|
2451
|
+
* Additional properties to pass to the underlying view.
|
|
2452
|
+
*/
|
|
2453
|
+
[key: string]: any;
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2456
|
+
/**
|
|
2457
|
+
* ResponsiveLayout automatically adjusts its flex direction based on the current window width.
|
|
2458
|
+
* It switches between a column layout for narrow screens (e.g., mobile) and a row layout for wider screens (e.g., desktop/tablet).
|
|
2459
|
+
* Useful for building adaptive user interfaces without explicit media queries.
|
|
2460
|
+
*
|
|
2461
|
+
* Accessibility considerations:
|
|
2462
|
+
* - Order of children is preserved. Ensure logical focus order makes sense in both row and column orientations.
|
|
2463
|
+
*/
|
|
2464
|
+
declare const ResponsiveLayout: React$1.FC<ResponsiveLayoutProps>;
|
|
2465
|
+
|
|
2466
|
+
/**
|
|
2467
|
+
* Properties for the RootLayout component.
|
|
2468
|
+
*/
|
|
2469
|
+
interface RootLayoutProps {
|
|
2470
|
+
/**
|
|
2471
|
+
* The top-level children of the application or screen.
|
|
2472
|
+
*/
|
|
2473
|
+
children?: React.ReactNode;
|
|
2474
|
+
/**
|
|
2475
|
+
* Any additional generic view props.
|
|
2476
|
+
*/
|
|
2477
|
+
[key: string]: any;
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
/**
|
|
2481
|
+
* RootLayout serves as the top-level container for an application or major screen.
|
|
2482
|
+
* It wraps its content in a SafeAreaProvider to ensure content avoids device notches and system bars.
|
|
2483
|
+
*
|
|
2484
|
+
* Accessibility considerations:
|
|
2485
|
+
* - This layout establishes a base view; ensure child elements properly handle semantic roles.
|
|
2486
|
+
*/
|
|
2487
|
+
declare const RootLayout: React$1.FC<RootLayoutProps>;
|
|
2488
|
+
|
|
2489
|
+
/**
|
|
2490
|
+
* Properties for the ScrollLayout component.
|
|
2491
|
+
*/
|
|
2492
|
+
interface ScrollLayoutProps {
|
|
2493
|
+
/**
|
|
2494
|
+
* The elements to be rendered inside the scroll view.
|
|
2495
|
+
*/
|
|
2496
|
+
children?: React.ReactNode;
|
|
2497
|
+
/**
|
|
2498
|
+
* If true, the layout scrolls horizontally instead of vertically.
|
|
2499
|
+
* Defaults to false.
|
|
2500
|
+
*/
|
|
2501
|
+
horizontal?: boolean;
|
|
2502
|
+
/**
|
|
2503
|
+
* Additional properties to pass to the underlying ScrollView.
|
|
2504
|
+
*/
|
|
2505
|
+
[key: string]: any;
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
/**
|
|
2509
|
+
* ScrollLayout is a generic layout providing a scrollable region.
|
|
2510
|
+
* It can scroll either vertically (default) or horizontally based on its properties.
|
|
2511
|
+
* Ideal for lists, forms, or any content that might exceed screen bounds.
|
|
2512
|
+
*
|
|
2513
|
+
* Accessibility considerations:
|
|
2514
|
+
* - ScrollViews inherently support scrolling semantics.
|
|
2515
|
+
* - If horizontal, ensure it can be navigated via keyboard or screen reader horizontal scroll actions.
|
|
2516
|
+
*/
|
|
2517
|
+
declare const ScrollLayout: React$1.FC<ScrollLayoutProps>;
|
|
2518
|
+
|
|
2519
|
+
/**
|
|
2520
|
+
* Properties for the SidebarLayout component.
|
|
2521
|
+
*/
|
|
2522
|
+
interface SidebarLayoutProps {
|
|
2523
|
+
/**
|
|
2524
|
+
* The React node to render inside the sidebar pane.
|
|
2525
|
+
*/
|
|
2526
|
+
sidebar?: React.ReactNode;
|
|
2527
|
+
/**
|
|
2528
|
+
* The main content node to render in the primary pane.
|
|
2529
|
+
*/
|
|
2530
|
+
children?: React.ReactNode;
|
|
2531
|
+
/**
|
|
2532
|
+
* Determines whether the sidebar appears on the 'left' or 'right'.
|
|
2533
|
+
* Defaults to 'left'.
|
|
2534
|
+
*/
|
|
2535
|
+
sidebarPosition?: 'left' | 'right';
|
|
2536
|
+
/**
|
|
2537
|
+
* The width of the sidebar in logical pixels.
|
|
2538
|
+
* Defaults to 250.
|
|
2539
|
+
*/
|
|
2540
|
+
sidebarWidth?: number;
|
|
2541
|
+
/**
|
|
2542
|
+
* Additional generic properties to pass to the container wrapper.
|
|
2543
|
+
*/
|
|
2544
|
+
[key: string]: any;
|
|
2545
|
+
}
|
|
2546
|
+
|
|
2547
|
+
/**
|
|
2548
|
+
* SidebarLayout provides a two-pane layout featuring a collapsible or fixed sidebar next to a main content area.
|
|
2549
|
+
* It allows positioning the sidebar on either the left or right side.
|
|
2550
|
+
* Ideal for navigation drawers or secondary tools panels alongside primary content.
|
|
2551
|
+
*
|
|
2552
|
+
* Accessibility considerations:
|
|
2553
|
+
* - Ensure that the sidebar area is appropriately landmarked (e.g. role="navigation" or "complementary").
|
|
2554
|
+
* - Focus management should handle transitioning between sidebar and main content if the sidebar is toggled.
|
|
2555
|
+
*/
|
|
2556
|
+
declare const SidebarLayout: React$1.FC<SidebarLayoutProps>;
|
|
2557
|
+
|
|
2558
|
+
/**
|
|
2559
|
+
* Properties for the SketchLayout component.
|
|
2560
|
+
*/
|
|
2561
|
+
interface SketchLayoutProps {
|
|
2562
|
+
/**
|
|
2563
|
+
* The content to be rendered on the 2D scrollable canvas.
|
|
2564
|
+
*/
|
|
2565
|
+
children?: React.ReactNode;
|
|
2566
|
+
/**
|
|
2567
|
+
* Additional properties applied to the innermost content wrapper view.
|
|
2568
|
+
*/
|
|
2569
|
+
[key: string]: any;
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
/**
|
|
2573
|
+
* SketchLayout creates a 2D scrollable canvas area (both horizontally and vertically).
|
|
2574
|
+
* It nests a vertical ScrollView inside a horizontal ScrollView to achieve an "infinite canvas" feel.
|
|
2575
|
+
* Useful for drawing apps, large diagrams, or highly extensive data tables.
|
|
2576
|
+
*
|
|
2577
|
+
* Accessibility considerations:
|
|
2578
|
+
* - Nested scroll views can be difficult to navigate for keyboard-only or screen reader users.
|
|
2579
|
+
* - Ensure critical content can be accessed without complex 2D scrolling if possible.
|
|
2580
|
+
*/
|
|
2581
|
+
declare const SketchLayout: React$1.FC<SketchLayoutProps>;
|
|
2582
|
+
|
|
2583
|
+
/**
|
|
2584
|
+
* Props for the SortableGridLayout component.
|
|
2585
|
+
*
|
|
2586
|
+
* @typeParam T - The type of data items in the grid.
|
|
2587
|
+
*/
|
|
2588
|
+
interface SortableGridLayoutProps<T> {
|
|
2589
|
+
/**
|
|
2590
|
+
* The list of data items to render.
|
|
2591
|
+
*/
|
|
2592
|
+
data: T[];
|
|
2593
|
+
/**
|
|
2594
|
+
* Function to extract a unique key from an item.
|
|
2595
|
+
*/
|
|
2596
|
+
keyExtractor: (item: T, index: number) => string;
|
|
2597
|
+
/**
|
|
2598
|
+
* Function to render each item.
|
|
2599
|
+
*/
|
|
2600
|
+
renderItem: (item: T, index: number) => React$1.ReactNode;
|
|
2601
|
+
/**
|
|
2602
|
+
* Number of columns in the grid. Default is 3.
|
|
2603
|
+
*/
|
|
2604
|
+
columns?: number;
|
|
2605
|
+
/**
|
|
2606
|
+
* Spacing between items in pixels. Default is 8.
|
|
2607
|
+
*/
|
|
2608
|
+
spacing?: number;
|
|
2609
|
+
/**
|
|
2610
|
+
* Callback fired when items are successfully reordered.
|
|
2611
|
+
*/
|
|
2612
|
+
onReorder?: (newData: T[]) => void;
|
|
2613
|
+
/** Any other props for the container View. */
|
|
2614
|
+
[key: string]: any;
|
|
2615
|
+
}
|
|
2616
|
+
|
|
2617
|
+
/**
|
|
2618
|
+
* @component SortableGridLayout
|
|
2619
|
+
* @description
|
|
2620
|
+
* A reorderable grid layout that allows users to drag and drop items to reorder them.
|
|
2621
|
+
*
|
|
2622
|
+
* @useCases
|
|
2623
|
+
* - Photo galleries where users can rearrange their albums.
|
|
2624
|
+
* - Dashboards where widget positions can be customized.
|
|
2625
|
+
*
|
|
2626
|
+
* @structure
|
|
2627
|
+
* Uses `react-native-reanimated` and `react-native-gesture-handler` for fluid 60fps animations
|
|
2628
|
+
* during drag and drop. Renders items within an `Animated.View` inside a `GestureDetector`.
|
|
2629
|
+
*
|
|
2630
|
+
* @accessibility
|
|
2631
|
+
* Drag and drop is inherently difficult for screen readers. Ensure you provide accessible
|
|
2632
|
+
* alternative buttons (e.g., "Move Up", "Move Down") within each item for keyboard/voice navigation.
|
|
2633
|
+
*/
|
|
2634
|
+
declare function SortableGridLayout<T>(rawProps: SortableGridLayoutProps<T>): react_jsx_runtime.JSX.Element;
|
|
2635
|
+
|
|
2636
|
+
/**
|
|
2637
|
+
* Properties for the SplitLayout component.
|
|
2638
|
+
*/
|
|
2639
|
+
interface SplitLayoutProps {
|
|
2640
|
+
/**
|
|
2641
|
+
* The React node to render in the left pane.
|
|
2642
|
+
*/
|
|
2643
|
+
left?: React.ReactNode;
|
|
2644
|
+
/**
|
|
2645
|
+
* The React node to render in the right pane.
|
|
2646
|
+
*/
|
|
2647
|
+
right?: React.ReactNode;
|
|
2648
|
+
/**
|
|
2649
|
+
* The percentage (0-100) of the width that the left pane should consume.
|
|
2650
|
+
* The right pane will consume the remainder.
|
|
2651
|
+
* Defaults to 50.
|
|
2652
|
+
*/
|
|
2653
|
+
ratio?: number;
|
|
2654
|
+
/**
|
|
2655
|
+
* Additional generic properties to pass to the top-level container.
|
|
2656
|
+
*/
|
|
2657
|
+
[key: string]: any;
|
|
2658
|
+
}
|
|
2659
|
+
|
|
2660
|
+
/**
|
|
2661
|
+
* SplitLayout divides the available width between two panes (left and right) based on a specified percentage ratio.
|
|
2662
|
+
* It is ideal for side-by-side comparative views, master-detail interfaces, or any scenario needing a proportional split.
|
|
2663
|
+
*
|
|
2664
|
+
* Accessibility considerations:
|
|
2665
|
+
* - Ensure meaningful content flow so that navigating left-to-right makes sense contextually.
|
|
2666
|
+
*/
|
|
2667
|
+
declare const SplitLayout: React$1.FC<SplitLayoutProps>;
|
|
2668
|
+
|
|
2669
|
+
/**
|
|
2670
|
+
* Props for the Swipe2ScreenLayout component.
|
|
2671
|
+
*/
|
|
2672
|
+
interface Swipe2ScreenLayoutProps {
|
|
2673
|
+
/**
|
|
2674
|
+
* The React node representing the content of the first screen (left side).
|
|
2675
|
+
*/
|
|
2676
|
+
screen1?: React.ReactNode;
|
|
2677
|
+
/**
|
|
2678
|
+
* The React node representing the content of the second screen (right side).
|
|
2679
|
+
*/
|
|
2680
|
+
screen2?: React.ReactNode;
|
|
2681
|
+
/**
|
|
2682
|
+
* Any additional properties to spread onto the underlying ScrollView container.
|
|
2683
|
+
*/
|
|
2684
|
+
[key: string]: any;
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
/**
|
|
2688
|
+
* @component Swipe2ScreenLayout
|
|
2689
|
+
* @description A specialized horizontal layout component that allows swiping between exactly two distinct screens.
|
|
2690
|
+
* Useful for simple navigation patterns like tabbed views or split experiences where users can pan
|
|
2691
|
+
* horizontally between two distinct primary areas.
|
|
2692
|
+
* @accessibility
|
|
2693
|
+
* - Includes standard horizontal ScrollView accessibility.
|
|
2694
|
+
* - Screen content should dictate their own accessibility roles.
|
|
2695
|
+
* - Paging enabled for easy traversal between the two sections.
|
|
2696
|
+
*/
|
|
2697
|
+
declare const Swipe2ScreenLayout: React$1.FC<Swipe2ScreenLayoutProps>;
|
|
2698
|
+
|
|
2699
|
+
/**
|
|
2700
|
+
* Props for the SwiperLayout component.
|
|
2701
|
+
*/
|
|
2702
|
+
interface SwiperLayoutProps {
|
|
2703
|
+
/**
|
|
2704
|
+
* The child nodes to be rendered as distinct swipable pages.
|
|
2705
|
+
*/
|
|
2706
|
+
children?: React.ReactNode;
|
|
2707
|
+
/**
|
|
2708
|
+
* Any additional properties to spread onto the underlying ScrollView container.
|
|
2709
|
+
*/
|
|
2710
|
+
[key: string]: any;
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
/**
|
|
2714
|
+
* @component SwiperLayout
|
|
2715
|
+
* @description A horizontal swiping layout that allows paginated navigation through a dynamic
|
|
2716
|
+
* list of children elements. Good for carousels or multi-step flows.
|
|
2717
|
+
* @accessibility
|
|
2718
|
+
* - ScrollView is inherently accessible, exposing the content as a single scrollable container.
|
|
2719
|
+
* - Paging enabled allows screen readers to navigate smoothly across pages.
|
|
2720
|
+
*/
|
|
2721
|
+
declare const SwiperLayout: React$1.FC<SwiperLayoutProps>;
|
|
2722
|
+
|
|
2723
|
+
/**
|
|
2724
|
+
* Props for the SystemLayout component.
|
|
2725
|
+
*/
|
|
2726
|
+
interface SystemLayoutProps {
|
|
2727
|
+
/**
|
|
2728
|
+
* The content to be rendered inside the safe area container.
|
|
2729
|
+
*/
|
|
2730
|
+
children?: React.ReactNode;
|
|
2731
|
+
/**
|
|
2732
|
+
* The visual style of the system status bar ('light', 'dark', or 'auto').
|
|
2733
|
+
*/
|
|
2734
|
+
statusBarMode?: 'light' | 'dark' | 'auto';
|
|
2735
|
+
/**
|
|
2736
|
+
* Any additional properties to spread onto the SafeAreaView container.
|
|
2737
|
+
*/
|
|
2738
|
+
[key: string]: any;
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
/**
|
|
2742
|
+
* @component SystemLayout
|
|
2743
|
+
* @description A foundational layout component that provides a safe area for content,
|
|
2744
|
+
* avoiding device notches and status bars. It also handles the system status bar styling.
|
|
2745
|
+
* @accessibility
|
|
2746
|
+
* - Provides a safe container to ensure UI elements are not obscured by system UI.
|
|
2747
|
+
* - Leaves specific accessibility roles and labels to its children.
|
|
2748
|
+
*/
|
|
2749
|
+
declare const SystemLayout: React$1.FC<SystemLayoutProps>;
|
|
2750
|
+
|
|
2751
|
+
/**
|
|
2752
|
+
* Props for the TopDrawerLayout component.
|
|
2753
|
+
*/
|
|
2754
|
+
interface TopDrawerLayoutProps {
|
|
2755
|
+
/**
|
|
2756
|
+
* The content to display inside the drawer panel when it is open.
|
|
2757
|
+
*/
|
|
2758
|
+
drawer?: React.ReactNode;
|
|
2759
|
+
/**
|
|
2760
|
+
* The primary screen content behind the drawer.
|
|
2761
|
+
*/
|
|
2762
|
+
children?: React.ReactNode;
|
|
2763
|
+
/**
|
|
2764
|
+
* Controls whether the top drawer is currently visible.
|
|
2765
|
+
*/
|
|
2766
|
+
isOpen?: boolean;
|
|
2767
|
+
/**
|
|
2768
|
+
* Callback fired when the user taps the background overlay to dismiss the drawer.
|
|
2769
|
+
*/
|
|
2770
|
+
onClose?: () => void;
|
|
2771
|
+
/**
|
|
2772
|
+
* Any additional properties to spread onto the main View container.
|
|
2773
|
+
*/
|
|
2774
|
+
[key: string]: any;
|
|
2775
|
+
}
|
|
2776
|
+
|
|
2777
|
+
/**
|
|
2778
|
+
* @component TopDrawerLayout
|
|
2779
|
+
* @description A layout providing a slide-down or overlay drawer from the top of the screen.
|
|
2780
|
+
* Useful for global menus, notifications, or settings panels.
|
|
2781
|
+
* @accessibility
|
|
2782
|
+
* - The overlay acts as a Pressable to close the drawer and includes an accessibilityRole and label.
|
|
2783
|
+
* - Drawer content can be read by screen readers when active.
|
|
2784
|
+
*/
|
|
2785
|
+
declare const TopDrawerLayout: React$1.FC<TopDrawerLayoutProps>;
|
|
2786
|
+
|
|
2787
|
+
type TutoElementRegistry = Map<string, LayoutRectangle>;
|
|
2788
|
+
interface TutoContextType {
|
|
2789
|
+
/** Register a component's layout rectangle */
|
|
2790
|
+
registerElement: (id: string, layout: LayoutRectangle) => void;
|
|
2791
|
+
/** Unregister a component */
|
|
2792
|
+
unregisterElement: (id: string) => void;
|
|
2793
|
+
/** The current registry map */
|
|
2794
|
+
registry: TutoElementRegistry;
|
|
2795
|
+
/** Reference to the root layout view for relative measurements */
|
|
2796
|
+
rootRef: any;
|
|
2797
|
+
}
|
|
2798
|
+
declare const useTutoContext: () => TutoContextType;
|
|
2799
|
+
|
|
2800
|
+
type TutoAnimationType = 'swipe-left' | 'swipe-right' | 'swipe-up' | 'swipe-down' | 'tap' | 'double-tap' | 'none';
|
|
2801
|
+
interface TutoStep {
|
|
2802
|
+
/** The ID of the TutoElement to highlight */
|
|
2803
|
+
targetId: string;
|
|
2804
|
+
/** Title text for the tooltip */
|
|
2805
|
+
title?: string;
|
|
2806
|
+
/** Description text for the tooltip */
|
|
2807
|
+
description?: string;
|
|
2808
|
+
/** Animation gesture to display over the highlight */
|
|
2809
|
+
animation?: TutoAnimationType;
|
|
2810
|
+
}
|
|
2811
|
+
interface TutoLayoutProps {
|
|
2812
|
+
/** Array of tutorial steps */
|
|
2813
|
+
steps?: TutoStep[];
|
|
2814
|
+
/** Whether the tutorial overlay is currently active */
|
|
2815
|
+
isActive?: boolean;
|
|
2816
|
+
/** Callback fired when a step changes */
|
|
2817
|
+
onStepChange?: (stepIndex: number) => void;
|
|
2818
|
+
/** Callback fired when the tutorial completes */
|
|
2819
|
+
onComplete?: () => void;
|
|
2820
|
+
[key: string]: any;
|
|
2821
|
+
}
|
|
2822
|
+
|
|
2823
|
+
/**
|
|
2824
|
+
* @component TutoLayout
|
|
2825
|
+
* @description
|
|
2826
|
+
* An advanced "Tour Guide" layout engine designed for onboarding flows.
|
|
2827
|
+
* It acts as an absolute wrapper and uses `TutoContext` to track the bounding boxes
|
|
2828
|
+
* of children components wrapped in `TutoElement`.
|
|
2829
|
+
* Supports highlighting, tooltips, and gesture animations (swipe/tap).
|
|
2830
|
+
*/
|
|
2831
|
+
declare const TutoLayout: React$1.FC<TutoLayoutProps>;
|
|
2832
|
+
|
|
2833
|
+
/**
|
|
2834
|
+
* Props for the VoidLayout component.
|
|
2835
|
+
*/
|
|
2836
|
+
interface VoidLayoutProps {
|
|
2837
|
+
/**
|
|
2838
|
+
* Content to render inside the raw unstyled container.
|
|
2839
|
+
*/
|
|
2840
|
+
children?: React.ReactNode;
|
|
2841
|
+
/**
|
|
2842
|
+
* Any additional properties to spread onto the underlying View.
|
|
2843
|
+
*/
|
|
2844
|
+
[key: string]: any;
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2847
|
+
/**
|
|
2848
|
+
* @component VoidLayout
|
|
2849
|
+
* @description An intentionally blank layout acting purely as a passthrough fragment or unthemed wrapper.
|
|
2850
|
+
* Useful for structural hierarchy without visual overhead or as a base class.
|
|
2851
|
+
* @accessibility
|
|
2852
|
+
* - Purely transparent container, no inherent accessibility role, leaving it to its children.
|
|
2853
|
+
*/
|
|
2854
|
+
declare const VoidLayout: React$1.FC<VoidLayoutProps>;
|
|
2855
|
+
|
|
2856
|
+
/**
|
|
2857
|
+
* useBreakpoint — Hook niveau 1
|
|
2858
|
+
*
|
|
2859
|
+
* Détecte le breakpoint courant et expose des helpers dérivés
|
|
2860
|
+
* pour éviter la duplication `breakpoint === "xs" || breakpoint === "sm"`
|
|
2861
|
+
* dans chaque layout.
|
|
2862
|
+
*
|
|
2863
|
+
* @example
|
|
2864
|
+
* const { breakpoint, isMobile, isTablet, isDesktop } = useBreakpoint();
|
|
2865
|
+
*
|
|
2866
|
+
* // Avant (dupliqué partout) :
|
|
2867
|
+
* const isMobile = breakpoint === "xs" || breakpoint === "sm";
|
|
2868
|
+
*
|
|
2869
|
+
* // Après :
|
|
2870
|
+
* const { isMobile } = useBreakpoint();
|
|
2871
|
+
*/
|
|
2872
|
+
|
|
2873
|
+
/**
|
|
2874
|
+
* Informations sur le point d'arrêt (breakpoint) actuel et les états d'écran dérivés.
|
|
2875
|
+
*/
|
|
2876
|
+
interface BreakpointInfo {
|
|
2877
|
+
/** Breakpoint brut (xs, sm, md, lg, xl, 2xl). Null en SSR avant hydratation. */
|
|
2878
|
+
breakpoint: Breakpoint | null;
|
|
2879
|
+
/** xs ou sm */
|
|
2880
|
+
isMobile: boolean;
|
|
2881
|
+
/** md */
|
|
2882
|
+
isTablet: boolean;
|
|
2883
|
+
/** lg, xl ou 2xl */
|
|
2884
|
+
isDesktop: boolean;
|
|
2885
|
+
/** md ou plus */
|
|
2886
|
+
isAtLeastTablet: boolean;
|
|
2887
|
+
/** lg ou plus */
|
|
2888
|
+
isAtLeastDesktop: boolean;
|
|
2889
|
+
}
|
|
2890
|
+
|
|
2891
|
+
/**
|
|
2892
|
+
* usePlatformInfo — Hook niveau 1
|
|
2893
|
+
*
|
|
2894
|
+
* Détection de plateforme (iOS / Android / Web).
|
|
2895
|
+
* À utiliser UNIQUEMENT pour des comportements liés à la plateforme
|
|
2896
|
+
* (haptics, cursor, keyboard, etc.), PAS pour du responsive.
|
|
2897
|
+
*
|
|
2898
|
+
* Pour le responsive → useBreakpoint().
|
|
2899
|
+
*
|
|
2900
|
+
* @example
|
|
2901
|
+
* const { isWeb, isNative } = usePlatformInfo();
|
|
2902
|
+
* if (isNative) Haptics.impactAsync(...);
|
|
2903
|
+
*/
|
|
2904
|
+
/**
|
|
2905
|
+
* Informations sur la plateforme d'exécution courante.
|
|
2906
|
+
*/
|
|
2907
|
+
interface PlatformInfo {
|
|
2908
|
+
/** true si Platform.OS === 'web' */
|
|
2909
|
+
isWeb: boolean;
|
|
2910
|
+
/** true si Platform.OS !== 'web' (iOS ou Android) */
|
|
2911
|
+
isNative: boolean;
|
|
2912
|
+
/** true si Platform.OS === 'ios' */
|
|
2913
|
+
isIOS: boolean;
|
|
2914
|
+
/** true si Platform.OS === 'android' */
|
|
2915
|
+
isAndroid: boolean;
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
/**
|
|
2919
|
+
* PlatformOverride — Context to override platform detection in studio/preview mode.
|
|
2920
|
+
* When provided, useBreakpoint and usePlatformInfo will use these values instead of real ones.
|
|
2921
|
+
*/
|
|
2922
|
+
|
|
2923
|
+
/**
|
|
2924
|
+
* Valeur de surcharge (override) pour la plateforme et les points d'arrêt (breakpoints).
|
|
2925
|
+
*/
|
|
2926
|
+
interface PlatformOverrideValue {
|
|
2927
|
+
breakpoint?: BreakpointInfo;
|
|
2928
|
+
platform?: PlatformInfo;
|
|
2929
|
+
}
|
|
2930
|
+
/**
|
|
2931
|
+
* Hook permettant d'accéder au contexte de surcharge de la plateforme.
|
|
2932
|
+
*
|
|
2933
|
+
* @returns La valeur actuelle du contexte de surcharge ou null.
|
|
2934
|
+
*/
|
|
2935
|
+
declare const usePlatformOverride: () => PlatformOverrideValue | null;
|
|
2936
|
+
/**
|
|
2937
|
+
* Fournisseur de contexte pour la surcharge des informations de plateforme.
|
|
2938
|
+
*
|
|
2939
|
+
* @param props - Les propriétés, incluant la valeur de surcharge et les enfants.
|
|
2940
|
+
* @returns Un élément Provider de contexte.
|
|
2941
|
+
*/
|
|
2942
|
+
declare const PlatformOverrideProvider: React$1.FC<{
|
|
2943
|
+
value: PlatformOverrideValue;
|
|
2944
|
+
children: React$1.ReactNode;
|
|
2945
|
+
}>;
|
|
2946
|
+
|
|
2947
|
+
/**
|
|
2948
|
+
* Retourne le point d'arrêt (breakpoint) correspondant à la largeur d'écran donnée ou courante.
|
|
2949
|
+
*
|
|
2950
|
+
* @param innerWidth - Largeur d'écran optionnelle à utiliser (par défaut la largeur de la fenêtre).
|
|
2951
|
+
* @returns Le point d'arrêt (ex: xs, sm, md, lg, xl, 2xl).
|
|
2952
|
+
*/
|
|
2953
|
+
declare const getBreakpoint: (innerWidth?: number) => Breakpoint;
|
|
2954
|
+
/**
|
|
2955
|
+
* Type pour une valeur responsive (valeur brute ou objet associant breakpoint et valeur).
|
|
2956
|
+
*/
|
|
2957
|
+
type ResponsiveValue<T> = T | Partial<Record<Breakpoint, T>>;
|
|
2958
|
+
/**
|
|
2959
|
+
* Obtient la valeur correspondante pour un point d'arrêt donné à partir d'un objet ResponsiveValue.
|
|
2960
|
+
* Gère le repli (fallback) vers le point d'arrêt inférieur le plus proche.
|
|
2961
|
+
*
|
|
2962
|
+
* @param value - La valeur ou configuration responsive.
|
|
2963
|
+
* @param currentBreakpoint - Le point d'arrêt actuel de référence.
|
|
2964
|
+
* @returns La valeur résolue pour le point d'arrêt.
|
|
2965
|
+
*/
|
|
2966
|
+
declare const getResponsiveValue: <T>(value: ResponsiveValue<T>, currentBreakpoint: Breakpoint) => T;
|
|
2967
|
+
|
|
2968
|
+
interface TutoElementProps {
|
|
2969
|
+
id: string;
|
|
2970
|
+
children: React$1.ReactNode;
|
|
2971
|
+
style?: ViewStyle;
|
|
2972
|
+
}
|
|
2973
|
+
/**
|
|
2974
|
+
* @component TutoElement
|
|
2975
|
+
* @description
|
|
2976
|
+
* Wraps an element and automatically registers its bounding box into the TutoLayout registry.
|
|
2977
|
+
* Uses measureLayout to calculate position relative to the TutoLayout root.
|
|
2978
|
+
*/
|
|
2979
|
+
declare const TutoElement: React$1.FC<TutoElementProps>;
|
|
2980
|
+
|
|
2981
|
+
export { _default$3 as Accordion, _default$2 as Audio, AuthLayout, _default$1 as Avatar, AvatarPicker, _default as Badge, BadgeWrapper, BentoLayout, BlurView, BlurWrapper, BottomDrawerLayout, _default$9 as Box, Button, Camera, Card, _default$8 as Center, CenteredLayout, Checkbox, Chip, CollapsibleWrapper, ColorPicker, DashboardLayout, DatePicker, DeckLayout, Divider, EmojiPicker, FadeInWrapper, FilePicker, FlatList, FlexLayout, FlipLayout, FooterLayout, GifPicker, Gradient, GridLayout, HeaderContentLayout, Icon, IconButton, IconPicker, Image, _default$7 as Inline, KeyboardAvoidWrapper, LeftDrawerLayout, LottieAnimation, MapView, MasonryLayout, NumberInput, OTPInput, ParallaxLayout, PasswordInput, PlatformOverrideProvider, type PlatformOverrideValue, Pressable, ProgressBar, RadioGroup, ResponsiveLayout, type ResponsiveValue, RootLayout, SafeAreaWrapper, ScalePressWrapper, _default$6 as Scroll, ScrollLayout, SearchInput, Select, Separator, ShimmerWrapper, SidebarLayout, _default$4 as SkeletonWrapper, SketchLayout, SlideUpWrapper, Slider, SortableGridLayout, Spinner, SplitLayout, _default$5 as Stack, Swipe2ScreenLayout, SwiperLayout, Switch, SystemLayout, Tabs, Text, TextArea, TextInput, TooltipWrapper, TopDrawerLayout, TutoElement, TutoLayout, Video, VoidLayout, WebView, WheelPicker, getBreakpoint, getResponsiveValue, usePlatformOverride, useTutoContext };
|