@jamadd/react-native-template-ui 0.2.1 → 0.2.4

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 (657) hide show
  1. package/lib/module/components/button/AnimatedThemedPressable.js +5 -17
  2. package/lib/module/components/button/AnimatedThemedPressable.js.map +1 -1
  3. package/lib/module/components/button/ThemedButton.js +20 -75
  4. package/lib/module/components/button/ThemedButton.js.map +1 -1
  5. package/lib/module/components/button/ThemedIconButton.js +16 -62
  6. package/lib/module/components/button/ThemedIconButton.js.map +1 -1
  7. package/lib/module/components/button/ThemedIconTextButton.js +29 -118
  8. package/lib/module/components/button/ThemedIconTextButton.js.map +1 -1
  9. package/lib/module/components/button/ThemedPressable.js +5 -17
  10. package/lib/module/components/button/ThemedPressable.js.map +1 -1
  11. package/lib/module/components/icon/ThemedIcon.js +15 -56
  12. package/lib/module/components/icon/ThemedIcon.js.map +1 -1
  13. package/lib/module/components/list/List.js +39 -131
  14. package/lib/module/components/list/List.js.map +1 -1
  15. package/lib/module/components/loading/ThemedLoading.js +13 -50
  16. package/lib/module/components/loading/ThemedLoading.js.map +1 -1
  17. package/lib/module/components/overlay/actionSheet/ActionSheet.js +19 -64
  18. package/lib/module/components/overlay/actionSheet/ActionSheet.js.map +1 -1
  19. package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js +8 -19
  20. package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js.map +1 -1
  21. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js +31 -87
  22. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
  23. package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +25 -66
  24. package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
  25. package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js +14 -39
  26. package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js.map +1 -1
  27. package/lib/module/components/overlay/actionSheet/ActionSheetOptList.js +25 -58
  28. package/lib/module/components/overlay/actionSheet/ActionSheetOptList.js.map +1 -1
  29. package/lib/module/components/overlay/actionSheet/ActionSheetOptListItem.js +21 -45
  30. package/lib/module/components/overlay/actionSheet/ActionSheetOptListItem.js.map +1 -1
  31. package/lib/module/components/overlay/actionSheet/ActionSheetOpts.js +30 -72
  32. package/lib/module/components/overlay/actionSheet/ActionSheetOpts.js.map +1 -1
  33. package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +28 -69
  34. package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
  35. package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js +18 -45
  36. package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js.map +1 -1
  37. package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js +31 -139
  38. package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js.map +1 -1
  39. package/lib/module/components/overlay/alert/Alert.js +47 -125
  40. package/lib/module/components/overlay/alert/Alert.js.map +1 -1
  41. package/lib/module/components/overlay/alert/AlertButton.js +26 -62
  42. package/lib/module/components/overlay/alert/AlertButton.js.map +1 -1
  43. package/lib/module/components/overlay/alert/AlertButtons.js +23 -58
  44. package/lib/module/components/overlay/alert/AlertButtons.js.map +1 -1
  45. package/lib/module/components/overlay/alert/AlertContent.js +15 -45
  46. package/lib/module/components/overlay/alert/AlertContent.js.map +1 -1
  47. package/lib/module/components/overlay/alert/AlertWrap.js +45 -132
  48. package/lib/module/components/overlay/alert/AlertWrap.js.map +1 -1
  49. package/lib/module/components/overlay/modal/ThemedLoadingModal.js +21 -96
  50. package/lib/module/components/overlay/modal/ThemedLoadingModal.js.map +1 -1
  51. package/lib/module/components/overlay/modal/ThemedModal.js +23 -75
  52. package/lib/module/components/overlay/modal/ThemedModal.js.map +1 -1
  53. package/lib/module/components/overlay/toast/ThemedToast.js +91 -321
  54. package/lib/module/components/overlay/toast/ThemedToast.js.map +1 -1
  55. package/lib/module/components/provider/GestureProvider.js +3 -15
  56. package/lib/module/components/provider/GestureProvider.js.map +1 -1
  57. package/lib/module/components/provider/InsetsProvider.js +3 -15
  58. package/lib/module/components/provider/InsetsProvider.js.map +1 -1
  59. package/lib/module/components/provider/ReactNativeTemplateProviders.js +11 -23
  60. package/lib/module/components/provider/ReactNativeTemplateProviders.js.map +1 -1
  61. package/lib/module/components/provider/ThemeProvider.js +3 -15
  62. package/lib/module/components/provider/ThemeProvider.js.map +1 -1
  63. package/lib/module/components/separator/ThemedSeparator.js +14 -53
  64. package/lib/module/components/separator/ThemedSeparator.js.map +1 -1
  65. package/lib/module/components/switch/ThemedSwitch.js +21 -89
  66. package/lib/module/components/switch/ThemedSwitch.js.map +1 -1
  67. package/lib/module/components/text/ThemedIconText.js +35 -124
  68. package/lib/module/components/text/ThemedIconText.js.map +1 -1
  69. package/lib/module/components/text/ThemedText.js +3 -15
  70. package/lib/module/components/text/ThemedText.js.map +1 -1
  71. package/lib/module/components/view/AnimatedThemedView.js +10 -33
  72. package/lib/module/components/view/AnimatedThemedView.js.map +1 -1
  73. package/lib/module/components/view/ThemedScreenWrap.js +32 -110
  74. package/lib/module/components/view/ThemedScreenWrap.js.map +1 -1
  75. package/lib/module/components/view/ThemedScreenWrap.web.js +32 -111
  76. package/lib/module/components/view/ThemedScreenWrap.web.js.map +1 -1
  77. package/lib/module/components/view/ThemedScrollView.js +38 -126
  78. package/lib/module/components/view/ThemedScrollView.js.map +1 -1
  79. package/lib/module/components/view/ThemedView.js +10 -33
  80. package/lib/module/components/view/ThemedView.js.map +1 -1
  81. package/lib/module/hooks/button.js +54 -158
  82. package/lib/module/hooks/button.js.map +1 -1
  83. package/lib/module/hooks/list.js +10 -50
  84. package/lib/module/hooks/list.js.map +1 -1
  85. package/lib/module/hooks/overlay.js +170 -528
  86. package/lib/module/hooks/overlay.js.map +1 -1
  87. package/lib/module/hooks/reanimated.js.map +1 -1
  88. package/lib/module/hooks/style.js +18 -43
  89. package/lib/module/hooks/style.js.map +1 -1
  90. package/lib/module/hooks/switch.js +44 -182
  91. package/lib/module/hooks/switch.js.map +1 -1
  92. package/lib/module/hooks/theme.js +8 -17
  93. package/lib/module/hooks/theme.js.map +1 -1
  94. package/lib/module/hooks/view.js.map +1 -1
  95. package/lib/module/utils/reanimated/func.js +10 -60
  96. package/lib/module/utils/reanimated/func.js.map +1 -1
  97. package/lib/typescript/src/components/button/AnimatedPressable.d.ts.map +1 -0
  98. package/lib/typescript/src/components/button/AnimatedThemedPressable.d.ts.map +1 -0
  99. package/lib/typescript/src/components/button/ThemedButton.d.ts.map +1 -0
  100. package/lib/typescript/src/components/button/ThemedIconButton.d.ts.map +1 -0
  101. package/lib/typescript/src/components/button/ThemedIconTextButton.d.ts.map +1 -0
  102. package/lib/typescript/src/components/button/ThemedPressable.d.ts.map +1 -0
  103. package/lib/typescript/src/components/icon/ThemedIcon.d.ts.map +1 -0
  104. package/lib/typescript/src/components/list/List.d.ts.map +1 -0
  105. package/lib/typescript/src/components/loading/ThemedLoading.d.ts.map +1 -0
  106. package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.d.ts.map +1 -0
  107. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +1 -0
  108. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -0
  109. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -0
  110. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +1 -0
  111. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptList.d.ts.map +1 -0
  112. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptListItem.d.ts.map +1 -0
  113. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOpts.d.ts.map +1 -0
  114. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -0
  115. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +1 -0
  116. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -0
  117. package/lib/typescript/src/components/overlay/alert/Alert.d.ts.map +1 -0
  118. package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts.map +1 -0
  119. package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts.map +1 -0
  120. package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts.map +1 -0
  121. package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts.map +1 -0
  122. package/lib/typescript/src/components/overlay/modal/ThemedLoadingModal.d.ts.map +1 -0
  123. package/lib/typescript/src/components/overlay/modal/ThemedModal.d.ts.map +1 -0
  124. package/lib/typescript/src/components/overlay/toast/ThemedToast.d.ts.map +1 -0
  125. package/lib/typescript/src/components/provider/GestureProvider.d.ts.map +1 -0
  126. package/lib/typescript/src/components/provider/InsetsProvider.d.ts.map +1 -0
  127. package/lib/typescript/src/components/provider/ReactNativeTemplateProviders.d.ts.map +1 -0
  128. package/lib/typescript/src/components/provider/ThemeProvider.d.ts.map +1 -0
  129. package/lib/typescript/src/components/separator/ThemedSeparator.d.ts.map +1 -0
  130. package/lib/typescript/src/components/switch/ThemedSwitch.d.ts.map +1 -0
  131. package/lib/typescript/{commonjs/src → src}/components/text/Text.d.ts.map +1 -1
  132. package/lib/typescript/src/components/text/ThemedIconText.d.ts.map +1 -0
  133. package/lib/typescript/src/components/text/ThemedText.d.ts.map +1 -0
  134. package/lib/typescript/{module/src → src}/components/view/AnimatedBox.d.ts.map +1 -1
  135. package/lib/typescript/src/components/view/AnimatedThemedView.d.ts.map +1 -0
  136. package/lib/typescript/{commonjs/src → src}/components/view/Box.d.ts.map +1 -1
  137. package/lib/typescript/src/components/view/ThemedScreenWrap.d.ts.map +1 -0
  138. package/lib/typescript/src/components/view/ThemedScreenWrap.web.d.ts.map +1 -0
  139. package/lib/typescript/src/components/view/ThemedScrollView.d.ts.map +1 -0
  140. package/lib/typescript/src/components/view/ThemedView.d.ts.map +1 -0
  141. package/lib/typescript/{commonjs/src → src}/hooks/button.d.ts.map +1 -1
  142. package/lib/typescript/src/hooks/list.d.ts.map +1 -0
  143. package/lib/typescript/src/hooks/overlay.d.ts.map +1 -0
  144. package/lib/typescript/src/hooks/reanimated.d.ts.map +1 -0
  145. package/lib/typescript/src/hooks/separator.d.ts.map +1 -0
  146. package/lib/typescript/src/hooks/style.d.ts.map +1 -0
  147. package/lib/typescript/{commonjs/src → src}/hooks/switch.d.ts.map +1 -1
  148. package/lib/typescript/src/hooks/theme.d.ts.map +1 -0
  149. package/lib/typescript/src/hooks/view.d.ts.map +1 -0
  150. package/lib/typescript/src/index.d.ts.map +1 -0
  151. package/lib/typescript/src/test/utils/const.d.ts.map +1 -0
  152. package/lib/typescript/src/test/utils/func.d.ts.map +1 -0
  153. package/lib/typescript/src/test/utils/testingLib.d.ts.map +1 -0
  154. package/lib/typescript/src/types/button.d.ts.map +1 -0
  155. package/lib/typescript/src/types/icon.d.ts.map +1 -0
  156. package/lib/typescript/src/types/list.d.ts.map +1 -0
  157. package/lib/typescript/src/types/loading.d.ts.map +1 -0
  158. package/lib/typescript/src/types/overlay.d.ts.map +1 -0
  159. package/lib/typescript/src/types/provider.d.ts.map +1 -0
  160. package/lib/typescript/src/types/react.d.ts.map +1 -0
  161. package/lib/typescript/src/types/reanimated.d.ts.map +1 -0
  162. package/lib/typescript/src/types/separator.d.ts.map +1 -0
  163. package/lib/typescript/src/types/style.d.ts.map +1 -0
  164. package/lib/typescript/src/types/switch.d.ts.map +1 -0
  165. package/lib/typescript/src/types/text.d.ts.map +1 -0
  166. package/lib/typescript/src/types/theme.d.ts.map +1 -0
  167. package/lib/typescript/src/types/view.d.ts.map +1 -0
  168. package/lib/typescript/src/utils/button/const.d.ts.map +1 -0
  169. package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -0
  170. package/lib/typescript/src/utils/overlay/func.d.ts.map +1 -0
  171. package/lib/typescript/src/utils/reanimated/func.d.ts.map +1 -0
  172. package/lib/typescript/src/utils/style/const.d.ts.map +1 -0
  173. package/lib/typescript/src/utils/style/func.d.ts.map +1 -0
  174. package/lib/typescript/src/utils/switch/const.d.ts.map +1 -0
  175. package/lib/typescript/src/utils/theme/const.d.ts.map +1 -0
  176. package/lib/typescript/src/utils/theme/restyle.d.ts.map +1 -0
  177. package/package.json +57 -78
  178. package/lib/commonjs/components/button/AnimatedPressable.js +0 -14
  179. package/lib/commonjs/components/button/AnimatedPressable.js.map +0 -1
  180. package/lib/commonjs/components/button/AnimatedThemedPressable.js +0 -36
  181. package/lib/commonjs/components/button/AnimatedThemedPressable.js.map +0 -1
  182. package/lib/commonjs/components/button/ThemedButton.js +0 -97
  183. package/lib/commonjs/components/button/ThemedButton.js.map +0 -1
  184. package/lib/commonjs/components/button/ThemedIconButton.js +0 -81
  185. package/lib/commonjs/components/button/ThemedIconButton.js.map +0 -1
  186. package/lib/commonjs/components/button/ThemedIconTextButton.js +0 -146
  187. package/lib/commonjs/components/button/ThemedIconTextButton.js.map +0 -1
  188. package/lib/commonjs/components/button/ThemedPressable.js +0 -35
  189. package/lib/commonjs/components/button/ThemedPressable.js.map +0 -1
  190. package/lib/commonjs/components/icon/ThemedIcon.js +0 -71
  191. package/lib/commonjs/components/icon/ThemedIcon.js.map +0 -1
  192. package/lib/commonjs/components/list/List.js +0 -144
  193. package/lib/commonjs/components/list/List.js.map +0 -1
  194. package/lib/commonjs/components/loading/ThemedLoading.js +0 -64
  195. package/lib/commonjs/components/loading/ThemedLoading.js.map +0 -1
  196. package/lib/commonjs/components/overlay/actionSheet/ActionSheet.js +0 -80
  197. package/lib/commonjs/components/overlay/actionSheet/ActionSheet.js.map +0 -1
  198. package/lib/commonjs/components/overlay/actionSheet/ActionSheetContentGesture.js +0 -34
  199. package/lib/commonjs/components/overlay/actionSheet/ActionSheetContentGesture.js.map +0 -1
  200. package/lib/commonjs/components/overlay/actionSheet/ActionSheetHeader.js +0 -119
  201. package/lib/commonjs/components/overlay/actionSheet/ActionSheetHeader.js.map +0 -1
  202. package/lib/commonjs/components/overlay/actionSheet/ActionSheetListView.js +0 -84
  203. package/lib/commonjs/components/overlay/actionSheet/ActionSheetListView.js.map +0 -1
  204. package/lib/commonjs/components/overlay/actionSheet/ActionSheetListViewContent.js +0 -57
  205. package/lib/commonjs/components/overlay/actionSheet/ActionSheetListViewContent.js.map +0 -1
  206. package/lib/commonjs/components/overlay/actionSheet/ActionSheetOptList.js +0 -82
  207. package/lib/commonjs/components/overlay/actionSheet/ActionSheetOptList.js.map +0 -1
  208. package/lib/commonjs/components/overlay/actionSheet/ActionSheetOptListItem.js +0 -67
  209. package/lib/commonjs/components/overlay/actionSheet/ActionSheetOptListItem.js.map +0 -1
  210. package/lib/commonjs/components/overlay/actionSheet/ActionSheetOpts.js +0 -92
  211. package/lib/commonjs/components/overlay/actionSheet/ActionSheetOpts.js.map +0 -1
  212. package/lib/commonjs/components/overlay/actionSheet/ActionSheetScrollView.js +0 -89
  213. package/lib/commonjs/components/overlay/actionSheet/ActionSheetScrollView.js.map +0 -1
  214. package/lib/commonjs/components/overlay/actionSheet/ActionSheetScrollViewContent.js +0 -64
  215. package/lib/commonjs/components/overlay/actionSheet/ActionSheetScrollViewContent.js.map +0 -1
  216. package/lib/commonjs/components/overlay/actionSheet/ActionSheetWrap.js +0 -167
  217. package/lib/commonjs/components/overlay/actionSheet/ActionSheetWrap.js.map +0 -1
  218. package/lib/commonjs/components/overlay/alert/Alert.js +0 -160
  219. package/lib/commonjs/components/overlay/alert/Alert.js.map +0 -1
  220. package/lib/commonjs/components/overlay/alert/AlertButton.js +0 -82
  221. package/lib/commonjs/components/overlay/alert/AlertButton.js.map +0 -1
  222. package/lib/commonjs/components/overlay/alert/AlertButtons.js +0 -71
  223. package/lib/commonjs/components/overlay/alert/AlertButtons.js.map +0 -1
  224. package/lib/commonjs/components/overlay/alert/AlertContent.js +0 -61
  225. package/lib/commonjs/components/overlay/alert/AlertContent.js.map +0 -1
  226. package/lib/commonjs/components/overlay/alert/AlertWrap.js +0 -157
  227. package/lib/commonjs/components/overlay/alert/AlertWrap.js.map +0 -1
  228. package/lib/commonjs/components/overlay/modal/ThemedLoadingModal.js +0 -122
  229. package/lib/commonjs/components/overlay/modal/ThemedLoadingModal.js.map +0 -1
  230. package/lib/commonjs/components/overlay/modal/ThemedModal.js +0 -94
  231. package/lib/commonjs/components/overlay/modal/ThemedModal.js.map +0 -1
  232. package/lib/commonjs/components/overlay/toast/ThemedToast.js +0 -357
  233. package/lib/commonjs/components/overlay/toast/ThemedToast.js.map +0 -1
  234. package/lib/commonjs/components/provider/GestureProvider.js +0 -25
  235. package/lib/commonjs/components/provider/GestureProvider.js.map +0 -1
  236. package/lib/commonjs/components/provider/InsetsProvider.js +0 -25
  237. package/lib/commonjs/components/provider/InsetsProvider.js.map +0 -1
  238. package/lib/commonjs/components/provider/ReactNativeTemplateProviders.js +0 -38
  239. package/lib/commonjs/components/provider/ReactNativeTemplateProviders.js.map +0 -1
  240. package/lib/commonjs/components/provider/ThemeProvider.js +0 -25
  241. package/lib/commonjs/components/provider/ThemeProvider.js.map +0 -1
  242. package/lib/commonjs/components/separator/ThemedSeparator.js +0 -66
  243. package/lib/commonjs/components/separator/ThemedSeparator.js.map +0 -1
  244. package/lib/commonjs/components/switch/ThemedSwitch.js +0 -114
  245. package/lib/commonjs/components/switch/ThemedSwitch.js.map +0 -1
  246. package/lib/commonjs/components/text/Text.js +0 -12
  247. package/lib/commonjs/components/text/Text.js.map +0 -1
  248. package/lib/commonjs/components/text/ThemedIconText.js +0 -143
  249. package/lib/commonjs/components/text/ThemedIconText.js.map +0 -1
  250. package/lib/commonjs/components/text/ThemedText.js +0 -26
  251. package/lib/commonjs/components/text/ThemedText.js.map +0 -1
  252. package/lib/commonjs/components/view/AnimatedBox.js +0 -14
  253. package/lib/commonjs/components/view/AnimatedBox.js.map +0 -1
  254. package/lib/commonjs/components/view/AnimatedThemedView.js +0 -45
  255. package/lib/commonjs/components/view/AnimatedThemedView.js.map +0 -1
  256. package/lib/commonjs/components/view/Box.js +0 -12
  257. package/lib/commonjs/components/view/Box.js.map +0 -1
  258. package/lib/commonjs/components/view/ThemedScreenWrap.js +0 -124
  259. package/lib/commonjs/components/view/ThemedScreenWrap.js.map +0 -1
  260. package/lib/commonjs/components/view/ThemedScreenWrap.web.js +0 -126
  261. package/lib/commonjs/components/view/ThemedScreenWrap.web.js.map +0 -1
  262. package/lib/commonjs/components/view/ThemedScrollView.js +0 -141
  263. package/lib/commonjs/components/view/ThemedScrollView.js.map +0 -1
  264. package/lib/commonjs/components/view/ThemedView.js +0 -45
  265. package/lib/commonjs/components/view/ThemedView.js.map +0 -1
  266. package/lib/commonjs/hooks/button.js +0 -203
  267. package/lib/commonjs/hooks/button.js.map +0 -1
  268. package/lib/commonjs/hooks/list.js +0 -66
  269. package/lib/commonjs/hooks/list.js.map +0 -1
  270. package/lib/commonjs/hooks/overlay.js +0 -703
  271. package/lib/commonjs/hooks/overlay.js.map +0 -1
  272. package/lib/commonjs/hooks/reanimated.js +0 -11
  273. package/lib/commonjs/hooks/reanimated.js.map +0 -1
  274. package/lib/commonjs/hooks/separator.js +0 -22
  275. package/lib/commonjs/hooks/separator.js.map +0 -1
  276. package/lib/commonjs/hooks/style.js +0 -92
  277. package/lib/commonjs/hooks/style.js.map +0 -1
  278. package/lib/commonjs/hooks/switch.js +0 -209
  279. package/lib/commonjs/hooks/switch.js.map +0 -1
  280. package/lib/commonjs/hooks/theme.js +0 -70
  281. package/lib/commonjs/hooks/theme.js.map +0 -1
  282. package/lib/commonjs/hooks/view.js +0 -11
  283. package/lib/commonjs/hooks/view.js.map +0 -1
  284. package/lib/commonjs/index.js +0 -533
  285. package/lib/commonjs/index.js.map +0 -1
  286. package/lib/commonjs/package.json +0 -1
  287. package/lib/commonjs/test/utils/const.js +0 -19
  288. package/lib/commonjs/test/utils/const.js.map +0 -1
  289. package/lib/commonjs/test/utils/func.js +0 -60
  290. package/lib/commonjs/test/utils/func.js.map +0 -1
  291. package/lib/commonjs/test/utils/testingLib.js +0 -38
  292. package/lib/commonjs/test/utils/testingLib.js.map +0 -1
  293. package/lib/commonjs/types/button.js +0 -6
  294. package/lib/commonjs/types/button.js.map +0 -1
  295. package/lib/commonjs/types/global.d.js +0 -6
  296. package/lib/commonjs/types/global.d.js.map +0 -1
  297. package/lib/commonjs/types/icon.js +0 -6
  298. package/lib/commonjs/types/icon.js.map +0 -1
  299. package/lib/commonjs/types/list.js +0 -6
  300. package/lib/commonjs/types/list.js.map +0 -1
  301. package/lib/commonjs/types/loading.js +0 -6
  302. package/lib/commonjs/types/loading.js.map +0 -1
  303. package/lib/commonjs/types/overlay.js +0 -6
  304. package/lib/commonjs/types/overlay.js.map +0 -1
  305. package/lib/commonjs/types/provider.js +0 -6
  306. package/lib/commonjs/types/provider.js.map +0 -1
  307. package/lib/commonjs/types/react.js +0 -6
  308. package/lib/commonjs/types/react.js.map +0 -1
  309. package/lib/commonjs/types/reanimated.js +0 -6
  310. package/lib/commonjs/types/reanimated.js.map +0 -1
  311. package/lib/commonjs/types/separator.js +0 -6
  312. package/lib/commonjs/types/separator.js.map +0 -1
  313. package/lib/commonjs/types/style.js +0 -6
  314. package/lib/commonjs/types/style.js.map +0 -1
  315. package/lib/commonjs/types/switch.js +0 -6
  316. package/lib/commonjs/types/switch.js.map +0 -1
  317. package/lib/commonjs/types/text.js +0 -6
  318. package/lib/commonjs/types/text.js.map +0 -1
  319. package/lib/commonjs/types/theme.js +0 -6
  320. package/lib/commonjs/types/theme.js.map +0 -1
  321. package/lib/commonjs/types/view.js +0 -6
  322. package/lib/commonjs/types/view.js.map +0 -1
  323. package/lib/commonjs/utils/button/const.js +0 -17
  324. package/lib/commonjs/utils/button/const.js.map +0 -1
  325. package/lib/commonjs/utils/overlay/const.js +0 -73
  326. package/lib/commonjs/utils/overlay/const.js.map +0 -1
  327. package/lib/commonjs/utils/overlay/func.js +0 -63
  328. package/lib/commonjs/utils/overlay/func.js.map +0 -1
  329. package/lib/commonjs/utils/reanimated/func.js +0 -77
  330. package/lib/commonjs/utils/reanimated/func.js.map +0 -1
  331. package/lib/commonjs/utils/style/const.js +0 -12
  332. package/lib/commonjs/utils/style/const.js.map +0 -1
  333. package/lib/commonjs/utils/style/func.js +0 -39
  334. package/lib/commonjs/utils/style/func.js.map +0 -1
  335. package/lib/commonjs/utils/switch/const.js +0 -9
  336. package/lib/commonjs/utils/switch/const.js.map +0 -1
  337. package/lib/commonjs/utils/theme/const.js +0 -188
  338. package/lib/commonjs/utils/theme/const.js.map +0 -1
  339. package/lib/commonjs/utils/theme/restyle.js +0 -22
  340. package/lib/commonjs/utils/theme/restyle.js.map +0 -1
  341. package/lib/typescript/commonjs/package.json +0 -1
  342. package/lib/typescript/commonjs/src/components/button/AnimatedPressable.d.ts.map +0 -1
  343. package/lib/typescript/commonjs/src/components/button/AnimatedThemedPressable.d.ts.map +0 -1
  344. package/lib/typescript/commonjs/src/components/button/ThemedButton.d.ts.map +0 -1
  345. package/lib/typescript/commonjs/src/components/button/ThemedIconButton.d.ts.map +0 -1
  346. package/lib/typescript/commonjs/src/components/button/ThemedIconTextButton.d.ts.map +0 -1
  347. package/lib/typescript/commonjs/src/components/button/ThemedPressable.d.ts.map +0 -1
  348. package/lib/typescript/commonjs/src/components/icon/ThemedIcon.d.ts.map +0 -1
  349. package/lib/typescript/commonjs/src/components/list/List.d.ts.map +0 -1
  350. package/lib/typescript/commonjs/src/components/loading/ThemedLoading.d.ts.map +0 -1
  351. package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheet.d.ts.map +0 -1
  352. package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +0 -1
  353. package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +0 -1
  354. package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +0 -1
  355. package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +0 -1
  356. package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetOptList.d.ts.map +0 -1
  357. package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetOptListItem.d.ts.map +0 -1
  358. package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetOpts.d.ts.map +0 -1
  359. package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +0 -1
  360. package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +0 -1
  361. package/lib/typescript/commonjs/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +0 -1
  362. package/lib/typescript/commonjs/src/components/overlay/alert/Alert.d.ts.map +0 -1
  363. package/lib/typescript/commonjs/src/components/overlay/alert/AlertButton.d.ts.map +0 -1
  364. package/lib/typescript/commonjs/src/components/overlay/alert/AlertButtons.d.ts.map +0 -1
  365. package/lib/typescript/commonjs/src/components/overlay/alert/AlertContent.d.ts.map +0 -1
  366. package/lib/typescript/commonjs/src/components/overlay/alert/AlertWrap.d.ts.map +0 -1
  367. package/lib/typescript/commonjs/src/components/overlay/modal/ThemedLoadingModal.d.ts.map +0 -1
  368. package/lib/typescript/commonjs/src/components/overlay/modal/ThemedModal.d.ts.map +0 -1
  369. package/lib/typescript/commonjs/src/components/overlay/toast/ThemedToast.d.ts.map +0 -1
  370. package/lib/typescript/commonjs/src/components/provider/GestureProvider.d.ts.map +0 -1
  371. package/lib/typescript/commonjs/src/components/provider/InsetsProvider.d.ts.map +0 -1
  372. package/lib/typescript/commonjs/src/components/provider/ReactNativeTemplateProviders.d.ts.map +0 -1
  373. package/lib/typescript/commonjs/src/components/provider/ThemeProvider.d.ts.map +0 -1
  374. package/lib/typescript/commonjs/src/components/separator/ThemedSeparator.d.ts.map +0 -1
  375. package/lib/typescript/commonjs/src/components/switch/ThemedSwitch.d.ts.map +0 -1
  376. package/lib/typescript/commonjs/src/components/text/ThemedIconText.d.ts.map +0 -1
  377. package/lib/typescript/commonjs/src/components/text/ThemedText.d.ts.map +0 -1
  378. package/lib/typescript/commonjs/src/components/view/AnimatedBox.d.ts.map +0 -1
  379. package/lib/typescript/commonjs/src/components/view/AnimatedThemedView.d.ts.map +0 -1
  380. package/lib/typescript/commonjs/src/components/view/ThemedScreenWrap.d.ts.map +0 -1
  381. package/lib/typescript/commonjs/src/components/view/ThemedScreenWrap.web.d.ts.map +0 -1
  382. package/lib/typescript/commonjs/src/components/view/ThemedScrollView.d.ts.map +0 -1
  383. package/lib/typescript/commonjs/src/components/view/ThemedView.d.ts.map +0 -1
  384. package/lib/typescript/commonjs/src/hooks/list.d.ts.map +0 -1
  385. package/lib/typescript/commonjs/src/hooks/overlay.d.ts.map +0 -1
  386. package/lib/typescript/commonjs/src/hooks/reanimated.d.ts.map +0 -1
  387. package/lib/typescript/commonjs/src/hooks/separator.d.ts.map +0 -1
  388. package/lib/typescript/commonjs/src/hooks/style.d.ts.map +0 -1
  389. package/lib/typescript/commonjs/src/hooks/theme.d.ts.map +0 -1
  390. package/lib/typescript/commonjs/src/hooks/view.d.ts.map +0 -1
  391. package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
  392. package/lib/typescript/commonjs/src/test/utils/const.d.ts.map +0 -1
  393. package/lib/typescript/commonjs/src/test/utils/func.d.ts.map +0 -1
  394. package/lib/typescript/commonjs/src/test/utils/testingLib.d.ts.map +0 -1
  395. package/lib/typescript/commonjs/src/types/button.d.ts.map +0 -1
  396. package/lib/typescript/commonjs/src/types/icon.d.ts.map +0 -1
  397. package/lib/typescript/commonjs/src/types/list.d.ts.map +0 -1
  398. package/lib/typescript/commonjs/src/types/loading.d.ts.map +0 -1
  399. package/lib/typescript/commonjs/src/types/overlay.d.ts.map +0 -1
  400. package/lib/typescript/commonjs/src/types/provider.d.ts.map +0 -1
  401. package/lib/typescript/commonjs/src/types/react.d.ts.map +0 -1
  402. package/lib/typescript/commonjs/src/types/reanimated.d.ts.map +0 -1
  403. package/lib/typescript/commonjs/src/types/separator.d.ts.map +0 -1
  404. package/lib/typescript/commonjs/src/types/style.d.ts.map +0 -1
  405. package/lib/typescript/commonjs/src/types/switch.d.ts.map +0 -1
  406. package/lib/typescript/commonjs/src/types/text.d.ts.map +0 -1
  407. package/lib/typescript/commonjs/src/types/theme.d.ts.map +0 -1
  408. package/lib/typescript/commonjs/src/types/view.d.ts.map +0 -1
  409. package/lib/typescript/commonjs/src/utils/button/const.d.ts.map +0 -1
  410. package/lib/typescript/commonjs/src/utils/overlay/const.d.ts.map +0 -1
  411. package/lib/typescript/commonjs/src/utils/overlay/func.d.ts.map +0 -1
  412. package/lib/typescript/commonjs/src/utils/reanimated/func.d.ts.map +0 -1
  413. package/lib/typescript/commonjs/src/utils/style/const.d.ts.map +0 -1
  414. package/lib/typescript/commonjs/src/utils/style/func.d.ts.map +0 -1
  415. package/lib/typescript/commonjs/src/utils/switch/const.d.ts.map +0 -1
  416. package/lib/typescript/commonjs/src/utils/theme/const.d.ts.map +0 -1
  417. package/lib/typescript/commonjs/src/utils/theme/restyle.d.ts.map +0 -1
  418. package/lib/typescript/module/src/components/button/AnimatedPressable.d.ts +0 -3
  419. package/lib/typescript/module/src/components/button/AnimatedPressable.d.ts.map +0 -1
  420. package/lib/typescript/module/src/components/button/AnimatedThemedPressable.d.ts +0 -5
  421. package/lib/typescript/module/src/components/button/AnimatedThemedPressable.d.ts.map +0 -1
  422. package/lib/typescript/module/src/components/button/ThemedButton.d.ts +0 -5
  423. package/lib/typescript/module/src/components/button/ThemedButton.d.ts.map +0 -1
  424. package/lib/typescript/module/src/components/button/ThemedIconButton.d.ts +0 -5
  425. package/lib/typescript/module/src/components/button/ThemedIconButton.d.ts.map +0 -1
  426. package/lib/typescript/module/src/components/button/ThemedIconTextButton.d.ts +0 -5
  427. package/lib/typescript/module/src/components/button/ThemedIconTextButton.d.ts.map +0 -1
  428. package/lib/typescript/module/src/components/button/ThemedPressable.d.ts +0 -5
  429. package/lib/typescript/module/src/components/button/ThemedPressable.d.ts.map +0 -1
  430. package/lib/typescript/module/src/components/icon/ThemedIcon.d.ts +0 -5
  431. package/lib/typescript/module/src/components/icon/ThemedIcon.d.ts.map +0 -1
  432. package/lib/typescript/module/src/components/list/List.d.ts +0 -4
  433. package/lib/typescript/module/src/components/list/List.d.ts.map +0 -1
  434. package/lib/typescript/module/src/components/loading/ThemedLoading.d.ts +0 -5
  435. package/lib/typescript/module/src/components/loading/ThemedLoading.d.ts.map +0 -1
  436. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheet.d.ts +0 -5
  437. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheet.d.ts.map +0 -1
  438. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +0 -4
  439. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +0 -1
  440. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetHeader.d.ts +0 -4
  441. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +0 -1
  442. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetListView.d.ts +0 -5
  443. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +0 -1
  444. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +0 -5
  445. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +0 -1
  446. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetOptList.d.ts +0 -4
  447. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetOptList.d.ts.map +0 -1
  448. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetOptListItem.d.ts +0 -5
  449. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetOptListItem.d.ts.map +0 -1
  450. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetOpts.d.ts +0 -4
  451. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetOpts.d.ts.map +0 -1
  452. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts +0 -4
  453. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +0 -1
  454. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +0 -5
  455. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +0 -1
  456. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetWrap.d.ts +0 -4
  457. package/lib/typescript/module/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +0 -1
  458. package/lib/typescript/module/src/components/overlay/alert/Alert.d.ts +0 -5
  459. package/lib/typescript/module/src/components/overlay/alert/Alert.d.ts.map +0 -1
  460. package/lib/typescript/module/src/components/overlay/alert/AlertButton.d.ts +0 -5
  461. package/lib/typescript/module/src/components/overlay/alert/AlertButton.d.ts.map +0 -1
  462. package/lib/typescript/module/src/components/overlay/alert/AlertButtons.d.ts +0 -5
  463. package/lib/typescript/module/src/components/overlay/alert/AlertButtons.d.ts.map +0 -1
  464. package/lib/typescript/module/src/components/overlay/alert/AlertContent.d.ts +0 -5
  465. package/lib/typescript/module/src/components/overlay/alert/AlertContent.d.ts.map +0 -1
  466. package/lib/typescript/module/src/components/overlay/alert/AlertWrap.d.ts +0 -12
  467. package/lib/typescript/module/src/components/overlay/alert/AlertWrap.d.ts.map +0 -1
  468. package/lib/typescript/module/src/components/overlay/modal/ThemedLoadingModal.d.ts +0 -5
  469. package/lib/typescript/module/src/components/overlay/modal/ThemedLoadingModal.d.ts.map +0 -1
  470. package/lib/typescript/module/src/components/overlay/modal/ThemedModal.d.ts +0 -5
  471. package/lib/typescript/module/src/components/overlay/modal/ThemedModal.d.ts.map +0 -1
  472. package/lib/typescript/module/src/components/overlay/toast/ThemedToast.d.ts +0 -5
  473. package/lib/typescript/module/src/components/overlay/toast/ThemedToast.d.ts.map +0 -1
  474. package/lib/typescript/module/src/components/provider/GestureProvider.d.ts +0 -5
  475. package/lib/typescript/module/src/components/provider/GestureProvider.d.ts.map +0 -1
  476. package/lib/typescript/module/src/components/provider/InsetsProvider.d.ts +0 -5
  477. package/lib/typescript/module/src/components/provider/InsetsProvider.d.ts.map +0 -1
  478. package/lib/typescript/module/src/components/provider/ReactNativeTemplateProviders.d.ts +0 -5
  479. package/lib/typescript/module/src/components/provider/ReactNativeTemplateProviders.d.ts.map +0 -1
  480. package/lib/typescript/module/src/components/provider/ThemeProvider.d.ts +0 -5
  481. package/lib/typescript/module/src/components/provider/ThemeProvider.d.ts.map +0 -1
  482. package/lib/typescript/module/src/components/separator/ThemedSeparator.d.ts +0 -5
  483. package/lib/typescript/module/src/components/separator/ThemedSeparator.d.ts.map +0 -1
  484. package/lib/typescript/module/src/components/switch/ThemedSwitch.d.ts +0 -5
  485. package/lib/typescript/module/src/components/switch/ThemedSwitch.d.ts.map +0 -1
  486. package/lib/typescript/module/src/components/text/Text.d.ts +0 -1987
  487. package/lib/typescript/module/src/components/text/Text.d.ts.map +0 -1
  488. package/lib/typescript/module/src/components/text/ThemedIconText.d.ts +0 -5
  489. package/lib/typescript/module/src/components/text/ThemedIconText.d.ts.map +0 -1
  490. package/lib/typescript/module/src/components/text/ThemedText.d.ts +0 -5
  491. package/lib/typescript/module/src/components/text/ThemedText.d.ts.map +0 -1
  492. package/lib/typescript/module/src/components/view/AnimatedBox.d.ts +0 -1023
  493. package/lib/typescript/module/src/components/view/AnimatedThemedView.d.ts +0 -5
  494. package/lib/typescript/module/src/components/view/AnimatedThemedView.d.ts.map +0 -1
  495. package/lib/typescript/module/src/components/view/Box.d.ts +0 -2045
  496. package/lib/typescript/module/src/components/view/Box.d.ts.map +0 -1
  497. package/lib/typescript/module/src/components/view/ThemedScreenWrap.d.ts +0 -5
  498. package/lib/typescript/module/src/components/view/ThemedScreenWrap.d.ts.map +0 -1
  499. package/lib/typescript/module/src/components/view/ThemedScreenWrap.web.d.ts +0 -5
  500. package/lib/typescript/module/src/components/view/ThemedScreenWrap.web.d.ts.map +0 -1
  501. package/lib/typescript/module/src/components/view/ThemedScrollView.d.ts +0 -5
  502. package/lib/typescript/module/src/components/view/ThemedScrollView.d.ts.map +0 -1
  503. package/lib/typescript/module/src/components/view/ThemedView.d.ts +0 -5
  504. package/lib/typescript/module/src/components/view/ThemedView.d.ts.map +0 -1
  505. package/lib/typescript/module/src/hooks/button.d.ts +0 -1647
  506. package/lib/typescript/module/src/hooks/button.d.ts.map +0 -1
  507. package/lib/typescript/module/src/hooks/list.d.ts +0 -4
  508. package/lib/typescript/module/src/hooks/list.d.ts.map +0 -1
  509. package/lib/typescript/module/src/hooks/overlay.d.ts +0 -16
  510. package/lib/typescript/module/src/hooks/overlay.d.ts.map +0 -1
  511. package/lib/typescript/module/src/hooks/reanimated.d.ts +0 -3
  512. package/lib/typescript/module/src/hooks/reanimated.d.ts.map +0 -1
  513. package/lib/typescript/module/src/hooks/separator.d.ts +0 -5
  514. package/lib/typescript/module/src/hooks/separator.d.ts.map +0 -1
  515. package/lib/typescript/module/src/hooks/style.d.ts +0 -11
  516. package/lib/typescript/module/src/hooks/style.d.ts.map +0 -1
  517. package/lib/typescript/module/src/hooks/switch.d.ts +0 -2
  518. package/lib/typescript/module/src/hooks/switch.d.ts.map +0 -1
  519. package/lib/typescript/module/src/hooks/theme.d.ts +0 -329
  520. package/lib/typescript/module/src/hooks/theme.d.ts.map +0 -1
  521. package/lib/typescript/module/src/hooks/view.d.ts +0 -3
  522. package/lib/typescript/module/src/hooks/view.d.ts.map +0 -1
  523. package/lib/typescript/module/src/index.d.ts +0 -53
  524. package/lib/typescript/module/src/index.d.ts.map +0 -1
  525. package/lib/typescript/module/src/test/utils/const.d.ts +0 -4
  526. package/lib/typescript/module/src/test/utils/const.d.ts.map +0 -1
  527. package/lib/typescript/module/src/test/utils/func.d.ts +0 -108
  528. package/lib/typescript/module/src/test/utils/func.d.ts.map +0 -1
  529. package/lib/typescript/module/src/test/utils/testingLib.d.ts +0 -6
  530. package/lib/typescript/module/src/test/utils/testingLib.d.ts.map +0 -1
  531. package/lib/typescript/module/src/types/button.d.ts +0 -32
  532. package/lib/typescript/module/src/types/button.d.ts.map +0 -1
  533. package/lib/typescript/module/src/types/icon.d.ts +0 -19
  534. package/lib/typescript/module/src/types/icon.d.ts.map +0 -1
  535. package/lib/typescript/module/src/types/list.d.ts +0 -29
  536. package/lib/typescript/module/src/types/list.d.ts.map +0 -1
  537. package/lib/typescript/module/src/types/loading.d.ts +0 -12
  538. package/lib/typescript/module/src/types/loading.d.ts.map +0 -1
  539. package/lib/typescript/module/src/types/overlay.d.ts +0 -106
  540. package/lib/typescript/module/src/types/overlay.d.ts.map +0 -1
  541. package/lib/typescript/module/src/types/provider.d.ts +0 -6
  542. package/lib/typescript/module/src/types/provider.d.ts.map +0 -1
  543. package/lib/typescript/module/src/types/react.d.ts +0 -6
  544. package/lib/typescript/module/src/types/react.d.ts.map +0 -1
  545. package/lib/typescript/module/src/types/reanimated.d.ts +0 -5
  546. package/lib/typescript/module/src/types/reanimated.d.ts.map +0 -1
  547. package/lib/typescript/module/src/types/separator.d.ts +0 -7
  548. package/lib/typescript/module/src/types/separator.d.ts.map +0 -1
  549. package/lib/typescript/module/src/types/style.d.ts +0 -18
  550. package/lib/typescript/module/src/types/style.d.ts.map +0 -1
  551. package/lib/typescript/module/src/types/switch.d.ts +0 -27
  552. package/lib/typescript/module/src/types/switch.d.ts.map +0 -1
  553. package/lib/typescript/module/src/types/text.d.ts +0 -19
  554. package/lib/typescript/module/src/types/text.d.ts.map +0 -1
  555. package/lib/typescript/module/src/types/theme.d.ts +0 -15
  556. package/lib/typescript/module/src/types/theme.d.ts.map +0 -1
  557. package/lib/typescript/module/src/types/view.d.ts +0 -22
  558. package/lib/typescript/module/src/types/view.d.ts.map +0 -1
  559. package/lib/typescript/module/src/utils/button/const.d.ts +0 -9
  560. package/lib/typescript/module/src/utils/button/const.d.ts.map +0 -1
  561. package/lib/typescript/module/src/utils/overlay/const.d.ts +0 -24
  562. package/lib/typescript/module/src/utils/overlay/const.d.ts.map +0 -1
  563. package/lib/typescript/module/src/utils/overlay/func.d.ts +0 -11
  564. package/lib/typescript/module/src/utils/overlay/func.d.ts.map +0 -1
  565. package/lib/typescript/module/src/utils/reanimated/func.d.ts +0 -2
  566. package/lib/typescript/module/src/utils/reanimated/func.d.ts.map +0 -1
  567. package/lib/typescript/module/src/utils/style/const.d.ts +0 -5
  568. package/lib/typescript/module/src/utils/style/const.d.ts.map +0 -1
  569. package/lib/typescript/module/src/utils/style/func.d.ts +0 -10
  570. package/lib/typescript/module/src/utils/style/func.d.ts.map +0 -1
  571. package/lib/typescript/module/src/utils/switch/const.d.ts +0 -2
  572. package/lib/typescript/module/src/utils/switch/const.d.ts.map +0 -1
  573. package/lib/typescript/module/src/utils/theme/const.d.ts +0 -173
  574. package/lib/typescript/module/src/utils/theme/const.d.ts.map +0 -1
  575. package/lib/typescript/module/src/utils/theme/restyle.d.ts +0 -1196
  576. package/lib/typescript/module/src/utils/theme/restyle.d.ts.map +0 -1
  577. /package/lib/typescript/{module/package.json → package.json} +0 -0
  578. /package/lib/typescript/{commonjs/src → src}/components/button/AnimatedPressable.d.ts +0 -0
  579. /package/lib/typescript/{commonjs/src → src}/components/button/AnimatedThemedPressable.d.ts +0 -0
  580. /package/lib/typescript/{commonjs/src → src}/components/button/ThemedButton.d.ts +0 -0
  581. /package/lib/typescript/{commonjs/src → src}/components/button/ThemedIconButton.d.ts +0 -0
  582. /package/lib/typescript/{commonjs/src → src}/components/button/ThemedIconTextButton.d.ts +0 -0
  583. /package/lib/typescript/{commonjs/src → src}/components/button/ThemedPressable.d.ts +0 -0
  584. /package/lib/typescript/{commonjs/src → src}/components/icon/ThemedIcon.d.ts +0 -0
  585. /package/lib/typescript/{commonjs/src → src}/components/list/List.d.ts +0 -0
  586. /package/lib/typescript/{commonjs/src → src}/components/loading/ThemedLoading.d.ts +0 -0
  587. /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheet.d.ts +0 -0
  588. /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +0 -0
  589. /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetHeader.d.ts +0 -0
  590. /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetListView.d.ts +0 -0
  591. /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +0 -0
  592. /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetOptList.d.ts +0 -0
  593. /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetOptListItem.d.ts +0 -0
  594. /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetOpts.d.ts +0 -0
  595. /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetScrollView.d.ts +0 -0
  596. /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +0 -0
  597. /package/lib/typescript/{commonjs/src → src}/components/overlay/actionSheet/ActionSheetWrap.d.ts +0 -0
  598. /package/lib/typescript/{commonjs/src → src}/components/overlay/alert/Alert.d.ts +0 -0
  599. /package/lib/typescript/{commonjs/src → src}/components/overlay/alert/AlertButton.d.ts +0 -0
  600. /package/lib/typescript/{commonjs/src → src}/components/overlay/alert/AlertButtons.d.ts +0 -0
  601. /package/lib/typescript/{commonjs/src → src}/components/overlay/alert/AlertContent.d.ts +0 -0
  602. /package/lib/typescript/{commonjs/src → src}/components/overlay/alert/AlertWrap.d.ts +0 -0
  603. /package/lib/typescript/{commonjs/src → src}/components/overlay/modal/ThemedLoadingModal.d.ts +0 -0
  604. /package/lib/typescript/{commonjs/src → src}/components/overlay/modal/ThemedModal.d.ts +0 -0
  605. /package/lib/typescript/{commonjs/src → src}/components/overlay/toast/ThemedToast.d.ts +0 -0
  606. /package/lib/typescript/{commonjs/src → src}/components/provider/GestureProvider.d.ts +0 -0
  607. /package/lib/typescript/{commonjs/src → src}/components/provider/InsetsProvider.d.ts +0 -0
  608. /package/lib/typescript/{commonjs/src → src}/components/provider/ReactNativeTemplateProviders.d.ts +0 -0
  609. /package/lib/typescript/{commonjs/src → src}/components/provider/ThemeProvider.d.ts +0 -0
  610. /package/lib/typescript/{commonjs/src → src}/components/separator/ThemedSeparator.d.ts +0 -0
  611. /package/lib/typescript/{commonjs/src → src}/components/switch/ThemedSwitch.d.ts +0 -0
  612. /package/lib/typescript/{commonjs/src → src}/components/text/Text.d.ts +0 -0
  613. /package/lib/typescript/{commonjs/src → src}/components/text/ThemedIconText.d.ts +0 -0
  614. /package/lib/typescript/{commonjs/src → src}/components/text/ThemedText.d.ts +0 -0
  615. /package/lib/typescript/{commonjs/src → src}/components/view/AnimatedBox.d.ts +0 -0
  616. /package/lib/typescript/{commonjs/src → src}/components/view/AnimatedThemedView.d.ts +0 -0
  617. /package/lib/typescript/{commonjs/src → src}/components/view/Box.d.ts +0 -0
  618. /package/lib/typescript/{commonjs/src → src}/components/view/ThemedScreenWrap.d.ts +0 -0
  619. /package/lib/typescript/{commonjs/src → src}/components/view/ThemedScreenWrap.web.d.ts +0 -0
  620. /package/lib/typescript/{commonjs/src → src}/components/view/ThemedScrollView.d.ts +0 -0
  621. /package/lib/typescript/{commonjs/src → src}/components/view/ThemedView.d.ts +0 -0
  622. /package/lib/typescript/{commonjs/src → src}/hooks/button.d.ts +0 -0
  623. /package/lib/typescript/{commonjs/src → src}/hooks/list.d.ts +0 -0
  624. /package/lib/typescript/{commonjs/src → src}/hooks/overlay.d.ts +0 -0
  625. /package/lib/typescript/{commonjs/src → src}/hooks/reanimated.d.ts +0 -0
  626. /package/lib/typescript/{commonjs/src → src}/hooks/separator.d.ts +0 -0
  627. /package/lib/typescript/{commonjs/src → src}/hooks/style.d.ts +0 -0
  628. /package/lib/typescript/{commonjs/src → src}/hooks/switch.d.ts +0 -0
  629. /package/lib/typescript/{commonjs/src → src}/hooks/theme.d.ts +0 -0
  630. /package/lib/typescript/{commonjs/src → src}/hooks/view.d.ts +0 -0
  631. /package/lib/typescript/{commonjs/src → src}/index.d.ts +0 -0
  632. /package/lib/typescript/{commonjs/src → src}/test/utils/const.d.ts +0 -0
  633. /package/lib/typescript/{commonjs/src → src}/test/utils/func.d.ts +0 -0
  634. /package/lib/typescript/{commonjs/src → src}/test/utils/testingLib.d.ts +0 -0
  635. /package/lib/typescript/{commonjs/src → src}/types/button.d.ts +0 -0
  636. /package/lib/typescript/{commonjs/src → src}/types/icon.d.ts +0 -0
  637. /package/lib/typescript/{commonjs/src → src}/types/list.d.ts +0 -0
  638. /package/lib/typescript/{commonjs/src → src}/types/loading.d.ts +0 -0
  639. /package/lib/typescript/{commonjs/src → src}/types/overlay.d.ts +0 -0
  640. /package/lib/typescript/{commonjs/src → src}/types/provider.d.ts +0 -0
  641. /package/lib/typescript/{commonjs/src → src}/types/react.d.ts +0 -0
  642. /package/lib/typescript/{commonjs/src → src}/types/reanimated.d.ts +0 -0
  643. /package/lib/typescript/{commonjs/src → src}/types/separator.d.ts +0 -0
  644. /package/lib/typescript/{commonjs/src → src}/types/style.d.ts +0 -0
  645. /package/lib/typescript/{commonjs/src → src}/types/switch.d.ts +0 -0
  646. /package/lib/typescript/{commonjs/src → src}/types/text.d.ts +0 -0
  647. /package/lib/typescript/{commonjs/src → src}/types/theme.d.ts +0 -0
  648. /package/lib/typescript/{commonjs/src → src}/types/view.d.ts +0 -0
  649. /package/lib/typescript/{commonjs/src → src}/utils/button/const.d.ts +0 -0
  650. /package/lib/typescript/{commonjs/src → src}/utils/overlay/const.d.ts +0 -0
  651. /package/lib/typescript/{commonjs/src → src}/utils/overlay/func.d.ts +0 -0
  652. /package/lib/typescript/{commonjs/src → src}/utils/reanimated/func.d.ts +0 -0
  653. /package/lib/typescript/{commonjs/src → src}/utils/style/const.d.ts +0 -0
  654. /package/lib/typescript/{commonjs/src → src}/utils/style/func.d.ts +0 -0
  655. /package/lib/typescript/{commonjs/src → src}/utils/switch/const.d.ts +0 -0
  656. /package/lib/typescript/{commonjs/src → src}/utils/theme/const.d.ts +0 -0
  657. /package/lib/typescript/{commonjs/src → src}/utils/theme/restyle.d.ts +0 -0
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- import { c as _c } from "react/compiler-runtime";
4
3
  import { useContext, useEffect, useLayoutEffect, useState } from 'react';
