react-native-system-ui 1.0.4 → 1.0.6
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/README.md +23 -23
- package/dist/cjs/components/action-sheet/ActionSheet.js +1 -1
- package/dist/cjs/components/action-sheet/types.js +1 -0
- package/dist/cjs/components/area/types.js +1 -0
- package/dist/cjs/components/avatar/types.js +1 -0
- package/dist/cjs/components/badge/types.js +1 -0
- package/dist/cjs/components/button/types.js +1 -0
- package/dist/cjs/components/calendar/types.js +1 -0
- package/dist/cjs/components/cascader/types.js +1 -0
- package/dist/cjs/components/cell/types.js +1 -0
- package/dist/cjs/components/checkbox/Checkbox.js +1 -1
- package/dist/cjs/components/checkbox/types.js +1 -0
- package/dist/cjs/components/circle/types.js +1 -0
- package/dist/cjs/components/collapse/Collapse.js +1 -1
- package/dist/cjs/components/collapse/types.js +1 -0
- package/dist/cjs/components/config-provider/locale/types.js +1 -0
- package/dist/cjs/components/config-provider/types.js +1 -0
- package/dist/cjs/components/count-down/types.js +1 -0
- package/dist/cjs/components/datetime-picker/types.js +1 -0
- package/dist/cjs/components/dialog/Dialog.js +1 -1
- package/dist/cjs/components/dialog/types.js +1 -0
- package/dist/cjs/components/divider/types.js +1 -0
- package/dist/cjs/components/empty/types.js +1 -0
- package/dist/cjs/components/error-boundary/types.js +1 -0
- package/dist/cjs/components/field/types.js +1 -0
- package/dist/cjs/components/flex/Flex.js +1 -1
- package/dist/cjs/components/flex/FlexItem.js +1 -1
- package/dist/cjs/components/flex/types.js +1 -0
- package/dist/cjs/components/form/Form.js +1 -1
- package/dist/cjs/components/form/FormItem.js +1 -1
- package/dist/cjs/components/form/FormList.js +1 -1
- package/dist/cjs/components/form/types.js +1 -0
- package/dist/cjs/components/grid/Grid.js +1 -1
- package/dist/cjs/components/grid/GridItem.js +1 -1
- package/dist/cjs/components/grid/types.js +1 -0
- package/dist/cjs/components/image/types.js +1 -0
- package/dist/cjs/components/image-preview/ImagePreview.js +1 -1
- package/dist/cjs/components/image-preview/types.js +1 -0
- package/dist/cjs/components/input/types.js +1 -0
- package/dist/cjs/components/loading/types.js +1 -0
- package/dist/cjs/components/nav-bar/NavBar.js +1 -1
- package/dist/cjs/components/nav-bar/types.js +1 -0
- package/dist/cjs/components/notice-bar/NoticeBar.js +1 -1
- package/dist/cjs/components/notice-bar/types.js +1 -0
- package/dist/cjs/components/notify/types.js +1 -0
- package/dist/cjs/components/number-keyboard/types.js +1 -0
- package/dist/cjs/components/overlay/types.js +1 -0
- package/dist/cjs/components/password-input/types.js +1 -0
- package/dist/cjs/components/picker/Picker.js +1 -1
- package/dist/cjs/components/picker/types.js +1 -0
- package/dist/cjs/components/popup/Popup.js +1 -1
- package/dist/cjs/components/popup/types.js +1 -0
- package/dist/cjs/components/portal/types.js +1 -0
- package/dist/cjs/components/progress/types.js +1 -0
- package/dist/cjs/components/radio/types.js +1 -0
- package/dist/cjs/components/safe-area-view/types.js +1 -0
- package/dist/cjs/components/search/types.js +1 -0
- package/dist/cjs/components/selector/Selector.js +1 -1
- package/dist/cjs/components/selector/types.js +1 -0
- package/dist/cjs/components/share-sheet/ShareSheet.js +1 -1
- package/dist/cjs/components/share-sheet/types.js +1 -0
- package/dist/cjs/components/sidebar/types.js +1 -0
- package/dist/cjs/components/skeleton/types.js +1 -0
- package/dist/cjs/components/slider/Slider.js +1 -1
- package/dist/cjs/components/slider/types.js +1 -0
- package/dist/cjs/components/space/types.js +1 -0
- package/dist/cjs/components/stepper/types.js +1 -0
- package/dist/cjs/components/swiper/types.js +1 -0
- package/dist/cjs/components/switch/types.js +1 -0
- package/dist/cjs/components/tabbar/types.js +1 -0
- package/dist/cjs/components/tabs/Tabs.js +1 -1
- package/dist/cjs/components/tabs/types.js +1 -0
- package/dist/cjs/components/tag/types.js +1 -0
- package/dist/cjs/components/theme.js +1 -0
- package/dist/cjs/components/toast/Toast.js +1 -1
- package/dist/cjs/components/toast/types.js +1 -0
- package/dist/cjs/components/typography/types.js +1 -0
- package/dist/cjs/components/water-mark/types.js +1 -0
- package/dist/es/components/action-sheet/ActionSheet.js +1 -1
- package/dist/es/components/action-sheet/types.js +1 -0
- package/dist/es/components/area/types.js +1 -0
- package/dist/es/components/avatar/types.js +1 -0
- package/dist/es/components/badge/types.js +1 -0
- package/dist/es/components/button/types.js +1 -0
- package/dist/es/components/calendar/types.js +1 -0
- package/dist/es/components/cascader/types.js +1 -0
- package/dist/es/components/cell/types.js +1 -0
- package/dist/es/components/checkbox/Checkbox.js +1 -1
- package/dist/es/components/checkbox/types.js +1 -0
- package/dist/es/components/circle/types.js +1 -0
- package/dist/es/components/collapse/Collapse.js +1 -1
- package/dist/es/components/collapse/types.js +1 -0
- package/dist/es/components/config-provider/locale/types.js +1 -0
- package/dist/es/components/config-provider/types.js +1 -0
- package/dist/es/components/count-down/types.js +1 -0
- package/dist/es/components/datetime-picker/types.js +1 -0
- package/dist/es/components/dialog/Dialog.js +1 -1
- package/dist/es/components/dialog/types.js +1 -0
- package/dist/es/components/divider/types.js +1 -0
- package/dist/es/components/empty/types.js +1 -0
- package/dist/es/components/error-boundary/types.js +1 -0
- package/dist/es/components/field/types.js +1 -0
- package/dist/es/components/flex/Flex.js +1 -1
- package/dist/es/components/flex/FlexItem.js +1 -1
- package/dist/es/components/flex/types.js +1 -0
- package/dist/es/components/form/Form.js +1 -1
- package/dist/es/components/form/FormItem.js +1 -1
- package/dist/es/components/form/FormList.js +1 -1
- package/dist/es/components/form/types.js +1 -0
- package/dist/es/components/grid/Grid.js +1 -1
- package/dist/es/components/grid/GridItem.js +1 -1
- package/dist/es/components/grid/types.js +1 -0
- package/dist/es/components/image/types.js +1 -0
- package/dist/es/components/image-preview/ImagePreview.js +1 -1
- package/dist/es/components/image-preview/types.js +1 -0
- package/dist/es/components/input/types.js +1 -0
- package/dist/es/components/loading/types.js +1 -0
- package/dist/es/components/nav-bar/NavBar.js +1 -1
- package/dist/es/components/nav-bar/types.js +1 -0
- package/dist/es/components/notice-bar/NoticeBar.js +1 -1
- package/dist/es/components/notice-bar/types.js +1 -0
- package/dist/es/components/notify/types.js +1 -0
- package/dist/es/components/number-keyboard/types.js +1 -0
- package/dist/es/components/overlay/types.js +1 -0
- package/dist/es/components/password-input/types.js +1 -0
- package/dist/es/components/picker/Picker.js +1 -1
- package/dist/es/components/picker/types.js +1 -0
- package/dist/es/components/popup/Popup.js +1 -1
- package/dist/es/components/popup/types.js +1 -0
- package/dist/es/components/portal/types.js +1 -0
- package/dist/es/components/progress/types.js +1 -0
- package/dist/es/components/radio/types.js +1 -0
- package/dist/es/components/safe-area-view/types.js +1 -0
- package/dist/es/components/search/types.js +1 -0
- package/dist/es/components/selector/Selector.js +1 -1
- package/dist/es/components/selector/types.js +1 -0
- package/dist/es/components/share-sheet/ShareSheet.js +1 -1
- package/dist/es/components/share-sheet/types.js +1 -0
- package/dist/es/components/sidebar/types.js +1 -0
- package/dist/es/components/skeleton/types.js +1 -0
- package/dist/es/components/slider/Slider.js +1 -1
- package/dist/es/components/slider/types.js +1 -0
- package/dist/es/components/space/types.js +1 -0
- package/dist/es/components/stepper/types.js +1 -0
- package/dist/es/components/swiper/types.js +1 -0
- package/dist/es/components/switch/types.js +1 -0
- package/dist/es/components/tabbar/types.js +1 -0
- package/dist/es/components/tabs/Tabs.js +1 -1
- package/dist/es/components/tabs/types.js +1 -0
- package/dist/es/components/tag/types.js +1 -0
- package/dist/es/components/theme.js +1 -0
- package/dist/es/components/toast/Toast.js +1 -1
- package/dist/es/components/toast/types.js +1 -0
- package/dist/es/components/typography/types.js +1 -0
- package/dist/es/components/water-mark/types.js +1 -0
- package/dist/types/components/action-sheet/types.d.ts +87 -0
- package/dist/types/components/area/types.d.ts +20 -0
- package/dist/types/components/avatar/types.d.ts +62 -0
- package/dist/types/components/badge/types.d.ts +57 -0
- package/dist/types/components/button/types.d.ts +109 -0
- package/dist/types/components/calendar/types.d.ts +111 -0
- package/dist/types/components/cascader/types.d.ts +142 -0
- package/dist/types/components/cell/types.d.ts +112 -0
- package/dist/types/components/checkbox/types.d.ts +99 -0
- package/dist/types/components/circle/types.d.ts +51 -0
- package/dist/types/components/collapse/types.d.ts +45 -0
- package/dist/types/components/config-provider/locale/types.d.ts +130 -0
- package/dist/types/components/config-provider/types.d.ts +10 -0
- package/dist/types/components/count-down/types.d.ts +29 -0
- package/dist/types/components/datetime-picker/types.d.ts +38 -0
- package/dist/types/components/dialog/types.d.ts +70 -0
- package/dist/types/components/divider/types.d.ts +48 -0
- package/dist/types/components/empty/types.d.ts +44 -0
- package/dist/types/components/error-boundary/types.d.ts +18 -0
- package/dist/types/components/field/types.d.ts +86 -0
- package/dist/types/components/flex/types.d.ts +37 -0
- package/dist/types/components/form/Form.d.ts +6 -0
- package/dist/types/components/form/types.d.ts +68 -0
- package/dist/types/components/grid/Grid.d.ts +1 -0
- package/dist/types/components/grid/types.d.ts +77 -0
- package/dist/types/components/image/types.d.ts +53 -0
- package/dist/types/components/image-preview/types.d.ts +55 -0
- package/dist/types/components/input/types.d.ts +42 -0
- package/dist/types/components/loading/types.d.ts +32 -0
- package/dist/types/components/nav-bar/types.d.ts +67 -0
- package/dist/types/components/notice-bar/types.d.ts +26 -0
- package/dist/types/components/notify/types.d.ts +64 -0
- package/dist/types/components/number-keyboard/types.d.ts +35 -0
- package/dist/types/components/overlay/types.d.ts +13 -0
- package/dist/types/components/password-input/types.d.ts +35 -0
- package/dist/types/components/picker/types.d.ts +73 -0
- package/dist/types/components/popup/types.d.ts +41 -0
- package/dist/types/components/portal/types.d.ts +1 -0
- package/dist/types/components/progress/types.d.ts +51 -0
- package/dist/types/components/radio/types.d.ts +95 -0
- package/dist/types/components/safe-area-view/types.d.ts +1 -0
- package/dist/types/components/search/types.d.ts +28 -0
- package/dist/types/components/selector/types.d.ts +74 -0
- package/dist/types/components/share-sheet/types.d.ts +26 -0
- package/dist/types/components/sidebar/types.d.ts +64 -0
- package/dist/types/components/skeleton/types.d.ts +45 -0
- package/dist/types/components/slider/types.d.ts +38 -0
- package/dist/types/components/space/types.d.ts +39 -0
- package/dist/types/components/stepper/types.d.ts +46 -0
- package/dist/types/components/swiper/types.d.ts +29 -0
- package/dist/types/components/switch/types.d.ts +33 -0
- package/dist/types/components/tabbar/types.d.ts +39 -0
- package/dist/types/components/tabs/types.d.ts +64 -0
- package/dist/types/components/tag/types.d.ts +69 -0
- package/dist/types/components/theme.d.ts +112 -0
- package/dist/types/components/toast/types.d.ts +1 -0
- package/dist/types/components/typography/types.d.ts +66 -0
- package/dist/types/components/water-mark/types.d.ts +58 -0
- package/package.json +3 -3
- package/dist/cjs/components/form/FormContext.js +0 -1
- package/dist/cjs/components/form/utils.js +0 -1
- package/dist/es/components/form/FormContext.js +0 -1
- package/dist/es/components/form/utils.js +0 -1
- package/dist/types/components/form/FormContext.d.ts +0 -2
- package/dist/types/components/form/utils.d.ts +0 -7
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Animated, StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
+
import type { DeepPartial } from '../../types';
|
|
3
|
+
import type { PopupTokens } from './tokens';
|
|
4
|
+
export type PopupPlacement = 'top' | 'bottom' | 'left' | 'right' | 'center';
|
|
5
|
+
export type PopupCloseIconPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
6
|
+
export interface PopupProps extends ViewProps {
|
|
7
|
+
visible: boolean;
|
|
8
|
+
position?: PopupPlacement;
|
|
9
|
+
placement?: PopupPlacement;
|
|
10
|
+
title?: React.ReactNode;
|
|
11
|
+
description?: React.ReactNode;
|
|
12
|
+
tokensOverride?: DeepPartial<PopupTokens>;
|
|
13
|
+
overlay?: boolean;
|
|
14
|
+
overlayStyle?: StyleProp<ViewStyle>;
|
|
15
|
+
overlayAccessibilityLabel?: string;
|
|
16
|
+
closeOnOverlayPress?: boolean;
|
|
17
|
+
closeOnClickOverlay?: boolean;
|
|
18
|
+
overlayTestID?: string;
|
|
19
|
+
closeable?: boolean;
|
|
20
|
+
closeIcon?: React.ReactNode;
|
|
21
|
+
closeIconPosition?: PopupCloseIconPosition;
|
|
22
|
+
stopPropagation?: boolean;
|
|
23
|
+
round?: boolean;
|
|
24
|
+
safeArea?: boolean;
|
|
25
|
+
safeAreaInsetTop?: boolean;
|
|
26
|
+
safeAreaInsetBottom?: boolean;
|
|
27
|
+
lockScroll?: boolean;
|
|
28
|
+
destroyOnClose?: boolean;
|
|
29
|
+
duration?: number;
|
|
30
|
+
zIndex?: number;
|
|
31
|
+
closeOnBackPress?: boolean;
|
|
32
|
+
closeOnPopstate?: boolean;
|
|
33
|
+
children?: React.ReactNode;
|
|
34
|
+
beforeClose?: (reason: 'close-icon' | 'overlay' | 'close') => boolean | Promise<boolean>;
|
|
35
|
+
onClickOverlay?: () => void;
|
|
36
|
+
onClose?: () => void;
|
|
37
|
+
onOpen?: () => void;
|
|
38
|
+
onOpened?: () => void;
|
|
39
|
+
onClosed?: () => void;
|
|
40
|
+
contentAnimationStyle?: Animated.WithAnimatedObject<ViewStyle>;
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { PortalProps } from './Portal';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
+
import type { DeepPartial } from '../../types';
|
|
4
|
+
export interface ProgressTokens {
|
|
5
|
+
defaults: {
|
|
6
|
+
percentage: number;
|
|
7
|
+
inactive: boolean;
|
|
8
|
+
showPivot: boolean;
|
|
9
|
+
transition: boolean;
|
|
10
|
+
animationDuration: number;
|
|
11
|
+
};
|
|
12
|
+
layout: {
|
|
13
|
+
track: ViewStyle;
|
|
14
|
+
indicator: ViewStyle;
|
|
15
|
+
pivot: ViewStyle;
|
|
16
|
+
pivotText: TextStyle;
|
|
17
|
+
};
|
|
18
|
+
colors: {
|
|
19
|
+
track: string;
|
|
20
|
+
indicator: string;
|
|
21
|
+
pivotText: string;
|
|
22
|
+
};
|
|
23
|
+
typography: {
|
|
24
|
+
fontFamily: string;
|
|
25
|
+
pivotFontSize: number;
|
|
26
|
+
};
|
|
27
|
+
sizing: {
|
|
28
|
+
height: number;
|
|
29
|
+
pivotPaddingHorizontal: number;
|
|
30
|
+
pivotPaddingVertical: number;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export interface ProgressProps extends ViewProps {
|
|
34
|
+
percentage?: number | string;
|
|
35
|
+
strokeWidth?: number | string;
|
|
36
|
+
color?: string;
|
|
37
|
+
trackColor?: string;
|
|
38
|
+
pivotText?: React.ReactNode;
|
|
39
|
+
pivotColor?: string;
|
|
40
|
+
textColor?: string;
|
|
41
|
+
inactive?: boolean;
|
|
42
|
+
showPivot?: boolean;
|
|
43
|
+
orientation?: 'horizontal' | 'vertical';
|
|
44
|
+
animated?: boolean;
|
|
45
|
+
transition?: boolean;
|
|
46
|
+
animationDuration?: number;
|
|
47
|
+
tokensOverride?: DeepPartial<ProgressTokens>;
|
|
48
|
+
style?: StyleProp<ViewStyle>;
|
|
49
|
+
pivotStyle?: StyleProp<TextStyle>;
|
|
50
|
+
indicatorStyle?: StyleProp<ViewStyle>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { GestureResponderEvent, StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
+
import type { DeepPartial } from '../../types';
|
|
4
|
+
export type RadioValue = string | number;
|
|
5
|
+
export type RadioLabelPosition = 'left' | 'right';
|
|
6
|
+
export type RadioGroupDirection = 'horizontal' | 'vertical';
|
|
7
|
+
export type RadioShape = 'round' | 'square';
|
|
8
|
+
export type RadioIconRender = (params: {
|
|
9
|
+
checked: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
}) => React.ReactNode;
|
|
12
|
+
export interface RadioTokens {
|
|
13
|
+
defaults: {
|
|
14
|
+
iconSize: number;
|
|
15
|
+
labelPosition: RadioLabelPosition;
|
|
16
|
+
shape: RadioShape;
|
|
17
|
+
labelDisabled: boolean;
|
|
18
|
+
groupDisabled: boolean;
|
|
19
|
+
groupDirection: RadioGroupDirection;
|
|
20
|
+
};
|
|
21
|
+
layout: {
|
|
22
|
+
container: ViewStyle;
|
|
23
|
+
iconWrapper: ViewStyle;
|
|
24
|
+
labelWrapper: ViewStyle;
|
|
25
|
+
icon: ViewStyle;
|
|
26
|
+
label: TextStyle;
|
|
27
|
+
groupHorizontal: ViewStyle;
|
|
28
|
+
groupVertical: ViewStyle;
|
|
29
|
+
groupItem: ViewStyle;
|
|
30
|
+
};
|
|
31
|
+
colors: {
|
|
32
|
+
border: string;
|
|
33
|
+
background: string;
|
|
34
|
+
checkedBackground: string;
|
|
35
|
+
disabledBorder: string;
|
|
36
|
+
disabledBackground: string;
|
|
37
|
+
checkmark: string;
|
|
38
|
+
label: string;
|
|
39
|
+
labelDisabled: string;
|
|
40
|
+
};
|
|
41
|
+
typography: {
|
|
42
|
+
fontSize: number;
|
|
43
|
+
fontFamily: string;
|
|
44
|
+
fontWeight: NonNullable<TextStyle['fontWeight']>;
|
|
45
|
+
lineHeightMultiplier: number;
|
|
46
|
+
};
|
|
47
|
+
sizing: {
|
|
48
|
+
dotScale: number;
|
|
49
|
+
};
|
|
50
|
+
radii: {
|
|
51
|
+
round: number;
|
|
52
|
+
square: number;
|
|
53
|
+
};
|
|
54
|
+
borders: {
|
|
55
|
+
width: number;
|
|
56
|
+
};
|
|
57
|
+
spacing: {
|
|
58
|
+
gap: number;
|
|
59
|
+
groupGap: number;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export interface RadioProps extends Omit<ViewProps, 'children'> {
|
|
63
|
+
name?: RadioValue;
|
|
64
|
+
value?: RadioValue;
|
|
65
|
+
disabled?: boolean;
|
|
66
|
+
checked?: boolean;
|
|
67
|
+
defaultChecked?: boolean;
|
|
68
|
+
iconSize?: number | string;
|
|
69
|
+
checkedColor?: string;
|
|
70
|
+
shape?: RadioShape;
|
|
71
|
+
iconRender?: RadioIconRender;
|
|
72
|
+
labelPosition?: RadioLabelPosition;
|
|
73
|
+
labelDisabled?: boolean;
|
|
74
|
+
style?: StyleProp<ViewStyle>;
|
|
75
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
76
|
+
children?: React.ReactNode;
|
|
77
|
+
tokensOverride?: DeepPartial<RadioTokens>;
|
|
78
|
+
onClick?: (event: GestureResponderEvent) => void;
|
|
79
|
+
onChange?: (checked: boolean) => void;
|
|
80
|
+
'aria-label'?: string;
|
|
81
|
+
}
|
|
82
|
+
export interface RadioGroupProps extends ViewProps {
|
|
83
|
+
value?: RadioValue;
|
|
84
|
+
defaultValue?: RadioValue;
|
|
85
|
+
onChange?: (value: RadioValue) => void;
|
|
86
|
+
disabled?: boolean;
|
|
87
|
+
direction?: RadioGroupDirection;
|
|
88
|
+
iconSize?: number | string;
|
|
89
|
+
checkedColor?: string;
|
|
90
|
+
labelDisabled?: boolean;
|
|
91
|
+
gap?: number;
|
|
92
|
+
name?: string;
|
|
93
|
+
children?: React.ReactNode;
|
|
94
|
+
tokensOverride?: DeepPartial<RadioTokens>;
|
|
95
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { SafeAreaViewProps } from './SafeAreaView';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { NativeSyntheticEvent, StyleProp, TextInputSubmitEditingEventData, ViewStyle } from 'react-native';
|
|
3
|
+
import type { DeepPartial } from '../../types';
|
|
4
|
+
import type { FieldInputAlign, FieldProps } from '../field/types';
|
|
5
|
+
import type { SearchTokens } from './tokens';
|
|
6
|
+
export type SearchShape = 'square' | 'round';
|
|
7
|
+
export interface SearchProps extends Omit<FieldProps, 'style' | 'contentStyle' | 'label' | 'labelStyle' | 'labelWidth' | 'labelAlign' | 'required' | 'colon' | 'intro' | 'tooltip' | 'description' | 'border' | 'size' | 'center' | 'controlAlign' | 'clickable' | 'isLink' | 'arrowDirection' | 'prefix' | 'suffix' | 'button' | 'extra' | 'rows' | 'autosize' | 'autoSize' | 'showWordLimit' | 'type' | 'tokensOverride'> {
|
|
8
|
+
label?: React.ReactNode;
|
|
9
|
+
style?: StyleProp<ViewStyle>;
|
|
10
|
+
fieldStyle?: FieldProps['style'];
|
|
11
|
+
fieldContentStyle?: FieldProps['contentStyle'];
|
|
12
|
+
actionText?: React.ReactNode;
|
|
13
|
+
action?: React.ReactNode;
|
|
14
|
+
showAction?: boolean;
|
|
15
|
+
shape?: SearchShape;
|
|
16
|
+
background?: string;
|
|
17
|
+
tokensOverride?: DeepPartial<SearchTokens>;
|
|
18
|
+
align?: FieldInputAlign;
|
|
19
|
+
onChange?: (value: string) => void;
|
|
20
|
+
onSearch?: (value: string) => void;
|
|
21
|
+
onCancel?: () => void;
|
|
22
|
+
onSubmitEditing?: (event: NativeSyntheticEvent<TextInputSubmitEditingEventData>) => void;
|
|
23
|
+
}
|
|
24
|
+
export interface SearchRef {
|
|
25
|
+
focus: () => void;
|
|
26
|
+
blur: () => void;
|
|
27
|
+
clear: () => void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
+
import type { DeepPartial } from '../../types';
|
|
4
|
+
export type SelectorValue = string | number;
|
|
5
|
+
export interface SelectorOption<V extends SelectorValue> {
|
|
6
|
+
label: React.ReactNode;
|
|
7
|
+
description?: React.ReactNode;
|
|
8
|
+
value: V;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface SelectorChangeExtend<V extends SelectorValue> {
|
|
12
|
+
items: SelectorOption<V>[];
|
|
13
|
+
}
|
|
14
|
+
export interface SelectorTokens {
|
|
15
|
+
defaults: {
|
|
16
|
+
columns: number;
|
|
17
|
+
multiple: boolean;
|
|
18
|
+
showCheckMark: boolean;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
};
|
|
21
|
+
layout: {
|
|
22
|
+
container: ViewStyle;
|
|
23
|
+
pressable: ViewStyle;
|
|
24
|
+
item: ViewStyle;
|
|
25
|
+
label: TextStyle;
|
|
26
|
+
description: TextStyle;
|
|
27
|
+
checkMark: TextStyle;
|
|
28
|
+
checkMarkTriangle: ViewStyle;
|
|
29
|
+
};
|
|
30
|
+
colors: {
|
|
31
|
+
border: string;
|
|
32
|
+
borderActive: string;
|
|
33
|
+
background: string;
|
|
34
|
+
backgroundActive: string;
|
|
35
|
+
text: string;
|
|
36
|
+
textActive: string;
|
|
37
|
+
description: string;
|
|
38
|
+
disabledText: string;
|
|
39
|
+
check: string;
|
|
40
|
+
checkForeground: string;
|
|
41
|
+
};
|
|
42
|
+
typography: {
|
|
43
|
+
fontSize: number;
|
|
44
|
+
descriptionSize: number;
|
|
45
|
+
fontFamily: string;
|
|
46
|
+
fontWeight: NonNullable<TextStyle['fontWeight']>;
|
|
47
|
+
};
|
|
48
|
+
radii: {
|
|
49
|
+
item: number;
|
|
50
|
+
};
|
|
51
|
+
spacing: {
|
|
52
|
+
gap: number;
|
|
53
|
+
paddingVertical: number;
|
|
54
|
+
paddingHorizontal: number;
|
|
55
|
+
descriptionMarginTop: number;
|
|
56
|
+
};
|
|
57
|
+
states: {
|
|
58
|
+
disabledOpacity: number;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export interface SelectorProps<V extends SelectorValue = SelectorValue> extends ViewProps {
|
|
62
|
+
options: SelectorOption<V>[];
|
|
63
|
+
columns?: number;
|
|
64
|
+
multiple?: boolean;
|
|
65
|
+
disabled?: boolean;
|
|
66
|
+
defaultValue?: V[];
|
|
67
|
+
value?: V[];
|
|
68
|
+
showCheckMark?: boolean;
|
|
69
|
+
onChange?: (value: V[], extend: SelectorChangeExtend<V>) => void;
|
|
70
|
+
itemStyle?: StyleProp<ViewStyle>;
|
|
71
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
72
|
+
descriptionStyle?: StyleProp<TextStyle>;
|
|
73
|
+
tokensOverride?: DeepPartial<SelectorTokens>;
|
|
74
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { DeepPartial } from '../../types';
|
|
3
|
+
import type { PopupProps } from '../popup/Popup';
|
|
4
|
+
import type { ShareSheetTokens } from './tokens';
|
|
5
|
+
export interface ShareSheetOption {
|
|
6
|
+
key?: React.Key;
|
|
7
|
+
name: React.ReactNode;
|
|
8
|
+
icon: React.ReactNode;
|
|
9
|
+
description?: React.ReactNode;
|
|
10
|
+
onPress?: (option: ShareSheetOption) => void;
|
|
11
|
+
}
|
|
12
|
+
export type ShareSheetOptions = ShareSheetOption[] | ShareSheetOption[][];
|
|
13
|
+
export interface ShareSheetProps extends Omit<PopupProps, 'children' | 'tokensOverride'> {
|
|
14
|
+
visible: boolean;
|
|
15
|
+
title?: React.ReactNode;
|
|
16
|
+
description?: React.ReactNode;
|
|
17
|
+
cancelText?: React.ReactNode;
|
|
18
|
+
options?: ShareSheetOptions;
|
|
19
|
+
columns?: number;
|
|
20
|
+
closeOnSelect?: boolean;
|
|
21
|
+
safeAreaInsetBottom?: boolean;
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
tokensOverride?: DeepPartial<ShareSheetTokens>;
|
|
24
|
+
onSelect?: (option: ShareSheetOption, index: number) => void;
|
|
25
|
+
onCancel?: () => void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
+
import type { DeepPartial } from '../../types';
|
|
4
|
+
export interface SidebarTokens {
|
|
5
|
+
defaults: {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
};
|
|
8
|
+
layout: {
|
|
9
|
+
container: ViewStyle;
|
|
10
|
+
side: ViewStyle;
|
|
11
|
+
content: ViewStyle;
|
|
12
|
+
item: ViewStyle;
|
|
13
|
+
indicatorWrapper: ViewStyle;
|
|
14
|
+
itemContent: ViewStyle;
|
|
15
|
+
indicator: ViewStyle;
|
|
16
|
+
titleRow: ViewStyle;
|
|
17
|
+
badge: ViewStyle;
|
|
18
|
+
dot: ViewStyle;
|
|
19
|
+
title: TextStyle;
|
|
20
|
+
};
|
|
21
|
+
colors: {
|
|
22
|
+
background: string;
|
|
23
|
+
border: string;
|
|
24
|
+
title: string;
|
|
25
|
+
titleActive: string;
|
|
26
|
+
disabled: string;
|
|
27
|
+
indicator: string;
|
|
28
|
+
};
|
|
29
|
+
typography: {
|
|
30
|
+
fontFamily: string;
|
|
31
|
+
fontSize: number;
|
|
32
|
+
fontWeight: NonNullable<TextStyle['fontWeight']>;
|
|
33
|
+
contentFontSize: number;
|
|
34
|
+
};
|
|
35
|
+
sizing: {
|
|
36
|
+
width: number;
|
|
37
|
+
itemHeight: number;
|
|
38
|
+
indicatorWidth: number;
|
|
39
|
+
};
|
|
40
|
+
borders: {
|
|
41
|
+
width: number;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export interface SidebarProps extends Omit<ViewProps, 'children'> {
|
|
45
|
+
value?: number;
|
|
46
|
+
defaultValue?: number;
|
|
47
|
+
sideStyle?: StyleProp<ViewStyle>;
|
|
48
|
+
children?: React.ReactNode;
|
|
49
|
+
onChange?: (value: number) => void;
|
|
50
|
+
tokensOverride?: DeepPartial<SidebarTokens>;
|
|
51
|
+
}
|
|
52
|
+
export interface SidebarItemProps extends ViewProps {
|
|
53
|
+
title?: React.ReactNode;
|
|
54
|
+
badge?: React.ReactNode;
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
dot?: boolean;
|
|
57
|
+
onClick?: (value: number) => void;
|
|
58
|
+
textStyle?: StyleProp<TextStyle>;
|
|
59
|
+
badgeStyle?: StyleProp<ViewStyle>;
|
|
60
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
61
|
+
children?: React.ReactNode;
|
|
62
|
+
index?: number;
|
|
63
|
+
tokensOverride?: DeepPartial<SidebarTokens>;
|
|
64
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { ViewProps } from 'react-native';
|
|
2
|
+
import type { DeepPartial } from '../../types';
|
|
3
|
+
export type SkeletonAvatarShape = 'round' | 'square';
|
|
4
|
+
export interface SkeletonTokens {
|
|
5
|
+
defaults: {
|
|
6
|
+
rowCount: number;
|
|
7
|
+
rowWidth: number | string;
|
|
8
|
+
lastRowWidth: number | string;
|
|
9
|
+
rowHeight: number | string;
|
|
10
|
+
avatarSize: number | string;
|
|
11
|
+
titleWidth: number | string;
|
|
12
|
+
};
|
|
13
|
+
colors: {
|
|
14
|
+
block: string;
|
|
15
|
+
highlight: string;
|
|
16
|
+
};
|
|
17
|
+
radius: number;
|
|
18
|
+
spacing: {
|
|
19
|
+
containerGap: number;
|
|
20
|
+
rowGap: number;
|
|
21
|
+
};
|
|
22
|
+
animation: {
|
|
23
|
+
duration: number;
|
|
24
|
+
minOpacity: number;
|
|
25
|
+
maxOpacity: number;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export interface SkeletonProps extends ViewProps {
|
|
29
|
+
isLoaded?: boolean;
|
|
30
|
+
loading?: boolean;
|
|
31
|
+
animate?: boolean;
|
|
32
|
+
startColor?: string;
|
|
33
|
+
speed?: number | string;
|
|
34
|
+
avatar?: boolean;
|
|
35
|
+
avatarSize?: number | string;
|
|
36
|
+
avatarShape?: SkeletonAvatarShape;
|
|
37
|
+
title?: boolean;
|
|
38
|
+
titleWidth?: number | string;
|
|
39
|
+
row?: number;
|
|
40
|
+
rowWidth?: number | string | Array<number | string>;
|
|
41
|
+
rowHeight?: number | string | Array<number | string>;
|
|
42
|
+
round?: boolean;
|
|
43
|
+
tokensOverride?: DeepPartial<SkeletonTokens>;
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { GestureResponderEvent, ViewProps } from 'react-native';
|
|
3
|
+
import type { DeepPartial } from '../../types';
|
|
4
|
+
import type { SliderTokens } from './tokens';
|
|
5
|
+
export type SliderValue = number | [number, number];
|
|
6
|
+
export type SliderNumberish = number | string;
|
|
7
|
+
export interface SliderProps extends ViewProps {
|
|
8
|
+
value?: SliderValue;
|
|
9
|
+
min?: SliderNumberish;
|
|
10
|
+
max?: SliderNumberish;
|
|
11
|
+
step?: SliderNumberish;
|
|
12
|
+
range?: boolean;
|
|
13
|
+
vertical?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
reverse?: boolean;
|
|
17
|
+
debug?: boolean;
|
|
18
|
+
activeColor?: string;
|
|
19
|
+
inactiveColor?: string;
|
|
20
|
+
barHeight?: SliderNumberish;
|
|
21
|
+
trackHeight?: SliderNumberish;
|
|
22
|
+
buttonSize?: SliderNumberish;
|
|
23
|
+
thumbSize?: SliderNumberish;
|
|
24
|
+
tokensOverride?: DeepPartial<SliderTokens>;
|
|
25
|
+
button?: React.ReactNode | (({ value }: {
|
|
26
|
+
value: SliderValue;
|
|
27
|
+
}) => React.ReactNode);
|
|
28
|
+
thumb?: React.ReactNode;
|
|
29
|
+
leftThumb?: React.ReactNode;
|
|
30
|
+
rightThumb?: React.ReactNode;
|
|
31
|
+
leftButton?: React.ReactNode;
|
|
32
|
+
rightButton?: React.ReactNode;
|
|
33
|
+
ariaLabel?: string;
|
|
34
|
+
onChange?: (value: SliderValue) => void;
|
|
35
|
+
onChangeAfter?: (value: SliderValue) => void;
|
|
36
|
+
onDragStart?: (event: GestureResponderEvent, value: SliderValue) => void;
|
|
37
|
+
onDragEnd?: (event: GestureResponderEvent, value: SliderValue) => void;
|
|
38
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ViewProps, ViewStyle } from 'react-native';
|
|
3
|
+
import type { DeepPartial } from '../../types';
|
|
4
|
+
export type SpaceDirection = 'horizontal' | 'vertical';
|
|
5
|
+
export type SpaceAlign = 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
6
|
+
export type SpaceJustify = 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly' | 'stretch';
|
|
7
|
+
export type SpaceGap = number | string | [number | string, number | string];
|
|
8
|
+
export type SpaceSizePreset = 'mini' | 'small' | 'normal' | 'large';
|
|
9
|
+
export interface SpaceTokens {
|
|
10
|
+
defaults: {
|
|
11
|
+
direction: SpaceDirection;
|
|
12
|
+
wrap: boolean;
|
|
13
|
+
gapPreset: SpaceSizePreset;
|
|
14
|
+
};
|
|
15
|
+
layout: {
|
|
16
|
+
container: ViewStyle;
|
|
17
|
+
};
|
|
18
|
+
typography: {
|
|
19
|
+
fontFamily: string;
|
|
20
|
+
fontSize: number;
|
|
21
|
+
};
|
|
22
|
+
sizing: {
|
|
23
|
+
presets: Record<SpaceSizePreset, number>;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface SpaceProps extends ViewProps {
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
gap?: SpaceGap;
|
|
29
|
+
size?: SpaceGap | SpaceSizePreset;
|
|
30
|
+
direction?: SpaceDirection;
|
|
31
|
+
align?: SpaceAlign;
|
|
32
|
+
justify?: SpaceJustify;
|
|
33
|
+
wrap?: boolean;
|
|
34
|
+
block?: boolean;
|
|
35
|
+
fill?: boolean;
|
|
36
|
+
divider?: React.ReactNode;
|
|
37
|
+
onClick?: ViewProps['onTouchEnd'];
|
|
38
|
+
tokensOverride?: DeepPartial<SpaceTokens>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { GestureResponderEvent, StyleProp, TextInputProps, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
+
import type { DeepPartial } from '../../types';
|
|
3
|
+
import type { StepperTokens } from './tokens';
|
|
4
|
+
export type StepperTheme = 'default' | 'round';
|
|
5
|
+
export interface StepperProps extends Omit<ViewProps, 'onChange'> {
|
|
6
|
+
value?: number | null;
|
|
7
|
+
defaultValue?: number | null;
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
step?: number;
|
|
11
|
+
autoFixed?: boolean;
|
|
12
|
+
beforeChange?: (value: number | null) => boolean | Promise<boolean>;
|
|
13
|
+
integer?: boolean;
|
|
14
|
+
decimalLength?: number | string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
disablePlus?: boolean;
|
|
17
|
+
disableMinus?: boolean;
|
|
18
|
+
disableInput?: boolean;
|
|
19
|
+
allowEmpty?: boolean;
|
|
20
|
+
showPlus?: boolean;
|
|
21
|
+
showMinus?: boolean;
|
|
22
|
+
showInput?: boolean;
|
|
23
|
+
longPress?: boolean;
|
|
24
|
+
theme?: StepperTheme;
|
|
25
|
+
inputWidth?: number | string;
|
|
26
|
+
buttonSize?: number | string;
|
|
27
|
+
name?: string;
|
|
28
|
+
placeholder?: string;
|
|
29
|
+
tokensOverride?: DeepPartial<StepperTokens>;
|
|
30
|
+
onClick?: (event: GestureResponderEvent) => void;
|
|
31
|
+
onChange?: (value: number | null, detail?: {
|
|
32
|
+
name?: string;
|
|
33
|
+
}) => void;
|
|
34
|
+
onPlus?: (event: GestureResponderEvent, value: number | null) => void;
|
|
35
|
+
onMinus?: (event: GestureResponderEvent, value: number | null) => void;
|
|
36
|
+
onOverlimit?: (type: 'plus' | 'minus') => void;
|
|
37
|
+
onFocus?: TextInputProps['onFocus'];
|
|
38
|
+
onBlur?: TextInputProps['onBlur'];
|
|
39
|
+
inputProps?: TextInputProps;
|
|
40
|
+
inputStyle?: StyleProp<TextStyle>;
|
|
41
|
+
buttonStyle?: StyleProp<ViewStyle>;
|
|
42
|
+
}
|
|
43
|
+
export interface StepperInstance {
|
|
44
|
+
focus: () => void;
|
|
45
|
+
blur: () => void;
|
|
46
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle, FlatListProps } from 'react-native';
|
|
3
|
+
import type { SwiperPagIndicatorProps } from './SwiperPagIndicator';
|
|
4
|
+
export interface SwiperProps<T = unknown> {
|
|
5
|
+
data?: T[];
|
|
6
|
+
renderItem?: FlatListProps<T>['renderItem'];
|
|
7
|
+
children?: React.ReactElement | React.ReactElement[];
|
|
8
|
+
initialSwipe?: number;
|
|
9
|
+
touchable?: boolean;
|
|
10
|
+
loop?: boolean;
|
|
11
|
+
autoplay?: boolean | number;
|
|
12
|
+
vertical?: boolean;
|
|
13
|
+
onChange?: (index: number) => void;
|
|
14
|
+
indicator?: boolean | ((total: number, current: number) => React.ReactNode);
|
|
15
|
+
indicatorProps?: Omit<SwiperPagIndicatorProps, 'total' | 'current' | 'vertical'>;
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
testID?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface SwiperItemProps {
|
|
20
|
+
style?: StyleProp<ViewStyle>;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
testID?: string;
|
|
23
|
+
}
|
|
24
|
+
export type SwiperInstance = {
|
|
25
|
+
swipeTo: (index: number, animated?: boolean) => void;
|
|
26
|
+
swipeNext: () => void;
|
|
27
|
+
swipePrev: () => void;
|
|
28
|
+
getCurrentIndex: () => number;
|
|
29
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { GestureResponderEvent, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import type { DeepPartial } from '../../types';
|
|
3
|
+
export interface SwitchTokens {
|
|
4
|
+
defaults: {
|
|
5
|
+
size: number;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
activeValue: unknown;
|
|
8
|
+
inactiveValue: unknown;
|
|
9
|
+
};
|
|
10
|
+
colors: {
|
|
11
|
+
activeTrack: string;
|
|
12
|
+
inactiveTrack: string;
|
|
13
|
+
handle: string;
|
|
14
|
+
};
|
|
15
|
+
opacity: {
|
|
16
|
+
disabled: number;
|
|
17
|
+
pressed: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export interface SwitchProps<V = boolean> {
|
|
21
|
+
checked?: V;
|
|
22
|
+
defaultChecked?: V;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
size?: number | 'sm' | 'md' | 'lg' | string;
|
|
25
|
+
activeColor?: string;
|
|
26
|
+
inactiveColor?: string;
|
|
27
|
+
activeValue?: V;
|
|
28
|
+
inactiveValue?: V;
|
|
29
|
+
tokensOverride?: DeepPartial<SwitchTokens>;
|
|
30
|
+
onChange?: (val: V) => void;
|
|
31
|
+
onClick?: (event: GestureResponderEvent) => void;
|
|
32
|
+
style?: StyleProp<ViewStyle>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
+
import type { BadgeProps } from '../badge/types';
|
|
4
|
+
import type { DeepPartial } from '../../types';
|
|
5
|
+
import type { TabbarTokens } from './tokens';
|
|
6
|
+
export type TabbarValue = string | number;
|
|
7
|
+
export interface TabbarProps<T = TabbarValue> extends Omit<ViewProps, 'children'> {
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
value?: T;
|
|
10
|
+
defaultValue?: T;
|
|
11
|
+
fixed?: boolean;
|
|
12
|
+
border?: boolean;
|
|
13
|
+
zIndex?: number;
|
|
14
|
+
activeColor?: string;
|
|
15
|
+
inactiveColor?: string;
|
|
16
|
+
background?: string;
|
|
17
|
+
placeholder?: boolean;
|
|
18
|
+
safeAreaInsetBottom?: boolean;
|
|
19
|
+
iconSize?: number;
|
|
20
|
+
tokensOverride?: DeepPartial<TabbarTokens>;
|
|
21
|
+
style?: StyleProp<ViewStyle>;
|
|
22
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
23
|
+
onChange?: (name: T, index: number) => void;
|
|
24
|
+
}
|
|
25
|
+
export interface TabbarItemProps<T = TabbarValue> extends Omit<ViewProps, 'children'> {
|
|
26
|
+
name?: T;
|
|
27
|
+
icon?: React.ReactNode | ((active: boolean) => React.ReactNode);
|
|
28
|
+
badge?: BadgeProps | React.ReactNode;
|
|
29
|
+
dot?: boolean;
|
|
30
|
+
onClick?: () => void;
|
|
31
|
+
textStyle?: StyleProp<TextStyle>;
|
|
32
|
+
iconStyle?: StyleProp<ViewStyle>;
|
|
33
|
+
children?: React.ReactNode | ((active: boolean) => React.ReactNode);
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
testID?: string;
|
|
36
|
+
tokensOverride?: DeepPartial<TabbarTokens>;
|
|
37
|
+
index?: number;
|
|
38
|
+
iconSize?: number;
|
|
39
|
+
}
|