@jamadd/react-native-template-ui 0.10.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.
Files changed (226) hide show
  1. package/README.md +7 -2
  2. package/lib/module/components/accordion/ThemedAccordion.js +53 -48
  3. package/lib/module/components/accordion/ThemedAccordion.js.map +1 -1
  4. package/lib/module/components/button/ThemedButton.js +47 -41
  5. package/lib/module/components/button/ThemedButton.js.map +1 -1
  6. package/lib/module/components/button/ThemedIconButton.js +39 -27
  7. package/lib/module/components/button/ThemedIconButton.js.map +1 -1
  8. package/lib/module/components/button/ThemedIconTextButton.js +90 -65
  9. package/lib/module/components/button/ThemedIconTextButton.js.map +1 -1
  10. package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js +14 -14
  11. package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js.map +1 -1
  12. package/lib/module/components/overlay/alert/AlertWrap.js +7 -7
  13. package/lib/module/components/overlay/alert/AlertWrap.js.map +1 -1
  14. package/lib/module/components/overlay/contextMenu/ContextMenu.js +196 -0
  15. package/lib/module/components/overlay/contextMenu/ContextMenu.js.map +1 -0
  16. package/lib/module/components/overlay/contextMenu/ContextMenuOptionList.js +72 -0
  17. package/lib/module/components/overlay/contextMenu/ContextMenuOptionList.js.map +1 -0
  18. package/lib/module/components/overlay/contextMenu/ContextMenuOptionListItem.js +87 -0
  19. package/lib/module/components/overlay/contextMenu/ContextMenuOptionListItem.js.map +1 -0
  20. package/lib/module/components/overlay/toast/ThemedToast.js +14 -14
  21. package/lib/module/components/overlay/toast/ThemedToast.js.map +1 -1
  22. package/lib/module/components/slider/Slider.js +335 -317
  23. package/lib/module/components/slider/Slider.js.map +1 -1
  24. package/lib/module/components/text/ThemedIconText.js +84 -66
  25. package/lib/module/components/text/ThemedIconText.js.map +1 -1
  26. package/lib/module/components/textInput/ThemedTextInput.js +39 -0
  27. package/lib/module/components/textInput/ThemedTextInput.js.map +1 -0
  28. package/lib/module/hooks/overlay.js +90 -78
  29. package/lib/module/hooks/overlay.js.map +1 -1
  30. package/lib/module/hooks/style.js +73 -7
  31. package/lib/module/hooks/style.js.map +1 -1
  32. package/lib/module/hooks/switch.js +14 -14
  33. package/lib/module/hooks/switch.js.map +1 -1
  34. package/lib/module/hooks/textInput.js +99 -0
  35. package/lib/module/hooks/textInput.js.map +1 -0
  36. package/lib/module/index.js +6 -0
  37. package/lib/module/index.js.map +1 -1
  38. package/lib/module/types/textInput.js +4 -0
  39. package/lib/module/types/textInput.js.map +1 -0
  40. package/lib/module/utils/common/const.js +5 -0
  41. package/lib/module/utils/common/const.js.map +1 -0
  42. package/lib/module/utils/common/func.js +13 -0
  43. package/lib/module/utils/common/func.js.map +1 -0
  44. package/lib/module/utils/overlay/const.js +1 -0
  45. package/lib/module/utils/overlay/const.js.map +1 -1
  46. package/lib/module/utils/reanimated/func.js +14 -14
  47. package/lib/module/utils/reanimated/func.js.map +1 -1
  48. package/lib/module/utils/style/const.js +27 -0
  49. package/lib/module/utils/style/const.js.map +1 -1
  50. package/lib/module/utils/style/func.js +5 -0
  51. package/lib/module/utils/style/func.js.map +1 -1
  52. package/lib/module/utils/textInput/const.js +4 -0
  53. package/lib/module/utils/textInput/const.js.map +1 -0
  54. package/lib/module/utils/theme/const.js +3 -0
  55. package/lib/module/utils/theme/const.js.map +1 -1
  56. package/lib/module/utils/theme/restyle.js +3 -1
  57. package/lib/module/utils/theme/restyle.js.map +1 -1
  58. package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts +1 -1
  59. package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts.map +1 -1
  60. package/lib/typescript/src/components/button/AnimatedThemedPressable.d.ts +1 -1
  61. package/lib/typescript/src/components/button/AnimatedThemedPressable.d.ts.map +1 -1
  62. package/lib/typescript/src/components/button/ThemedButton.d.ts +1 -1
  63. package/lib/typescript/src/components/button/ThemedButton.d.ts.map +1 -1
  64. package/lib/typescript/src/components/button/ThemedIconButton.d.ts +1 -1
  65. package/lib/typescript/src/components/button/ThemedIconButton.d.ts.map +1 -1
  66. package/lib/typescript/src/components/button/ThemedIconTextButton.d.ts +1 -1
  67. package/lib/typescript/src/components/button/ThemedIconTextButton.d.ts.map +1 -1
  68. package/lib/typescript/src/components/button/ThemedPressable.d.ts +1 -1
  69. package/lib/typescript/src/components/button/ThemedPressable.d.ts.map +1 -1
  70. package/lib/typescript/src/components/icon/ThemedIcon.d.ts +1 -1
  71. package/lib/typescript/src/components/icon/ThemedIcon.d.ts.map +1 -1
  72. package/lib/typescript/src/components/list/List.d.ts +2 -2
  73. package/lib/typescript/src/components/list/List.d.ts.map +1 -1
  74. package/lib/typescript/src/components/loading/ThemedLoading.d.ts +1 -1
  75. package/lib/typescript/src/components/loading/ThemedLoading.d.ts.map +1 -1
  76. package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.d.ts +1 -1
  77. package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.d.ts.map +1 -1
  78. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +1 -1
  79. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +1 -1
  80. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts +1 -1
  81. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -1
  82. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts +1 -1
  83. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -1
  84. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +1 -1
  85. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +1 -1
  86. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts +1 -1
  87. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts.map +1 -1
  88. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts +2 -2
  89. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts.map +1 -1
  90. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts +1 -1
  91. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts.map +1 -1
  92. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts +1 -1
  93. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -1
  94. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +2 -2
  95. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +1 -1
  96. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts +1 -1
  97. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -1
  98. package/lib/typescript/src/components/overlay/alert/Alert.d.ts +1 -1
  99. package/lib/typescript/src/components/overlay/alert/Alert.d.ts.map +1 -1
  100. package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts +1 -1
  101. package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts.map +1 -1
  102. package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts +1 -1
  103. package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts.map +1 -1
  104. package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts +1 -1
  105. package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts.map +1 -1
  106. package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts +3 -3
  107. package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts.map +1 -1
  108. package/lib/typescript/src/components/overlay/contextMenu/ContextMenu.d.ts +5 -0
  109. package/lib/typescript/src/components/overlay/contextMenu/ContextMenu.d.ts.map +1 -0
  110. package/lib/typescript/src/components/overlay/contextMenu/ContextMenuOptionList.d.ts +5 -0
  111. package/lib/typescript/src/components/overlay/contextMenu/ContextMenuOptionList.d.ts.map +1 -0
  112. package/lib/typescript/src/components/overlay/contextMenu/ContextMenuOptionListItem.d.ts +6 -0
  113. package/lib/typescript/src/components/overlay/contextMenu/ContextMenuOptionListItem.d.ts.map +1 -0
  114. package/lib/typescript/src/components/overlay/modal/ThemedLoadingModal.d.ts +1 -1
  115. package/lib/typescript/src/components/overlay/modal/ThemedLoadingModal.d.ts.map +1 -1
  116. package/lib/typescript/src/components/overlay/modal/ThemedModal.d.ts +1 -1
  117. package/lib/typescript/src/components/overlay/modal/ThemedModal.d.ts.map +1 -1
  118. package/lib/typescript/src/components/overlay/toast/ThemedToast.d.ts +1 -1
  119. package/lib/typescript/src/components/overlay/toast/ThemedToast.d.ts.map +1 -1
  120. package/lib/typescript/src/components/provider/ReactNativeTemplateProviders.d.ts +1 -1
  121. package/lib/typescript/src/components/provider/ReactNativeTemplateProviders.d.ts.map +1 -1
  122. package/lib/typescript/src/components/separator/ThemedSeparator.d.ts +1 -1
  123. package/lib/typescript/src/components/separator/ThemedSeparator.d.ts.map +1 -1
  124. package/lib/typescript/src/components/slider/Slider.d.ts +1 -1
  125. package/lib/typescript/src/components/slider/Slider.d.ts.map +1 -1
  126. package/lib/typescript/src/components/slider/ThemedSlider.d.ts +1 -1
  127. package/lib/typescript/src/components/slider/ThemedSlider.d.ts.map +1 -1
  128. package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts +1 -1
  129. package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts.map +1 -1
  130. package/lib/typescript/src/components/switch/ThemedSwitch.d.ts +1 -1
  131. package/lib/typescript/src/components/switch/ThemedSwitch.d.ts.map +1 -1
  132. package/lib/typescript/src/components/text/Text.d.ts +994 -958
  133. package/lib/typescript/src/components/text/Text.d.ts.map +1 -1
  134. package/lib/typescript/src/components/text/ThemedIconText.d.ts +1 -1
  135. package/lib/typescript/src/components/text/ThemedIconText.d.ts.map +1 -1
  136. package/lib/typescript/src/components/text/ThemedText.d.ts +1 -1
  137. package/lib/typescript/src/components/text/ThemedText.d.ts.map +1 -1
  138. package/lib/typescript/src/components/textInput/ThemedTextInput.d.ts +5 -0
  139. package/lib/typescript/src/components/textInput/ThemedTextInput.d.ts.map +1 -0
  140. package/lib/typescript/src/components/view/AnimatedThemedView.d.ts +1 -1
  141. package/lib/typescript/src/components/view/AnimatedThemedView.d.ts.map +1 -1
  142. package/lib/typescript/src/components/view/Box.d.ts +788 -760
  143. package/lib/typescript/src/components/view/Box.d.ts.map +1 -1
  144. package/lib/typescript/src/components/view/ThemedScreenWrap.d.ts +1 -1
  145. package/lib/typescript/src/components/view/ThemedScreenWrap.d.ts.map +1 -1
  146. package/lib/typescript/src/components/view/ThemedScreenWrap.web.d.ts +1 -1
  147. package/lib/typescript/src/components/view/ThemedScreenWrap.web.d.ts.map +1 -1
  148. package/lib/typescript/src/components/view/ThemedScrollView.d.ts +1 -1
  149. package/lib/typescript/src/components/view/ThemedScrollView.d.ts.map +1 -1
  150. package/lib/typescript/src/components/view/ThemedView.d.ts +1 -1
  151. package/lib/typescript/src/components/view/ThemedView.d.ts.map +1 -1
  152. package/lib/typescript/src/hooks/button.d.ts +1 -1
  153. package/lib/typescript/src/hooks/button.d.ts.map +1 -1
  154. package/lib/typescript/src/hooks/list.d.ts +1 -1
  155. package/lib/typescript/src/hooks/list.d.ts.map +1 -1
  156. package/lib/typescript/src/hooks/overlay.d.ts +5 -5
  157. package/lib/typescript/src/hooks/overlay.d.ts.map +1 -1
  158. package/lib/typescript/src/hooks/reanimated.d.ts +1 -1
  159. package/lib/typescript/src/hooks/reanimated.d.ts.map +1 -1
  160. package/lib/typescript/src/hooks/separator.d.ts +3 -3
  161. package/lib/typescript/src/hooks/separator.d.ts.map +1 -1
  162. package/lib/typescript/src/hooks/style.d.ts +11 -4
  163. package/lib/typescript/src/hooks/style.d.ts.map +1 -1
  164. package/lib/typescript/src/hooks/switch.d.ts +4 -4
  165. package/lib/typescript/src/hooks/switch.d.ts.map +1 -1
  166. package/lib/typescript/src/hooks/textInput.d.ts +13 -0
  167. package/lib/typescript/src/hooks/textInput.d.ts.map +1 -0
  168. package/lib/typescript/src/hooks/theme.d.ts +56 -54
  169. package/lib/typescript/src/hooks/theme.d.ts.map +1 -1
  170. package/lib/typescript/src/hooks/view.d.ts +2 -2
  171. package/lib/typescript/src/hooks/view.d.ts.map +1 -1
  172. package/lib/typescript/src/index.d.ts +63 -57
  173. package/lib/typescript/src/index.d.ts.map +1 -1
  174. package/lib/typescript/src/test/utils/const.d.ts +1 -1
  175. package/lib/typescript/src/test/utils/const.d.ts.map +1 -1
  176. package/lib/typescript/src/test/utils/func.d.ts +55 -53
  177. package/lib/typescript/src/test/utils/func.d.ts.map +1 -1
  178. package/lib/typescript/src/types/accordion.d.ts +6 -6
  179. package/lib/typescript/src/types/accordion.d.ts.map +1 -1
  180. package/lib/typescript/src/types/button.d.ts +6 -6
  181. package/lib/typescript/src/types/button.d.ts.map +1 -1
  182. package/lib/typescript/src/types/icon.d.ts +11 -2
  183. package/lib/typescript/src/types/icon.d.ts.map +1 -1
  184. package/lib/typescript/src/types/list.d.ts +4 -4
  185. package/lib/typescript/src/types/list.d.ts.map +1 -1
  186. package/lib/typescript/src/types/loading.d.ts +1 -1
  187. package/lib/typescript/src/types/loading.d.ts.map +1 -1
  188. package/lib/typescript/src/types/overlay.d.ts +31 -9
  189. package/lib/typescript/src/types/overlay.d.ts.map +1 -1
  190. package/lib/typescript/src/types/provider.d.ts +2 -2
  191. package/lib/typescript/src/types/provider.d.ts.map +1 -1
  192. package/lib/typescript/src/types/separator.d.ts +2 -2
  193. package/lib/typescript/src/types/separator.d.ts.map +1 -1
  194. package/lib/typescript/src/types/slider.d.ts +5 -5
  195. package/lib/typescript/src/types/slider.d.ts.map +1 -1
  196. package/lib/typescript/src/types/style.d.ts +4 -2
  197. package/lib/typescript/src/types/style.d.ts.map +1 -1
  198. package/lib/typescript/src/types/switch.d.ts +5 -5
  199. package/lib/typescript/src/types/switch.d.ts.map +1 -1
  200. package/lib/typescript/src/types/text.d.ts +5 -4
  201. package/lib/typescript/src/types/text.d.ts.map +1 -1
  202. package/lib/typescript/src/types/textInput.d.ts +17 -0
  203. package/lib/typescript/src/types/textInput.d.ts.map +1 -0
  204. package/lib/typescript/src/types/view.d.ts +3 -3
  205. package/lib/typescript/src/types/view.d.ts.map +1 -1
  206. package/lib/typescript/src/utils/common/const.d.ts +2 -0
  207. package/lib/typescript/src/utils/common/const.d.ts.map +1 -0
  208. package/lib/typescript/src/utils/common/func.d.ts +4 -0
  209. package/lib/typescript/src/utils/common/func.d.ts.map +1 -0
  210. package/lib/typescript/src/utils/overlay/const.d.ts +6 -5
  211. package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -1
  212. package/lib/typescript/src/utils/overlay/func.d.ts +3 -3
  213. package/lib/typescript/src/utils/overlay/func.d.ts.map +1 -1
  214. package/lib/typescript/src/utils/slider/const.d.ts +1 -1
  215. package/lib/typescript/src/utils/slider/const.d.ts.map +1 -1
  216. package/lib/typescript/src/utils/style/const.d.ts +11 -0
  217. package/lib/typescript/src/utils/style/const.d.ts.map +1 -1
  218. package/lib/typescript/src/utils/style/func.d.ts +2 -1
  219. package/lib/typescript/src/utils/style/func.d.ts.map +1 -1
  220. package/lib/typescript/src/utils/textInput/const.d.ts +3 -0
  221. package/lib/typescript/src/utils/textInput/const.d.ts.map +1 -0
  222. package/lib/typescript/src/utils/theme/const.d.ts +2 -0
  223. package/lib/typescript/src/utils/theme/const.d.ts.map +1 -1
  224. package/lib/typescript/src/utils/theme/restyle.d.ts +996 -463
  225. package/lib/typescript/src/utils/theme/restyle.d.ts.map +1 -1
  226. 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 { Gesture, GestureDetector } from 'react-native-gesture-handler';
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 _worklet_1107268610089_init_data = {
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\":\"AAuGI,SAAAA,WAAA,QAAAC,UAAA,OAAAC,SAAA,OAAO,CAAAC,SAAA,CAAa,CAAC,CAAAC,UAAA,CAAcH,UAAU,CAAAI,GAAI,CAAC,CAAE,CAAC,CAAE,CAAC\",\"ignoreList\":[]}"
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 _worklet_9813808913419_init_data = {
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\":\"AA2GI,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\":[]}"
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 _worklet_5842193172883_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));}",
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\":\"AAoI6B,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\":[]}"
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 _worklet_15465333809693_init_data = {
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);}}",
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\",\"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\":\"AAqJe,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\":[]}"
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 _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)));}}",
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\",\"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\":\"AAgJiB,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\":[]}"
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 _worklet_3836629690946_init_data = {
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);}}",
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\",\"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\":\"AAkKe,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\":[]}"
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 _worklet_9171995940566_init_data = {
74
- code: "function SliderTsx7(t17){const{updateXSharedVal,xSharedVal}=this.__closure;const{changeX:changeX}=t17;updateXSharedVal(xSharedVal.get()+changeX);}",
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\",\"t17\",\"updateXSharedVal\",\"xSharedVal\",\"__closure\",\"changeX\",\"get\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/slider/Slider.tsx\"],\"mappings\":\"AA+JkB,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\":[]}"
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(102);
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
- _worklet_1107268610089_init_data,
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 = 1107268610089;
166
- SliderTsx1.__pluginVersion = "0.8.3";
167
- SliderTsx1.__initData = _worklet_1107268610089_init_data;
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
- _worklet_1107268610089_init_data,
171
+ _worklet_15537206595912_init_data,
172
172
  xSharedVal
173
173
  }), [trackWidth]);
