@jamadd/react-native-template-ui 0.11.0 → 0.12.6
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 +53 -48
- package/lib/module/components/accordion/ThemedAccordion.js.map +1 -1
- package/lib/module/components/button/ThemedIconButton.js +39 -27
- package/lib/module/components/button/ThemedIconButton.js.map +1 -1
- package/lib/module/components/button/ThemedIconTextButton.js +85 -67
- package/lib/module/components/button/ThemedIconTextButton.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js +14 -14
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertWrap.js +7 -7
- package/lib/module/components/overlay/alert/AlertWrap.js.map +1 -1
- package/lib/module/components/overlay/toast/ThemedToast.js +14 -14
- package/lib/module/components/overlay/toast/ThemedToast.js.map +1 -1
- package/lib/module/components/slider/Slider.js +335 -317
- package/lib/module/components/slider/Slider.js.map +1 -1
- package/lib/module/components/text/ThemedIconText.js +70 -58
- package/lib/module/components/text/ThemedIconText.js.map +1 -1
- package/lib/module/hooks/overlay.js +90 -78
- package/lib/module/hooks/overlay.js.map +1 -1
- package/lib/module/hooks/switch.js +14 -14
- package/lib/module/hooks/switch.js.map +1 -1
- package/lib/module/utils/reanimated/func.js +14 -14
- package/lib/module/utils/reanimated/func.js.map +1 -1
- package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts +1 -1
- package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts.map +1 -1
- package/lib/typescript/src/components/button/AnimatedThemedPressable.d.ts +1 -1
- package/lib/typescript/src/components/button/AnimatedThemedPressable.d.ts.map +1 -1
- package/lib/typescript/src/components/button/ThemedButton.d.ts +1 -1
- package/lib/typescript/src/components/button/ThemedButton.d.ts.map +1 -1
- package/lib/typescript/src/components/button/ThemedIconButton.d.ts +1 -1
- package/lib/typescript/src/components/button/ThemedIconButton.d.ts.map +1 -1
- package/lib/typescript/src/components/button/ThemedIconTextButton.d.ts +1 -1
- package/lib/typescript/src/components/button/ThemedIconTextButton.d.ts.map +1 -1
- package/lib/typescript/src/components/button/ThemedPressable.d.ts +1 -1
- package/lib/typescript/src/components/button/ThemedPressable.d.ts.map +1 -1
- package/lib/typescript/src/components/icon/ThemedIcon.d.ts +1 -1
- package/lib/typescript/src/components/icon/ThemedIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/list/List.d.ts +2 -2
- package/lib/typescript/src/components/list/List.d.ts.map +1 -1
- package/lib/typescript/src/components/loading/ThemedLoading.d.ts +1 -1
- package/lib/typescript/src/components/loading/ThemedLoading.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.d.ts +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts +2 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +2 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/Alert.d.ts +1 -1
- package/lib/typescript/src/components/overlay/alert/Alert.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts +3 -3
- package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/contextMenu/ContextMenu.d.ts +1 -1
- package/lib/typescript/src/components/overlay/contextMenu/ContextMenu.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/contextMenu/ContextMenuOptionList.d.ts +1 -1
- package/lib/typescript/src/components/overlay/contextMenu/ContextMenuOptionList.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/contextMenu/ContextMenuOptionListItem.d.ts +2 -2
- package/lib/typescript/src/components/overlay/contextMenu/ContextMenuOptionListItem.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/modal/ThemedLoadingModal.d.ts +1 -1
- package/lib/typescript/src/components/overlay/modal/ThemedLoadingModal.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/modal/ThemedModal.d.ts +1 -1
- package/lib/typescript/src/components/overlay/modal/ThemedModal.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/toast/ThemedToast.d.ts +1 -1
- package/lib/typescript/src/components/overlay/toast/ThemedToast.d.ts.map +1 -1
- package/lib/typescript/src/components/provider/ReactNativeTemplateProviders.d.ts +1 -1
- package/lib/typescript/src/components/provider/ReactNativeTemplateProviders.d.ts.map +1 -1
- package/lib/typescript/src/components/separator/ThemedSeparator.d.ts +1 -1
- package/lib/typescript/src/components/separator/ThemedSeparator.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/Slider.d.ts +1 -1
- package/lib/typescript/src/components/slider/Slider.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/ThemedSlider.d.ts +1 -1
- package/lib/typescript/src/components/slider/ThemedSlider.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts +1 -1
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts.map +1 -1
- package/lib/typescript/src/components/switch/ThemedSwitch.d.ts +1 -1
- package/lib/typescript/src/components/switch/ThemedSwitch.d.ts.map +1 -1
- package/lib/typescript/src/components/text/Text.d.ts +992 -992
- package/lib/typescript/src/components/text/ThemedIconText.d.ts +1 -1
- package/lib/typescript/src/components/text/ThemedIconText.d.ts.map +1 -1
- package/lib/typescript/src/components/text/ThemedText.d.ts +1 -1
- package/lib/typescript/src/components/text/ThemedText.d.ts.map +1 -1
- package/lib/typescript/src/components/textInput/ThemedTextInput.d.ts +1 -1
- package/lib/typescript/src/components/textInput/ThemedTextInput.d.ts.map +1 -1
- package/lib/typescript/src/components/view/AnimatedThemedView.d.ts +1 -1
- package/lib/typescript/src/components/view/AnimatedThemedView.d.ts.map +1 -1
- package/lib/typescript/src/components/view/Box.d.ts +772 -772
- package/lib/typescript/src/components/view/ThemedScreenWrap.d.ts +1 -1
- package/lib/typescript/src/components/view/ThemedScreenWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/view/ThemedScreenWrap.web.d.ts +1 -1
- package/lib/typescript/src/components/view/ThemedScreenWrap.web.d.ts.map +1 -1
- package/lib/typescript/src/components/view/ThemedScrollView.d.ts +1 -1
- package/lib/typescript/src/components/view/ThemedScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/view/ThemedView.d.ts +1 -1
- package/lib/typescript/src/components/view/ThemedView.d.ts.map +1 -1
- package/lib/typescript/src/hooks/button.d.ts +1 -1
- package/lib/typescript/src/hooks/button.d.ts.map +1 -1
- package/lib/typescript/src/hooks/list.d.ts +1 -1
- package/lib/typescript/src/hooks/list.d.ts.map +1 -1
- package/lib/typescript/src/hooks/overlay.d.ts +5 -5
- package/lib/typescript/src/hooks/overlay.d.ts.map +1 -1
- package/lib/typescript/src/hooks/reanimated.d.ts +1 -1
- package/lib/typescript/src/hooks/reanimated.d.ts.map +1 -1
- package/lib/typescript/src/hooks/separator.d.ts +3 -3
- package/lib/typescript/src/hooks/separator.d.ts.map +1 -1
- package/lib/typescript/src/hooks/style.d.ts +3 -3
- package/lib/typescript/src/hooks/style.d.ts.map +1 -1
- package/lib/typescript/src/hooks/switch.d.ts +4 -4
- package/lib/typescript/src/hooks/switch.d.ts.map +1 -1
- package/lib/typescript/src/hooks/textInput.d.ts +6 -6
- package/lib/typescript/src/hooks/textInput.d.ts.map +1 -1
- package/lib/typescript/src/hooks/theme.d.ts +56 -56
- package/lib/typescript/src/hooks/theme.d.ts.map +1 -1
- package/lib/typescript/src/hooks/view.d.ts +2 -2
- package/lib/typescript/src/hooks/view.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +63 -63
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/test/utils/const.d.ts +1 -1
- package/lib/typescript/src/test/utils/const.d.ts.map +1 -1
- package/lib/typescript/src/test/utils/func.d.ts +55 -55
- package/lib/typescript/src/types/accordion.d.ts +6 -6
- package/lib/typescript/src/types/accordion.d.ts.map +1 -1
- package/lib/typescript/src/types/button.d.ts +6 -6
- package/lib/typescript/src/types/button.d.ts.map +1 -1
- package/lib/typescript/src/types/icon.d.ts +11 -2
- package/lib/typescript/src/types/icon.d.ts.map +1 -1
- package/lib/typescript/src/types/list.d.ts +4 -4
- package/lib/typescript/src/types/list.d.ts.map +1 -1
- package/lib/typescript/src/types/loading.d.ts +1 -1
- package/lib/typescript/src/types/loading.d.ts.map +1 -1
- package/lib/typescript/src/types/overlay.d.ts +10 -10
- package/lib/typescript/src/types/overlay.d.ts.map +1 -1
- package/lib/typescript/src/types/provider.d.ts +2 -2
- package/lib/typescript/src/types/provider.d.ts.map +1 -1
- package/lib/typescript/src/types/separator.d.ts +2 -2
- package/lib/typescript/src/types/separator.d.ts.map +1 -1
- package/lib/typescript/src/types/slider.d.ts +5 -5
- package/lib/typescript/src/types/slider.d.ts.map +1 -1
- package/lib/typescript/src/types/style.d.ts +1 -1
- package/lib/typescript/src/types/style.d.ts.map +1 -1
- package/lib/typescript/src/types/switch.d.ts +5 -5
- package/lib/typescript/src/types/switch.d.ts.map +1 -1
- package/lib/typescript/src/types/text.d.ts +3 -3
- package/lib/typescript/src/types/text.d.ts.map +1 -1
- package/lib/typescript/src/types/textInput.d.ts +3 -3
- package/lib/typescript/src/types/textInput.d.ts.map +1 -1
- package/lib/typescript/src/types/view.d.ts +3 -3
- package/lib/typescript/src/types/view.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/const.d.ts +4 -4
- package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/func.d.ts +3 -3
- package/lib/typescript/src/utils/overlay/func.d.ts.map +1 -1
- package/lib/typescript/src/utils/slider/const.d.ts +1 -1
- package/lib/typescript/src/utils/slider/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/style/func.d.ts +1 -1
- package/lib/typescript/src/utils/style/func.d.ts.map +1 -1
- package/lib/typescript/src/utils/textInput/const.d.ts +1 -1
- package/lib/typescript/src/utils/textInput/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/theme/restyle.d.ts +614 -614
- package/lib/typescript/src/utils/theme/restyle.d.ts.map +1 -1
- package/package.json +38 -46
|
@@ -4,7 +4,7 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
4
4
|
import { useMappingHelper } from '@shopify/flash-list';
|
|
5
5
|
import { lazy, useLayoutEffect, useMemo, useState } from 'react';
|
|
6
6
|
import { Platform } from 'react-native';
|
|
7
|
-
import {
|
|
7
|
+
import { GestureDetector, useLongPressGesture, usePanGesture, useSimultaneousGestures } from 'react-native-gesture-handler';
|
|
8
8
|
import { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
|
|
9
9
|
import { scheduleOnRN } from 'react-native-worklets';
|
|
10
10
|
import { useWindowDimensionsWidth } from "../../hooks/style.js";
|
|
@@ -40,43 +40,43 @@ if (Platform.OS === 'web') {
|
|
|
40
40
|
* onValueChange={(value) => console.log(value)}
|
|
41
41
|
* />
|
|
42
42
|
*/
|
|
43
|
-
const
|
|
44
|
-
code: "function SliderTsx1(){const{xSharedVal}=this.__closure;return{transform:[{translateX:xSharedVal.get()}]};}",
|
|
43
|
+
const _worklet_15537206595912_init_data = {
|
|
44
|
+
code: "(function SliderTsx1(){const{xSharedVal}=this.__closure;return{transform:[{translateX:xSharedVal.get()}]};})",
|
|
45
45
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx",
|
|
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\":\"
|
|
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\":\"AA4GI,SAAAA,WAAA,QAAAC,UAAA,OAAAC,SAAA,OAAO,CAAAC,SAAA,CAAa,CAAC,CAAAC,UAAA,CAAcH,UAAU,CAAAI,GAAI,CAAC,CAAE,CAAC,CAAE,CAAC\",\"ignoreList\":[]}"
|
|
47
47
|
};
|
|
48
|
-
const
|
|
49
|
-
code: "function SliderTsx2(){const{xSharedVal,thumbSizeHalf}=this.__closure;return{transform:[{translateX:xSharedVal.get()-thumbSizeHalf}]};}",
|
|
48
|
+
const _worklet_3163602556650_init_data = {
|
|
49
|
+
code: "(function SliderTsx2(){const{xSharedVal,thumbSizeHalf}=this.__closure;return{transform:[{translateX:xSharedVal.get()-thumbSizeHalf}]};})",
|
|
50
50
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx",
|
|
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\":\"
|
|
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\":\"AAgHI,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\":[]}"
|
|
52
52
|
};
|
|
53
|
-
const
|
|
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));}",
|
|
53
|
+
const _worklet_6731759360146_init_data = {
|
|
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));})",
|
|
55
55
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx",
|
|
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\":\"
|
|
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\":\"AAwI2B,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\":[]}"
|
|
57
57
|
};
|
|
58
|
-
const
|
|
59
|
-
code: "function SliderTsx4(
|
|
58
|
+
const _worklet_2968023834740_init_data = {
|
|
59
|
+
code: "(function SliderTsx4(t15){const{sliderWidth,updateXSharedVal,thumbSize}=this.__closure;const{x:x_1}=t15;if(sliderWidth){updateXSharedVal(-(sliderWidth-(x_1+thumbSize*2)));}})",
|
|
60
60
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx",
|
|
61
|
-
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx4\",\"
|
|
61
|
+
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx4\",\"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\":\"AAkJgB,SAAAA,WAAAC,GAAA,QAAAC,WAAA,CAAAC,gBAAA,CAAAC,SAAA,OAAAC,SAAA,CAAC,MAAAC,CAAA,CAAAC,GAAA,EAAAN,GAAK,CAChB,GAAIC,WAAW,EACbC,gBAAgB,CAAC,EAAED,WAAW,EAAIK,GAAC,CAAGH,SAAS,CAAG,CAAC,CAAC,CAAC,CAAC,EACvD\",\"ignoreList\":[]}"
|
|
62
62
|
};
|
|
63
|
-
const
|
|
64
|
-
code: "function SliderTsx5(
|
|
63
|
+
const _worklet_7042279114877_init_data = {
|
|
64
|
+
code: "(function SliderTsx5(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);}})",
|
|
65
65
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx",
|
|
66
|
-
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx5\",\"
|
|
66
|
+
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx5\",\"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\":\"AAuJkB,SAAAA,WAAAC,GAAA,QAAAC,WAAA,CAAAC,SAAA,CAAAC,SAAA,CAAAC,aAAA,CAAAC,gBAAA,CAAAC,kBAAA,OAAAC,SAAA,CAAC,MAAAC,CAAA,CAAAC,GAAA,EAAAT,GAAK,CAClB,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\":[]}"
|
|
67
67
|
};
|
|
68
|
-
const
|
|
69
|
-
code: "function SliderTsx6(){const{
|
|
68
|
+
const _worklet_7951712905590_init_data = {
|
|
69
|
+
code: "(function SliderTsx6(t18){const{updateXSharedVal,xSharedVal}=this.__closure;const{changeX:changeX}=t18;updateXSharedVal(xSharedVal.get()+changeX);})",
|
|
70
70
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx",
|
|
71
|
-
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx6\",\"
|
|
71
|
+
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx6\",\"t18\",\"updateXSharedVal\",\"xSharedVal\",\"__closure\",\"changeX\",\"get\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"AAkKc,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\":[]}"
|
|
72
72
|
};
|
|
73
|
-
const
|
|
74
|
-
code: "function SliderTsx7(
|
|
73
|
+
const _worklet_17273825555778_init_data = {
|
|
74
|
+
code: "(function SliderTsx7(){const{stepWidth,xSharedVal,updateXSharedVal,snapToStepAnimated}=this.__closure;if(stepWidth){const nearestStep_0=Math.round(xSharedVal.get()/stepWidth);updateXSharedVal(nearestStep_0*stepWidth,snapToStepAnimated);}})",
|
|
75
75
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx",
|
|
76
|
-
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx7\",\"
|
|
76
|
+
sourceMap: "{\"version\":3,\"names\":[\"SliderTsx7\",\"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\":\"AAqKkB,SAAAA,WAAA,QAAAC,SAAA,CAAAC,UAAA,CAAAC,gBAAA,CAAAC,kBAAA,OAAAC,SAAA,CACZ,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\":[]}"
|
|
77
77
|
};
|
|
78
78
|
const Slider = t0 => {
|
|
79
|
-
const $ = _c(
|
|
79
|
+
const $ = _c(101);
|
|
80
80
|
const {
|
|
81
81
|
range,
|
|
82
82
|
steps: t1,
|
|
@@ -150,7 +150,7 @@ const Slider = t0 => {
|
|
|
150
150
|
const [stepWidth, setStepWidth] = useState();
|
|
151
151
|
const xSharedVal = useSharedValue(-(trackWidth ?? 0));
|
|
152
152
|
const trackAnimatedStyle = useAnimatedStyle(function SliderTsx1Factory({
|
|
153
|
-
|
|
153
|
+
_worklet_15537206595912_init_data,
|
|
154
154
|
xSharedVal
|
|
155
155
|
}) {
|
|
156
156
|
const _e = [new global.Error(), -2, -27];
|
|
@@ -162,17 +162,17 @@ const Slider = t0 => {
|
|
|
162
162
|
SliderTsx1.__closure = {
|
|
163
163
|
xSharedVal
|
|
164
164
|
};
|
|
165
|
-
SliderTsx1.__workletHash =
|
|
166
|
-
SliderTsx1.__pluginVersion = "0.
|
|
167
|
-
SliderTsx1.__initData =
|
|
165
|
+
SliderTsx1.__workletHash = 15537206595912;
|
|
166
|
+
SliderTsx1.__pluginVersion = "0.11.3";
|
|
167
|
+
SliderTsx1.__initData = _worklet_15537206595912_init_data;
|
|
168
168
|
SliderTsx1.__stackDetails = _e;
|
|
169
169
|
return SliderTsx1;
|
|
170
170
|
}({
|
|
171
|
-
|
|
171
|
+
_worklet_15537206595912_init_data,
|
|
172
172
|
xSharedVal
|
|
173
173
|
}), [trackWidth]);
|
|
174
174
|
const thumbAnimatedStyle = useAnimatedStyle(function SliderTsx2Factory({
|
|
175
|
-
|
|
175
|
+
_worklet_3163602556650_init_data,
|
|
176
176
|
xSharedVal,
|
|
177
177
|
thumbSizeHalf
|
|
178
178
|
}) {
|
|
@@ -186,13 +186,13 @@ const Slider = t0 => {
|
|
|
186
186
|
xSharedVal,
|
|
187
187
|
thumbSizeHalf
|
|
188
188
|
};
|
|
189
|
-
SliderTsx2.__workletHash =
|
|
190
|
-
SliderTsx2.__pluginVersion = "0.
|
|
191
|
-
SliderTsx2.__initData =
|
|
189
|
+
SliderTsx2.__workletHash = 3163602556650;
|
|
190
|
+
SliderTsx2.__pluginVersion = "0.11.3";
|
|
191
|
+
SliderTsx2.__initData = _worklet_3163602556650_init_data;
|
|
192
192
|
SliderTsx2.__stackDetails = _e;
|
|
193
193
|
return SliderTsx2;
|
|
194
194
|
}({
|
|
195
|
-
|
|
195
|
+
_worklet_3163602556650_init_data,
|
|
196
196
|
xSharedVal,
|
|
197
197
|
thumbSizeHalf
|
|
198
198
|
}), [thumbSizeHalf]);
|
|
@@ -232,7 +232,7 @@ const Slider = t0 => {
|
|
|
232
232
|
let t12;
|
|
233
233
|
if ($[14] !== trackWidth || $[15] !== updateSelectedVal || $[16] !== xSharedVal) {
|
|
234
234
|
t12 = function SliderTsx3Factory({
|
|
235
|
-
|
|
235
|
+
_worklet_6731759360146_init_data,
|
|
236
236
|
trackWidth,
|
|
237
237
|
xSharedVal,
|
|
238
238
|
withTiming,
|
|
@@ -253,13 +253,13 @@ const Slider = t0 => {
|
|
|
253
253
|
scheduleOnRN,
|
|
254
254
|
updateSelectedVal
|
|
255
255
|
};
|
|
256
|
-
SliderTsx3.__workletHash =
|
|
257
|
-
SliderTsx3.__pluginVersion = "0.
|
|
258
|
-
SliderTsx3.__initData =
|
|
256
|
+
SliderTsx3.__workletHash = 6731759360146;
|
|
257
|
+
SliderTsx3.__pluginVersion = "0.11.3";
|
|
258
|
+
SliderTsx3.__initData = _worklet_6731759360146_init_data;
|
|
259
259
|
SliderTsx3.__stackDetails = _e;
|
|
260
260
|
return SliderTsx3;
|
|
261
261
|
}({
|
|
262
|
-
|
|
262
|
+
_worklet_6731759360146_init_data,
|
|
263
263
|
trackWidth,
|
|
264
264
|
xSharedVal,
|
|
265
265
|
withTiming,
|
|
@@ -274,195 +274,213 @@ const Slider = t0 => {
|
|
|
274
274
|
t12 = $[17];
|
|
275
275
|
}
|
|
276
276
|
const updateXSharedVal = t12;
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
const
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
SliderTsx5.__closure = {
|
|
297
|
-
sliderWidth,
|
|
298
|
-
updateXSharedVal,
|
|
299
|
-
thumbSize
|
|
300
|
-
};
|
|
301
|
-
SliderTsx5.__workletHash = 9051416247764;
|
|
302
|
-
SliderTsx5.__pluginVersion = "0.8.3";
|
|
303
|
-
SliderTsx5.__initData = _worklet_9051416247764_init_data;
|
|
304
|
-
SliderTsx5.__stackDetails = _e;
|
|
305
|
-
return SliderTsx5;
|
|
306
|
-
}({
|
|
307
|
-
_worklet_9051416247764_init_data,
|
|
277
|
+
const t13 = windowWidth * 10;
|
|
278
|
+
let t14;
|
|
279
|
+
if ($[18] !== sliderWidth || $[19] !== thumbSize || $[20] !== updateXSharedVal) {
|
|
280
|
+
t14 = function SliderTsx4Factory({
|
|
281
|
+
_worklet_2968023834740_init_data,
|
|
282
|
+
sliderWidth,
|
|
283
|
+
updateXSharedVal,
|
|
284
|
+
thumbSize
|
|
285
|
+
}) {
|
|
286
|
+
const _e = [new global.Error(), -4, -27];
|
|
287
|
+
const SliderTsx4 = function (t15) {
|
|
288
|
+
const {
|
|
289
|
+
x: x_1
|
|
290
|
+
} = t15;
|
|
291
|
+
if (sliderWidth) {
|
|
292
|
+
updateXSharedVal(-(sliderWidth - (x_1 + thumbSize * 2)));
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
SliderTsx4.__closure = {
|
|
308
296
|
sliderWidth,
|
|
309
297
|
updateXSharedVal,
|
|
310
298
|
thumbSize
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
return SliderTsx4;
|
|
353
|
-
}({
|
|
354
|
-
_worklet_15465333809693_init_data,
|
|
299
|
+
};
|
|
300
|
+
SliderTsx4.__workletHash = 2968023834740;
|
|
301
|
+
SliderTsx4.__pluginVersion = "0.11.3";
|
|
302
|
+
SliderTsx4.__initData = _worklet_2968023834740_init_data;
|
|
303
|
+
SliderTsx4.__stackDetails = _e;
|
|
304
|
+
return SliderTsx4;
|
|
305
|
+
}({
|
|
306
|
+
_worklet_2968023834740_init_data,
|
|
307
|
+
sliderWidth,
|
|
308
|
+
updateXSharedVal,
|
|
309
|
+
thumbSize
|
|
310
|
+
});
|
|
311
|
+
$[18] = sliderWidth;
|
|
312
|
+
$[19] = thumbSize;
|
|
313
|
+
$[20] = updateXSharedVal;
|
|
314
|
+
$[21] = t14;
|
|
315
|
+
} else {
|
|
316
|
+
t14 = $[21];
|
|
317
|
+
}
|
|
318
|
+
let t15;
|
|
319
|
+
if ($[22] !== sliderWidth || $[23] !== snapToStepAnimated || $[24] !== stepWidth || $[25] !== thumbSize || $[26] !== thumbSizeHalf || $[27] !== updateXSharedVal) {
|
|
320
|
+
t15 = function SliderTsx5Factory({
|
|
321
|
+
_worklet_7042279114877_init_data,
|
|
322
|
+
sliderWidth,
|
|
323
|
+
stepWidth,
|
|
324
|
+
thumbSize,
|
|
325
|
+
thumbSizeHalf,
|
|
326
|
+
updateXSharedVal,
|
|
327
|
+
snapToStepAnimated
|
|
328
|
+
}) {
|
|
329
|
+
const _e = [new global.Error(), -7, -27];
|
|
330
|
+
const SliderTsx5 = function (t16) {
|
|
331
|
+
const {
|
|
332
|
+
x: x_2
|
|
333
|
+
} = t16;
|
|
334
|
+
if (sliderWidth && stepWidth) {
|
|
335
|
+
const nearestStep = Math.round(-(sliderWidth - (x_2 + thumbSize + thumbSizeHalf)) / stepWidth);
|
|
336
|
+
updateXSharedVal(nearestStep * stepWidth, snapToStepAnimated);
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
SliderTsx5.__closure = {
|
|
355
340
|
sliderWidth,
|
|
356
341
|
stepWidth,
|
|
357
342
|
thumbSize,
|
|
358
343
|
thumbSizeHalf,
|
|
359
344
|
updateXSharedVal,
|
|
360
345
|
snapToStepAnimated
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
346
|
+
};
|
|
347
|
+
SliderTsx5.__workletHash = 7042279114877;
|
|
348
|
+
SliderTsx5.__pluginVersion = "0.11.3";
|
|
349
|
+
SliderTsx5.__initData = _worklet_7042279114877_init_data;
|
|
350
|
+
SliderTsx5.__stackDetails = _e;
|
|
351
|
+
return SliderTsx5;
|
|
352
|
+
}({
|
|
353
|
+
_worklet_7042279114877_init_data,
|
|
354
|
+
sliderWidth,
|
|
355
|
+
stepWidth,
|
|
356
|
+
thumbSize,
|
|
357
|
+
thumbSizeHalf,
|
|
358
|
+
updateXSharedVal,
|
|
359
|
+
snapToStepAnimated
|
|
360
|
+
});
|
|
361
|
+
$[22] = sliderWidth;
|
|
362
|
+
$[23] = snapToStepAnimated;
|
|
363
|
+
$[24] = stepWidth;
|
|
364
|
+
$[25] = thumbSize;
|
|
365
|
+
$[26] = thumbSizeHalf;
|
|
366
|
+
$[27] = updateXSharedVal;
|
|
367
|
+
$[28] = t15;
|
|
368
|
+
} else {
|
|
369
|
+
t15 = $[28];
|
|
370
|
+
}
|
|
371
|
+
let t16;
|
|
372
|
+
if ($[29] !== gestureActivateDuration || $[30] !== t13 || $[31] !== t14 || $[32] !== t15) {
|
|
373
|
+
t16 = {
|
|
374
|
+
minDuration: gestureActivateDuration,
|
|
375
|
+
maxDistance: t13,
|
|
376
|
+
shouldCancelWhenOutside: false,
|
|
377
|
+
onActivate: t14,
|
|
378
|
+
onDeactivate: t15
|
|
379
|
+
};
|
|
380
|
+
$[29] = gestureActivateDuration;
|
|
381
|
+
$[30] = t13;
|
|
382
|
+
$[31] = t14;
|
|
383
|
+
$[32] = t15;
|
|
384
|
+
$[33] = t16;
|
|
385
|
+
} else {
|
|
386
|
+
t16 = $[33];
|
|
387
|
+
}
|
|
388
|
+
const longPressGesture = useLongPressGesture(t16);
|
|
389
|
+
let t17;
|
|
390
|
+
if ($[34] !== updateXSharedVal || $[35] !== xSharedVal) {
|
|
391
|
+
t17 = function SliderTsx6Factory({
|
|
392
|
+
_worklet_7951712905590_init_data,
|
|
393
|
+
updateXSharedVal,
|
|
394
|
+
xSharedVal
|
|
395
|
+
}) {
|
|
396
|
+
const _e = [new global.Error(), -3, -27];
|
|
397
|
+
const SliderTsx6 = function (t18) {
|
|
398
|
+
const {
|
|
399
|
+
changeX
|
|
400
|
+
} = t18;
|
|
401
|
+
updateXSharedVal(xSharedVal.get() + changeX);
|
|
402
|
+
};
|
|
403
|
+
SliderTsx6.__closure = {
|
|
397
404
|
updateXSharedVal,
|
|
398
405
|
xSharedVal
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
}({
|
|
434
|
-
_worklet_3836629690946_init_data,
|
|
406
|
+
};
|
|
407
|
+
SliderTsx6.__workletHash = 7951712905590;
|
|
408
|
+
SliderTsx6.__pluginVersion = "0.11.3";
|
|
409
|
+
SliderTsx6.__initData = _worklet_7951712905590_init_data;
|
|
410
|
+
SliderTsx6.__stackDetails = _e;
|
|
411
|
+
return SliderTsx6;
|
|
412
|
+
}({
|
|
413
|
+
_worklet_7951712905590_init_data,
|
|
414
|
+
updateXSharedVal,
|
|
415
|
+
xSharedVal
|
|
416
|
+
});
|
|
417
|
+
$[34] = updateXSharedVal;
|
|
418
|
+
$[35] = xSharedVal;
|
|
419
|
+
$[36] = t17;
|
|
420
|
+
} else {
|
|
421
|
+
t17 = $[36];
|
|
422
|
+
}
|
|
423
|
+
let t18;
|
|
424
|
+
if ($[37] !== snapToStepAnimated || $[38] !== stepWidth || $[39] !== updateXSharedVal || $[40] !== xSharedVal) {
|
|
425
|
+
t18 = function SliderTsx7Factory({
|
|
426
|
+
_worklet_17273825555778_init_data,
|
|
427
|
+
stepWidth,
|
|
428
|
+
xSharedVal,
|
|
429
|
+
updateXSharedVal,
|
|
430
|
+
snapToStepAnimated
|
|
431
|
+
}) {
|
|
432
|
+
const _e = [new global.Error(), -5, -27];
|
|
433
|
+
const SliderTsx7 = function () {
|
|
434
|
+
if (stepWidth) {
|
|
435
|
+
const nearestStep_0 = Math.round(xSharedVal.get() / stepWidth);
|
|
436
|
+
updateXSharedVal(nearestStep_0 * stepWidth, snapToStepAnimated);
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
SliderTsx7.__closure = {
|
|
435
440
|
stepWidth,
|
|
436
441
|
xSharedVal,
|
|
437
442
|
updateXSharedVal,
|
|
438
443
|
snapToStepAnimated
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
$[
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
456
|
-
$[
|
|
457
|
-
$[26] = xSharedVal;
|
|
458
|
-
$[27] = t13;
|
|
444
|
+
};
|
|
445
|
+
SliderTsx7.__workletHash = 17273825555778;
|
|
446
|
+
SliderTsx7.__pluginVersion = "0.11.3";
|
|
447
|
+
SliderTsx7.__initData = _worklet_17273825555778_init_data;
|
|
448
|
+
SliderTsx7.__stackDetails = _e;
|
|
449
|
+
return SliderTsx7;
|
|
450
|
+
}({
|
|
451
|
+
_worklet_17273825555778_init_data,
|
|
452
|
+
stepWidth,
|
|
453
|
+
xSharedVal,
|
|
454
|
+
updateXSharedVal,
|
|
455
|
+
snapToStepAnimated
|
|
456
|
+
});
|
|
457
|
+
$[37] = snapToStepAnimated;
|
|
458
|
+
$[38] = stepWidth;
|
|
459
|
+
$[39] = updateXSharedVal;
|
|
460
|
+
$[40] = xSharedVal;
|
|
461
|
+
$[41] = t18;
|
|
459
462
|
} else {
|
|
460
|
-
|
|
463
|
+
t18 = $[41];
|
|
461
464
|
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
465
|
+
let t19;
|
|
466
|
+
if ($[42] !== gestureActivateDuration || $[43] !== t17 || $[44] !== t18) {
|
|
467
|
+
t19 = {
|
|
468
|
+
activateAfterLongPress: gestureActivateDuration,
|
|
469
|
+
onUpdate: t17,
|
|
470
|
+
onDeactivate: t18
|
|
471
|
+
};
|
|
472
|
+
$[42] = gestureActivateDuration;
|
|
473
|
+
$[43] = t17;
|
|
474
|
+
$[44] = t18;
|
|
475
|
+
$[45] = t19;
|
|
476
|
+
} else {
|
|
477
|
+
t19 = $[45];
|
|
478
|
+
}
|
|
479
|
+
const panGesture = usePanGesture(t19);
|
|
480
|
+
const simultaneousGesture = useSimultaneousGestures(longPressGesture, panGesture);
|
|
481
|
+
let t20;
|
|
482
|
+
if ($[46] !== isNumRange || $[47] !== processedRange || $[48] !== selectedValSharedVal || $[49] !== steps || $[50] !== thumbSize || $[51] !== thumbSizeHalf || $[52] !== totalSteps || $[53] !== xSharedVal) {
|
|
483
|
+
t20 = width => {
|
|
466
484
|
const tempWidth = width - thumbSize;
|
|
467
485
|
const tempStepWidth = tempWidth / totalSteps;
|
|
468
486
|
setSliderWidth(width + thumbSize + thumbSizeHalf);
|
|
@@ -480,124 +498,124 @@ const Slider = t0 => {
|
|
|
480
498
|
}
|
|
481
499
|
xSharedVal.set(-(totalSteps - index) * tempStepWidth);
|
|
482
500
|
};
|
|
483
|
-
$[
|
|
484
|
-
$[
|
|
485
|
-
$[
|
|
486
|
-
$[
|
|
487
|
-
$[
|
|
488
|
-
$[
|
|
489
|
-
$[
|
|
490
|
-
$[
|
|
491
|
-
$[
|
|
501
|
+
$[46] = isNumRange;
|
|
502
|
+
$[47] = processedRange;
|
|
503
|
+
$[48] = selectedValSharedVal;
|
|
504
|
+
$[49] = steps;
|
|
505
|
+
$[50] = thumbSize;
|
|
506
|
+
$[51] = thumbSizeHalf;
|
|
507
|
+
$[52] = totalSteps;
|
|
508
|
+
$[53] = xSharedVal;
|
|
509
|
+
$[54] = t20;
|
|
492
510
|
} else {
|
|
493
|
-
|
|
511
|
+
t20 = $[54];
|
|
494
512
|
}
|
|
495
|
-
const updateSliderLayout =
|
|
496
|
-
let
|
|
497
|
-
if ($[
|
|
498
|
-
|
|
513
|
+
const updateSliderLayout = t20;
|
|
514
|
+
let t21;
|
|
515
|
+
if ($[55] !== trackViewRef || $[56] !== updateSliderLayout) {
|
|
516
|
+
t21 = () => {
|
|
499
517
|
trackViewRef.current?.measure((_x, _y, w) => {
|
|
500
518
|
updateSliderLayout(w);
|
|
501
519
|
});
|
|
502
520
|
};
|
|
503
|
-
$[
|
|
504
|
-
$[
|
|
505
|
-
$[
|
|
521
|
+
$[55] = trackViewRef;
|
|
522
|
+
$[56] = updateSliderLayout;
|
|
523
|
+
$[57] = t21;
|
|
506
524
|
} else {
|
|
507
|
-
|
|
525
|
+
t21 = $[57];
|
|
508
526
|
}
|
|
509
|
-
let
|
|
510
|
-
if ($[
|
|
511
|
-
|
|
512
|
-
$[
|
|
513
|
-
$[
|
|
514
|
-
$[
|
|
515
|
-
$[
|
|
516
|
-
$[
|
|
527
|
+
let t22;
|
|
528
|
+
if ($[58] !== isNumRange || $[59] !== processedRange || $[60] !== thumbSize || $[61] !== totalSteps) {
|
|
529
|
+
t22 = [thumbSize, isNumRange, processedRange, totalSteps];
|
|
530
|
+
$[58] = isNumRange;
|
|
531
|
+
$[59] = processedRange;
|
|
532
|
+
$[60] = thumbSize;
|
|
533
|
+
$[61] = totalSteps;
|
|
534
|
+
$[62] = t22;
|
|
517
535
|
} else {
|
|
518
|
-
|
|
536
|
+
t22 = $[62];
|
|
519
537
|
}
|
|
520
|
-
useLayoutEffect(
|
|
521
|
-
let
|
|
522
|
-
if ($[
|
|
523
|
-
|
|
538
|
+
useLayoutEffect(t21, t22);
|
|
539
|
+
let t23;
|
|
540
|
+
if ($[63] !== updateSliderLayout) {
|
|
541
|
+
t23 = t24 => {
|
|
524
542
|
const {
|
|
525
|
-
nativeEvent:
|
|
526
|
-
} =
|
|
543
|
+
nativeEvent: t25
|
|
544
|
+
} = t24;
|
|
527
545
|
const {
|
|
528
|
-
layout:
|
|
529
|
-
} =
|
|
546
|
+
layout: t26
|
|
547
|
+
} = t25;
|
|
530
548
|
const {
|
|
531
549
|
width: width_0
|
|
532
|
-
} =
|
|
550
|
+
} = t26;
|
|
533
551
|
updateSliderLayout(width_0);
|
|
534
552
|
};
|
|
535
|
-
$[
|
|
536
|
-
$[
|
|
553
|
+
$[63] = updateSliderLayout;
|
|
554
|
+
$[64] = t23;
|
|
537
555
|
} else {
|
|
538
|
-
|
|
556
|
+
t23 = $[64];
|
|
539
557
|
}
|
|
540
|
-
const onLayout =
|
|
541
|
-
let
|
|
542
|
-
if ($[
|
|
543
|
-
|
|
558
|
+
const onLayout = t23;
|
|
559
|
+
let t24;
|
|
560
|
+
if ($[65] !== trackActiveColor || $[66] !== trackAnimatedStyle || $[67] !== trackInactiveProps || $[68] !== trackSize) {
|
|
561
|
+
t24 = /*#__PURE__*/_jsx(AnimatedThemedView, {
|
|
544
562
|
height: trackSize,
|
|
545
563
|
backgroundColor: trackActiveColor,
|
|
546
564
|
animatedStyle: trackAnimatedStyle,
|
|
547
565
|
...trackInactiveProps
|
|
548
566
|
});
|
|
549
|
-
$[
|
|
550
|
-
$[
|
|
551
|
-
$[
|
|
552
|
-
$[
|
|
553
|
-
$[
|
|
567
|
+
$[65] = trackActiveColor;
|
|
568
|
+
$[66] = trackAnimatedStyle;
|
|
569
|
+
$[67] = trackInactiveProps;
|
|
570
|
+
$[68] = trackSize;
|
|
571
|
+
$[69] = t24;
|
|
554
572
|
} else {
|
|
555
|
-
|
|
573
|
+
t24 = $[69];
|
|
556
574
|
}
|
|
557
|
-
let
|
|
558
|
-
if ($[
|
|
559
|
-
|
|
575
|
+
let t25;
|
|
576
|
+
if ($[70] !== t24 || $[71] !== trackActiveProps || $[72] !== trackInactiveColor || $[73] !== trackSize || $[74] !== trackWidth) {
|
|
577
|
+
t25 = /*#__PURE__*/_jsx(ThemedView, {
|
|
560
578
|
position: "absolute",
|
|
561
579
|
width: trackWidth,
|
|
562
580
|
height: trackSize,
|
|
563
581
|
overflow: "hidden",
|
|
564
582
|
backgroundColor: trackInactiveColor,
|
|
565
583
|
...trackActiveProps,
|
|
566
|
-
children:
|
|
584
|
+
children: t24
|
|
567
585
|
});
|
|
568
|
-
$[
|
|
569
|
-
$[
|
|
570
|
-
$[
|
|
571
|
-
$[
|
|
572
|
-
$[
|
|
573
|
-
$[
|
|
586
|
+
$[70] = t24;
|
|
587
|
+
$[71] = trackActiveProps;
|
|
588
|
+
$[72] = trackInactiveColor;
|
|
589
|
+
$[73] = trackSize;
|
|
590
|
+
$[74] = trackWidth;
|
|
591
|
+
$[75] = t25;
|
|
574
592
|
} else {
|
|
575
|
-
|
|
593
|
+
t25 = $[75];
|
|
576
594
|
}
|
|
577
|
-
let
|
|
578
|
-
if ($[
|
|
579
|
-
|
|
595
|
+
let t26;
|
|
596
|
+
if ($[76] !== getMappingKey || $[77] !== processedRange || $[78] !== stepIndicator || $[79] !== stepIndicatorProps || $[80] !== stepWidth || $[81] !== thumbSize || $[82] !== thumbSizeHalf) {
|
|
597
|
+
t26 = !!stepIndicator && processedRange.map((value, index_0) => /*#__PURE__*/_jsx(ThemedSliderStepIndicator, {
|
|
580
598
|
left: index_0 * (stepWidth ?? 0) + thumbSizeHalf - sliderStepIndicatorDefaultWidth / 2,
|
|
581
599
|
height: thumbSize,
|
|
582
600
|
...stepIndicatorProps
|
|
583
601
|
}, getMappingKey(value, index_0)));
|
|
584
|
-
$[
|
|
585
|
-
$[
|
|
586
|
-
$[
|
|
587
|
-
$[
|
|
588
|
-
$[
|
|
589
|
-
$[
|
|
590
|
-
$[
|
|
591
|
-
$[
|
|
602
|
+
$[76] = getMappingKey;
|
|
603
|
+
$[77] = processedRange;
|
|
604
|
+
$[78] = stepIndicator;
|
|
605
|
+
$[79] = stepIndicatorProps;
|
|
606
|
+
$[80] = stepWidth;
|
|
607
|
+
$[81] = thumbSize;
|
|
608
|
+
$[82] = thumbSizeHalf;
|
|
609
|
+
$[83] = t26;
|
|
592
610
|
} else {
|
|
593
|
-
|
|
611
|
+
t26 = $[83];
|
|
594
612
|
}
|
|
595
|
-
const
|
|
596
|
-
let
|
|
597
|
-
if ($[
|
|
598
|
-
|
|
613
|
+
const t27 = -thumbSizeHalf;
|
|
614
|
+
let t28;
|
|
615
|
+
if ($[84] !== t27 || $[85] !== thumbAnimatedStyle || $[86] !== thumbColor || $[87] !== thumbProps || $[88] !== thumbSize) {
|
|
616
|
+
t28 = /*#__PURE__*/_jsx(AnimatedThemedView, {
|
|
599
617
|
position: "absolute",
|
|
600
|
-
right:
|
|
618
|
+
right: t27,
|
|
601
619
|
width: thumbSize,
|
|
602
620
|
aspectRatio: 1,
|
|
603
621
|
opacity: 0.8,
|
|
@@ -605,18 +623,18 @@ const Slider = t0 => {
|
|
|
605
623
|
animatedStyle: thumbAnimatedStyle,
|
|
606
624
|
...thumbProps
|
|
607
625
|
});
|
|
608
|
-
$[
|
|
609
|
-
$[
|
|
610
|
-
$[
|
|
611
|
-
$[
|
|
612
|
-
$[
|
|
613
|
-
$[
|
|
626
|
+
$[84] = t27;
|
|
627
|
+
$[85] = thumbAnimatedStyle;
|
|
628
|
+
$[86] = thumbColor;
|
|
629
|
+
$[87] = thumbProps;
|
|
630
|
+
$[88] = thumbSize;
|
|
631
|
+
$[89] = t28;
|
|
614
632
|
} else {
|
|
615
|
-
|
|
633
|
+
t28 = $[89];
|
|
616
634
|
}
|
|
617
|
-
let
|
|
618
|
-
if ($[
|
|
619
|
-
|
|
635
|
+
let t29;
|
|
636
|
+
if ($[90] !== onLayout || $[91] !== sliderWrapProps || $[92] !== t25 || $[93] !== t26 || $[94] !== t28 || $[95] !== thumbSize || $[96] !== trackViewRef) {
|
|
637
|
+
t29 = /*#__PURE__*/_jsxs(ThemedView, {
|
|
620
638
|
ref: trackViewRef,
|
|
621
639
|
alignItems: "center",
|
|
622
640
|
justifyContent: "center",
|
|
@@ -624,32 +642,32 @@ const Slider = t0 => {
|
|
|
624
642
|
height: thumbSize,
|
|
625
643
|
onLayout: onLayout,
|
|
626
644
|
...sliderWrapProps,
|
|
627
|
-
children: [
|
|
645
|
+
children: [t25, t26, t28]
|
|
628
646
|
});
|
|
629
|
-
$[
|
|
630
|
-
$[
|
|
631
|
-
$[
|
|
632
|
-
$[
|
|
633
|
-
$[
|
|
634
|
-
$[
|
|
635
|
-
$[
|
|
636
|
-
$[
|
|
647
|
+
$[90] = onLayout;
|
|
648
|
+
$[91] = sliderWrapProps;
|
|
649
|
+
$[92] = t25;
|
|
650
|
+
$[93] = t26;
|
|
651
|
+
$[94] = t28;
|
|
652
|
+
$[95] = thumbSize;
|
|
653
|
+
$[96] = trackViewRef;
|
|
654
|
+
$[97] = t29;
|
|
637
655
|
} else {
|
|
638
|
-
|
|
656
|
+
t29 = $[97];
|
|
639
657
|
}
|
|
640
|
-
let
|
|
641
|
-
if ($[
|
|
642
|
-
|
|
643
|
-
gesture:
|
|
644
|
-
children:
|
|
658
|
+
let t30;
|
|
659
|
+
if ($[98] !== simultaneousGesture || $[99] !== t29) {
|
|
660
|
+
t30 = /*#__PURE__*/_jsx(GestureDetector, {
|
|
661
|
+
gesture: simultaneousGesture,
|
|
662
|
+
children: t29
|
|
645
663
|
});
|
|
646
|
-
$[
|
|
647
|
-
$[
|
|
648
|
-
$[
|
|
664
|
+
$[98] = simultaneousGesture;
|
|
665
|
+
$[99] = t29;
|
|
666
|
+
$[100] = t30;
|
|
649
667
|
} else {
|
|
650
|
-
|
|
668
|
+
t30 = $[100];
|
|
651
669
|
}
|
|
652
|
-
return
|
|
670
|
+
return t30;
|
|
653
671
|
};
|
|
654
672
|
export default Slider;
|
|
655
673
|
//# sourceMappingURL=Slider.js.map
|