@jamadd/react-native-template-ui 0.8.7 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/lib/module/components/accordion/ThemedAccordion.js +270 -0
- package/lib/module/components/accordion/ThemedAccordion.js.map +1 -0
- 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 +162 -213
- package/lib/module/components/slider/Slider.js.map +1 -1
- package/lib/module/components/slider/ThemedSlider.js +24 -2
- 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 +4 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/types/accordion.js +4 -0
- package/lib/module/types/accordion.js.map +1 -0
- 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 +20 -0
- package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts.map +1 -0
- package/lib/typescript/src/components/button/AnimatedPressable.d.ts +0 -1
- 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 +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts +0 -3
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +0 -3
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts +0 -2
- 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 +0 -3
- package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts +0 -3
- package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts +0 -3
- package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts +0 -8
- 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 +0 -2
- 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 +0 -2021
- 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 +0 -1
- package/lib/typescript/src/components/view/AnimatedView.d.ts.map +1 -1
- package/lib/typescript/src/components/view/Box.d.ts +0 -2071
- 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/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/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/index.d.ts +2 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types/accordion.d.ts +42 -0
- package/lib/typescript/src/types/accordion.d.ts.map +1 -0
- 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 +84 -0
- 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 +222 -0
- 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 +67 -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/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/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 +1 -1977
- package/lib/typescript/src/utils/theme/restyle.d.ts.map +1 -1
- package/package.json +4 -4
- 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/ThemedSlider.web.js +0 -206
- package/lib/module/components/slider/ThemedSlider.web.js.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/ThemedSlider.web.d.ts +0 -5
- package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts.map +0 -1
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
4
|
import { useMappingHelper } from '@shopify/flash-list';
|
|
5
|
-
import { useLayoutEffect, useMemo, useState } from 'react';
|
|
5
|
+
import { lazy, useLayoutEffect, useMemo, useState } from 'react';
|
|
6
|
+
import { Platform } from 'react-native';
|
|
6
7
|
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
7
8
|
import { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
|
|
8
9
|
import { scheduleOnRN } from 'react-native-worklets';
|
|
@@ -11,55 +12,71 @@ import { useViewRef } from "../../hooks/view.js";
|
|
|
11
12
|
import { sliderStepIndicatorDefaultWidth, sliderThumbDefaultSize, SliderTrackSize } from "../../utils/slider/const.js";
|
|
12
13
|
import AnimatedThemedView from "../view/AnimatedThemedView.js";
|
|
13
14
|
import ThemedView from "../view/ThemedView.js";
|
|
14
|
-
import ThemedSliderStepIndicator from "./ThemedSliderStepIndicator.js";
|
|
15
15
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
let ThemedSliderStepIndicator;
|
|
17
|
+
if (Platform.OS === 'web') {
|
|
18
|
+
ThemedSliderStepIndicator = /*#__PURE__*/lazy(() => import('./ThemedSliderStepIndicator'));
|
|
19
|
+
} else {
|
|
20
|
+
ThemedSliderStepIndicator = require('./ThemedSliderStepIndicator').default;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A slider component for selecting values from a range using touch or drag gestures.
|
|
25
|
+
* Supports both numeric ranges (with steps) and string array selections.
|
|
26
|
+
* Features smooth animations, step indicators, and customizable track/thumb appearance.
|
|
27
|
+
* @param props - Component props of type SliderProps
|
|
28
|
+
* @returns JSX element rendering an interactive slider
|
|
29
|
+
* @example
|
|
30
|
+
* <Slider
|
|
31
|
+
* range={[0, 100]}
|
|
32
|
+
* steps={5}
|
|
33
|
+
* onValueChange={(value) => console.log(value)}
|
|
34
|
+
* trackActiveColor="themePri"
|
|
35
|
+
* />
|
|
36
|
+
* @example
|
|
37
|
+
* <Slider
|
|
38
|
+
* range={['Small', 'Medium', 'Large']}
|
|
39
|
+
* stepIndicator={true}
|
|
40
|
+
* onValueChange={(value) => console.log(value)}
|
|
41
|
+
* />
|
|
42
|
+
*/
|
|
16
43
|
const _worklet_1107268610089_init_data = {
|
|
17
44
|
code: "function SliderTsx1(){const{xSharedVal}=this.__closure;return{transform:[{translateX:xSharedVal.get()}]};}",
|
|
18
45
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx",
|
|
19
|
-
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx1\",\"xSharedVal\",\"__closure\",\"transform\",\"translateX\",\"get\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"
|
|
46
|
+
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx1\",\"xSharedVal\",\"__closure\",\"transform\",\"translateX\",\"get\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"AAsGI,SAAAA,WAAA,QAAAC,UAAA,OAAAC,SAAA,OAAO,CAAAC,SAAA,CAAa,CAAC,CAAAC,UAAA,CAAcH,UAAU,CAAAI,GAAI,CAAC,CAAE,CAAC,CAAE,CAAC\",\"ignoreList\":[]}"
|
|
20
47
|
};
|
|
21
48
|
const _worklet_9813808913419_init_data = {
|
|
22
49
|
code: "function SliderTsx2(){const{xSharedVal,thumbSizeHalf}=this.__closure;return{transform:[{translateX:xSharedVal.get()-thumbSizeHalf}]};}",
|
|
23
50
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx",
|
|
24
|
-
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx2\",\"xSharedVal\",\"thumbSizeHalf\",\"__closure\",\"transform\",\"translateX\",\"get\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"
|
|
51
|
+
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx2\",\"xSharedVal\",\"thumbSizeHalf\",\"__closure\",\"transform\",\"translateX\",\"get\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"AA0GI,SAAAA,WAAA,QAAAC,UAAA,CAAAC,aAAA,OAAAC,SAAA,OAAO,CAAAC,SAAA,CAAa,CAAC,CAAAC,UAAA,CAAcJ,UAAU,CAAAK,GAAI,CAAC,CAAC,CAAGJ,aAAc,CAAC,CAAE,CAAC\",\"ignoreList\":[]}"
|
|
25
52
|
};
|
|
26
53
|
const _worklet_5842193172883_init_data = {
|
|
27
54
|
code: "function SliderTsx3(x_0,t13){const{trackWidth,xSharedVal,withTiming,scheduleOnRN,updateSelectedVal}=this.__closure;var _trackWidth;const animated=t13===undefined?false:t13;const tempX=Math.min(0,Math.max(x_0,-((_trackWidth=trackWidth)!==null&&_trackWidth!==void 0?_trackWidth:0)));xSharedVal.set(animated?withTiming(tempX):tempX);scheduleOnRN(updateSelectedVal,Math.abs(tempX));}",
|
|
28
55
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx",
|
|
29
|
-
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx3\",\"x_0\",\"t13\",\"trackWidth\",\"xSharedVal\",\"withTiming\",\"scheduleOnRN\",\"updateSelectedVal\",\"__closure\",\"_trackWidth\",\"animated\",\"undefined\",\"tempX\",\"Math\",\"min\",\"max\",\"set\",\"abs\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"
|
|
56
|
+
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx3\",\"x_0\",\"t13\",\"trackWidth\",\"xSharedVal\",\"withTiming\",\"scheduleOnRN\",\"updateSelectedVal\",\"__closure\",\"_trackWidth\",\"animated\",\"undefined\",\"tempX\",\"Math\",\"min\",\"max\",\"set\",\"abs\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"AAmI6B,SAAAA,WAAAC,GAAA,CAAAC,GAAA,QAAAC,UAAA,CAAAC,UAAA,CAAAC,UAAA,CAAAC,YAAA,CAAAC,iBAAA,OAAAC,SAAA,KAAAC,WAAA,CAAY,MAAAC,QAAA,CAAAR,GAAgB,GAAhBS,SAAgB,CAAhB,KAAgB,CAAhBT,GAAgB,CAEnD,MAAAU,KAAA,CAAcC,IAAI,CAAAC,GAAI,CAAC,CAAC,CAAED,IAAI,CAAAE,GAAI,CAACd,GAAC,CAAE,GAAAQ,WAAA,CAAEN,UAAe,UAAAM,WAAA,UAAAA,WAAA,CAAf,CAAe,CAAC,CAAC,CAAC,CAC1DL,UAAU,CAAAY,GAAI,CAACN,QAAQ,CAAGL,UAAU,CAACO,KAAa,CAAC,CAApCA,KAAoC,CAAC,CACpDN,YAAY,CAACC,iBAAiB,CAAEM,IAAI,CAAAI,GAAI,CAACL,KAAK,CAAC,CAAC\",\"ignoreList\":[]}"
|
|
30
57
|
};
|
|
31
58
|
const _worklet_15465333809693_init_data = {
|
|
32
59
|
code: "function SliderTsx4(t16){const{sliderWidth,stepWidth,thumbSize,thumbSizeHalf,updateXSharedVal,snapToStepAnimated}=this.__closure;const{x:x_2}=t16;if(sliderWidth&&stepWidth){const nearestStep=Math.round(-(sliderWidth-(x_2+thumbSize+thumbSizeHalf))/stepWidth);updateXSharedVal(nearestStep*stepWidth,snapToStepAnimated);}}",
|
|
33
60
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx",
|
|
34
|
-
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx4\",\"t16\",\"sliderWidth\",\"stepWidth\",\"thumbSize\",\"thumbSizeHalf\",\"updateXSharedVal\",\"snapToStepAnimated\",\"__closure\",\"x\",\"x_2\",\"nearestStep\",\"Math\",\"round\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"
|
|
61
|
+
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx4\",\"t16\",\"sliderWidth\",\"stepWidth\",\"thumbSize\",\"thumbSizeHalf\",\"updateXSharedVal\",\"snapToStepAnimated\",\"__closure\",\"x\",\"x_2\",\"nearestStep\",\"Math\",\"round\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"AAoJe,SAAAA,WAAAC,GAAA,QAAAC,WAAA,CAAAC,SAAA,CAAAC,SAAA,CAAAC,aAAA,CAAAC,gBAAA,CAAAC,kBAAA,OAAAC,SAAA,CAAC,MAAAC,CAAA,CAAAC,GAAA,EAAAT,GAAK,CACX,GAAIC,WAAwB,EAAxBC,SAAwB,EAC1B,MAAAQ,WAAA,CAAoBC,IAAI,CAAAC,KAAM,CAC5B,EAAEX,WAAW,EAAIQ,GAAC,CAAGN,SAAS,CAAGC,aAAa,CAAC,CAAC,CAAGF,SACrD,CAAC,CACDG,gBAAgB,CAACK,WAAW,CAAGR,SAAS,CAAEI,kBAAkB,CAAC,EAC9D\",\"ignoreList\":[]}"
|
|
35
62
|
};
|
|
36
|
-
const
|
|
37
|
-
code: "function SliderTsx5(t15){const{sliderWidth,updateXSharedVal,thumbSize
|
|
63
|
+
const _worklet_9051416247764_init_data = {
|
|
64
|
+
code: "function SliderTsx5(t15){const{sliderWidth,updateXSharedVal,thumbSize}=this.__closure;const{x:x_1}=t15;if(sliderWidth){updateXSharedVal(-(sliderWidth-(x_1+thumbSize*2)));}}",
|
|
38
65
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx",
|
|
39
|
-
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx5\",\"t15\",\"sliderWidth\",\"updateXSharedVal\",\"thumbSize\",\"
|
|
66
|
+
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx5\",\"t15\",\"sliderWidth\",\"updateXSharedVal\",\"thumbSize\",\"__closure\",\"x\",\"x_1\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"AA+IiB,SAAAA,WAAAC,GAAA,QAAAC,WAAA,CAAAC,gBAAA,CAAAC,SAAA,OAAAC,SAAA,CAAC,MAAAC,CAAA,CAAAC,GAAA,EAAAN,GAAK,CACb,GAAIC,WAAW,EACbC,gBAAgB,CAAC,EAAED,WAAW,EAAIK,GAAC,CAAGH,SAAS,CAAG,CAAC,CAAC,CAAC,CAAC,EACvD\",\"ignoreList\":[]}"
|
|
40
67
|
};
|
|
41
68
|
const _worklet_3836629690946_init_data = {
|
|
42
69
|
code: "function SliderTsx6(){const{stepWidth,xSharedVal,updateXSharedVal,snapToStepAnimated}=this.__closure;if(stepWidth){const nearestStep_0=Math.round(xSharedVal.get()/stepWidth);updateXSharedVal(nearestStep_0*stepWidth,snapToStepAnimated);}}",
|
|
43
70
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx",
|
|
44
|
-
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx6\",\"stepWidth\",\"xSharedVal\",\"updateXSharedVal\",\"snapToStepAnimated\",\"__closure\",\"nearestStep_0\",\"Math\",\"round\",\"get\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"
|
|
45
|
-
};
|
|
46
|
-
const _worklet_9150691278550_init_data = {
|
|
47
|
-
code: "function SliderTsx7(t19){const{updateXSharedVal,xSharedVal}=this.__closure;const{changeX:changeX}=t19;updateXSharedVal(xSharedVal.get()+changeX);}",
|
|
48
|
-
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx",
|
|
49
|
-
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx7\",\"t19\",\"updateXSharedVal\",\"xSharedVal\",\"__closure\",\"changeX\",\"get\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"AA+IkB,SAAAA,WAAAC,GAAA,QAAAC,gBAAA,CAAAC,UAAA,OAAAC,SAAA,CAAC,MAAAC,OAAA,CAAAA,OAAA,EAAAJ,GAAW,CACpBC,gBAAgB,CAACC,UAAU,CAAAG,GAAI,CAAC,CAAC,CAAGD,OAAO,CAAC\",\"ignoreList\":[]}"
|
|
50
|
-
};
|
|
51
|
-
const _worklet_3439681045957_init_data = {
|
|
52
|
-
code: "function SliderTsx8(t18,state){const{touchStart,gestureActivateDuration}=this.__closure;const timeToCheck=Date.now()-touchStart.get();if(timeToCheck>=gestureActivateDuration){state.activate();}else{state.fail();}}",
|
|
53
|
-
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx",
|
|
54
|
-
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx8\",\"t18\",\"state\",\"touchStart\",\"gestureActivateDuration\",\"__closure\",\"timeToCheck\",\"Date\",\"now\",\"get\",\"activate\",\"fail\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"AAuIuB,SAAAA,WAAAC,GAAA,CAAAC,KAAA,QAAAC,UAAA,CAAAC,uBAAA,OAAAC,SAAA,CACb,MAAAC,WAAA,CAAoBC,IAAI,CAAAC,GAAI,CAAC,CAAC,CAAGL,UAAU,CAAAM,GAAI,CAAC,CAAC,CACjD,GAAIH,WAAW,EAAIF,uBAAuB,EACxCF,KAAK,CAAAQ,QAAS,CAAC,CAAC,OAEhBR,KAAK,CAAAS,IAAK,CAAC,CAAC,EACb\",\"ignoreList\":[]}"
|
|
71
|
+
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx6\",\"stepWidth\",\"xSharedVal\",\"updateXSharedVal\",\"snapToStepAnimated\",\"__closure\",\"nearestStep_0\",\"Math\",\"round\",\"get\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"AAiKe,SAAAA,WAAA,QAAAC,SAAA,CAAAC,UAAA,CAAAC,gBAAA,CAAAC,kBAAA,OAAAC,SAAA,CACL,GAAIJ,SAAS,EACX,MAAAK,aAAA,CAAoBC,IAAI,CAAAC,KAAM,CAACN,UAAU,CAAAO,GAAI,CAAC,CAAC,CAAGR,SAAS,CAAC,CAC5DE,gBAAgB,CAACG,aAAW,CAAGL,SAAS,CAAEG,kBAAkB,CAAC,EAC9D\",\"ignoreList\":[]}"
|
|
55
72
|
};
|
|
56
|
-
const
|
|
57
|
-
code: "function
|
|
73
|
+
const _worklet_9171995940566_init_data = {
|
|
74
|
+
code: "function SliderTsx7(t17){const{updateXSharedVal,xSharedVal}=this.__closure;const{changeX:changeX}=t17;updateXSharedVal(xSharedVal.get()+changeX);}",
|
|
58
75
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx",
|
|
59
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
76
|
+
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx7\",\"t17\",\"updateXSharedVal\",\"xSharedVal\",\"__closure\",\"changeX\",\"get\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"AA8JkB,SAAAA,WAAAC,GAAA,QAAAC,gBAAA,CAAAC,UAAA,OAAAC,SAAA,CAAC,MAAAC,OAAA,CAAAA,OAAA,EAAAJ,GAAW,CACpBC,gBAAgB,CAACC,UAAU,CAAAG,GAAI,CAAC,CAAC,CAAGD,OAAO,CAAC\",\"ignoreList\":[]}"
|
|
60
77
|
};
|
|
61
78
|
const Slider = t0 => {
|
|
62
|
-
const $ = _c(
|
|
79
|
+
const $ = _c(98);
|
|
63
80
|
const {
|
|
64
81
|
range,
|
|
65
82
|
steps: t1,
|
|
@@ -87,7 +104,7 @@ const Slider = t0 => {
|
|
|
87
104
|
const trackInactiveColor = t5 === undefined ? "separator" : t5;
|
|
88
105
|
const thumbSize = t6 === undefined ? sliderThumbDefaultSize : t6;
|
|
89
106
|
const thumbColor = t7 === undefined ? "themePri" : t7;
|
|
90
|
-
const gestureActivateDuration = t8 === undefined ?
|
|
107
|
+
const gestureActivateDuration = t8 === undefined ? 50 : t8;
|
|
91
108
|
const windowWidth = useWindowDimensionsWidth();
|
|
92
109
|
const isNumRange = typeof range[0] === "number";
|
|
93
110
|
let t9;
|
|
@@ -179,7 +196,6 @@ const Slider = t0 => {
|
|
|
179
196
|
xSharedVal,
|
|
180
197
|
thumbSizeHalf
|
|
181
198
|
}), [thumbSizeHalf]);
|
|
182
|
-
const touchStart = useSharedValue(0);
|
|
183
199
|
let t11;
|
|
184
200
|
if ($[5] !== isNumRange || $[6] !== onValueChange || $[7] !== processedRange || $[8] !== setSelectedVal || $[9] !== stepWidth || $[10] !== steps || $[11] !== stepsFractionDigits || $[12] !== totalSteps) {
|
|
185
201
|
t11 = x => {
|
|
@@ -259,53 +275,49 @@ const Slider = t0 => {
|
|
|
259
275
|
}
|
|
260
276
|
const updateXSharedVal = t12;
|
|
261
277
|
let t13;
|
|
262
|
-
if ($[18] !== gestureActivateDuration || $[19] !== sliderWidth || $[20] !== snapToStepAnimated || $[21] !== stepWidth || $[22] !== thumbSize || $[23] !== thumbSizeHalf || $[24] !==
|
|
278
|
+
if ($[18] !== gestureActivateDuration || $[19] !== sliderWidth || $[20] !== snapToStepAnimated || $[21] !== stepWidth || $[22] !== thumbSize || $[23] !== thumbSizeHalf || $[24] !== updateXSharedVal || $[25] !== windowWidth || $[26] !== xSharedVal) {
|
|
263
279
|
let t14;
|
|
264
|
-
if ($[
|
|
280
|
+
if ($[28] !== sliderWidth || $[29] !== thumbSize || $[30] !== updateXSharedVal) {
|
|
265
281
|
t14 = function SliderTsx5Factory({
|
|
266
|
-
|
|
282
|
+
_worklet_9051416247764_init_data,
|
|
267
283
|
sliderWidth,
|
|
268
284
|
updateXSharedVal,
|
|
269
|
-
thumbSize
|
|
270
|
-
thumbSizeHalf
|
|
285
|
+
thumbSize
|
|
271
286
|
}) {
|
|
272
|
-
const _e = [new global.Error(), -
|
|
287
|
+
const _e = [new global.Error(), -4, -27];
|
|
273
288
|
const SliderTsx5 = function (t15) {
|
|
274
289
|
const {
|
|
275
290
|
x: x_1
|
|
276
291
|
} = t15;
|
|
277
292
|
if (sliderWidth) {
|
|
278
|
-
updateXSharedVal(-(sliderWidth - (x_1 + thumbSize
|
|
293
|
+
updateXSharedVal(-(sliderWidth - (x_1 + thumbSize * 2)));
|
|
279
294
|
}
|
|
280
295
|
};
|
|
281
296
|
SliderTsx5.__closure = {
|
|
282
297
|
sliderWidth,
|
|
283
298
|
updateXSharedVal,
|
|
284
|
-
thumbSize
|
|
285
|
-
thumbSizeHalf
|
|
299
|
+
thumbSize
|
|
286
300
|
};
|
|
287
|
-
SliderTsx5.__workletHash =
|
|
301
|
+
SliderTsx5.__workletHash = 9051416247764;
|
|
288
302
|
SliderTsx5.__pluginVersion = "0.8.3";
|
|
289
|
-
SliderTsx5.__initData =
|
|
303
|
+
SliderTsx5.__initData = _worklet_9051416247764_init_data;
|
|
290
304
|
SliderTsx5.__stackDetails = _e;
|
|
291
305
|
return SliderTsx5;
|
|
292
306
|
}({
|
|
293
|
-
|
|
307
|
+
_worklet_9051416247764_init_data,
|
|
294
308
|
sliderWidth,
|
|
295
309
|
updateXSharedVal,
|
|
296
|
-
thumbSize
|
|
297
|
-
thumbSizeHalf
|
|
310
|
+
thumbSize
|
|
298
311
|
});
|
|
299
|
-
$[
|
|
300
|
-
$[
|
|
301
|
-
$[
|
|
302
|
-
$[
|
|
303
|
-
$[33] = t14;
|
|
312
|
+
$[28] = sliderWidth;
|
|
313
|
+
$[29] = thumbSize;
|
|
314
|
+
$[30] = updateXSharedVal;
|
|
315
|
+
$[31] = t14;
|
|
304
316
|
} else {
|
|
305
|
-
t14 = $[
|
|
317
|
+
t14 = $[31];
|
|
306
318
|
}
|
|
307
319
|
let t15;
|
|
308
|
-
if ($[
|
|
320
|
+
if ($[32] !== sliderWidth || $[33] !== snapToStepAnimated || $[34] !== stepWidth || $[35] !== thumbSize || $[36] !== thumbSizeHalf || $[37] !== updateXSharedVal) {
|
|
309
321
|
t15 = function SliderTsx4Factory({
|
|
310
322
|
_worklet_15465333809693_init_data,
|
|
311
323
|
sliderWidth,
|
|
@@ -347,116 +359,53 @@ const Slider = t0 => {
|
|
|
347
359
|
updateXSharedVal,
|
|
348
360
|
snapToStepAnimated
|
|
349
361
|
});
|
|
350
|
-
$[
|
|
351
|
-
$[
|
|
352
|
-
$[
|
|
353
|
-
$[
|
|
354
|
-
$[
|
|
355
|
-
$[
|
|
356
|
-
$[
|
|
362
|
+
$[32] = sliderWidth;
|
|
363
|
+
$[33] = snapToStepAnimated;
|
|
364
|
+
$[34] = stepWidth;
|
|
365
|
+
$[35] = thumbSize;
|
|
366
|
+
$[36] = thumbSizeHalf;
|
|
367
|
+
$[37] = updateXSharedVal;
|
|
368
|
+
$[38] = t15;
|
|
357
369
|
} else {
|
|
358
|
-
t15 = $[
|
|
370
|
+
t15 = $[38];
|
|
359
371
|
}
|
|
360
372
|
let t16;
|
|
361
|
-
if ($[
|
|
362
|
-
t16 = function
|
|
363
|
-
|
|
364
|
-
touchStart
|
|
365
|
-
}) {
|
|
366
|
-
const _e = [new global.Error(), -2, -27];
|
|
367
|
-
const SliderTsx9 = function () {
|
|
368
|
-
touchStart.set(Date.now());
|
|
369
|
-
};
|
|
370
|
-
SliderTsx9.__closure = {
|
|
371
|
-
touchStart
|
|
372
|
-
};
|
|
373
|
-
SliderTsx9.__workletHash = 7305647671238;
|
|
374
|
-
SliderTsx9.__pluginVersion = "0.8.3";
|
|
375
|
-
SliderTsx9.__initData = _worklet_7305647671238_init_data;
|
|
376
|
-
SliderTsx9.__stackDetails = _e;
|
|
377
|
-
return SliderTsx9;
|
|
378
|
-
}({
|
|
379
|
-
_worklet_7305647671238_init_data,
|
|
380
|
-
touchStart
|
|
381
|
-
});
|
|
382
|
-
$[41] = touchStart;
|
|
383
|
-
$[42] = t16;
|
|
384
|
-
} else {
|
|
385
|
-
t16 = $[42];
|
|
386
|
-
}
|
|
387
|
-
let t17;
|
|
388
|
-
if ($[43] !== gestureActivateDuration || $[44] !== touchStart) {
|
|
389
|
-
t17 = function SliderTsx8Factory({
|
|
390
|
-
_worklet_3439681045957_init_data,
|
|
391
|
-
touchStart,
|
|
392
|
-
gestureActivateDuration
|
|
393
|
-
}) {
|
|
394
|
-
const _e = [new global.Error(), -3, -27];
|
|
395
|
-
const SliderTsx8 = function (t18, state) {
|
|
396
|
-
const timeToCheck = Date.now() - touchStart.get();
|
|
397
|
-
if (timeToCheck >= gestureActivateDuration) {
|
|
398
|
-
state.activate();
|
|
399
|
-
} else {
|
|
400
|
-
state.fail();
|
|
401
|
-
}
|
|
402
|
-
};
|
|
403
|
-
SliderTsx8.__closure = {
|
|
404
|
-
touchStart,
|
|
405
|
-
gestureActivateDuration
|
|
406
|
-
};
|
|
407
|
-
SliderTsx8.__workletHash = 3439681045957;
|
|
408
|
-
SliderTsx8.__pluginVersion = "0.8.3";
|
|
409
|
-
SliderTsx8.__initData = _worklet_3439681045957_init_data;
|
|
410
|
-
SliderTsx8.__stackDetails = _e;
|
|
411
|
-
return SliderTsx8;
|
|
412
|
-
}({
|
|
413
|
-
_worklet_3439681045957_init_data,
|
|
414
|
-
touchStart,
|
|
415
|
-
gestureActivateDuration
|
|
416
|
-
});
|
|
417
|
-
$[43] = gestureActivateDuration;
|
|
418
|
-
$[44] = touchStart;
|
|
419
|
-
$[45] = t17;
|
|
420
|
-
} else {
|
|
421
|
-
t17 = $[45];
|
|
422
|
-
}
|
|
423
|
-
let t18;
|
|
424
|
-
if ($[46] !== updateXSharedVal || $[47] !== xSharedVal) {
|
|
425
|
-
t18 = function SliderTsx7Factory({
|
|
426
|
-
_worklet_9150691278550_init_data,
|
|
373
|
+
if ($[39] !== updateXSharedVal || $[40] !== xSharedVal) {
|
|
374
|
+
t16 = function SliderTsx7Factory({
|
|
375
|
+
_worklet_9171995940566_init_data,
|
|
427
376
|
updateXSharedVal,
|
|
428
377
|
xSharedVal
|
|
429
378
|
}) {
|
|
430
379
|
const _e = [new global.Error(), -3, -27];
|
|
431
|
-
const SliderTsx7 = function (
|
|
380
|
+
const SliderTsx7 = function (t17) {
|
|
432
381
|
const {
|
|
433
382
|
changeX
|
|
434
|
-
} =
|
|
383
|
+
} = t17;
|
|
435
384
|
updateXSharedVal(xSharedVal.get() + changeX);
|
|
436
385
|
};
|
|
437
386
|
SliderTsx7.__closure = {
|
|
438
387
|
updateXSharedVal,
|
|
439
388
|
xSharedVal
|
|
440
389
|
};
|
|
441
|
-
SliderTsx7.__workletHash =
|
|
390
|
+
SliderTsx7.__workletHash = 9171995940566;
|
|
442
391
|
SliderTsx7.__pluginVersion = "0.8.3";
|
|
443
|
-
SliderTsx7.__initData =
|
|
392
|
+
SliderTsx7.__initData = _worklet_9171995940566_init_data;
|
|
444
393
|
SliderTsx7.__stackDetails = _e;
|
|
445
394
|
return SliderTsx7;
|
|
446
395
|
}({
|
|
447
|
-
|
|
396
|
+
_worklet_9171995940566_init_data,
|
|
448
397
|
updateXSharedVal,
|
|
449
398
|
xSharedVal
|
|
450
399
|
});
|
|
451
|
-
$[
|
|
452
|
-
$[
|
|
453
|
-
$[
|
|
400
|
+
$[39] = updateXSharedVal;
|
|
401
|
+
$[40] = xSharedVal;
|
|
402
|
+
$[41] = t16;
|
|
454
403
|
} else {
|
|
455
|
-
|
|
404
|
+
t16 = $[41];
|
|
456
405
|
}
|
|
457
|
-
let
|
|
458
|
-
if ($[
|
|
459
|
-
|
|
406
|
+
let t17;
|
|
407
|
+
if ($[42] !== snapToStepAnimated || $[43] !== stepWidth || $[44] !== updateXSharedVal || $[45] !== xSharedVal) {
|
|
408
|
+
t17 = function SliderTsx6Factory({
|
|
460
409
|
_worklet_3836629690946_init_data,
|
|
461
410
|
stepWidth,
|
|
462
411
|
xSharedVal,
|
|
@@ -488,32 +437,31 @@ const Slider = t0 => {
|
|
|
488
437
|
updateXSharedVal,
|
|
489
438
|
snapToStepAnimated
|
|
490
439
|
});
|
|
491
|
-
$[
|
|
492
|
-
$[
|
|
493
|
-
$[
|
|
494
|
-
$[
|
|
495
|
-
$[
|
|
440
|
+
$[42] = snapToStepAnimated;
|
|
441
|
+
$[43] = stepWidth;
|
|
442
|
+
$[44] = updateXSharedVal;
|
|
443
|
+
$[45] = xSharedVal;
|
|
444
|
+
$[46] = t17;
|
|
496
445
|
} else {
|
|
497
|
-
|
|
446
|
+
t17 = $[46];
|
|
498
447
|
}
|
|
499
|
-
t13 = Gesture.Simultaneous(Gesture.LongPress().minDuration(gestureActivateDuration).maxDistance(windowWidth * 10).shouldCancelWhenOutside(false).onStart(t14).onEnd(t15), Gesture.Pan().
|
|
448
|
+
t13 = Gesture.Simultaneous(Gesture.LongPress().minDuration(gestureActivateDuration).maxDistance(windowWidth * 10).shouldCancelWhenOutside(false).onStart(t14).onEnd(t15), Gesture.Pan().activateAfterLongPress(gestureActivateDuration).onChange(t16).onEnd(t17));
|
|
500
449
|
$[18] = gestureActivateDuration;
|
|
501
450
|
$[19] = sliderWidth;
|
|
502
451
|
$[20] = snapToStepAnimated;
|
|
503
452
|
$[21] = stepWidth;
|
|
504
453
|
$[22] = thumbSize;
|
|
505
454
|
$[23] = thumbSizeHalf;
|
|
506
|
-
$[24] =
|
|
507
|
-
$[25] =
|
|
508
|
-
$[26] =
|
|
509
|
-
$[27] =
|
|
510
|
-
$[28] = t13;
|
|
455
|
+
$[24] = updateXSharedVal;
|
|
456
|
+
$[25] = windowWidth;
|
|
457
|
+
$[26] = xSharedVal;
|
|
458
|
+
$[27] = t13;
|
|
511
459
|
} else {
|
|
512
|
-
t13 = $[
|
|
460
|
+
t13 = $[27];
|
|
513
461
|
}
|
|
514
462
|
const gesture = t13;
|
|
515
463
|
let t14;
|
|
516
|
-
if ($[
|
|
464
|
+
if ($[47] !== isNumRange || $[48] !== processedRange || $[49] !== selectedValSharedVal || $[50] !== steps || $[51] !== thumbSize || $[52] !== thumbSizeHalf || $[53] !== totalSteps || $[54] !== trackViewRef || $[55] !== xSharedVal) {
|
|
517
465
|
t14 = () => {
|
|
518
466
|
trackViewRef.current?.measure((_x, _y, w) => {
|
|
519
467
|
const tempWidth = w - thumbSize;
|
|
@@ -534,49 +482,50 @@ const Slider = t0 => {
|
|
|
534
482
|
xSharedVal.set(-(totalSteps - index) * tempStepWidth);
|
|
535
483
|
});
|
|
536
484
|
};
|
|
537
|
-
$[
|
|
538
|
-
$[
|
|
539
|
-
$[
|
|
540
|
-
$[
|
|
541
|
-
$[
|
|
542
|
-
$[
|
|
543
|
-
$[
|
|
544
|
-
$[
|
|
545
|
-
$[
|
|
546
|
-
$[
|
|
485
|
+
$[47] = isNumRange;
|
|
486
|
+
$[48] = processedRange;
|
|
487
|
+
$[49] = selectedValSharedVal;
|
|
488
|
+
$[50] = steps;
|
|
489
|
+
$[51] = thumbSize;
|
|
490
|
+
$[52] = thumbSizeHalf;
|
|
491
|
+
$[53] = totalSteps;
|
|
492
|
+
$[54] = trackViewRef;
|
|
493
|
+
$[55] = xSharedVal;
|
|
494
|
+
$[56] = t14;
|
|
547
495
|
} else {
|
|
548
|
-
t14 = $[
|
|
496
|
+
t14 = $[56];
|
|
549
497
|
}
|
|
550
498
|
let t15;
|
|
551
|
-
if ($[
|
|
552
|
-
t15 = [thumbSize, isNumRange, processedRange, totalSteps];
|
|
553
|
-
$[
|
|
554
|
-
$[
|
|
555
|
-
$[
|
|
556
|
-
$[
|
|
557
|
-
$[
|
|
499
|
+
if ($[57] !== isNumRange || $[58] !== processedRange || $[59] !== thumbSize || $[60] !== totalSteps || $[61] !== windowWidth) {
|
|
500
|
+
t15 = [thumbSize, windowWidth, isNumRange, processedRange, totalSteps];
|
|
501
|
+
$[57] = isNumRange;
|
|
502
|
+
$[58] = processedRange;
|
|
503
|
+
$[59] = thumbSize;
|
|
504
|
+
$[60] = totalSteps;
|
|
505
|
+
$[61] = windowWidth;
|
|
506
|
+
$[62] = t15;
|
|
558
507
|
} else {
|
|
559
|
-
t15 = $[
|
|
508
|
+
t15 = $[62];
|
|
560
509
|
}
|
|
561
510
|
useLayoutEffect(t14, t15);
|
|
562
511
|
let t16;
|
|
563
|
-
if ($[
|
|
512
|
+
if ($[63] !== trackActiveColor || $[64] !== trackAnimatedStyle || $[65] !== trackInactiveProps || $[66] !== trackSize) {
|
|
564
513
|
t16 = /*#__PURE__*/_jsx(AnimatedThemedView, {
|
|
565
514
|
height: trackSize,
|
|
566
515
|
backgroundColor: trackActiveColor,
|
|
567
516
|
animatedStyle: trackAnimatedStyle,
|
|
568
517
|
...trackInactiveProps
|
|
569
518
|
});
|
|
570
|
-
$[
|
|
571
|
-
$[
|
|
572
|
-
$[
|
|
573
|
-
$[
|
|
574
|
-
$[
|
|
519
|
+
$[63] = trackActiveColor;
|
|
520
|
+
$[64] = trackAnimatedStyle;
|
|
521
|
+
$[65] = trackInactiveProps;
|
|
522
|
+
$[66] = trackSize;
|
|
523
|
+
$[67] = t16;
|
|
575
524
|
} else {
|
|
576
|
-
t16 = $[
|
|
525
|
+
t16 = $[67];
|
|
577
526
|
}
|
|
578
527
|
let t17;
|
|
579
|
-
if ($[
|
|
528
|
+
if ($[68] !== t16 || $[69] !== trackActiveProps || $[70] !== trackInactiveColor || $[71] !== trackSize || $[72] !== trackWidth) {
|
|
580
529
|
t17 = /*#__PURE__*/_jsx(ThemedView, {
|
|
581
530
|
position: "absolute",
|
|
582
531
|
width: trackWidth,
|
|
@@ -586,36 +535,36 @@ const Slider = t0 => {
|
|
|
586
535
|
...trackActiveProps,
|
|
587
536
|
children: t16
|
|
588
537
|
});
|
|
589
|
-
$[
|
|
590
|
-
$[
|
|
591
|
-
$[
|
|
592
|
-
$[
|
|
593
|
-
$[
|
|
594
|
-
$[
|
|
538
|
+
$[68] = t16;
|
|
539
|
+
$[69] = trackActiveProps;
|
|
540
|
+
$[70] = trackInactiveColor;
|
|
541
|
+
$[71] = trackSize;
|
|
542
|
+
$[72] = trackWidth;
|
|
543
|
+
$[73] = t17;
|
|
595
544
|
} else {
|
|
596
|
-
t17 = $[
|
|
545
|
+
t17 = $[73];
|
|
597
546
|
}
|
|
598
547
|
let t18;
|
|
599
|
-
if ($[
|
|
548
|
+
if ($[74] !== getMappingKey || $[75] !== processedRange || $[76] !== stepIndicator || $[77] !== stepIndicatorProps || $[78] !== stepWidth || $[79] !== thumbSize || $[80] !== thumbSizeHalf) {
|
|
600
549
|
t18 = !!stepIndicator && processedRange.map((value, index_0) => /*#__PURE__*/_jsx(ThemedSliderStepIndicator, {
|
|
601
550
|
left: index_0 * (stepWidth ?? 0) + thumbSizeHalf - sliderStepIndicatorDefaultWidth / 2,
|
|
602
551
|
height: thumbSize,
|
|
603
552
|
...stepIndicatorProps
|
|
604
553
|
}, getMappingKey(value, index_0)));
|
|
605
|
-
$[
|
|
606
|
-
$[
|
|
607
|
-
$[
|
|
608
|
-
$[
|
|
609
|
-
$[
|
|
610
|
-
$[
|
|
611
|
-
$[
|
|
612
|
-
$[
|
|
554
|
+
$[74] = getMappingKey;
|
|
555
|
+
$[75] = processedRange;
|
|
556
|
+
$[76] = stepIndicator;
|
|
557
|
+
$[77] = stepIndicatorProps;
|
|
558
|
+
$[78] = stepWidth;
|
|
559
|
+
$[79] = thumbSize;
|
|
560
|
+
$[80] = thumbSizeHalf;
|
|
561
|
+
$[81] = t18;
|
|
613
562
|
} else {
|
|
614
|
-
t18 = $[
|
|
563
|
+
t18 = $[81];
|
|
615
564
|
}
|
|
616
565
|
const t19 = -thumbSizeHalf;
|
|
617
566
|
let t20;
|
|
618
|
-
if ($[
|
|
567
|
+
if ($[82] !== t19 || $[83] !== thumbAnimatedStyle || $[84] !== thumbColor || $[85] !== thumbProps || $[86] !== thumbSize) {
|
|
619
568
|
t20 = /*#__PURE__*/_jsx(AnimatedThemedView, {
|
|
620
569
|
position: "absolute",
|
|
621
570
|
right: t19,
|
|
@@ -626,17 +575,17 @@ const Slider = t0 => {
|
|
|
626
575
|
animatedStyle: thumbAnimatedStyle,
|
|
627
576
|
...thumbProps
|
|
628
577
|
});
|
|
629
|
-
$[
|
|
630
|
-
$[
|
|
631
|
-
$[
|
|
632
|
-
$[
|
|
633
|
-
$[
|
|
634
|
-
$[
|
|
578
|
+
$[82] = t19;
|
|
579
|
+
$[83] = thumbAnimatedStyle;
|
|
580
|
+
$[84] = thumbColor;
|
|
581
|
+
$[85] = thumbProps;
|
|
582
|
+
$[86] = thumbSize;
|
|
583
|
+
$[87] = t20;
|
|
635
584
|
} else {
|
|
636
|
-
t20 = $[
|
|
585
|
+
t20 = $[87];
|
|
637
586
|
}
|
|
638
587
|
let t21;
|
|
639
|
-
if ($[
|
|
588
|
+
if ($[88] !== sliderWrapProps || $[89] !== t17 || $[90] !== t18 || $[91] !== t20 || $[92] !== thumbSize || $[93] !== trackViewRef) {
|
|
640
589
|
t21 = /*#__PURE__*/_jsxs(ThemedView, {
|
|
641
590
|
ref: trackViewRef,
|
|
642
591
|
alignItems: "center",
|
|
@@ -646,27 +595,27 @@ const Slider = t0 => {
|
|
|
646
595
|
...sliderWrapProps,
|
|
647
596
|
children: [t17, t18, t20]
|
|
648
597
|
});
|
|
649
|
-
$[
|
|
650
|
-
$[
|
|
651
|
-
$[
|
|
652
|
-
$[
|
|
653
|
-
$[
|
|
654
|
-
$[
|
|
655
|
-
$[
|
|
598
|
+
$[88] = sliderWrapProps;
|
|
599
|
+
$[89] = t17;
|
|
600
|
+
$[90] = t18;
|
|
601
|
+
$[91] = t20;
|
|
602
|
+
$[92] = thumbSize;
|
|
603
|
+
$[93] = trackViewRef;
|
|
604
|
+
$[94] = t21;
|
|
656
605
|
} else {
|
|
657
|
-
t21 = $[
|
|
606
|
+
t21 = $[94];
|
|
658
607
|
}
|
|
659
608
|
let t22;
|
|
660
|
-
if ($[
|
|
609
|
+
if ($[95] !== gesture || $[96] !== t21) {
|
|
661
610
|
t22 = /*#__PURE__*/_jsx(GestureDetector, {
|
|
662
611
|
gesture: gesture,
|
|
663
612
|
children: t21
|
|
664
613
|
});
|
|
665
|
-
$[
|
|
666
|
-
$[
|
|
667
|
-
$[
|
|
614
|
+
$[95] = gesture;
|
|
615
|
+
$[96] = t21;
|
|
616
|
+
$[97] = t22;
|
|
668
617
|
} else {
|
|
669
|
-
t22 = $[
|
|
618
|
+
t22 = $[97];
|
|
670
619
|
}
|
|
671
620
|
return t22;
|
|
672
621
|
};
|