@tamagui/react-native-web-lite 1.114.4 → 1.115.0

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 (307) hide show
  1. package/dist/cjs/AccessibilityInfo/index.cjs +98 -0
  2. package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +188 -0
  3. package/dist/cjs/ActivityIndicator/index.cjs +127 -0
  4. package/dist/cjs/Alert/index.cjs +29 -0
  5. package/dist/cjs/AppRegistry/AppContainer.cjs +70 -0
  6. package/dist/cjs/AppRegistry/__tests__/{index-test.js → index-test.cjs} +22 -16
  7. package/dist/cjs/AppRegistry/__tests__/{index-test.node.js → index-test.node.cjs} +46 -22
  8. package/dist/cjs/AppRegistry/index.cjs +99 -0
  9. package/dist/cjs/AppRegistry/renderApplication.cjs +80 -0
  10. package/dist/cjs/AppState/__tests__/{index-test.js → index-test.cjs} +17 -16
  11. package/dist/cjs/AppState/index.cjs +69 -0
  12. package/dist/cjs/Appearance/index.cjs +54 -0
  13. package/dist/cjs/BackHandler/index.cjs +36 -0
  14. package/dist/cjs/Clipboard/{index.js → index.cjs} +17 -13
  15. package/dist/cjs/{DeviceEmitter.js → DeviceEmitter.cjs} +23 -14
  16. package/dist/cjs/DeviceInfo/{index.js → index.cjs} +37 -19
  17. package/dist/cjs/Dimensions/__tests__/{index-test.js → index-test.cjs} +18 -15
  18. package/dist/cjs/Dimensions/{index.js → index.cjs} +34 -28
  19. package/dist/cjs/I18nManager/index.cjs +35 -0
  20. package/dist/cjs/Image/index.cjs +292 -0
  21. package/dist/cjs/Image/types.cjs +16 -0
  22. package/dist/cjs/ImageBackground/__tests__/index-test.cjs +68 -0
  23. package/dist/cjs/ImageBackground/index.cjs +77 -0
  24. package/dist/cjs/Keyboard/index.cjs +39 -0
  25. package/dist/cjs/KeyboardAvoidingView/{index.js → index.cjs} +32 -21
  26. package/dist/cjs/Linking/__tests__/{index-test.js → index-test.cjs} +19 -17
  27. package/dist/cjs/Linking/{index.js → index.cjs} +18 -15
  28. package/dist/cjs/LogBox/index.cjs +32 -0
  29. package/dist/cjs/Modal/ModalAnimation.cjs +148 -0
  30. package/dist/cjs/Modal/ModalContent.cjs +86 -0
  31. package/dist/cjs/Modal/ModalFocusTrap.cjs +108 -0
  32. package/dist/cjs/Modal/ModalPortal.cjs +53 -0
  33. package/dist/cjs/Modal/index.cjs +97 -0
  34. package/dist/cjs/NativeModules/index.cjs +30 -0
  35. package/dist/cjs/PanResponder/Alternative.cjs +198 -0
  36. package/dist/cjs/PanResponder/Alternative.cjs.map +6 -0
  37. package/dist/cjs/PanResponder/{index.js → index.cjs} +23 -14
  38. package/dist/cjs/PixelRatio/{index.js → index.cjs} +23 -15
  39. package/dist/cjs/Pressable/index.cjs +143 -0
  40. package/dist/cjs/RefreshControl/{index.js → index.cjs} +27 -16
  41. package/dist/cjs/SafeAreaView/index.cjs +62 -0
  42. package/dist/cjs/ScrollView/ScrollViewBase.cjs +137 -0
  43. package/dist/cjs/ScrollView/{index.js → index.cjs} +123 -108
  44. package/dist/cjs/Share/index.cjs +49 -0
  45. package/dist/cjs/StatusBar/{index.js → index.cjs} +17 -13
  46. package/dist/cjs/Text/index.cjs +170 -0
  47. package/dist/cjs/Text/types.cjs +16 -0
  48. package/dist/cjs/TextInput/__tests__/index-test.cjs +709 -0
  49. package/dist/cjs/TextInput/index.cjs +277 -0
  50. package/dist/cjs/TextInput/types.cjs +16 -0
  51. package/dist/cjs/TouchableOpacity.cjs +117 -0
  52. package/dist/cjs/{TouchableWithoutFeedback.js → TouchableWithoutFeedback.cjs} +60 -58
  53. package/dist/cjs/UnimplementedView.cjs +47 -0
  54. package/dist/cjs/Vibration/index.cjs +37 -0
  55. package/dist/cjs/View/{index.js → index.cjs} +49 -28
  56. package/dist/cjs/View/types.cjs +16 -0
  57. package/dist/cjs/createElement/__tests__/index-test.cjs +765 -0
  58. package/dist/cjs/createElement/index.cjs +54 -0
  59. package/dist/cjs/createReactDOMStyle.cjs +27 -0
  60. package/dist/cjs/findNodeHandle.cjs +33 -0
  61. package/dist/cjs/{index.js → index.cjs} +77 -16
  62. package/dist/cjs/render/{index.js → index.cjs} +20 -14
  63. package/dist/cjs/styleTypes.cjs +16 -0
  64. package/dist/cjs/types.cjs +16 -0
  65. package/dist/cjs/useColorScheme/{index.js → index.cjs} +27 -16
  66. package/dist/cjs/useLocaleContext/index.cjs +26 -0
  67. package/dist/cjs/useWindowDimensions/{index.js → index.cjs} +28 -16
  68. package/dist/cjs/vendor/react-native/Animated/Animated.cjs +52 -0
  69. package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +125 -0
  70. package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +514 -0
  71. package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +149 -0
  72. package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +1 -0
  73. package/dist/cjs/vendor/react-native/Animated/{Easing.js → Easing.cjs} +31 -22
  74. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +331 -0
  75. package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.js → NativeAnimatedModule.cjs} +23 -14
  76. package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.js → NativeAnimatedTurboModule.cjs} +23 -14
  77. package/dist/cjs/vendor/react-native/Animated/{SpringConfig.js → SpringConfig.cjs} +20 -12
  78. package/dist/cjs/vendor/react-native/Animated/animations/{Animation.js → Animation.cjs} +29 -24
  79. package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.js → DecayAnimation.cjs} +27 -16
  80. package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.js → SpringAnimation.cjs} +48 -34
  81. package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.js → TimingAnimation.cjs} +32 -26
  82. package/dist/cjs/vendor/react-native/Animated/{bezier.js → bezier.cjs} +38 -27
  83. package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +40 -0
  84. package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +45 -0
  85. package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +40 -0
  86. package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +40 -0
  87. package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +61 -0
  88. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.js → AnimatedAddition.cjs} +26 -15
  89. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.js → AnimatedColor.cjs} +57 -40
  90. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.js → AnimatedDiffClamp.cjs} +27 -16
  91. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.js → AnimatedDivision.cjs} +29 -16
  92. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.js → AnimatedInterpolation.cjs} +62 -72
  93. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.js → AnimatedModulo.cjs} +25 -15
  94. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.js → AnimatedMultiplication.cjs} +26 -15
  95. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.js → AnimatedNode.cjs} +39 -39
  96. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.js → AnimatedProps.cjs} +34 -24
  97. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.js → AnimatedStyle.cjs} +35 -21
  98. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.js → AnimatedSubtraction.cjs} +26 -15
  99. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.js → AnimatedTracking.cjs} +34 -32
  100. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.js → AnimatedTransform.cjs} +32 -21
  101. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.js → AnimatedValue.cjs} +43 -50
  102. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.js → AnimatedValueXY.cjs} +38 -31
  103. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.js → AnimatedWithChildren.cjs} +31 -21
  104. package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.js → useAnimatedProps.cjs} +44 -31
  105. package/dist/cjs/vendor/react-native/{FeatureFlags.js → FeatureFlags.cjs} +16 -11
  106. package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.js → RCTDeviceEventEmitter.cjs} +23 -14
  107. package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.js → index.cjs} +29 -25
  108. package/dist/cjs/vendor/react-native/PanResponder/index.cjs +272 -0
  109. package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +105 -0
  110. package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +1 -0
  111. package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +34 -0
  112. package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +18 -0
  113. package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +36 -0
  114. package/dist/cjs/vendor/react-native/emitter/{EventEmitter.js → EventEmitter.cjs} +24 -14
  115. package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +1 -0
  116. package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.js → _EmitterSubscription.cjs} +24 -15
  117. package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.js → _EventEmitter.cjs} +39 -39
  118. package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.js → _EventSubscription.cjs} +17 -11
  119. package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.js → _EventSubscriptionVendor.cjs} +21 -16
  120. package/dist/cjs/vendor/react-native/infoLog/index.cjs +31 -0
  121. package/dist/cjs/vendor/react-native/useRefEffect.cjs +32 -0
  122. package/dist/cjs/without-animated.cjs +155 -0
  123. package/package.json +9 -8
  124. package/dist/cjs/AccessibilityInfo/index.js +0 -96
  125. package/dist/cjs/ActivityIndicator/__tests__/index-test.js +0 -116
  126. package/dist/cjs/ActivityIndicator/index.js +0 -108
  127. package/dist/cjs/Alert/index.js +0 -25
  128. package/dist/cjs/AppRegistry/AppContainer.js +0 -41
  129. package/dist/cjs/AppRegistry/index.js +0 -98
  130. package/dist/cjs/AppRegistry/renderApplication.js +0 -51
  131. package/dist/cjs/AppState/index.js +0 -71
  132. package/dist/cjs/Appearance/index.js +0 -41
  133. package/dist/cjs/BackHandler/index.js +0 -32
  134. package/dist/cjs/I18nManager/index.js +0 -30
  135. package/dist/cjs/Image/index.js +0 -253
  136. package/dist/cjs/Image/types.js +0 -14
  137. package/dist/cjs/ImageBackground/__tests__/index-test.js +0 -48
  138. package/dist/cjs/ImageBackground/index.js +0 -62
  139. package/dist/cjs/Keyboard/index.js +0 -35
  140. package/dist/cjs/LogBox/index.js +0 -31
  141. package/dist/cjs/Modal/ModalAnimation.js +0 -137
  142. package/dist/cjs/Modal/ModalContent.js +0 -75
  143. package/dist/cjs/Modal/ModalFocusTrap.js +0 -105
  144. package/dist/cjs/Modal/ModalPortal.js +0 -43
  145. package/dist/cjs/Modal/index.js +0 -92
  146. package/dist/cjs/NativeModules/index.js +0 -25
  147. package/dist/cjs/Pressable/index.js +0 -140
  148. package/dist/cjs/SafeAreaView/index.js +0 -43
  149. package/dist/cjs/ScrollView/ScrollViewBase.js +0 -124
  150. package/dist/cjs/Share/index.js +0 -56
  151. package/dist/cjs/Text/index.js +0 -152
  152. package/dist/cjs/Text/types.js +0 -14
  153. package/dist/cjs/TextInput/__tests__/index-test.js +0 -422
  154. package/dist/cjs/TextInput/index.js +0 -260
  155. package/dist/cjs/TextInput/types.js +0 -14
  156. package/dist/cjs/TouchableOpacity.js +0 -123
  157. package/dist/cjs/UnimplementedView.js +0 -36
  158. package/dist/cjs/Vibration/index.js +0 -31
  159. package/dist/cjs/View/types.js +0 -14
  160. package/dist/cjs/createElement/__tests__/index-test.js +0 -536
  161. package/dist/cjs/createElement/index.js +0 -37
  162. package/dist/cjs/createReactDOMStyle.js +0 -21
  163. package/dist/cjs/findNodeHandle.js +0 -29
  164. package/dist/cjs/styleTypes.js +0 -14
  165. package/dist/cjs/types.js +0 -14
  166. package/dist/cjs/useLocaleContext/index.js +0 -21
  167. package/dist/cjs/vendor/react-native/Animated/Animated.js +0 -35
  168. package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.js +0 -143
  169. package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.js +0 -458
  170. package/dist/cjs/vendor/react-native/Animated/AnimatedMock.js +0 -126
  171. package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.js +0 -2
  172. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js +0 -335
  173. package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.js +0 -29
  174. package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.js +0 -38
  175. package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.js +0 -29
  176. package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.js +0 -29
  177. package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js +0 -42
  178. package/dist/cjs/vendor/react-native/PanResponder/index.js +0 -272
  179. package/dist/cjs/vendor/react-native/TouchHistoryMath/index.js +0 -118
  180. package/dist/cjs/vendor/react-native/TurboModule/RCTExport.js +0 -2
  181. package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.js +0 -28
  182. package/dist/cjs/vendor/react-native/Types/CoreEventTypes.js +0 -15
  183. package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.js +0 -29
  184. package/dist/cjs/vendor/react-native/emitter/EventSubscription.js +0 -2
  185. package/dist/cjs/vendor/react-native/infoLog/index.js +0 -25
  186. package/dist/cjs/vendor/react-native/useRefEffect.js +0 -30
  187. package/dist/cjs/without-animated.js +0 -95
  188. /package/dist/cjs/AccessibilityInfo/{index.js.map → index.cjs.map} +0 -0
  189. /package/dist/cjs/ActivityIndicator/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  190. /package/dist/cjs/ActivityIndicator/{index.js.map → index.cjs.map} +0 -0
  191. /package/dist/cjs/Alert/{index.js.map → index.cjs.map} +0 -0
  192. /package/dist/cjs/AppRegistry/{AppContainer.js.map → AppContainer.cjs.map} +0 -0
  193. /package/dist/cjs/AppRegistry/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  194. /package/dist/cjs/AppRegistry/__tests__/{index-test.node.js.map → index-test.node.cjs.map} +0 -0
  195. /package/dist/cjs/AppRegistry/{index.js.map → index.cjs.map} +0 -0
  196. /package/dist/cjs/AppRegistry/{renderApplication.js.map → renderApplication.cjs.map} +0 -0
  197. /package/dist/cjs/AppState/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  198. /package/dist/cjs/AppState/{index.js.map → index.cjs.map} +0 -0
  199. /package/dist/cjs/Appearance/{index.js.map → index.cjs.map} +0 -0
  200. /package/dist/cjs/BackHandler/{index.js.map → index.cjs.map} +0 -0
  201. /package/dist/cjs/Clipboard/{index.js.map → index.cjs.map} +0 -0
  202. /package/dist/cjs/{DeviceEmitter.js.map → DeviceEmitter.cjs.map} +0 -0
  203. /package/dist/cjs/DeviceInfo/{index.js.map → index.cjs.map} +0 -0
  204. /package/dist/cjs/Dimensions/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  205. /package/dist/cjs/Dimensions/{index.js.map → index.cjs.map} +0 -0
  206. /package/dist/cjs/I18nManager/{index.js.map → index.cjs.map} +0 -0
  207. /package/dist/cjs/Image/{index.js.map → index.cjs.map} +0 -0
  208. /package/dist/cjs/Image/{types.js.map → types.cjs.map} +0 -0
  209. /package/dist/cjs/ImageBackground/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  210. /package/dist/cjs/ImageBackground/{index.js.map → index.cjs.map} +0 -0
  211. /package/dist/cjs/Keyboard/{index.js.map → index.cjs.map} +0 -0
  212. /package/dist/cjs/KeyboardAvoidingView/{index.js.map → index.cjs.map} +0 -0
  213. /package/dist/cjs/Linking/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  214. /package/dist/cjs/Linking/{index.js.map → index.cjs.map} +0 -0
  215. /package/dist/cjs/LogBox/{index.js.map → index.cjs.map} +0 -0
  216. /package/dist/cjs/Modal/{ModalAnimation.js.map → ModalAnimation.cjs.map} +0 -0
  217. /package/dist/cjs/Modal/{ModalContent.js.map → ModalContent.cjs.map} +0 -0
  218. /package/dist/cjs/Modal/{ModalFocusTrap.js.map → ModalFocusTrap.cjs.map} +0 -0
  219. /package/dist/cjs/Modal/{ModalPortal.js.map → ModalPortal.cjs.map} +0 -0
  220. /package/dist/cjs/Modal/{index.js.map → index.cjs.map} +0 -0
  221. /package/dist/cjs/NativeModules/{index.js.map → index.cjs.map} +0 -0
  222. /package/dist/cjs/PanResponder/{index.js.map → index.cjs.map} +0 -0
  223. /package/dist/cjs/PixelRatio/{index.js.map → index.cjs.map} +0 -0
  224. /package/dist/cjs/Pressable/{index.js.map → index.cjs.map} +0 -0
  225. /package/dist/cjs/RefreshControl/{index.js.map → index.cjs.map} +0 -0
  226. /package/dist/cjs/SafeAreaView/{index.js.map → index.cjs.map} +0 -0
  227. /package/dist/cjs/ScrollView/{ScrollViewBase.js.map → ScrollViewBase.cjs.map} +0 -0
  228. /package/dist/cjs/ScrollView/{index.js.map → index.cjs.map} +0 -0
  229. /package/dist/cjs/Share/{index.js.map → index.cjs.map} +0 -0
  230. /package/dist/cjs/StatusBar/{index.js.map → index.cjs.map} +0 -0
  231. /package/dist/cjs/Text/{index.js.map → index.cjs.map} +0 -0
  232. /package/dist/cjs/Text/{types.js.map → types.cjs.map} +0 -0
  233. /package/dist/cjs/TextInput/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  234. /package/dist/cjs/TextInput/{index.js.map → index.cjs.map} +0 -0
  235. /package/dist/cjs/TextInput/{types.js.map → types.cjs.map} +0 -0
  236. /package/dist/cjs/{TouchableOpacity.js.map → TouchableOpacity.cjs.map} +0 -0
  237. /package/dist/cjs/{TouchableWithoutFeedback.js.map → TouchableWithoutFeedback.cjs.map} +0 -0
  238. /package/dist/cjs/{UnimplementedView.js.map → UnimplementedView.cjs.map} +0 -0
  239. /package/dist/cjs/Vibration/{index.js.map → index.cjs.map} +0 -0
  240. /package/dist/cjs/View/{index.js.map → index.cjs.map} +0 -0
  241. /package/dist/cjs/View/{types.js.map → types.cjs.map} +0 -0
  242. /package/dist/cjs/createElement/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  243. /package/dist/cjs/createElement/{index.js.map → index.cjs.map} +0 -0
  244. /package/dist/cjs/{createReactDOMStyle.js.map → createReactDOMStyle.cjs.map} +0 -0
  245. /package/dist/cjs/{findNodeHandle.js.map → findNodeHandle.cjs.map} +0 -0
  246. /package/dist/cjs/{index.js.map → index.cjs.map} +0 -0
  247. /package/dist/cjs/render/{index.js.map → index.cjs.map} +0 -0
  248. /package/dist/cjs/{styleTypes.js.map → styleTypes.cjs.map} +0 -0
  249. /package/dist/cjs/{types.js.map → types.cjs.map} +0 -0
  250. /package/dist/cjs/useColorScheme/{index.js.map → index.cjs.map} +0 -0
  251. /package/dist/cjs/useLocaleContext/{index.js.map → index.cjs.map} +0 -0
  252. /package/dist/cjs/useWindowDimensions/{index.js.map → index.cjs.map} +0 -0
  253. /package/dist/cjs/vendor/react-native/Animated/{Animated.js.map → Animated.cjs.map} +0 -0
  254. /package/dist/cjs/vendor/react-native/Animated/{AnimatedEvent.js.map → AnimatedEvent.cjs.map} +0 -0
  255. /package/dist/cjs/vendor/react-native/Animated/{AnimatedImplementation.js.map → AnimatedImplementation.cjs.map} +0 -0
  256. /package/dist/cjs/vendor/react-native/Animated/{AnimatedMock.js.map → AnimatedMock.cjs.map} +0 -0
  257. /package/dist/cjs/vendor/react-native/Animated/{AnimatedPlatformConfig.js.map → AnimatedPlatformConfig.cjs.map} +0 -0
  258. /package/dist/cjs/vendor/react-native/Animated/{Easing.js.map → Easing.cjs.map} +0 -0
  259. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedHelper.js.map → NativeAnimatedHelper.cjs.map} +0 -0
  260. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.js.map → NativeAnimatedModule.cjs.map} +0 -0
  261. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.js.map → NativeAnimatedTurboModule.cjs.map} +0 -0
  262. /package/dist/cjs/vendor/react-native/Animated/{SpringConfig.js.map → SpringConfig.cjs.map} +0 -0
  263. /package/dist/cjs/vendor/react-native/Animated/animations/{Animation.js.map → Animation.cjs.map} +0 -0
  264. /package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.js.map → DecayAnimation.cjs.map} +0 -0
  265. /package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.js.map → SpringAnimation.cjs.map} +0 -0
  266. /package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.js.map → TimingAnimation.cjs.map} +0 -0
  267. /package/dist/cjs/vendor/react-native/Animated/{bezier.js.map → bezier.cjs.map} +0 -0
  268. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedImage.js.map → AnimatedImage.cjs.map} +0 -0
  269. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedScrollView.js.map → AnimatedScrollView.cjs.map} +0 -0
  270. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedText.js.map → AnimatedText.cjs.map} +0 -0
  271. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedView.js.map → AnimatedView.cjs.map} +0 -0
  272. /package/dist/cjs/vendor/react-native/Animated/{createAnimatedComponent.js.map → createAnimatedComponent.cjs.map} +0 -0
  273. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.js.map → AnimatedAddition.cjs.map} +0 -0
  274. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.js.map → AnimatedColor.cjs.map} +0 -0
  275. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.js.map → AnimatedDiffClamp.cjs.map} +0 -0
  276. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.js.map → AnimatedDivision.cjs.map} +0 -0
  277. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.js.map → AnimatedInterpolation.cjs.map} +0 -0
  278. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.js.map → AnimatedModulo.cjs.map} +0 -0
  279. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.js.map → AnimatedMultiplication.cjs.map} +0 -0
  280. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.js.map → AnimatedNode.cjs.map} +0 -0
  281. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.js.map → AnimatedProps.cjs.map} +0 -0
  282. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.js.map → AnimatedStyle.cjs.map} +0 -0
  283. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.js.map → AnimatedSubtraction.cjs.map} +0 -0
  284. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.js.map → AnimatedTracking.cjs.map} +0 -0
  285. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.js.map → AnimatedTransform.cjs.map} +0 -0
  286. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.js.map → AnimatedValue.cjs.map} +0 -0
  287. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.js.map → AnimatedValueXY.cjs.map} +0 -0
  288. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.js.map → AnimatedWithChildren.cjs.map} +0 -0
  289. /package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.js.map → useAnimatedProps.cjs.map} +0 -0
  290. /package/dist/cjs/vendor/react-native/{FeatureFlags.js.map → FeatureFlags.cjs.map} +0 -0
  291. /package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.js.map → RCTDeviceEventEmitter.cjs.map} +0 -0
  292. /package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.js.map → index.cjs.map} +0 -0
  293. /package/dist/cjs/vendor/react-native/PanResponder/{index.js.map → index.cjs.map} +0 -0
  294. /package/dist/cjs/vendor/react-native/TouchHistoryMath/{index.js.map → index.cjs.map} +0 -0
  295. /package/dist/cjs/vendor/react-native/TurboModule/{RCTExport.js.map → RCTExport.cjs.map} +0 -0
  296. /package/dist/cjs/vendor/react-native/TurboModule/{TurboModuleRegistry.js.map → TurboModuleRegistry.cjs.map} +0 -0
  297. /package/dist/cjs/vendor/react-native/Types/{CoreEventTypes.js.map → CoreEventTypes.cjs.map} +0 -0
  298. /package/dist/cjs/vendor/react-native/Utilities/{setAndForwardRef.js.map → setAndForwardRef.cjs.map} +0 -0
  299. /package/dist/cjs/vendor/react-native/emitter/{EventEmitter.js.map → EventEmitter.cjs.map} +0 -0
  300. /package/dist/cjs/vendor/react-native/emitter/{EventSubscription.js.map → EventSubscription.cjs.map} +0 -0
  301. /package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.js.map → _EmitterSubscription.cjs.map} +0 -0
  302. /package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.js.map → _EventEmitter.cjs.map} +0 -0
  303. /package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.js.map → _EventSubscription.cjs.map} +0 -0
  304. /package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.js.map → _EventSubscriptionVendor.cjs.map} +0 -0
  305. /package/dist/cjs/vendor/react-native/infoLog/{index.js.map → index.cjs.map} +0 -0
  306. /package/dist/cjs/vendor/react-native/{useRefEffect.js.map → useRefEffect.cjs.map} +0 -0
  307. /package/dist/cjs/{without-animated.js.map → without-animated.cjs.map} +0 -0
