react-native-system-ui 1.0.6 → 1.0.8
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 +13 -13
- package/dist/cjs/components/calendar/Calendar.js +1 -1
- package/dist/cjs/components/cascader/Cascader.js +1 -1
- package/dist/cjs/components/cascader/useCascaderExtend.js +1 -1
- package/dist/cjs/components/dialog/Dialog.js +1 -1
- package/dist/cjs/components/dialog/imperative.js +1 -1
- package/dist/cjs/components/field/Field.js +1 -1
- package/dist/cjs/components/form/Form.js +1 -1
- package/dist/cjs/components/number-keyboard/NumberKeyboard.js +1 -1
- package/dist/cjs/components/overlay/Overlay.js +1 -1
- package/dist/cjs/components/picker/Picker.js +1 -1
- package/dist/cjs/components/popup/Popup.js +1 -1
- package/dist/cjs/components/portal/PortalHost.js +1 -1
- package/dist/cjs/components/selector/Selector.js +1 -1
- package/dist/cjs/components/slider/Slider.js +1 -1
- package/dist/cjs/components/stepper/Stepper.js +1 -1
- package/dist/cjs/components/swiper/Swiper.js +1 -1
- package/dist/cjs/components/tabs/Tabs.js +1 -1
- package/dist/cjs/components/toast/Toast.js +1 -1
- package/dist/cjs/hooks/calendar/utils.js +1 -0
- package/dist/cjs/hooks/cascader/utils.js +1 -0
- package/dist/cjs/hooks/dialog/ActionButton.js +1 -0
- package/dist/cjs/hooks/field/renderers.js +1 -0
- package/dist/cjs/hooks/form/utils.js +1 -0
- package/dist/cjs/hooks/number-keyboard/utils.js +1 -0
- package/dist/cjs/hooks/picker/normalize.js +1 -0
- package/dist/cjs/hooks/picker/value.js +1 -0
- package/dist/cjs/hooks/popup/utils.js +1 -0
- package/dist/cjs/hooks/slider/utils.js +1 -0
- package/dist/cjs/hooks/swiper/utils.js +1 -0
- package/dist/cjs/hooks/tabs/TabBarItem.js +1 -0
- package/dist/cjs/hooks/tabs/useTabsInternals.js +1 -0
- package/dist/cjs/utils/compare.js +1 -1
- package/dist/es/components/calendar/Calendar.js +1 -1
- package/dist/es/components/cascader/Cascader.js +1 -1
- package/dist/es/components/cascader/useCascaderExtend.js +1 -1
- package/dist/es/components/dialog/Dialog.js +1 -1
- package/dist/es/components/dialog/imperative.js +1 -1
- package/dist/es/components/field/Field.js +1 -1
- package/dist/es/components/form/Form.js +1 -1
- package/dist/es/components/number-keyboard/NumberKeyboard.js +1 -1
- package/dist/es/components/overlay/Overlay.js +1 -1
- package/dist/es/components/picker/Picker.js +1 -1
- package/dist/es/components/popup/Popup.js +1 -1
- package/dist/es/components/portal/PortalHost.js +1 -1
- package/dist/es/components/selector/Selector.js +1 -1
- package/dist/es/components/slider/Slider.js +1 -1
- package/dist/es/components/stepper/Stepper.js +1 -1
- package/dist/es/components/swiper/Swiper.js +1 -1
- package/dist/es/components/tabs/Tabs.js +1 -1
- package/dist/es/components/toast/Toast.js +1 -1
- package/dist/es/hooks/calendar/utils.js +1 -0
- package/dist/es/hooks/cascader/utils.js +1 -0
- package/dist/es/hooks/dialog/ActionButton.js +1 -0
- package/dist/es/hooks/field/renderers.js +1 -0
- package/dist/es/hooks/form/utils.js +1 -0
- package/dist/es/hooks/number-keyboard/utils.js +1 -0
- package/dist/es/hooks/picker/normalize.js +1 -0
- package/dist/es/hooks/picker/value.js +1 -0
- package/dist/es/hooks/popup/utils.js +1 -0
- package/dist/es/hooks/slider/utils.js +1 -0
- package/dist/es/hooks/swiper/utils.js +1 -0
- package/dist/es/hooks/tabs/TabBarItem.js +1 -0
- package/dist/es/hooks/tabs/useTabsInternals.js +1 -0
- package/dist/es/utils/compare.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 -19
- 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/calendar/utils.d.ts +1 -0
- package/dist/types/hooks/cascader/utils.d.ts +1 -0
- package/dist/types/hooks/dialog/ActionButton.d.ts +1 -0
- package/dist/types/hooks/field/renderers.d.ts +1 -0
- package/dist/types/hooks/form/utils.d.ts +1 -0
- 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/number-keyboard/utils.d.ts +1 -0
- 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/picker/normalize.d.ts +1 -0
- package/dist/types/hooks/picker/value.d.ts +1 -0
- package/dist/types/hooks/popup/utils.d.ts +1 -0
- package/dist/types/hooks/slider/utils.d.ts +1 -0
- package/dist/types/hooks/swiper/utils.d.ts +1 -0
- package/dist/types/hooks/tabs/TabBarItem.d.ts +1 -0
- package/dist/types/hooks/tabs/useTabsInternals.d.ts +1 -0
- 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 +38 -45
|
@@ -1,73 +1 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { ViewProps } from 'react-native';
|
|
3
|
-
import type { DeepPartial } from '../../types';
|
|
4
|
-
import type { PickerTokens } from './tokens';
|
|
5
|
-
export type PickerValue = string | number;
|
|
6
|
-
export interface PickerOption {
|
|
7
|
-
label?: React.ReactNode;
|
|
8
|
-
value: PickerValue;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
children?: PickerOption[];
|
|
11
|
-
}
|
|
12
|
-
export interface PickerColumnWithDefault {
|
|
13
|
-
options: PickerOption[];
|
|
14
|
-
defaultValue?: PickerValue;
|
|
15
|
-
}
|
|
16
|
-
export type PickerColumn = PickerOption[] | PickerColumnWithDefault;
|
|
17
|
-
export type PickerColumns = PickerColumn[] | PickerOption[];
|
|
18
|
-
export type PickerToolbarPosition = 'top' | 'bottom';
|
|
19
|
-
export type PickerInteractionMode = 'sync' | 'freeze';
|
|
20
|
-
export interface PickerProps extends ViewProps {
|
|
21
|
-
columns?: PickerColumns;
|
|
22
|
-
value?: PickerValue[] | PickerValue;
|
|
23
|
-
defaultValue?: PickerValue[] | PickerValue;
|
|
24
|
-
title?: React.ReactNode;
|
|
25
|
-
tokensOverride?: DeepPartial<PickerTokens>;
|
|
26
|
-
showToolbar?: boolean;
|
|
27
|
-
toolbarPosition?: PickerToolbarPosition;
|
|
28
|
-
confirmButtonText?: React.ReactNode;
|
|
29
|
-
cancelButtonText?: React.ReactNode;
|
|
30
|
-
itemHeight?: number;
|
|
31
|
-
visibleItemCount?: number;
|
|
32
|
-
loading?: boolean;
|
|
33
|
-
readOnly?: boolean;
|
|
34
|
-
interactionMode?: PickerInteractionMode;
|
|
35
|
-
decelerationRate?: 'normal' | 'fast' | number;
|
|
36
|
-
scrollEventThrottle?: number;
|
|
37
|
-
maskColor?: string;
|
|
38
|
-
maskType?: 'gradient' | 'solid';
|
|
39
|
-
swipeDuration?: number;
|
|
40
|
-
columnsTop?: React.ReactNode;
|
|
41
|
-
columnsBottom?: React.ReactNode;
|
|
42
|
-
emitConfirmOnAutoSelect?: boolean;
|
|
43
|
-
optionRender?: (option: PickerOption, context: {
|
|
44
|
-
columnIndex: number;
|
|
45
|
-
active: boolean;
|
|
46
|
-
}) => React.ReactNode;
|
|
47
|
-
getOptionTestID?: (option: PickerOption, context: {
|
|
48
|
-
columnIndex: number;
|
|
49
|
-
active: boolean;
|
|
50
|
-
}) => string | undefined;
|
|
51
|
-
getOptionA11yLabel?: (option: PickerOption, context: {
|
|
52
|
-
columnIndex: number;
|
|
53
|
-
active: boolean;
|
|
54
|
-
}) => string | undefined;
|
|
55
|
-
onChange?: (value: PickerValue[], options: (PickerOption | undefined)[]) => void;
|
|
56
|
-
onConfirm?: (value: PickerValue[], options: (PickerOption | undefined)[]) => void;
|
|
57
|
-
onCancel?: () => void;
|
|
58
|
-
}
|
|
59
|
-
export interface PickerColumnProps {
|
|
60
|
-
columnIndex: number;
|
|
61
|
-
options: PickerOption[];
|
|
62
|
-
value?: PickerValue;
|
|
63
|
-
itemHeight: number;
|
|
64
|
-
visibleItemCount: number;
|
|
65
|
-
optionRender?: PickerProps['optionRender'];
|
|
66
|
-
getOptionTestID?: PickerProps['getOptionTestID'];
|
|
67
|
-
getOptionA11yLabel?: PickerProps['getOptionA11yLabel'];
|
|
68
|
-
readOnly?: boolean;
|
|
69
|
-
decelerationRate?: PickerProps['decelerationRate'];
|
|
70
|
-
scrollEventThrottle?: PickerProps['scrollEventThrottle'];
|
|
71
|
-
swipeDuration?: number;
|
|
72
|
-
onSelect: (option: PickerOption, columnIndex: number, optionIndex: number) => void;
|
|
73
|
-
}
|
|
1
|
+
import type React from'react';import type{ViewProps}from'react-native';import type{DeepPartial}from'../../types';import type{PickerTokens}from'./tokens';export type PickerValue=string|number;export interface PickerOption{label?:React.ReactNode;value:PickerValue;disabled?:boolean;children?:PickerOption[];}export interface PickerColumnWithDefault{options:PickerOption[];defaultValue?:PickerValue;}export type PickerColumn=PickerOption[]|PickerColumnWithDefault;export type PickerColumns=PickerColumn[]|PickerOption[];export type PickerToolbarPosition='top'|'bottom';export type PickerInteractionMode='sync'|'freeze';export interface PickerProps extends ViewProps{columns?:PickerColumns;value?:PickerValue[]|PickerValue;defaultValue?:PickerValue[]|PickerValue;title?:React.ReactNode;tokensOverride?:DeepPartial<PickerTokens>;showToolbar?:boolean;toolbarPosition?:PickerToolbarPosition;confirmButtonText?:React.ReactNode;cancelButtonText?:React.ReactNode;itemHeight?:number;visibleItemCount?:number;loading?:boolean;readOnly?:boolean;interactionMode?:PickerInteractionMode;decelerationRate?:'normal'|'fast'|number;scrollEventThrottle?:number;maskColor?:string;maskType?:'gradient'|'solid';swipeDuration?:number;columnsTop?:React.ReactNode;columnsBottom?:React.ReactNode;emitConfirmOnAutoSelect?:boolean;optionRender?:(option:PickerOption,context:{columnIndex:number;active:boolean;})=>React.ReactNode;getOptionTestID?:(option:PickerOption,context:{columnIndex:number;active:boolean;})=>string|undefined;getOptionA11yLabel?:(option:PickerOption,context:{columnIndex:number;active:boolean;})=>string|undefined;onChange?:(value:PickerValue[],options:(PickerOption|undefined)[])=>void;onConfirm?:(value:PickerValue[],options:(PickerOption|undefined)[])=>void;onCancel?:()=>void;}export interface PickerColumnProps{columnIndex:number;options:PickerOption[];value?:PickerValue;itemHeight:number;visibleItemCount:number;optionRender?:PickerProps['optionRender'];getOptionTestID?:PickerProps['getOptionTestID'];getOptionA11yLabel?:PickerProps['getOptionA11yLabel'];readOnly?:boolean;decelerationRate?:PickerProps['decelerationRate'];scrollEventThrottle?:PickerProps['scrollEventThrottle'];swipeDuration?:number;onSelect:(option:PickerOption,columnIndex:number,optionIndex:number)=>void;}
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { PopupProps } from './types';
|
|
3
|
-
export type { PopupPlacement, PopupCloseIconPosition, PopupProps } from './types';
|
|
4
|
-
export declare const Popup: React.NamedExoticComponent<PopupProps>;
|
|
5
|
-
export default Popup;
|
|
1
|
+
import React from'react';import type{PopupProps}from'./types';export type{PopupPlacement,PopupCloseIconPosition,PopupProps}from'./types';export declare const Popup:React.NamedExoticComponent<PopupProps>;export default Popup;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import Popup from './Popup';
|
|
2
|
-
export type { PopupProps, PopupPlacement, PopupCloseIconPosition } from './Popup';
|
|
3
|
-
export default Popup;
|
|
4
|
-
export { Popup };
|
|
1
|
+
import Popup from'./Popup';export type{PopupProps,PopupPlacement,PopupCloseIconPosition}from'./Popup';export default Popup;export{Popup};
|
|
@@ -1,48 +1 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type Foundations } from '../../design-system/tokens';
|
|
3
|
-
export interface PopupTokens {
|
|
4
|
-
colors: {
|
|
5
|
-
overlay: string;
|
|
6
|
-
background: string;
|
|
7
|
-
title: string;
|
|
8
|
-
description: string;
|
|
9
|
-
closeIcon: string;
|
|
10
|
-
};
|
|
11
|
-
radius: {
|
|
12
|
-
round: number;
|
|
13
|
-
shadow: number;
|
|
14
|
-
};
|
|
15
|
-
spacing: {
|
|
16
|
-
padding: number;
|
|
17
|
-
titleTop: number;
|
|
18
|
-
titleBottom: number;
|
|
19
|
-
descriptionHorizontal: number;
|
|
20
|
-
descriptionBottom: number;
|
|
21
|
-
closeIconTop: number;
|
|
22
|
-
closeIconRight: number;
|
|
23
|
-
closeIconSize: number;
|
|
24
|
-
closeIconPadding: number;
|
|
25
|
-
};
|
|
26
|
-
typography: {
|
|
27
|
-
fontFamily: string;
|
|
28
|
-
titleSize: number;
|
|
29
|
-
titleWeight: TextStyle['fontWeight'];
|
|
30
|
-
descriptionSize: number;
|
|
31
|
-
descriptionLineHeight: number;
|
|
32
|
-
};
|
|
33
|
-
shadow: {
|
|
34
|
-
color: string;
|
|
35
|
-
opacity: number;
|
|
36
|
-
radius: number;
|
|
37
|
-
offsetY: number;
|
|
38
|
-
elevation: number;
|
|
39
|
-
};
|
|
40
|
-
layout: {
|
|
41
|
-
maxWidth: number;
|
|
42
|
-
minWidth: number;
|
|
43
|
-
centerMaxWidth: number;
|
|
44
|
-
sideWidth: ViewStyle['width'];
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
export declare const createPopupTokens: (foundations: Foundations) => PopupTokens;
|
|
48
|
-
export declare const usePopupTokens: (overrides?: import("../..").DeepPartial<PopupTokens> | undefined) => PopupTokens;
|
|
1
|
+
import type{ViewStyle,TextStyle}from'react-native';import{type Foundations}from'../../design-system/tokens';export interface PopupTokens{colors:{overlay:string;background:string;title:string;description:string;closeIcon:string;};radius:{round:number;shadow:number;};spacing:{padding:number;titleTop:number;titleBottom:number;descriptionHorizontal:number;descriptionBottom:number;closeIconTop:number;closeIconRight:number;closeIconSize:number;closeIconPadding:number;};typography:{fontFamily:string;titleSize:number;titleWeight:TextStyle['fontWeight'];descriptionSize:number;descriptionLineHeight:number;};shadow:{color:string;opacity:number;radius:number;offsetY:number;elevation:number;};layout:{maxWidth:number;minWidth:number;centerMaxWidth:number;sideWidth:ViewStyle['width'];};}export declare const createPopupTokens:(foundations:Foundations)=>PopupTokens;export declare const usePopupTokens:(overrides?:import("../..").DeepPartial<PopupTokens>|undefined)=>PopupTokens;
|
|
@@ -1,41 +1 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { DeepPartial } from '../../types';
|
|
3
|
-
import type { PopupTokens } from './tokens';
|
|
4
|
-
export type PopupPlacement = 'top' | 'bottom' | 'left' | 'right' | 'center';
|
|
5
|
-
export type PopupCloseIconPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
6
|
-
export interface PopupProps extends ViewProps {
|
|
7
|
-
visible: boolean;
|
|
8
|
-
position?: PopupPlacement;
|
|
9
|
-
placement?: PopupPlacement;
|
|
10
|
-
title?: React.ReactNode;
|
|
11
|
-
description?: React.ReactNode;
|
|
12
|
-
tokensOverride?: DeepPartial<PopupTokens>;
|
|
13
|
-
overlay?: boolean;
|
|
14
|
-
overlayStyle?: StyleProp<ViewStyle>;
|
|
15
|
-
overlayAccessibilityLabel?: string;
|
|
16
|
-
closeOnOverlayPress?: boolean;
|
|
17
|
-
closeOnClickOverlay?: boolean;
|
|
18
|
-
overlayTestID?: string;
|
|
19
|
-
closeable?: boolean;
|
|
20
|
-
closeIcon?: React.ReactNode;
|
|
21
|
-
closeIconPosition?: PopupCloseIconPosition;
|
|
22
|
-
stopPropagation?: boolean;
|
|
23
|
-
round?: boolean;
|
|
24
|
-
safeArea?: boolean;
|
|
25
|
-
safeAreaInsetTop?: boolean;
|
|
26
|
-
safeAreaInsetBottom?: boolean;
|
|
27
|
-
lockScroll?: boolean;
|
|
28
|
-
destroyOnClose?: boolean;
|
|
29
|
-
duration?: number;
|
|
30
|
-
zIndex?: number;
|
|
31
|
-
closeOnBackPress?: boolean;
|
|
32
|
-
closeOnPopstate?: boolean;
|
|
33
|
-
children?: React.ReactNode;
|
|
34
|
-
beforeClose?: (reason: 'close-icon' | 'overlay' | 'close') => boolean | Promise<boolean>;
|
|
35
|
-
onClickOverlay?: () => void;
|
|
36
|
-
onClose?: () => void;
|
|
37
|
-
onOpen?: () => void;
|
|
38
|
-
onOpened?: () => void;
|
|
39
|
-
onClosed?: () => void;
|
|
40
|
-
contentAnimationStyle?: Animated.WithAnimatedObject<ViewStyle>;
|
|
41
|
-
}
|
|
1
|
+
import type{Animated,StyleProp,ViewProps,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';import type{PopupTokens}from'./tokens';export type PopupPlacement='top'|'bottom'|'left'|'right'|'center';export type PopupCloseIconPosition='top-right'|'top-left'|'bottom-right'|'bottom-left';export interface PopupProps extends ViewProps{visible:boolean;position?:PopupPlacement;placement?:PopupPlacement;title?:React.ReactNode;description?:React.ReactNode;tokensOverride?:DeepPartial<PopupTokens>;overlay?:boolean;overlayStyle?:StyleProp<ViewStyle>;overlayAccessibilityLabel?:string;closeOnOverlayPress?:boolean;closeOnClickOverlay?:boolean;overlayTestID?:string;closeable?:boolean;closeIcon?:React.ReactNode;closeIconPosition?:PopupCloseIconPosition;stopPropagation?:boolean;round?:boolean;safeArea?:boolean;safeAreaInsetTop?:boolean;safeAreaInsetBottom?:boolean;lockScroll?:boolean;destroyOnClose?:boolean;duration?:number;zIndex?:number;closeOnBackPress?:boolean;closeOnPopstate?:boolean;children?:React.ReactNode;beforeClose?:(reason:'close-icon'|'overlay'|'close')=>boolean|Promise<boolean>;onClickOverlay?:()=>void;onClose?:()=>void;onOpen?:()=>void;onOpened?:()=>void;onClosed?:()=>void;contentAnimationStyle?:Animated.WithAnimatedObject<ViewStyle>;}
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
export interface PortalProps {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
isOpen?: boolean;
|
|
5
|
-
visible?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const Portal: React.NamedExoticComponent<PortalProps & React.RefAttributes<any>> & {
|
|
8
|
-
Host: React.NamedExoticComponent<import("./PortalHost").PortalHostProps>;
|
|
9
|
-
add: (content: React.ReactNode, key?: number) => number;
|
|
10
|
-
remove: (key: number) => void;
|
|
11
|
-
update: (key: number, content: React.ReactNode) => void;
|
|
12
|
-
clear: () => void;
|
|
13
|
-
};
|
|
14
|
-
export default Portal;
|
|
1
|
+
import React from'react';export interface PortalProps{children?:React.ReactNode;isOpen?:boolean;visible?:boolean;}export declare const Portal:React.NamedExoticComponent<PortalProps&React.RefAttributes<any>>&{Host:React.NamedExoticComponent<import("./PortalHost").PortalHostProps>;add:(content:React.ReactNode,key?:number)=>number;remove:(key:number)=>void;update:(key:number,content:React.ReactNode)=>void;clear:()=>void;};export default Portal;
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
export interface PortalManager {
|
|
3
|
-
mount: (children: React.ReactNode, key?: number) => number;
|
|
4
|
-
update: (key: number, children: React.ReactNode) => void;
|
|
5
|
-
unmount: (key: number) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const PortalContext: React.Context<PortalManager | null>;
|
|
1
|
+
import React from'react';export interface PortalManager{mount:(children:React.ReactNode,key?:number)=>number;update:(key:number,children:React.ReactNode)=>void;unmount:(key:number)=>void;}export declare const PortalContext:React.Context<PortalManager|null>;
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { type PortalManager } from './PortalContext';
|
|
3
|
-
export interface PortalHostProps {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
export declare const PortalHost: React.NamedExoticComponent<PortalHostProps>;
|
|
7
|
-
export declare const portalManager: PortalManager;
|
|
8
|
-
export declare const portalStore: {
|
|
9
|
-
clear: () => void;
|
|
10
|
-
hasHosts: () => boolean;
|
|
11
|
-
};
|
|
1
|
+
import React from'react';import{type PortalManager}from'./PortalContext';export interface PortalHostProps{children?:React.ReactNode;}export declare const PortalHost:React.NamedExoticComponent<PortalHostProps>;export declare const portalManager:PortalManager;export declare const portalStore:{clear:()=>void;hasHosts:()=>boolean;};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export interface PortalTokens
|
|
2
|
-
}
|
|
3
|
-
export declare const usePortalTokens: (overrides?: import("../..").DeepPartial<PortalTokens> | undefined) => PortalTokens;
|
|
1
|
+
export interface PortalTokens{}export declare const usePortalTokens:(overrides?:import("../..").DeepPartial<PortalTokens>|undefined)=>PortalTokens;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type{PortalProps}from'./Portal';
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ViewStyle } from 'react-native';
|
|
3
|
-
import type { ProgressProps } from './types';
|
|
4
|
-
export declare const ProgressFilledTrack: React.FC<{
|
|
5
|
-
style?: ViewStyle | ViewStyle[];
|
|
6
|
-
}>;
|
|
7
|
-
export declare const Progress: React.MemoExoticComponent<(props: ProgressProps) => React.JSX.Element>;
|
|
8
|
-
export default Progress;
|
|
1
|
+
import React from'react';import{type ViewStyle}from'react-native';import type{ProgressProps}from'./types';export declare const ProgressFilledTrack:React.FC<{style?:ViewStyle|ViewStyle[];}>;export declare const Progress:React.MemoExoticComponent<(props:ProgressProps)=>React.JSX.Element>;export default Progress;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export type { ProgressProps } from './types';
|
|
3
|
-
export { ProgressFilledTrack };
|
|
4
|
-
export default Progress;
|
|
1
|
+
import{Progress,ProgressFilledTrack}from'./Progress';export type{ProgressProps}from'./types';export{ProgressFilledTrack};export default Progress;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { ProgressTokens } from './types';
|
|
3
|
-
export declare const createProgressTokens: (foundations: Foundations) => ProgressTokens;
|
|
4
|
-
export declare const useProgressTokens: (overrides?: import("../..").DeepPartial<ProgressTokens> | undefined) => ProgressTokens;
|
|
1
|
+
import{type Foundations}from'../../design-system/tokens';import type{ProgressTokens}from'./types';export declare const createProgressTokens:(foundations:Foundations)=>ProgressTokens;export declare const useProgressTokens:(overrides?:import("../..").DeepPartial<ProgressTokens>|undefined)=>ProgressTokens;
|
|
@@ -1,51 +1 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
-
import type { DeepPartial } from '../../types';
|
|
4
|
-
export interface ProgressTokens {
|
|
5
|
-
defaults: {
|
|
6
|
-
percentage: number;
|
|
7
|
-
inactive: boolean;
|
|
8
|
-
showPivot: boolean;
|
|
9
|
-
transition: boolean;
|
|
10
|
-
animationDuration: number;
|
|
11
|
-
};
|
|
12
|
-
layout: {
|
|
13
|
-
track: ViewStyle;
|
|
14
|
-
indicator: ViewStyle;
|
|
15
|
-
pivot: ViewStyle;
|
|
16
|
-
pivotText: TextStyle;
|
|
17
|
-
};
|
|
18
|
-
colors: {
|
|
19
|
-
track: string;
|
|
20
|
-
indicator: string;
|
|
21
|
-
pivotText: string;
|
|
22
|
-
};
|
|
23
|
-
typography: {
|
|
24
|
-
fontFamily: string;
|
|
25
|
-
pivotFontSize: number;
|
|
26
|
-
};
|
|
27
|
-
sizing: {
|
|
28
|
-
height: number;
|
|
29
|
-
pivotPaddingHorizontal: number;
|
|
30
|
-
pivotPaddingVertical: number;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export interface ProgressProps extends ViewProps {
|
|
34
|
-
percentage?: number | string;
|
|
35
|
-
strokeWidth?: number | string;
|
|
36
|
-
color?: string;
|
|
37
|
-
trackColor?: string;
|
|
38
|
-
pivotText?: React.ReactNode;
|
|
39
|
-
pivotColor?: string;
|
|
40
|
-
textColor?: string;
|
|
41
|
-
inactive?: boolean;
|
|
42
|
-
showPivot?: boolean;
|
|
43
|
-
orientation?: 'horizontal' | 'vertical';
|
|
44
|
-
animated?: boolean;
|
|
45
|
-
transition?: boolean;
|
|
46
|
-
animationDuration?: number;
|
|
47
|
-
tokensOverride?: DeepPartial<ProgressTokens>;
|
|
48
|
-
style?: StyleProp<ViewStyle>;
|
|
49
|
-
pivotStyle?: StyleProp<TextStyle>;
|
|
50
|
-
indicatorStyle?: StyleProp<ViewStyle>;
|
|
51
|
-
}
|
|
1
|
+
import type React from'react';import type{StyleProp,TextStyle,ViewProps,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';export interface ProgressTokens{defaults:{percentage:number;inactive:boolean;showPivot:boolean;transition:boolean;animationDuration:number;};layout:{track:ViewStyle;indicator:ViewStyle;pivot:ViewStyle;pivotText:TextStyle;};colors:{track:string;indicator:string;pivotText:string;};typography:{fontFamily:string;pivotFontSize:number;};sizing:{height:number;pivotPaddingHorizontal:number;pivotPaddingVertical:number;};}export interface ProgressProps extends ViewProps{percentage?:number|string;strokeWidth?:number|string;color?:string;trackColor?:string;pivotText?:React.ReactNode;pivotColor?:string;textColor?:string;inactive?:boolean;showPivot?:boolean;orientation?:'horizontal'|'vertical';animated?:boolean;transition?:boolean;animationDuration?:number;tokensOverride?:DeepPartial<ProgressTokens>;style?:StyleProp<ViewStyle>;pivotStyle?:StyleProp<TextStyle>;indicatorStyle?:StyleProp<ViewStyle>;}
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { RadioProps } from './types';
|
|
3
|
-
export declare const Radio: React.MemoExoticComponent<(props: RadioProps) => React.JSX.Element>;
|
|
1
|
+
import React from'react';import type{RadioProps}from'./types';export declare const Radio:React.MemoExoticComponent<(props:RadioProps)=>React.JSX.Element>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export type
|
|
2
|
-
export { RadioGroupContext } from './RadioGroup';
|
|
1
|
+
export type{RadioGroupContextValue}from'./RadioGroup';export{RadioGroupContext}from'./RadioGroup';
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type RadioGroupState } from '@react-stately/radio';
|
|
3
|
-
import type { RadioGroupDirection, RadioGroupProps, RadioValue } from './types';
|
|
4
|
-
export interface RadioGroupContextValue {
|
|
5
|
-
state: RadioGroupState;
|
|
6
|
-
direction: RadioGroupDirection;
|
|
7
|
-
iconSize?: number | string;
|
|
8
|
-
checkedColor?: string;
|
|
9
|
-
labelDisabled?: boolean;
|
|
10
|
-
registerValue: (key: string, raw: RadioValue) => void;
|
|
11
|
-
unregisterValue: (key: string) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const RadioGroupContext: React.Context<RadioGroupContextValue | null>;
|
|
14
|
-
export declare const RadioGroup: React.NamedExoticComponent<RadioGroupProps>;
|
|
1
|
+
import React from'react';import{type RadioGroupState}from'@react-stately/radio';import type{RadioGroupDirection,RadioGroupProps,RadioValue}from'./types';export interface RadioGroupContextValue{state:RadioGroupState;direction:RadioGroupDirection;iconSize?:number|string;checkedColor?:string;labelDisabled?:boolean;registerValue:(key:string,raw:RadioValue)=>void;unregisterValue:(key:string)=>void;}export declare const RadioGroupContext:React.Context<RadioGroupContextValue|null>;export declare const RadioGroup:React.NamedExoticComponent<RadioGroupProps>;
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { RadioGroup } from './RadioGroup';
|
|
3
|
-
declare const Radio: typeof RadioBase & {
|
|
4
|
-
Group: typeof RadioGroup;
|
|
5
|
-
};
|
|
6
|
-
export { Radio, RadioGroup };
|
|
7
|
-
export type { RadioProps, RadioGroupProps } from './types';
|
|
1
|
+
import{Radio as RadioBase}from'./Radio';import{RadioGroup}from'./RadioGroup';declare const Radio:typeof RadioBase&{Group:typeof RadioGroup;};export{Radio,RadioGroup};export type{RadioProps,RadioGroupProps}from'./types';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare const useRadioTokens: (overrides?: import("../..").DeepPartial<RadioTokens> | undefined) => RadioTokens;
|
|
1
|
+
import type{RadioTokens}from'./types';export declare const useRadioTokens:(overrides?:import("../..").DeepPartial<RadioTokens>|undefined)=>RadioTokens;
|
|
@@ -1,95 +1 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { GestureResponderEvent, StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
-
import type { DeepPartial } from '../../types';
|
|
4
|
-
export type RadioValue = string | number;
|
|
5
|
-
export type RadioLabelPosition = 'left' | 'right';
|
|
6
|
-
export type RadioGroupDirection = 'horizontal' | 'vertical';
|
|
7
|
-
export type RadioShape = 'round' | 'square';
|
|
8
|
-
export type RadioIconRender = (params: {
|
|
9
|
-
checked: boolean;
|
|
10
|
-
disabled: boolean;
|
|
11
|
-
}) => React.ReactNode;
|
|
12
|
-
export interface RadioTokens {
|
|
13
|
-
defaults: {
|
|
14
|
-
iconSize: number;
|
|
15
|
-
labelPosition: RadioLabelPosition;
|
|
16
|
-
shape: RadioShape;
|
|
17
|
-
labelDisabled: boolean;
|
|
18
|
-
groupDisabled: boolean;
|
|
19
|
-
groupDirection: RadioGroupDirection;
|
|
20
|
-
};
|
|
21
|
-
layout: {
|
|
22
|
-
container: ViewStyle;
|
|
23
|
-
iconWrapper: ViewStyle;
|
|
24
|
-
labelWrapper: ViewStyle;
|
|
25
|
-
icon: ViewStyle;
|
|
26
|
-
label: TextStyle;
|
|
27
|
-
groupHorizontal: ViewStyle;
|
|
28
|
-
groupVertical: ViewStyle;
|
|
29
|
-
groupItem: ViewStyle;
|
|
30
|
-
};
|
|
31
|
-
colors: {
|
|
32
|
-
border: string;
|
|
33
|
-
background: string;
|
|
34
|
-
checkedBackground: string;
|
|
35
|
-
disabledBorder: string;
|
|
36
|
-
disabledBackground: string;
|
|
37
|
-
checkmark: string;
|
|
38
|
-
label: string;
|
|
39
|
-
labelDisabled: string;
|
|
40
|
-
};
|
|
41
|
-
typography: {
|
|
42
|
-
fontSize: number;
|
|
43
|
-
fontFamily: string;
|
|
44
|
-
fontWeight: NonNullable<TextStyle['fontWeight']>;
|
|
45
|
-
lineHeightMultiplier: number;
|
|
46
|
-
};
|
|
47
|
-
sizing: {
|
|
48
|
-
dotScale: number;
|
|
49
|
-
};
|
|
50
|
-
radii: {
|
|
51
|
-
round: number;
|
|
52
|
-
square: number;
|
|
53
|
-
};
|
|
54
|
-
borders: {
|
|
55
|
-
width: number;
|
|
56
|
-
};
|
|
57
|
-
spacing: {
|
|
58
|
-
gap: number;
|
|
59
|
-
groupGap: number;
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
export interface RadioProps extends Omit<ViewProps, 'children'> {
|
|
63
|
-
name?: RadioValue;
|
|
64
|
-
value?: RadioValue;
|
|
65
|
-
disabled?: boolean;
|
|
66
|
-
checked?: boolean;
|
|
67
|
-
defaultChecked?: boolean;
|
|
68
|
-
iconSize?: number | string;
|
|
69
|
-
checkedColor?: string;
|
|
70
|
-
shape?: RadioShape;
|
|
71
|
-
iconRender?: RadioIconRender;
|
|
72
|
-
labelPosition?: RadioLabelPosition;
|
|
73
|
-
labelDisabled?: boolean;
|
|
74
|
-
style?: StyleProp<ViewStyle>;
|
|
75
|
-
labelStyle?: StyleProp<TextStyle>;
|
|
76
|
-
children?: React.ReactNode;
|
|
77
|
-
tokensOverride?: DeepPartial<RadioTokens>;
|
|
78
|
-
onClick?: (event: GestureResponderEvent) => void;
|
|
79
|
-
onChange?: (checked: boolean) => void;
|
|
80
|
-
'aria-label'?: string;
|
|
81
|
-
}
|
|
82
|
-
export interface RadioGroupProps extends ViewProps {
|
|
83
|
-
value?: RadioValue;
|
|
84
|
-
defaultValue?: RadioValue;
|
|
85
|
-
onChange?: (value: RadioValue) => void;
|
|
86
|
-
disabled?: boolean;
|
|
87
|
-
direction?: RadioGroupDirection;
|
|
88
|
-
iconSize?: number | string;
|
|
89
|
-
checkedColor?: string;
|
|
90
|
-
labelDisabled?: boolean;
|
|
91
|
-
gap?: number;
|
|
92
|
-
name?: string;
|
|
93
|
-
children?: React.ReactNode;
|
|
94
|
-
tokensOverride?: DeepPartial<RadioTokens>;
|
|
95
|
-
}
|
|
1
|
+
import type React from'react';import type{GestureResponderEvent,StyleProp,TextStyle,ViewProps,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';export type RadioValue=string|number;export type RadioLabelPosition='left'|'right';export type RadioGroupDirection='horizontal'|'vertical';export type RadioShape='round'|'square';export type RadioIconRender=(params:{checked:boolean;disabled:boolean;})=>React.ReactNode;export interface RadioTokens{defaults:{iconSize:number;labelPosition:RadioLabelPosition;shape:RadioShape;labelDisabled:boolean;groupDisabled:boolean;groupDirection:RadioGroupDirection;};layout:{container:ViewStyle;iconWrapper:ViewStyle;labelWrapper:ViewStyle;icon:ViewStyle;label:TextStyle;groupHorizontal:ViewStyle;groupVertical:ViewStyle;groupItem:ViewStyle;};colors:{border:string;background:string;checkedBackground:string;disabledBorder:string;disabledBackground:string;checkmark:string;label:string;labelDisabled:string;};typography:{fontSize:number;fontFamily:string;fontWeight:NonNullable<TextStyle['fontWeight']>;lineHeightMultiplier:number;};sizing:{dotScale:number;};radii:{round:number;square:number;};borders:{width:number;};spacing:{gap:number;groupGap:number;};}export interface RadioProps extends Omit<ViewProps,'children'>{name?:RadioValue;value?:RadioValue;disabled?:boolean;checked?:boolean;defaultChecked?:boolean;iconSize?:number|string;checkedColor?:string;shape?:RadioShape;iconRender?:RadioIconRender;labelPosition?:RadioLabelPosition;labelDisabled?:boolean;style?:StyleProp<ViewStyle>;labelStyle?:StyleProp<TextStyle>;children?:React.ReactNode;tokensOverride?:DeepPartial<RadioTokens>;onClick?:(event:GestureResponderEvent)=>void;onChange?:(checked:boolean)=>void;'aria-label'?:string;}export interface RadioGroupProps extends ViewProps{value?:RadioValue;defaultValue?:RadioValue;onChange?:(value:RadioValue)=>void;disabled?:boolean;direction?:RadioGroupDirection;iconSize?:number|string;checkedColor?:string;labelDisabled?:boolean;gap?:number;name?:string;children?:React.ReactNode;tokensOverride?:DeepPartial<RadioTokens>;}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type LayoutChangeEvent, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
-
export interface SafeAreaViewProps {
|
|
4
|
-
edge?: 'top' | 'bottom';
|
|
5
|
-
style?: StyleProp<ViewStyle>;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
onLayout?: (event: LayoutChangeEvent) => void;
|
|
8
|
-
pointerEvents?: 'box-none' | 'none' | 'box-only' | 'auto';
|
|
9
|
-
}
|
|
10
|
-
export declare const SafeAreaView: React.NamedExoticComponent<SafeAreaViewProps>;
|
|
1
|
+
import React from'react';import{type LayoutChangeEvent,type StyleProp,type ViewStyle}from'react-native';export interface SafeAreaViewProps{edge?:'top'|'bottom';style?:StyleProp<ViewStyle>;children?:React.ReactNode;onLayout?:(event:LayoutChangeEvent)=>void;pointerEvents?:'box-none'|'none'|'box-only'|'auto';}export declare const SafeAreaView:React.NamedExoticComponent<SafeAreaViewProps>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type { SafeAreaViewProps } from './SafeAreaView';
|
|
1
|
+
export{SafeAreaView}from'./SafeAreaView';export type{SafeAreaViewProps}from'./SafeAreaView';
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export interface SafeAreaViewTokens
|
|
2
|
-
}
|
|
3
|
-
export declare const useSafeAreaViewTokens: (overrides?: import("../..").DeepPartial<SafeAreaViewTokens> | undefined) => SafeAreaViewTokens;
|
|
1
|
+
export interface SafeAreaViewTokens{}export declare const useSafeAreaViewTokens:(overrides?:import("../..").DeepPartial<SafeAreaViewTokens>|undefined)=>SafeAreaViewTokens;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type{SafeAreaViewProps}from'./SafeAreaView';
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { SearchProps, SearchRef } from './types';
|
|
3
|
-
export declare const Search: React.NamedExoticComponent<SearchProps & React.RefAttributes<SearchRef>>;
|
|
4
|
-
export default Search;
|
|
1
|
+
import React from'react';import type{SearchProps,SearchRef}from'./types';export declare const Search:React.NamedExoticComponent<SearchProps&React.RefAttributes<SearchRef>>;export default Search;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import Search from
|
|
2
|
-
export default Search;
|
|
3
|
-
export { Search };
|
|
4
|
-
export type { SearchProps, SearchRef, SearchShape } from './types';
|
|
1
|
+
import Search from'./Search';export default Search;export{Search};export type{SearchProps,SearchRef,SearchShape}from'./types';
|
|
@@ -1,41 +1 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { SearchShape } from './types';
|
|
3
|
-
export interface SearchTokens {
|
|
4
|
-
defaults: {
|
|
5
|
-
shape: SearchShape;
|
|
6
|
-
clearTrigger: 'always' | 'focus';
|
|
7
|
-
};
|
|
8
|
-
colors: {
|
|
9
|
-
background: string;
|
|
10
|
-
contentBackground: string;
|
|
11
|
-
label: string;
|
|
12
|
-
action: string;
|
|
13
|
-
icon: string;
|
|
14
|
-
};
|
|
15
|
-
spacing: {
|
|
16
|
-
paddingHorizontal: number;
|
|
17
|
-
paddingVertical: number;
|
|
18
|
-
labelGap: number;
|
|
19
|
-
actionGap: number;
|
|
20
|
-
contentPaddingHorizontal: number;
|
|
21
|
-
contentPaddingVertical: number;
|
|
22
|
-
none: number;
|
|
23
|
-
};
|
|
24
|
-
radius: {
|
|
25
|
-
square: number;
|
|
26
|
-
round: number;
|
|
27
|
-
};
|
|
28
|
-
typography: {
|
|
29
|
-
label: number;
|
|
30
|
-
labelWeight: NonNullable<TextStyle['fontWeight']>;
|
|
31
|
-
action: number;
|
|
32
|
-
actionWeight: NonNullable<TextStyle['fontWeight']>;
|
|
33
|
-
};
|
|
34
|
-
opacity: {
|
|
35
|
-
actionPressed: number;
|
|
36
|
-
};
|
|
37
|
-
icon: {
|
|
38
|
-
size: number;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export declare const useSearchTokens: (overrides?: import("../..").DeepPartial<SearchTokens> | undefined) => SearchTokens;
|
|
1
|
+
import type{TextStyle}from'react-native';import type{SearchShape}from'./types';export interface SearchTokens{defaults:{shape:SearchShape;clearTrigger:'always'|'focus';};colors:{background:string;contentBackground:string;label:string;action:string;icon:string;};spacing:{paddingHorizontal:number;paddingVertical:number;labelGap:number;actionGap:number;contentPaddingHorizontal:number;contentPaddingVertical:number;none:number;};radius:{square:number;round:number;};typography:{label:number;labelWeight:NonNullable<TextStyle['fontWeight']>;action:number;actionWeight:NonNullable<TextStyle['fontWeight']>;};opacity:{actionPressed:number;};icon:{size:number;};}export declare const useSearchTokens:(overrides?:import("../..").DeepPartial<SearchTokens>|undefined)=>SearchTokens;
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { NativeSyntheticEvent, StyleProp, TextInputSubmitEditingEventData, ViewStyle } from 'react-native';
|
|
3
|
-
import type { DeepPartial } from '../../types';
|
|
4
|
-
import type { FieldInputAlign, FieldProps } from '../field/types';
|
|
5
|
-
import type { SearchTokens } from './tokens';
|
|
6
|
-
export type SearchShape = 'square' | 'round';
|
|
7
|
-
export interface SearchProps extends Omit<FieldProps, 'style' | 'contentStyle' | 'label' | 'labelStyle' | 'labelWidth' | 'labelAlign' | 'required' | 'colon' | 'intro' | 'tooltip' | 'description' | 'border' | 'size' | 'center' | 'controlAlign' | 'clickable' | 'isLink' | 'arrowDirection' | 'prefix' | 'suffix' | 'button' | 'extra' | 'rows' | 'autosize' | 'autoSize' | 'showWordLimit' | 'type' | 'tokensOverride'> {
|
|
8
|
-
label?: React.ReactNode;
|
|
9
|
-
style?: StyleProp<ViewStyle>;
|
|
10
|
-
fieldStyle?: FieldProps['style'];
|
|
11
|
-
fieldContentStyle?: FieldProps['contentStyle'];
|
|
12
|
-
actionText?: React.ReactNode;
|
|
13
|
-
action?: React.ReactNode;
|
|
14
|
-
showAction?: boolean;
|
|
15
|
-
shape?: SearchShape;
|
|
16
|
-
background?: string;
|
|
17
|
-
tokensOverride?: DeepPartial<SearchTokens>;
|
|
18
|
-
align?: FieldInputAlign;
|
|
19
|
-
onChange?: (value: string) => void;
|
|
20
|
-
onSearch?: (value: string) => void;
|
|
21
|
-
onCancel?: () => void;
|
|
22
|
-
onSubmitEditing?: (event: NativeSyntheticEvent<TextInputSubmitEditingEventData>) => void;
|
|
23
|
-
}
|
|
24
|
-
export interface SearchRef {
|
|
25
|
-
focus: () => void;
|
|
26
|
-
blur: () => void;
|
|
27
|
-
clear: () => void;
|
|
28
|
-
}
|
|
1
|
+
import type React from'react';import type{NativeSyntheticEvent,StyleProp,TextInputSubmitEditingEventData,ViewStyle}from'react-native';import type{DeepPartial}from'../../types';import type{FieldInputAlign,FieldProps}from'../field/types';import type{SearchTokens}from'./tokens';export type SearchShape='square'|'round';export interface SearchProps extends Omit<FieldProps,'style'|'contentStyle'|'label'|'labelStyle'|'labelWidth'|'labelAlign'|'required'|'colon'|'intro'|'tooltip'|'description'|'border'|'size'|'center'|'controlAlign'|'clickable'|'isLink'|'arrowDirection'|'prefix'|'suffix'|'button'|'extra'|'rows'|'autosize'|'autoSize'|'showWordLimit'|'type'|'tokensOverride'>{label?:React.ReactNode;style?:StyleProp<ViewStyle>;fieldStyle?:FieldProps['style'];fieldContentStyle?:FieldProps['contentStyle'];actionText?:React.ReactNode;action?:React.ReactNode;showAction?:boolean;shape?:SearchShape;background?:string;tokensOverride?:DeepPartial<SearchTokens>;align?:FieldInputAlign;onChange?:(value:string)=>void;onSearch?:(value:string)=>void;onCancel?:()=>void;onSubmitEditing?:(event:NativeSyntheticEvent<TextInputSubmitEditingEventData>)=>void;}export interface SearchRef{focus:()=>void;blur:()=>void;clear:()=>void;}
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { SelectorProps, SelectorValue } from './types';
|
|
3
|
-
type SelectorComponent = (<V extends SelectorValue>(props: SelectorProps<V>) => React.ReactElement) & {
|
|
4
|
-
displayName?: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const Selector: SelectorComponent;
|
|
7
|
-
export default Selector;
|
|
1
|
+
import React from'react';import type{SelectorProps,SelectorValue}from'./types';type SelectorComponent=(<V extends SelectorValue>(props:SelectorProps<V>)=>React.ReactElement)&{displayName?:string;};export declare const Selector:SelectorComponent;export default Selector;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import Selector from
|
|
2
|
-
export default Selector;
|
|
3
|
-
export { Selector };
|
|
4
|
-
export type { SelectorProps, SelectorOption, SelectorValue } from './types';
|
|
1
|
+
import Selector from'./Selector';export default Selector;export{Selector};export type{SelectorProps,SelectorOption,SelectorValue}from'./types';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare const useSelectorTokens: (overrides?: import("../..").DeepPartial<SelectorTokens> | undefined) => SelectorTokens;
|
|
1
|
+
import type{SelectorTokens}from'./types';export declare const useSelectorTokens:(overrides?:import("../..").DeepPartial<SelectorTokens>|undefined)=>SelectorTokens;
|