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,68 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
export type FormRuleValidateTrigger = string | string[];
|
|
4
|
+
export type FormRuleValidator = (value: unknown, values: Record<string, unknown>) => void | boolean | string | Promise<void | boolean | string>;
|
|
5
|
+
export type NamePath = string | number | (string | number)[];
|
|
6
|
+
export interface FormItemRule {
|
|
7
|
+
required?: boolean;
|
|
8
|
+
message?: string;
|
|
9
|
+
pattern?: RegExp;
|
|
10
|
+
len?: number;
|
|
11
|
+
min?: number;
|
|
12
|
+
max?: number;
|
|
13
|
+
whitespace?: boolean;
|
|
14
|
+
validator?: FormRuleValidator;
|
|
15
|
+
validateTrigger?: FormRuleValidateTrigger;
|
|
16
|
+
}
|
|
17
|
+
export interface RegisteredFieldOptions {
|
|
18
|
+
rules?: FormItemRule[];
|
|
19
|
+
dependencies?: NamePath[];
|
|
20
|
+
initialValue?: unknown;
|
|
21
|
+
validateTrigger?: FormRuleValidateTrigger;
|
|
22
|
+
}
|
|
23
|
+
export interface FormInstance {
|
|
24
|
+
submit: () => Promise<Record<string, unknown> | undefined>;
|
|
25
|
+
getFieldsValue: () => Record<string, unknown>;
|
|
26
|
+
setFieldsValue: (values: Record<string, unknown>, options?: {
|
|
27
|
+
validate?: boolean;
|
|
28
|
+
}) => void;
|
|
29
|
+
resetFields: () => void;
|
|
30
|
+
validateFields: (names?: NamePath[]) => Promise<Record<string, unknown>>;
|
|
31
|
+
getFieldError: (name: NamePath) => string[];
|
|
32
|
+
}
|
|
33
|
+
export interface FormProps extends ViewProps {
|
|
34
|
+
initialValues?: Record<string, unknown>;
|
|
35
|
+
colon?: boolean;
|
|
36
|
+
labelWidth?: number;
|
|
37
|
+
showValidateMessage?: boolean;
|
|
38
|
+
footer?: ReactNode;
|
|
39
|
+
onValuesChange?: (values: Record<string, unknown>, name: string, value: unknown) => void;
|
|
40
|
+
onFinish?: (values: Record<string, unknown>) => void;
|
|
41
|
+
children?: ReactNode;
|
|
42
|
+
}
|
|
43
|
+
export interface FormSubscribeProps {
|
|
44
|
+
to?: string[];
|
|
45
|
+
children: (changedValues: Record<string, unknown>, form: FormInstance | null) => ReactNode;
|
|
46
|
+
}
|
|
47
|
+
export interface FormItemProps {
|
|
48
|
+
name?: NamePath;
|
|
49
|
+
label?: ReactNode;
|
|
50
|
+
description?: ReactNode;
|
|
51
|
+
intro?: ReactNode;
|
|
52
|
+
tooltip?: ReactNode;
|
|
53
|
+
rules?: FormItemRule[];
|
|
54
|
+
dependencies?: NamePath[];
|
|
55
|
+
valuePropName?: string;
|
|
56
|
+
trigger?: string;
|
|
57
|
+
validateTrigger?: FormRuleValidateTrigger;
|
|
58
|
+
showValidateMessage?: boolean;
|
|
59
|
+
required?: boolean;
|
|
60
|
+
noStyle?: boolean;
|
|
61
|
+
shouldUpdate?: (prev: Record<string, unknown>, next: Record<string, unknown>) => boolean;
|
|
62
|
+
initialValue?: unknown;
|
|
63
|
+
children: ReactNode | ((payload: {
|
|
64
|
+
getFieldValue: (name: NamePath) => unknown;
|
|
65
|
+
getFieldsValue: () => Record<string, unknown>;
|
|
66
|
+
form: FormInstance | null;
|
|
67
|
+
}) => ReactNode);
|
|
68
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { PressableProps, StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
+
import type { BadgeProps } from '../badge';
|
|
3
|
+
import type { DeepPartial } from '../../types';
|
|
4
|
+
export type GridDirection = 'vertical' | 'horizontal';
|
|
5
|
+
export interface GridTokens {
|
|
6
|
+
defaults: {
|
|
7
|
+
columnNum: number;
|
|
8
|
+
gutter: number;
|
|
9
|
+
border: boolean;
|
|
10
|
+
center: boolean;
|
|
11
|
+
square: boolean;
|
|
12
|
+
direction: GridDirection;
|
|
13
|
+
reverse: boolean;
|
|
14
|
+
clickable: boolean;
|
|
15
|
+
iconSize: number;
|
|
16
|
+
pressedOpacity: number;
|
|
17
|
+
textNumberOfLines: number;
|
|
18
|
+
};
|
|
19
|
+
layout: {
|
|
20
|
+
container: ViewStyle;
|
|
21
|
+
border: ViewStyle;
|
|
22
|
+
borderTop: ViewStyle;
|
|
23
|
+
borderBottom: ViewStyle;
|
|
24
|
+
itemContentBase: ViewStyle;
|
|
25
|
+
itemVertical: ViewStyle;
|
|
26
|
+
itemHorizontal: ViewStyle;
|
|
27
|
+
itemCenter: ViewStyle;
|
|
28
|
+
itemReverseColumn: ViewStyle;
|
|
29
|
+
itemReverseRow: ViewStyle;
|
|
30
|
+
iconWrapper: ViewStyle;
|
|
31
|
+
text: TextStyle;
|
|
32
|
+
itemBorderRight: ViewStyle;
|
|
33
|
+
itemBorderBottom: ViewStyle;
|
|
34
|
+
itemContentSquare: ViewStyle;
|
|
35
|
+
};
|
|
36
|
+
colors: {
|
|
37
|
+
border: string;
|
|
38
|
+
text: string;
|
|
39
|
+
background: string;
|
|
40
|
+
active: string;
|
|
41
|
+
};
|
|
42
|
+
typography: {
|
|
43
|
+
fontSize: number;
|
|
44
|
+
fontFamily: string;
|
|
45
|
+
lineHeight: number;
|
|
46
|
+
fontWeight: NonNullable<TextStyle['fontWeight']>;
|
|
47
|
+
};
|
|
48
|
+
spacing: {
|
|
49
|
+
paddingHorizontal: number;
|
|
50
|
+
paddingVertical: number;
|
|
51
|
+
iconGap: number;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export interface GridProps extends ViewProps {
|
|
55
|
+
children?: React.ReactNode;
|
|
56
|
+
columnNum?: number;
|
|
57
|
+
gutter?: number;
|
|
58
|
+
border?: boolean;
|
|
59
|
+
center?: boolean;
|
|
60
|
+
square?: boolean;
|
|
61
|
+
direction?: GridDirection;
|
|
62
|
+
reverse?: boolean;
|
|
63
|
+
clickable?: boolean;
|
|
64
|
+
iconSize?: number;
|
|
65
|
+
iconColor?: string;
|
|
66
|
+
tokensOverride?: DeepPartial<GridTokens>;
|
|
67
|
+
}
|
|
68
|
+
export interface GridItemProps extends PressableProps {
|
|
69
|
+
children?: React.ReactNode;
|
|
70
|
+
text?: React.ReactNode;
|
|
71
|
+
icon?: React.ReactNode | ((size: number, color: string) => React.ReactNode);
|
|
72
|
+
iconColor?: string;
|
|
73
|
+
badge?: BadgeProps;
|
|
74
|
+
dot?: boolean;
|
|
75
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
76
|
+
textStyle?: StyleProp<TextStyle>;
|
|
77
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { ImageProps as RNImageProps, ImageSourcePropType, ImageStyle, PressableProps, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
import type { DeepPartial } from '../../types';
|
|
4
|
+
export type ImageFit = 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
|
|
5
|
+
export interface ImageTokens {
|
|
6
|
+
defaults: {
|
|
7
|
+
fit: ImageFit;
|
|
8
|
+
showLoading: boolean;
|
|
9
|
+
showError: boolean;
|
|
10
|
+
loadingText: React.ReactNode;
|
|
11
|
+
errorText: React.ReactNode;
|
|
12
|
+
iconSize: number;
|
|
13
|
+
loadingIndicatorBaseSize: number;
|
|
14
|
+
loadingLabelMarginTop: number;
|
|
15
|
+
roundRadius: number;
|
|
16
|
+
};
|
|
17
|
+
layout: {
|
|
18
|
+
container: ViewStyle;
|
|
19
|
+
overlay: ViewStyle;
|
|
20
|
+
label: TextStyle;
|
|
21
|
+
iconContainer: ViewStyle;
|
|
22
|
+
absoluteFill: ImageStyle;
|
|
23
|
+
};
|
|
24
|
+
colors: {
|
|
25
|
+
background: string;
|
|
26
|
+
text: string;
|
|
27
|
+
error: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export interface ImageProps extends Omit<RNImageProps, 'source' | 'width' | 'height'> {
|
|
31
|
+
src?: string;
|
|
32
|
+
source?: ImageSourcePropType;
|
|
33
|
+
width?: number | string;
|
|
34
|
+
height?: number | string;
|
|
35
|
+
radius?: number;
|
|
36
|
+
round?: boolean;
|
|
37
|
+
fit?: ImageFit;
|
|
38
|
+
showLoading?: boolean;
|
|
39
|
+
showError?: boolean;
|
|
40
|
+
loadingText?: React.ReactNode;
|
|
41
|
+
loadingIcon?: React.ReactNode;
|
|
42
|
+
errorIcon?: React.ReactNode;
|
|
43
|
+
iconSize?: number;
|
|
44
|
+
loadingSize?: 'small' | 'large' | number;
|
|
45
|
+
errorText?: React.ReactNode;
|
|
46
|
+
fallback?: React.ReactNode;
|
|
47
|
+
onPress?: PressableProps['onPress'];
|
|
48
|
+
alt?: string;
|
|
49
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
50
|
+
children?: React.ReactNode;
|
|
51
|
+
tokensOverride?: DeepPartial<ImageTokens>;
|
|
52
|
+
'aria-label'?: string;
|
|
53
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ImageSourcePropType, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { PopupCloseIconPosition } from '../popup';
|
|
4
|
+
import type { DeepPartial } from '../../types';
|
|
5
|
+
import type { ImagePreviewTokens } from './tokens';
|
|
6
|
+
export type ImagePreviewCloseReason = 'overlay' | 'close-icon' | 'content' | 'close';
|
|
7
|
+
export type ImagePreviewImage = ImageSourcePropType | string;
|
|
8
|
+
export interface ImagePreviewProps {
|
|
9
|
+
visible: boolean;
|
|
10
|
+
images?: ImagePreviewImage[];
|
|
11
|
+
startPosition?: number;
|
|
12
|
+
swipeDuration?: number;
|
|
13
|
+
tokensOverride?: DeepPartial<ImagePreviewTokens>;
|
|
14
|
+
lazyRender?: boolean;
|
|
15
|
+
lazyRenderBuffer?: number;
|
|
16
|
+
showIndex?: boolean;
|
|
17
|
+
indexRender?: (ctx: {
|
|
18
|
+
index: number;
|
|
19
|
+
len: number;
|
|
20
|
+
}) => React.ReactNode;
|
|
21
|
+
showIndicators?: boolean;
|
|
22
|
+
closeable?: boolean;
|
|
23
|
+
closeIcon?: React.ReactNode;
|
|
24
|
+
closeIconPosition?: PopupCloseIconPosition;
|
|
25
|
+
overlay?: boolean;
|
|
26
|
+
overlayStyle?: StyleProp<ViewStyle>;
|
|
27
|
+
closeOnBackPress?: boolean;
|
|
28
|
+
closeOnPopstate?: boolean;
|
|
29
|
+
zIndex?: number;
|
|
30
|
+
duration?: number;
|
|
31
|
+
closeOnlyClickCloseIcon?: boolean;
|
|
32
|
+
safeAreaInsetTop?: boolean;
|
|
33
|
+
safeAreaInsetBottom?: boolean;
|
|
34
|
+
onChange?: (index: number) => void;
|
|
35
|
+
onClose?: (params: CloseParams) => void;
|
|
36
|
+
onClosed?: () => void;
|
|
37
|
+
beforeClose?: (context: CloseContext) => boolean | Promise<boolean>;
|
|
38
|
+
}
|
|
39
|
+
export interface CloseParams {
|
|
40
|
+
index: number;
|
|
41
|
+
image?: ImagePreviewImage;
|
|
42
|
+
}
|
|
43
|
+
export interface CloseContext extends CloseParams {
|
|
44
|
+
reason: ImagePreviewCloseReason;
|
|
45
|
+
}
|
|
46
|
+
export type ImagePreviewRef = {
|
|
47
|
+
swipeTo: (index: number, animated?: boolean) => void;
|
|
48
|
+
};
|
|
49
|
+
export type ImagePreviewOpenOptions = Omit<ImagePreviewProps, 'visible'>;
|
|
50
|
+
export type ImagePreviewDestroy = () => void;
|
|
51
|
+
export interface ImagePreviewStatic {
|
|
52
|
+
Host: React.ComponentType<Record<string, unknown>>;
|
|
53
|
+
open: (options: ImagePreviewOpenOptions) => ImagePreviewDestroy;
|
|
54
|
+
clear: () => void;
|
|
55
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { StyleProp, TextInput, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import type { DeepPartial } from '../../types';
|
|
3
|
+
import type { FieldTokens } from '../field/tokens';
|
|
4
|
+
import type { FieldClearTrigger, FieldInputAlign, FieldProps, FieldShowWordLimit } from '../field/types';
|
|
5
|
+
export interface InputTokens {
|
|
6
|
+
defaults: {
|
|
7
|
+
inputAlign: FieldInputAlign;
|
|
8
|
+
clearTrigger: FieldClearTrigger;
|
|
9
|
+
border: boolean;
|
|
10
|
+
};
|
|
11
|
+
spacing: {
|
|
12
|
+
paddingHorizontal: number;
|
|
13
|
+
paddingVertical: number;
|
|
14
|
+
};
|
|
15
|
+
colors: {
|
|
16
|
+
background: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface InputProps extends Omit<FieldProps, 'tokensOverride'> {
|
|
20
|
+
align?: FieldInputAlign;
|
|
21
|
+
clearTrigger?: FieldClearTrigger;
|
|
22
|
+
onChange?: (value: string) => void;
|
|
23
|
+
showWordLimit?: FieldShowWordLimit;
|
|
24
|
+
style?: StyleProp<ViewStyle>;
|
|
25
|
+
inputStyle?: StyleProp<TextStyle>;
|
|
26
|
+
fieldTokensOverride?: DeepPartial<FieldTokens>;
|
|
27
|
+
tokensOverride?: DeepPartial<InputTokens>;
|
|
28
|
+
}
|
|
29
|
+
export interface InputInstance {
|
|
30
|
+
focus: () => void;
|
|
31
|
+
blur: () => void;
|
|
32
|
+
clear: () => void;
|
|
33
|
+
nativeElement: TextInput | null;
|
|
34
|
+
}
|
|
35
|
+
export interface InputTextAreaAutoSizeConfig {
|
|
36
|
+
minHeight?: number;
|
|
37
|
+
maxHeight?: number;
|
|
38
|
+
}
|
|
39
|
+
export type InputTextAreaAutoSize = boolean | InputTextAreaAutoSizeConfig;
|
|
40
|
+
export interface InputTextAreaProps extends Omit<InputProps, 'type' | 'autoSize' | 'autosize'> {
|
|
41
|
+
autoSize?: InputTextAreaAutoSize;
|
|
42
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
+
import type { DeepPartial } from '../../types';
|
|
3
|
+
export interface LoadingTokens {
|
|
4
|
+
defaults: {
|
|
5
|
+
size: number;
|
|
6
|
+
textSize: number;
|
|
7
|
+
vertical: boolean;
|
|
8
|
+
};
|
|
9
|
+
layout: {
|
|
10
|
+
container: ViewStyle;
|
|
11
|
+
text: TextStyle;
|
|
12
|
+
};
|
|
13
|
+
colors: {
|
|
14
|
+
indicator: string;
|
|
15
|
+
text: string;
|
|
16
|
+
};
|
|
17
|
+
spacing: {
|
|
18
|
+
gap: number;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface LoadingProps extends ViewProps {
|
|
22
|
+
['aria-label']?: string;
|
|
23
|
+
color?: string;
|
|
24
|
+
size?: number;
|
|
25
|
+
textSize?: number;
|
|
26
|
+
textColor?: string;
|
|
27
|
+
vertical?: boolean;
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
textStyle?: StyleProp<TextStyle>;
|
|
30
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
31
|
+
tokensOverride?: DeepPartial<LoadingTokens>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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 NavBarTokens {
|
|
5
|
+
defaults: {
|
|
6
|
+
fixed: boolean;
|
|
7
|
+
placeholder: boolean;
|
|
8
|
+
border: boolean;
|
|
9
|
+
safeAreaInsetTop: boolean;
|
|
10
|
+
leftArrow: boolean;
|
|
11
|
+
zIndex: number;
|
|
12
|
+
};
|
|
13
|
+
layout: {
|
|
14
|
+
container: ViewStyle;
|
|
15
|
+
bar: ViewStyle;
|
|
16
|
+
center: ViewStyle;
|
|
17
|
+
side: ViewStyle;
|
|
18
|
+
rightAlign: ViewStyle;
|
|
19
|
+
sidePlaceholder: ViewStyle;
|
|
20
|
+
titleWrapper: ViewStyle;
|
|
21
|
+
title: TextStyle;
|
|
22
|
+
description: TextStyle;
|
|
23
|
+
sideText: TextStyle;
|
|
24
|
+
fixed: ViewStyle;
|
|
25
|
+
};
|
|
26
|
+
colors: {
|
|
27
|
+
background: string;
|
|
28
|
+
text: string;
|
|
29
|
+
description: string;
|
|
30
|
+
border: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
};
|
|
33
|
+
typography: {
|
|
34
|
+
fontFamily: string;
|
|
35
|
+
titleSize: number;
|
|
36
|
+
titleWeight: NonNullable<TextStyle['fontWeight']>;
|
|
37
|
+
descriptionSize: number;
|
|
38
|
+
};
|
|
39
|
+
sizing: {
|
|
40
|
+
height: number;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export interface NavBarProps extends Omit<ViewProps, 'children'> {
|
|
44
|
+
title?: React.ReactNode;
|
|
45
|
+
description?: React.ReactNode;
|
|
46
|
+
children?: React.ReactNode;
|
|
47
|
+
leftText?: React.ReactNode;
|
|
48
|
+
rightText?: React.ReactNode;
|
|
49
|
+
leftIcon?: React.ReactNode;
|
|
50
|
+
rightIcon?: React.ReactNode;
|
|
51
|
+
leftArrow?: boolean | React.ReactNode;
|
|
52
|
+
fixed?: boolean;
|
|
53
|
+
placeholder?: boolean;
|
|
54
|
+
zIndex?: number;
|
|
55
|
+
border?: boolean;
|
|
56
|
+
safeAreaInsetTop?: boolean;
|
|
57
|
+
background?: string;
|
|
58
|
+
tintColor?: string;
|
|
59
|
+
tokensOverride?: DeepPartial<NavBarTokens>;
|
|
60
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
61
|
+
descriptionStyle?: StyleProp<TextStyle>;
|
|
62
|
+
sideStyle?: StyleProp<ViewStyle>;
|
|
63
|
+
onPressLeft?: () => void;
|
|
64
|
+
onClickLeft?: () => void;
|
|
65
|
+
onPressRight?: () => void;
|
|
66
|
+
onClickRight?: () => void;
|
|
67
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { TextProps, ViewProps } from 'react-native';
|
|
2
|
+
import type { DeepPartial } from '../../types';
|
|
3
|
+
import type { NoticeBarTokens } from './tokens';
|
|
4
|
+
export type NoticeBarMode = 'closeable' | 'link';
|
|
5
|
+
export interface NoticeBarProps extends ViewProps {
|
|
6
|
+
text?: React.ReactNode;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
color?: string;
|
|
9
|
+
background?: string;
|
|
10
|
+
leftIcon?: React.ReactNode;
|
|
11
|
+
rightIcon?: React.ReactNode;
|
|
12
|
+
mode?: NoticeBarMode;
|
|
13
|
+
tokensOverride?: DeepPartial<NoticeBarTokens>;
|
|
14
|
+
delay?: number;
|
|
15
|
+
speed?: number;
|
|
16
|
+
scrollable?: boolean;
|
|
17
|
+
wrapable?: boolean;
|
|
18
|
+
direction?: 'horizontal' | 'vertical';
|
|
19
|
+
items?: React.ReactNode[];
|
|
20
|
+
verticalInterval?: number;
|
|
21
|
+
verticalDuration?: number;
|
|
22
|
+
onPress?: () => void;
|
|
23
|
+
onClose?: () => void;
|
|
24
|
+
onReplay?: () => void;
|
|
25
|
+
textProps?: TextProps;
|
|
26
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
import type { DeepPartial } from '../../types';
|
|
4
|
+
export type NotifyType = 'primary' | 'success' | 'danger' | 'warning';
|
|
5
|
+
export type NotifyPosition = 'top' | 'bottom';
|
|
6
|
+
export interface NotifyTokens {
|
|
7
|
+
defaults: {
|
|
8
|
+
type: NotifyType;
|
|
9
|
+
position: NotifyPosition;
|
|
10
|
+
duration: number;
|
|
11
|
+
closeOnClick: boolean;
|
|
12
|
+
animationDuration: number;
|
|
13
|
+
safeAreaInsetTop: boolean;
|
|
14
|
+
safeAreaInsetBottom: boolean;
|
|
15
|
+
};
|
|
16
|
+
layout: {
|
|
17
|
+
portal: ViewStyle;
|
|
18
|
+
container: ViewStyle;
|
|
19
|
+
safeArea: ViewStyle;
|
|
20
|
+
content: ViewStyle;
|
|
21
|
+
text: TextStyle;
|
|
22
|
+
};
|
|
23
|
+
colors: {
|
|
24
|
+
variants: Record<NotifyType, {
|
|
25
|
+
background: string;
|
|
26
|
+
text: string;
|
|
27
|
+
}>;
|
|
28
|
+
};
|
|
29
|
+
typography: {
|
|
30
|
+
fontFamily: string;
|
|
31
|
+
fontSize: number;
|
|
32
|
+
lineHeight: number;
|
|
33
|
+
};
|
|
34
|
+
sizing: {
|
|
35
|
+
minHeight: number;
|
|
36
|
+
};
|
|
37
|
+
spacing: {
|
|
38
|
+
paddingVertical: number;
|
|
39
|
+
paddingHorizontal: number;
|
|
40
|
+
none: number;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export interface NotifyProps {
|
|
44
|
+
visible: boolean;
|
|
45
|
+
message?: React.ReactNode;
|
|
46
|
+
type?: NotifyType;
|
|
47
|
+
duration?: number;
|
|
48
|
+
position?: NotifyPosition;
|
|
49
|
+
offset?: number;
|
|
50
|
+
color?: string;
|
|
51
|
+
background?: string;
|
|
52
|
+
safeAreaInsetTop?: boolean;
|
|
53
|
+
safeAreaInsetBottom?: boolean;
|
|
54
|
+
zIndex?: number;
|
|
55
|
+
closeOnClick?: boolean;
|
|
56
|
+
style?: StyleProp<ViewStyle>;
|
|
57
|
+
textStyle?: StyleProp<TextStyle>;
|
|
58
|
+
tokensOverride?: DeepPartial<NotifyTokens>;
|
|
59
|
+
onClick?: () => void;
|
|
60
|
+
onClose?: () => void;
|
|
61
|
+
onOpen?: () => void;
|
|
62
|
+
onOpened?: () => void;
|
|
63
|
+
onClosed?: () => void;
|
|
64
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import type { DeepPartial } from '../../types';
|
|
4
|
+
import type { NumberKeyboardTokens } from './tokens';
|
|
5
|
+
export type NumberKeyboardTheme = 'default' | 'custom';
|
|
6
|
+
export type NumberKeyboardKeyType = '' | 'delete' | 'extra' | 'close';
|
|
7
|
+
export interface NumberKeyboardProps extends ViewProps {
|
|
8
|
+
visible: boolean;
|
|
9
|
+
value?: string;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
title?: React.ReactNode;
|
|
12
|
+
tokensOverride?: DeepPartial<NumberKeyboardTokens>;
|
|
13
|
+
extraKey?: string | string[];
|
|
14
|
+
closeButtonText?: string;
|
|
15
|
+
deleteButtonText?: string;
|
|
16
|
+
closeButtonLoading?: boolean;
|
|
17
|
+
showDeleteKey?: boolean;
|
|
18
|
+
randomKeyOrder?: boolean;
|
|
19
|
+
blurOnClose?: boolean;
|
|
20
|
+
safeAreaInsetBottom?: boolean;
|
|
21
|
+
theme?: NumberKeyboardTheme;
|
|
22
|
+
transition?: boolean;
|
|
23
|
+
transitionDuration?: number;
|
|
24
|
+
onInput?: (key: string) => void;
|
|
25
|
+
onDelete?: () => void;
|
|
26
|
+
onClose?: () => void;
|
|
27
|
+
onHide?: () => void;
|
|
28
|
+
onShow?: () => void;
|
|
29
|
+
onBlur?: () => void;
|
|
30
|
+
onChange?: (value: string) => void;
|
|
31
|
+
maxlength?: number;
|
|
32
|
+
numberKeyRender?: (key: string) => React.ReactNode;
|
|
33
|
+
deleteRender?: () => React.ReactNode;
|
|
34
|
+
extraKeyRender?: (key: string) => React.ReactNode;
|
|
35
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export interface OverlayProps {
|
|
4
|
+
isOpen?: boolean;
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
useRNModalOnAndroid?: boolean;
|
|
8
|
+
useRNModal?: boolean;
|
|
9
|
+
onRequestClose?: () => void;
|
|
10
|
+
isKeyboardDismissable?: boolean;
|
|
11
|
+
animationPreset?: 'fade' | 'slide' | 'none';
|
|
12
|
+
style?: StyleProp<ViewStyle>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ViewProps, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
3
|
+
import type { DeepPartial } from '../../types';
|
|
4
|
+
import type { PasswordInputTokens } from './tokens';
|
|
5
|
+
export type PasswordInputType = 'text' | 'number';
|
|
6
|
+
export interface PasswordInputProps extends ViewProps {
|
|
7
|
+
value?: string;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
length?: number;
|
|
10
|
+
mask?: boolean;
|
|
11
|
+
gutter?: number;
|
|
12
|
+
type?: PasswordInputType;
|
|
13
|
+
autoFocus?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
info?: React.ReactNode;
|
|
16
|
+
errorInfo?: React.ReactNode;
|
|
17
|
+
showCursor?: boolean;
|
|
18
|
+
validator?: (value: string) => boolean;
|
|
19
|
+
cellStyle?: StyleProp<ViewStyle>;
|
|
20
|
+
cellTextStyle?: StyleProp<TextStyle>;
|
|
21
|
+
cellFilledStyle?: StyleProp<ViewStyle>;
|
|
22
|
+
maskStyle?: StyleProp<ViewStyle>;
|
|
23
|
+
cursorStyle?: StyleProp<ViewStyle>;
|
|
24
|
+
highlightTextStyle?: StyleProp<TextStyle>;
|
|
25
|
+
onChange?: (value: string) => void;
|
|
26
|
+
onSubmit?: (value: string) => void;
|
|
27
|
+
onFocus?: () => void;
|
|
28
|
+
onBlur?: () => void;
|
|
29
|
+
tokensOverride?: DeepPartial<PasswordInputTokens>;
|
|
30
|
+
}
|
|
31
|
+
export interface PasswordInputRef {
|
|
32
|
+
focus: () => void;
|
|
33
|
+
blur: () => void;
|
|
34
|
+
clear: () => void;
|
|
35
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import type { DeepPartial } from '../../types';
|
|
4
|
+
import type { PickerTokens } from './tokens';
|
|
5
|
+
export type PickerValue = string | number;
|
|
6
|
+
export interface PickerOption {
|
|
7
|
+
label?: React.ReactNode;
|
|
8
|
+
value: PickerValue;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
children?: PickerOption[];
|
|
11
|
+
}
|
|
12
|
+
export interface PickerColumnWithDefault {
|
|
13
|
+
options: PickerOption[];
|
|
14
|
+
defaultValue?: PickerValue;
|
|
15
|
+
}
|
|
16
|
+
export type PickerColumn = PickerOption[] | PickerColumnWithDefault;
|
|
17
|
+
export type PickerColumns = PickerColumn[] | PickerOption[];
|
|
18
|
+
export type PickerToolbarPosition = 'top' | 'bottom';
|
|
19
|
+
export type PickerInteractionMode = 'sync' | 'freeze';
|
|
20
|
+
export interface PickerProps extends ViewProps {
|
|
21
|
+
columns?: PickerColumns;
|
|
22
|
+
value?: PickerValue[] | PickerValue;
|
|
23
|
+
defaultValue?: PickerValue[] | PickerValue;
|
|
24
|
+
title?: React.ReactNode;
|
|
25
|
+
tokensOverride?: DeepPartial<PickerTokens>;
|
|
26
|
+
showToolbar?: boolean;
|
|
27
|
+
toolbarPosition?: PickerToolbarPosition;
|
|
28
|
+
confirmButtonText?: React.ReactNode;
|
|
29
|
+
cancelButtonText?: React.ReactNode;
|
|
30
|
+
itemHeight?: number;
|
|
31
|
+
visibleItemCount?: number;
|
|
32
|
+
loading?: boolean;
|
|
33
|
+
readOnly?: boolean;
|
|
34
|
+
interactionMode?: PickerInteractionMode;
|
|
35
|
+
decelerationRate?: 'normal' | 'fast' | number;
|
|
36
|
+
scrollEventThrottle?: number;
|
|
37
|
+
maskColor?: string;
|
|
38
|
+
maskType?: 'gradient' | 'solid';
|
|
39
|
+
swipeDuration?: number;
|
|
40
|
+
columnsTop?: React.ReactNode;
|
|
41
|
+
columnsBottom?: React.ReactNode;
|
|
42
|
+
emitConfirmOnAutoSelect?: boolean;
|
|
43
|
+
optionRender?: (option: PickerOption, context: {
|
|
44
|
+
columnIndex: number;
|
|
45
|
+
active: boolean;
|
|
46
|
+
}) => React.ReactNode;
|
|
47
|
+
getOptionTestID?: (option: PickerOption, context: {
|
|
48
|
+
columnIndex: number;
|
|
49
|
+
active: boolean;
|
|
50
|
+
}) => string | undefined;
|
|
51
|
+
getOptionA11yLabel?: (option: PickerOption, context: {
|
|
52
|
+
columnIndex: number;
|
|
53
|
+
active: boolean;
|
|
54
|
+
}) => string | undefined;
|
|
55
|
+
onChange?: (value: PickerValue[], options: (PickerOption | undefined)[]) => void;
|
|
56
|
+
onConfirm?: (value: PickerValue[], options: (PickerOption | undefined)[]) => void;
|
|
57
|
+
onCancel?: () => void;
|
|
58
|
+
}
|
|
59
|
+
export interface PickerColumnProps {
|
|
60
|
+
columnIndex: number;
|
|
61
|
+
options: PickerOption[];
|
|
62
|
+
value?: PickerValue;
|
|
63
|
+
itemHeight: number;
|
|
64
|
+
visibleItemCount: number;
|
|
65
|
+
optionRender?: PickerProps['optionRender'];
|
|
66
|
+
getOptionTestID?: PickerProps['getOptionTestID'];
|
|
67
|
+
getOptionA11yLabel?: PickerProps['getOptionA11yLabel'];
|
|
68
|
+
readOnly?: boolean;
|
|
69
|
+
decelerationRate?: PickerProps['decelerationRate'];
|
|
70
|
+
scrollEventThrottle?: PickerProps['scrollEventThrottle'];
|
|
71
|
+
swipeDuration?: number;
|
|
72
|
+
onSelect: (option: PickerOption, columnIndex: number, optionIndex: number) => void;
|
|
73
|
+
}
|