@@ -0,0 +1,108 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var ModalFocusTrap_exports = {};
33
+ __export(ModalFocusTrap_exports, {
34
+ default: () => ModalFocusTrap_default
35
+ });
36
+ module.exports = __toCommonJS(ModalFocusTrap_exports);
37
+ var React = __toESM(require("react")),
38
+ import_react_native_web_internals = require("@tamagui/react-native-web-internals"),
39
+ import_createElement = __toESM(require("../createElement/index.cjs")),
40
+ import_View = __toESM(require("../View/index.cjs")),
41
+ FocusBracket = () => (0, import_createElement.default)("div", {
42
+ accessibilityRole: "none",
43
+ tabIndex: 0,
44
+ style: styles.focusBracket
45
+ });
46
+ function attemptFocus(element) {
47
+ if (!import_react_native_web_internals.canUseDOM) return !1;
48
+ try {
49
+ element.focus();
50
+ } catch {}
51
+ return document.activeElement === element;
52
+ }
53
+ function focusFirstDescendant(element) {
54
+ for (var i = 0; i < element.childNodes.length; i++) {
55
+ var child = element.childNodes[i];
56
+ if (attemptFocus(child) || focusFirstDescendant(child)) return !0;
57
+ }
58
+ return !1;
59
+ }
60
+ function focusLastDescendant(element) {
61
+ for (var i = element.childNodes.length - 1; i >= 0; i--) {
62
+ var child = element.childNodes[i];
63
+ if (attemptFocus(child) || focusLastDescendant(child)) return !0;
64
+ }
65
+ return !1;
66
+ }
67
+ var ModalFocusTrap = _ref => {
68
+ var active = _ref.active,
69
+ children = _ref.children,
70
+ trapElementRef = React.useRef(),
71
+ focusRef = React.useRef({
72
+ trapFocusInProgress: !1,
73
+ lastFocusedElement: null
74
+ });
75
+ return React.useEffect(() => {
76
+ if (import_react_native_web_internals.canUseDOM) {
77
+ var trapFocus = () => {
78
+ if (!(trapElementRef.current == null || focusRef.current.trapFocusInProgress || !active)) {
79
+ try {
80
+ if (focusRef.current.trapFocusInProgress = !0, document.activeElement instanceof Node && !trapElementRef.current.contains(document.activeElement)) {
81
+ var hasFocused = focusFirstDescendant(trapElementRef.current);
82
+ focusRef.current.lastFocusedElement === document.activeElement && (hasFocused = focusLastDescendant(trapElementRef.current)), !hasFocused && trapElementRef.current != null && document.activeElement && import_react_native_web_internals.UIManager.focus(trapElementRef.current);
83
+ }
84
+ } finally {
85
+ focusRef.current.trapFocusInProgress = !1;
86
+ }
87
+ focusRef.current.lastFocusedElement = document.activeElement;
88
+ }
89
+ };
90
+ return trapFocus(), document.addEventListener("focus", trapFocus, !0), () => document.removeEventListener("focus", trapFocus, !0);
91
+ }
92
+ }, [active]), React.useEffect(function () {
93
+ if (import_react_native_web_internals.canUseDOM) {
94
+ var lastFocusedElementOutsideTrap = document.activeElement;
95
+ return function () {
96
+ lastFocusedElementOutsideTrap && document.contains(lastFocusedElementOutsideTrap) && import_react_native_web_internals.UIManager.focus(lastFocusedElementOutsideTrap);
97
+ };
98
+ }
99
+ }, []), /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement(FocusBracket, null), /* @__PURE__ */React.createElement(import_View.default, {
100
+ ref: trapElementRef
101
+ }, children), /* @__PURE__ */React.createElement(FocusBracket, null));
102
+ },
103
+ ModalFocusTrap_default = ModalFocusTrap,
104
+ styles = import_react_native_web_internals.StyleSheet.create({
105
+ focusBracket: {
106
+ outlineStyle: "none"
107
+ }
108
+ });
@@ -0,0 +1,53 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var ModalPortal_exports = {};
33
+ __export(ModalPortal_exports, {
34
+ default: () => ModalPortal_default
35
+ });
36
+ module.exports = __toCommonJS(ModalPortal_exports);
37
+ var React = __toESM(require("react")),
38
+ import_react_dom = __toESM(require("react-dom")),
39
+ import_react_native_web_internals = require("@tamagui/react-native-web-internals");
40
+ function ModalPortal(props) {
41
+ var children = props.children,
42
+ elementRef = React.useRef(null);
43
+ if (import_react_native_web_internals.canUseDOM && !elementRef.current) {
44
+ var element = document.createElement("div");
45
+ element && document.body && (document.body.appendChild(element), elementRef.current = element);
46
+ }
47
+ return React.useEffect(() => {
48
+ if (import_react_native_web_internals.canUseDOM) return () => {
49
+ document.body && elementRef.current && (document.body.removeChild(elementRef.current), elementRef.current = null);
50
+ };
51
+ }, []), elementRef.current && import_react_native_web_internals.canUseDOM ? /* @__PURE__ */import_react_dom.default.createPortal(children, elementRef.current) : null;
52
+ }
53
+ var ModalPortal_default = ModalPortal;
@@ -0,0 +1,97 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var Modal_exports = {};
33
+ __export(Modal_exports, {
34
+ default: () => Modal_default
35
+ });
36
+ module.exports = __toCommonJS(Modal_exports);
37
+ var React = __toESM(require("react")),
38
+ import_ModalAnimation = __toESM(require("./ModalAnimation.cjs")),
39
+ import_ModalContent = __toESM(require("./ModalContent.cjs")),
40
+ import_ModalFocusTrap = __toESM(require("./ModalFocusTrap.cjs")),
41
+ import_ModalPortal = __toESM(require("./ModalPortal.cjs")),
42
+ uniqueModalIdentifier = 0,
43
+ activeModalStack = [],
44
+ activeModalListeners = {};
45
+ function notifyActiveModalListeners() {
46
+ if (activeModalStack.length !== 0) {
47
+ var activeModalId = activeModalStack[activeModalStack.length - 1];
48
+ activeModalStack.forEach(modalId => {
49
+ modalId in activeModalListeners && activeModalListeners[modalId](modalId === activeModalId);
50
+ });
51
+ }
52
+ }
53
+ function removeActiveModal(modalId) {
54
+ modalId in activeModalListeners && (activeModalListeners[modalId](!1), delete activeModalListeners[modalId]);
55
+ var index = activeModalStack.indexOf(modalId);
56
+ index !== -1 && (activeModalStack.splice(index, 1), notifyActiveModalListeners());
57
+ }
58
+ function addActiveModal(modalId, listener) {
59
+ removeActiveModal(modalId), activeModalStack.push(modalId), activeModalListeners[modalId] = listener, notifyActiveModalListeners();
60
+ }
61
+ var Modal = /* @__PURE__ */React.forwardRef((props, forwardedRef) => {
62
+ const {
63
+ animationType,
64
+ children,
65
+ onDismiss,
66
+ onRequestClose,
67
+ onShow,
68
+ transparent,
69
+ visible = !0,
70
+ ...rest
71
+ } = props;
72
+ var modalId = React.useMemo(() => uniqueModalIdentifier++, []),
73
+ _React$useState = React.useState(!1),
74
+ isActive = _React$useState[0],
75
+ setIsActive = _React$useState[1],
76
+ onDismissCallback = React.useCallback(() => {
77
+ removeActiveModal(modalId), onDismiss && onDismiss();
78
+ }, [modalId, onDismiss]),
79
+ onShowCallback = React.useCallback(() => {
80
+ addActiveModal(modalId, setIsActive), onShow && onShow();
81
+ }, [modalId, onShow]);
82
+ return React.useEffect(() => () => removeActiveModal(modalId), [modalId]), /* @__PURE__ */React.createElement(import_ModalPortal.default, null, /* @__PURE__ */React.createElement(import_ModalAnimation.default, {
83
+ animationType,
84
+ onDismiss: onDismissCallback,
85
+ onShow: onShowCallback,
86
+ visible
87
+ }, /* @__PURE__ */React.createElement(import_ModalFocusTrap.default, {
88
+ active: isActive
89
+ }, /* @__PURE__ */React.createElement(import_ModalContent.default, {
90
+ ...rest,
91
+ active: isActive,
92
+ onRequestClose,
93
+ ref: forwardedRef,
94
+ transparent
95
+ }, children))));
96
+ }),
97
+ Modal_default = Modal;
@@ -0,0 +1,30 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var NativeModules_exports = {};
22
+ __export(NativeModules_exports, {
23
+ default: () => NativeModules_default
24
+ });
25
+ module.exports = __toCommonJS(NativeModules_exports);
26
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals");
27
+ const NativeModules = {
28
+ UIManager: import_react_native_web_internals.UIManager
29
+ };
30
+ var NativeModules_default = NativeModules;
@@ -0,0 +1,198 @@
1
+ "use strict";
2
+
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: !0
13
+ });
14
+ },
15
+ __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: !0
30
+ }) : target, mod)),
31
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: !0
33
+ }), mod);
34
+ var Alternative_exports = {};
35
+ __export(Alternative_exports, {
36
+ default: () => Alternative_default
37
+ });
38
+ module.exports = __toCommonJS(Alternative_exports);
39
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals"),
40
+ import_TouchHistoryMath = __toESM(require("../vendor/react-native/TouchHistoryMath/index.cjs"));
41
+ const {
42
+ currentCentroidX,
43
+ currentCentroidY,
44
+ currentCentroidXOfTouchesChangedAfter,
45
+ currentCentroidYOfTouchesChangedAfter,
46
+ previousCentroidXOfTouchesChangedAfter,
47
+ previousCentroidYOfTouchesChangedAfter
48
+ } = import_TouchHistoryMath.default,
49
+ PanResponder = {
50
+ _initializeGestureState(gestureState) {
51
+ gestureState.x = 0, gestureState.y = 0, gestureState.initialX = 0, gestureState.initialY = 0, gestureState.deltaX = 0, gestureState.deltaY = 0, gestureState.velocityX = 0, gestureState.velocityY = 0, gestureState.numberActiveTouches = 0, gestureState._accountsForMovesUpTo = 0;
52
+ },
53
+ /**
54
+ * Take all recently moved touches, calculate how the centroid has changed just for those
55
+ * recently moved touches, and append that change to an accumulator. This is
56
+ * to (at least) handle the case where the user is moving three fingers, and
57
+ * then one of the fingers stops but the other two continue.
58
+ *
59
+ * This is very different than taking all of the recently moved touches and
60
+ * storing their centroid as `dx/dy`. For correctness, we must *accumulate
61
+ * changes* in the centroid of recently moved touches.
62
+ *
63
+ * There is also some nuance with how we handle multiple moved touches in a
64
+ * single event. Multiple touches generate two 'move' events, each of
65
+ * them triggering `onResponderMove`. But with the way `PanResponder` works,
66
+ * all of the gesture inference is performed on the first dispatch, since it
67
+ * looks at all of the touches. Therefore, `PanResponder` does not call
68
+ * `onResponderMove` passed the first dispatch. This diverges from the
69
+ * typical responder callback pattern (without using `PanResponder`), but
70
+ * avoids more dispatches than necessary.
71
+ *
72
+ * When moving two touches in opposite directions, the cumulative
73
+ * distance is zero in each dimension. When two touches move in parallel five
74
+ * pixels in the same direction, the cumulative distance is five, not ten. If
75
+ * two touches start, one moves five in a direction, then stops and the other
76
+ * touch moves fives in the same direction, the cumulative distance is ten.
77
+ *
78
+ * This logic requires a kind of processing of time "clusters" of touch events
79
+ * so that two touch moves that essentially occur in parallel but move every
80
+ * other frame respectively, are considered part of the same movement.
81
+ *
82
+ * x/y: If a move event has been observed, `(x, y)` is the centroid of the most
83
+ * recently moved "cluster" of active touches.
84
+ * deltaX/deltaY: Cumulative touch distance. Accounts for touch moves that are
85
+ * clustered together in time, moving the same direction. Only valid when
86
+ * currently responder (otherwise, it only represents the drag distance below
87
+ * the threshold).
88
+ */
89
+ _updateGestureStateOnMove(gestureState, touchHistory) {
90
+ const movedAfter = gestureState._accountsForMovesUpTo,
91
+ prevX = previousCentroidXOfTouchesChangedAfter(touchHistory, movedAfter),
92
+ prevY = previousCentroidYOfTouchesChangedAfter(touchHistory, movedAfter),
93
+ prevDeltaX = gestureState.deltaX,
94
+ prevDeltaY = gestureState.deltaY,
95
+ x = currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter),
96
+ y = currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter),
97
+ deltaX = prevDeltaX + (x - prevX),
98
+ deltaY = prevDeltaY + (y - prevY),
99
+ dt = touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo;
100
+ gestureState.deltaX = deltaX, gestureState.deltaY = deltaY, gestureState.numberActiveTouches = touchHistory.numberActiveTouches, gestureState.velocityX = (deltaX - prevDeltaX) / dt, gestureState.velocityY = (deltaY - prevDeltaY) / dt, gestureState.x = x, gestureState.y = y, gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp;
101
+ },
102
+ /**
103
+ * Enhanced versions of all of the responder callbacks that provide not only
104
+ * the `ResponderEvent`, but also the `PanResponder` gesture state.
105
+ *
106
+ * In general, for events that have capture equivalents, we update the
107
+ * gestureState once in the capture phase and can use it in the bubble phase
108
+ * as well.
109
+ */
110
+ create(config) {
111
+ const interactionState = {
112
+ handle: null
113
+ },
114
+ gestureState = {
115
+ // Useful for debugging
116
+ stateID: Math.random(),
117
+ x: 0,
118
+ y: 0,
119
+ initialX: 0,
120
+ initialY: 0,
121
+ deltaX: 0,
122
+ deltaY: 0,
123
+ velocityX: 0,
124
+ velocityY: 0,
125
+ numberActiveTouches: 0,
126
+ _accountsForMovesUpTo: 0
127
+ },
128
+ {
129
+ onStartShouldSetResponder,
130
+ onStartShouldSetResponderCapture,
131
+ onMoveShouldSetResponder,
132
+ onMoveShouldSetResponderCapture,
133
+ onPanGrant,
134
+ onPanStart,
135
+ onPanMove,
136
+ onPanEnd,
137
+ onPanRelease,
138
+ onPanReject,
139
+ onPanTerminate,
140
+ onPanTerminationRequest
141
+ } = config;
142
+ return {
143
+ panHandlers: {
144
+ onStartShouldSetResponder(event) {
145
+ return onStartShouldSetResponder != null ? onStartShouldSetResponder(event, gestureState) : !1;
146
+ },
147
+ onMoveShouldSetResponder(event) {
148
+ return onMoveShouldSetResponder != null ? onMoveShouldSetResponder(event, gestureState) : !1;
149
+ },
150
+ onStartShouldSetResponderCapture(event) {
151
+ return event.nativeEvent.touches.length === 1 && PanResponder._initializeGestureState(gestureState), gestureState.numberActiveTouches = event.touchHistory.numberActiveTouches, onStartShouldSetResponderCapture != null ? onStartShouldSetResponderCapture(event, gestureState) : !1;
152
+ },
153
+ onMoveShouldSetResponderCapture(event) {
154
+ const touchHistory = event.touchHistory;
155
+ return PanResponder._updateGestureStateOnMove(gestureState, touchHistory), onMoveShouldSetResponderCapture != null ? onMoveShouldSetResponderCapture(event, gestureState) : !1;
156
+ },
157
+ onResponderGrant(event) {
158
+ interactionState.handle || (interactionState.handle = import_react_native_web_internals.InteractionManager.createInteractionHandle()), gestureState.initialX = currentCentroidX(event.touchHistory), gestureState.initialY = currentCentroidY(event.touchHistory), gestureState.deltaX = 0, gestureState.deltaY = 0, onPanGrant?.(event, gestureState);
159
+ },
160
+ onResponderReject(event) {
161
+ clearInteractionHandle(interactionState, onPanReject, event, gestureState);
162
+ },
163
+ onResponderStart(event) {
164
+ const {
165
+ numberActiveTouches
166
+ } = event.touchHistory;
167
+ gestureState.numberActiveTouches = numberActiveTouches, onPanStart?.(event, gestureState);
168
+ },
169
+ onResponderMove(event) {
170
+ const touchHistory = event.touchHistory;
171
+ gestureState._accountsForMovesUpTo !== touchHistory.mostRecentTimeStamp && (PanResponder._updateGestureStateOnMove(gestureState, touchHistory), onPanMove?.(event, gestureState));
172
+ },
173
+ onResponderEnd(event) {
174
+ const {
175
+ numberActiveTouches
176
+ } = event.touchHistory;
177
+ gestureState.numberActiveTouches = numberActiveTouches, clearInteractionHandle(interactionState, onPanEnd, event, gestureState);
178
+ },
179
+ onResponderRelease(event) {
180
+ clearInteractionHandle(interactionState, onPanRelease, event, gestureState), PanResponder._initializeGestureState(gestureState);
181
+ },
182
+ onResponderTerminate(event) {
183
+ clearInteractionHandle(interactionState, onPanTerminate, event, gestureState), PanResponder._initializeGestureState(gestureState);
184
+ },
185
+ onResponderTerminationRequest(event) {
186
+ return onPanTerminationRequest != null ? onPanTerminationRequest(event, gestureState) : !0;
187
+ }
188
+ },
189
+ getInteractionHandle() {
190
+ return interactionState.handle;
191
+ }
192
+ };
193
+ }
194
+ };
195
+ function clearInteractionHandle(interactionState, callback, event, gestureState) {
196
+ interactionState.handle && (import_react_native_web_internals.InteractionManager.clearInteractionHandle(interactionState.handle), interactionState.handle = null), callback && callback(event, gestureState);
197
+ }
198
+ var Alternative_default = PanResponder;
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/PanResponder/Alternative.tsx"],
4
+ "mappings": "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",
5
+ "names": ["TouchHistoryMath"]
6
+ }
@@ -2,28 +2,37 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
15
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
21
  // If the importer is in node compatibility mode or this is not an ESM
