@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,13 +4,39 @@ import type { CustomThemedIconProps } from './icon';
|
|
|
4
4
|
import type { CustomThemedTextProps } from './text';
|
|
5
5
|
import type { ThemeColors } from './theme';
|
|
6
6
|
import type { AnimatedThemedViewProps, PropsWithRequiredChildren, ThemedViewProps } from './view';
|
|
7
|
+
/**
|
|
8
|
+
* Props for ThemedAccordion component.
|
|
9
|
+
*
|
|
10
|
+
* An accordion component that can expand and collapse content with animated transitions.
|
|
11
|
+
* Supports customizable header text, icons, borders, and content areas.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <ThemedAccordion
|
|
16
|
+
* text="Section Title"
|
|
17
|
+
* iconNameOpened="chevron-up"
|
|
18
|
+
* iconNameClosed="chevron-down"
|
|
19
|
+
* borderWidth="sm"
|
|
20
|
+
* borderColor="border"
|
|
21
|
+
* >
|
|
22
|
+
* <Text>Accordion content goes here</Text>
|
|
23
|
+
* </ThemedAccordion>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
7
26
|
export type ThemedAccordionProps = PropsWithRequiredChildren<Partial<CustomThemedTextProps> & Omit<CustomThemedIconProps, 'iconName'> & {
|
|
27
|
+
/** Border width for the accordion container */
|
|
8
28
|
borderWidth?: BorderSize;
|
|
29
|
+
/** Border color from theme colors */
|
|
9
30
|
borderColor?: ThemeColors;
|
|
31
|
+
/** Props for the outer animated container wrapper */
|
|
10
32
|
wrapProps?: AnimatedThemedViewProps;
|
|
33
|
+
/** Props for the pressable header area that toggles the accordion */
|
|
11
34
|
headerWrapProps?: ThemedPressableProps;
|
|
35
|
+
/** Icon name to display when the accordion is opened/expanded */
|
|
12
36
|
iconNameOpened?: CustomThemedIconProps['iconName'];
|
|
37
|
+
/** Icon name to display when the accordion is closed/collapsed */
|
|
13
38
|
iconNameClosed?: CustomThemedIconProps['iconName'];
|
|
39
|
+
/** Props for the content container wrapper */
|
|
14
40
|
contentWrapProps?: ThemedViewProps;
|
|
15
41
|
}>;
|
|
16
42
|
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../../src/types/accordion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EACzB,eAAe,EAChB,MAAM,QAAQ,CAAC;AAEhB,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,CAC1D,OAAO,CAAC,qBAAqB,CAAC,GAC5B,IAAI,CAAC,qBAAqB,EAAE,UAAU,CAAC,GAAG;IACxC,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,uBAAuB,CAAC;IACpC,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,cAAc,CAAC,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACnD,cAAc,CAAC,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACnD,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC,CACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../../src/types/accordion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EACzB,eAAe,EAChB,MAAM,QAAQ,CAAC;AAEhB;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,CAC1D,OAAO,CAAC,qBAAqB,CAAC,GAC5B,IAAI,CAAC,qBAAqB,EAAE,UAAU,CAAC,GAAG;IACxC,+CAA+C;IAC/C,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,qCAAqC;IACrC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,qDAAqD;IACrD,SAAS,CAAC,EAAE,uBAAuB,CAAC;IACpC,qEAAqE;IACrE,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,iEAAiE;IACjE,cAAc,CAAC,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACnD,kEAAkE;IAClE,cAAc,CAAC,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACnD,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC,CACJ,CAAC"}
|
|
@@ -7,25 +7,117 @@ import type { CustomThemedIconProps } from './icon';
|
|
|
7
7
|
import type { CustomThemedTextProps, IconTextProps } from './text';
|
|
8
8
|
import type { ThemeViewProps } from './theme';
|
|
9
9
|
import type { ThemedViewProps, ViewRefObj } from './view';
|
|
10
|
+
/**
|
|
11
|
+
* Handler function for pressable components.
|
|
12
|
+
*
|
|
13
|
+
* Can be either a regular function or a Reanimated shared value containing a function.
|
|
14
|
+
* This allows for both standard and animated press handling.
|
|
15
|
+
*/
|
|
10
16
|
export type PressableOnPress = (event: GestureResponderEvent) => void | SharedValue<(event: GestureResponderEvent) => void>;
|
|
17
|
+
/**
|
|
18
|
+
* Configuration for delaying press event execution.
|
|
19
|
+
*
|
|
20
|
+
* Supports debounce or throttle patterns to control press event frequency.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* const config = { type: 'debounce', wait: 300 };
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
11
27
|
export type OnPressDelayConfig<T = OnPressDelayType> = {
|
|
28
|
+
/** Type of delay mechanism (e.g., 'debounce' or 'throttle') */
|
|
12
29
|
type: T;
|
|
30
|
+
/** Wait time in milliseconds before executing the press handler */
|
|
13
31
|
wait: number;
|
|
14
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* Enhanced pressable component props with required onPress handler.
|
|
35
|
+
*
|
|
36
|
+
* Extends React Native's PressableProps with additional features like scale animations
|
|
37
|
+
* and press delay configuration.
|
|
38
|
+
*/
|
|
15
39
|
export type PressableProps = Omit<RNPressableProps, 'onPress'> & Required<Pick<RNPressableProps, 'onPress'>> & {
|
|
40
|
+
/** Scale ratio for press animation (predefined or custom number) */
|
|
16
41
|
scaleRatio?: ButtonScaleRatio | number;
|
|
42
|
+
/** Configuration for debouncing or throttling press events */
|
|
17
43
|
onPressDelayConfig?: OnPressDelayConfig;
|
|
44
|
+
/** Ref to the underlying View component */
|
|
18
45
|
ref?: ViewRefObj;
|
|
19
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* Pressable component with theme-aware styling capabilities.
|
|
49
|
+
*
|
|
50
|
+
* Combines pressable functionality with theme-based view properties.
|
|
51
|
+
*/
|
|
20
52
|
export type ThemedPressableProps = PressableProps & ThemeViewProps;
|
|
53
|
+
/**
|
|
54
|
+
* Props for the AnimatedPressable component.
|
|
55
|
+
*
|
|
56
|
+
* Inferred from the AnimatedPressable component implementation.
|
|
57
|
+
*/
|
|
21
58
|
export type AnimatedPressableProps = ComponentProps<typeof AnimatedPressable>;
|
|
59
|
+
/**
|
|
60
|
+
* Themed pressable with Reanimated animation support.
|
|
61
|
+
*
|
|
62
|
+
* Merges themed pressable capabilities with Reanimated animations for complex interactions.
|
|
63
|
+
*/
|
|
22
64
|
export type AnimatedThemedPressableProps = Omit<ThemedPressableProps, 'ref' | 'scaleRatio'> & Omit<AnimatedPressableProps, 'key' | 'style'> & {
|
|
65
|
+
/** Animated style object for Reanimated animations */
|
|
23
66
|
animatedStyle?: AnimatedPressableProps['style'];
|
|
24
67
|
};
|
|
68
|
+
/**
|
|
69
|
+
* Base button props without children constraint.
|
|
70
|
+
*
|
|
71
|
+
* Used as a foundation for specialized button types.
|
|
72
|
+
*/
|
|
25
73
|
type ButtonProps = PropsWithChildren<Omit<ThemedPressableProps, 'children'>>;
|
|
74
|
+
/**
|
|
75
|
+
* Themed button component with text content.
|
|
76
|
+
*
|
|
77
|
+
* A button that displays text with theme-aware styling.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```tsx
|
|
81
|
+
* <ThemedButton
|
|
82
|
+
* text="Click Me"
|
|
83
|
+
* textColor="primary"
|
|
84
|
+
* onPress={() => console.log('Pressed')}
|
|
85
|
+
* />
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
26
88
|
export type ThemedButtonProps = ButtonProps & CustomThemedTextProps;
|
|
89
|
+
/**
|
|
90
|
+
* Themed button component with icon content.
|
|
91
|
+
*
|
|
92
|
+
* A button that displays an icon with theme-aware styling.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```tsx
|
|
96
|
+
* <ThemedIconButton
|
|
97
|
+
* iconName="heart"
|
|
98
|
+
* iconColor="error"
|
|
99
|
+
* onPress={() => console.log('Liked')}
|
|
100
|
+
* />
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
27
103
|
export type ThemedIconButtonProps = ButtonProps & CustomThemedIconProps;
|
|
104
|
+
/**
|
|
105
|
+
* Themed button component with both icon and text content.
|
|
106
|
+
*
|
|
107
|
+
* A button that displays an icon alongside text, with optional layout control.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```tsx
|
|
111
|
+
* <ThemedIconTextButton
|
|
112
|
+
* iconName="arrow-right"
|
|
113
|
+
* text="Continue"
|
|
114
|
+
* flip={false}
|
|
115
|
+
* onPress={() => console.log('Continue')}
|
|
116
|
+
* />
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
28
119
|
export type ThemedIconTextButtonProps = PropsWithChildren<ButtonProps & IconTextProps & {
|
|
120
|
+
/** Additional props for the icon-text container wrapper */
|
|
29
121
|
iconTextProps?: ThemedViewProps;
|
|
30
122
|
}>;
|
|
31
123
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/types/button.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,IAAI,gBAAgB,EACnC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,iBAAiB,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,UAA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;IACxC,2CAA2C;IAC3C,GAAG,CAAC,EAAE,UAAU,CAAC;CAClB,CAAC;AAEJ;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,cAAc,GAAG,cAAc,CAAC;AAEnE;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE9E;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,oBAAoB,EACpB,KAAK,GAAG,YAAY,CACrB,GACC,IAAI,CAAC,sBAAsB,EAAE,KAAK,GAAG,OAAO,CAAC,GAAG;IAC9C,sDAAsD;IACtD,aAAa,CAAC,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;CACjD,CAAC;AAEJ;;;;GAIG;AACH,KAAK,WAAW,GAAG,iBAAiB,CAAC,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAAC,CAAC;AAE7E;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,qBAAqB,CAAC;AAEpE;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG,qBAAqB,CAAC;AAExE;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CACvD,WAAW,GACT,aAAa,GAAG;IACd,2DAA2D;IAC3D,aAAa,CAAC,EAAE,eAAe,CAAC;CACjC,CACJ,CAAC"}
|
|
@@ -2,18 +2,61 @@ import type { IconName, IconSize } from '@jamadd/react-native-template-icons';
|
|
|
2
2
|
import type { TextStyle } from 'react-native';
|
|
3
3
|
import type { StyleOrStyleProp } from './style';
|
|
4
4
|
import type { ThemeBaseProps, ThemeColors } from './theme';
|
|
5
|
+
/**
|
|
6
|
+
* Basic icon component props.
|
|
7
|
+
*
|
|
8
|
+
* Defines the essential properties for rendering an icon from the icon library.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* const iconProps: IconProps = {
|
|
13
|
+
* name: 'heart',
|
|
14
|
+
* size: 24,
|
|
15
|
+
* color: 'red'
|
|
16
|
+
* };
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
5
19
|
export type IconProps = {
|
|
20
|
+
/** Name of the icon from the icon library */
|
|
6
21
|
name: IconName;
|
|
22
|
+
/** Size of the icon (predefined size or custom number) */
|
|
7
23
|
size?: IconSize | number;
|
|
24
|
+
/** Color from the theme colors palette */
|
|
8
25
|
color?: ThemeColors;
|
|
26
|
+
/** Custom style overrides for the icon */
|
|
9
27
|
style?: StyleOrStyleProp<TextStyle>;
|
|
10
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Icon component with theme-aware properties.
|
|
31
|
+
*
|
|
32
|
+
* Extends IconProps with theme-based spacing, layout, and positioning capabilities.
|
|
33
|
+
*/
|
|
11
34
|
export type ThemedIconProps = IconProps & ThemeBaseProps;
|
|
35
|
+
/**
|
|
36
|
+
* Customizable themed icon props with prefixed property names.
|
|
37
|
+
*
|
|
38
|
+
* Useful when embedding icons within other components to avoid prop name conflicts.
|
|
39
|
+
* All icon-related props are prefixed with 'icon' for clarity.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* <Component
|
|
44
|
+
* iconName="settings"
|
|
45
|
+
* iconSize={20}
|
|
46
|
+
* iconColor="primary"
|
|
47
|
+
* />
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
12
50
|
export type CustomThemedIconProps = {
|
|
51
|
+
/** Icon name from the icon library */
|
|
13
52
|
iconName: ThemedIconProps['name'];
|
|
53
|
+
/** Icon size (predefined or custom number) */
|
|
14
54
|
iconSize?: ThemedIconProps['size'];
|
|
55
|
+
/** Icon color from theme colors */
|
|
15
56
|
iconColor?: ThemedIconProps['color'];
|
|
57
|
+
/** Custom style for the icon */
|
|
16
58
|
iconStyle?: ThemedIconProps['style'];
|
|
59
|
+
/** Additional icon props (excluding name, size, color, style) */
|
|
17
60
|
iconProps?: Omit<ThemedIconProps, 'name' | 'size' | 'color' | 'style'>;
|
|
18
61
|
};
|
|
19
62
|
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/types/icon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3D,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,cAAc,CAAC;AAEzD,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC,CAAC;CACxE,CAAC"}
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/types/icon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3D;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,6CAA6C;IAC7C,IAAI,EAAE,QAAQ,CAAC;IACf,0DAA0D;IAC1D,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACzB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;CACrC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,cAAc,CAAC;AAEzD;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,sCAAsC;IACtC,QAAQ,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAClC,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACnC,mCAAmC;IACnC,SAAS,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACrC,gCAAgC;IAChC,SAAS,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACrC,iEAAiE;IACjE,SAAS,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC,CAAC;CACxE,CAAC"}
|
|
@@ -1,30 +1,127 @@
|
|
|
1
1
|
import type { FlashListProps, FlashListRef, ListRenderItemInfo } from '@shopify/flash-list';
|
|
2
|
-
import type { ComponentType, RefObject } from 'react';
|
|
2
|
+
import type { ComponentType, FC, RefObject } from 'react';
|
|
3
3
|
import type { ViewStyle } from 'react-native';
|
|
4
4
|
import type { AnimatedRef } from 'react-native-reanimated';
|
|
5
5
|
import type { ThemedSeparatorProps } from './separator';
|
|
6
6
|
import type { InsetsStyleConfig } from './style';
|
|
7
7
|
import type { ThemeColors } from './theme';
|
|
8
8
|
import type { PropsWithRequiredChildren } from './view';
|
|
9
|
+
/**
|
|
10
|
+
* Reference to a FlashList component.
|
|
11
|
+
*
|
|
12
|
+
* Provides access to FlashList methods like scrollToIndex, scrollToEnd, etc.
|
|
13
|
+
*/
|
|
9
14
|
export type ListRef<T> = FlashListRef<T>;
|
|
15
|
+
/**
|
|
16
|
+
* RefObject for a FlashList component.
|
|
17
|
+
*
|
|
18
|
+
* Used to store and access the list reference in React components.
|
|
19
|
+
*/
|
|
10
20
|
export type ListRefObj<T> = RefObject<ListRef<T> | null>;
|
|
21
|
+
/**
|
|
22
|
+
* Animated RefObject for a FlashList component.
|
|
23
|
+
*
|
|
24
|
+
* Used with Reanimated for animated list operations and scroll handling.
|
|
25
|
+
*/
|
|
11
26
|
export type ListAnimatedRefObj<T> = AnimatedRef<ListRef<T>>;
|
|
27
|
+
/**
|
|
28
|
+
* Props provided to list item render functions.
|
|
29
|
+
*
|
|
30
|
+
* Contains item data, index, and additional metadata for rendering list items.
|
|
31
|
+
*/
|
|
12
32
|
export type ListItemProps<T> = ListRenderItemInfo<T>;
|
|
33
|
+
/**
|
|
34
|
+
* Function to extract unique keys from list items.
|
|
35
|
+
*
|
|
36
|
+
* Required by FlashList for efficient item tracking and updates.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```tsx
|
|
40
|
+
* const keyExtractor: ListKeyExtractor<User> = (user) => user.id;
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
13
43
|
export type ListKeyExtractor<T> = (item: T, index: number) => string;
|
|
44
|
+
/**
|
|
45
|
+
* Function to determine item types for heterogeneous lists.
|
|
46
|
+
*
|
|
47
|
+
* Used by FlashList to optimize rendering of lists with different item types.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```tsx
|
|
51
|
+
* const getItemType: ListGetItemType<Message> = (item) => item.type;
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
14
54
|
export type ListGetItemType<T> = (item: T, index: number, extraData?: any) => string | number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Props for the themed list component.
|
|
57
|
+
*
|
|
58
|
+
* Extends FlashList with theme support, insets handling, and type-safe item rendering.
|
|
59
|
+
* Requires data array, Item component, and keyExtractor function.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```tsx
|
|
63
|
+
* <List
|
|
64
|
+
* data={users}
|
|
65
|
+
* Item={UserItem}
|
|
66
|
+
* keyExtractor={(user) => user.id}
|
|
67
|
+
* estimatedItemSize={100}
|
|
68
|
+
* />
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
15
71
|
export type ListProps<T> = Omit<FlashListProps<T>, 'data' | 'renderItem' | 'keyExtractor'> & InsetsStyleConfig & {
|
|
72
|
+
/** Reference to the list instance */
|
|
16
73
|
ref?: ListRefObj<T> | ListAnimatedRefObj<T>;
|
|
74
|
+
/** Array of items to render */
|
|
17
75
|
data: T[];
|
|
76
|
+
/** Component to render each list item */
|
|
18
77
|
Item: ComponentType<ListItemProps<T>>;
|
|
78
|
+
/** Function to extract unique key from each item */
|
|
19
79
|
keyExtractor: ListKeyExtractor<T>;
|
|
20
80
|
};
|
|
81
|
+
/**
|
|
82
|
+
* Props for customizing list item separators.
|
|
83
|
+
*
|
|
84
|
+
* Allows configuration of separator appearance between list items.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```tsx
|
|
88
|
+
* const separatorProps: ListItemSeparatorProps = {
|
|
89
|
+
* size: 'sm',
|
|
90
|
+
* backgroundColor: 'border',
|
|
91
|
+
* vertical: false
|
|
92
|
+
* };
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
21
95
|
export type ListItemSeparatorProps = Partial<Pick<ThemedSeparatorProps, 'size' | 'vertical'> & {
|
|
96
|
+
/** Background color from theme colors */
|
|
22
97
|
backgroundColor: ThemeColors;
|
|
98
|
+
/** Additional style props for the separator */
|
|
23
99
|
style: Omit<ThemedSeparatorProps, 'size' | 'vertical' | 'backgroundColor' | 'bg'>;
|
|
24
100
|
}>;
|
|
101
|
+
/**
|
|
102
|
+
* Component type for rendering separators between list items.
|
|
103
|
+
*
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
export type ListItemSeparatorComponent = FC<{
|
|
107
|
+
leadingItem?: {
|
|
108
|
+
type: string;
|
|
109
|
+
};
|
|
110
|
+
trailingItem?: {
|
|
111
|
+
type: string;
|
|
112
|
+
};
|
|
113
|
+
}>;
|
|
114
|
+
/**
|
|
115
|
+
* Props for custom cell renderer components.
|
|
116
|
+
*
|
|
117
|
+
* Used when implementing custom list item wrappers with FlashList.
|
|
118
|
+
*/
|
|
25
119
|
export type ListCellRendererComponentProps = PropsWithRequiredChildren<{
|
|
120
|
+
/** Callback when the cell layout changes */
|
|
26
121
|
onLayout: () => void;
|
|
122
|
+
/** Index of the item in the list */
|
|
27
123
|
index: number;
|
|
124
|
+
/** Style object for the cell container */
|
|
28
125
|
style: ViewStyle;
|
|
29
126
|
}>;
|
|
30
127
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/types/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/types/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,S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,GACC,iBAAiB,GAAG;IAClB,qCAAqC;IACrC,GAAG,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC5C,+BAA+B;IAC/B,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,yCAAyC;IACzC,IAAI,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;IACtC,oDAAoD;IACpD,YAAY,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;CACnC,CAAC;AAEJ;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAC1C,IAAI,CAAC,oBAAoB,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG;IAChD,yCAAyC;IACzC,eAAe,EAAE,WAAW,CAAC;IAC7B,+CAA+C;IAC/C,KAAK,EAAE,IAAI,CACT,oBAAoB,EACpB,MAAM,GAAG,UAAU,GAAG,iBAAiB,GAAG,IAAI,CAC/C,CAAC;CACH,CACF,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG,EAAE,CAAC;IAC1C,WAAW,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,YAAY,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACjC,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC;IACrE,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC,CAAC"}
|
|
@@ -1,12 +1,50 @@
|
|
|
1
1
|
import type { ActivityIndicatorProps } from 'react-native';
|
|
2
2
|
import type { ThemeBaseProps, ThemeColorProps } from './theme';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the loading/activity indicator component.
|
|
5
|
+
*
|
|
6
|
+
* Extends React Native's ActivityIndicator with theme-aware color support.
|
|
7
|
+
*/
|
|
3
8
|
export type LoadingProps = Omit<ActivityIndicatorProps, 'color'> & {
|
|
9
|
+
/** Color from theme colors palette for the loading indicator */
|
|
4
10
|
color?: ThemeColorProps['color'];
|
|
5
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Themed loading indicator component props.
|
|
14
|
+
*
|
|
15
|
+
* Combines loading indicator with theme-based spacing, layout, and positioning.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <ThemedLoading
|
|
20
|
+
* size="large"
|
|
21
|
+
* color="primary"
|
|
22
|
+
* padding="md"
|
|
23
|
+
* />
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
6
26
|
export type ThemedLoadingProps = LoadingProps & ThemeBaseProps;
|
|
27
|
+
/**
|
|
28
|
+
* Customizable themed loading props with prefixed property names.
|
|
29
|
+
*
|
|
30
|
+
* Useful when embedding loading indicators within other components.
|
|
31
|
+
* All loading-related props are prefixed with 'loading' for clarity.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* <Button
|
|
36
|
+
* loadingSize="small"
|
|
37
|
+
* loadingColor="white"
|
|
38
|
+
* loadingProps={{ animating: true }}
|
|
39
|
+
* />
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
7
42
|
export type CustomThemedLoadingProps = {
|
|
43
|
+
/** Size of the loading indicator ('small' or 'large') */
|
|
8
44
|
loadingSize?: ThemedLoadingProps['size'];
|
|
45
|
+
/** Color from theme colors for the loading indicator */
|
|
9
46
|
loadingColor?: ThemedLoadingProps['color'];
|
|
47
|
+
/** Additional loading indicator props (excluding size and color) */
|
|
10
48
|
loadingProps?: Omit<ThemedLoadingProps, 'size' | 'color'>;
|
|
11
49
|
};
|
|
12
50
|
//# sourceMappingURL=loading.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../../../../src/types/loading.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/D,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC,GAAG;IACjE,KAAK,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,cAAc,CAAC;AAE/D,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IACzC,YAAY,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAC3C,YAAY,CAAC,EAAE,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;CAC3D,CAAC"}
|
|
1
|
+
{"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../../../../src/types/loading.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/D;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC,GAAG;IACjE,gEAAgE;IAChE,KAAK,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;CAClC,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,cAAc,CAAC;AAE/D;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,yDAAyD;IACzD,WAAW,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IACz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