174
174
  const thumbAnimatedStyle = useAnimatedStyle(function SliderTsx2Factory({
175
- _worklet_9813808913419_init_data,
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 = 9813808913419;
190
- SliderTsx2.__pluginVersion = "0.8.3";
191
- SliderTsx2.__initData = _worklet_9813808913419_init_data;
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
- _worklet_9813808913419_init_data,
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
- _worklet_5842193172883_init_data,
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 = 5842193172883;
257
- SliderTsx3.__pluginVersion = "0.8.3";
258
- SliderTsx3.__initData = _worklet_5842193172883_init_data;
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
- _worklet_5842193172883_init_data,
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
- let t13;
278
- if ($[18] !== gestureActivateDuration || $[19] !== sliderWidth || $[20] !== snapToStepAnimated || $[21] !== stepWidth || $[22] !== thumbSize || $[23] !== thumbSizeHalf || $[24] !== updateXSharedVal || $[25] !== windowWidth || $[26] !== xSharedVal) {
279
- let t14;
280
- if ($[28] !== sliderWidth || $[29] !== thumbSize || $[30] !== updateXSharedVal) {
281
- t14 = function SliderTsx5Factory({
282
- _worklet_9051416247764_init_data,
283
- sliderWidth,
284
- updateXSharedVal,
285
- thumbSize
286
- }) {
287
- const _e = [new global.Error(), -4, -27];
288
- const SliderTsx5 = function (t15) {
289
- const {
290
- x: x_1
291
- } = t15;
292
- if (sliderWidth) {
293
- updateXSharedVal(-(sliderWidth - (x_1 + thumbSize * 2)));
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
- $[28] = sliderWidth;
313
- $[29] = thumbSize;
314
- $[30] = updateXSharedVal;
315
- $[31] = t14;
316
- } else {
317
- t14 = $[31];
318
- }
319
- let t15;
320
- if ($[32] !== sliderWidth || $[33] !== snapToStepAnimated || $[34] !== stepWidth || $[35] !== thumbSize || $[36] !== thumbSizeHalf || $[37] !== updateXSharedVal) {
321
- t15 = function SliderTsx4Factory({
322
- _worklet_15465333809693_init_data,
323
- sliderWidth,
324
- stepWidth,
325
- thumbSize,
326
- thumbSizeHalf,
327
- updateXSharedVal,
328
- snapToStepAnimated
329
- }) {
330
- const _e = [new global.Error(), -7, -27];
331
- const SliderTsx4 = function (t16) {
332
- const {
333
- x: x_2
334
- } = t16;
335
- if (sliderWidth && stepWidth) {
336
- const nearestStep = Math.round(-(sliderWidth - (x_2 + thumbSize + thumbSizeHalf)) / stepWidth);
337
- updateXSharedVal(nearestStep * stepWidth, snapToStepAnimated);
338
- }
339
- };
340
- SliderTsx4.__closure = {
341
- sliderWidth,
342
- stepWidth,
343
- thumbSize,
344
- thumbSizeHalf,
345
- updateXSharedVal,
346
- snapToStepAnimated
347
- };
348
- SliderTsx4.__workletHash = 15465333809693;
349
- SliderTsx4.__pluginVersion = "0.8.3";
350
- SliderTsx4.__initData = _worklet_15465333809693_init_data;
351
- SliderTsx4.__stackDetails = _e;
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
- $[32] = sliderWidth;
363
- $[33] = snapToStepAnimated;
364
- $[34] = stepWidth;
365
- $[35] = thumbSize;
366
- $[36] = thumbSizeHalf;
367
- $[37] = updateXSharedVal;
368
- $[38] = t15;
369
- } else {
370
- t15 = $[38];
371
- }
372
- let t16;
373
- if ($[39] !== updateXSharedVal || $[40] !== xSharedVal) {
374
- t16 = function SliderTsx7Factory({
375
- _worklet_9171995940566_init_data,
376
- updateXSharedVal,
377
- xSharedVal
378
- }) {
379
- const _e = [new global.Error(), -3, -27];
380
- const SliderTsx7 = function (t17) {
381
- const {
382
- changeX
383
- } = t17;
384
- updateXSharedVal(xSharedVal.get() + changeX);
385
- };
386
- SliderTsx7.__closure = {
387
- updateXSharedVal,
388
- xSharedVal
389
- };
390
- SliderTsx7.__workletHash = 9171995940566;
391
- SliderTsx7.__pluginVersion = "0.8.3";
392
- SliderTsx7.__initData = _worklet_9171995940566_init_data;
393
- SliderTsx7.__stackDetails = _e;
394
- return SliderTsx7;
395
- }({
396
- _worklet_9171995940566_init_data,
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
- $[39] = updateXSharedVal;
401
- $[40] = xSharedVal;
402
- $[41] = t16;
403
- } else {
404
- t16 = $[41];
405
- }
406
- let t17;
407
- if ($[42] !== snapToStepAnimated || $[43] !== stepWidth || $[44] !== updateXSharedVal || $[45] !== xSharedVal) {
408
- t17 = function SliderTsx6Factory({
409
- _worklet_3836629690946_init_data,
410
- stepWidth,
411
- xSharedVal,
412
- updateXSharedVal,
413
- snapToStepAnimated
414
- }) {
415
- const _e = [new global.Error(), -5, -27];
416
- const SliderTsx6 = function () {
417
- if (stepWidth) {
418
- const nearestStep_0 = Math.round(xSharedVal.get() / stepWidth);
419
- updateXSharedVal(nearestStep_0 * stepWidth, snapToStepAnimated);
420
- }
421
- };
422
- SliderTsx6.__closure = {
423
- stepWidth,
424
- xSharedVal,
425
- updateXSharedVal,
426
- snapToStepAnimated
427
- };
428
- SliderTsx6.__workletHash = 3836629690946;
429
- SliderTsx6.__pluginVersion = "0.8.3";
430
- SliderTsx6.__initData = _worklet_3836629690946_init_data;
431
- SliderTsx6.__stackDetails = _e;
432
- return SliderTsx6;
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
- $[42] = snapToStepAnimated;
441
- $[43] = stepWidth;
442
- $[44] = updateXSharedVal;
443
- $[45] = xSharedVal;
444
- $[46] = t17;
445
- } else {
446
- t17 = $[46];
447
- }
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));
449
- $[18] = gestureActivateDuration;
450
- $[19] = sliderWidth;
451
- $[20] = snapToStepAnimated;
452
- $[21] = stepWidth;
453
- $[22] = thumbSize;
454
- $[23] = thumbSizeHalf;
455
- $[24] = updateXSharedVal;
456
- $[25] = windowWidth;
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
- t13 = $[27];
463
+ t18 = $[41];
461
464
  }
462
- const gesture = t13;
463
- let t14;
464
- if ($[47] !== isNumRange || $[48] !== processedRange || $[49] !== selectedValSharedVal || $[50] !== steps || $[51] !== thumbSize || $[52] !== thumbSizeHalf || $[53] !== totalSteps || $[54] !== xSharedVal) {
465
- t14 = width => {
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
- $[47] = isNumRange;
484
- $[48] = processedRange;
485
- $[49] = selectedValSharedVal;
486
- $[50] = steps;
487
- $[51] = thumbSize;
488
- $[52] = thumbSizeHalf;
489
- $[53] = totalSteps;
490
- $[54] = xSharedVal;
491
- $[55] = t14;
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
- t14 = $[55];
511
+ t20 = $[54];
494
512
  }
495
- const updateSliderLayout = t14;
496
- let t15;
497
- if ($[56] !== trackViewRef || $[57] !== updateSliderLayout) {
498
- t15 = () => {
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
- $[56] = trackViewRef;
504
- $[57] = updateSliderLayout;
505
- $[58] = t15;
521
+ $[55] = trackViewRef;
522
+ $[56] = updateSliderLayout;
523
+ $[57] = t21;
506
524
  } else {
507
- t15 = $[58];
525
+ t21 = $[57];
508
526
  }
509
- let t16;
510
- if ($[59] !== isNumRange || $[60] !== processedRange || $[61] !== thumbSize || $[62] !== totalSteps) {
511
- t16 = [thumbSize, isNumRange, processedRange, totalSteps];
512
- $[59] = isNumRange;
513
- $[60] = processedRange;
514
- $[61] = thumbSize;
515
- $[62] = totalSteps;
516
- $[63] = t16;
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
- t16 = $[63];
536
+ t22 = $[62];
519
537
  }
520
- useLayoutEffect(t15, t16);
521
- let t17;
522
- if ($[64] !== updateSliderLayout) {
523
- t17 = t18 => {
538
+ useLayoutEffect(t21, t22);
539
+ let t23;
540
+ if ($[63] !== updateSliderLayout) {
541
+ t23 = t24 => {
524
542
  const {
525
- nativeEvent: t19
526
- } = t18;
543
+ nativeEvent: t25
544
+ } = t24;
527
545
  const {
528
- layout: t20
529
- } = t19;
546
+ layout: t26
547
+ } = t25;
530
548
  const {
531
549
  width: width_0
532
- } = t20;
550
+ } = t26;
533
551
  updateSliderLayout(width_0);
534
552
  };
535
- $[64] = updateSliderLayout;
536
- $[65] = t17;
553
+ $[63] = updateSliderLayout;
554
+ $[64] = t23;
537
555
  } else {
538
- t17 = $[65];
556
+ t23 = $[64];
539
557
  }
540
- const onLayout = t17;
541
- let t18;
542
- if ($[66] !== trackActiveColor || $[67] !== trackAnimatedStyle || $[68] !== trackInactiveProps || $[69] !== trackSize) {
543
- t18 = /*#__PURE__*/_jsx(AnimatedThemedView, {
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
- $[66] = trackActiveColor;
550
- $[67] = trackAnimatedStyle;
551
- $[68] = trackInactiveProps;
552
- $[69] = trackSize;
553
- $[70] = t18;
567
+ $[65] = trackActiveColor;
568
+ $[66] = trackAnimatedStyle;
569
+ $[67] = trackInactiveProps;
570
+ $[68] = trackSize;
571
+ $[69] = t24;
554
572
  } else {
555
- t18 = $[70];
573
+ t24 = $[69];
556
574
  }
557
- let t19;
558
- if ($[71] !== t18 || $[72] !== trackActiveProps || $[73] !== trackInactiveColor || $[74] !== trackSize || $[75] !== trackWidth) {
559
- t19 = /*#__PURE__*/_jsx(ThemedView, {
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: t18
584
+ children: t24
567
585
  });
568
- $[71] = t18;
569
- $[72] = trackActiveProps;
570
- $[73] = trackInactiveColor;
571
- $[74] = trackSize;
572
- $[75] = trackWidth;
573
- $[76] = t19;
586
+ $[70] = t24;
587
+ $[71] = trackActiveProps;
588
+ $[72] = trackInactiveColor;
589
+ $[73] = trackSize;
590
+ $[74] = trackWidth;
591
+ $[75] = t25;
574
592
  } else {
575
- t19 = $[76];
593
+ t25 = $[75];
576
594
  }
577
- let t20;
578
- if ($[77] !== getMappingKey || $[78] !== processedRange || $[79] !== stepIndicator || $[80] !== stepIndicatorProps || $[81] !== stepWidth || $[82] !== thumbSize || $[83] !== thumbSizeHalf) {
579
- t20 = !!stepIndicator && processedRange.map((value, index_0) => /*#__PURE__*/_jsx(ThemedSliderStepIndicator, {
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
- $[77] = getMappingKey;
585
- $[78] = processedRange;
586
- $[79] = stepIndicator;
587
- $[80] = stepIndicatorProps;
588
- $[81] = stepWidth;
589
- $[82] = thumbSize;
590
- $[83] = thumbSizeHalf;
591
- $[84] = t20;
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
- t20 = $[84];
611
+ t26 = $[83];
594
612
  }
595
- const t21 = -thumbSizeHalf;
596
- let t22;
597
- if ($[85] !== t21 || $[86] !== thumbAnimatedStyle || $[87] !== thumbColor || $[88] !== thumbProps || $[89] !== thumbSize) {
598
- t22 = /*#__PURE__*/_jsx(AnimatedThemedView, {
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: t21,
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
- $[85] = t21;
609
- $[86] = thumbAnimatedStyle;
610
- $[87] = thumbColor;
611
- $[88] = thumbProps;
612
- $[89] = thumbSize;
613
- $[90] = t22;
626
+ $[84] = t27;
627
+ $[85] = thumbAnimatedStyle;
628
+ $[86] = thumbColor;
629
+ $[87] = thumbProps;
630
+ $[88] = thumbSize;
631
+ $[89] = t28;
614
632
  } else {
615
- t22 = $[90];
633
+ t28 = $[89];
616
634
  }
617
- let t23;
618
- if ($[91] !== onLayout || $[92] !== sliderWrapProps || $[93] !== t19 || $[94] !== t20 || $[95] !== t22 || $[96] !== thumbSize || $[97] !== trackViewRef) {
619
- t23 = /*#__PURE__*/_jsxs(ThemedView, {
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: [t19, t20, t22]
645
+ children: [t25, t26, t28]
628
646
  });
629
- $[91] = onLayout;
630
- $[92] = sliderWrapProps;
631
- $[93] = t19;
632
- $[94] = t20;
633
- $[95] = t22;
634
- $[96] = thumbSize;
635
- $[97] = trackViewRef;
636
- $[98] = t23;
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
- t23 = $[98];
656
+ t29 = $[97];
639
657
  }
640
- let t24;
641
- if ($[99] !== gesture || $[100] !== t23) {
642
- t24 = /*#__PURE__*/_jsx(GestureDetector, {
643
- gesture: gesture,
644
- children: t23
658
+ let t30;
659
+ if ($[98] !== simultaneousGesture || $[99] !== t29) {
660
+ t30 = /*#__PURE__*/_jsx(GestureDetector, {
661
+ gesture: simultaneousGesture,
662
+ children: t29
645
663
  });
646
- $[99] = gesture;
647
- $[100] = t23;
648
- $[101] = t24;
664
+ $[98] = simultaneousGesture;
665
+ $[99] = t29;
666
+ $[100] = t30;
649
667
  } else {
650
- t24 = $[101];
668
+ t30 = $[100];
651
669
  }
652
- return t24;
670
+ return t30;
653
671
  };
654
672
  export default Slider;
655
673
  //# sourceMappingURL=Slider.js.map