17
22
  // file that has been converted to a CommonJS file using a Babel-
18
23
  // compatible transform (i.e. "__esModule" has not been set), then set
19
24
  // "default" to the CommonJS "module.exports" for node compatibility.
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
- mod
22
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
23
32
  var PanResponder_exports = {};
24
33
  __export(PanResponder_exports, {
25
34
  default: () => PanResponder_default
26
35
  });
27
36
  module.exports = __toCommonJS(PanResponder_exports);
28
- var import_PanResponder = __toESM(require("../vendor/react-native/PanResponder/index")), PanResponder_default = import_PanResponder.default;
29
- //# sourceMappingURL=index.js.map
37
+ var import_PanResponder = __toESM(require("../vendor/react-native/PanResponder/index.cjs")),
38
+ PanResponder_default = import_PanResponder.default;
@@ -2,30 +2,39 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
15
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
21
  // If the importer is in node compatibility mode or this is not an ESM
17
22
  // file that has been converted to a CommonJS file using a Babel-
18
23
  // compatible transform (i.e. "__esModule" has not been set), then set
19
24
  // "default" to the CommonJS "module.exports" for node compatibility.
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
- mod
22
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
23
32
  var PixelRatio_exports = {};
24
33
  __export(PixelRatio_exports, {
25
34
  default: () => PixelRatio
26
35
  });
27
36
  module.exports = __toCommonJS(PixelRatio_exports);
28
- var import_Dimensions = __toESM(require("../Dimensions/index"));
37
+ var import_Dimensions = __toESM(require("../Dimensions/index.cjs"));
29
38
  class PixelRatio {
30
39
  /**
31
40
  * Returns the device pixel density.
@@ -56,5 +65,4 @@ class PixelRatio {
56
65
  const ratio = PixelRatio.get();
57
66
  return Math.round(layoutSize * ratio) / ratio;
58
67
  }
59
- }
60
- //# sourceMappingURL=index.js.map
68
+ }