@jamadd/react-native-template-ui 0.8.7 → 0.9.1

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.
Files changed (32) hide show
  1. package/README.md +8 -0
  2. package/lib/module/components/accordion/ThemedAccordion.js +245 -0
  3. package/lib/module/components/accordion/ThemedAccordion.js.map +1 -0
  4. package/lib/module/components/accordion/ThemedAccordion.web.js +245 -0
  5. package/lib/module/components/accordion/ThemedAccordion.web.js.map +1 -0
  6. package/lib/module/components/slider/Slider.js +132 -211
  7. package/lib/module/components/slider/Slider.js.map +1 -1
  8. package/lib/module/components/slider/Slider.web.js +595 -0
  9. package/lib/module/components/slider/Slider.web.js.map +1 -0
  10. package/lib/module/components/slider/ThemedSlider.js +1 -1
  11. package/lib/module/components/slider/ThemedSlider.js.map +1 -1
  12. package/lib/module/components/slider/ThemedSlider.web.js +1 -1
  13. package/lib/module/components/slider/ThemedSlider.web.js.map +1 -1
  14. package/lib/module/index.js +2 -0
  15. package/lib/module/index.js.map +1 -1
  16. package/lib/module/types/accordion.js +4 -0
  17. package/lib/module/types/accordion.js.map +1 -0
  18. package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts +5 -0
  19. package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts.map +1 -0
  20. package/lib/typescript/src/components/accordion/ThemedAccordion.web.d.ts +5 -0
  21. package/lib/typescript/src/components/accordion/ThemedAccordion.web.d.ts.map +1 -0
  22. package/lib/typescript/src/components/slider/Slider.d.ts.map +1 -1
  23. package/lib/typescript/src/components/slider/Slider.web.d.ts +5 -0
  24. package/lib/typescript/src/components/slider/Slider.web.d.ts.map +1 -0
  25. package/lib/typescript/src/components/text/Text.d.ts +2 -2
  26. package/lib/typescript/src/components/view/Box.d.ts +18 -18
  27. package/lib/typescript/src/index.d.ts +2 -0
  28. package/lib/typescript/src/index.d.ts.map +1 -1
  29. package/lib/typescript/src/types/accordion.d.ts +16 -0
  30. package/lib/typescript/src/types/accordion.d.ts.map +1 -0
  31. package/lib/typescript/src/utils/theme/restyle.d.ts +385 -385
  32. package/package.json +1 -1
@@ -11,55 +11,45 @@ import { useViewRef } from "../../hooks/view.js";
11
11
  import { sliderStepIndicatorDefaultWidth, sliderThumbDefaultSize, SliderTrackSize } from "../../utils/slider/const.js";
12
12
  import AnimatedThemedView from "../view/AnimatedThemedView.js";
13
13
  import ThemedView from "../view/ThemedView.js";
14
- import ThemedSliderStepIndicator from "./ThemedSliderStepIndicator.js";
15
14
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
+ const ThemedSliderStepIndicator = require('./ThemedSliderStepIndicator').default;
16
16
  const _worklet_1107268610089_init_data = {
17
17
  code: "function SliderTsx1(){const{xSharedVal}=this.__closure;return{transform:[{translateX:xSharedVal.get()}]};}",
18
18
  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\":\"AA0EI,SAAAA,WAAA,QAAAC,UAAA,OAAAC,SAAA,OAAO,CAAAC,SAAA,CAAa,CAAC,CAAAC,UAAA,CAAcH,UAAU,CAAAI,GAAI,CAAC,CAAE,CAAC,CAAE,CAAC\",\"ignoreList\":[]}"
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\":\"AA6EI,SAAAA,WAAA,QAAAC,UAAA,OAAAC,SAAA,OAAO,CAAAC,SAAA,CAAa,CAAC,CAAAC,UAAA,CAAcH,UAAU,CAAAI,GAAI,CAAC,CAAE,CAAC,CAAE,CAAC\",\"ignoreList\":[]}"
20
20
  };
