@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
@@ -1,272 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
- var PanResponder_exports = {};
25
- __export(PanResponder_exports, {
26
- default: () => PanResponder_default
27
- });
28
- module.exports = __toCommonJS(PanResponder_exports);
29
- var import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_TouchHistoryMath = __toESM(require("../TouchHistoryMath"));
30
- const currentCentroidXOfTouchesChangedAfter = import_TouchHistoryMath.default.currentCentroidXOfTouchesChangedAfter, currentCentroidYOfTouchesChangedAfter = import_TouchHistoryMath.default.currentCentroidYOfTouchesChangedAfter, previousCentroidXOfTouchesChangedAfter = import_TouchHistoryMath.default.previousCentroidXOfTouchesChangedAfter, previousCentroidYOfTouchesChangedAfter = import_TouchHistoryMath.default.previousCentroidYOfTouchesChangedAfter, currentCentroidX = import_TouchHistoryMath.default.currentCentroidX, currentCentroidY = import_TouchHistoryMath.default.currentCentroidY, PanResponder = {
31
- /**
32
- *
33
- * A graphical explanation of the touch data flow:
34
- *
35
- * +----------------------------+ +--------------------------------+
36
- * | ResponderTouchHistoryStore | |TouchHistoryMath |
37
- * +----------------------------+ +----------+---------------------+
38
- * |Global store of touchHistory| |Allocation-less math util |
39
- * |including activeness, start | |on touch history (centroids |
40
- * |position, prev/cur position.| |and multitouch movement etc) |
41
- * | | | |
42
- * +----^-----------------------+ +----^---------------------------+
43
- * | |
44
- * | (records relevant history |
45
- * | of touches relevant for |
46
- * | implementing higher level |
47
- * | gestures) |
48
- * | |
49
- * +----+-----------------------+ +----|---------------------------+
50
- * | ResponderEventPlugin | | | Your App/Component |
51
- * +----------------------------+ +----|---------------------------+
52
- * |Negotiates which view gets | Low level | | High level |
53
- * |onResponderMove events. | events w/ | +-+-------+ events w/ |
54
- * |Also records history into | touchHistory| | Pan | multitouch + |
55
- * |ResponderTouchHistoryStore. +---------------->Responder+-----> accumulative|
56
- * +----------------------------+ attached to | | | distance and |
57
- * each event | +---------+ velocity. |
58
- * | |
59
- * | |
60
- * +--------------------------------+
61
- *
62
- *
63
- *
64
- * Gesture that calculates cumulative movement over time in a way that just
65
- * "does the right thing" for multiple touches. The "right thing" is very
66
- * nuanced. When moving two touches in opposite directions, the cumulative
67
- * distance is zero in each dimension. When two touches move in parallel five
68
- * pixels in the same direction, the cumulative distance is five, not ten. If
69
- * two touches start, one moves five in a direction, then stops and the other
70
- * touch moves fives in the same direction, the cumulative distance is ten.
71
- *
72
- * This logic requires a kind of processing of time "clusters" of touch events
73
- * so that two touch moves that essentially occur in parallel but move every
74
- * other frame respectively, are considered part of the same movement.
75
- *
76
- * Explanation of some of the non-obvious fields:
77
- *
78
- * - moveX/moveY: If no move event has been observed, then `(moveX, moveY)` is
79
- * invalid. If a move event has been observed, `(moveX, moveY)` is the
80
- * centroid of the most recently moved "cluster" of active touches.
81
- * (Currently all move have the same timeStamp, but later we should add some
82
- * threshold for what is considered to be "moving"). If a palm is
83
- * accidentally counted as a touch, but a finger is moving greatly, the palm
84
- * will move slightly, but we only want to count the single moving touch.
85
- * - x0/y0: Centroid location (non-cumulative) at the time of becoming
86
- * responder.
87
- * - dx/dy: Cumulative touch distance - not the same thing as sum of each touch
88
- * distance. Accounts for touch moves that are clustered together in time,
89
- * moving the same direction. Only valid when currently responder (otherwise,
90
- * it only represents the drag distance below the threshold).
91
- * - vx/vy: Velocity.
92
- */
93
- _initializeGestureState(gestureState) {
94
- gestureState.moveX = 0, gestureState.moveY = 0, gestureState.x0 = 0, gestureState.y0 = 0, gestureState.dx = 0, gestureState.dy = 0, gestureState.vx = 0, gestureState.vy = 0, gestureState.numberActiveTouches = 0, gestureState._accountsForMovesUpTo = 0;
95
- },
96
- /**
97
- * This is nuanced and is necessary. It is incorrect to continuously take all
98
- * active *and* recently moved touches, find the centroid, and track how that
99
- * result changes over time. Instead, we must take all recently moved
100
- * touches, and calculate how the centroid has changed just for those
101
- * recently moved touches, and append that change to an accumulator. This is
102
- * to (at least) handle the case where the user is moving three fingers, and
103
- * then one of the fingers stops but the other two continue.
104
- *
105
- * This is very different than taking all of the recently moved touches and
106
- * storing their centroid as `dx/dy`. For correctness, we must *accumulate
107
- * changes* in the centroid of recently moved touches.
108
- *
109
- * There is also some nuance with how we handle multiple moved touches in a
110
- * single event. With the way `ReactNativeEventEmitter` dispatches touches as
111
- * individual events, multiple touches generate two 'move' events, each of
112
- * them triggering `onResponderMove`. But with the way `PanResponder` works,
113
- * all of the gesture inference is performed on the first dispatch, since it
114
- * looks at all of the touches (even the ones for which there hasn't been a
115
- * native dispatch yet). Therefore, `PanResponder` does not call
116
- * `onResponderMove` passed the first dispatch. This diverges from the
117
- * typical responder callback pattern (without using `PanResponder`), but
118
- * avoids more dispatches than necessary.
119
- */
120
- _updateGestureStateOnMove(gestureState, touchHistory) {
121
- gestureState.numberActiveTouches = touchHistory.numberActiveTouches, gestureState.moveX = currentCentroidXOfTouchesChangedAfter(
122
- touchHistory,
123
- gestureState._accountsForMovesUpTo
124
- ), gestureState.moveY = currentCentroidYOfTouchesChangedAfter(
125
- touchHistory,
126
- gestureState._accountsForMovesUpTo
127
- );
128
- const movedAfter = gestureState._accountsForMovesUpTo, prevX = previousCentroidXOfTouchesChangedAfter(touchHistory, movedAfter), x = currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter), prevY = previousCentroidYOfTouchesChangedAfter(touchHistory, movedAfter), y = currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter), nextDX = gestureState.dx + (x - prevX), nextDY = gestureState.dy + (y - prevY), dt = touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo;
129
- gestureState.vx = (nextDX - gestureState.dx) / dt, gestureState.vy = (nextDY - gestureState.dy) / dt, gestureState.dx = nextDX, gestureState.dy = nextDY, gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp;
130
- },
131
- /**
132
- * @param {object} config Enhanced versions of all of the responder callbacks
133
- * that provide not only the typical `ResponderSyntheticEvent`, but also the
134
- * `PanResponder` gesture state. Simply replace the word `Responder` with
135
- * `PanResponder` in each of the typical `onResponder*` callbacks. For
136
- * example, the `config` object would look like:
137
- *
138
- * - `onMoveShouldSetPanResponder: (e, gestureState) => {...}`
139
- * - `onMoveShouldSetPanResponderCapture: (e, gestureState) => {...}`
140
- * - `onStartShouldSetPanResponder: (e, gestureState) => {...}`
141
- * - `onStartShouldSetPanResponderCapture: (e, gestureState) => {...}`
142
- * - `onPanResponderReject: (e, gestureState) => {...}`
143
- * - `onPanResponderGrant: (e, gestureState) => {...}`
144
- * - `onPanResponderStart: (e, gestureState) => {...}`
145
- * - `onPanResponderEnd: (e, gestureState) => {...}`
146
- * - `onPanResponderRelease: (e, gestureState) => {...}`
147
- * - `onPanResponderMove: (e, gestureState) => {...}`
148
- * - `onPanResponderTerminate: (e, gestureState) => {...}`
149
- * - `onPanResponderTerminationRequest: (e, gestureState) => {...}`
150
- * - `onShouldBlockNativeResponder: (e, gestureState) => {...}`
151
- *
152
- * In general, for events that have capture equivalents, we update the
153
- * gestureState once in the capture phase and can use it in the bubble phase
154
- * as well.
155
- *
156
- * Be careful with onStartShould* callbacks. They only reflect updated
157
- * `gestureState` for start/end events that bubble/capture to the Node.
158
- * Once the node is the responder, you can rely on every start/end event
159
- * being processed by the gesture and `gestureState` being updated
160
- * accordingly. (numberActiveTouches) may not be totally accurate unless you
161
- * are the responder.
162
- */
163
- create(config) {
164
- const interactionState = {
165
- handle: null,
166
- shouldCancelClick: !1,
167
- timeout: null
168
- }, gestureState = {
169
- // Useful for debugging
170
- stateID: Math.random(),
171
- moveX: 0,
172
- moveY: 0,
173
- x0: 0,
174
- y0: 0,
175
- dx: 0,
176
- dy: 0,
177
- vx: 0,
178
- vy: 0,
179
- numberActiveTouches: 0,
180
- _accountsForMovesUpTo: 0
181
- };
182
- return {
183
- panHandlers: {
184
- onStartShouldSetResponder(event) {
185
- return config.onStartShouldSetPanResponder == null ? !1 : config.onStartShouldSetPanResponder(event, gestureState);
186
- },
187
- onMoveShouldSetResponder(event) {
188
- return config.onMoveShouldSetPanResponder == null ? !1 : config.onMoveShouldSetPanResponder(event, gestureState);
189
- },
190
- onStartShouldSetResponderCapture(event) {
191
- return event.nativeEvent.touches.length === 1 && PanResponder._initializeGestureState(gestureState), gestureState.numberActiveTouches = event.touchHistory.numberActiveTouches, config.onStartShouldSetPanResponderCapture != null ? config.onStartShouldSetPanResponderCapture(event, gestureState) : !1;
192
- },
193
- onMoveShouldSetResponderCapture(event) {
194
- const touchHistory = event.touchHistory;
195
- return gestureState._accountsForMovesUpTo === touchHistory.mostRecentTimeStamp ? !1 : (PanResponder._updateGestureStateOnMove(gestureState, touchHistory), config.onMoveShouldSetPanResponderCapture ? config.onMoveShouldSetPanResponderCapture(event, gestureState) : !1);
196
- },
197
- onResponderGrant(event) {
198
- return interactionState.handle || (interactionState.handle = import_react_native_web_internals.InteractionManager.createInteractionHandle()), interactionState.timeout && clearInteractionTimeout(interactionState), interactionState.shouldCancelClick = !0, gestureState.x0 = currentCentroidX(event.touchHistory), gestureState.y0 = currentCentroidY(event.touchHistory), gestureState.dx = 0, gestureState.dy = 0, config.onPanResponderGrant && config.onPanResponderGrant(event, gestureState), config.onShouldBlockNativeResponder == null ? !0 : config.onShouldBlockNativeResponder(event, gestureState);
199
- },
200
- onResponderReject(event) {
201
- clearInteractionHandle(
202
- interactionState,
203
- // @ts-ignore
204
- config.onPanResponderReject,
205
- event,
206
- gestureState
207
- );
208
- },
209
- onResponderRelease(event) {
210
- clearInteractionHandle(
211
- interactionState,
212
- config.onPanResponderRelease,
213
- event,
214
- gestureState
215
- ), setInteractionTimeout(interactionState), PanResponder._initializeGestureState(gestureState);
216
- },
217
- onResponderStart(event) {
218
- const touchHistory = event.touchHistory;
219
- gestureState.numberActiveTouches = touchHistory.numberActiveTouches, config.onPanResponderStart && config.onPanResponderStart(event, gestureState);
220
- },
221
- onResponderMove(event) {
222
- const touchHistory = event.touchHistory;
223
- gestureState._accountsForMovesUpTo !== touchHistory.mostRecentTimeStamp && (PanResponder._updateGestureStateOnMove(gestureState, touchHistory), config.onPanResponderMove && config.onPanResponderMove(event, gestureState));
224
- },
225
- onResponderEnd(event) {
226
- const touchHistory = event.touchHistory;
227
- gestureState.numberActiveTouches = touchHistory.numberActiveTouches, clearInteractionHandle(
228
- interactionState,
229
- config.onPanResponderEnd,
230
- event,
231
- gestureState
232
- );
233
- },
234
- onResponderTerminate(event) {
235
- clearInteractionHandle(
236
- interactionState,
237
- // @ts-ignore
238
- config.onPanResponderTerminate,
239
- event,
240
- gestureState
241
- ), setInteractionTimeout(interactionState), PanResponder._initializeGestureState(gestureState);
242
- },
243
- onResponderTerminationRequest(event) {
244
- return config.onPanResponderTerminationRequest == null ? !0 : config.onPanResponderTerminationRequest(event, gestureState);
245
- },
246
- // We do not want to trigger 'click' activated gestures or native behaviors
247
- // on any pan target that is under a mouse cursor when it is released.
248
- // Browsers will natively cancel 'click' events on a target if a non-mouse
249
- // active pointer moves.
250
- onClickCapture: (event) => {
251
- interactionState.shouldCancelClick === !0 && (event.stopPropagation(), event.preventDefault());
252
- }
253
- },
254
- getInteractionHandle() {
255
- return interactionState.handle;
256
- }
257
- };
258
- }
259
- };
260
- function clearInteractionHandle(interactionState, callback, event, gestureState) {
261
- interactionState.handle && (import_react_native_web_internals.InteractionManager.clearInteractionHandle(interactionState.handle), interactionState.handle = null), callback && callback(event, gestureState);
262
- }
263
- function clearInteractionTimeout(interactionState) {
264
- clearTimeout(interactionState.timeout);
265
- }
266
- function setInteractionTimeout(interactionState) {
267
- interactionState.timeout = setTimeout(() => {
268
- interactionState.shouldCancelClick = !1;
269
- }, 250);
270
- }
271
- var PanResponder_default = PanResponder;
272
- //# sourceMappingURL=index.js.map
@@ -1,118 +0,0 @@
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)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var TouchHistoryMath_exports = {};
16
- __export(TouchHistoryMath_exports, {
17
- default: () => TouchHistoryMath_default
18
- });
19
- module.exports = __toCommonJS(TouchHistoryMath_exports);
20
- const TouchHistoryMath = {
21
- /**
22
- * This code is optimized and not intended to look beautiful. This allows
23
- * computing of touch centroids that have moved after `touchesChangedAfter`
24
- * timeStamp. You can compute the current centroid involving all touches
25
- * moves after `touchesChangedAfter`, or you can compute the previous
26
- * centroid of all touches that were moved after `touchesChangedAfter`.
27
- *
28
- * @param {TouchHistoryMath} touchHistory Standard Responder touch track
29
- * data.
30
- * @param {number} touchesChangedAfter timeStamp after which moved touches
31
- * are considered "actively moving" - not just "active".
32
- * @param {boolean} isXAxis Consider `x` dimension vs. `y` dimension.
33
- * @param {boolean} ofCurrent Compute current centroid for actively moving
34
- * touches vs. previous centroid of now actively moving touches.
35
- * @return {number} value of centroid in specified dimension.
36
- */
37
- centroidDimension: function(touchHistory, touchesChangedAfter, isXAxis, ofCurrent) {
38
- const touchBank = touchHistory.touchBank;
39
- let total = 0, count = 0;
40
- const oneTouchData = touchHistory.numberActiveTouches === 1 ? touchHistory.touchBank[touchHistory.indexOfSingleActiveTouch] : null;
41
- if (oneTouchData !== null)
42
- oneTouchData.touchActive && oneTouchData.currentTimeStamp > touchesChangedAfter && (total += ofCurrent && isXAxis ? oneTouchData.currentPageX : ofCurrent && !isXAxis ? oneTouchData.currentPageY : !ofCurrent && isXAxis ? oneTouchData.previousPageX : oneTouchData.previousPageY, count = 1);
43
- else
44
- for (let i = 0; i < touchBank.length; i++) {
45
- const touchTrack = touchBank[i];
46
- if (touchTrack != null && touchTrack.touchActive && touchTrack.currentTimeStamp >= touchesChangedAfter) {
47
- let toAdd;
48
- ofCurrent && isXAxis ? toAdd = touchTrack.currentPageX : ofCurrent && !isXAxis ? toAdd = touchTrack.currentPageY : !ofCurrent && isXAxis ? toAdd = touchTrack.previousPageX : toAdd = touchTrack.previousPageY, total += toAdd, count++;
49
- }
50
- }
51
- return count > 0 ? total / count : TouchHistoryMath.noCentroid;
52
- },
53
- currentCentroidXOfTouchesChangedAfter: function(touchHistory, touchesChangedAfter) {
54
- return TouchHistoryMath.centroidDimension(
55
- touchHistory,
56
- touchesChangedAfter,
57
- !0,
58
- // isXAxis
59
- !0
60
- // ofCurrent
61
- );
62
- },
63
- currentCentroidYOfTouchesChangedAfter: function(touchHistory, touchesChangedAfter) {
64
- return TouchHistoryMath.centroidDimension(
65
- touchHistory,
66
- touchesChangedAfter,
67
- !1,
68
- // isXAxis
69
- !0
70
- // ofCurrent
71
- );
72
- },
73
- previousCentroidXOfTouchesChangedAfter: function(touchHistory, touchesChangedAfter) {
74
- return TouchHistoryMath.centroidDimension(
75
- touchHistory,
76
- touchesChangedAfter,
77
- !0,
78
- // isXAxis
79
- !1
80
- // ofCurrent
81
- );
82
- },
83
- previousCentroidYOfTouchesChangedAfter: function(touchHistory, touchesChangedAfter) {
84
- return TouchHistoryMath.centroidDimension(
85
- touchHistory,
86
- touchesChangedAfter,
87
- !1,
88
- // isXAxis
89
- !1
90
- // ofCurrent
91
- );
92
- },
93
- currentCentroidX: function(touchHistory) {
94
- return TouchHistoryMath.centroidDimension(
95
- touchHistory,
96
- 0,
97
- // touchesChangedAfter
98
- !0,
99
- // isXAxis
100
- !0
101
- // ofCurrent
102
- );
103
- },
104
- currentCentroidY: function(touchHistory) {
105
- return TouchHistoryMath.centroidDimension(
106
- touchHistory,
107
- 0,
108
- // touchesChangedAfter
109
- !1,
110
- // isXAxis
111
- !0
112
- // ofCurrent
113
- );
114
- },
115
- noCentroid: -1
116
- };
117
- var TouchHistoryMath_default = TouchHistoryMath;
118
- //# sourceMappingURL=index.js.map
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=RCTExport.js.map
@@ -1,28 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- 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
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
- var TurboModuleRegistry_exports = {};
17
- __export(TurboModuleRegistry_exports, {
18
- get: () => get,
19
- getEnforcing: () => getEnforcing
20
- });
21
- module.exports = __toCommonJS(TurboModuleRegistry_exports);
22
- function get(name) {
23
- return null;
24
- }
25
- function getEnforcing(name) {
26
- return null;
27
- }
28
- //# sourceMappingURL=TurboModuleRegistry.js.map
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from == "object" || typeof from == "function")
8
- for (let key of __getOwnPropNames(from))
9
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- return to;
11
- };
12
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
13
- var CoreEventTypes_exports = {};
14
- module.exports = __toCommonJS(CoreEventTypes_exports);
15
- //# sourceMappingURL=CoreEventTypes.js.map
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- 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
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
- var setAndForwardRef_exports = {};
17
- __export(setAndForwardRef_exports, {
18
- default: () => setAndForwardRef_default
19
- });
20
- module.exports = __toCommonJS(setAndForwardRef_exports);
21
- function setAndForwardRef(_ref) {
22
- var getForwardedRef = _ref.getForwardedRef, setLocalRef = _ref.setLocalRef;
23
- return function(ref) {
24
- var forwardedRef = getForwardedRef();
25
- setLocalRef(ref), typeof forwardedRef == "function" ? forwardedRef(ref) : typeof forwardedRef == "object" && forwardedRef != null && (forwardedRef.current = ref);
26
- };
27
- }
28
- var setAndForwardRef_default = setAndForwardRef;
29
- //# sourceMappingURL=setAndForwardRef.js.map
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=EventSubscription.js.map
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- 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
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
- var infoLog_exports = {};
17
- __export(infoLog_exports, {
18
- default: () => infoLog_default
19
- });
20
- module.exports = __toCommonJS(infoLog_exports);
21
- function infoLog(...args) {
22
- return console.log(...args);
23
- }
24
- var infoLog_default = infoLog;
25
- //# sourceMappingURL=index.js.map
@@ -1,30 +0,0 @@
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)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var useRefEffect_exports = {};
16
- __export(useRefEffect_exports, {
17
- default: () => useRefEffect
18
- });
19
- module.exports = __toCommonJS(useRefEffect_exports);
20
- var import_react = require("react");
21
- function useRefEffect(effect) {
22
- const cleanupRef = (0, import_react.useRef)(void 0);
23
- return (0, import_react.useCallback)(
24
- (instance) => {
25
- cleanupRef.current && (cleanupRef.current(), cleanupRef.current = void 0), instance != null && (cleanupRef.current = effect(instance));
26
- },
27
- [effect]
28
- );
29
- }
30
- //# sourceMappingURL=useRefEffect.js.map
@@ -1,95 +0,0 @@
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, __hasOwnProp = Object.prototype.hasOwnProperty;
6
- 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
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")), __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
15
- // If the importer is in node compatibility mode or this is not an ESM
16
- // file that has been converted to a CommonJS file using a Babel-
17
- // compatible transform (i.e. "__esModule" has not been set), then set
18
- // "default" to the CommonJS "module.exports" for node compatibility.
19
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
20
- mod
21
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
22
- var without_animated_exports = {};
23
- __export(without_animated_exports, {
24
- AccessibilityInfo: () => import_AccessibilityInfo.default,
25
- ActivityIndicator: () => import_ActivityIndicator.default,
26
- Alert: () => import_Alert.default,
27
- AppRegistry: () => import_AppRegistry.default,
28
- AppState: () => import_AppState.default,
29
- Appearance: () => import_Appearance.default,
30
- BackHandler: () => import_BackHandler.default,
31
- Clipboard: () => import_Clipboard.default,
32
- DeviceEmitter: () => import_DeviceEmitter.default,
33
- DeviceEventEmitter: () => import_DeviceEmitter2.default,
34
- DeviceInfo: () => import_DeviceInfo.default,
35
- Dimensions: () => import_Dimensions.default,
36
- DrawerLayoutAndroid: () => import_UnimplementedView.default,
37
- FlatList: () => import_UnimplementedView4.default,
38
- I18nManager: () => import_I18nManager.default,
39
- Image: () => import_Image.default,
40
- ImageBackground: () => import_ImageBackground.default,
41
- ImageLoader: () => import_react_native_web_internals.ImageLoader,
42
- Keyboard: () => import_Keyboard.default,
43
- KeyboardAvoidingView: () => import_KeyboardAvoidingView.default,
44
- Linking: () => import_Linking.default,
45
- LogBox: () => import_LogBox.default,
46
- Modal: () => import_Modal.default,
47
- NativeEventEmitter: () => import_NativeEventEmitter.default,
48
- NativeModules: () => import_NativeModules.default,
49
- PanResponder: () => import_PanResponder.default,
50
- PixelRatio: () => import_PixelRatio.default,
51
- Platform: () => import_react_native_web_internals.Platform,
52
- Pressable: () => import_Pressable.default,
53
- RefreshControl: () => import_RefreshControl.default,
54
- SafeAreaView: () => import_SafeAreaView.default,
55
- ScrollView: () => import_ScrollView.default,
56
- SectionList: () => import_UnimplementedView7.default,
57
- Share: () => import_Share.default,
58
- StatusBar: () => import_StatusBar.default,
59
- Switch: () => import_UnimplementedView2.default,
60
- Text: () => import_Text.default,
61
- TextInput: () => import_TextInput.default,
62
- TouchableHighlight: () => import_UnimplementedView5.default,
63
- TouchableNativeFeedback: () => import_UnimplementedView6.default,
64
- TouchableOpacity: () => import_TouchableOpacity.default,
65
- TouchableWithoutFeedback: () => import_TouchableWithoutFeedback.default,
66
- UIManager: () => import_react_native_web_internals.UIManager,
67
- Vibration: () => import_Vibration.default,
68
- View: () => import_View.default,
69
- VirtualizedList: () => import_UnimplementedView3.default,
70
- canUseDOM: () => import_react_native_web_internals.canUseDOM,
71
- dismissKeyboard: () => import_react_native_web_internals.dismissKeyboard,
72
- findNodeHandle: () => import_findNodeHandle.findNodeHandle,
73
- isWebColor: () => import_react_native_web_internals.isWebColor,
74
- mergeRefs: () => import_react_native_web_internals.mergeRefs,
75
- processColor: () => import_react_native_web_internals.processColor,
76
- render: () => import_render.default,
77
- requireNativeComponent: () => requireNativeComponent,
78
- unmountComponentAtNode: () => import_react_dom.unmountComponentAtNode,
79
- unstable_createElement: () => import_createElement.default,
80
- useColorScheme: () => import_useColorScheme.default,
81
- useEvent: () => import_react_native_web_internals.useEvent,
82
- useHover: () => import_react_native_web_internals.useHover,
83
- useLocaleContext: () => import_useLocaleContext.useLocaleContext,
84
- useMergeRefs: () => import_react_native_web_internals.useMergeRefs,
85
- useWindowDimensions: () => import_useWindowDimensions.default
86
- });
87
- module.exports = __toCommonJS(without_animated_exports);
88
- var import_createElement = __toESM(require("./createElement/index")), import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_render = __toESM(require("./render/index")), import_react_dom = require("react-dom"), import_NativeModules = __toESM(require("./NativeModules/index")), import_findNodeHandle = require("./findNodeHandle"), import_NativeEventEmitter = __toESM(require("./vendor/react-native/NativeEventEmitter/index")), import_AccessibilityInfo = __toESM(require("./AccessibilityInfo/index")), import_Alert = __toESM(require("./Alert/index")), import_Appearance = __toESM(require("./Appearance/index")), import_AppRegistry = __toESM(require("./AppRegistry/index")), import_AppState = __toESM(require("./AppState/index")), import_BackHandler = __toESM(require("./BackHandler/index")), import_Clipboard = __toESM(require("./Clipboard/index")), import_DeviceInfo = __toESM(require("./DeviceInfo/index")), import_DeviceEmitter = __toESM(require("./DeviceEmitter")), import_DeviceEmitter2 = __toESM(require("./DeviceEmitter")), import_Dimensions = __toESM(require("./Dimensions/index")), import_I18nManager = __toESM(require("./I18nManager/index")), import_Keyboard = __toESM(require("./Keyboard/index")), import_Linking = __toESM(require("./Linking/index")), import_PanResponder = __toESM(require("./PanResponder/index")), import_PixelRatio = __toESM(require("./PixelRatio/index")), import_Share = __toESM(require("./Share/index")), import_Vibration = __toESM(require("./Vibration/index")), import_UnimplementedView = __toESM(require("./UnimplementedView")), import_UnimplementedView2 = __toESM(require("./UnimplementedView")), import_UnimplementedView3 = __toESM(require("./UnimplementedView")), import_UnimplementedView4 = __toESM(require("./UnimplementedView")), import_UnimplementedView5 = __toESM(require("./UnimplementedView")), import_UnimplementedView6 = __toESM(require("./UnimplementedView")), import_UnimplementedView7 = __toESM(require("./UnimplementedView")), import_TouchableOpacity = __toESM(require("./TouchableOpacity")), import_TouchableWithoutFeedback = __toESM(require("./TouchableWithoutFeedback")), import_ActivityIndicator = __toESM(require("./ActivityIndicator/index")), import_Image = __toESM(require("./Image/index")), import_ImageBackground = __toESM(require("./ImageBackground/index")), import_KeyboardAvoidingView = __toESM(require("./KeyboardAvoidingView/index")), import_Modal = __toESM(require("./Modal/index")), import_Pressable = __toESM(require("./Pressable/index")), import_RefreshControl = __toESM(require("./RefreshControl/index")), import_SafeAreaView = __toESM(require("./SafeAreaView/index")), import_ScrollView = __toESM(require("./ScrollView/index")), import_StatusBar = __toESM(require("./StatusBar/index")), import_Text = __toESM(require("./Text/index")), import_TextInput = __toESM(require("./TextInput/index")), import_View = __toESM(require("./View/index")), import_LogBox = __toESM(require("./LogBox/index")), import_useColorScheme = __toESM(require("./useColorScheme/index")), import_useLocaleContext = require("./useLocaleContext/index"), import_useWindowDimensions = __toESM(require("./useWindowDimensions/index"));
89
- __reExport(without_animated_exports, require("@tamagui/react-native-web-internals"), module.exports);
90
- function requireNativeComponent(name) {
91
- return function() {
92
- return null;
93
- };
94
- }
95
- //# sourceMappingURL=without-animated.js.map
File without changes