@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
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
4
|
import { IconSize } from '@jamadd/react-native-template-icons';
|
|
5
|
-
import { useLayoutEffect, useReducer, useState } from 'react';
|
|
5
|
+
import { lazy, useLayoutEffect, useReducer, useState } from 'react';
|
|
6
|
+
import { Platform } from 'react-native';
|
|
7
|
+
import { useWindowDimensionsWidth } from "../../hooks/style.js";
|
|
6
8
|
import { useViewRef } from "../../hooks/view.js";
|
|
7
9
|
import { BorderSize } from "../../utils/theme/const.js";
|
|
8
10
|
import ThemedPressable from "../button/ThemedPressable.js";
|
|
@@ -10,9 +12,30 @@ import ThemedIcon from "../icon/ThemedIcon.js";
|
|
|
10
12
|
import AnimatedThemedView from "../view/AnimatedThemedView.js";
|
|
11
13
|
import ThemedView from "../view/ThemedView.js";
|
|
12
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
|
|
15
|
+
let ThemedText;
|
|
16
|
+
if (Platform.OS === 'web') {
|
|
17
|
+
ThemedText = /*#__PURE__*/lazy(() => import('../text/ThemedText'));
|
|
18
|
+
} else {
|
|
19
|
+
ThemedText = require('../text/ThemedText').default;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* A themed accordion component that expands and collapses content with smooth animations.
|
|
24
|
+
* Features a clickable header with text and icon, and animates the height of the content area.
|
|
25
|
+
* Supports customization of borders, colors, icons, and internal layout through comprehensive props.
|
|
26
|
+
* @param props - Component props of type ThemedAccordionProps
|
|
27
|
+
* @returns JSX element rendering an expandable/collapsible accordion
|
|
28
|
+
* @example
|
|
29
|
+
* <ThemedAccordion
|
|
30
|
+
* text="FAQ Section"
|
|
31
|
+
* iconNameOpened="up"
|
|
32
|
+
* iconNameClosed="down"
|
|
33
|
+
* >
|
|
34
|
+
* <ThemedText>This is the accordion content</ThemedText>
|
|
35
|
+
* </ThemedAccordion>
|
|
36
|
+
*/
|
|
14
37
|
const ThemedAccordion = t0 => {
|
|
15
|
-
const $ = _c(
|
|
38
|
+
const $ = _c(50);
|
|
16
39
|
const {
|
|
17
40
|
borderWidth: t1,
|
|
18
41
|
borderColor: t2,
|
|
@@ -34,13 +57,14 @@ const ThemedAccordion = t0 => {
|
|
|
34
57
|
contentWrapProps,
|
|
35
58
|
children
|
|
36
59
|
} = t0;
|
|
37
|
-
const borderWidth = t1 === undefined ? BorderSize.
|
|
60
|
+
const borderWidth = t1 === undefined ? BorderSize.S : t1;
|
|
38
61
|
const borderColor = t2 === undefined ? "themePri" : t2;
|
|
39
62
|
const textColor = t3 === undefined ? "textButton" : t3;
|
|
40
63
|
const iconNameOpened = t4 === undefined ? "up" : t4;
|
|
41
64
|
const iconNameClosed = t5 === undefined ? "down" : t5;
|
|
42
65
|
const iconSize = t6 === undefined ? IconSize.S : t6;
|
|
43
66
|
const iconColor = t7 === undefined ? "textButton" : t7;
|
|
67
|
+
const windowWidth = useWindowDimensionsWidth();
|
|
44
68
|
const wrapRef = useViewRef();
|
|
45
69
|
const headerRef = useViewRef();
|
|
46
70
|
const contentRef = useViewRef();
|
|
@@ -72,36 +96,37 @@ const ThemedAccordion = t0 => {
|
|
|
72
96
|
t8 = $[3];
|
|
73
97
|
}
|
|
74
98
|
let t9;
|
|
75
|
-
if ($[4] !== children || $[5] !== iconSize || $[6] !== text || $[7] !== textFontSize || $[8] !== textFontWeight || $[9] !== textVariant) {
|
|
76
|
-
t9 = [text, textVariant, textFontSize, textFontWeight, iconSize, children];
|
|
99
|
+
if ($[4] !== children || $[5] !== iconSize || $[6] !== text || $[7] !== textFontSize || $[8] !== textFontWeight || $[9] !== textVariant || $[10] !== windowWidth) {
|
|
100
|
+
t9 = [text, textVariant, textFontSize, textFontWeight, iconSize, children, windowWidth];
|
|
77
101
|
$[4] = children;
|
|
78
102
|
$[5] = iconSize;
|
|
79
103
|
$[6] = text;
|
|
80
104
|
$[7] = textFontSize;
|
|
81
105
|
$[8] = textFontWeight;
|
|
82
106
|
$[9] = textVariant;
|
|
83
|
-
$[10] =
|
|
107
|
+
$[10] = windowWidth;
|
|
108
|
+
$[11] = t9;
|
|
84
109
|
} else {
|
|
85
|
-
t9 = $[
|
|
110
|
+
t9 = $[11];
|
|
86
111
|
}
|
|
87
112
|
useLayoutEffect(t8, t9);
|
|
88
113
|
const t10 = opened ? contentHeight + headerHeight : headerHeight || undefined;
|
|
89
114
|
let t11;
|
|
90
|
-
if ($[
|
|
115
|
+
if ($[12] !== t10) {
|
|
91
116
|
t11 = {
|
|
92
117
|
width: "100%",
|
|
93
118
|
height: t10,
|
|
94
119
|
transitionProperty: "height",
|
|
95
120
|
transitionDuration: 200
|
|
96
121
|
};
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
122
|
+
$[12] = t10;
|
|
123
|
+
$[13] = t11;
|
|
99
124
|
} else {
|
|
100
|
-
t11 = $[
|
|
125
|
+
t11 = $[13];
|
|
101
126
|
}
|
|
102
127
|
const animatedStyle = t11;
|
|
103
128
|
let t12;
|
|
104
|
-
if ($[
|
|
129
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
105
130
|
t12 = t13 => {
|
|
106
131
|
const {
|
|
107
132
|
nativeEvent: t14
|
|
@@ -114,14 +139,14 @@ const ThemedAccordion = t0 => {
|
|
|
114
139
|
} = t15;
|
|
115
140
|
updateContentHeight(height);
|
|
116
141
|
};
|
|
117
|
-
$[
|
|
142
|
+
$[14] = t12;
|
|
118
143
|
} else {
|
|
119
|
-
t12 = $[
|
|
144
|
+
t12 = $[14];
|
|
120
145
|
}
|
|
121
146
|
const onContentLayout = t12;
|
|
122
147
|
const t13 = wrapWidth ? wrapWidth : "100%";
|
|
123
148
|
let t14;
|
|
124
|
-
if ($[
|
|
149
|
+
if ($[15] !== text || $[16] !== textColor || $[17] !== textFontSize || $[18] !== textFontWeight || $[19] !== textProps || $[20] !== textStyle || $[21] !== textVariant) {
|
|
125
150
|
t14 = text ? /*#__PURE__*/_jsx(ThemedText, {
|
|
126
151
|
variant: textVariant,
|
|
127
152
|
fontSize: textFontSize,
|
|
@@ -131,20 +156,20 @@ const ThemedAccordion = t0 => {
|
|
|
131
156
|
...textProps,
|
|
132
157
|
children: text
|
|
133
158
|
}) : /*#__PURE__*/_jsx(ThemedView, {});
|
|
134
|
-
$[
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
$[
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
159
|
+
$[15] = text;
|
|
160
|
+
$[16] = textColor;
|
|
161
|
+
$[17] = textFontSize;
|
|
162
|
+
$[18] = textFontWeight;
|
|
163
|
+
$[19] = textProps;
|
|
164
|
+
$[20] = textStyle;
|
|
165
|
+
$[21] = textVariant;
|
|
166
|
+
$[22] = t14;
|
|
142
167
|
} else {
|
|
143
|
-
t14 = $[
|
|
168
|
+
t14 = $[22];
|
|
144
169
|
}
|
|
145
170
|
const t15 = opened ? iconNameOpened : iconNameClosed;
|
|
146
171
|
let t16;
|
|
147
|
-
if ($[
|
|
172
|
+
if ($[23] !== iconColor || $[24] !== iconProps || $[25] !== iconSize || $[26] !== iconStyle || $[27] !== t15) {
|
|
148
173
|
t16 = /*#__PURE__*/_jsx(ThemedIcon, {
|
|
149
174
|
name: t15,
|
|
150
175
|
size: iconSize,
|
|
@@ -153,17 +178,17 @@ const ThemedAccordion = t0 => {
|
|
|
153
178
|
style: iconStyle,
|
|
154
179
|
...iconProps
|
|
155
180
|
});
|
|
156
|
-
$[
|
|
157
|
-
$[
|
|
158
|
-
$[
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
$[
|
|
181
|
+
$[23] = iconColor;
|
|
182
|
+
$[24] = iconProps;
|
|
183
|
+
$[25] = iconSize;
|
|
184
|
+
$[26] = iconStyle;
|
|
185
|
+
$[27] = t15;
|
|
186
|
+
$[28] = t16;
|
|
162
187
|
} else {
|
|
163
|
-
t16 = $[
|
|
188
|
+
t16 = $[28];
|
|
164
189
|
}
|
|
165
190
|
let t17;
|
|
166
|
-
if ($[
|
|
191
|
+
if ($[29] !== headerRef || $[30] !== headerWrapProps || $[31] !== t13 || $[32] !== t14 || $[33] !== t16) {
|
|
167
192
|
t17 = /*#__PURE__*/_jsxs(ThemedPressable, {
|
|
168
193
|
ref: headerRef,
|
|
169
194
|
onPress: toggleAccordion,
|
|
@@ -177,17 +202,17 @@ const ThemedAccordion = t0 => {
|
|
|
177
202
|
...headerWrapProps,
|
|
178
203
|
children: [t14, t16]
|
|
179
204
|
});
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
185
|
-
$[
|
|
205
|
+
$[29] = headerRef;
|
|
206
|
+
$[30] = headerWrapProps;
|
|
207
|
+
$[31] = t13;
|
|
208
|
+
$[32] = t14;
|
|
209
|
+
$[33] = t16;
|
|
210
|
+
$[34] = t17;
|
|
186
211
|
} else {
|
|
187
|
-
t17 = $[
|
|
212
|
+
t17 = $[34];
|
|
188
213
|
}
|
|
189
214
|
let t18;
|
|
190
|
-
if ($[
|
|
215
|
+
if ($[35] !== borderColor || $[36] !== borderWidth || $[37] !== children || $[38] !== contentRef || $[39] !== contentWrapProps || $[40] !== headerHeight) {
|
|
191
216
|
t18 = /*#__PURE__*/_jsx(ThemedView, {
|
|
192
217
|
ref: contentRef,
|
|
193
218
|
onLayout: onContentLayout,
|
|
@@ -201,18 +226,18 @@ const ThemedAccordion = t0 => {
|
|
|
201
226
|
...contentWrapProps,
|
|
202
227
|
children: children
|
|
203
228
|
});
|
|
204
|
-
$[
|
|
205
|
-
$[
|
|
206
|
-
$[
|
|
207
|
-
$[
|
|
208
|
-
$[
|
|
209
|
-
$[
|
|
210
|
-
$[
|
|
229
|
+
$[35] = borderColor;
|
|
230
|
+
$[36] = borderWidth;
|
|
231
|
+
$[37] = children;
|
|
232
|
+
$[38] = contentRef;
|
|
233
|
+
$[39] = contentWrapProps;
|
|
234
|
+
$[40] = headerHeight;
|
|
235
|
+
$[41] = t18;
|
|
211
236
|
} else {
|
|
212
|
-
t18 = $[
|
|
237
|
+
t18 = $[41];
|
|
213
238
|
}
|
|
214
239
|
let t19;
|
|
215
|
-
if ($[
|
|
240
|
+
if ($[42] !== animatedStyle || $[43] !== borderColor || $[44] !== borderWidth || $[45] !== t17 || $[46] !== t18 || $[47] !== wrapProps || $[48] !== wrapRef) {
|
|
216
241
|
t19 = /*#__PURE__*/_jsxs(AnimatedThemedView, {
|
|
217
242
|
ref: wrapRef,
|
|
218
243
|
animatedStyle: animatedStyle,
|
|
@@ -222,16 +247,16 @@ const ThemedAccordion = t0 => {
|
|
|
222
247
|
...wrapProps,
|
|
223
248
|
children: [t17, t18]
|
|
224
249
|
});
|
|
225
|
-
$[
|
|
226
|
-
$[
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
230
|
-
$[
|
|
231
|
-
$[
|
|
232
|
-
$[
|
|
250
|
+
$[42] = animatedStyle;
|
|
251
|
+
$[43] = borderColor;
|
|
252
|
+
$[44] = borderWidth;
|
|
253
|
+
$[45] = t17;
|
|
254
|
+
$[46] = t18;
|
|
255
|
+
$[47] = wrapProps;
|
|
256
|
+
$[48] = wrapRef;
|
|
257
|
+
$[49] = t19;
|
|
233
258
|
} else {
|
|
234
|
-
t19 = $[
|
|
259
|
+
t19 = $[49];
|
|
235
260
|
}
|
|
236
261
|
return t19;
|
|
237
262
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["IconSize","useLayoutEffect","useReducer","useState","useViewRef","BorderSize","ThemedPressable","ThemedIcon","AnimatedThemedView","ThemedView","jsx","_jsx","jsxs","_jsxs","ThemedText","require","default","ThemedAccordion","t0","$","_c","borderWidth","t1","borderColor","t2","wrapProps","headerWrapProps","text","textVariant","textFontSize","textFontWeight","textColor","t3","textStyle","textProps","iconNameOpened","t4","iconNameClosed","t5","iconSize","t6","iconColor","t7","iconStyle","iconProps","contentWrapProps","children","undefined","
|
|
1
|
+
{"version":3,"names":["IconSize","lazy","useLayoutEffect","useReducer","useState","Platform","useWindowDimensionsWidth","useViewRef","BorderSize","ThemedPressable","ThemedIcon","AnimatedThemedView","ThemedView","jsx","_jsx","jsxs","_jsxs","ThemedText","OS","require","default","ThemedAccordion","t0","$","_c","borderWidth","t1","borderColor","t2","wrapProps","headerWrapProps","text","textVariant","textFontSize","textFontWeight","textColor","t3","textStyle","textProps","iconNameOpened","t4","iconNameClosed","t5","iconSize","t6","iconColor","t7","iconStyle","iconProps","contentWrapProps","children","undefined","S","windowWidth","wrapRef","headerRef","contentRef","wrapWidth","setWrapWidth","headerHeight","setHeaderHeight","contentHeight","updateContentHeight","_temp","opened","toggleAccordion","_temp2","t8","wrapBounds","current","getBoundingClientRect","width","headerBounds","height","contentBounds","t9","t10","t11","transitionProperty","transitionDuration","animatedStyle","t12","Symbol","for","t13","nativeEvent","t14","layout","t15","onContentLayout","t16","name","alignSelf","t17","position","flexDirection","alignItems","justifyContent","padding","backgroundColor","t18","t19","overflow","_prevContentHeight","newContentHeight","prevOpened"],"sourceRoot":"../../../../src","sources":["components/accordion/ThemedAccordion.tsx"],"mappings":";;;AAAA,SAASA,QAAQ,QAAQ,qCAAqC;AAC9D,SAASC,IAAI,EAAEC,eAAe,EAAEC,UAAU,EAAEC,QAAQ,QAAiB,OAAO;AAC5E,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,wBAAwB,QAAQ,sBAAmB;AAC5D,SAASC,UAAU,Q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AA,IAAAN,CAAA,SAAA+B,OAAA;IAxDf+C,GAAA,gBAAArF,KAAA,CAACL,kBAAkB;MACZ2C,GAAO,EAAPA,OAAO;MACG0B,aAAa,EAAbA,aAAa;MAClBsB,QAAQ,EAAR,QAAQ;MACC7E,iBAAW,EAAXA,WAAW;MACjBE,WAAW,EAAXA,WAAW;MAAA,GACpBE,SAAS;MAAAqB,QAAA,GAEb2C,GAkCkB,EAClBO,GAaa;IAAA,CACK,CAAC;IAAA7E,CAAA,OAAAyD,aAAA;IAAAzD,CAAA,OAAAI,WAAA;IAAAJ,CAAA,OAAAE,WAAA;IAAAF,CAAA,OAAAsE,GAAA;IAAAtE,CAAA,OAAA6E,GAAA;IAAA7E,CAAA,OAAAM,SAAA;IAAAN,CAAA,OAAA+B,OAAA;IAAA/B,CAAA,OAAA8E,GAAA;EAAA;IAAAA,GAAA,GAAA9E,CAAA;EAAA;EAAA,OAzDrB8E,GAyDqB;AAAA,CAExB;AAED,eAAehF,eAAe;AAtIoB,SAAA0C,MAAAwC,kBAAA,EAAAC,gBAAA;EAAA,OA4BJA,gBAAgB;AAAA;AA5BZ,SAAAtC,OAAAuC,UAAA;EAAA,OAgC9B,CAACA,UAAU;AAAA","ignoreList":[]}
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
/** @internal */
|
|
4
4
|
import { Pressable } from 'react-native';
|
|
5
5
|
import Animated from 'react-native-reanimated';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
* An animated version of React Native's Pressable component.
|
|
10
|
+
* Created using react-native-reanimated's createAnimatedComponent API.
|
|
11
|
+
*/
|
|
6
12
|
export const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
7
13
|
export default AnimatedPressable;
|
|
8
14
|
//# sourceMappingURL=AnimatedPressable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Pressable","Animated","AnimatedPressable","createAnimatedComponent"],"sourceRoot":"../../../../src","sources":["components/button/AnimatedPressable.tsx"],"mappings":";;AAAA;AACA,SAASA,SAAS,QAAQ,cAAc;AACxC,OAAOC,QAAQ,MAAM,yBAAyB;
|
|
1
|
+
{"version":3,"names":["Pressable","Animated","AnimatedPressable","createAnimatedComponent"],"sourceRoot":"../../../../src","sources":["components/button/AnimatedPressable.tsx"],"mappings":";;AAAA;AACA,SAASA,SAAS,QAAQ,cAAc;AACxC,OAAOC,QAAQ,MAAM,yBAAyB;;AAE9C;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAGD,QAAQ,CAACE,uBAAuB,CAACH,SAAS,CAAC;AAE5E,eAAeE,iBAAiB","ignoreList":[]}
|
|
@@ -3,6 +3,21 @@
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
4
|
import { useAnimatedThemedPressable } from "../../hooks/button.js";
|
|
5
5
|
import AnimatedPressable from "./AnimatedPressable.js";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A themed animated pressable component that applies theme-aware styling and animations.
|
|
9
|
+
* Combines theme system integration with animated press interactions for smooth visual feedback.
|
|
10
|
+
* @param props - Component props of type AnimatedThemedPressableProps
|
|
11
|
+
* @returns JSX element rendering an animated themed pressable
|
|
12
|
+
* @example
|
|
13
|
+
* <AnimatedThemedPressable
|
|
14
|
+
* onPress={() => console.log('pressed')}
|
|
15
|
+
* backgroundColor="themePri"
|
|
16
|
+
* animatedStyle={{ opacity: 0.8 }}
|
|
17
|
+
* >
|
|
18
|
+
* <ThemedText>Press Me</ThemedText>
|
|
19
|
+
* </AnimatedThemedPressable>
|
|
20
|
+
*/
|
|
6
21
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
22
|
const AnimatedThemedPressable = props => {
|
|
8
23
|
const $ = _c(2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useAnimatedThemedPressable","AnimatedPressable","jsx","_jsx","AnimatedThemedPressable","props","$","_c","animatedThemedPressableProps","t0"],"sourceRoot":"../../../../src","sources":["components/button/AnimatedThemedPressable.tsx"],"mappings":";;;AACA,SAASA,0BAA0B,QAAQ,uBAAoB;AAE/D,OAAOC,iBAAiB,MAAM,wBAAqB;
|
|
1
|
+
{"version":3,"names":["useAnimatedThemedPressable","AnimatedPressable","jsx","_jsx","AnimatedThemedPressable","props","$","_c","animatedThemedPressableProps","t0"],"sourceRoot":"../../../../src","sources":["components/button/AnimatedThemedPressable.tsx"],"mappings":";;;AACA,SAASA,0BAA0B,QAAQ,uBAAoB;AAE/D,OAAOC,iBAAiB,MAAM,wBAAqB;;AAEnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAbA,SAAAC,GAAA,IAAAC,IAAA;AAcA,MAAMC,uBAAyD,GAAGC,KAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAChE,MAAAC,4BAAA,GAAqCR,0BAA0B,CAACK,KAAK,CAAC;EAAC,IAAAI,EAAA;EAAA,IAAAH,CAAA,QAAAE,4BAAA;IAEhEC,EAAA,gBAAAN,IAAA,CAACF,iBAAiB;MAAA,GAAKO;IAA4B,CAAG,CAAC;IAAAF,CAAA,MAAAE,4BAAA;IAAAF,CAAA,MAAAG,EAAA;EAAA;IAAAA,EAAA,GAAAH,CAAA;EAAA;EAAA,OAAvDG,EAAuD;AAAA,CAC/D;AAED,eAAeL,uBAAuB","ignoreList":[]}
|
|
@@ -4,6 +4,21 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
4
4
|
import { ButtonScaleRatio } from "../../utils/button/const.js";
|
|
5
5
|
import ThemedText from "../text/ThemedText.js";
|
|
6
6
|
import ThemedPressable from "./ThemedPressable.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A themed button component with text label and optional children.
|
|
10
|
+
* Provides a standard button layout with centered text and customizable appearance.
|
|
11
|
+
* Automatically handles text styling, background colors, and scale animations on press.
|
|
12
|
+
* @param props - Component props of type ThemedButtonProps
|
|
13
|
+
* @returns JSX element rendering a themed button with text
|
|
14
|
+
* @example
|
|
15
|
+
* <ThemedButton
|
|
16
|
+
* text="Submit"
|
|
17
|
+
* textColor="textButton"
|
|
18
|
+
* backgroundColor="themePri"
|
|
19
|
+
* onPress={() => console.log('submitted')}
|
|
20
|
+
* />
|
|
21
|
+
*/
|
|
7
22
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
23
|
const ThemedButton = t0 => {
|
|
9
24
|
const $ = _c(23);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ButtonScaleRatio","ThemedText","ThemedPressable","jsx","_jsx","jsxs","_jsxs","ThemedButton","t0","$","_c","children","props","t1","text","textFontSize","textFontWeight","textProps","textStyle","textVariant","textColor","undefined","t2","t3","numberOfLines","t4","scaleRatio","Rectangle","flexDirection","alignItems","justifyContent","paddingVertical","paddingHorizontal","backgroundColor"],"sourceRoot":"../../../../src","sources":["components/button/ThemedButton.tsx"],"mappings":";;;AAEA,SAASA,gBAAgB,QAAQ,6BAA0B;AAC3D,OAAOC,UAAU,MAAM,uBAAoB;AAC3C,OAAOC,eAAe,MAAM,sBAAmB;
|
|
1
|
+
{"version":3,"names":["ButtonScaleRatio","ThemedText","ThemedPressable","jsx","_jsx","jsxs","_jsxs","ThemedButton","t0","$","_c","children","props","t1","text","textFontSize","textFontWeight","textProps","textStyle","textVariant","textColor","undefined","t2","t3","numberOfLines","t4","scaleRatio","Rectangle","flexDirection","alignItems","justifyContent","paddingVertical","paddingHorizontal","backgroundColor"],"sourceRoot":"../../../../src","sources":["components/button/ThemedButton.tsx"],"mappings":";;;AAEA,SAASA,gBAAgB,QAAQ,6BAA0B;AAC3D,OAAOC,UAAU,MAAM,uBAAoB;AAC3C,OAAOC,eAAe,MAAM,sBAAmB;;AAE/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAbA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,K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AAA,CAErB;AAED,eAAelB,YAAY","ignoreList":[]}
|
|
@@ -4,6 +4,21 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
4
4
|
import { ButtonScaleRatio } from "../../utils/button/const.js";
|
|
5
5
|
import ThemedIcon from "../icon/ThemedIcon.js";
|
|
6
6
|
import ThemedPressable from "./ThemedPressable.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A themed button component that displays only an icon.
|
|
10
|
+
* Provides a compact, icon-only button with square scaling animation and centered icon layout.
|
|
11
|
+
* Ideal for toolbar buttons, navigation icons, and action buttons where space is limited.
|
|
12
|
+
* @param props - Component props of type ThemedIconButtonProps
|
|
13
|
+
* @returns JSX element rendering a themed icon button
|
|
14
|
+
* @example
|
|
15
|
+
* <ThemedIconButton
|
|
16
|
+
* iconName="close"
|
|
17
|
+
* iconSize={IconSize.M}
|
|
18
|
+
* iconColor="themePri"
|
|
19
|
+
* onPress={() => console.log('closed')}
|
|
20
|
+
* />
|
|
21
|
+
*/
|
|
7
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
23
|
const ThemedIconButton = t0 => {
|
|
9
24
|
const $ = _c(16);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ButtonScaleRatio","ThemedIcon","ThemedPressable","jsx","_jsx","ThemedIconButton","t0","$","_c","iconColor","iconName","iconProps","iconSize","iconStyle","props","t1","t2","scaleRatio","Square","alignItems","padding","children"],"sourceRoot":"../../../../src","sources":["components/button/ThemedIconButton.tsx"],"mappings":";;;AAEA,SAASA,gBAAgB,QAAQ,6BAA0B;AAC3D,OAAOC,UAAU,MAAM,uBAAoB;AAC3C,OAAOC,eAAe,MAAM,sBAAmB;
|
|
1
|
+
{"version":3,"names":["ButtonScaleRatio","ThemedIcon","ThemedPressable","jsx","_jsx","ThemedIconButton","t0","$","_c","iconColor","iconName","iconProps","iconSize","iconStyle","props","t1","t2","scaleRatio","Square","alignItems","padding","children"],"sourceRoot":"../../../../src","sources":["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;IAAS,CACd,CAAC;IAAAJ,CAAA,MAAAE,SAAA;IAAAF,CAAA,MAAAG,QAAA;IAAAH,CAAA,MAAAI,SAAA;IAAAJ,CAAA,OAAAK,QAAA;IAAAL,CAAA,OAAAM,SAAA;IAAAN,CAAA,OAAAQ,EAAA;EAAA;IAAAA,EAAA,GAAAR,CAAA;EAAA;EAAA,IAAAS,EAAA;EAAA,IAAAT,CAAA,SAAAO,KAAA,IAAAP,CAAA,SAAAQ,EAAA;IAZJC,EAAA,gBAAAZ,IAAA,CAACF,eAAe;MACFe,UAAuB,EAAvBjB,gBAAgB,CAAAkB,MAAO;MACvBC,UAAQ,EAAR,QAAQ;MACXC,OAAG,EAAH,GAAG;MAAA,GACRN,KAAK;MAAAO,QAAA,EAETN;IAME,CACa,CAAC;IAAAR,CAAA,OAAAO,KAAA;IAAAP,CAAA,OAAAQ,EAAA;IAAAR,CAAA,OAAAS,EAAA;EAAA;IAAAA,EAAA,GAAAT,CAAA;EAAA;EAAA,OAblBS,EAakB;AAAA,CAErB;AAED,eAAeX,gBAAgB","ignoreList":[]}
|
|
@@ -4,6 +4,22 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
4
4
|
import { ButtonScaleRatio } from "../../utils/button/const.js";
|
|
5
5
|
import ThemedIconText from "../text/ThemedIconText.js";
|
|
6
6
|
import ThemedPressable from "./ThemedPressable.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A themed button component that displays both an icon and text label.
|
|
10
|
+
* Combines icon and text in a flexible layout with customizable ordering via the flip prop.
|
|
11
|
+
* Perfect for primary action buttons that need both visual and textual context.
|
|
12
|
+
* @param props - Component props of type ThemedIconTextButtonProps
|
|
13
|
+
* @returns JSX element rendering a themed button with icon and text
|
|
14
|
+
* @example
|
|
15
|
+
* <ThemedIconTextButton
|
|
16
|
+
* iconName="plus"
|
|
17
|
+
* iconSize={IconSize.S}
|
|
18
|
+
* text="Add Item"
|
|
19
|
+
* textColor="themePri"
|
|
20
|
+
* onPress={() => console.log('add')}
|
|
21
|
+
* />
|
|
22
|
+
*/
|
|
7
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
24
|
const ThemedIconTextButton = t0 => {
|
|
9
25
|
const $ = _c(37);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ButtonScaleRatio","ThemedIconText","ThemedPressable","jsx","_jsx","jsxs","_jsxs","ThemedIconTextButton","t0","$","_c","children","flip","iconColor","iconName","iconProps","iconSize","iconStyle","iconTextProps","props","t1","text","textFontSize","textFontWeight","textProps","textStyle","textVariant","textColor","undefined","t2","t3","t4","scaleRatio","Rectangle","flexDirection","alignItems","justifyContent","paddingVertical","paddingHorizontal"],"sourceRoot":"../../../../src","sources":["components/button/ThemedIconTextButton.tsx"],"mappings":";;;AAEA,SAASA,gBAAgB,QAAQ,6BAA0B;AAC3D,OAAOC,cAAc,MAAM,2BAAwB;AACnD,OAAOC,eAAe,MAAM,sBAAmB;
|
|
1
|
+
{"version":3,"names":["ButtonScaleRatio","ThemedIconText","ThemedPressable","jsx","_jsx","jsxs","_jsxs","ThemedIconTextButton","t0","$","_c","children","flip","iconColor","iconName","iconProps","iconSize","iconStyle","iconTextProps","props","t1","text","textFontSize","textFontWeight","textProps","textStyle","textVariant","textColor","undefined","t2","t3","t4","scaleRatio","Rectangle","flexDirection","alignItems","justifyContent","paddingVertical","paddingHorizontal"],"sourceRoot":"../../../../src","sources":["components/button/ThemedIconTextButton.tsx"],"mappings":";;;AAEA,SAASA,gBAAgB,QAAQ,6BAA0B;AAC3D,OAAOC,cAAc,MAAM,2BAAwB;AACnD,OAAOC,eAAe,MAAM,sBAAmB;;AAE/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAdA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAeA,MAAMC,oBAAmD,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,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A,OAAAG,IAAA;IAAAH,CAAA,OAAAI,SAAA;IAAAJ,CAAA,OAAAK,QAAA;IAAAL,CAAA,OAAAM,SAAA;IAAAN,CAAA,OAAAO,QAAA;IAAAP,CAAA,OAAAQ,SAAA;IAAAR,CAAA,OAAAS,aAAA;IAAAT,CAAA,OAAAY,IAAA;IAAAZ,CAAA,OAAAkB,SAAA;IAAAlB,CAAA,OAAAa,YAAA;IAAAb,CAAA,OAAAc,cAAA;IAAAd,CAAA,OAAAe,SAAA;IAAAf,CAAA,OAAAgB,SAAA;IAAAhB,CAAA,OAAAiB,WAAA;IAAAjB,CAAA,OAAAqB,EAAA;EAAA;IAAAA,EAAA,GAAArB,CAAA;EAAA;EAAA,IAAAsB,EAAA;EAAA,IAAAtB,CAAA,SAAAE,QAAA,IAAAF,CAAA,SAAAU,KAAA,IAAAV,CAAA,SAAAoB,EAAA,IAAApB,CAAA,SAAAqB,EAAA;IAxBJC,EAAA,gBAAAzB,KAAA,CAACJ,eAAe;MACF8B,UAA0B,EAA1BhC,gBAAgB,CAAAiC,SAAU;MACvBC,aAAK,EAAL,KAAK;MACRC,UAAQ,EAAR,QAAQ;MACJC,cAAqC,EAArCP,EAAqC;MACpCQ,eAAG,EAAH,GAAG;MACDC,iBAAG,EAAH,GAAG;MAAA,GAClBnB,KAAK;MAAAR,QAAA,GAETmB,EAeE,EACDnB,QAAQ;IAAA,CACM,CAAC;IAAAF,CAAA,OAAAE,QAAA;IAAAF,CAAA,OAAAU,KAAA;IAAAV,CAAA,OAAAoB,EAAA;IAAApB,CAAA,OAAAqB,EAAA;IAAArB,CAAA,OAAAsB,EAAA;EAAA;IAAAA,EAAA,GAAAtB,CAAA;EAAA;EAAA,OA1BlBsB,EA0BkB;AAAA,CAErB;AAED,eAAexB,oBAAoB","ignoreList":[]}
|
|
@@ -4,6 +4,21 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
4
4
|
import { Pressable } from 'react-native';
|
|
5
5
|
import { useThemedPressable } from "../../hooks/button.js";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
/**
|
|
8
|
+
* A themed pressable component that applies theme-aware styling to React Native's Pressable.
|
|
9
|
+
* Serves as the foundation for all button components, providing consistent theming and press behavior.
|
|
10
|
+
* Automatically applies theme colors, spacing, and press feedback through the theme system.
|
|
11
|
+
* @param props - Component props of type ThemedPressableProps
|
|
12
|
+
* @returns JSX element rendering a themed pressable
|
|
13
|
+
* @example
|
|
14
|
+
* <ThemedPressable
|
|
15
|
+
* onPress={() => console.log('pressed')}
|
|
16
|
+
* padding="m"
|
|
17
|
+
* backgroundColor="themePri"
|
|
18
|
+
* >
|
|
19
|
+
* <ThemedText>Custom Button</ThemedText>
|
|
20
|
+
* </ThemedPressable>
|
|
21
|
+
*/
|
|
7
22
|
const ThemedPressable = props => {
|
|
8
23
|
const $ = _c(2);
|
|
9
24
|
const themedPressableProps = useThemedPressable(props);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Pressable","useThemedPressable","jsx","_jsx","ThemedPressable","props","$","_c","themedPressableProps","t0"],"sourceRoot":"../../../../src","sources":["components/button/ThemedPressable.tsx"],"mappings":";;;AACA,SAASA,SAAS,QAAQ,cAAc;AACxC,SAASC,kBAAkB,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGxD,MAAMC,eAAyC,GAAGC,KAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAChD,MAAAC,oBAAA,GAA6BP,kBAAkB,CAACI,KAAK,CAAC;EAAC,IAAAI,EAAA;EAAA,IAAAH,CAAA,QAAAE,oBAAA;IAEhDC,EAAA,gBAAAN,IAAA,CAACH,SAAS;MAAA,GAAKQ;IAAoB,CAAG,CAAC;IAAAF,CAAA,MAAAE,oBAAA;IAAAF,CAAA,MAAAG,EAAA;EAAA;IAAAA,EAAA,GAAAH,CAAA;EAAA;EAAA,OAAvCG,EAAuC;AAAA,CAC/C;AAED,eAAeL,eAAe","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["Pressable","useThemedPressable","jsx","_jsx","ThemedPressable","props","$","_c","themedPressableProps","t0"],"sourceRoot":"../../../../src","sources":["components/button/ThemedPressable.tsx"],"mappings":";;;AACA,SAASA,SAAS,QAAQ,cAAc;AACxC,SAASC,kBAAkB,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,eAAyC,GAAGC,KAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAChD,MAAAC,oBAAA,GAA6BP,kBAAkB,CAACI,KAAK,CAAC;EAAC,IAAAI,EAAA;EAAA,IAAAH,CAAA,QAAAE,oBAAA;IAEhDC,EAAA,gBAAAN,IAAA,CAACH,SAAS;MAAA,GAAKQ;IAAoB,CAAG,CAAC;IAAAF,CAAA,MAAAE,oBAAA;IAAAF,CAAA,MAAAG,EAAA;EAAA;IAAAA,EAAA,GAAAH,CAAA;EAAA;EAAA,OAAvCG,EAAuC;AAAA,CAC/C;AAED,eAAeL,eAAe","ignoreList":[]}
|
|
@@ -4,6 +4,20 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
4
4
|
import Icon, { IconSize } from '@jamadd/react-native-template-icons';
|
|
5
5
|
import { useRestyle } from '@shopify/restyle';
|
|
6
6
|
import { themedIconColorRestyleFuncs, themedIconRestyleFuncs } from "../../utils/theme/restyle.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A themed icon component that renders icons with theme-aware colors and styling.
|
|
10
|
+
* Integrates with the @jamadd/react-native-template-icons package and applies theme colors
|
|
11
|
+
* through the restyle system. Supports all standard icon props plus themed styling properties.
|
|
12
|
+
* @param props - Component props of type ThemedIconProps
|
|
13
|
+
* @returns JSX element rendering a themed icon
|
|
14
|
+
* @example
|
|
15
|
+
* <ThemedIcon
|
|
16
|
+
* name="heart"
|
|
17
|
+
* size={IconSize.M}
|
|
18
|
+
* color="themePri"
|
|
19
|
+
* />
|
|
20
|
+
*/
|
|
7
21
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
22
|
const ThemedIcon = t0 => {
|
|
9
23
|
const $ = _c(12);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Icon","IconSize","useRestyle","themedIconColorRestyleFuncs","themedIconRestyleFuncs","jsx","_jsx","ThemedIcon","t0","$","_c","name","props","t1","t2","size","color","undefined","M","restyle","t3","colorRestyle","t4","style","t5"],"sourceRoot":"../../../../src","sources":["components/icon/ThemedIcon.tsx"],"mappings":";;;AAAA,OAAOA,IAAI,IAAIC,QAAQ,QAAQ,qCAAqC;AACpE,SAASC,UAAU,QAAQ,kBAAkB;AAG7C,SACEC,2BAA2B,EAC3BC,sBAAsB,QACjB,8BAA2B;
|
|
1
|
+
{"version":3,"names":["Icon","IconSize","useRestyle","themedIconColorRestyleFuncs","themedIconRestyleFuncs","jsx","_jsx","ThemedIcon","t0","$","_c","name","props","t1","t2","size","color","undefined","M","restyle","t3","colorRestyle","t4","style","t5"],"sourceRoot":"../../../../src","sources":["components/icon/ThemedIcon.tsx"],"mappings":";;;AAAA,OAAOA,IAAI,IAAIC,QAAQ,QAAQ,qCAAqC;AACpE,SAASC,UAAU,QAAQ,kBAAkB;AAG7C,SACEC,2BAA2B,EAC3BC,sBAAsB,QACjB,8BAA2B;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAZA,SAAAC,GAAA,IAAAC,IAAA;AAaA,MAAMC,UAA+B,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,IAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAL,CAAA,QAAAD,EAAA;IAAC;MAAAG,IAAA;MAAAI,IAAA,EAAAF,EAAA;MAAAG,KAAA,EAAAF,EAAA;MAAA,GAAAF;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b,CAAA,OAAAe,EAAA;EAAA;IAAAA,EAAA,GAAAf,CAAA;EAAA;EAAA,OALFe,EAKE;AAAA,CAEL;AAED,eAAejB,UAAU","ignoreList":[]}
|
|
@@ -4,6 +4,21 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
4
4
|
import { FlashList } from '@shopify/flash-list';
|
|
5
5
|
import { useInsetsStyle } from "../../hooks/style.js";
|
|
6
6
|
import { composeStyles } from "../../utils/style/func.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A high-performance list component built on Shopify's FlashList.
|
|
10
|
+
* Provides optimized rendering for large lists with support for safe area insets and
|
|
11
|
+
* customizable content container styling. Uses a generic type parameter for flexible item types.
|
|
12
|
+
* @param props - Component props of type ListProps<T>
|
|
13
|
+
* @returns JSX element rendering a performant FlashList
|
|
14
|
+
* @example
|
|
15
|
+
* <List
|
|
16
|
+
* data={items}
|
|
17
|
+
* Item={ListItemComponent}
|
|
18
|
+
* insetBottom={true}
|
|
19
|
+
* estimatedItemSize={50}
|
|
20
|
+
* />
|
|
21
|
+
*/
|
|
7
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
23
|
function List(t0) {
|
|
9
24
|
const $ = _c(34);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FlashList","useInsetsStyle","composeStyles","jsx","_jsx","List","t0","$","_c","Item","contentContainerStyle","insetLeft","insetPaddingLeft","insetPaddingRight","insetPaddingTop","insetRight","insetTop","insets","insetsPadding","props","t1","t2","insetBottom","insetPaddingBottom","undefined","t3","insetsStyle","t4","listItemProps","renderItem","t5","listContentContainerStyle","t6","overScrollMode","__DEV__"],"sourceRoot":"../../../../src","sources":["components/list/List.tsx"],"mappings":";;;AAAA,SAASA,SAAS,QAA6B,qBAAqB;AAEpE,SAASC,cAAc,QAAQ,sBAAmB;AAElD,SAASC,aAAa,QAAQ,2BAAwB;
|
|
1
|
+
{"version":3,"names":["FlashList","useInsetsStyle","composeStyles","jsx","_jsx","List","t0","$","_c","Item","contentContainerStyle","insetLeft","insetPaddingLeft","insetPaddingRight","insetPaddingTop","insetRight","insetTop","insets","insetsPadding","props","t1","t2","insetBottom","insetPaddingBottom","undefined","t3","insetsStyle","t4","listItemProps","renderItem","t5","listContentContainerStyle","t6","overScrollMode","__DEV__"],"sourceRoot":"../../../../src","sources":["components/list/List.tsx"],"mappings":";;;AAAA,SAASA,SAAS,QAA6B,qBAAqB;AAEpE,SAASC,cAAc,QAAQ,sBAAmB;AAElD,SAASC,aAAa,QAAQ,2BAAwB;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAbA,SAAAC,GAAA,IAAAC,IAAA;AAcA,SAAAC,KAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,IAAA;EAAA,IAAAC,qBAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,gBAAA;EAAA,IAAAC,iBAAA;EAAA,IAAAC,eAAA;EAAA,IAAAC,UAAA;EAAA,IAAAC,QAAA;EAAA,IAAAC,MAAA;EAAA,IAAAC,aAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAd,CAAA,QAAAD,EAAA;IAAiB;MAAAG,IAAA;MAAAQ,MAAA;MAAAD,QAAA;MAAAM,WAAA,EAAAF,EAAA;MAAAT,SAAA;MAAAI,UAAA;MAAAG,aAAA;MAAAJ,eAAA;MAAAS,kBAAA,EAAAF,EAAA;MAAAT,gBAAA;MAAAC,iBAAA;MAAAH,qBAAA;MAAA,GAAAS;IAAA,IAAAb,EAcF;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAE,IAAA;IAAAF,CAAA,MAAAG,qBAAA;IAAAH,CAAA,MAAAI,SAAA;IAAAJ,CAAA,MAAAK,gBAAA;IAAAL,CAAA,MAAAM,iBAAA;IAAAN,CAAA,MAAAO,eAAA;IAAAP,CAAA,MAAAQ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AAwB,yBAAA;IAAAxB,CAAA,OAAAY,KAAA;IAAAZ,CAAA,OAAAsB,UAAA;IAAAtB,CAAA,OAAAyB,EAAA;EAAA;IAAAA,EAAA,GAAAzB,CAAA;EAAA;EAAA,OAPFyB,EAOE;AAAA;AAIN,eAAe3B,IAAI","ignoreList":[]}
|
|
@@ -4,6 +4,19 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
4
4
|
import { useRestyle } from '@shopify/restyle';
|
|
5
5
|
import { ActivityIndicator } from 'react-native';
|
|
6
6
|
import { themedLoadingColorRestyleFuncs, themedLoadingRestyleFuncs } from "../../utils/theme/restyle.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A themed loading indicator component that displays a spinning activity indicator.
|
|
10
|
+
* Applies theme-aware colors through the restyle system while wrapping React Native's
|
|
11
|
+
* ActivityIndicator. Supports both small and large sizes with customizable colors.
|
|
12
|
+
* @param props - Component props of type ThemedLoadingProps
|
|
13
|
+
* @returns JSX element rendering a themed activity indicator
|
|
14
|
+
* @example
|
|
15
|
+
* <ThemedLoading
|
|
16
|
+
* size="large"
|
|
17
|
+
* color="themePri"
|
|
18
|
+
* />
|
|
19
|
+
*/
|
|
7
20
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
21
|
const ThemedLoading = t0 => {
|
|
9
22
|
const $ = _c(10);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useRestyle","ActivityIndicator","themedLoadingColorRestyleFuncs","themedLoadingRestyleFuncs","jsx","_jsx","ThemedLoading","t0","$","_c","props","t1","t2","size","color","undefined","restyle","t3","colorRestyle","t4","style","t5"],"sourceRoot":"../../../../src","sources":["components/loading/ThemedLoading.tsx"],"mappings":";;;AAAA,SAASA,UAAU,QAAQ,kBAAkB;AAE7C,SAASC,iBAAiB,QAAQ,cAAc;AAEhD,SACEC,8BAA8B,EAC9BC,yBAAyB,QACpB,8BAA2B;
|
|
1
|
+
{"version":3,"names":["useRestyle","ActivityIndicator","themedLoadingColorRestyleFuncs","themedLoadingRestyleFuncs","jsx","_jsx","ThemedLoading","t0","$","_c","props","t1","t2","size","color","undefined","restyle","t3","colorRestyle","t4","style","t5"],"sourceRoot":"../../../../src","sources":["components/loading/ThemedLoading.tsx"],"mappings":";;;AAAA,SAASA,UAAU,QAAQ,kBAAkB;AAE7C,SAASC,iBAAiB,QAAQ,cAAc;AAEhD,SACEC,8BAA8B,EAC9BC,yBAAyB,QACpB,8BAA2B;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAXA,SAAAC,GAAA,IAAAC,IAAA;AAYA,MAAMC,aAAqC,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAJ,CAAA,QAAAD,EAAA;IAAC;MAAAM,IAAA,EAAAF,EAAA;MAAAG,KAAA,EAAAF,EAAA;MAAA,GAAAF;IAAA,IAAAH,EAI9C;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAE,KAAA;IAAAF,CAAA,MAAAG,EAAA;IAAAH,CAAA,MAAAI,EAAA;EAAA;IAAAF,KAAA,GAAAF,CAAA;IAAAG,EAAA,GAAAH,CAAA;IAAAI,EAAA,GAAAJ,CAAA;EAAA;EAHC,MAAAK,IAAA,GAAAF,EAAc,KAAdI,SAAc,GAAd,OAAc,GAAdJ,EAAc;EACd,MAAAG,KAAA,GAAAF,EAAkB,KAAlBG,SAAkB,GAAlB,UAAkB,GAAlBH,EAAkB;EAGlB,MAAAI,OAAA,GAAgBhB,UAAU,CAACG,yBAAyB,EAAEO,KAAK,CAAC;EAAC,IAAAO,EAAA;EAAA,IAAAT,CAAA,QAAAM,KAAA;IACGG,EAAA;MAAAH;IAEhE,CAAC;IAAAN,CAAA,MAAAM,KAAA;IAAAN,CAAA,MAAAS,EAAA;EAAA;IAAAA,EAAA,GAAAT,CAAA;EAAA;EAFD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