21
21
  const _worklet_9813808913419_init_data = {
22
22
  code: "function SliderTsx2(){const{xSharedVal,thumbSizeHalf}=this.__closure;return{transform:[{translateX:xSharedVal.get()-thumbSizeHalf}]};}",
23
23
  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\":\"AA8EI,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\":[]}"
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\":\"AAiFI,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
25
  };
26
26
  const _worklet_5842193172883_init_data = {
27
27
  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
28
  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\":\"AAwG6B,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\":[]}"
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\":\"AA0G6B,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
30
  };
31
31
  const _worklet_15465333809693_init_data = {
32
32
  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
33
  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\":\"AAyHe,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\":[]}"
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\":\"AA2He,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
35
  };
36
- const _worklet_8878459337931_init_data = {
37
- code: "function SliderTsx5(t15){const{sliderWidth,updateXSharedVal,thumbSize,thumbSizeHalf}=this.__closure;const{x:x_1}=t15;if(sliderWidth){updateXSharedVal(-(sliderWidth-(x_1+thumbSize+thumbSizeHalf)));}}",
36
+ const _worklet_9051416247764_init_data = {
37
+ code: "function SliderTsx5(t15){const{sliderWidth,updateXSharedVal,thumbSize}=this.__closure;const{x:x_1}=t15;if(sliderWidth){updateXSharedVal(-(sliderWidth-(x_1+thumbSize*2)));}}",
38
38
  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\",\"thumbSizeHalf\",\"__closure\",\"x\",\"x_1\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"AAoHiB,SAAAA,WAAAC,GAAA,QAAAC,WAAA,CAAAC,gBAAA,CAAAC,SAAA,CAAAC,aAAA,OAAAC,SAAA,CAAC,MAAAC,CAAA,CAAAC,GAAA,EAAAP,GAAK,CACb,GAAIC,WAAW,EACbC,gBAAgB,CAAC,EAAED,WAAW,EAAIM,GAAC,CAAGJ,SAAS,CAAGC,aAAa,CAAC,CAAC,CAAC,EACnE\",\"ignoreList\":[]}"
39
+ 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\":\"AAsHiB,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
40
  };
41
41
  const _worklet_3836629690946_init_data = {
42
42
  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
43
  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\":\"AAkJe,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\":[]}"
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\":\"AAwIe,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\":[]}"
45
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);}",
46
+ const _worklet_9171995940566_init_data = {
47
+ code: "function SliderTsx7(t17){const{updateXSharedVal,xSharedVal}=this.__closure;const{changeX:changeX}=t17;updateXSharedVal(xSharedVal.get()+changeX);}",
48
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\":[]}"
55
- };
56
- const _worklet_7305647671238_init_data = {
57
- code: "function SliderTsx9(){const{touchStart}=this.__closure;touchStart.set(Date.now());}",
58
- location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx",
59
- sourceMap: "{\"version\":3,\"names\":[\"SliderTsx9\",\"touchStart\",\"__closure\",\"set\",\"Date\",\"now\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"AAoIiB,SAAAA,WAAA,QAAAC,UAAA,OAAAC,SAAA,CACPD,UAAU,CAAAE,GAAI,CAACC,IAAI,CAAAC,GAAI,CAAC,CAAC,CAAC\",\"ignoreList\":[]}"
49
+ 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\":\"AAqIkB,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
50
  };