5
4
  import { Gesture } from 'react-native-gesture-handler';
6
5
  import { makeMutable, useAnimatedRef, useScrollOffset, useSharedValue } from 'react-native-reanimated';
@@ -19,91 +18,42 @@ export function useActionSheetContext() {
19
18
 
20
19
  /** @internal */
21
20
  function useActionSheet() {
22
- const $ = _c(16);
23
21
  const windowHeight = useWindowDimensionsHeight();
24
22
  const headerViewRef = useViewRef();
25
23
  const [height, setHeight] = useState(0);
26
24
  const translateYSharedVal = useSharedValue(windowHeight);
27
25
  const heightSharedVal = useSharedValue(0);
28
26
  const expandableHeightSharedVal = useSharedValue(0);
29
- let t0;
30
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
31
- t0 = getActionSheetContext();
32
- $[0] = t0;
33
- } else {
34
- t0 = $[0];
35
- }
36
27
  const {
37
28
  expandable
38
- } = t0;
39
- let t1;
40
- if ($[1] !== expandableHeightSharedVal || $[2] !== height || $[3] !== heightSharedVal || $[4] !== translateYSharedVal || $[5] !== windowHeight) {
41
- t1 = () => {
42
- if (height && translateYSharedVal.get() === windowHeight) {
43
- const tempHeight = expandable ? getActionSheetExpandableInitHeight() : height;
44
- heightSharedVal.set(tempHeight);
45
- expandableHeightSharedVal.set(tempHeight);
46
- translateYSharedVal.set(height);
47
- updateSharedValWithTiming(translateYSharedVal, 0, {
48
- duration: actionSheetOpenDuration
49
- });
50
- }
51
- };
52
- $[1] = expandableHeightSharedVal;
53
- $[2] = height;
54
- $[3] = heightSharedVal;
55
- $[4] = translateYSharedVal;
56
- $[5] = windowHeight;
57
- $[6] = t1;
58
- } else {
59
- t1 = $[6];
60
- }
61
- let t2;
62
- if ($[7] !== height) {
63
- t2 = [height];
64
- $[7] = height;
65
- $[8] = t2;
66
- } else {
67
- t2 = $[8];
68
- }
69
- useEffect(t1, t2);
70
- let t3;
71
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
72
- t3 = tempHeight_0 => {
73
- setHeight(expandable ? getActionSheetExpandableHeight() : getActionSheetHeight(tempHeight_0));
74
- };
75
- $[9] = t3;
76
- } else {
77
- t3 = $[9];
78
- }
79
- const updateHeight = t3;
80
- let t4;
81
- if ($[10] !== expandableHeightSharedVal || $[11] !== headerViewRef || $[12] !== height || $[13] !== heightSharedVal || $[14] !== translateYSharedVal) {
82
- t4 = {
83
- headerViewRef,
84
- height,
85
- translateYSharedVal,
86
- heightSharedVal,
87
- expandableHeightSharedVal,
88
- updateHeight
89
- };
90
- $[10] = expandableHeightSharedVal;
91
- $[11] = headerViewRef;
92
- $[12] = height;
93
- $[13] = heightSharedVal;
94
- $[14] = translateYSharedVal;
95
- $[15] = t4;
96
- } else {
97
- t4 = $[15];
98
- }
99
- const actionSheet = t4;
29
+ } = getActionSheetContext();
30
+ useEffect(() => {
31
+ if (height && translateYSharedVal.get() === windowHeight) {
32
+ const tempHeight = expandable ? getActionSheetExpandableInitHeight() : height;
33
+ heightSharedVal.set(tempHeight);
34
+ expandableHeightSharedVal.set(tempHeight);
35
+ translateYSharedVal.set(height);
36
+ updateSharedValWithTiming(translateYSharedVal, 0, {
37
+ duration: actionSheetOpenDuration
38
+ });
39
+ }
40
+ }, [height]);
41
+ const updateHeight = tempHeight => {
42
+ setHeight(expandable ? getActionSheetExpandableHeight() : getActionSheetHeight(tempHeight));
43
+ };
44
+ const actionSheet = {
45
+ headerViewRef,
46
+ height,
47
+ translateYSharedVal,
48
+ heightSharedVal,
49
+ expandableHeightSharedVal,
50
+ updateHeight
51
+ };
100
52
  return actionSheet;
