@jamadd/react-native-template-ui 0.9.1 → 0.9.3
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/lib/module/components/accordion/ThemedAccordion.js +85 -60
- package/lib/module/components/accordion/ThemedAccordion.js.map +1 -1
- package/lib/module/components/button/AnimatedPressable.js +6 -0
- package/lib/module/components/button/AnimatedPressable.js.map +1 -1
- package/lib/module/components/button/AnimatedThemedPressable.js +15 -0
- package/lib/module/components/button/AnimatedThemedPressable.js.map +1 -1
- package/lib/module/components/button/ThemedButton.js +15 -0
- package/lib/module/components/button/ThemedButton.js.map +1 -1
- package/lib/module/components/button/ThemedIconButton.js +15 -0
- package/lib/module/components/button/ThemedIconButton.js.map +1 -1
- package/lib/module/components/button/ThemedIconTextButton.js +16 -0
- package/lib/module/components/button/ThemedIconTextButton.js.map +1 -1
- package/lib/module/components/button/ThemedPressable.js +15 -0
- package/lib/module/components/button/ThemedPressable.js.map +1 -1
- package/lib/module/components/icon/ThemedIcon.js +14 -0
- package/lib/module/components/icon/ThemedIcon.js.map +1 -1
- package/lib/module/components/list/List.js +15 -0
- package/lib/module/components/list/List.js.map +1 -1
- package/lib/module/components/loading/ThemedLoading.js +13 -0
- package/lib/module/components/loading/ThemedLoading.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheet.js +32 -3
- package/lib/module/components/overlay/actionSheet/ActionSheet.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js +4 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js +17 -2
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +7 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js +6 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js +6 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js +6 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js +7 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +7 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js +6 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js +8 -2
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js.map +1 -1
- package/lib/module/components/overlay/alert/Alert.js +19 -0
- package/lib/module/components/overlay/alert/Alert.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertButton.js +6 -0
- package/lib/module/components/overlay/alert/AlertButton.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertButtons.js +6 -0
- package/lib/module/components/overlay/alert/AlertButtons.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertContent.js +6 -0
- package/lib/module/components/overlay/alert/AlertContent.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertWrap.js +7 -1
- package/lib/module/components/overlay/alert/AlertWrap.js.map +1 -1
- package/lib/module/components/overlay/modal/ThemedLoadingModal.js +15 -0
- package/lib/module/components/overlay/modal/ThemedLoadingModal.js.map +1 -1
- package/lib/module/components/overlay/modal/ThemedModal.js +18 -0
- package/lib/module/components/overlay/modal/ThemedModal.js.map +1 -1
- package/lib/module/components/overlay/toast/ThemedToast.js +17 -2
- package/lib/module/components/overlay/toast/ThemedToast.js.map +1 -1
- package/lib/module/components/provider/GestureProvider.js +11 -0
- package/lib/module/components/provider/GestureProvider.js.map +1 -1
- package/lib/module/components/provider/InsetsProvider.js +12 -0
- package/lib/module/components/provider/InsetsProvider.js.map +1 -1
- package/lib/module/components/provider/ReactNativeTemplateProviders.js +12 -0
- package/lib/module/components/provider/ReactNativeTemplateProviders.js.map +1 -1
- package/lib/module/components/provider/ThemeProvider.js +11 -0
- package/lib/module/components/provider/ThemeProvider.js.map +1 -1
- package/lib/module/components/separator/ThemedSeparator.js +19 -0
- package/lib/module/components/separator/ThemedSeparator.js.map +1 -1
- package/lib/module/components/slider/Slider.js +89 -61
- package/lib/module/components/slider/Slider.js.map +1 -1
- package/lib/module/components/slider/ThemedSlider.js +25 -3
- package/lib/module/components/slider/ThemedSlider.js.map +1 -1
- package/lib/module/components/slider/ThemedSliderStepIndicator.js +6 -0
- package/lib/module/components/slider/ThemedSliderStepIndicator.js.map +1 -1
- package/lib/module/components/switch/ThemedSwitch.js +14 -0
- package/lib/module/components/switch/ThemedSwitch.js.map +1 -1
- package/lib/module/components/text/Text.js +5 -0
- package/lib/module/components/text/Text.js.map +1 -1
- package/lib/module/components/text/ThemedIconText.js +22 -0
- package/lib/module/components/text/ThemedIconText.js.map +1 -1
- package/lib/module/components/text/ThemedText.js +15 -0
- package/lib/module/components/text/ThemedText.js.map +1 -1
- package/lib/module/components/view/AnimatedThemedView.js +16 -0
- package/lib/module/components/view/AnimatedThemedView.js.map +1 -1
- package/lib/module/components/view/AnimatedView.js +6 -0
- package/lib/module/components/view/AnimatedView.js.map +1 -1
- package/lib/module/components/view/Box.js +5 -0
- package/lib/module/components/view/Box.js.map +1 -1
- package/lib/module/components/view/ThemedScreenWrap.js +79 -88
- package/lib/module/components/view/ThemedScreenWrap.js.map +1 -1
- package/lib/module/components/view/ThemedScreenWrap.web.js +84 -59
- package/lib/module/components/view/ThemedScreenWrap.web.js.map +1 -1
- package/lib/module/components/view/ThemedScrollView.js +17 -0
- package/lib/module/components/view/ThemedScrollView.js.map +1 -1
- package/lib/module/components/view/ThemedView.js +16 -0
- package/lib/module/components/view/ThemedView.js.map +1 -1
- package/lib/module/hooks/button.js +46 -0
- package/lib/module/hooks/button.js.map +1 -1
- package/lib/module/hooks/list.js +29 -0
- package/lib/module/hooks/list.js.map +1 -1
- package/lib/module/hooks/react.js +41 -0
- package/lib/module/hooks/react.js.map +1 -1
- package/lib/module/hooks/reanimated.js +10 -0
- package/lib/module/hooks/reanimated.js.map +1 -1
- package/lib/module/hooks/separator.js +18 -1
- package/lib/module/hooks/separator.js.map +1 -1
- package/lib/module/hooks/style.js +72 -0
- package/lib/module/hooks/style.js.map +1 -1
- package/lib/module/hooks/theme.js +93 -0
- package/lib/module/hooks/theme.js.map +1 -1
- package/lib/module/hooks/view.js +122 -1
- package/lib/module/hooks/view.js.map +1 -1
- package/lib/module/index.js +3 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/button/const.js +28 -0
- package/lib/module/utils/button/const.js.map +1 -1
- package/lib/module/utils/overlay/const.js +72 -0
- package/lib/module/utils/overlay/const.js.map +1 -1
- package/lib/module/utils/overlay/func.js +101 -0
- package/lib/module/utils/overlay/func.js.map +1 -1
- package/lib/module/utils/slider/const.js +52 -0
- package/lib/module/utils/slider/const.js.map +1 -1
- package/lib/module/utils/style/const.js +14 -0
- package/lib/module/utils/style/const.js.map +1 -1
- package/lib/module/utils/style/func.js +102 -0
- package/lib/module/utils/style/func.js.map +1 -1
- package/lib/module/utils/theme/const.js +180 -0
- package/lib/module/utils/theme/const.js.map +1 -1
- package/lib/module/utils/theme/restyle.js +124 -0
- package/lib/module/utils/theme/restyle.js.map +1 -1
- package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts +15 -0
- package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts.map +1 -1
- package/lib/typescript/src/components/button/AnimatedPressable.d.ts +5 -0
- package/lib/typescript/src/components/button/AnimatedPressable.d.ts.map +1 -1
- package/lib/typescript/src/components/button/AnimatedThemedPressable.d.ts +14 -0
- package/lib/typescript/src/components/button/AnimatedThemedPressable.d.ts.map +1 -1
- package/lib/typescript/src/components/button/ThemedButton.d.ts +14 -0
- package/lib/typescript/src/components/button/ThemedButton.d.ts.map +1 -1
- package/lib/typescript/src/components/button/ThemedIconButton.d.ts +14 -0
- package/lib/typescript/src/components/button/ThemedIconButton.d.ts.map +1 -1
- package/lib/typescript/src/components/button/ThemedIconTextButton.d.ts +15 -0
- package/lib/typescript/src/components/button/ThemedIconTextButton.d.ts.map +1 -1
- package/lib/typescript/src/components/button/ThemedPressable.d.ts +15 -0
- package/lib/typescript/src/components/button/ThemedPressable.d.ts.map +1 -1
- package/lib/typescript/src/components/icon/ThemedIcon.d.ts +13 -0
- package/lib/typescript/src/components/icon/ThemedIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/list/List.d.ts +14 -0
- package/lib/typescript/src/components/list/List.d.ts.map +1 -1
- package/lib/typescript/src/components/loading/ThemedLoading.d.ts +12 -0
- package/lib/typescript/src/components/loading/ThemedLoading.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.d.ts +18 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +6 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts +7 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts +7 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +7 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts +7 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts +7 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts +7 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts +7 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +7 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts +7 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/Alert.d.ts +18 -0
- package/lib/typescript/src/components/overlay/alert/Alert.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts +5 -0
- package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts +5 -0
- package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts +5 -0
- package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts +5 -0
- package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/modal/ThemedLoadingModal.d.ts +14 -0
- package/lib/typescript/src/components/overlay/modal/ThemedLoadingModal.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/modal/ThemedModal.d.ts +17 -0
- package/lib/typescript/src/components/overlay/modal/ThemedModal.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/toast/ThemedToast.d.ts +14 -0
- package/lib/typescript/src/components/overlay/toast/ThemedToast.d.ts.map +1 -1
- package/lib/typescript/src/components/provider/GestureProvider.d.ts +11 -0
- package/lib/typescript/src/components/provider/GestureProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/provider/InsetsProvider.d.ts +11 -0
- package/lib/typescript/src/components/provider/InsetsProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/provider/ReactNativeTemplateProviders.d.ts +11 -0
- package/lib/typescript/src/components/provider/ReactNativeTemplateProviders.d.ts.map +1 -1
- package/lib/typescript/src/components/provider/ThemeProvider.d.ts +11 -0
- package/lib/typescript/src/components/provider/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/separator/ThemedSeparator.d.ts +18 -0
- package/lib/typescript/src/components/separator/ThemedSeparator.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/Slider.d.ts +20 -0
- package/lib/typescript/src/components/slider/Slider.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/ThemedSlider.d.ts +15 -0
- package/lib/typescript/src/components/slider/ThemedSlider.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts +7 -0
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts.map +1 -1
- package/lib/typescript/src/components/switch/ThemedSwitch.d.ts +13 -0
- package/lib/typescript/src/components/switch/ThemedSwitch.d.ts.map +1 -1
- package/lib/typescript/src/components/text/Text.d.ts +9 -4
- package/lib/typescript/src/components/text/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/text/ThemedIconText.d.ts +21 -0
- package/lib/typescript/src/components/text/ThemedIconText.d.ts.map +1 -1
- package/lib/typescript/src/components/text/ThemedText.d.ts +14 -0
- package/lib/typescript/src/components/text/ThemedText.d.ts.map +1 -1
- package/lib/typescript/src/components/view/AnimatedThemedView.d.ts +15 -0
- package/lib/typescript/src/components/view/AnimatedThemedView.d.ts.map +1 -1
- package/lib/typescript/src/components/view/AnimatedView.d.ts +7 -0
- package/lib/typescript/src/components/view/AnimatedView.d.ts.map +1 -1
- package/lib/typescript/src/components/view/Box.d.ts +23 -18
- package/lib/typescript/src/components/view/Box.d.ts.map +1 -1
- package/lib/typescript/src/components/view/ThemedScreenWrap.d.ts +16 -0
- package/lib/typescript/src/components/view/ThemedScreenWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/view/ThemedScreenWrap.web.d.ts +14 -0
- package/lib/typescript/src/components/view/ThemedScreenWrap.web.d.ts.map +1 -1
- package/lib/typescript/src/components/view/ThemedScrollView.d.ts +16 -0
- package/lib/typescript/src/components/view/ThemedScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/view/ThemedView.d.ts +15 -0
- package/lib/typescript/src/components/view/ThemedView.d.ts.map +1 -1
- package/lib/typescript/src/hooks/button.d.ts +41 -0
- package/lib/typescript/src/hooks/button.d.ts.map +1 -1
- package/lib/typescript/src/hooks/list.d.ts +27 -0
- package/lib/typescript/src/hooks/list.d.ts.map +1 -1
- package/lib/typescript/src/hooks/overlay.d.ts +27 -0
- package/lib/typescript/src/hooks/overlay.d.ts.map +1 -1
- package/lib/typescript/src/hooks/react.d.ts +38 -0
- package/lib/typescript/src/hooks/react.d.ts.map +1 -1
- package/lib/typescript/src/hooks/reanimated.d.ts +10 -0
- package/lib/typescript/src/hooks/reanimated.d.ts.map +1 -1
- package/lib/typescript/src/hooks/separator.d.ts +16 -0
- package/lib/typescript/src/hooks/separator.d.ts.map +1 -1
- package/lib/typescript/src/hooks/style.d.ts +65 -0
- package/lib/typescript/src/hooks/style.d.ts.map +1 -1
- package/lib/typescript/src/hooks/switch.d.ts +20 -1
- package/lib/typescript/src/hooks/switch.d.ts.map +1 -1
- package/lib/typescript/src/hooks/theme.d.ts +82 -0
- package/lib/typescript/src/hooks/theme.d.ts.map +1 -1
- package/lib/typescript/src/hooks/view.d.ts +40 -2
- package/lib/typescript/src/hooks/view.d.ts.map +1 -1
- package/lib/typescript/src/types/accordion.d.ts +26 -0
- package/lib/typescript/src/types/accordion.d.ts.map +1 -1
- package/lib/typescript/src/types/button.d.ts +92 -0
- package/lib/typescript/src/types/button.d.ts.map +1 -1
- package/lib/typescript/src/types/icon.d.ts +43 -0
- package/lib/typescript/src/types/icon.d.ts.map +1 -1
- package/lib/typescript/src/types/list.d.ts +98 -1
- package/lib/typescript/src/types/list.d.ts.map +1 -1
- package/lib/typescript/src/types/loading.d.ts +38 -0
- package/lib/typescript/src/types/loading.d.ts.map +1 -1
- package/lib/typescript/src/types/overlay.d.ts +296 -1
- package/lib/typescript/src/types/overlay.d.ts.map +1 -1
- package/lib/typescript/src/types/provider.d.ts +21 -0
- package/lib/typescript/src/types/provider.d.ts.map +1 -1
- package/lib/typescript/src/types/react.d.ts +32 -0
- package/lib/typescript/src/types/react.d.ts.map +1 -1
- package/lib/typescript/src/types/reanimated.d.ts +32 -1
- package/lib/typescript/src/types/reanimated.d.ts.map +1 -1
- package/lib/typescript/src/types/separator.d.ts +26 -0
- package/lib/typescript/src/types/separator.d.ts.map +1 -1
- package/lib/typescript/src/types/slider.d.ts +88 -0
- package/lib/typescript/src/types/slider.d.ts.map +1 -1
- package/lib/typescript/src/types/style.d.ts +43 -0
- package/lib/typescript/src/types/style.d.ts.map +1 -1
- package/lib/typescript/src/types/switch.d.ts +50 -0
- package/lib/typescript/src/types/switch.d.ts.map +1 -1
- package/lib/typescript/src/types/text.d.ts +72 -0
- package/lib/typescript/src/types/text.d.ts.map +1 -1
- package/lib/typescript/src/types/theme.d.ts +111 -0
- package/lib/typescript/src/types/theme.d.ts.map +1 -1
- package/lib/typescript/src/types/view.d.ts +137 -0
- package/lib/typescript/src/types/view.d.ts.map +1 -1
- package/lib/typescript/src/utils/button/const.d.ts +27 -0
- package/lib/typescript/src/utils/button/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/const.d.ts +100 -0
- package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/func.d.ts +93 -0
- package/lib/typescript/src/utils/overlay/func.d.ts.map +1 -1
- package/lib/typescript/src/utils/reanimated/func.d.ts +5 -1
- package/lib/typescript/src/utils/reanimated/func.d.ts.map +1 -1
- package/lib/typescript/src/utils/slider/const.d.ts +47 -0
- package/lib/typescript/src/utils/slider/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/style/const.d.ts +14 -0
- package/lib/typescript/src/utils/style/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/style/func.d.ts +95 -0
- package/lib/typescript/src/utils/style/func.d.ts.map +1 -1
- package/lib/typescript/src/utils/switch/const.d.ts +2 -1
- package/lib/typescript/src/utils/switch/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/theme/const.d.ts +170 -0
- package/lib/typescript/src/utils/theme/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/theme/restyle.d.ts +142 -26
- package/lib/typescript/src/utils/theme/restyle.d.ts.map +1 -1
- package/package.json +4 -4
- package/lib/module/components/accordion/ThemedAccordion.web.js +0 -245
- package/lib/module/components/accordion/ThemedAccordion.web.js.map +0 -1
- package/lib/module/components/overlay/actionSheet/ActionSheet.web.js +0 -76
- package/lib/module/components/overlay/actionSheet/ActionSheet.web.js.map +0 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js +0 -113
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js.map +0 -1
- package/lib/module/components/slider/Slider.web.js +0 -595
- package/lib/module/components/slider/Slider.web.js.map +0 -1
- package/lib/module/components/slider/ThemedSlider.web.js +0 -206
- package/lib/module/components/slider/ThemedSlider.web.js.map +0 -1
- package/lib/typescript/src/components/accordion/ThemedAccordion.web.d.ts +0 -5
- package/lib/typescript/src/components/accordion/ThemedAccordion.web.d.ts.map +0 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts +0 -5
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts.map +0 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts +0 -4
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts.map +0 -1
- package/lib/typescript/src/components/slider/Slider.web.d.ts +0 -5
- package/lib/typescript/src/components/slider/Slider.web.d.ts.map +0 -1
- package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts +0 -5
- package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts.map +0 -1
|
@@ -4,45 +4,133 @@ import type { SetState } from './react';
|
|
|
4
4
|
import type { ThemedTextProps } from './text';
|
|
5
5
|
import type { ThemeColors } from './theme';
|
|
6
6
|
import type { AnimatedThemedViewProps, ThemedViewProps } from './view';
|
|
7
|
+
/**
|
|
8
|
+
* Configuration for a numeric range slider.
|
|
9
|
+
*
|
|
10
|
+
* Defines a slider that operates on numeric values within a specified range and step count.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* const config: NumberSlider = {
|
|
15
|
+
* range: [0, 100],
|
|
16
|
+
* steps: 10,
|
|
17
|
+
* defaultValue: 50
|
|
18
|
+
* };
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
7
21
|
export type NumberSlider = {
|
|
22
|
+
/** Minimum and maximum values [min, max] */
|
|
8
23
|
range: [number, number];
|
|
24
|
+
/** Number of discrete steps between min and max */
|
|
9
25
|
steps: number;
|
|
26
|
+
/** Initial value for the slider */
|
|
10
27
|
defaultValue?: number;
|
|
11
28
|
stepIndicator?: never;
|
|
12
29
|
stepIndicatorProps?: never;
|
|
13
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* Configuration for a string-based slider.
|
|
33
|
+
*
|
|
34
|
+
* Defines a slider that operates on predefined string values (e.g., sizes: 'small', 'medium', 'large').
|
|
35
|
+
* Optionally displays step indicators for each value.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* const config: StringSlider = {
|
|
40
|
+
* range: ['XS', 'S', 'M', 'L', 'XL'],
|
|
41
|
+
* defaultValue: 'M',
|
|
42
|
+
* stepIndicator: true
|
|
43
|
+
* };
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
14
46
|
export type StringSlider = {
|
|
47
|
+
/** Array of string values to select from */
|
|
15
48
|
range: string[];
|
|
16
49
|
steps?: never;
|
|
50
|
+
/** Initial selected string value */
|
|
17
51
|
defaultValue?: string;
|
|
52
|
+
/** Whether to display visual indicators for each step */
|
|
18
53
|
stepIndicator?: boolean;
|
|
54
|
+
/** Props for customizing step indicator appearance */
|
|
19
55
|
stepIndicatorProps?: ThemedSliderStepIndicatorProps;
|
|
20
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* Internal slider component props.
|
|
59
|
+
*
|
|
60
|
+
* Core slider functionality with state management through shared values.
|
|
61
|
+
* Used internally by ThemedSlider component.
|
|
62
|
+
*/
|
|
21
63
|
export type SliderProps = (NumberSlider | StringSlider) & {
|
|
64
|
+
/** Whether to animate when snapping to steps */
|
|
22
65
|
snapToStepAnimated?: boolean;
|
|
66
|
+
/** Callback invoked when the slider value changes */
|
|
23
67
|
onValueChange: (value: number | string) => void;
|
|
68
|
+
/** Props for the slider container wrapper */
|
|
24
69
|
sliderWrapProps?: ThemedViewProps;
|
|
70
|
+
/** Height/thickness of the slider track */
|
|
25
71
|
trackSize?: SliderTrackSize | number;
|
|
72
|
+
/** Color for the active (filled) portion of the track */
|
|
26
73
|
trackActiveColor?: ThemeColors;
|
|
74
|
+
/** Props for the active track portion */
|
|
27
75
|
trackActiveProps?: ThemedViewProps;
|
|
76
|
+
/** Color for the inactive (unfilled) portion of the track */
|
|
28
77
|
trackInactiveColor?: ThemeColors;
|
|
78
|
+
/** Props for the inactive track portion */
|
|
29
79
|
trackInactiveProps?: AnimatedThemedViewProps;
|
|
80
|
+
/** Size of the draggable thumb/handle */
|
|
30
81
|
thumbSize?: SliderThumbSize | number;
|
|
82
|
+
/** Color of the thumb/handle */
|
|
31
83
|
thumbColor?: ThemeColors;
|
|
84
|
+
/** Props for the thumb component */
|
|
32
85
|
thumbProps?: AnimatedThemedViewProps;
|
|
86
|
+
/** How to display the current value (e.g., 'none', 'above', 'inline') */
|
|
33
87
|
valueDisplayMode?: SliderValueDisplayMode;
|
|
88
|
+
/** Props for the value display container */
|
|
34
89
|
valueDisplayWrapProps?: ThemedViewProps;
|
|
90
|
+
/** Props for the value text */
|
|
35
91
|
valueTextProps?: Omit<ThemedTextProps, 'children'>;
|
|
92
|
+
/** Optional description text shown with the value */
|
|
36
93
|
valueDescription?: string;
|
|
94
|
+
/** Props for the value description text */
|
|
37
95
|
valueDescriptionTextProps?: Omit<ThemedTextProps, 'children'>;
|
|
96
|
+
/** Duration in ms to activate gesture handling */
|
|
38
97
|
gestureActivateDuration?: number;
|
|
98
|
+
/** State setter for the selected value */
|
|
39
99
|
setSelectedVal: SetState<number | string | undefined>;
|
|
100
|
+
/** Shared value for the selected value (used in Reanimated) */
|
|
40
101
|
selectedValSharedVal: SharedValue<number | string | undefined>;
|
|
41
102
|
};
|
|
103
|
+
/**
|
|
104
|
+
* Props for themed slider component.
|
|
105
|
+
*
|
|
106
|
+
* Public API for the slider component, supports both numeric and string-based ranges.
|
|
107
|
+
* Provides extensive customization options for appearance and behavior.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```tsx
|
|
111
|
+
* <ThemedSlider
|
|
112
|
+
* range={[0, 100]}
|
|
113
|
+
* steps={20}
|
|
114
|
+
* defaultValue={50}
|
|
115
|
+
* onValueChange={(value) => console.log(value)}
|
|
116
|
+
* trackActiveColor="primary"
|
|
117
|
+
* thumbSize="lg"
|
|
118
|
+
* valueDisplayMode="above"
|
|
119
|
+
* />
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
42
122
|
export type ThemedSliderProps = Omit<SliderProps, 'setSelectedVal' | 'selectedValSharedVal'> & {
|
|
123
|
+
/** Whether to animate when snapping to steps */
|
|
43
124
|
snapToStepAnimated?: boolean;
|
|
125
|
+
/** Callback invoked when the slider value changes */
|
|
44
126
|
onValueChange: (value: number | string) => void;
|
|
127
|
+
/** Props for the outer container wrapper */
|
|
45
128
|
wrapProps?: ThemedViewProps;
|
|
46
129
|
};
|
|
130
|
+
/**
|
|
131
|
+
* Props for slider step indicators.
|
|
132
|
+
*
|
|
133
|
+
* Customizes the visual markers displayed for each step in a string slider.
|
|
134
|
+
*/
|
|
47
135
|
export type ThemedSliderStepIndicatorProps = ThemedViewProps;
|
|
48
136
|
//# sourceMappingURL=slider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../../src/types/slider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEvE,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,kBAAkB,CAAC,EAAE,KAAK,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;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AAS,CAAC,CAAC;CAChE,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,WAAW,EACX,gBAAgB,GAAG,sBAAsB,CAC1C,GAAG;IACF,gDAAgD;IAChD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,qDAAqD;IACrD,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAChD,4CAA4C;IAC5C,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,8BAA8B,GAAG,eAAe,CAAC"}
|
|
@@ -1,18 +1,61 @@
|
|
|
1
1
|
import type { ImageStyle, StyleProp as RNStyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
2
|
import type { ThemeSpacing } from './theme';
|
|
3
|
+
/**
|
|
4
|
+
* Union type for all React Native style objects.
|
|
5
|
+
*
|
|
6
|
+
* Combines ViewStyle, TextStyle, and ImageStyle into a single type.
|
|
7
|
+
*/
|
|
3
8
|
export type Style = ViewStyle | TextStyle | ImageStyle;
|
|
9
|
+
/**
|
|
10
|
+
* React Native StyleProp type alias.
|
|
11
|
+
*
|
|
12
|
+
* Allows for single style objects, arrays of styles, or falsy values.
|
|
13
|
+
* Generic parameter T defaults to Style but can be narrowed to specific style types.
|
|
14
|
+
*/
|
|
4
15
|
export type StyleProp<T = Style> = RNStyleProp<T>;
|
|
16
|
+
/**
|
|
17
|
+
* Style or style prop type.
|
|
18
|
+
*
|
|
19
|
+
* Accepts either a direct style object or a StyleProp (array/conditional styles).
|
|
20
|
+
* Useful for component props that accept flexible style inputs.
|
|
21
|
+
*/
|
|
5
22
|
export type StyleOrStyleProp<T = Style> = T | StyleProp<T>;
|
|
23
|
+
/**
|
|
24
|
+
* Configuration for safe area inset padding.
|
|
25
|
+
*
|
|
26
|
+
* Allows components to automatically apply padding for device safe areas
|
|
27
|
+
* (notches, status bars, home indicators, etc.) with optional customization per edge.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const config: InsetsStyleConfig = {
|
|
32
|
+
* insets: true, // Apply to all edges
|
|
33
|
+
* insetTop: false, // Exclude top
|
|
34
|
+
* insetsPadding: 'md', // Use 'md' spacing for all edges
|
|
35
|
+
* insetPaddingBottom: 'lg' // Override bottom with 'lg'
|
|
36
|
+
* };
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
6
39
|
export type InsetsStyleConfig = {
|
|
40
|
+
/** Apply safe area insets to all edges */
|
|
7
41
|
insets?: boolean;
|
|
42
|
+
/** Apply safe area inset to top edge */
|
|
8
43
|
insetTop?: boolean;
|
|
44
|
+
/** Apply safe area inset to bottom edge */
|
|
9
45
|
insetBottom?: boolean;
|
|
46
|
+
/** Apply safe area inset to left edge */
|
|
10
47
|
insetLeft?: boolean;
|
|
48
|
+
/** Apply safe area inset to right edge */
|
|
11
49
|
insetRight?: boolean;
|
|
50
|
+
/** Default spacing value for all inset edges */
|
|
12
51
|
insetsPadding?: ThemeSpacing;
|
|
52
|
+
/** Spacing value for top inset (overrides insetsPadding) */
|
|
13
53
|
insetPaddingTop?: ThemeSpacing;
|
|
54
|
+
/** Spacing value for bottom inset (overrides insetsPadding) */
|
|
14
55
|
insetPaddingBottom?: ThemeSpacing;
|
|
56
|
+
/** Spacing value for left inset (overrides insetsPadding) */
|
|
15
57
|
insetPaddingLeft?: ThemeSpacing;
|
|
58
|
+
/** Spacing value for right inset (overrides insetsPadding) */
|
|
16
59
|
insetPaddingRight?: ThemeSpacing;
|
|
17
60
|
};
|
|
18
61
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/types/style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,IAAI,WAAW,EACxB,SAAS,EACT,SAAS,EACV,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AC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAE3D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,0CAA0C;IAC1C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,yCAAyC;IACzC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gDAAgD;IAChD,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B,4DAA4D;IAC5D,eAAe,CAAC,EAAE,YAAY,CAAC;IAC/B,+DAA+D;IAC/D,kBAAkB,CAAC,EAAE,YAAY,CAAC;IAClC,6DAA6D;IAC7D,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAChC,8DAA8D;IAC9D,iBAAiB,CAAC,EAAE,YAAY,CAAC;CAClC,CAAC"}
|
|
@@ -3,22 +3,72 @@ import type { AnimatedThemedPressableProps, OnPressDelayConfig } from './button'
|
|
|
3
3
|
import type { CustomAnimation } from './reanimated';
|
|
4
4
|
import type { ThemeColors } from './theme';
|
|
5
5
|
import type { AnimatedThemedViewProps } from './view';
|
|
6
|
+
/**
|
|
7
|
+
* Custom color configuration for switch component states.
|
|
8
|
+
*
|
|
9
|
+
* Allows customization of colors for both enabled and disabled states.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* const colors: CustomSwitchColors = {
|
|
14
|
+
* border: 'gray',
|
|
15
|
+
* borderEnabled: 'primary',
|
|
16
|
+
* background: 'lightgray',
|
|
17
|
+
* backgroundEnabled: 'primaryLight',
|
|
18
|
+
* thumb: 'white',
|
|
19
|
+
* thumbEnabled: 'white'
|
|
20
|
+
* };
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
6
23
|
export type CustomSwitchColors = {
|
|
24
|
+
/** Border color when switch is disabled/off */
|
|
7
25
|
border?: ThemeColors;
|
|
26
|
+
/** Border color when switch is enabled/on */
|
|
8
27
|
borderEnabled?: ThemeColors;
|
|
28
|
+
/** Background color when switch is disabled/off */
|
|
9
29
|
background?: ThemeColors;
|
|
30
|
+
/** Background color when switch is enabled/on */
|
|
10
31
|
backgroundEnabled?: ThemeColors;
|
|
32
|
+
/** Thumb color when switch is disabled/off */
|
|
11
33
|
thumb?: ThemeColors;
|
|
34
|
+
/** Thumb color when switch is enabled/on */
|
|
12
35
|
thumbEnabled?: ThemeColors;
|
|
13
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* Props for themed switch component.
|
|
39
|
+
*
|
|
40
|
+
* A toggle switch component with smooth animations and customizable appearance.
|
|
41
|
+
* Supports custom colors, sizes, and animation behaviors for enabled/disabled states.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```tsx
|
|
45
|
+
* <ThemedSwitch
|
|
46
|
+
* enabled={isEnabled}
|
|
47
|
+
* onPress={(enabled) => setIsEnabled(enabled)}
|
|
48
|
+
* size="lg"
|
|
49
|
+
* customColors={{
|
|
50
|
+
* borderEnabled: 'primary',
|
|
51
|
+
* backgroundEnabled: 'primaryLight'
|
|
52
|
+
* }}
|
|
53
|
+
* />
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
14
56
|
export type ThemedSwitchProps = Omit<AnimatedThemedPressableProps, 'onPress' | 'children'> & {
|
|
57
|
+
/** Callback invoked when switch is toggled, receives new enabled state */
|
|
15
58
|
onPress: (enabled: boolean) => void;
|
|
59
|
+
/** Current enabled/on state of the switch */
|
|
16
60
|
enabled?: boolean;
|
|
61
|
+
/** Size of the switch (predefined size or custom number) */
|
|
17
62
|
size?: SwitchSize | number;
|
|
63
|
+
/** Configuration for debouncing or throttling press events */
|
|
18
64
|
onPressDelayConfig?: OnPressDelayConfig;
|
|
65
|
+
/** Custom animation when enabling the switch (animates to 1) */
|
|
19
66
|
customEnableAnimation?: CustomAnimation<1>;
|
|
67
|
+
/** Custom animation when disabling the switch (animates to 0) */
|
|
20
68
|
customDisableAnimation?: CustomAnimation<0>;
|
|
69
|
+
/** Custom colors for different switch states */
|
|
21
70
|
customColors?: CustomSwitchColors;
|
|
71
|
+
/** Props for the thumb (sliding button) component */
|
|
22
72
|
thumbProps?: AnimatedThemedViewProps;
|
|
23
73
|
};
|
|
24
74
|
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../src/types/switch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EACV,4BAA4B,EAC5B,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC;AAEtD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,iBAAiB,CAAC,EAAE,WAAW,CAAC;IAChC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,YAAY,CAAC,EAAE,WAAW,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,4BAA4B,EAC5B,SAAS,GAAG,UAAU,CACvB,GAAG;IACF,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACx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IAC5D,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC3B,8DAA8D;IAC9D,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,gEAAgE;IAChE,qBAAqB,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IAC3C,iEAAiE;IACjE,sBAAsB,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IAC5C,gDAAgD;IAChD,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,qDAAqD;IACrD,UAAU,CAAC,EAAE,uBAAuB,CAAC;CACtC,CAAC"}
|
|
@@ -3,18 +3,90 @@ import type { TextProps as RNTextProps } from 'react-native';
|
|
|
3
3
|
import type { CustomThemedIconProps } from './icon';
|
|
4
4
|
import type { Theme } from './theme';
|
|
5
5
|
import type { ThemedViewProps } from './view';
|
|
6
|
+
/**
|
|
7
|
+
* Props for themed text component.
|
|
8
|
+
*
|
|
9
|
+
* Combines React Native TextProps with Restyle theme-based styling capabilities.
|
|
10
|
+
* Supports text variants, colors, spacing, and typography from the theme.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <ThemedText
|
|
15
|
+
* variant="heading"
|
|
16
|
+
* color="primary"
|
|
17
|
+
* fontSize={18}
|
|
18
|
+
* fontWeight="bold"
|
|
19
|
+
* >
|
|
20
|
+
* Hello World
|
|
21
|
+
* </ThemedText>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
6
24
|
export type ThemedTextProps = RNTextProps & TextProps<Theme>;
|
|
25
|
+
/**
|
|
26
|
+
* Customizable themed text props with prefixed property names.
|
|
27
|
+
*
|
|
28
|
+
* Useful when embedding text within other components to avoid prop name conflicts.
|
|
29
|
+
* All text-related props are prefixed with 'text' for clarity.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <Button
|
|
34
|
+
* text="Click Me"
|
|
35
|
+
* textVariant="button"
|
|
36
|
+
* textColor="white"
|
|
37
|
+
* textFontSize={16}
|
|
38
|
+
* />
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
7
41
|
export type CustomThemedTextProps = {
|
|
42
|
+
/** Text content to display */
|
|
8
43
|
text: ThemedTextProps['children'];
|
|
44
|
+
/** Text style variant from theme */
|
|
9
45
|
textVariant?: ThemedTextProps['variant'];
|
|
46
|
+
/** Font size (from theme or custom number) */
|
|
10
47
|
textFontSize?: ThemedTextProps['fontSize'];
|
|
48
|
+
/** Font weight (e.g., 'normal', 'bold', '600') */
|
|
11
49
|
textFontWeight?: ThemedTextProps['fontWeight'];
|
|
50
|
+
/** Text color from theme colors */
|
|
12
51
|
textColor?: ThemedTextProps['color'];
|
|
52
|
+
/** Custom style overrides for text */
|
|
13
53
|
textStyle?: ThemedTextProps['style'];
|
|
54
|
+
/** Additional text props (excluding specified ones) */
|
|
14
55
|
textProps?: Omit<ThemedTextProps, 'children' | 'variant' | 'fontSize' | 'fontWeight' | 'color' | 'style'>;
|
|
15
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* Combined icon and text props.
|
|
59
|
+
*
|
|
60
|
+
* Used for components that display an icon alongside text.
|
|
61
|
+
* Includes a flip option to control icon placement (left/right of text).
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```tsx
|
|
65
|
+
* const props: IconTextProps = {
|
|
66
|
+
* iconName: 'check',
|
|
67
|
+
* text: 'Confirmed',
|
|
68
|
+
* flip: false // Icon on left
|
|
69
|
+
* };
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
16
72
|
export type IconTextProps = CustomThemedIconProps & CustomThemedTextProps & {
|
|
73
|
+
/** Whether to flip icon and text positions (default: icon left, text right) */
|
|
17
74
|
flip?: boolean;
|
|
18
75
|
};
|
|
76
|
+
/**
|
|
77
|
+
* Themed icon-text combination with view wrapper.
|
|
78
|
+
*
|
|
79
|
+
* Combines icon and text with a themed container that supports spacing and layout props.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```tsx
|
|
83
|
+
* <ThemedIconText
|
|
84
|
+
* iconName="star"
|
|
85
|
+
* text="Favorite"
|
|
86
|
+
* gap="sm"
|
|
87
|
+
* padding="md"
|
|
88
|
+
* />
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
19
91
|
export type ThemedIconTextProps = IconTextProps & ThemedViewProps;
|
|
20
92
|
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/types/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAE9C,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;AAE7D,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;IAClC,WAAW,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACzC,YAAY,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;IAC3C,cAAc,CAAC,EAAE,eAAe,CAAC,YAAY,CAAC,CAAC;IAC/C,SAAS,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,IAAI,CACd,eAAe,EACf,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,GAAG,OAAO,GAAG,OAAO,CACvE,CAAC;CACH,CAAC;AAEF,M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AG;IACtB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEJ;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG,eAAe,CAAC"}
|
|
@@ -1,14 +1,125 @@
|
|
|
1
1
|
import type { BackgroundColorProps, BackgroundColorShorthandProps, BoxProps, ColorProps, LayoutProps, PositionProps, SpacingProps, SpacingShorthandProps } from '@shopify/restyle';
|
|
2
|
+
/**
|
|
3
|
+
* Global theme type for the UI library.
|
|
4
|
+
*
|
|
5
|
+
* References the globally augmented ReactNativeTemplateTheme interface.
|
|
6
|
+
* This type is defined in your theme configuration file.
|
|
7
|
+
*/
|
|
2
8
|
export type Theme = globalThis.ReactNativeTemplateTheme;
|
|
9
|
+
/**
|
|
10
|
+
* Union type of all available theme color keys.
|
|
11
|
+
*
|
|
12
|
+
* Provides type-safe color selection from the theme's color palette.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* const color: ThemeColors = 'primary'; // Type-safe
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
3
19
|
export type ThemeColors = keyof Theme['colors'];
|
|
20
|
+
/**
|
|
21
|
+
* Union type of all available theme spacing keys.
|
|
22
|
+
*
|
|
23
|
+
* Provides type-safe spacing values from the theme's spacing scale.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* const spacing: ThemeSpacing = 'md'; // Type-safe
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
4
30
|
export type ThemeSpacing = keyof Theme['spacing'];
|
|
31
|
+
/**
|
|
32
|
+
* Union type of all available theme breakpoint keys.
|
|
33
|
+
*
|
|
34
|
+
* Provides type-safe responsive breakpoint selection.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```tsx
|
|
38
|
+
* const breakpoint: ThemeBreakpoints = 'tablet'; // Type-safe
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
5
41
|
export type ThemeBreakpoints = keyof Theme['breakpoints'];
|
|
42
|
+
/**
|
|
43
|
+
* Union type of all available theme z-index keys.
|
|
44
|
+
*
|
|
45
|
+
* Provides type-safe z-index layer selection for stacking contexts.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```tsx
|
|
49
|
+
* const zIndex: ThemeZIndices = 'modal'; // Type-safe
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
6
52
|
export type ThemeZIndices = keyof Theme['zIndices'];
|
|
53
|
+
/**
|
|
54
|
+
* Union type of all available theme border radius keys.
|
|
55
|
+
*
|
|
56
|
+
* Provides type-safe border radius selection from the theme.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```tsx
|
|
60
|
+
* const radius: ThemeBorderRadii = 'md'; // Type-safe
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
7
63
|
export type ThemeBorderRadii = keyof Theme['borderRadii'];
|
|
64
|
+
/**
|
|
65
|
+
* Union type of all available theme text variant keys.
|
|
66
|
+
*
|
|
67
|
+
* Provides type-safe text style variant selection.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```tsx
|
|
71
|
+
* const variant: ThemeTextVariants = 'heading'; // Type-safe
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
8
74
|
export type ThemeTextVariants = keyof Theme['textVariants'];
|
|
75
|
+
/**
|
|
76
|
+
* Theme-aware view/box props from Restyle.
|
|
77
|
+
*
|
|
78
|
+
* Provides comprehensive styling props including spacing, layout, position, etc.
|
|
79
|
+
* All props automatically resolve values from the theme.
|
|
80
|
+
*/
|
|
9
81
|
export type ThemeViewProps = BoxProps<Theme>;
|
|
82
|
+
/**
|
|
83
|
+
* Theme-aware color props from Restyle.
|
|
84
|
+
*
|
|
85
|
+
* Provides color-related styling props that resolve from the theme color palette.
|
|
86
|
+
*/
|
|
10
87
|
export type ThemeColorProps = ColorProps<Theme>;
|
|
88
|
+
/**
|
|
89
|
+
* Theme-aware spacing props from Restyle.
|
|
90
|
+
*
|
|
91
|
+
* Provides margin and padding props with both full names and shorthand notation.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```tsx
|
|
95
|
+
* const props: ThemeSpacingProps = {
|
|
96
|
+
* padding: 'md', // Full name
|
|
97
|
+
* p: 'md', // Shorthand
|
|
98
|
+
* marginTop: 'lg', // Full name
|
|
99
|
+
* mt: 'lg' // Shorthand
|
|
100
|
+
* };
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
11
103
|
export type ThemeSpacingProps = SpacingProps<Theme> & SpacingShorthandProps<Theme>;
|
|
104
|
+
/**
|
|
105
|
+
* Theme-aware background color props from Restyle.
|
|
106
|
+
*
|
|
107
|
+
* Provides background color styling with both full names and shorthand notation.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```tsx
|
|
111
|
+
* const props: ThemeBackgroundColorProps = {
|
|
112
|
+
* backgroundColor: 'primary', // Full name
|
|
113
|
+
* bg: 'primary' // Shorthand
|
|
114
|
+
* };
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
12
117
|
export type ThemeBackgroundColorProps = BackgroundColorProps<Theme> & BackgroundColorShorthandProps<Theme>;
|
|
118
|
+
/**
|
|
119
|
+
* Base theme props combining spacing, color, layout, and position.
|
|
120
|
+
*
|
|
121
|
+
* Common props used across most themed components in the library.
|
|
122
|
+
* Includes spacing, background color, layout, and positioning capabilities.
|
|
123
|
+
*/
|
|
13
124
|
export type ThemeBaseProps = ThemeSpacingProps & ThemeBackgroundColorProps & LayoutProps<Theme> & PositionProps<Theme>;
|
|
14
125
|
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/types/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,6BAA6B,EAC7B,QAAQ,EACR,UAA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