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,5 +1 @@
|
|
|
1
|
-
import Skeleton from
|
|
2
|
-
export type { SkeletonProps, SkeletonAvatarShape } from './types';
|
|
3
|
-
export { useSkeletonTokens } from './tokens';
|
|
4
|
-
export default Skeleton;
|
|
5
|
-
export { Skeleton };
|
|
1
|
+
import Skeleton from'./Skeleton';export type{SkeletonProps,SkeletonAvatarShape}from'./types';export{useSkeletonTokens}from'./tokens';export default Skeleton;export{Skeleton};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare const useSkeletonTokens: (overrides?: import("../..").DeepPartial<SkeletonTokens> | undefined) => SkeletonTokens;
|
|
1
|
+
import type{SkeletonTokens}from'./types';export declare const useSkeletonTokens:(overrides?:import("../..").DeepPartial<SkeletonTokens>|undefined)=>SkeletonTokens;
|
|
@@ -1,45 +1 @@
|
|
|
1
|
-
import type
|
|
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
|
-
}
|
|
1
|
+
import type{ViewProps}from'react-native';import type{DeepPartial}from'../../types';export type SkeletonAvatarShape='round'|'square';export interface SkeletonTokens{defaults:{rowCount:number;rowWidth:number|string;lastRowWidth:number|string;rowHeight:number|string;avatarSize:number|string;titleWidth:number|string;};colors:{block:string;highlight:string;};radius:number;spacing:{containerGap:number;rowGap:number;};animation:{duration:number;minOpacity:number;maxOpacity:number;};}export interface SkeletonProps extends ViewProps{isLoaded?:boolean;loading?:boolean;animate?:boolean;startColor?:string;speed?:number|string;avatar?:boolean;avatarSize?:number|string;avatarShape?:SkeletonAvatarShape;title?:boolean;titleWidth?:number|string;row?:number;rowWidth?:number|string|Array<number|string>;rowHeight?:number|string|Array<number|string>;round?:boolean;tokensOverride?:DeepPartial<SkeletonTokens>;children?:React.ReactNode;}
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { SliderProps } from './types';
|
|
3
|
-
export declare const Slider: React.NamedExoticComponent<SliderProps>;
|
|
4
|
-
export default Slider;
|
|
1
|
+
import React from'react';import type{SliderProps}from'./types';export declare const Slider:React.NamedExoticComponent<SliderProps>;export default Slider;
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
export interface SliderTokens
|
|
2
|
-
track: {
|
|
3
|
-
height: number;
|
|
4
|
-
radius: number;
|
|
5
|
-
};
|
|
6
|
-
thumb: {
|
|
7
|
-
size: number;
|
|
8
|
-
indicatorSize: number;
|
|
9
|
-
elevation: number;
|
|
10
|
-
};
|
|
11
|
-
colors: {
|
|
12
|
-
active: string;
|
|
13
|
-
inactive: string;
|
|
14
|
-
thumbBackground: string;
|
|
15
|
-
thumbIndicator: string;
|
|
16
|
-
};
|
|
17
|
-
spacing: {
|
|
18
|
-
containerPaddingVertical: number;
|
|
19
|
-
};
|
|
20
|
-
layout: {
|
|
21
|
-
verticalMinHeight: number;
|
|
22
|
-
verticalWidth: number;
|
|
23
|
-
};
|
|
24
|
-
states: {
|
|
25
|
-
disabledOpacity: number;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export declare const useSliderTokens: (overrides?: import("../..").DeepPartial<SliderTokens> | undefined) => SliderTokens;
|
|
1
|
+
export interface SliderTokens{track:{height:number;radius:number;};thumb:{size:number;indicatorSize:number;elevation:number;};colors:{active:string;inactive:string;thumbBackground:string;thumbIndicator:string;};spacing:{containerPaddingVertical:number;};layout:{verticalMinHeight:number;verticalWidth:number;};states:{disabledOpacity:number;};}export declare const useSliderTokens:(overrides?:import("../..").DeepPartial<SliderTokens>|undefined)=>SliderTokens;
|
|
@@ -1,38 +1 @@
|
|
|
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
|
-
}
|
|
1
|
+
import type React from'react';import type{GestureResponderEvent,ViewProps}from'react-native';import type{DeepPartial}from'../../types';import type{SliderTokens}from'./tokens';export type SliderValue=number|[number,number];export type SliderNumberish=number|string;export interface SliderProps extends ViewProps{value?:SliderValue;min?:SliderNumberish;max?:SliderNumberish;step?:SliderNumberish;range?:boolean;vertical?:boolean;disabled?:boolean;readOnly?:boolean;reverse?:boolean;debug?:boolean;activeColor?:string;inactiveColor?:string;barHeight?:SliderNumberish;trackHeight?:SliderNumberish;buttonSize?:SliderNumberish;thumbSize?:SliderNumberish;tokensOverride?:DeepPartial<SliderTokens>;button?:React.ReactNode|(({value}:{value:SliderValue;})=>React.ReactNode);thumb?:React.ReactNode;leftThumb?:React.ReactNode;rightThumb?:React.ReactNode;leftButton?:React.ReactNode;rightButton?:React.ReactNode;ariaLabel?:string;onChange?:(value:SliderValue)=>void;onChangeAfter?:(value:SliderValue)=>void;onDragStart?:(event:GestureResponderEvent,value:SliderValue)=>void;onDragEnd?:(event:GestureResponderEvent,value:SliderValue)=>void;}
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { SpaceProps } from './types';
|
|
3
|
-
export declare const Space: React.MemoExoticComponent<(props: SpaceProps) => React.JSX.Element>;
|
|
1
|
+
import React from'react';import type{SpaceProps}from'./types';export declare const Space:React.MemoExoticComponent<(props:SpaceProps)=>React.JSX.Element>;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { Space } from './Space';
|
|
3
|
-
export type { SpaceAlign, SpaceDirection, SpaceGap, SpaceJustify, SpaceProps, SpaceSizePreset } from './types';
|
|
1
|
+
export{Space as default}from'./Space';export{Space}from'./Space';export type{SpaceAlign,SpaceDirection,SpaceGap,SpaceJustify,SpaceProps,SpaceSizePreset}from'./types';
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare const useSpaceTokens: (overrides?: import("../..").DeepPartial<SpaceTokens> | undefined) => SpaceTokens;
|
|
3
|
-
export declare const resolveGapInput: (gap?: SpaceGap, size?: SpaceGap | SpaceSizePreset, fallback?: SpaceSizePreset) => string | number | [string | number, string | number];
|
|
1
|
+
import type{SpaceGap,SpaceSizePreset,SpaceTokens}from'./types';export declare const useSpaceTokens:(overrides?:import("../..").DeepPartial<SpaceTokens>|undefined)=>SpaceTokens;export declare const resolveGapInput:(gap?:SpaceGap,size?:SpaceGap|SpaceSizePreset,fallback?:SpaceSizePreset)=>string|number|[string|number,string|number];
|
|
@@ -1,39 +1 @@
|
|
|
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
|
-
}
|
|
1
|
+
import type React from'react';import type{ViewProps,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';export type SpaceDirection='horizontal'|'vertical';export type SpaceAlign='start'|'end'|'center'|'baseline'|'stretch';export type SpaceJustify='start'|'end'|'center'|'between'|'around'|'evenly'|'stretch';export type SpaceGap=number|string|[number|string,number|string];export type SpaceSizePreset='mini'|'small'|'normal'|'large';export interface SpaceTokens{defaults:{direction:SpaceDirection;wrap:boolean;gapPreset:SpaceSizePreset;};layout:{container:ViewStyle;};typography:{fontFamily:string;fontSize:number;};sizing:{presets:Record<SpaceSizePreset,number>;};}export interface SpaceProps extends ViewProps{children?:React.ReactNode;gap?:SpaceGap;size?:SpaceGap|SpaceSizePreset;direction?:SpaceDirection;align?:SpaceAlign;justify?:SpaceJustify;wrap?:boolean;block?:boolean;fill?:boolean;divider?:React.ReactNode;onClick?:ViewProps['onTouchEnd'];tokensOverride?:DeepPartial<SpaceTokens>;}
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { StepperInstance, StepperProps } from './types';
|
|
3
|
-
export declare const Stepper: React.NamedExoticComponent<StepperProps & React.RefAttributes<StepperInstance>>;
|
|
4
|
-
export default Stepper;
|
|
1
|
+
import React from'react';import type{StepperInstance,StepperProps}from'./types';export declare const Stepper:React.NamedExoticComponent<StepperProps&React.RefAttributes<StepperInstance>>;export default Stepper;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import Stepper from
|
|
2
|
-
export default Stepper;
|
|
3
|
-
export { Stepper };
|
|
4
|
-
export type { StepperProps, StepperTheme, StepperInstance } from './types';
|
|
1
|
+
import Stepper from'./Stepper';export default Stepper;export{Stepper};export type{StepperProps,StepperTheme,StepperInstance}from'./types';
|
|
@@ -1,46 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { StepperTheme } from './types';
|
|
3
|
-
export interface StepperTokens {
|
|
4
|
-
defaults: {
|
|
5
|
-
theme: StepperTheme;
|
|
6
|
-
showInput: boolean;
|
|
7
|
-
showPlus: boolean;
|
|
8
|
-
showMinus: boolean;
|
|
9
|
-
longPress: boolean;
|
|
10
|
-
inputWidth: number;
|
|
11
|
-
buttonSize: number;
|
|
12
|
-
};
|
|
13
|
-
colors: {
|
|
14
|
-
active: string;
|
|
15
|
-
background: string;
|
|
16
|
-
buttonIcon: string;
|
|
17
|
-
buttonDisabledBackground: string;
|
|
18
|
-
buttonDisabledIcon: string;
|
|
19
|
-
roundTheme: string;
|
|
20
|
-
roundThemeText: string;
|
|
21
|
-
roundThemeBackground: string;
|
|
22
|
-
inputText: string;
|
|
23
|
-
inputDisabledText: string;
|
|
24
|
-
inputDisabledBackground: string;
|
|
25
|
-
transparent: string;
|
|
26
|
-
};
|
|
27
|
-
radii: {
|
|
28
|
-
default: number;
|
|
29
|
-
};
|
|
30
|
-
typography: {
|
|
31
|
-
fontFamily: string;
|
|
32
|
-
fontSize: number;
|
|
33
|
-
fontWeight: TextStyle['fontWeight'];
|
|
34
|
-
};
|
|
35
|
-
opacity: {
|
|
36
|
-
disabled: number;
|
|
37
|
-
roundDisabled: number;
|
|
38
|
-
pressed: number;
|
|
39
|
-
};
|
|
40
|
-
spacing: {
|
|
41
|
-
gap: number;
|
|
42
|
-
none: number;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export declare const useStepperTokens: (overrides?: import("../..").DeepPartial<StepperTokens> | undefined) => StepperTokens;
|
|
46
|
-
export type { StepperTheme };
|
|
1
|
+
import{type TextStyle}from'react-native';import type{StepperTheme}from'./types';export interface StepperTokens{defaults:{theme:StepperTheme;showInput:boolean;showPlus:boolean;showMinus:boolean;longPress:boolean;inputWidth:number;buttonSize:number;};colors:{active:string;background:string;buttonIcon:string;buttonDisabledBackground:string;buttonDisabledIcon:string;roundTheme:string;roundThemeText:string;roundThemeBackground:string;inputText:string;inputDisabledText:string;inputDisabledBackground:string;transparent:string;};radii:{default:number;};typography:{fontFamily:string;fontSize:number;fontWeight:TextStyle['fontWeight'];};opacity:{disabled:number;roundDisabled:number;pressed:number;};spacing:{gap:number;none:number;};}export declare const useStepperTokens:(overrides?:import("../..").DeepPartial<StepperTokens>|undefined)=>StepperTokens;export type{StepperTheme};
|
|
@@ -1,46 +1 @@
|
|
|
1
|
-
import type
|
|
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
|
-
}
|
|
1
|
+
import type{GestureResponderEvent,StyleProp,TextInputProps,TextStyle,ViewProps,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';import type{StepperTokens}from'./tokens';export type StepperTheme='default'|'round';export interface StepperProps extends Omit<ViewProps,'onChange'>{value?:number|null;defaultValue?:number|null;min?:number;max?:number;step?:number;autoFixed?:boolean;beforeChange?:(value:number|null)=>boolean|Promise<boolean>;integer?:boolean;decimalLength?:number|string;disabled?:boolean;disablePlus?:boolean;disableMinus?:boolean;disableInput?:boolean;allowEmpty?:boolean;showPlus?:boolean;showMinus?:boolean;showInput?:boolean;longPress?:boolean;theme?:StepperTheme;inputWidth?:number|string;buttonSize?:number|string;name?:string;placeholder?:string;tokensOverride?:DeepPartial<StepperTokens>;onClick?:(event:GestureResponderEvent)=>void;onChange?:(value:number|null,detail?:{name?:string;})=>void;onPlus?:(event:GestureResponderEvent,value:number|null)=>void;onMinus?:(event:GestureResponderEvent,value:number|null)=>void;onOverlimit?:(type:'plus'|'minus')=>void;onFocus?:TextInputProps['onFocus'];onBlur?:TextInputProps['onBlur'];inputProps?:TextInputProps;inputStyle?:StyleProp<TextStyle>;buttonStyle?:StyleProp<ViewStyle>;}export interface StepperInstance{focus:()=>void;blur:()=>void;}
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import type { SwiperProps, SwiperInstance, SwiperItemProps } from './types';
|
|
4
|
-
type SwiperComponent = (<T>(props: SwiperProps<T> & RefAttributes<SwiperInstance>) => ReactElement | null) & {
|
|
5
|
-
displayName?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const SwiperItem: React.NamedExoticComponent<SwiperItemProps & React.RefAttributes<View>>;
|
|
8
|
-
declare const Swiper: SwiperComponent;
|
|
9
|
-
export default Swiper;
|
|
1
|
+
import React,{type ReactElement,type RefAttributes}from'react';import{View}from'react-native';import type{SwiperProps,SwiperInstance,SwiperItemProps}from'./types';type SwiperComponent=(<T>(props:SwiperProps<T>&RefAttributes<SwiperInstance>)=>ReactElement|null)&{displayName?:string;};export declare const SwiperItem:React.NamedExoticComponent<SwiperItemProps&React.RefAttributes<View>>;declare const Swiper:SwiperComponent;export default Swiper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{SwiperItem as default}from'./Swiper';
|
|
@@ -1,36 +1 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type StyleProp, type ViewStyle, type ViewProps } from 'react-native';
|
|
3
|
-
import type { DeepPartial } from '../../types';
|
|
4
|
-
export interface SwiperPagIndicatorTokens {
|
|
5
|
-
colors: {
|
|
6
|
-
active: string;
|
|
7
|
-
inactive: string;
|
|
8
|
-
};
|
|
9
|
-
sizing: {
|
|
10
|
-
dotSizeActive: number;
|
|
11
|
-
dotSizeInactive: number;
|
|
12
|
-
};
|
|
13
|
-
spacing: {
|
|
14
|
-
dotMargin: number;
|
|
15
|
-
};
|
|
16
|
-
offset: {
|
|
17
|
-
horizontalBottom: number;
|
|
18
|
-
verticalRight: number;
|
|
19
|
-
};
|
|
20
|
-
layer: {
|
|
21
|
-
zIndex: number;
|
|
22
|
-
elevation: number;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export declare const useSwiperPagIndicatorTokens: (overrides?: DeepPartial<SwiperPagIndicatorTokens> | undefined) => SwiperPagIndicatorTokens;
|
|
26
|
-
export interface SwiperPagIndicatorProps extends ViewProps {
|
|
27
|
-
total: number;
|
|
28
|
-
current: number;
|
|
29
|
-
vertical?: boolean;
|
|
30
|
-
style?: StyleProp<ViewStyle>;
|
|
31
|
-
activeColor?: string;
|
|
32
|
-
inactiveColor?: string;
|
|
33
|
-
tokensOverride?: DeepPartial<SwiperPagIndicatorTokens>;
|
|
34
|
-
}
|
|
35
|
-
declare const SwiperPagIndicator: React.NamedExoticComponent<SwiperPagIndicatorProps>;
|
|
36
|
-
export default SwiperPagIndicator;
|
|
1
|
+
import React from'react';import{type StyleProp,type ViewStyle,type ViewProps}from'react-native';import type{DeepPartial}from'../../types';export interface SwiperPagIndicatorTokens{colors:{active:string;inactive:string;};sizing:{dotSizeActive:number;dotSizeInactive:number;};spacing:{dotMargin:number;};offset:{horizontalBottom:number;verticalRight:number;};layer:{zIndex:number;elevation:number;};}export declare const useSwiperPagIndicatorTokens:(overrides?:DeepPartial<SwiperPagIndicatorTokens>|undefined)=>SwiperPagIndicatorTokens;export interface SwiperPagIndicatorProps extends ViewProps{total:number;current:number;vertical?:boolean;style?:StyleProp<ViewStyle>;activeColor?:string;inactiveColor?:string;tokensOverride?:DeepPartial<SwiperPagIndicatorTokens>;}declare const SwiperPagIndicator:React.NamedExoticComponent<SwiperPagIndicatorProps>;export default SwiperPagIndicator;
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
import Swiper from './Swiper';
|
|
2
|
-
import SwiperItem from './SwiperItem';
|
|
3
|
-
import SwiperPagIndicator from './SwiperPagIndicator';
|
|
4
|
-
declare const SwiperWithItem: (<T>(props: import("./types").SwiperProps<T> & import("react").RefAttributes<import("./types").SwiperInstance>) => import("react").ReactElement | null) & {
|
|
5
|
-
displayName?: string;
|
|
6
|
-
} & {
|
|
7
|
-
Item: import("react").NamedExoticComponent<import("./types").SwiperItemProps & import("react").RefAttributes<import("react-native").View>>;
|
|
8
|
-
PagIndicator: import("react").NamedExoticComponent<import("./SwiperPagIndicator").SwiperPagIndicatorProps>;
|
|
9
|
-
};
|
|
10
|
-
export default SwiperWithItem;
|
|
11
|
-
export { Swiper, SwiperItem, SwiperPagIndicator };
|
|
12
|
-
export { useSwiperPagIndicatorTokens } from './SwiperPagIndicator';
|
|
13
|
-
export type { SwiperPagIndicatorProps, SwiperPagIndicatorTokens } from './SwiperPagIndicator';
|
|
14
|
-
export type { SwiperProps, SwiperInstance, SwiperItemProps } from './types';
|
|
1
|
+
import Swiper from'./Swiper';import SwiperItem from'./SwiperItem';import SwiperPagIndicator from'./SwiperPagIndicator';declare const SwiperWithItem:(<T>(props:import("./types").SwiperProps<T>&import("react").RefAttributes<import("./types").SwiperInstance>)=>import("react").ReactElement|null)&{displayName?:string;}&{Item:import("react").NamedExoticComponent<import("./types").SwiperItemProps&import("react").RefAttributes<import("react-native").View>>;PagIndicator:import("react").NamedExoticComponent<import("./SwiperPagIndicator").SwiperPagIndicatorProps>;};export default SwiperWithItem;export{Swiper,SwiperItem,SwiperPagIndicator};export{useSwiperPagIndicatorTokens}from'./SwiperPagIndicator';export type{SwiperPagIndicatorProps,SwiperPagIndicatorTokens}from'./SwiperPagIndicator';export type{SwiperProps,SwiperInstance,SwiperItemProps}from'./types';
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
export interface SwiperTokens
|
|
2
|
-
defaults: {
|
|
3
|
-
autoplayInterval: number;
|
|
4
|
-
scrollEventThrottle: number;
|
|
5
|
-
};
|
|
6
|
-
layer: {
|
|
7
|
-
zIndex: number;
|
|
8
|
-
elevation: number;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export declare const useSwiperTokens: (overrides?: import("../..").DeepPartial<SwiperTokens> | undefined) => SwiperTokens;
|
|
1
|
+
export interface SwiperTokens{defaults:{autoplayInterval:number;scrollEventThrottle:number;};layer:{zIndex:number;elevation:number;};}export declare const useSwiperTokens:(overrides?:import("../..").DeepPartial<SwiperTokens>|undefined)=>SwiperTokens;
|
|
@@ -1,29 +1 @@
|
|
|
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
|
-
};
|
|
1
|
+
import React from'react';import type{StyleProp,ViewStyle,FlatListProps}from'react-native';import type{SwiperPagIndicatorProps}from'./SwiperPagIndicator';export interface SwiperProps<T=unknown>{data?:T[];renderItem?:FlatListProps<T>['renderItem'];children?:React.ReactElement|React.ReactElement[];initialSwipe?:number;touchable?:boolean;loop?:boolean;autoplay?:boolean|number;vertical?:boolean;onChange?:(index:number)=>void;indicator?:boolean|((total:number,current:number)=>React.ReactNode);indicatorProps?:Omit<SwiperPagIndicatorProps,'total'|'current'|'vertical'>;style?:StyleProp<ViewStyle>;testID?:string;}export interface SwiperItemProps{style?:StyleProp<ViewStyle>;children?:React.ReactNode;testID?:string;}export type SwiperInstance={swipeTo:(index:number,animated?:boolean)=>void;swipeNext:()=>void;swipePrev:()=>void;getCurrentIndex:()=>number;};
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { SwitchProps } from './types';
|
|
3
|
-
type SwitchComponent = (<V = boolean>(props: SwitchProps<V>) => React.ReactElement) & {
|
|
4
|
-
displayName?: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const Switch: SwitchComponent;
|
|
7
|
-
export default Switch;
|
|
1
|
+
import React from'react';import type{SwitchProps}from'./types';type SwitchComponent=(<V=boolean>(props:SwitchProps<V>)=>React.ReactElement)&{displayName?:string;};export declare const Switch:SwitchComponent;export default Switch;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare const useSwitchTokens: (overrides?: import("../..").DeepPartial<SwitchTokens> | undefined) => SwitchTokens;
|
|
1
|
+
import type{SwitchTokens}from'./types';export declare const useSwitchTokens:(overrides?:import("../..").DeepPartial<SwitchTokens>|undefined)=>SwitchTokens;
|
|
@@ -1,33 +1 @@
|
|
|
1
|
-
import type
|
|
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
|
-
}
|
|
1
|
+
import type{GestureResponderEvent,StyleProp,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';export interface SwitchTokens{defaults:{size:number;disabled:boolean;activeValue:unknown;inactiveValue:unknown;};colors:{activeTrack:string;inactiveTrack:string;handle:string;};opacity:{disabled:number;pressed:number;};}export interface SwitchProps<V=boolean>{checked?:V;defaultChecked?:V;disabled?:boolean;size?:number|'sm'|'md'|'lg'|string;activeColor?:string;inactiveColor?:string;activeValue?:V;inactiveValue?:V;tokensOverride?:DeepPartial<SwitchTokens>;onChange?:(val:V)=>void;onClick?:(event:GestureResponderEvent)=>void;style?:StyleProp<ViewStyle>;}
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { TabbarProps, TabbarValue } from './types';
|
|
3
|
-
declare const TabbarBase: React.NamedExoticComponent<TabbarProps<TabbarValue>>;
|
|
4
|
-
export default TabbarBase;
|
|
1
|
+
import React from'react';import type{TabbarProps,TabbarValue}from'./types';declare const TabbarBase:React.NamedExoticComponent<TabbarProps<TabbarValue>>;export default TabbarBase;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TextStyle } from 'react-native';
|
|
3
|
-
import type { TabbarValue } from './types';
|
|
4
|
-
export interface TabbarContextValue {
|
|
5
|
-
activeValue?: TabbarValue;
|
|
6
|
-
activeColor: string;
|
|
7
|
-
inactiveColor: string;
|
|
8
|
-
fontSize: number;
|
|
9
|
-
fontWeight: TextStyle['fontWeight'];
|
|
10
|
-
onSelect: (name: TabbarValue, index: number) => void;
|
|
11
|
-
}
|
|
12
|
-
export declare const TabbarContext: React.Context<TabbarContextValue | null>;
|
|
13
|
-
export declare const useTabbarContext: () => TabbarContextValue | null;
|
|
1
|
+
import React from'react';import type{TextStyle}from'react-native';import type{TabbarValue}from'./types';export interface TabbarContextValue{activeValue?:TabbarValue;activeColor:string;inactiveColor:string;fontSize:number;fontWeight:TextStyle['fontWeight'];onSelect:(name:TabbarValue,index:number)=>void;}export declare const TabbarContext:React.Context<TabbarContextValue|null>;export declare const useTabbarContext:()=>TabbarContextValue|null;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { TabbarItemProps, TabbarValue } from './types';
|
|
3
|
-
declare const TabbarItem: React.NamedExoticComponent<TabbarItemProps<TabbarValue>>;
|
|
4
|
-
export default TabbarItem;
|
|
1
|
+
import React from'react';import type{TabbarItemProps,TabbarValue}from'./types';declare const TabbarItem:React.NamedExoticComponent<TabbarItemProps<TabbarValue>>;export default TabbarItem;
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
import TabbarBase from
|
|
2
|
-
import TabbarItem from './TabbarItem';
|
|
3
|
-
export type { TabbarProps, TabbarItemProps, TabbarValue } from './types';
|
|
4
|
-
export { useTabbarTokens } from './tokens';
|
|
5
|
-
declare const Tabbar: typeof TabbarBase & {
|
|
6
|
-
Item: typeof TabbarItem;
|
|
7
|
-
};
|
|
8
|
-
export { TabbarItem };
|
|
9
|
-
export default Tabbar;
|
|
1
|
+
import TabbarBase from'./Tabbar';import TabbarItem from'./TabbarItem';export type{TabbarProps,TabbarItemProps,TabbarValue}from'./types';export{useTabbarTokens}from'./tokens';declare const Tabbar:typeof TabbarBase&{Item:typeof TabbarItem;};export{TabbarItem};export default Tabbar;
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export interface TabbarTokens {
|
|
3
|
-
defaults: {
|
|
4
|
-
fixed: boolean;
|
|
5
|
-
border: boolean;
|
|
6
|
-
placeholder: boolean;
|
|
7
|
-
safeAreaInsetBottom: boolean;
|
|
8
|
-
};
|
|
9
|
-
colors: {
|
|
10
|
-
background: string;
|
|
11
|
-
border: string;
|
|
12
|
-
active: string;
|
|
13
|
-
inactive: string;
|
|
14
|
-
};
|
|
15
|
-
layout: {
|
|
16
|
-
height: number;
|
|
17
|
-
paddingHorizontal: number;
|
|
18
|
-
paddingVertical: number;
|
|
19
|
-
};
|
|
20
|
-
icon: {
|
|
21
|
-
size: number;
|
|
22
|
-
};
|
|
23
|
-
typography: {
|
|
24
|
-
fontSize: number;
|
|
25
|
-
fontWeight: TextStyle['fontWeight'];
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export declare const useTabbarTokens: (overrides?: import("../..").DeepPartial<TabbarTokens> | undefined) => TabbarTokens;
|
|
1
|
+
import type{TextStyle}from'react-native';export interface TabbarTokens{defaults:{fixed:boolean;border:boolean;placeholder:boolean;safeAreaInsetBottom:boolean;};colors:{background:string;border:string;active:string;inactive:string;};layout:{height:number;paddingHorizontal:number;paddingVertical:number;};icon:{size:number;};typography:{fontSize:number;fontWeight:TextStyle['fontWeight'];};}export declare const useTabbarTokens:(overrides?:import("../..").DeepPartial<TabbarTokens>|undefined)=>TabbarTokens;
|
|
@@ -1,39 +1 @@
|
|
|
1
|
-
import type
|
|
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
|
-
}
|
|
1
|
+
import type*as React from'react';import type{StyleProp,TextStyle,ViewProps,ViewStyle}from'react-native';import type{BadgeProps}from'../badge/types';import type{DeepPartial}from'../../types';import type{TabbarTokens}from'./tokens';export type TabbarValue=string|number;export interface TabbarProps<T=TabbarValue>extends Omit<ViewProps,'children'>{children?:React.ReactNode;value?:T;defaultValue?:T;fixed?:boolean;border?:boolean;zIndex?:number;activeColor?:string;inactiveColor?:string;background?:string;placeholder?:boolean;safeAreaInsetBottom?:boolean;iconSize?:number;tokensOverride?:DeepPartial<TabbarTokens>;style?:StyleProp<ViewStyle>;contentStyle?:StyleProp<ViewStyle>;onChange?:(name:T,index:number)=>void;}export interface TabbarItemProps<T=TabbarValue>extends Omit<ViewProps,'children'>{name?:T;icon?:React.ReactNode|((active:boolean)=>React.ReactNode);badge?:BadgeProps|React.ReactNode;dot?:boolean;onClick?:()=>void;textStyle?:StyleProp<TextStyle>;iconStyle?:StyleProp<ViewStyle>;children?:React.ReactNode|((active:boolean)=>React.ReactNode);disabled?:boolean;testID?:string;tokensOverride?:DeepPartial<TabbarTokens>;index?:number;iconSize?:number;}
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import type { TabPaneProps, TabsProps, TabsRef } from './types';
|
|
3
|
-
declare const TabPane: FC<TabPaneProps>;
|
|
4
|
-
declare const TabsWithPane: React.NamedExoticComponent<TabsProps & React.RefAttributes<TabsRef>> & {
|
|
5
|
-
TabPane: React.FC<TabPaneProps>;
|
|
6
|
-
};
|
|
7
|
-
export { TabPane };
|
|
8
|
-
export default TabsWithPane;
|
|
1
|
+
import React,{type FC}from'react';import type{TabPaneProps,TabsProps,TabsRef}from'./types';declare const TabPane:FC<TabPaneProps>;declare const TabsWithPane:React.NamedExoticComponent<TabsProps&React.RefAttributes<TabsRef>>&{TabPane:React.FC<TabPaneProps>;};export{TabPane};export default TabsWithPane;
|