101
53
  }
102
54
 
103
55
  /** @internal */
104
- export function useActionSheetOnDismiss(t0) {
105
- const $ = _c(10);
106
- const force = t0 === undefined ? true : t0;
56
+ export function useActionSheetOnDismiss(force = true) {
107
57
  const windowHeight = useWindowDimensionsHeight();
108
58
  const {
109
59
  title,
@@ -114,154 +64,58 @@ export function useActionSheetOnDismiss(t0) {
114
64
  heightSharedVal,
115
65
  expandableHeightSharedVal
116
66
  } = useActionSheetContext();
117
- let t1;
118
- if ($[0] !== expandable || $[1] !== expandableHeightSharedVal || $[2] !== force || $[3] !== height || $[4] !== heightSharedVal || $[5] !== onDismiss || $[6] !== title || $[7] !== translateYSharedVal || $[8] !== windowHeight) {
119
- t1 = t2 => {
120
- const text = t2 === undefined ? overlayDismissResultDefaultText : t2;
121
- if (!onDismiss || !height || !heightSharedVal || !translateYSharedVal) {
67
+ const actionSheetOnDismiss = (text = overlayDismissResultDefaultText) => {
68
+ if (!onDismiss || !height || !heightSharedVal || !translateYSharedVal) {
69
+ return;
70
+ }
71
+ const tempTranslateYSharedVal = translateYSharedVal ?? makeMutable(windowHeight);
72
+ const toVal = expandable ? getActionSheetExpandableSnapHeight(heightSharedVal.get(), force) : getActionSheetSnapHeight(height, translateYSharedVal?.get() ?? windowHeight, force);
73
+ const dismissActionSheet = toVal === (expandable ? 0 : height);
74
+ const animationConfig = {
75
+ duration: dismissActionSheet ? actionSheetDismissDuration : actionSheetSnapDuration
76
+ };
77
+ const cb = () => {
78
+ if (!dismissActionSheet) {
79
+ expandableHeightSharedVal?.set(toVal);
122
80
  return;
123
81
  }
124
- const tempTranslateYSharedVal = translateYSharedVal ?? makeMutable(windowHeight);
125
- const toVal = expandable ? getActionSheetExpandableSnapHeight(heightSharedVal.get(), force) : getActionSheetSnapHeight(height, translateYSharedVal?.get() ?? windowHeight, force);
126
- const dismissActionSheet = toVal === (expandable ? 0 : height);
127
- const animationConfig = {
128
- duration: dismissActionSheet ? actionSheetDismissDuration : actionSheetSnapDuration
129
- };
130
- const cb = () => {
131
- if (!dismissActionSheet) {
132
- expandableHeightSharedVal?.set(toVal);
133
- return;
134
- }
135
- onDismiss({
136
- resultType: OverlayDismissResultType.ActionSheet,
137
- title,
138
- text
139
- });
140
- };
141
- if (expandable && !dismissActionSheet) {
142
- updateSharedValWithTiming(heightSharedVal, toVal, animationConfig, cb);
143
- } else {
144
- updateSharedValWithTiming(tempTranslateYSharedVal, dismissActionSheet ? windowHeight : toVal, animationConfig, cb);
145
- }
82
+ onDismiss({
83
+ resultType: OverlayDismissResultType.ActionSheet,
84
+ title,
85
+ text
86
+ });
146
87
  };
147
- $[0] = expandable;
148
- $[1] = expandableHeightSharedVal;
149
- $[2] = force;
150
- $[3] = height;
151
- $[4] = heightSharedVal;
152
- $[5] = onDismiss;
153
- $[6] = title;
154
- $[7] = translateYSharedVal;
155
- $[8] = windowHeight;
156
- $[9] = t1;
157
- } else {
158
- t1 = $[9];
159
- }
160
- const actionSheetOnDismiss = t1;
88
+ if (expandable && !dismissActionSheet) {
89
+ updateSharedValWithTiming(heightSharedVal, toVal, animationConfig, cb);
90
+ } else {
91
+ updateSharedValWithTiming(tempTranslateYSharedVal, dismissActionSheet ? windowHeight : toVal, animationConfig, cb);
92
+ }
93
+ };
161
94
  return actionSheetOnDismiss;
162
95
  }
163
96
 
164
97
  /** @internal */
165
- const _worklet_14062660967716_init_data = {
166
- code: "function overlayTs1(){const{scheduleOnRN,onDismiss}=this.__closure;scheduleOnRN(onDismiss);}",
167
- location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/hooks/overlay.ts",
168
- sourceMap: "{\"version\":3,\"names\":[\"overlayTs1\",\"scheduleOnRN\",\"onDismiss\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/hooks/overlay.ts\"],\"mappings\":\"AAkLW,SAAAA,WAAA,QAAAC,YAAA,CAAAC,SAAA,OAAAC,SAAA,CACLF,YAAY,CAACC,SAAS,CAAC\",\"ignoreList\":[]}"
169
- };
170
- const _worklet_6867469910819_init_data = {
171
- code: "function overlayTs2(t2){const{contentGesture,contentOffsetSharedVal,expandable,heightSharedVal,translateYSharedVal}=this.__closure;var _contentOffsetSharedV;const{changeY:changeY}=t2;if(!contentGesture||!((_contentOffsetSharedV=contentOffsetSharedVal)!==null&&_contentOffsetSharedV!==void 0&&_contentOffsetSharedV.get())){if(expandable){var _heightSharedVal;(_heightSharedVal=heightSharedVal)===null||_heightSharedVal===void 0||_heightSharedVal.set(heightSharedVal.get()-changeY);}else{var _translateYSharedVal;(_translateYSharedVal=translateYSharedVal)===null||_translateYSharedVal===void 0||_translateYSharedVal.set(Math.max(translateYSharedVal.get()+changeY,0));}}}",
172
- location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/hooks/overlay.ts",
173
- sourceMap: "{\"version\":3,\"names\":[\"overlayTs2\",\"t2\",\"contentGesture\",\"contentOffsetSharedVal\",\"expandable\",\"heightSharedVal\",\"translateYSharedVal\",\"__closure\",\"_contentOffsetSharedV\",\"changeY\",\"get\",\"_heightSharedVal\",\"set\",\"_translateYSharedVal\",\"Math\",\"max\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/hooks/overlay.ts\"],\"mappings\":\"AAuKc,SAAAA,WAAAC,EAAA,QAAAC,cAAA,CAAAC,sBAAA,CAAAC,UAAA,CAAAC,eAAA,CAAAC,mBAAA,OAAAC,SAAA,KAAAC,qBAAA,CAAC,MAAAC,OAAA,CAAAA,OAAA,EAAAR,EAAW,CACpB,GAAI,CAACC,cAAgD,EAAjD,GAAAM,qBAAA,CAAoBL,sBAAsB,UAAAK,qBAAA,WAAtBA,qBAAA,CAAsBE,GAAO,CAAD,CAAC,GACnD,GAAIN,UAAU,MAAAO,gBAAA,CACZ,CAAAA,gBAAA,CAAAN,eAAe,UAAAM,gBAAA,WAAfA,gBAAA,CAAeC,GAAsC,CAAhCP,eAAe,CAAAK,GAAI,CAAC,CAAC,CAAGD,OAAO,CAAC,WAAAI,oBAAA,CAErD,CAAAA,oBAAA,CAAAP,mBAAmB,UAAAO,oBAAA,WAAnBA,oBAAA,CAAmBD,GAElB,CADCE,IAAI,CAAAC,GAAI,CAACT,mBAAmB,CAAAI,GAAK,CAAC,CAAC,CAAGD,OAAO,CAAE,CAAC,CAClD,CAAC,EACF,CACF\",\"ignoreList\":[]}"
174
- };
175
- export function useActionSheetGesture(t0) {
176
- const $ = _c(5);
177
- const contentGesture = t0 === undefined ? false : t0;
98
+ export function useActionSheetGesture(contentGesture = false) {
178
99
  const onDismiss = useActionSheetOnDismiss(false);
179
- let t1;
180
- if ($[0] !== contentGesture || $[1] !== onDismiss) {
181
- const {
182
- expandable,
183
- translateYSharedVal,
184
- heightSharedVal,
185
- contentOffsetSharedVal
186
- } = getActionSheetContext();
187
- let t3;
188
- if ($[3] !== onDismiss) {
189
- t3 = function overlayTs1Factory({
190
- _worklet_14062660967716_init_data,
191
- scheduleOnRN,
192
- onDismiss
193
- }) {
194
- const _e = [new global.Error(), -3, -27];
195
- const overlayTs1 = function () {
196
- scheduleOnRN(onDismiss);
197
- };
198
- overlayTs1.__closure = {
199
- scheduleOnRN,
200
- onDismiss
201
- };
202
- overlayTs1.__workletHash = 14062660967716;
203
- overlayTs1.__pluginVersion = "0.6.1";
204
- overlayTs1.__initData = _worklet_14062660967716_init_data;
205
- overlayTs1.__stackDetails = _e;
206
- return overlayTs1;
207
- }({
208
- _worklet_14062660967716_init_data,
209
- scheduleOnRN,
210
- onDismiss
211
- });
212
- $[3] = onDismiss;
213
- $[4] = t3;
214
- } else {
215
- t3 = $[4];
100
+ const {
101
+ expandable,
102
+ translateYSharedVal,
103
+ heightSharedVal,
104
+ contentOffsetSharedVal
105
+ } = getActionSheetContext();
106
+ const actionSheetGesture = Gesture.Pan().onChange(({
107
+ changeY
108
+ }) => {
109
+ if (!contentGesture || !contentOffsetSharedVal?.get()) {
110
+ if (expandable) {
111
+ heightSharedVal?.set(heightSharedVal.get() - changeY);
112
+ } else {
113
+ translateYSharedVal?.set(Math.max(translateYSharedVal.get() + changeY, 0));
114
+ }
216
115
  }
217
- t1 = Gesture.Pan().onChange(function overlayTs2Factory({
218
- _worklet_6867469910819_init_data,
219
- contentGesture,
220
- contentOffsetSharedVal,
221
- expandable,
222
- heightSharedVal,
223
- translateYSharedVal
224
- }) {
225
- const _e = [new global.Error(), -6, -27];
226
- const overlayTs2 = function (t2) {
227
- const {
228
- changeY
229
- } = t2;
230
- if (!contentGesture || !contentOffsetSharedVal?.get()) {
231
- if (expandable) {
232
- heightSharedVal?.set(heightSharedVal.get() - changeY);
233
- } else {
234
- translateYSharedVal?.set(Math.max(translateYSharedVal.get() + changeY, 0));
235
- }
236
- }
237
- };
238
- overlayTs2.__closure = {
239
- contentGesture,
240
- contentOffsetSharedVal,
241
- expandable,
242
- heightSharedVal,
243
- translateYSharedVal
244
- };
245
- overlayTs2.__workletHash = 6867469910819;
246
- overlayTs2.__pluginVersion = "0.6.1";
247
- overlayTs2.__initData = _worklet_6867469910819_init_data;
248
- overlayTs2.__stackDetails = _e;
249
- return overlayTs2;
250
- }({
251
- _worklet_6867469910819_init_data,
252
- contentGesture,
253
- contentOffsetSharedVal,
254
- expandable,
255
- heightSharedVal,
256
- translateYSharedVal
257
- })).onEnd(t3);
258
- $[0] = contentGesture;
259
- $[1] = onDismiss;
260
- $[2] = t1;
261
- } else {
262
- t1 = $[2];
263
- }
264
- const actionSheetGesture = t1;
116
+ }).onEnd(() => {
117
+ scheduleOnRN(onDismiss);
118
+ });
265
119
  return actionSheetGesture;
266
120
  }
267
121
 
@@ -274,21 +128,12 @@ export function useActionSheetHeaderMinHeight() {
274
128
 
275
129
  /** @internal */
276
130
  export function useActionSheetContentGesture() {
277
- const $ = _c(2);
278
131
  const gesture = useActionSheetGesture(true);
279
- let t0;
280
- if ($[0] !== gesture) {
281
- const scrollGesture = Gesture.Native().shouldActivateOnStart(true);
282
- const {
283
- contentOffsetSharedVal
284
- } = getActionSheetContext();
285
- t0 = Gesture.Simultaneous(scrollGesture, gesture.activeOffsetY(contentOffsetSharedVal?.get() ?? 0));
286
- $[0] = gesture;
287
- $[1] = t0;
288
- } else {
289
- t0 = $[1];
290
- }
291
- const actionSheetContentGesture = t0;
132
+ const scrollGesture = Gesture.Native().shouldActivateOnStart(true);
133
+ const {
134
+ contentOffsetSharedVal
135
+ } = getActionSheetContext();
136
+ const actionSheetContentGesture = Gesture.Simultaneous(scrollGesture, gesture.activeOffsetY(contentOffsetSharedVal?.get() ?? 0));
292
137
  return actionSheetContentGesture;
293
138
  }
294
139
  export function useActionSheetListViewAnimatedRef() {
@@ -300,51 +145,28 @@ export function useActionSheetScrollViewAnimatedRef() {
300
145
 
301
146
  /** @interal */
302
147
  export function useActionSheetListViewRefAndOffset(refObj) {
303
- const $ = _c(3);
304
148
  const listViewListAnimatedRefObj = useActionSheetListViewAnimatedRef();
305
149
  const contentOffsetSharedVal = useScrollOffset(refObj ?? listViewListAnimatedRefObj);
306
- const t0 = refObj ?? listViewListAnimatedRefObj;
307
- let t1;
308
- if ($[0] !== contentOffsetSharedVal || $[1] !== t0) {
309
- t1 = {
310
- listViewListAnimatedRefObj: t0,
311
- contentOffsetSharedVal
312
- };
313
- $[0] = contentOffsetSharedVal;
314
- $[1] = t0;
315
- $[2] = t1;
316
- } else {
317
- t1 = $[2];
318
- }
319
- const actionSheetListViewAnimatedRef = t1;
150
+ const actionSheetListViewAnimatedRef = {
151
+ listViewListAnimatedRefObj: refObj ?? listViewListAnimatedRefObj,
152
+ contentOffsetSharedVal
153
+ };
320
154
  return actionSheetListViewAnimatedRef;
321
155
  }
322
156
 
323
157
  /** @interal */
324
158
  export function useActionSheetScrollViewRefAndOffset(refObj) {
325
- const $ = _c(3);
326
159
  const scrollViewAnimatedRefObj = useActionSheetScrollViewAnimatedRef();
327
160
  const contentOffsetSharedVal = useScrollOffset(refObj ?? scrollViewAnimatedRefObj);
328
- const t0 = refObj ?? scrollViewAnimatedRefObj;
329
- let t1;
330
- if ($[0] !== contentOffsetSharedVal || $[1] !== t0) {
331
- t1 = {
332
- scrollViewAnimatedRefObj: t0,
333
- contentOffsetSharedVal
334
- };
335
- $[0] = contentOffsetSharedVal;
336
- $[1] = t0;
337
- $[2] = t1;
338
- } else {
339
- t1 = $[2];
340
- }
341
- const actionSheetScrollViewAnimatedRef = t1;
161
+ const actionSheetScrollViewAnimatedRef = {
162
+ scrollViewAnimatedRefObj: refObj ?? scrollViewAnimatedRefObj,
163
+ contentOffsetSharedVal
164
+ };
342
165
  return actionSheetScrollViewAnimatedRef;
343
166
  }
344
167
 
345
168
  /** @internal */
346
169
  export function useActionSheetOpts(title, expandable, opts, optListProps, onDismiss, dismissable) {
347
- const $ = _c(19);
348
170
  const {
349
171
  headerViewRef,
350
172
  height,
@@ -361,80 +183,47 @@ export function useActionSheetOpts(title, expandable, opts, optListProps, onDism
361
183
  itemSize,
362
184
  insetsStyle
363
185
  } = useActionSheetOptItemSize(optListProps);
364
- let t0;
365
- if ($[0] !== headerViewRef || $[1] !== insetsStyle || $[2] !== itemSize || $[3] !== opts || $[4] !== updateHeight) {
366
- t0 = () => {
367
- headerViewRef.current?.measureInWindow((_x, _y, _width, headerHeight) => {
368
- const contentHeight = opts.length * itemSize + (insetsStyle.paddingBottom ?? 0);
369
- updateHeight(headerHeight + contentHeight);
370
- });
371
- };
372
- $[0] = headerViewRef;
373
- $[1] = insetsStyle;
374
- $[2] = itemSize;
375
- $[3] = opts;
376
- $[4] = updateHeight;
377
- $[5] = t0;
378
- } else {
379
- t0 = $[5];
380
- }
381
- let t1;
382
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
383
- t1 = [];
384
- $[6] = t1;
385
- } else {
386
- t1 = $[6];
387
- }
388
- useLayoutEffect(t0, t1);
389
- let t2;
390
- if ($[7] !== contentOffsetSharedVal || $[8] !== dismissable || $[9] !== expandable || $[10] !== expandableHeightSharedVal || $[11] !== headerViewRef || $[12] !== height || $[13] !== heightSharedVal || $[14] !== listViewListAnimatedRefObj || $[15] !== onDismiss || $[16] !== title || $[17] !== translateYSharedVal) {
391
- t2 = {
392
- title,
393
- expandable,
394
- onDismiss,
395
- dismissable,
396
- headerViewRef,
397
- contentAnimatedRefObj: listViewListAnimatedRefObj,
398
- height,
399
- translateYSharedVal,
400
- heightSharedVal,
401
- expandableHeightSharedVal,
402
- contentOffsetSharedVal
403
- };
404
- $[7] = contentOffsetSharedVal;
405
- $[8] = dismissable;
406
- $[9] = expandable;
407
- $[10] = expandableHeightSharedVal;
408
- $[11] = headerViewRef;
409
- $[12] = height;
410
- $[13] = heightSharedVal;
411
- $[14] = listViewListAnimatedRefObj;
412
- $[15] = onDismiss;
413
- $[16] = title;
414
- $[17] = translateYSharedVal;
415
- $[18] = t2;
416
- } else {
417
- t2 = $[18];
418
- }
419
- const actionSheetContextVal = t2;
186
+ useLayoutEffect(() => {
187
+ headerViewRef.current?.measureInWindow((_x, _y, _width, headerHeight) => {
188
+ const contentHeight = opts.length * itemSize + (insetsStyle.paddingBottom ?? 0);
189
+ updateHeight(headerHeight + contentHeight);
190
+ });
191
+ }, []);
192
+ const actionSheetContextVal = {
193
+ title,
194
+ expandable,
195
+ onDismiss,
196
+ dismissable,
197
+ headerViewRef,
198
+ contentAnimatedRefObj: listViewListAnimatedRefObj,
199
+ height,
200
+ translateYSharedVal,
201
+ heightSharedVal,
202
+ expandableHeightSharedVal,
203
+ contentOffsetSharedVal
204
+ };
420
205
  return actionSheetContextVal;
421
206
  }
422
207
 
423
208
  /** @internal */
424
- export function useActionSheetOptItemSize(t0) {
425
- const $ = _c(16);
426
- let t1;
427
- if ($[0] !== t0) {
428
- t1 = t0 === undefined ? {
429
- insetBottom: true,
430
- insetPaddingBottom: "m"
431
- } : t0;
432
- $[0] = t0;
433
- $[1] = t1;
434
- } else {
435
- t1 = $[1];
436
- }
437
- const {
209
+ export function useActionSheetOptItemSize({
210
+ insets,
211
+ insetTop,
212
+ insetBottom,
213
+ insetLeft,
214
+ insetRight,
215
+ insetsPadding,
216
+ insetPaddingTop,
217
+ insetPaddingBottom,
218
+ insetPaddingLeft,
219
+ insetPaddingRight
220
+ } = {
221
+ insetBottom: true,
222
+ insetPaddingBottom: 'm'
223
+ }) {
224
+ const themeSpacing = useThemeSpacing();
225
+ const themeTextVariants = useThemeTextVariants();
226
+ const insetsStyle = useInsetsStyle({
438
227
  insets,
439
228
  insetTop,
440
229
  insetBottom,
@@ -445,58 +234,16 @@ export function useActionSheetOptItemSize(t0) {
445
234
  insetPaddingBottom,
446
235
  insetPaddingLeft,
447
236
  insetPaddingRight
448
- } = t1;
449
- const themeSpacing = useThemeSpacing();
450
- const themeTextVariants = useThemeTextVariants();
451
- let t2;
452
- if ($[2] !== insetBottom || $[3] !== insetLeft || $[4] !== insetPaddingBottom || $[5] !== insetPaddingLeft || $[6] !== insetPaddingRight || $[7] !== insetPaddingTop || $[8] !== insetRight || $[9] !== insetTop || $[10] !== insets || $[11] !== insetsPadding) {
453
- t2 = {
454
- insets,
455
- insetTop,
456
- insetBottom,
457
- insetLeft,
458
- insetRight,
459
- insetsPadding,
460
- insetPaddingTop,
461
- insetPaddingBottom,
462
- insetPaddingLeft,
463
- insetPaddingRight
464
- };
465
- $[2] = insetBottom;
466
- $[3] = insetLeft;
467
- $[4] = insetPaddingBottom;
468
- $[5] = insetPaddingLeft;
469
- $[6] = insetPaddingRight;
470
- $[7] = insetPaddingTop;
471
- $[8] = insetRight;
472
- $[9] = insetTop;
473
- $[10] = insets;
474
- $[11] = insetsPadding;
475
- $[12] = t2;
476
- } else {
477
- t2 = $[12];
478
- }
479
- const insetsStyle = useInsetsStyle(t2);
480
- const t3 = themeSpacing[actionSheetOptListItemPadding] * 2 + themeTextVariants[actionSheetOptListItemTextVariant].lineHeight;
481
- let t4;
482
- if ($[13] !== insetsStyle || $[14] !== t3) {
483
- t4 = {
484
- itemSize: t3,
485
- insetsStyle
486
- };
487
- $[13] = insetsStyle;
488
- $[14] = t3;
489
- $[15] = t4;
490
- } else {
491
- t4 = $[15];
492
- }
493
- const actionSheetOptItemSize = t4;
237
+ });
238
+ const actionSheetOptItemSize = {
239
+ itemSize: themeSpacing[actionSheetOptListItemPadding] * 2 + themeTextVariants[actionSheetOptListItemTextVariant].lineHeight,
240
+ insetsStyle
241
+ };
494
242
  return actionSheetOptItemSize;
495
243
  }
496
244
 
497
245
  /** @internal */
498
246
  export function useActionSheetScrollView(title, expandable, scrollViewProps, onDismiss, dismissable) {
499
- const $ = _c(22);
500
247
  const {
501
248
  headerViewRef,
502
249
  height,
@@ -511,88 +258,35 @@ export function useActionSheetScrollView(title, expandable, scrollViewProps, onD
511
258
  } = useActionSheetScrollViewRefAndOffset(scrollViewProps?.ref);
512
259
  const [headerHeight, setHeaderHeight] = useState(0);
513
260
  const [contentHeight, setContentHeight] = useState(0);
514
- let t0;
515
- if ($[0] !== headerViewRef) {
516
- t0 = () => {
517
- headerViewRef.current?.measureInWindow((_x, _y, _width, headerViewHeight) => {
518
- setHeaderHeight(headerViewHeight);
519
- });
520
- };
521
- $[0] = headerViewRef;
522
- $[1] = t0;
523
- } else {
524
- t0 = $[1];
525
- }
526
- let t1;
527
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
528
- t1 = [];
529
- $[2] = t1;
530
- } else {
531
- t1 = $[2];
532
- }
533
- useLayoutEffect(t0, t1);
534
- let t2;
535
- if ($[3] !== contentHeight || $[4] !== headerHeight || $[5] !== updateHeight) {
536
- t2 = () => {
537
- if (headerHeight && contentHeight) {
538
- updateHeight(headerHeight + contentHeight);
539
- }
540
- };
541
- $[3] = contentHeight;
542
- $[4] = headerHeight;
543
- $[5] = updateHeight;
544
- $[6] = t2;
545
- } else {
546
- t2 = $[6];
547
- }
548
- let t3;
549
- if ($[7] !== contentHeight || $[8] !== headerHeight) {
550
- t3 = [headerHeight, contentHeight];
551
- $[7] = contentHeight;
552
- $[8] = headerHeight;
553
- $[9] = t3;
554
- } else {
555
- t3 = $[9];
556
- }
557
- useEffect(t2, t3);
558
- let t4;
559
- if ($[10] !== contentOffsetSharedVal || $[11] !== dismissable || $[12] !== expandable || $[13] !== expandableHeightSharedVal || $[14] !== headerViewRef || $[15] !== height || $[16] !== heightSharedVal || $[17] !== onDismiss || $[18] !== scrollViewAnimatedRefObj || $[19] !== title || $[20] !== translateYSharedVal) {
560
- t4 = {
561
- title,
562
- expandable,
563
- onDismiss,
564
- dismissable,
565
- headerViewRef,
566
- contentAnimatedRefObj: scrollViewAnimatedRefObj,
567
- height,
568
- setContentHeight,
569
- translateYSharedVal,
570
- heightSharedVal,
571
- expandableHeightSharedVal,
572
- contentOffsetSharedVal
573
- };
574
- $[10] = contentOffsetSharedVal;
575
- $[11] = dismissable;
576
- $[12] = expandable;
577
- $[13] = expandableHeightSharedVal;
578
- $[14] = headerViewRef;
579
- $[15] = height;
580
- $[16] = heightSharedVal;
581
- $[17] = onDismiss;
582
- $[18] = scrollViewAnimatedRefObj;
583
- $[19] = title;
584
- $[20] = translateYSharedVal;
585
- $[21] = t4;
586
- } else {
587
- t4 = $[21];
588
- }
589
- const actionSheetContextVal = t4;
261
+ useLayoutEffect(() => {
262
+ headerViewRef.current?.measureInWindow((_x, _y, _width, headerViewHeight) => {
263
+ setHeaderHeight(headerViewHeight);
264
+ });
265
+ }, []);
266
+ useEffect(() => {
267
+ if (headerHeight && contentHeight) {
268
+ updateHeight(headerHeight + contentHeight);
269
+ }
270
+ }, [headerHeight, contentHeight]);
271
+ const actionSheetContextVal = {
272
+ title,
273
+ expandable,
274
+ onDismiss,
275
+ dismissable,
276
+ headerViewRef,
277
+ contentAnimatedRefObj: scrollViewAnimatedRefObj,
278
+ height,
279
+ setContentHeight,
280
+ translateYSharedVal,
281
+ heightSharedVal,
282
+ expandableHeightSharedVal,
283
+ contentOffsetSharedVal
284
+ };
590
285
  return actionSheetContextVal;
591
286
  }
592
287
 
593
288
  /** @internal */
594
289
  export function useActionSheetListView(title, expandable, listProps, onDismiss, dismissable) {
595
- const $ = _c(22);
596
290
  const {
597
291
  headerViewRef,
598
292
  height,
@@ -607,82 +301,30 @@ export function useActionSheetListView(title, expandable, listProps, onDismiss,
607
301
  } = useActionSheetListViewRefAndOffset(listProps?.ref);
608
302
  const [headerHeight, setHeaderHeight] = useState(0);
609
303
  const [contentHeight, setContentHeight] = useState(0);
610
- let t0;
611
- if ($[0] !== headerViewRef) {
612
- t0 = () => {
613
- headerViewRef.current?.measureInWindow((_x, _y, _width, headerViewHeight) => {
614
- setHeaderHeight(headerViewHeight);
615
- });
616
- };
617
- $[0] = headerViewRef;
618
- $[1] = t0;
619
- } else {
620
- t0 = $[1];
621
- }
622
- let t1;
623
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
624
- t1 = [];
625
- $[2] = t1;
626
- } else {
627
- t1 = $[2];
628
- }
629
- useLayoutEffect(t0, t1);
630
- let t2;
631
- if ($[3] !== contentHeight || $[4] !== headerHeight || $[5] !== updateHeight) {
632
- t2 = () => {
633
- if (headerHeight && contentHeight) {
634
- updateHeight(headerHeight + contentHeight);
635
- }
636
- };
637
- $[3] = contentHeight;
638
- $[4] = headerHeight;
639
- $[5] = updateHeight;
640
- $[6] = t2;
641
- } else {
642
- t2 = $[6];
643
- }
644
- let t3;
645
- if ($[7] !== contentHeight || $[8] !== headerHeight) {
646
- t3 = [headerHeight, contentHeight];
647
- $[7] = contentHeight;
648
- $[8] = headerHeight;
649
- $[9] = t3;
650
- } else {
651
- t3 = $[9];
652
- }
653
- useEffect(t2, t3);
654
- let t4;
655
- if ($[10] !== contentOffsetSharedVal || $[11] !== dismissable || $[12] !== expandable || $[13] !== expandableHeightSharedVal || $[14] !== headerViewRef || $[15] !== height || $[16] !== heightSharedVal || $[17] !== listViewListAnimatedRefObj || $[18] !== onDismiss || $[19] !== title || $[20] !== translateYSharedVal) {
656
- t4 = {
657
- title,
658
- expandable,
659
- onDismiss,
660
- dismissable,
661
- headerViewRef,
662
- contentAnimatedRefObj: listViewListAnimatedRefObj,
663
- height,
664
- setContentHeight,
665
- translateYSharedVal,
666
- heightSharedVal,
667
- expandableHeightSharedVal,
668
- contentOffsetSharedVal
669
- };
670
- $[10] = contentOffsetSharedVal;
671
- $[11] = dismissable;
672
- $[12] = expandable;
673
- $[13] = expandableHeightSharedVal;
674
- $[14] = headerViewRef;
675
- $[15] = height;
676
- $[16] = heightSharedVal;
677
- $[17] = listViewListAnimatedRefObj;
678
- $[18] = onDismiss;
679
- $[19] = title;
680
- $[20] = translateYSharedVal;
681
- $[21] = t4;
682
- } else {
683
- t4 = $[21];
684
- }
685
- const actionSheetContextVal = t4;
304
+ useLayoutEffect(() => {
305
+ headerViewRef.current?.measureInWindow((_x, _y, _width, headerViewHeight) => {
306
+ setHeaderHeight(headerViewHeight);
307
+ });
308
+ }, []);
309
+ useEffect(() => {
310
+ if (headerHeight && contentHeight) {
311
+ updateHeight(headerHeight + contentHeight);
312
+ }
313
+ }, [headerHeight, contentHeight]);
314
+ const actionSheetContextVal = {
315
+ title,
316
+ expandable,
317
+ onDismiss,
318
+ dismissable,
319
+ headerViewRef,
320
+ contentAnimatedRefObj: listViewListAnimatedRefObj,
321
+ height,
322
+ setContentHeight,
323
+ translateYSharedVal,
324
+ heightSharedVal,
325
+ expandableHeightSharedVal,
326
+ contentOffsetSharedVal
327
+ };
686
328
  return actionSheetContextVal;
687
329
  }
688
330
  //# sourceMappingURL=overlay.js.map