61
51
  const Slider = t0 => {
62
- const $ = _c(104);
52
+ const $ = _c(97);
63
53
  const {
64
54
  range,
65
55
  steps: t1,
@@ -87,7 +77,7 @@ const Slider = t0 => {
87
77
  const trackInactiveColor = t5 === undefined ? "separator" : t5;
88
78
  const thumbSize = t6 === undefined ? sliderThumbDefaultSize : t6;
89
79
  const thumbColor = t7 === undefined ? "themePri" : t7;
90
- const gestureActivateDuration = t8 === undefined ? 40 : t8;
80
+ const gestureActivateDuration = t8 === undefined ? 50 : t8;
91
81
  const windowWidth = useWindowDimensionsWidth();
92
82
  const isNumRange = typeof range[0] === "number";
93
83
  let t9;
@@ -179,7 +169,6 @@ const Slider = t0 => {
179
169
  xSharedVal,
180
170
  thumbSizeHalf
181
171
  }), [thumbSizeHalf]);
182
- const touchStart = useSharedValue(0);
183
172
  let t11;
184
173
  if ($[5] !== isNumRange || $[6] !== onValueChange || $[7] !== processedRange || $[8] !== setSelectedVal || $[9] !== stepWidth || $[10] !== steps || $[11] !== stepsFractionDigits || $[12] !== totalSteps) {
185
174
  t11 = x => {
@@ -259,53 +248,49 @@ const Slider = t0 => {
259
248
  }
260
249
  const updateXSharedVal = t12;
261
250
  let t13;
262
- if ($[18] !== gestureActivateDuration || $[19] !== sliderWidth || $[20] !== snapToStepAnimated || $[21] !== stepWidth || $[22] !== thumbSize || $[23] !== thumbSizeHalf || $[24] !== touchStart || $[25] !== updateXSharedVal || $[26] !== windowWidth || $[27] !== xSharedVal) {
251
+ if ($[18] !== gestureActivateDuration || $[19] !== sliderWidth || $[20] !== snapToStepAnimated || $[21] !== stepWidth || $[22] !== thumbSize || $[23] !== thumbSizeHalf || $[24] !== updateXSharedVal || $[25] !== windowWidth || $[26] !== xSharedVal) {
263
252
  let t14;
264
- if ($[29] !== sliderWidth || $[30] !== thumbSize || $[31] !== thumbSizeHalf || $[32] !== updateXSharedVal) {
253
+ if ($[28] !== sliderWidth || $[29] !== thumbSize || $[30] !== updateXSharedVal) {
265
254
  t14 = function SliderTsx5Factory({
266
- _worklet_8878459337931_init_data,
255
+ _worklet_9051416247764_init_data,
267
256
  sliderWidth,
268
257
  updateXSharedVal,
269
- thumbSize,
270
- thumbSizeHalf
258
+ thumbSize
271
259
  }) {
272
- const _e = [new global.Error(), -5, -27];
260
+ const _e = [new global.Error(), -4, -27];
273
261
  const SliderTsx5 = function (t15) {
274
262
  const {
275
263
  x: x_1
276
264
  } = t15;
277
265
  if (sliderWidth) {
278
- updateXSharedVal(-(sliderWidth - (x_1 + thumbSize + thumbSizeHalf)));
266
+ updateXSharedVal(-(sliderWidth - (x_1 + thumbSize * 2)));
279
267
  }
280
268
  };
281
269
  SliderTsx5.__closure = {
282
270
  sliderWidth,
283
271
  updateXSharedVal,
284
- thumbSize,
285
- thumbSizeHalf
272
+ thumbSize
286
273
  };
287
- SliderTsx5.__workletHash = 8878459337931;
274
+ SliderTsx5.__workletHash = 9051416247764;
288
275
  SliderTsx5.__pluginVersion = "0.8.3";
289
- SliderTsx5.__initData = _worklet_8878459337931_init_data;
276
+ SliderTsx5.__initData = _worklet_9051416247764_init_data;
290
277
  SliderTsx5.__stackDetails = _e;
291
278
  return SliderTsx5;
292
279
  }({
293
- _worklet_8878459337931_init_data,
280
+ _worklet_9051416247764_init_data,
294
281
  sliderWidth,
295
282
  updateXSharedVal,
296
- thumbSize,
297
- thumbSizeHalf
283
+ thumbSize
298
284
  });
299
- $[29] = sliderWidth;
300
- $[30] = thumbSize;
301
- $[31] = thumbSizeHalf;
302
- $[32] = updateXSharedVal;
303
- $[33] = t14;
285
+ $[28] = sliderWidth;
286
+ $[29] = thumbSize;
287
+ $[30] = updateXSharedVal;
288
+ $[31] = t14;
304
289
  } else {
305
- t14 = $[33];
290
+ t14 = $[31];
306
291
  }
307
292
  let t15;
308
- if ($[34] !== sliderWidth || $[35] !== snapToStepAnimated || $[36] !== stepWidth || $[37] !== thumbSize || $[38] !== thumbSizeHalf || $[39] !== updateXSharedVal) {
293
+ if ($[32] !== sliderWidth || $[33] !== snapToStepAnimated || $[34] !== stepWidth || $[35] !== thumbSize || $[36] !== thumbSizeHalf || $[37] !== updateXSharedVal) {
309
294
  t15 = function SliderTsx4Factory({
310
295
  _worklet_15465333809693_init_data,
311
296
  sliderWidth,
@@ -347,116 +332,53 @@ const Slider = t0 => {
347
332
  updateXSharedVal,
348
333
  snapToStepAnimated
349
334
  });
350
- $[34] = sliderWidth;
351
- $[35] = snapToStepAnimated;
352
- $[36] = stepWidth;
353
- $[37] = thumbSize;
354
- $[38] = thumbSizeHalf;
355
- $[39] = updateXSharedVal;
356
- $[40] = t15;
335
+ $[32] = sliderWidth;
336
+ $[33] = snapToStepAnimated;
337
+ $[34] = stepWidth;
338
+ $[35] = thumbSize;
339
+ $[36] = thumbSizeHalf;
340
+ $[37] = updateXSharedVal;
341
+ $[38] = t15;
357
342
  } else {
358
- t15 = $[40];
343
+ t15 = $[38];
359
344
  }
360
345
  let t16;
361
- if ($[41] !== touchStart) {
362
- t16 = function SliderTsx9Factory({
363
- _worklet_7305647671238_init_data,
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,
346
+ if ($[39] !== updateXSharedVal || $[40] !== xSharedVal) {
347
+ t16 = function SliderTsx7Factory({
348
+ _worklet_9171995940566_init_data,
427
349
  updateXSharedVal,
428
350
  xSharedVal
429
351
  }) {
430
352
  const _e = [new global.Error(), -3, -27];
431
- const SliderTsx7 = function (t19) {
353
+ const SliderTsx7 = function (t17) {
432
354
  const {
433
355
  changeX
434
- } = t19;
356
+ } = t17;
435
357
  updateXSharedVal(xSharedVal.get() + changeX);
436
358
  };
437
359
  SliderTsx7.__closure = {
438
360
  updateXSharedVal,
439
361
  xSharedVal
440
362
  };
441
- SliderTsx7.__workletHash = 9150691278550;
363
+ SliderTsx7.__workletHash = 9171995940566;
442
364
  SliderTsx7.__pluginVersion = "0.8.3";
443
- SliderTsx7.__initData = _worklet_9150691278550_init_data;
365
+ SliderTsx7.__initData = _worklet_9171995940566_init_data;
444
366
  SliderTsx7.__stackDetails = _e;
445
367
  return SliderTsx7;
446
368
  }({
447
- _worklet_9150691278550_init_data,
369
+ _worklet_9171995940566_init_data,
448
370
  updateXSharedVal,
449
371
  xSharedVal
450
372
  });
451
- $[46] = updateXSharedVal;
452
- $[47] = xSharedVal;
453
- $[48] = t18;
373
+ $[39] = updateXSharedVal;
374
+ $[40] = xSharedVal;
375
+ $[41] = t16;
454
376
  } else {
455
- t18 = $[48];
377
+ t16 = $[41];
456
378
  }
457
- let t19;
458
- if ($[49] !== snapToStepAnimated || $[50] !== stepWidth || $[51] !== updateXSharedVal || $[52] !== xSharedVal) {
459
- t19 = function SliderTsx6Factory({
379
+ let t17;
380
+ if ($[42] !== snapToStepAnimated || $[43] !== stepWidth || $[44] !== updateXSharedVal || $[45] !== xSharedVal) {
381
+ t17 = function SliderTsx6Factory({
460
382
  _worklet_3836629690946_init_data,
461
383
  stepWidth,
462
384
  xSharedVal,
@@ -488,32 +410,31 @@ const Slider = t0 => {
488
410
  updateXSharedVal,
489
411
  snapToStepAnimated
490
412
  });
491
- $[49] = snapToStepAnimated;
492
- $[50] = stepWidth;
493
- $[51] = updateXSharedVal;
494
- $[52] = xSharedVal;
495
- $[53] = t19;
413
+ $[42] = snapToStepAnimated;
414
+ $[43] = stepWidth;
415
+ $[44] = updateXSharedVal;
416
+ $[45] = xSharedVal;
417
+ $[46] = t17;
496
418
  } else {
497
- t19 = $[53];
419
+ t17 = $[46];
498
420
  }
499
- t13 = Gesture.Simultaneous(Gesture.LongPress().minDuration(gestureActivateDuration).maxDistance(windowWidth * 10).shouldCancelWhenOutside(false).onStart(t14).onEnd(t15), Gesture.Pan().manualActivation(true).shouldCancelWhenOutside(false).onBegin(t16).onTouchesMove(t17).onChange(t18).onEnd(t19));
421
+ 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
422
  $[18] = gestureActivateDuration;
501
423
  $[19] = sliderWidth;
502
424
  $[20] = snapToStepAnimated;
503
425
  $[21] = stepWidth;
504
426
  $[22] = thumbSize;
505
427
  $[23] = thumbSizeHalf;
506
- $[24] = touchStart;
507
- $[25] = updateXSharedVal;
508
- $[26] = windowWidth;
509
- $[27] = xSharedVal;
510
- $[28] = t13;
428
+ $[24] = updateXSharedVal;
429
+ $[25] = windowWidth;
430
+ $[26] = xSharedVal;
431
+ $[27] = t13;
511
432
  } else {
512
- t13 = $[28];
433
+ t13 = $[27];
513
434
  }
514
435
  const gesture = t13;
515
436
  let t14;
516
- if ($[54] !== isNumRange || $[55] !== processedRange || $[56] !== selectedValSharedVal || $[57] !== steps || $[58] !== thumbSize || $[59] !== thumbSizeHalf || $[60] !== totalSteps || $[61] !== trackViewRef || $[62] !== xSharedVal) {
437
+ if ($[47] !== isNumRange || $[48] !== processedRange || $[49] !== selectedValSharedVal || $[50] !== steps || $[51] !== thumbSize || $[52] !== thumbSizeHalf || $[53] !== totalSteps || $[54] !== trackViewRef || $[55] !== xSharedVal) {
517
438
  t14 = () => {
518
439
  trackViewRef.current?.measure((_x, _y, w) => {
519
440
  const tempWidth = w - thumbSize;
@@ -534,49 +455,49 @@ const Slider = t0 => {
534
455
  xSharedVal.set(-(totalSteps - index) * tempStepWidth);
535
456
  });
536
457
  };
537
- $[54] = isNumRange;
538
- $[55] = processedRange;
539
- $[56] = selectedValSharedVal;
540
- $[57] = steps;
541
- $[58] = thumbSize;
542
- $[59] = thumbSizeHalf;
543
- $[60] = totalSteps;
544
- $[61] = trackViewRef;
545
- $[62] = xSharedVal;
546
- $[63] = t14;
458
+ $[47] = isNumRange;
459
+ $[48] = processedRange;
460
+ $[49] = selectedValSharedVal;
461
+ $[50] = steps;
462
+ $[51] = thumbSize;
463
+ $[52] = thumbSizeHalf;
464
+ $[53] = totalSteps;
465
+ $[54] = trackViewRef;
466
+ $[55] = xSharedVal;
467
+ $[56] = t14;
547
468
  } else {
548
- t14 = $[63];
469
+ t14 = $[56];
549
470
  }
550
471
  let t15;
551
- if ($[64] !== isNumRange || $[65] !== processedRange || $[66] !== thumbSize || $[67] !== totalSteps) {
472
+ if ($[57] !== isNumRange || $[58] !== processedRange || $[59] !== thumbSize || $[60] !== totalSteps) {
552
473
  t15 = [thumbSize, isNumRange, processedRange, totalSteps];
553
- $[64] = isNumRange;
554
- $[65] = processedRange;
555
- $[66] = thumbSize;
556
- $[67] = totalSteps;
557
- $[68] = t15;
474
+ $[57] = isNumRange;
475
+ $[58] = processedRange;
476
+ $[59] = thumbSize;
477
+ $[60] = totalSteps;
478
+ $[61] = t15;
558
479
  } else {
559
- t15 = $[68];
480
+ t15 = $[61];
560
481
  }
561
482
  useLayoutEffect(t14, t15);
562
483
  let t16;
563
- if ($[69] !== trackActiveColor || $[70] !== trackAnimatedStyle || $[71] !== trackInactiveProps || $[72] !== trackSize) {
484
+ if ($[62] !== trackActiveColor || $[63] !== trackAnimatedStyle || $[64] !== trackInactiveProps || $[65] !== trackSize) {
564
485
  t16 = /*#__PURE__*/_jsx(AnimatedThemedView, {
565
486
  height: trackSize,
566
487
  backgroundColor: trackActiveColor,
567
488
  animatedStyle: trackAnimatedStyle,
568
489
  ...trackInactiveProps
569
490
  });
570
- $[69] = trackActiveColor;
571
- $[70] = trackAnimatedStyle;
572
- $[71] = trackInactiveProps;
573
- $[72] = trackSize;
574
- $[73] = t16;
491
+ $[62] = trackActiveColor;
492
+ $[63] = trackAnimatedStyle;
493
+ $[64] = trackInactiveProps;
494
+ $[65] = trackSize;
495
+ $[66] = t16;
575
496
  } else {
576
- t16 = $[73];
497
+ t16 = $[66];
577
498
  }
578
499
  let t17;
579
- if ($[74] !== t16 || $[75] !== trackActiveProps || $[76] !== trackInactiveColor || $[77] !== trackSize || $[78] !== trackWidth) {
500
+ if ($[67] !== t16 || $[68] !== trackActiveProps || $[69] !== trackInactiveColor || $[70] !== trackSize || $[71] !== trackWidth) {
580
501
  t17 = /*#__PURE__*/_jsx(ThemedView, {
581
502
  position: "absolute",
582
503
  width: trackWidth,
@@ -586,36 +507,36 @@ const Slider = t0 => {
586
507
  ...trackActiveProps,
587
508
  children: t16
588
509
  });
589
- $[74] = t16;
590
- $[75] = trackActiveProps;
591
- $[76] = trackInactiveColor;
592
- $[77] = trackSize;
593
- $[78] = trackWidth;
594
- $[79] = t17;
510
+ $[67] = t16;
511
+ $[68] = trackActiveProps;
512
+ $[69] = trackInactiveColor;
513
+ $[70] = trackSize;
514
+ $[71] = trackWidth;
515
+ $[72] = t17;
595
516
  } else {
596
- t17 = $[79];
517
+ t17 = $[72];
597
518
  }
598
519
  let t18;
599
- if ($[80] !== getMappingKey || $[81] !== processedRange || $[82] !== stepIndicator || $[83] !== stepIndicatorProps || $[84] !== stepWidth || $[85] !== thumbSize || $[86] !== thumbSizeHalf) {
520
+ if ($[73] !== getMappingKey || $[74] !== processedRange || $[75] !== stepIndicator || $[76] !== stepIndicatorProps || $[77] !== stepWidth || $[78] !== thumbSize || $[79] !== thumbSizeHalf) {
600
521
  t18 = !!stepIndicator && processedRange.map((value, index_0) => /*#__PURE__*/_jsx(ThemedSliderStepIndicator, {
601
522
  left: index_0 * (stepWidth ?? 0) + thumbSizeHalf - sliderStepIndicatorDefaultWidth / 2,
602
523
  height: thumbSize,
603
524
  ...stepIndicatorProps
604
525
  }, getMappingKey(value, index_0)));
605
- $[80] = getMappingKey;
606
- $[81] = processedRange;
607
- $[82] = stepIndicator;
608
- $[83] = stepIndicatorProps;
609
- $[84] = stepWidth;
610
- $[85] = thumbSize;
611
- $[86] = thumbSizeHalf;
612
- $[87] = t18;
526
+ $[73] = getMappingKey;
527
+ $[74] = processedRange;
528
+ $[75] = stepIndicator;
529
+ $[76] = stepIndicatorProps;
530
+ $[77] = stepWidth;
531
+ $[78] = thumbSize;
532
+ $[79] = thumbSizeHalf;
533
+ $[80] = t18;
613
534
  } else {
614
- t18 = $[87];
535
+ t18 = $[80];
615
536
  }
616
537
  const t19 = -thumbSizeHalf;
617
538
  let t20;
618
- if ($[88] !== t19 || $[89] !== thumbAnimatedStyle || $[90] !== thumbColor || $[91] !== thumbProps || $[92] !== thumbSize) {
539
+ if ($[81] !== t19 || $[82] !== thumbAnimatedStyle || $[83] !== thumbColor || $[84] !== thumbProps || $[85] !== thumbSize) {
619
540
  t20 = /*#__PURE__*/_jsx(AnimatedThemedView, {
620
541
  position: "absolute",
621
542
  right: t19,
@@ -626,17 +547,17 @@ const Slider = t0 => {
626
547
  animatedStyle: thumbAnimatedStyle,
627
548
  ...thumbProps
628
549
  });
629
- $[88] = t19;
630
- $[89] = thumbAnimatedStyle;
631
- $[90] = thumbColor;
632
- $[91] = thumbProps;
633
- $[92] = thumbSize;
634
- $[93] = t20;
550
+ $[81] = t19;
551
+ $[82] = thumbAnimatedStyle;
552
+ $[83] = thumbColor;
553
+ $[84] = thumbProps;
554
+ $[85] = thumbSize;
555
+ $[86] = t20;
635
556
  } else {
636
- t20 = $[93];
557
+ t20 = $[86];
637
558
  }
638
559
  let t21;
639
- if ($[94] !== sliderWrapProps || $[95] !== t17 || $[96] !== t18 || $[97] !== t20 || $[98] !== thumbSize || $[99] !== trackViewRef) {
560
+ if ($[87] !== sliderWrapProps || $[88] !== t17 || $[89] !== t18 || $[90] !== t20 || $[91] !== thumbSize || $[92] !== trackViewRef) {
640
561
  t21 = /*#__PURE__*/_jsxs(ThemedView, {
641
562
  ref: trackViewRef,
642
563
  alignItems: "center",
@@ -646,27 +567,27 @@ const Slider = t0 => {
646
567
  ...sliderWrapProps,
647
568
  children: [t17, t18, t20]
648
569
  });
649
- $[94] = sliderWrapProps;
650
- $[95] = t17;
651
- $[96] = t18;
652
- $[97] = t20;
653
- $[98] = thumbSize;
654
- $[99] = trackViewRef;
655
- $[100] = t21;
570
+ $[87] = sliderWrapProps;
571
+ $[88] = t17;
572
+ $[89] = t18;
573
+ $[90] = t20;
574
+ $[91] = thumbSize;
575
+ $[92] = trackViewRef;
576
+ $[93] = t21;
656
577
  } else {
657
- t21 = $[100];
578
+ t21 = $[93];
658
579
  }
659
580
  let t22;
660
- if ($[101] !== gesture || $[102] !== t21) {
581
+ if ($[94] !== gesture || $[95] !== t21) {
661
582
  t22 = /*#__PURE__*/_jsx(GestureDetector, {
662
583
  gesture: gesture,
663
584
  children: t21
664
585
  });
665
- $[101] = gesture;
666
- $[102] = t21;
667
- $[103] = t22;
586
+ $[94] = gesture;
587
+ $[95] = t21;
588
+ $[96] = t22;
668
589
  } else {
669
- t22 = $[103];
590
+ t22 = $[96];
670
591
  }
671
592
  return t22;
672
593
  };