react-native-system-ui 1.0.5 → 1.0.7
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 +22 -22
- package/dist/cjs/components/field/Field.js +1 -1
- package/dist/cjs/components/flex/Flex.js +1 -1
- package/dist/cjs/components/flex/FlexItem.js +1 -1
- package/dist/cjs/components/form/Form.js +1 -1
- package/dist/cjs/components/grid/Grid.js +1 -1
- package/dist/cjs/components/grid/GridItem.js +1 -1
- package/dist/cjs/components/popup/Popup.js +1 -1
- package/dist/cjs/components/selector/Selector.js +1 -1
- package/dist/cjs/components/toast/Toast.js +1 -1
- package/dist/es/components/field/Field.js +1 -1
- package/dist/es/components/flex/Flex.js +1 -1
- package/dist/es/components/flex/FlexItem.js +1 -1
- package/dist/es/components/form/Form.js +1 -1
- package/dist/es/components/grid/Grid.js +1 -1
- package/dist/es/components/grid/GridItem.js +1 -1
- package/dist/es/components/popup/Popup.js +1 -1
- package/dist/es/components/selector/Selector.js +1 -1
- package/dist/es/components/toast/Toast.js +1 -1
- package/dist/types/components/action-sheet/ActionSheet.d.ts +1 -4
- package/dist/types/components/action-sheet/index.d.ts +1 -4
- package/dist/types/components/action-sheet/tokens.d.ts +1 -4
- package/dist/types/components/action-sheet/types.d.ts +1 -87
- package/dist/types/components/area/Area.d.ts +1 -4
- package/dist/types/components/area/index.d.ts +1 -3
- package/dist/types/components/area/tokens.d.ts +1 -7
- package/dist/types/components/area/types.d.ts +1 -20
- package/dist/types/components/avatar/Avatar.d.ts +1 -7
- package/dist/types/components/avatar/index.d.ts +1 -2
- package/dist/types/components/avatar/tokens.d.ts +1 -4
- package/dist/types/components/avatar/types.d.ts +1 -62
- package/dist/types/components/badge/Badge.d.ts +1 -4
- package/dist/types/components/badge/index.d.ts +1 -3
- package/dist/types/components/badge/tokens.d.ts +1 -2
- package/dist/types/components/badge/types.d.ts +1 -57
- package/dist/types/components/button/Button.d.ts +1 -5
- package/dist/types/components/button/ButtonContext.d.ts +1 -2
- package/dist/types/components/button/ButtonGroup.d.ts +1 -23
- package/dist/types/components/button/index.d.ts +1 -6
- package/dist/types/components/button/tokens.d.ts +1 -2
- package/dist/types/components/button/types.d.ts +1 -109
- package/dist/types/components/calendar/Calendar.d.ts +1 -4
- package/dist/types/components/calendar/index.d.ts +1 -3
- package/dist/types/components/calendar/tokens.d.ts +1 -4
- package/dist/types/components/calendar/types.d.ts +1 -111
- package/dist/types/components/cascader/Cascader.d.ts +1 -4
- package/dist/types/components/cascader/index.d.ts +1 -4
- package/dist/types/components/cascader/tokens.d.ts +1 -4
- package/dist/types/components/cascader/types.d.ts +1 -142
- package/dist/types/components/cascader/useCascaderExtend.d.ts +1 -12
- package/dist/types/components/cell/Cell.d.ts +1 -4
- package/dist/types/components/cell/CellContext.d.ts +1 -7
- package/dist/types/components/cell/CellGroup.d.ts +1 -3
- package/dist/types/components/cell/index.d.ts +1 -8
- package/dist/types/components/cell/tokens.d.ts +1 -4
- package/dist/types/components/cell/types.d.ts +1 -112
- package/dist/types/components/checkbox/Checkbox.d.ts +1 -5
- package/dist/types/components/checkbox/CheckboxContext.d.ts +1 -2
- package/dist/types/components/checkbox/CheckboxGroup.d.ts +1 -22
- package/dist/types/components/checkbox/index.d.ts +1 -7
- package/dist/types/components/checkbox/tokens.d.ts +1 -2
- package/dist/types/components/checkbox/types.d.ts +1 -99
- package/dist/types/components/circle/Circle.d.ts +1 -5
- package/dist/types/components/circle/index.d.ts +1 -3
- package/dist/types/components/circle/tokens.d.ts +1 -4
- package/dist/types/components/circle/types.d.ts +1 -51
- package/dist/types/components/collapse/Collapse.d.ts +1 -43
- package/dist/types/components/collapse/index.d.ts +1 -3
- package/dist/types/components/collapse/tokens.d.ts +1 -4
- package/dist/types/components/collapse/types.d.ts +1 -45
- package/dist/types/components/config-provider/ConfigProvider.d.ts +1 -3
- package/dist/types/components/config-provider/DirectionContext.d.ts +1 -3
- package/dist/types/components/config-provider/LocaleContext.d.ts +1 -3
- package/dist/types/components/config-provider/index.d.ts +1 -6
- package/dist/types/components/config-provider/locale/en-US.d.ts +1 -106
- package/dist/types/components/config-provider/locale/types.d.ts +1 -130
- package/dist/types/components/config-provider/locale/zh-CN.d.ts +1 -106
- package/dist/types/components/config-provider/tokens.d.ts +1 -3
- package/dist/types/components/config-provider/types.d.ts +1 -10
- package/dist/types/components/config-provider/useDirection.d.ts +1 -1
- package/dist/types/components/config-provider/useLocale.d.ts +1 -1
- package/dist/types/components/count-down/CountDown.d.ts +1 -4
- package/dist/types/components/count-down/index.d.ts +1 -4
- package/dist/types/components/count-down/tokens.d.ts +1 -4
- package/dist/types/components/count-down/types.d.ts +1 -29
- package/dist/types/components/datetime-picker/DatetimePicker.d.ts +1 -4
- package/dist/types/components/datetime-picker/index.d.ts +1 -3
- package/dist/types/components/datetime-picker/tokens.d.ts +1 -15
- package/dist/types/components/datetime-picker/types.d.ts +1 -38
- package/dist/types/components/dialog/Dialog.d.ts +1 -4
- package/dist/types/components/dialog/imperative.d.ts +1 -23
- package/dist/types/components/dialog/index.d.ts +1 -5
- package/dist/types/components/dialog/tokens.d.ts +1 -48
- package/dist/types/components/dialog/types.d.ts +1 -70
- package/dist/types/components/divider/Divider.d.ts +1 -3
- package/dist/types/components/divider/index.d.ts +1 -3
- package/dist/types/components/divider/tokens.d.ts +1 -4
- package/dist/types/components/divider/types.d.ts +1 -48
- package/dist/types/components/empty/Empty.d.ts +1 -3
- package/dist/types/components/empty/index.d.ts +1 -3
- package/dist/types/components/empty/tokens.d.ts +1 -4
- package/dist/types/components/empty/types.d.ts +1 -44
- package/dist/types/components/error-boundary/ErrorBoundary.d.ts +1 -6
- package/dist/types/components/error-boundary/index.d.ts +1 -2
- package/dist/types/components/error-boundary/types.d.ts +1 -18
- package/dist/types/components/field/Field.d.ts +1 -4
- package/dist/types/components/field/index.d.ts +1 -7
- package/dist/types/components/field/tokens.d.ts +1 -131
- package/dist/types/components/field/types.d.ts +1 -86
- package/dist/types/components/flex/Flex.d.ts +1 -9
- package/dist/types/components/flex/FlexContext.d.ts +1 -2
- package/dist/types/components/flex/FlexItem.d.ts +1 -3
- package/dist/types/components/flex/index.d.ts +1 -8
- package/dist/types/components/flex/tokens.d.ts +1 -2
- package/dist/types/components/flex/types.d.ts +1 -37
- package/dist/types/components/form/Form.d.ts +1 -26
- package/dist/types/components/form/FormItem.d.ts +1 -5
- package/dist/types/components/form/FormList.d.ts +1 -18
- package/dist/types/components/form/index.d.ts +1 -17
- package/dist/types/components/form/tokens.d.ts +1 -7
- package/dist/types/components/form/types.d.ts +1 -68
- package/dist/types/components/grid/Grid.d.ts +1 -18
- package/dist/types/components/grid/GridContext.d.ts +1 -2
- package/dist/types/components/grid/GridItem.d.ts +1 -3
- package/dist/types/components/grid/index.d.ts +1 -5
- package/dist/types/components/grid/tokens.d.ts +1 -4
- package/dist/types/components/grid/types.d.ts +1 -77
- package/dist/types/components/image/Image.d.ts +1 -5
- package/dist/types/components/image/index.d.ts +1 -4
- package/dist/types/components/image/tokens.d.ts +1 -2
- package/dist/types/components/image/types.d.ts +1 -53
- package/dist/types/components/image-preview/ImagePreview.d.ts +1 -4
- package/dist/types/components/image-preview/imperative.d.ts +1 -5
- package/dist/types/components/image-preview/index.d.ts +1 -6
- package/dist/types/components/image-preview/tokens.d.ts +1 -27
- package/dist/types/components/image-preview/types.d.ts +1 -55
- package/dist/types/components/index.d.ts +1 -213
- package/dist/types/components/input/Input.d.ts +1 -8
- package/dist/types/components/input/index.d.ts +1 -4
- package/dist/types/components/input/tokens.d.ts +1 -2
- package/dist/types/components/input/types.d.ts +1 -42
- package/dist/types/components/loading/Loading.d.ts +1 -3
- package/dist/types/components/loading/index.d.ts +1 -3
- package/dist/types/components/loading/tokens.d.ts +1 -4
- package/dist/types/components/loading/types.d.ts +1 -32
- package/dist/types/components/nav-bar/NavBar.d.ts +1 -4
- package/dist/types/components/nav-bar/index.d.ts +1 -4
- package/dist/types/components/nav-bar/tokens.d.ts +1 -4
- package/dist/types/components/nav-bar/types.d.ts +1 -67
- package/dist/types/components/notice-bar/NoticeBar.d.ts +1 -3
- package/dist/types/components/notice-bar/index.d.ts +1 -3
- package/dist/types/components/notice-bar/tokens.d.ts +1 -24
- package/dist/types/components/notice-bar/types.d.ts +1 -26
- package/dist/types/components/notify/Notify.d.ts +1 -6
- package/dist/types/components/notify/imperative.d.ts +1 -22
- package/dist/types/components/notify/index.d.ts +1 -15
- package/dist/types/components/notify/tokens.d.ts +1 -4
- package/dist/types/components/notify/types.d.ts +1 -64
- package/dist/types/components/number-keyboard/NumberKeyboard.d.ts +1 -4
- package/dist/types/components/number-keyboard/index.d.ts +1 -4
- package/dist/types/components/number-keyboard/tokens.d.ts +1 -42
- package/dist/types/components/number-keyboard/types.d.ts +1 -35
- package/dist/types/components/overlay/Overlay.d.ts +1 -5
- package/dist/types/components/overlay/index.d.ts +1 -5
- package/dist/types/components/overlay/tokens.d.ts +1 -6
- package/dist/types/components/overlay/types.d.ts +1 -13
- package/dist/types/components/password-input/PasswordInput.d.ts +1 -4
- package/dist/types/components/password-input/index.d.ts +1 -2
- package/dist/types/components/password-input/tokens.d.ts +1 -40
- package/dist/types/components/password-input/types.d.ts +1 -35
- package/dist/types/components/picker/Picker.d.ts +1 -32
- package/dist/types/components/picker/index.d.ts +1 -4
- package/dist/types/components/picker/tokens.d.ts +1 -39
- package/dist/types/components/picker/types.d.ts +1 -73
- package/dist/types/components/popup/Popup.d.ts +1 -5
- package/dist/types/components/popup/index.d.ts +1 -4
- package/dist/types/components/popup/tokens.d.ts +1 -48
- package/dist/types/components/popup/types.d.ts +1 -41
- package/dist/types/components/portal/Portal.d.ts +1 -14
- package/dist/types/components/portal/PortalContext.d.ts +1 -7
- package/dist/types/components/portal/PortalHost.d.ts +1 -11
- package/dist/types/components/portal/index.d.ts +1 -3
- package/dist/types/components/portal/tokens.d.ts +1 -3
- package/dist/types/components/portal/types.d.ts +1 -1
- package/dist/types/components/progress/Progress.d.ts +1 -8
- package/dist/types/components/progress/index.d.ts +1 -4
- package/dist/types/components/progress/tokens.d.ts +1 -4
- package/dist/types/components/progress/types.d.ts +1 -51
- package/dist/types/components/radio/Radio.d.ts +1 -3
- package/dist/types/components/radio/RadioContext.d.ts +1 -2
- package/dist/types/components/radio/RadioGroup.d.ts +1 -14
- package/dist/types/components/radio/index.d.ts +1 -7
- package/dist/types/components/radio/tokens.d.ts +1 -2
- package/dist/types/components/radio/types.d.ts +1 -95
- package/dist/types/components/safe-area-view/SafeAreaView.d.ts +1 -10
- package/dist/types/components/safe-area-view/index.d.ts +1 -2
- package/dist/types/components/safe-area-view/tokens.d.ts +1 -3
- package/dist/types/components/safe-area-view/types.d.ts +1 -1
- package/dist/types/components/search/Search.d.ts +1 -4
- package/dist/types/components/search/index.d.ts +1 -4
- package/dist/types/components/search/tokens.d.ts +1 -41
- package/dist/types/components/search/types.d.ts +1 -28
- package/dist/types/components/selector/Selector.d.ts +1 -7
- package/dist/types/components/selector/index.d.ts +1 -4
- package/dist/types/components/selector/tokens.d.ts +1 -2
- package/dist/types/components/selector/types.d.ts +1 -74
- package/dist/types/components/share-sheet/ShareSheet.d.ts +1 -4
- package/dist/types/components/share-sheet/index.d.ts +1 -4
- package/dist/types/components/share-sheet/tokens.d.ts +1 -40
- package/dist/types/components/share-sheet/types.d.ts +1 -26
- package/dist/types/components/sidebar/Sidebar.d.ts +1 -4
- package/dist/types/components/sidebar/SidebarContext.d.ts +1 -7
- package/dist/types/components/sidebar/SidebarItem.d.ts +1 -4
- package/dist/types/components/sidebar/index.d.ts +1 -8
- package/dist/types/components/sidebar/tokens.d.ts +1 -4
- package/dist/types/components/sidebar/types.d.ts +1 -64
- package/dist/types/components/skeleton/Skeleton.d.ts +1 -5
- package/dist/types/components/skeleton/index.d.ts +1 -5
- package/dist/types/components/skeleton/tokens.d.ts +1 -2
- package/dist/types/components/skeleton/types.d.ts +1 -45
- package/dist/types/components/slider/Slider.d.ts +1 -4
- package/dist/types/components/slider/index.d.ts +1 -3
- package/dist/types/components/slider/tokens.d.ts +1 -28
- package/dist/types/components/slider/types.d.ts +1 -38
- package/dist/types/components/space/Space.d.ts +1 -3
- package/dist/types/components/space/index.d.ts +1 -3
- package/dist/types/components/space/tokens.d.ts +1 -3
- package/dist/types/components/space/types.d.ts +1 -39
- package/dist/types/components/stepper/Stepper.d.ts +1 -4
- package/dist/types/components/stepper/index.d.ts +1 -4
- package/dist/types/components/stepper/tokens.d.ts +1 -46
- package/dist/types/components/stepper/types.d.ts +1 -46
- package/dist/types/components/swiper/Swiper.d.ts +1 -9
- package/dist/types/components/swiper/SwiperItem.d.ts +1 -1
- package/dist/types/components/swiper/SwiperPagIndicator.d.ts +1 -36
- package/dist/types/components/swiper/index.d.ts +1 -14
- package/dist/types/components/swiper/tokens.d.ts +1 -11
- package/dist/types/components/swiper/types.d.ts +1 -29
- package/dist/types/components/switch/Switch.d.ts +1 -7
- package/dist/types/components/switch/index.d.ts +1 -4
- package/dist/types/components/switch/tokens.d.ts +1 -2
- package/dist/types/components/switch/types.d.ts +1 -33
- package/dist/types/components/tabbar/Tabbar.d.ts +1 -4
- package/dist/types/components/tabbar/TabbarContext.d.ts +1 -13
- package/dist/types/components/tabbar/TabbarItem.d.ts +1 -4
- package/dist/types/components/tabbar/index.d.ts +1 -9
- package/dist/types/components/tabbar/tokens.d.ts +1 -28
- package/dist/types/components/tabbar/types.d.ts +1 -39
- package/dist/types/components/tabs/Tabs.d.ts +1 -8
- package/dist/types/components/tabs/index.d.ts +1 -10
- package/dist/types/components/tabs/tokens.d.ts +1 -96
- package/dist/types/components/tabs/types.d.ts +1 -64
- package/dist/types/components/tag/Tag.d.ts +1 -3
- package/dist/types/components/tag/index.d.ts +1 -3
- package/dist/types/components/tag/tokens.d.ts +1 -4
- package/dist/types/components/tag/types.d.ts +1 -69
- package/dist/types/components/theme.d.ts +1 -112
- package/dist/types/components/toast/Toast.d.ts +1 -33
- package/dist/types/components/toast/imperative.d.ts +1 -22
- package/dist/types/components/toast/index.d.ts +1 -15
- package/dist/types/components/toast/tokens.d.ts +1 -29
- package/dist/types/components/toast/types.d.ts +1 -1
- package/dist/types/components/typography/Typography.d.ts +1 -11
- package/dist/types/components/typography/index.d.ts +1 -3
- package/dist/types/components/typography/tokens.d.ts +1 -2
- package/dist/types/components/typography/types.d.ts +1 -66
- package/dist/types/components/water-mark/WaterMark.d.ts +1 -4
- package/dist/types/components/water-mark/index.d.ts +1 -5
- package/dist/types/components/water-mark/tokens.d.ts +1 -2
- package/dist/types/components/water-mark/types.d.ts +1 -58
- package/dist/types/design-system/Text.d.ts +1 -3
- package/dist/types/design-system/ThemeContext.d.ts +1 -14
- package/dist/types/design-system/ThemeProvider.d.ts +1 -14
- package/dist/types/design-system/createComponentTokensHook.d.ts +1 -4
- package/dist/types/design-system/index.d.ts +1 -11
- package/dist/types/design-system/mergeTokensOverride.d.ts +1 -2
- package/dist/types/design-system/presets.d.ts +1 -8
- package/dist/types/design-system/tokens.d.ts +1 -74
- package/dist/types/design-system/useTheme.d.ts +1 -1
- package/dist/types/hooks/animation/index.d.ts +1 -3
- package/dist/types/hooks/animation/useAnimatedTransition.d.ts +1 -13
- package/dist/types/hooks/animation/useReducedMotion.d.ts +1 -3
- package/dist/types/hooks/aria/index.d.ts +1 -4
- package/dist/types/hooks/aria/useAriaListBox.d.ts +1 -14
- package/dist/types/hooks/aria/useAriaOverlay.d.ts +1 -14
- package/dist/types/hooks/aria/useAriaPress.d.ts +1 -19
- package/dist/types/hooks/aria/useAriaToggle.d.ts +1 -12
- package/dist/types/hooks/gesture/index.d.ts +1 -1
- package/dist/types/hooks/gesture/useGestureScroll.d.ts +1 -33
- package/dist/types/hooks/index.d.ts +1 -9
- package/dist/types/hooks/overlay/OverlayStackStore.d.ts +1 -39
- package/dist/types/hooks/overlay/index.d.ts +1 -2
- package/dist/types/hooks/overlay/useOverlayStack.d.ts +1 -10
- package/dist/types/hooks/useControllableValue.d.ts +1 -9
- package/dist/types/hooks/useCountDown.d.ts +1 -23
- package/dist/types/hooks/useHairline.d.ts +1 -10
- package/dist/types/hooks/useSafeAreaPadding.d.ts +1 -13
- package/dist/types/index.d.ts +1 -9
- package/dist/types/nativewind.d.ts +1 -4
- package/dist/types/platform/animation.d.ts +1 -9
- package/dist/types/platform/history.d.ts +1 -1
- package/dist/types/platform/index.d.ts +1 -5
- package/dist/types/platform/measure.d.ts +1 -7
- package/dist/types/platform/runtime.d.ts +1 -3
- package/dist/types/platform/scrollLock.d.ts +1 -2
- package/dist/types/types.d.ts +1 -4
- package/dist/types/utils/array.d.ts +1 -1
- package/dist/types/utils/color.d.ts +1 -3
- package/dist/types/utils/compare.d.ts +1 -2
- package/dist/types/utils/createPlatformShadow.d.ts +1 -11
- package/dist/types/utils/date.d.ts +1 -13
- package/dist/types/utils/deepMerge.d.ts +1 -3
- package/dist/types/utils/hairline.d.ts +1 -15
- package/dist/types/utils/index.d.ts +1 -13
- package/dist/types/utils/number.d.ts +1 -11
- package/dist/types/utils/promise.d.ts +1 -1
- package/dist/types/utils/render.d.ts +1 -5
- package/dist/types/utils/rtl.d.ts +1 -5
- package/dist/types/utils/string.d.ts +1 -3
- package/dist/types/utils/validate.d.ts +1 -13
- package/package.json +142 -149
|
@@ -1,51 +1 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
-
import type { DeepPartial } from '../../types';
|
|
4
|
-
export type CircleStartPosition = 'top' | 'right' | 'bottom' | 'left';
|
|
5
|
-
export type CircleLineCap = 'round' | 'butt' | 'square';
|
|
6
|
-
export interface CircleTokens {
|
|
7
|
-
defaults: {
|
|
8
|
-
rate: number;
|
|
9
|
-
size: number;
|
|
10
|
-
strokeWidth: number;
|
|
11
|
-
fill: string;
|
|
12
|
-
clockwise: boolean;
|
|
13
|
-
startPosition: CircleStartPosition;
|
|
14
|
-
lineCap: CircleLineCap;
|
|
15
|
-
animated: boolean;
|
|
16
|
-
animationDuration: number;
|
|
17
|
-
};
|
|
18
|
-
layout: {
|
|
19
|
-
root: ViewStyle;
|
|
20
|
-
content: ViewStyle;
|
|
21
|
-
text: TextStyle;
|
|
22
|
-
webRing: ViewStyle;
|
|
23
|
-
webInner: ViewStyle;
|
|
24
|
-
};
|
|
25
|
-
colors: {
|
|
26
|
-
color: string;
|
|
27
|
-
layerColor: string;
|
|
28
|
-
text: string;
|
|
29
|
-
};
|
|
30
|
-
typography: {
|
|
31
|
-
fontSize: number;
|
|
32
|
-
lineHeight: number;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export interface CircleProps {
|
|
36
|
-
rate?: number | string;
|
|
37
|
-
size?: number | string;
|
|
38
|
-
strokeWidth?: number | string;
|
|
39
|
-
color?: string;
|
|
40
|
-
layerColor?: string;
|
|
41
|
-
fill?: string;
|
|
42
|
-
clockwise?: boolean;
|
|
43
|
-
startPosition?: CircleStartPosition;
|
|
44
|
-
lineCap?: CircleLineCap;
|
|
45
|
-
animated?: boolean;
|
|
46
|
-
animationDuration?: number;
|
|
47
|
-
style?: StyleProp<ViewStyle>;
|
|
48
|
-
textStyle?: StyleProp<TextStyle>;
|
|
49
|
-
children?: React.ReactNode;
|
|
50
|
-
tokensOverride?: DeepPartial<CircleTokens>;
|
|
51
|
-
}
|
|
1
|
+
import type React from'react';import type{StyleProp,TextStyle,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';export type CircleStartPosition='top'|'right'|'bottom'|'left';export type CircleLineCap='round'|'butt'|'square';export interface CircleTokens{defaults:{rate:number;size:number;strokeWidth:number;fill:string;clockwise:boolean;startPosition:CircleStartPosition;lineCap:CircleLineCap;animated:boolean;animationDuration:number;};layout:{root:ViewStyle;content:ViewStyle;text:TextStyle;webRing:ViewStyle;webInner:ViewStyle;};colors:{color:string;layerColor:string;text:string;};typography:{fontSize:number;lineHeight:number;};}export interface CircleProps{rate?:number|string;size?:number|string;strokeWidth?:number|string;color?:string;layerColor?:string;fill?:string;clockwise?:boolean;startPosition?:CircleStartPosition;lineCap?:CircleLineCap;animated?:boolean;animationDuration?:number;style?:StyleProp<ViewStyle>;textStyle?:StyleProp<TextStyle>;children?:React.ReactNode;tokensOverride?:DeepPartial<CircleTokens>;}
|
|
@@ -1,43 +1 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ViewProps, type TextProps } from 'react-native';
|
|
3
|
-
import type { DeepPartial } from '../../types';
|
|
4
|
-
import type { CollapseTokens } from './types';
|
|
5
|
-
export type CollapseValue = string | string[];
|
|
6
|
-
export interface CollapseProps extends ViewProps {
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
accordion?: boolean;
|
|
9
|
-
value?: CollapseValue;
|
|
10
|
-
defaultValue?: CollapseValue;
|
|
11
|
-
onChange?: (value: CollapseValue) => void;
|
|
12
|
-
border?: boolean;
|
|
13
|
-
iconPosition?: 'left' | 'right';
|
|
14
|
-
expandIcon?: React.ReactNode | ((active: boolean) => React.ReactNode);
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
tokensOverride?: DeepPartial<CollapseTokens>;
|
|
17
|
-
}
|
|
18
|
-
export interface CollapsePanelProps extends ViewProps {
|
|
19
|
-
index?: number;
|
|
20
|
-
name?: string;
|
|
21
|
-
title?: React.ReactNode;
|
|
22
|
-
description?: React.ReactNode;
|
|
23
|
-
label?: React.ReactNode;
|
|
24
|
-
icon?: React.ReactNode;
|
|
25
|
-
extra?: React.ReactNode;
|
|
26
|
-
value?: React.ReactNode;
|
|
27
|
-
border?: boolean;
|
|
28
|
-
isLink?: boolean;
|
|
29
|
-
size?: 'normal' | 'large';
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
readOnly?: boolean;
|
|
32
|
-
children?: React.ReactNode;
|
|
33
|
-
titleStyle?: TextProps['style'];
|
|
34
|
-
descriptionStyle?: TextProps['style'];
|
|
35
|
-
}
|
|
36
|
-
export type CollapsePanelInstance = {
|
|
37
|
-
toggle: (expand?: boolean) => void;
|
|
38
|
-
};
|
|
39
|
-
export declare const Collapse: React.NamedExoticComponent<CollapseProps> & {
|
|
40
|
-
Panel: React.ForwardRefExoticComponent<CollapsePanelProps & React.RefAttributes<CollapsePanelInstance>>;
|
|
41
|
-
Item: React.ForwardRefExoticComponent<CollapsePanelProps & React.RefAttributes<CollapsePanelInstance>>;
|
|
42
|
-
};
|
|
43
|
-
export default Collapse;
|
|
1
|
+
import React from'react';import{type ViewProps,type TextProps}from'react-native';import type{DeepPartial}from'../../types';import type{CollapseTokens}from'./types';export type CollapseValue=string|string[];export interface CollapseProps extends ViewProps{children?:React.ReactNode;accordion?:boolean;value?:CollapseValue;defaultValue?:CollapseValue;onChange?:(value:CollapseValue)=>void;border?:boolean;iconPosition?:'left'|'right';expandIcon?:React.ReactNode|((active:boolean)=>React.ReactNode);disabled?:boolean;tokensOverride?:DeepPartial<CollapseTokens>;}export interface CollapsePanelProps extends ViewProps{index?:number;name?:string;title?:React.ReactNode;description?:React.ReactNode;label?:React.ReactNode;icon?:React.ReactNode;extra?:React.ReactNode;value?:React.ReactNode;border?:boolean;isLink?:boolean;size?:'normal'|'large';disabled?:boolean;readOnly?:boolean;children?:React.ReactNode;titleStyle?:TextProps['style'];descriptionStyle?:TextProps['style'];}export type CollapsePanelInstance={toggle:(expand?:boolean)=>void;};export declare const Collapse:React.NamedExoticComponent<CollapseProps>&{Panel:React.ForwardRefExoticComponent<CollapsePanelProps&React.RefAttributes<CollapsePanelInstance>>;Item:React.ForwardRefExoticComponent<CollapsePanelProps&React.RefAttributes<CollapsePanelInstance>>;};export default Collapse;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export type { CollapseProps, CollapsePanelProps, CollapsePanelInstance, CollapseValue } from './Collapse';
|
|
3
|
-
export default Collapse;
|
|
1
|
+
import{Collapse}from'./Collapse';export type{CollapseProps,CollapsePanelProps,CollapsePanelInstance,CollapseValue}from'./Collapse';export default Collapse;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { CollapseTokens } from './types';
|
|
3
|
-
export declare const createCollapseTokens: (foundations: Foundations) => CollapseTokens;
|
|
4
|
-
export declare const useCollapseTokens: (overrides?: import("../..").DeepPartial<CollapseTokens> | undefined) => CollapseTokens;
|
|
1
|
+
import type{Foundations}from'../../design-system/tokens';import type{CollapseTokens}from'./types';export declare const createCollapseTokens:(foundations:Foundations)=>CollapseTokens;export declare const useCollapseTokens:(overrides?:import("../..").DeepPartial<CollapseTokens>|undefined)=>CollapseTokens;
|
|
@@ -1,45 +1 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export interface CollapseTokens {
|
|
3
|
-
defaults: {
|
|
4
|
-
accordion: boolean;
|
|
5
|
-
border: boolean;
|
|
6
|
-
iconPosition: 'left' | 'right';
|
|
7
|
-
panelBorder: boolean;
|
|
8
|
-
panelIsLink: boolean;
|
|
9
|
-
panelSize: 'normal' | 'large';
|
|
10
|
-
animationDuration: number;
|
|
11
|
-
};
|
|
12
|
-
layout: {
|
|
13
|
-
container: ViewStyle;
|
|
14
|
-
panel: ViewStyle;
|
|
15
|
-
hairline: ViewStyle;
|
|
16
|
-
headerWrapper: ViewStyle;
|
|
17
|
-
bodyWrapper: ViewStyle;
|
|
18
|
-
headerIconRow: ViewStyle;
|
|
19
|
-
bodyContent: ViewStyle;
|
|
20
|
-
};
|
|
21
|
-
colors: {
|
|
22
|
-
border: string;
|
|
23
|
-
title: string;
|
|
24
|
-
description: string;
|
|
25
|
-
background: string;
|
|
26
|
-
active: string;
|
|
27
|
-
arrow: string;
|
|
28
|
-
disabled: string;
|
|
29
|
-
};
|
|
30
|
-
typography: {
|
|
31
|
-
titleSize: number;
|
|
32
|
-
descriptionSize: number;
|
|
33
|
-
fontFamily: string;
|
|
34
|
-
titleWeight: NonNullable<TextStyle['fontWeight']>;
|
|
35
|
-
};
|
|
36
|
-
panel: {
|
|
37
|
-
borderRadius: number;
|
|
38
|
-
};
|
|
39
|
-
spacing: {
|
|
40
|
-
paddingVertical: number;
|
|
41
|
-
paddingHorizontal: number;
|
|
42
|
-
descriptionTop: number;
|
|
43
|
-
iconGap: number;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
1
|
+
import type{TextStyle,ViewStyle}from'react-native';export interface CollapseTokens{defaults:{accordion:boolean;border:boolean;iconPosition:'left'|'right';panelBorder:boolean;panelIsLink:boolean;panelSize:'normal'|'large';animationDuration:number;};layout:{container:ViewStyle;panel:ViewStyle;hairline:ViewStyle;headerWrapper:ViewStyle;bodyWrapper:ViewStyle;headerIconRow:ViewStyle;bodyContent:ViewStyle;};colors:{border:string;title:string;description:string;background:string;active:string;arrow:string;disabled:string;};typography:{titleSize:number;descriptionSize:number;fontFamily:string;titleWeight:NonNullable<TextStyle['fontWeight']>;};panel:{borderRadius:number;};spacing:{paddingVertical:number;paddingHorizontal:number;descriptionTop:number;iconGap:number;};}
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { ConfigProviderProps } from './types';
|
|
3
|
-
export declare const ConfigProvider: React.NamedExoticComponent<ConfigProviderProps>;
|
|
1
|
+
import React from'react';import type{ConfigProviderProps}from'./types';export declare const ConfigProvider:React.NamedExoticComponent<ConfigProviderProps>;
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { useLocale } from './useLocale';
|
|
3
|
-
export { useDirection } from './useDirection';
|
|
4
|
-
export { zhCN } from './locale/zh-CN';
|
|
5
|
-
export { enUS } from './locale/en-US';
|
|
6
|
-
export type { ConfigProviderProps, Direction } from './types';
|
|
1
|
+
export{ConfigProvider}from'./ConfigProvider';export{useLocale}from'./useLocale';export{useDirection}from'./useDirection';export{zhCN}from'./locale/zh-CN';export{enUS}from'./locale/en-US';export type{ConfigProviderProps,Direction}from'./types';
|
|
@@ -1,106 +1 @@
|
|
|
1
|
-
export declare const enUS:
|
|
2
|
-
name: string;
|
|
3
|
-
tel: string;
|
|
4
|
-
save: string;
|
|
5
|
-
confirm: string;
|
|
6
|
-
cancel: string;
|
|
7
|
-
delete: string;
|
|
8
|
-
loading: string;
|
|
9
|
-
noCoupon: string;
|
|
10
|
-
nameEmpty: string;
|
|
11
|
-
telInvalid: string;
|
|
12
|
-
vanCalendar: {
|
|
13
|
-
end: string;
|
|
14
|
-
start: string;
|
|
15
|
-
title: string;
|
|
16
|
-
confirm: string;
|
|
17
|
-
startEnd: string;
|
|
18
|
-
weekdays: string[];
|
|
19
|
-
monthTitle: (year: number, month: number) => string;
|
|
20
|
-
rangePrompt: (maxRange: number) => string;
|
|
21
|
-
};
|
|
22
|
-
vanPicker: {
|
|
23
|
-
select: string;
|
|
24
|
-
};
|
|
25
|
-
vanContactCard: {
|
|
26
|
-
addText: string;
|
|
27
|
-
};
|
|
28
|
-
vanContactList: {
|
|
29
|
-
addText: string;
|
|
30
|
-
};
|
|
31
|
-
vanPagination: {
|
|
32
|
-
prev: string;
|
|
33
|
-
next: string;
|
|
34
|
-
};
|
|
35
|
-
vanPullRefresh: {
|
|
36
|
-
pulling: string;
|
|
37
|
-
loosing: string;
|
|
38
|
-
loading: string;
|
|
39
|
-
};
|
|
40
|
-
vanSubmitBar: {
|
|
41
|
-
label: string;
|
|
42
|
-
};
|
|
43
|
-
vanCoupon: {
|
|
44
|
-
unlimited: string;
|
|
45
|
-
discount: (discount: number) => string;
|
|
46
|
-
condition: (condition: number) => string;
|
|
47
|
-
};
|
|
48
|
-
vanCouponCell: {
|
|
49
|
-
title: string;
|
|
50
|
-
count: (count: number) => string;
|
|
51
|
-
};
|
|
52
|
-
vanCouponList: {
|
|
53
|
-
exchange: string;
|
|
54
|
-
close: string;
|
|
55
|
-
enable: string;
|
|
56
|
-
disabled: string;
|
|
57
|
-
placeholder: string;
|
|
58
|
-
};
|
|
59
|
-
vanAddressEdit: {
|
|
60
|
-
area: string;
|
|
61
|
-
postal: string;
|
|
62
|
-
areaEmpty: string;
|
|
63
|
-
addressEmpty: string;
|
|
64
|
-
postalEmpty: string;
|
|
65
|
-
defaultAddress: string;
|
|
66
|
-
};
|
|
67
|
-
vanAddressEditDetail: {
|
|
68
|
-
label: string;
|
|
69
|
-
placeholder: string;
|
|
70
|
-
};
|
|
71
|
-
vanAddressList: {
|
|
72
|
-
add: string;
|
|
73
|
-
};
|
|
74
|
-
vanForm: {
|
|
75
|
-
validationFailed: string;
|
|
76
|
-
};
|
|
77
|
-
vanPopup: {
|
|
78
|
-
closeOverlay: string;
|
|
79
|
-
closeHint: string;
|
|
80
|
-
};
|
|
81
|
-
vanToast: {
|
|
82
|
-
closeHint: string;
|
|
83
|
-
};
|
|
84
|
-
vanShareSheet: {
|
|
85
|
-
cancel: string;
|
|
86
|
-
};
|
|
87
|
-
vanNumberKeyboard: {
|
|
88
|
-
close: string;
|
|
89
|
-
};
|
|
90
|
-
vanNoticeBar: {
|
|
91
|
-
close: string;
|
|
92
|
-
};
|
|
93
|
-
vanNavBar: {
|
|
94
|
-
back: string;
|
|
95
|
-
action: string;
|
|
96
|
-
};
|
|
97
|
-
vanImage: {
|
|
98
|
-
loading: string;
|
|
99
|
-
error: string;
|
|
100
|
-
};
|
|
101
|
-
vanCascader: {
|
|
102
|
-
placeholder: string;
|
|
103
|
-
loading: string;
|
|
104
|
-
close: string;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
1
|
+
export declare const enUS:{name:string;tel:string;save:string;confirm:string;cancel:string;delete:string;loading:string;noCoupon:string;nameEmpty:string;telInvalid:string;vanCalendar:{end:string;start:string;title:string;confirm:string;startEnd:string;weekdays:string[];monthTitle:(year:number,month:number)=>string;rangePrompt:(maxRange:number)=>string;};vanPicker:{select:string;};vanContactCard:{addText:string;};vanContactList:{addText:string;};vanPagination:{prev:string;next:string;};vanPullRefresh:{pulling:string;loosing:string;loading:string;};vanSubmitBar:{label:string;};vanCoupon:{unlimited:string;discount:(discount:number)=>string;condition:(condition:number)=>string;};vanCouponCell:{title:string;count:(count:number)=>string;};vanCouponList:{exchange:string;close:string;enable:string;disabled:string;placeholder:string;};vanAddressEdit:{area:string;postal:string;areaEmpty:string;addressEmpty:string;postalEmpty:string;defaultAddress:string;};vanAddressEditDetail:{label:string;placeholder:string;};vanAddressList:{add:string;};vanForm:{validationFailed:string;};vanPopup:{closeOverlay:string;closeHint:string;};vanToast:{closeHint:string;};vanShareSheet:{cancel:string;};vanNumberKeyboard:{close:string;};vanNoticeBar:{close:string;};vanNavBar:{back:string;action:string;};vanImage:{loading:string;error:string;};vanCascader:{placeholder:string;loading:string;close:string;};};
|
|
@@ -1,130 +1 @@
|
|
|
1
|
-
export interface Locale
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
/** Common */
|
|
4
|
-
name?: string;
|
|
5
|
-
tel?: string;
|
|
6
|
-
save?: string;
|
|
7
|
-
confirm?: string;
|
|
8
|
-
cancel?: string;
|
|
9
|
-
delete?: string;
|
|
10
|
-
loading?: string;
|
|
11
|
-
noCoupon?: string;
|
|
12
|
-
nameEmpty?: string;
|
|
13
|
-
telInvalid?: string;
|
|
14
|
-
/** Form */
|
|
15
|
-
vanForm?: {
|
|
16
|
-
validationFailed?: string;
|
|
17
|
-
};
|
|
18
|
-
/** Popup */
|
|
19
|
-
vanPopup?: {
|
|
20
|
-
closeOverlay?: string;
|
|
21
|
-
closeHint?: string;
|
|
22
|
-
};
|
|
23
|
-
/** Toast */
|
|
24
|
-
vanToast?: {
|
|
25
|
-
closeHint?: string;
|
|
26
|
-
};
|
|
27
|
-
/** ShareSheet */
|
|
28
|
-
vanShareSheet?: {
|
|
29
|
-
cancel?: string;
|
|
30
|
-
};
|
|
31
|
-
/** NumberKeyboard */
|
|
32
|
-
vanNumberKeyboard?: {
|
|
33
|
-
close?: string;
|
|
34
|
-
};
|
|
35
|
-
/** NoticeBar */
|
|
36
|
-
vanNoticeBar?: {
|
|
37
|
-
close?: string;
|
|
38
|
-
};
|
|
39
|
-
/** NavBar */
|
|
40
|
-
vanNavBar?: {
|
|
41
|
-
back?: string;
|
|
42
|
-
action?: string;
|
|
43
|
-
};
|
|
44
|
-
/** Image */
|
|
45
|
-
vanImage?: {
|
|
46
|
-
loading?: string;
|
|
47
|
-
error?: string;
|
|
48
|
-
};
|
|
49
|
-
/** Cascader */
|
|
50
|
-
vanCascader?: {
|
|
51
|
-
placeholder?: string;
|
|
52
|
-
loading?: string;
|
|
53
|
-
close?: string;
|
|
54
|
-
};
|
|
55
|
-
/** Calendar */
|
|
56
|
-
vanCalendar?: {
|
|
57
|
-
end?: string;
|
|
58
|
-
start?: string;
|
|
59
|
-
title?: string;
|
|
60
|
-
confirm?: string;
|
|
61
|
-
startEnd?: string;
|
|
62
|
-
weekdays?: string[];
|
|
63
|
-
monthTitle?: (year: number, month: number) => string;
|
|
64
|
-
rangePrompt?: (maxRange: number) => string;
|
|
65
|
-
};
|
|
66
|
-
/** Picker */
|
|
67
|
-
vanPicker?: {
|
|
68
|
-
select?: string;
|
|
69
|
-
};
|
|
70
|
-
/** ContactCard */
|
|
71
|
-
vanContactCard?: {
|
|
72
|
-
addText?: string;
|
|
73
|
-
};
|
|
74
|
-
/** ContactList */
|
|
75
|
-
vanContactList?: {
|
|
76
|
-
addText?: string;
|
|
77
|
-
};
|
|
78
|
-
/** Pagination */
|
|
79
|
-
vanPagination?: {
|
|
80
|
-
prev?: string;
|
|
81
|
-
next?: string;
|
|
82
|
-
};
|
|
83
|
-
/** PullRefresh */
|
|
84
|
-
vanPullRefresh?: {
|
|
85
|
-
pulling?: string;
|
|
86
|
-
loosing?: string;
|
|
87
|
-
loading?: string;
|
|
88
|
-
};
|
|
89
|
-
/** SubmitBar */
|
|
90
|
-
vanSubmitBar?: {
|
|
91
|
-
label?: string;
|
|
92
|
-
};
|
|
93
|
-
/** Coupon */
|
|
94
|
-
vanCoupon?: {
|
|
95
|
-
unlimited?: string;
|
|
96
|
-
discount?: (discount: number) => string;
|
|
97
|
-
condition?: (condition: number) => string;
|
|
98
|
-
};
|
|
99
|
-
/** CouponCell */
|
|
100
|
-
vanCouponCell?: {
|
|
101
|
-
title?: string;
|
|
102
|
-
count?: (count: number) => string;
|
|
103
|
-
};
|
|
104
|
-
/** CouponList */
|
|
105
|
-
vanCouponList?: {
|
|
106
|
-
exchange?: string;
|
|
107
|
-
close?: string;
|
|
108
|
-
enable?: string;
|
|
109
|
-
disabled?: string;
|
|
110
|
-
placeholder?: string;
|
|
111
|
-
};
|
|
112
|
-
/** AddressEdit */
|
|
113
|
-
vanAddressEdit?: {
|
|
114
|
-
area?: string;
|
|
115
|
-
postal?: string;
|
|
116
|
-
areaEmpty?: string;
|
|
117
|
-
addressEmpty?: string;
|
|
118
|
-
postalEmpty?: string;
|
|
119
|
-
defaultAddress?: string;
|
|
120
|
-
};
|
|
121
|
-
/** AddressEditDetail */
|
|
122
|
-
vanAddressEditDetail?: {
|
|
123
|
-
label?: string;
|
|
124
|
-
placeholder?: string;
|
|
125
|
-
};
|
|
126
|
-
/** AddressList */
|
|
127
|
-
vanAddressList?: {
|
|
128
|
-
add?: string;
|
|
129
|
-
};
|
|
130
|
-
}
|
|
1
|
+
export interface Locale{[key:string]:any;name?:string;tel?:string;save?:string;confirm?:string;cancel?:string;delete?:string;loading?:string;noCoupon?:string;nameEmpty?:string;telInvalid?:string;vanForm?:{validationFailed?:string;};vanPopup?:{closeOverlay?:string;closeHint?:string;};vanToast?:{closeHint?:string;};vanShareSheet?:{cancel?:string;};vanNumberKeyboard?:{close?:string;};vanNoticeBar?:{close?:string;};vanNavBar?:{back?:string;action?:string;};vanImage?:{loading?:string;error?:string;};vanCascader?:{placeholder?:string;loading?:string;close?:string;};vanCalendar?:{end?:string;start?:string;title?:string;confirm?:string;startEnd?:string;weekdays?:string[];monthTitle?:(year:number,month:number)=>string;rangePrompt?:(maxRange:number)=>string;};vanPicker?:{select?:string;};vanContactCard?:{addText?:string;};vanContactList?:{addText?:string;};vanPagination?:{prev?:string;next?:string;};vanPullRefresh?:{pulling?:string;loosing?:string;loading?:string;};vanSubmitBar?:{label?:string;};vanCoupon?:{unlimited?:string;discount?:(discount:number)=>string;condition?:(condition:number)=>string;};vanCouponCell?:{title?:string;count?:(count:number)=>string;};vanCouponList?:{exchange?:string;close?:string;enable?:string;disabled?:string;placeholder?:string;};vanAddressEdit?:{area?:string;postal?:string;areaEmpty?:string;addressEmpty?:string;postalEmpty?:string;defaultAddress?:string;};vanAddressEditDetail?:{label?:string;placeholder?:string;};vanAddressList?:{add?:string;};}
|
|
@@ -1,106 +1 @@
|
|
|
1
|
-
export declare const zhCN:
|
|
2
|
-
name: string;
|
|
3
|
-
tel: string;
|
|
4
|
-
save: string;
|
|
5
|
-
confirm: string;
|
|
6
|
-
cancel: string;
|
|
7
|
-
delete: string;
|
|
8
|
-
loading: string;
|
|
9
|
-
noCoupon: string;
|
|
10
|
-
nameEmpty: string;
|
|
11
|
-
telInvalid: string;
|
|
12
|
-
vanCalendar: {
|
|
13
|
-
end: string;
|
|
14
|
-
start: string;
|
|
15
|
-
title: string;
|
|
16
|
-
confirm: string;
|
|
17
|
-
startEnd: string;
|
|
18
|
-
weekdays: string[];
|
|
19
|
-
monthTitle: (year: number, month: number) => string;
|
|
20
|
-
rangePrompt: (maxRange: number) => string;
|
|
21
|
-
};
|
|
22
|
-
vanPicker: {
|
|
23
|
-
select: string;
|
|
24
|
-
};
|
|
25
|
-
vanContactCard: {
|
|
26
|
-
addText: string;
|
|
27
|
-
};
|
|
28
|
-
vanContactList: {
|
|
29
|
-
addText: string;
|
|
30
|
-
};
|
|
31
|
-
vanPagination: {
|
|
32
|
-
prev: string;
|
|
33
|
-
next: string;
|
|
34
|
-
};
|
|
35
|
-
vanPullRefresh: {
|
|
36
|
-
pulling: string;
|
|
37
|
-
loosing: string;
|
|
38
|
-
loading: string;
|
|
39
|
-
};
|
|
40
|
-
vanSubmitBar: {
|
|
41
|
-
label: string;
|
|
42
|
-
};
|
|
43
|
-
vanCoupon: {
|
|
44
|
-
unlimited: string;
|
|
45
|
-
discount: (discount: number) => string;
|
|
46
|
-
condition: (condition: number) => string;
|
|
47
|
-
};
|
|
48
|
-
vanCouponCell: {
|
|
49
|
-
title: string;
|
|
50
|
-
count: (count: number) => string;
|
|
51
|
-
};
|
|
52
|
-
vanCouponList: {
|
|
53
|
-
exchange: string;
|
|
54
|
-
close: string;
|
|
55
|
-
enable: string;
|
|
56
|
-
disabled: string;
|
|
57
|
-
placeholder: string;
|
|
58
|
-
};
|
|
59
|
-
vanAddressEdit: {
|
|
60
|
-
area: string;
|
|
61
|
-
postal: string;
|
|
62
|
-
areaEmpty: string;
|
|
63
|
-
addressEmpty: string;
|
|
64
|
-
postalEmpty: string;
|
|
65
|
-
defaultAddress: string;
|
|
66
|
-
};
|
|
67
|
-
vanAddressEditDetail: {
|
|
68
|
-
label: string;
|
|
69
|
-
placeholder: string;
|
|
70
|
-
};
|
|
71
|
-
vanAddressList: {
|
|
72
|
-
add: string;
|
|
73
|
-
};
|
|
74
|
-
vanForm: {
|
|
75
|
-
validationFailed: string;
|
|
76
|
-
};
|
|
77
|
-
vanPopup: {
|
|
78
|
-
closeOverlay: string;
|
|
79
|
-
closeHint: string;
|
|
80
|
-
};
|
|
81
|
-
vanToast: {
|
|
82
|
-
closeHint: string;
|
|
83
|
-
};
|
|
84
|
-
vanShareSheet: {
|
|
85
|
-
cancel: string;
|
|
86
|
-
};
|
|
87
|
-
vanNumberKeyboard: {
|
|
88
|
-
close: string;
|
|
89
|
-
};
|
|
90
|
-
vanNoticeBar: {
|
|
91
|
-
close: string;
|
|
92
|
-
};
|
|
93
|
-
vanNavBar: {
|
|
94
|
-
back: string;
|
|
95
|
-
action: string;
|
|
96
|
-
};
|
|
97
|
-
vanImage: {
|
|
98
|
-
loading: string;
|
|
99
|
-
error: string;
|
|
100
|
-
};
|
|
101
|
-
vanCascader: {
|
|
102
|
-
placeholder: string;
|
|
103
|
-
loading: string;
|
|
104
|
-
close: string;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
1
|
+
export declare const zhCN:{name:string;tel:string;save:string;confirm:string;cancel:string;delete:string;loading:string;noCoupon:string;nameEmpty:string;telInvalid:string;vanCalendar:{end:string;start:string;title:string;confirm:string;startEnd:string;weekdays:string[];monthTitle:(year:number,month:number)=>string;rangePrompt:(maxRange:number)=>string;};vanPicker:{select:string;};vanContactCard:{addText:string;};vanContactList:{addText:string;};vanPagination:{prev:string;next:string;};vanPullRefresh:{pulling:string;loosing:string;loading:string;};vanSubmitBar:{label:string;};vanCoupon:{unlimited:string;discount:(discount:number)=>string;condition:(condition:number)=>string;};vanCouponCell:{title:string;count:(count:number)=>string;};vanCouponList:{exchange:string;close:string;enable:string;disabled:string;placeholder:string;};vanAddressEdit:{area:string;postal:string;areaEmpty:string;addressEmpty:string;postalEmpty:string;defaultAddress:string;};vanAddressEditDetail:{label:string;placeholder:string;};vanAddressList:{add:string;};vanForm:{validationFailed:string;};vanPopup:{closeOverlay:string;closeHint:string;};vanToast:{closeHint:string;};vanShareSheet:{cancel:string;};vanNumberKeyboard:{close:string;};vanNoticeBar:{close:string;};vanNavBar:{back:string;action:string;};vanImage:{loading:string;error:string;};vanCascader:{placeholder:string;loading:string;close:string;};};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export interface ConfigProviderTokens
|
|
2
|
-
}
|
|
3
|
-
export declare const useConfigProviderTokens: (overrides?: import("../..").DeepPartial<ConfigProviderTokens> | undefined) => ConfigProviderTokens;
|
|
1
|
+
export interface ConfigProviderTokens{}export declare const useConfigProviderTokens:(overrides?:import("../..").DeepPartial<ConfigProviderTokens>|undefined)=>ConfigProviderTokens;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import type React from
|
|
2
|
-
import type { ThemeProviderValue } from '../../design-system/ThemeProvider';
|
|
3
|
-
import type { Locale } from './locale/types';
|
|
4
|
-
export type Direction = 'ltr' | 'rtl';
|
|
5
|
-
export interface ConfigProviderProps {
|
|
6
|
-
theme?: ThemeProviderValue;
|
|
7
|
-
locale?: Locale;
|
|
8
|
-
direction?: Direction;
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
}
|
|
1
|
+
import type React from'react';import type{ThemeProviderValue}from'../../design-system/ThemeProvider';import type{Locale}from'./locale/types';export type Direction='ltr'|'rtl';export interface ConfigProviderProps{theme?:ThemeProviderValue;locale?:Locale;direction?:Direction;children:React.ReactNode;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useDirection:
|
|
1
|
+
export declare const useDirection:()=>import("./types").Direction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useLocale:
|
|
1
|
+
export declare const useLocale:()=>import("./locale/types").Locale;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { CountDownInstance, CountDownProps } from './types';
|
|
3
|
-
declare const CountDown: React.NamedExoticComponent<CountDownProps & React.RefAttributes<CountDownInstance>>;
|
|
4
|
-
export default CountDown;
|
|
1
|
+
import React from'react';import type{CountDownInstance,CountDownProps}from'./types';declare const CountDown:React.NamedExoticComponent<CountDownProps&React.RefAttributes<CountDownInstance>>;export default CountDown;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import CountDown from
|
|
2
|
-
export type { CountDownProps, CountDownInstance } from './types';
|
|
3
|
-
export default CountDown;
|
|
4
|
-
export { CountDown };
|
|
1
|
+
import CountDown from'./CountDown';export type{CountDownProps,CountDownInstance}from'./types';export default CountDown;export{CountDown};
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { CountDownTokens } from './types';
|
|
3
|
-
export declare const createCountDownTokens: (foundations: Foundations) => CountDownTokens;
|
|
4
|
-
export declare const useCountDownTokens: (overrides?: import("../..").DeepPartial<CountDownTokens> | undefined) => CountDownTokens;
|
|
1
|
+
import type{Foundations}from'../../design-system/tokens';import type{CountDownTokens}from'./types';export declare const createCountDownTokens:(foundations:Foundations)=>CountDownTokens;export declare const useCountDownTokens:(overrides?:import("../..").DeepPartial<CountDownTokens>|undefined)=>CountDownTokens;
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { CountDownCurrentTime } from '../../hooks';
|
|
3
|
-
import type { DeepPartial } from '../../types';
|
|
4
|
-
export type CountDownInstance = {
|
|
5
|
-
start: () => void;
|
|
6
|
-
pause: () => void;
|
|
7
|
-
reset: () => void;
|
|
8
|
-
};
|
|
9
|
-
export interface CountDownTokens {
|
|
10
|
-
defaults: {
|
|
11
|
-
autoStart: boolean;
|
|
12
|
-
millisecond: boolean;
|
|
13
|
-
time: number;
|
|
14
|
-
format: string;
|
|
15
|
-
};
|
|
16
|
-
layout: {
|
|
17
|
-
text: TextStyle;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export interface CountDownProps extends Omit<ViewProps, 'children'> {
|
|
21
|
-
autoStart?: boolean;
|
|
22
|
-
millisecond?: boolean;
|
|
23
|
-
time?: number | string;
|
|
24
|
-
format?: string;
|
|
25
|
-
children?: (current: CountDownCurrentTime) => React.ReactNode;
|
|
26
|
-
onChange?: (current: CountDownCurrentTime) => void;
|
|
27
|
-
onFinish?: () => void;
|
|
28
|
-
tokensOverride?: DeepPartial<CountDownTokens>;
|
|
29
|
-
}
|
|
1
|
+
import type{TextStyle,ViewProps}from'react-native';import type{CountDownCurrentTime}from'../../hooks';import type{DeepPartial}from'../../types';export type CountDownInstance={start:()=>void;pause:()=>void;reset:()=>void;};export interface CountDownTokens{defaults:{autoStart:boolean;millisecond:boolean;time:number;format:string;};layout:{text:TextStyle;};}export interface CountDownProps extends Omit<ViewProps,'children'>{autoStart?:boolean;millisecond?:boolean;time?:number|string;format?:string;children?:(current:CountDownCurrentTime)=>React.ReactNode;onChange?:(current:CountDownCurrentTime)=>void;onFinish?:()=>void;tokensOverride?:DeepPartial<CountDownTokens>;}
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { DatetimePickerProps } from './types';
|
|
3
|
-
declare const DatetimePicker: React.NamedExoticComponent<DatetimePickerProps>;
|
|
4
|
-
export default DatetimePicker;
|
|
1
|
+
import React from'react';import type{DatetimePickerProps}from'./types';declare const DatetimePicker:React.NamedExoticComponent<DatetimePickerProps>;export default DatetimePicker;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
import DatetimePicker from
|
|
2
|
-
export type { DatetimePickerProps, DatetimePickerType } from './types';
|
|
3
|
-
export default DatetimePicker;
|
|
1
|
+
import DatetimePicker from'./DatetimePicker';export type{DatetimePickerProps,DatetimePickerType}from'./types';export default DatetimePicker;
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
export interface DatetimePickerTokens
|
|
2
|
-
defaults: {
|
|
3
|
-
yearRangeOffset: number;
|
|
4
|
-
dateInteractionMode: 'freeze' | 'sync';
|
|
5
|
-
timeInteractionMode: 'freeze' | 'sync';
|
|
6
|
-
minHour: number;
|
|
7
|
-
maxHour: number;
|
|
8
|
-
minMinute: number;
|
|
9
|
-
maxMinute: number;
|
|
10
|
-
popupPlacement: 'bottom' | 'top' | 'left' | 'right';
|
|
11
|
-
popupRound: boolean;
|
|
12
|
-
popupSafeAreaInsetBottom: boolean;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export declare const useDatetimePickerTokens: (overrides?: import("../..").DeepPartial<DatetimePickerTokens> | undefined) => DatetimePickerTokens;
|
|
1
|
+
export interface DatetimePickerTokens{defaults:{yearRangeOffset:number;dateInteractionMode:'freeze'|'sync';timeInteractionMode:'freeze'|'sync';minHour:number;maxHour:number;minMinute:number;maxMinute:number;popupPlacement:'bottom'|'top'|'left'|'right';popupRound:boolean;popupSafeAreaInsetBottom:boolean;};}export declare const useDatetimePickerTokens:(overrides?:import("../..").DeepPartial<DatetimePickerTokens>|undefined)=>DatetimePickerTokens;
|