@tamagui/react-native-web-lite 1.116.0 → 1.116.2

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 (243) hide show
  1. package/dist/cjs/AccessibilityInfo/index.js +96 -0
  2. package/dist/cjs/ActivityIndicator/__tests__/index-test.js +116 -0
  3. package/dist/cjs/ActivityIndicator/index.js +108 -0
  4. package/dist/cjs/Alert/index.js +25 -0
  5. package/dist/cjs/AppRegistry/AppContainer.js +41 -0
  6. package/dist/cjs/AppRegistry/__tests__/index-test.js +77 -0
  7. package/dist/cjs/AppRegistry/__tests__/index-test.node.js +131 -0
  8. package/dist/cjs/AppRegistry/index.js +98 -0
  9. package/dist/cjs/AppRegistry/renderApplication.js +51 -0
  10. package/dist/cjs/AppState/__tests__/index-test.js +33 -0
  11. package/dist/cjs/AppState/index.js +71 -0
  12. package/dist/cjs/Appearance/index.js +41 -0
  13. package/dist/cjs/BackHandler/index.js +32 -0
  14. package/dist/cjs/Clipboard/index.js +47 -0
  15. package/dist/cjs/DeviceEmitter.js +29 -0
  16. package/dist/cjs/DeviceInfo/index.js +62 -0
  17. package/dist/cjs/Dimensions/__tests__/index-test.js +51 -0
  18. package/dist/cjs/Dimensions/index.js +74 -0
  19. package/dist/cjs/I18nManager/index.js +30 -0
  20. package/dist/cjs/Image/index.js +253 -0
  21. package/dist/cjs/Image/types.js +14 -0
  22. package/dist/cjs/ImageBackground/__tests__/index-test.js +48 -0
  23. package/dist/cjs/ImageBackground/index.js +62 -0
  24. package/dist/cjs/Keyboard/index.js +35 -0
  25. package/dist/cjs/KeyboardAvoidingView/index.js +56 -0
  26. package/dist/cjs/Linking/__tests__/index-test.js +38 -0
  27. package/dist/cjs/Linking/index.js +86 -0
  28. package/dist/cjs/LogBox/index.js +31 -0
  29. package/dist/cjs/Modal/ModalAnimation.js +137 -0
  30. package/dist/cjs/Modal/ModalContent.js +75 -0
  31. package/dist/cjs/Modal/ModalFocusTrap.js +105 -0
  32. package/dist/cjs/Modal/ModalPortal.js +43 -0
  33. package/dist/cjs/Modal/index.js +92 -0
  34. package/dist/cjs/NativeModules/index.js +25 -0
  35. package/dist/cjs/PanResponder/index.js +29 -0
  36. package/dist/cjs/PixelRatio/index.js +60 -0
  37. package/dist/cjs/Pressable/index.js +140 -0
  38. package/dist/cjs/RefreshControl/index.js +48 -0
  39. package/dist/cjs/SafeAreaView/index.js +43 -0
  40. package/dist/cjs/ScrollView/ScrollViewBase.js +124 -0
  41. package/dist/cjs/ScrollView/index.js +374 -0
  42. package/dist/cjs/Share/index.js +56 -0
  43. package/dist/cjs/StatusBar/index.js +31 -0
  44. package/dist/cjs/Text/index.js +152 -0
  45. package/dist/cjs/Text/types.js +14 -0
  46. package/dist/cjs/TextInput/__tests__/index-test.js +422 -0
  47. package/dist/cjs/TextInput/index.js +260 -0
  48. package/dist/cjs/TextInput/types.js +14 -0
  49. package/dist/cjs/TouchableOpacity.js +123 -0
  50. package/dist/cjs/TouchableWithoutFeedback.js +90 -0
  51. package/dist/cjs/UnimplementedView.js +36 -0
  52. package/dist/cjs/Vibration/index.js +31 -0
  53. package/dist/cjs/View/index.js +101 -0
  54. package/dist/cjs/View/types.js +14 -0
  55. package/dist/cjs/createElement/__tests__/index-test.js +536 -0
  56. package/dist/cjs/createElement/index.js +37 -0
  57. package/dist/cjs/createReactDOMStyle.js +21 -0
  58. package/dist/cjs/findNodeHandle.js +29 -0
  59. package/dist/cjs/index.js +110 -0
  60. package/dist/cjs/render/index.js +45 -0
  61. package/dist/cjs/styleTypes.js +14 -0
  62. package/dist/cjs/types.js +14 -0
  63. package/dist/cjs/useColorScheme/index.js +39 -0
  64. package/dist/cjs/useLocaleContext/index.js +21 -0
  65. package/dist/cjs/useWindowDimensions/index.js +41 -0
  66. package/dist/cjs/vendor/react-native/Animated/Animated.js +35 -0
  67. package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.js +143 -0
  68. package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.js +458 -0
  69. package/dist/cjs/vendor/react-native/Animated/AnimatedMock.js +126 -0
  70. package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.js +2 -0
  71. package/dist/cjs/vendor/react-native/Animated/Easing.js +189 -0
  72. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js +335 -0
  73. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.js +29 -0
  74. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.js +29 -0
  75. package/dist/cjs/vendor/react-native/Animated/SpringConfig.js +70 -0
  76. package/dist/cjs/vendor/react-native/Animated/animations/Animation.js +64 -0
  77. package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.js +63 -0
  78. package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.js +146 -0
  79. package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.js +82 -0
  80. package/dist/cjs/vendor/react-native/Animated/bezier.js +72 -0
  81. package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.js +29 -0
  82. package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.js +38 -0
  83. package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.js +29 -0
  84. package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.js +29 -0
  85. package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js +42 -0
  86. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.js +57 -0
  87. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.js +197 -0
  88. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js +60 -0
  89. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.js +58 -0
  90. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.js +175 -0
  91. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.js +58 -0
  92. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.js +57 -0
  93. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.js +136 -0
  94. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.js +112 -0
  95. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.js +100 -0
  96. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.js +57 -0
  97. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.js +76 -0
  98. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.js +100 -0
  99. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.js +182 -0
  100. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.js +167 -0
  101. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.js +67 -0
  102. package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.js +89 -0
  103. package/dist/cjs/vendor/react-native/FeatureFlags.js +28 -0
  104. package/dist/cjs/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.js +29 -0
  105. package/dist/cjs/vendor/react-native/NativeEventEmitter/index.js +73 -0
  106. package/dist/cjs/vendor/react-native/PanResponder/index.js +272 -0
  107. package/dist/cjs/vendor/react-native/TouchHistoryMath/index.js +118 -0
  108. package/dist/cjs/vendor/react-native/TurboModule/RCTExport.js +2 -0
  109. package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.js +28 -0
  110. package/dist/cjs/vendor/react-native/Types/CoreEventTypes.js +15 -0
  111. package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.js +29 -0
  112. package/dist/cjs/vendor/react-native/emitter/EventEmitter.js +30 -0
  113. package/dist/cjs/vendor/react-native/emitter/EventSubscription.js +2 -0
  114. package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.js +55 -0
  115. package/dist/cjs/vendor/react-native/emitter/_EventEmitter.js +135 -0
  116. package/dist/cjs/vendor/react-native/emitter/_EventSubscription.js +37 -0
  117. package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.js +76 -0
  118. package/dist/cjs/vendor/react-native/infoLog/index.js +25 -0
  119. package/dist/cjs/vendor/react-native/useRefEffect.js +30 -0
  120. package/dist/cjs/without-animated.js +95 -0
  121. package/package.json +6 -6
  122. package/dist/cjs/PanResponder/Alternative.cjs +0 -198
  123. package/dist/cjs/PanResponder/Alternative.cjs.map +0 -6
  124. /package/dist/cjs/AccessibilityInfo/{index.cjs.map → index.js.map} +0 -0
  125. /package/dist/cjs/ActivityIndicator/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  126. /package/dist/cjs/ActivityIndicator/{index.cjs.map → index.js.map} +0 -0
  127. /package/dist/cjs/Alert/{index.cjs.map → index.js.map} +0 -0
  128. /package/dist/cjs/AppRegistry/{AppContainer.cjs.map → AppContainer.js.map} +0 -0
  129. /package/dist/cjs/AppRegistry/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  130. /package/dist/cjs/AppRegistry/__tests__/{index-test.node.cjs.map → index-test.node.js.map} +0 -0
  131. /package/dist/cjs/AppRegistry/{index.cjs.map → index.js.map} +0 -0
  132. /package/dist/cjs/AppRegistry/{renderApplication.cjs.map → renderApplication.js.map} +0 -0
  133. /package/dist/cjs/AppState/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  134. /package/dist/cjs/AppState/{index.cjs.map → index.js.map} +0 -0
  135. /package/dist/cjs/Appearance/{index.cjs.map → index.js.map} +0 -0
  136. /package/dist/cjs/BackHandler/{index.cjs.map → index.js.map} +0 -0
  137. /package/dist/cjs/Clipboard/{index.cjs.map → index.js.map} +0 -0
  138. /package/dist/cjs/{DeviceEmitter.cjs.map → DeviceEmitter.js.map} +0 -0
  139. /package/dist/cjs/DeviceInfo/{index.cjs.map → index.js.map} +0 -0
  140. /package/dist/cjs/Dimensions/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  141. /package/dist/cjs/Dimensions/{index.cjs.map → index.js.map} +0 -0
  142. /package/dist/cjs/I18nManager/{index.cjs.map → index.js.map} +0 -0
  143. /package/dist/cjs/Image/{index.cjs.map → index.js.map} +0 -0
  144. /package/dist/cjs/Image/{types.cjs.map → types.js.map} +0 -0
  145. /package/dist/cjs/ImageBackground/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  146. /package/dist/cjs/ImageBackground/{index.cjs.map → index.js.map} +0 -0
  147. /package/dist/cjs/Keyboard/{index.cjs.map → index.js.map} +0 -0
  148. /package/dist/cjs/KeyboardAvoidingView/{index.cjs.map → index.js.map} +0 -0
  149. /package/dist/cjs/Linking/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  150. /package/dist/cjs/Linking/{index.cjs.map → index.js.map} +0 -0
  151. /package/dist/cjs/LogBox/{index.cjs.map → index.js.map} +0 -0
  152. /package/dist/cjs/Modal/{ModalAnimation.cjs.map → ModalAnimation.js.map} +0 -0
  153. /package/dist/cjs/Modal/{ModalContent.cjs.map → ModalContent.js.map} +0 -0
  154. /package/dist/cjs/Modal/{ModalFocusTrap.cjs.map → ModalFocusTrap.js.map} +0 -0
  155. /package/dist/cjs/Modal/{ModalPortal.cjs.map → ModalPortal.js.map} +0 -0
  156. /package/dist/cjs/Modal/{index.cjs.map → index.js.map} +0 -0
  157. /package/dist/cjs/NativeModules/{index.cjs.map → index.js.map} +0 -0
  158. /package/dist/cjs/PanResponder/{index.cjs.map → index.js.map} +0 -0
  159. /package/dist/cjs/PixelRatio/{index.cjs.map → index.js.map} +0 -0
  160. /package/dist/cjs/Pressable/{index.cjs.map → index.js.map} +0 -0
  161. /package/dist/cjs/RefreshControl/{index.cjs.map → index.js.map} +0 -0
  162. /package/dist/cjs/SafeAreaView/{index.cjs.map → index.js.map} +0 -0
  163. /package/dist/cjs/ScrollView/{ScrollViewBase.cjs.map → ScrollViewBase.js.map} +0 -0
  164. /package/dist/cjs/ScrollView/{index.cjs.map → index.js.map} +0 -0
  165. /package/dist/cjs/Share/{index.cjs.map → index.js.map} +0 -0
  166. /package/dist/cjs/StatusBar/{index.cjs.map → index.js.map} +0 -0
  167. /package/dist/cjs/Text/{index.cjs.map → index.js.map} +0 -0
  168. /package/dist/cjs/Text/{types.cjs.map → types.js.map} +0 -0
  169. /package/dist/cjs/TextInput/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  170. /package/dist/cjs/TextInput/{index.cjs.map → index.js.map} +0 -0
  171. /package/dist/cjs/TextInput/{types.cjs.map → types.js.map} +0 -0
  172. /package/dist/cjs/{TouchableOpacity.cjs.map → TouchableOpacity.js.map} +0 -0
  173. /package/dist/cjs/{TouchableWithoutFeedback.cjs.map → TouchableWithoutFeedback.js.map} +0 -0
  174. /package/dist/cjs/{UnimplementedView.cjs.map → UnimplementedView.js.map} +0 -0
  175. /package/dist/cjs/Vibration/{index.cjs.map → index.js.map} +0 -0
  176. /package/dist/cjs/View/{index.cjs.map → index.js.map} +0 -0
  177. /package/dist/cjs/View/{types.cjs.map → types.js.map} +0 -0
  178. /package/dist/cjs/createElement/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  179. /package/dist/cjs/createElement/{index.cjs.map → index.js.map} +0 -0
  180. /package/dist/cjs/{createReactDOMStyle.cjs.map → createReactDOMStyle.js.map} +0 -0
  181. /package/dist/cjs/{findNodeHandle.cjs.map → findNodeHandle.js.map} +0 -0
  182. /package/dist/cjs/{index.cjs.map → index.js.map} +0 -0
  183. /package/dist/cjs/render/{index.cjs.map → index.js.map} +0 -0
  184. /package/dist/cjs/{styleTypes.cjs.map → styleTypes.js.map} +0 -0
  185. /package/dist/cjs/{types.cjs.map → types.js.map} +0 -0
  186. /package/dist/cjs/useColorScheme/{index.cjs.map → index.js.map} +0 -0
  187. /package/dist/cjs/useLocaleContext/{index.cjs.map → index.js.map} +0 -0
  188. /package/dist/cjs/useWindowDimensions/{index.cjs.map → index.js.map} +0 -0
  189. /package/dist/cjs/vendor/react-native/Animated/{Animated.cjs.map → Animated.js.map} +0 -0
  190. /package/dist/cjs/vendor/react-native/Animated/{AnimatedEvent.cjs.map → AnimatedEvent.js.map} +0 -0
  191. /package/dist/cjs/vendor/react-native/Animated/{AnimatedImplementation.cjs.map → AnimatedImplementation.js.map} +0 -0
  192. /package/dist/cjs/vendor/react-native/Animated/{AnimatedMock.cjs.map → AnimatedMock.js.map} +0 -0
  193. /package/dist/cjs/vendor/react-native/Animated/{AnimatedPlatformConfig.cjs.map → AnimatedPlatformConfig.js.map} +0 -0
  194. /package/dist/cjs/vendor/react-native/Animated/{Easing.cjs.map → Easing.js.map} +0 -0
  195. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedHelper.cjs.map → NativeAnimatedHelper.js.map} +0 -0
  196. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.cjs.map → NativeAnimatedModule.js.map} +0 -0
  197. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.cjs.map → NativeAnimatedTurboModule.js.map} +0 -0
  198. /package/dist/cjs/vendor/react-native/Animated/{SpringConfig.cjs.map → SpringConfig.js.map} +0 -0
  199. /package/dist/cjs/vendor/react-native/Animated/animations/{Animation.cjs.map → Animation.js.map} +0 -0
  200. /package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.cjs.map → DecayAnimation.js.map} +0 -0
  201. /package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.cjs.map → SpringAnimation.js.map} +0 -0
  202. /package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.cjs.map → TimingAnimation.js.map} +0 -0
  203. /package/dist/cjs/vendor/react-native/Animated/{bezier.cjs.map → bezier.js.map} +0 -0
  204. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedImage.cjs.map → AnimatedImage.js.map} +0 -0
  205. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedScrollView.cjs.map → AnimatedScrollView.js.map} +0 -0
  206. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedText.cjs.map → AnimatedText.js.map} +0 -0
  207. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedView.cjs.map → AnimatedView.js.map} +0 -0
  208. /package/dist/cjs/vendor/react-native/Animated/{createAnimatedComponent.cjs.map → createAnimatedComponent.js.map} +0 -0
  209. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.cjs.map → AnimatedAddition.js.map} +0 -0
  210. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.cjs.map → AnimatedColor.js.map} +0 -0
  211. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.cjs.map → AnimatedDiffClamp.js.map} +0 -0
  212. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.cjs.map → AnimatedDivision.js.map} +0 -0
  213. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.cjs.map → AnimatedInterpolation.js.map} +0 -0
  214. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.cjs.map → AnimatedModulo.js.map} +0 -0
  215. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.cjs.map → AnimatedMultiplication.js.map} +0 -0
  216. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.cjs.map → AnimatedNode.js.map} +0 -0
  217. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.cjs.map → AnimatedProps.js.map} +0 -0
  218. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.cjs.map → AnimatedStyle.js.map} +0 -0
  219. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.cjs.map → AnimatedSubtraction.js.map} +0 -0
  220. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.cjs.map → AnimatedTracking.js.map} +0 -0
  221. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.cjs.map → AnimatedTransform.js.map} +0 -0
  222. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.cjs.map → AnimatedValue.js.map} +0 -0
  223. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.cjs.map → AnimatedValueXY.js.map} +0 -0
  224. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.cjs.map → AnimatedWithChildren.js.map} +0 -0
  225. /package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.cjs.map → useAnimatedProps.js.map} +0 -0
  226. /package/dist/cjs/vendor/react-native/{FeatureFlags.cjs.map → FeatureFlags.js.map} +0 -0
  227. /package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.cjs.map → RCTDeviceEventEmitter.js.map} +0 -0
  228. /package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.cjs.map → index.js.map} +0 -0
  229. /package/dist/cjs/vendor/react-native/PanResponder/{index.cjs.map → index.js.map} +0 -0
  230. /package/dist/cjs/vendor/react-native/TouchHistoryMath/{index.cjs.map → index.js.map} +0 -0
  231. /package/dist/cjs/vendor/react-native/TurboModule/{RCTExport.cjs.map → RCTExport.js.map} +0 -0
  232. /package/dist/cjs/vendor/react-native/TurboModule/{TurboModuleRegistry.cjs.map → TurboModuleRegistry.js.map} +0 -0
  233. /package/dist/cjs/vendor/react-native/Types/{CoreEventTypes.cjs.map → CoreEventTypes.js.map} +0 -0
  234. /package/dist/cjs/vendor/react-native/Utilities/{setAndForwardRef.cjs.map → setAndForwardRef.js.map} +0 -0
  235. /package/dist/cjs/vendor/react-native/emitter/{EventEmitter.cjs.map → EventEmitter.js.map} +0 -0
  236. /package/dist/cjs/vendor/react-native/emitter/{EventSubscription.cjs.map → EventSubscription.js.map} +0 -0
  237. /package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.cjs.map → _EmitterSubscription.js.map} +0 -0
  238. /package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.cjs.map → _EventEmitter.js.map} +0 -0
  239. /package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.cjs.map → _EventSubscription.js.map} +0 -0
  240. /package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.cjs.map → _EventSubscriptionVendor.js.map} +0 -0
  241. /package/dist/cjs/vendor/react-native/infoLog/{index.cjs.map → index.js.map} +0 -0
  242. /package/dist/cjs/vendor/react-native/{useRefEffect.cjs.map → useRefEffect.js.map} +0 -0
  243. /package/dist/cjs/{without-animated.cjs.map → without-animated.js.map} +0 -0
@@ -0,0 +1,110 @@
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
+ };
15
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
+ // If the importer is in node compatibility mode or this is not an ESM
17
+ // file that has been converted to a CommonJS file using a Babel-
18
+ // compatible transform (i.e. "__esModule" has not been set), then set
19
+ // "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);
23
+ var src_exports = {};
24
+ __export(src_exports, {
25
+ AccessibilityInfo: () => import_AccessibilityInfo.default,
26
+ AccessibilityUtil: () => import_react_native_web_internals.AccessibilityUtil,
27
+ ActivityIndicator: () => import_ActivityIndicator.default,
28
+ Alert: () => import_Alert.default,
29
+ Animated: () => import_Animated.default,
30
+ AppRegistry: () => import_AppRegistry.default,
31
+ AppState: () => import_AppState.default,
32
+ Appearance: () => import_Appearance.default,
33
+ BackHandler: () => import_BackHandler.default,
34
+ Clipboard: () => import_Clipboard.default,
35
+ DeviceEmitter: () => import_DeviceEmitter.default,
36
+ DeviceEventEmitter: () => import_DeviceEmitter2.default,
37
+ DeviceInfo: () => import_DeviceInfo.default,
38
+ Dimensions: () => import_Dimensions.default,
39
+ DrawerLayoutAndroid: () => import_UnimplementedView.default,
40
+ Easing: () => import_Easing.default,
41
+ FlatList: () => import_UnimplementedView4.default,
42
+ I18nManager: () => import_I18nManager.default,
43
+ Image: () => import_Image.default,
44
+ ImageBackground: () => import_ImageBackground.default,
45
+ ImageLoader: () => import_react_native_web_internals.ImageLoader,
46
+ InteractionManager: () => import_react_native_web_internals.InteractionManager,
47
+ Keyboard: () => import_Keyboard.default,
48
+ KeyboardAvoidingView: () => import_KeyboardAvoidingView.default,
49
+ Linking: () => import_Linking.default,
50
+ LocaleProvider: () => import_react_native_web_internals.LocaleProvider,
51
+ LogBox: () => import_LogBox.default,
52
+ Modal: () => import_Modal.default,
53
+ NativeEventEmitter: () => import_NativeEventEmitter.default,
54
+ NativeModules: () => import_NativeModules.default,
55
+ PanResponder: () => import_PanResponder.default,
56
+ PixelRatio: () => import_PixelRatio.default,
57
+ Platform: () => import_react_native_web_internals.Platform,
58
+ Pressable: () => import_Pressable.default,
59
+ RefreshControl: () => import_RefreshControl.default,
60
+ SafeAreaView: () => import_SafeAreaView.default,
61
+ ScrollView: () => import_ScrollView.default,
62
+ SectionList: () => import_UnimplementedView7.default,
63
+ Share: () => import_Share.default,
64
+ StatusBar: () => import_StatusBar.default,
65
+ StyleSheet: () => import_react_native_web_internals.StyleSheet,
66
+ Switch: () => import_UnimplementedView2.default,
67
+ Text: () => import_Text.default,
68
+ TextAncestorContext: () => import_react_native_web_internals.TextAncestorContext,
69
+ TextInput: () => import_TextInput.default,
70
+ Touchable: () => import_TouchableOpacity.default,
71
+ TouchableHighlight: () => import_UnimplementedView5.default,
72
+ TouchableNativeFeedback: () => import_UnimplementedView6.default,
73
+ TouchableOpacity: () => import_TouchableOpacity2.default,
74
+ TouchableWithoutFeedback: () => import_TouchableWithoutFeedback.default,
75
+ UIManager: () => import_react_native_web_internals.UIManager,
76
+ Vibration: () => import_Vibration.default,
77
+ View: () => import_View.default,
78
+ VirtualizedList: () => import_UnimplementedView3.default,
79
+ canUseDOM: () => import_react_native_web_internals.canUseDOM,
80
+ clickProps: () => import_react_native_web_internals.clickProps,
81
+ createDOMProps: () => import_react_native_web_internals.createDOMProps,
82
+ dismissKeyboard: () => import_react_native_web_internals.dismissKeyboard,
83
+ findNodeHandle: () => import_findNodeHandle.findNodeHandle,
84
+ flattenStyle: () => import_react_native_web_internals.flattenStyle,
85
+ isWebColor: () => import_react_native_web_internals.isWebColor,
86
+ mergeRefs: () => import_react_native_web_internals.mergeRefs,
87
+ normalizeColor: () => import_react_native_web_internals.normalizeColor,
88
+ processColor: () => import_react_native_web_internals.processColor,
89
+ processStyle: () => import_react_native_web_internals.processStyle,
90
+ render: () => import_render.default,
91
+ requireNativeComponent: () => requireNativeComponent,
92
+ unmountComponentAtNode: () => import_react_dom.unmountComponentAtNode,
93
+ unstable_createElement: () => import_createElement.default,
94
+ useColorScheme: () => import_useColorScheme.default,
95
+ useEvent: () => import_react_native_web_internals.useEvent,
96
+ useHover: () => import_react_native_web_internals.useHover,
97
+ useLayoutEffect: () => import_react_native_web_internals.useLayoutEffect,
98
+ useLocaleContext: () => import_useLocaleContext.useLocaleContext,
99
+ useMergeRefs: () => import_react_native_web_internals.useMergeRefs,
100
+ usePlatformMethods: () => import_react_native_web_internals.usePlatformMethods,
101
+ useWindowDimensions: () => import_useWindowDimensions.default
102
+ });
103
+ module.exports = __toCommonJS(src_exports);
104
+ 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_Easing = __toESM(require("./vendor/react-native/Animated/Easing")), import_Animated = __toESM(require("./vendor/react-native/Animated/Animated")), 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_TouchableOpacity2 = __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"));
105
+ function requireNativeComponent(name) {
106
+ return function() {
107
+ return null;
108
+ };
109
+ }
110
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,45 @@
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 render_exports = {};
16
+ __export(render_exports, {
17
+ default: () => renderLegacy,
18
+ hydrate: () => hydrate,
19
+ hydrateLegacy: () => hydrateLegacy,
20
+ render: () => render
21
+ });
22
+ module.exports = __toCommonJS(render_exports);
23
+ var import_react_dom = require("react-dom"), import_client = require("react-dom/client");
24
+ function hydrate(element, root) {
25
+ return (0, import_client.hydrateRoot)(root, element);
26
+ }
27
+ function render(element, root) {
28
+ const reactRoot = (0, import_client.createRoot)(root);
29
+ return reactRoot.render(element), reactRoot;
30
+ }
31
+ function hydrateLegacy(element, root, callback) {
32
+ return (0, import_react_dom.hydrate)(element, root, callback), {
33
+ unmount: function() {
34
+ return (0, import_react_dom.unmountComponentAtNode)(root);
35
+ }
36
+ };
37
+ }
38
+ function renderLegacy(element, root, callback) {
39
+ return (0, import_react_dom.render)(element, root, callback), {
40
+ unmount: function() {
41
+ return (0, import_react_dom.unmountComponentAtNode)(root);
42
+ }
43
+ };
44
+ }
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,14 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from == "object" || typeof from == "function")
7
+ for (let key of __getOwnPropNames(from))
8
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
9
+ return to;
10
+ };
11
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
12
+ var styleTypes_exports = {};
13
+ module.exports = __toCommonJS(styleTypes_exports);
14
+ //# sourceMappingURL=styleTypes.js.map
@@ -0,0 +1,14 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from == "object" || typeof from == "function")
7
+ for (let key of __getOwnPropNames(from))
8
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
9
+ return to;
10
+ };
11
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
12
+ var types_exports = {};
13
+ module.exports = __toCommonJS(types_exports);
14
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,39 @@
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
+ };
15
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
+ // If the importer is in node compatibility mode or this is not an ESM
17
+ // file that has been converted to a CommonJS file using a Babel-
18
+ // compatible transform (i.e. "__esModule" has not been set), then set
19
+ // "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);
23
+ var useColorScheme_exports = {};
24
+ __export(useColorScheme_exports, {
25
+ default: () => useColorScheme
26
+ });
27
+ module.exports = __toCommonJS(useColorScheme_exports);
28
+ var React = __toESM(require("react")), import_Appearance = __toESM(require("../Appearance/index"));
29
+ function useColorScheme() {
30
+ const [colorScheme, setColorScheme] = React.useState(import_Appearance.default.getColorScheme());
31
+ return React.useEffect(() => {
32
+ function listener(appearance) {
33
+ setColorScheme(appearance.colorScheme);
34
+ }
35
+ const { remove } = import_Appearance.default.addChangeListener(listener);
36
+ return remove;
37
+ }), colorScheme;
38
+ }
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,21 @@
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 useLocaleContext_exports = {};
16
+ __export(useLocaleContext_exports, {
17
+ useLocaleContext: () => import_react_native_web_internals.useLocaleContext
18
+ });
19
+ module.exports = __toCommonJS(useLocaleContext_exports);
20
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals");
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,41 @@
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 useWindowDimensions_exports = {};
25
+ __export(useWindowDimensions_exports, {
26
+ default: () => useWindowDimensions
27
+ });
28
+ module.exports = __toCommonJS(useWindowDimensions_exports);
29
+ var import_react = __toESM(require("react")), import_Dimensions = __toESM(require("../Dimensions/index"));
30
+ function useWindowDimensions() {
31
+ const [dims, setDims] = import_react.default.useState(() => import_Dimensions.default.get("window"));
32
+ return import_react.default.useEffect(() => {
33
+ function handleChange({ window }) {
34
+ window != null && setDims(window);
35
+ }
36
+ return import_Dimensions.default.addEventListener("change", handleChange), setDims(import_Dimensions.default.get("window")), () => {
37
+ import_Dimensions.default.removeEventListener("change", handleChange);
38
+ };
39
+ }, []), dims;
40
+ }
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,35 @@
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
+ };
15
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
+ // If the importer is in node compatibility mode or this is not an ESM
17
+ // file that has been converted to a CommonJS file using a Babel-
18
+ // compatible transform (i.e. "__esModule" has not been set), then set
19
+ // "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);
23
+ var Animated_exports = {};
24
+ __export(Animated_exports, {
25
+ default: () => Animated_default
26
+ });
27
+ module.exports = __toCommonJS(Animated_exports);
28
+ var import_objectSpread2 = require("@babel/runtime/helpers/objectSpread2"), import_react_native_web_internals = require("@tamagui/react-native-web-internals"), AnimatedImplementation = __toESM(require("./AnimatedImplementation")), AnimatedMock = __toESM(require("./AnimatedMock")), import_AnimatedImage = __toESM(require("./components/AnimatedImage")), import_AnimatedScrollView = __toESM(require("./components/AnimatedScrollView")), import_AnimatedText = __toESM(require("./components/AnimatedText")), import_AnimatedView = __toESM(require("./components/AnimatedView")), Animated = import_react_native_web_internals.Platform.isTesting ? AnimatedMock : AnimatedImplementation, Animated_default = {
29
+ Image: import_AnimatedImage.default,
30
+ ScrollView: import_AnimatedScrollView.default,
31
+ Text: import_AnimatedText.default,
32
+ View: import_AnimatedView.default,
33
+ ...Animated.default
34
+ };
35
+ //# sourceMappingURL=Animated.js.map
@@ -0,0 +1,143 @@
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 AnimatedEvent_exports = {};
25
+ __export(AnimatedEvent_exports, {
26
+ AnimatedEvent: () => AnimatedEvent,
27
+ attachNativeEvent: () => attachNativeEvent
28
+ });
29
+ module.exports = __toCommonJS(AnimatedEvent_exports);
30
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_NativeAnimatedHelper = __toESM(require("./NativeAnimatedHelper")), import_NativeAnimatedHelper2 = require("./NativeAnimatedHelper"), import_AnimatedValue = __toESM(require("./nodes/AnimatedValue")), __DEV__ = process.env.NODE_ENV !== "production";
31
+ function attachNativeEvent(viewRef, eventName, argMapping) {
32
+ var eventMappings = [], traverse = (value, path) => {
33
+ if (value instanceof import_AnimatedValue.default)
34
+ value.__makeNative(), eventMappings.push({
35
+ nativeEventPath: path,
36
+ animatedValueTag: value.__getNativeTag()
37
+ });
38
+ else if (typeof value == "object")
39
+ for (var _key in value)
40
+ traverse(value[_key], path.concat(_key));
41
+ };
42
+ return (0, import_react_native_web_internals.invariant)(
43
+ argMapping[0] && argMapping[0].nativeEvent,
44
+ "Native driven events only support animated values contained inside `nativeEvent`."
45
+ ), traverse(argMapping[0].nativeEvent, []), viewRef != null && eventMappings.forEach((mapping) => {
46
+ import_NativeAnimatedHelper.default.API.addAnimatedEventToView(viewRef, eventName, mapping);
47
+ }), {
48
+ detach() {
49
+ viewRef != null && eventMappings.forEach((mapping) => {
50
+ import_NativeAnimatedHelper.default.API.removeAnimatedEventFromView(
51
+ viewRef,
52
+ eventName,
53
+ // $FlowFixMe[incompatible-call]
54
+ mapping.animatedValueTag
55
+ );
56
+ });
57
+ }
58
+ };
59
+ }
60
+ function validateMapping(argMapping, args) {
61
+ var validate = (recMapping, recEvt, key) => {
62
+ if (recMapping instanceof import_AnimatedValue.default) {
63
+ (0, import_react_native_web_internals.invariant)(
64
+ typeof recEvt == "number",
65
+ "Bad mapping of event key " + key + ", should be number but got " + typeof recEvt
66
+ );
67
+ return;
68
+ }
69
+ if (typeof recEvt == "number") {
70
+ (0, import_react_native_web_internals.invariant)(
71
+ recMapping instanceof import_AnimatedValue.default,
72
+ "Bad mapping of type " + typeof recMapping + " for key " + key + ", event value must map to AnimatedValue"
73
+ );
74
+ return;
75
+ }
76
+ (0, import_react_native_web_internals.invariant)(
77
+ typeof recMapping == "object",
78
+ "Bad mapping of type " + typeof recMapping + " for key " + key
79
+ ), (0, import_react_native_web_internals.invariant)(
80
+ typeof recEvt == "object",
81
+ "Bad event of type " + typeof recEvt + " for key " + key
82
+ );
83
+ for (var mappingKey in recMapping)
84
+ validate(recMapping[mappingKey], recEvt[mappingKey], mappingKey);
85
+ };
86
+ (0, import_react_native_web_internals.invariant)(args.length >= argMapping.length, "Event has less arguments than mapping"), argMapping.forEach((mapping, idx) => {
87
+ validate(mapping, args[idx], "arg" + idx);
88
+ });
89
+ }
90
+ class AnimatedEvent {
91
+ constructor(argMapping, config) {
92
+ this._listeners = [], this._argMapping = argMapping, config == null && (console.warn("Animated.event now requires a second argument for options"), config = {
93
+ useNativeDriver: !1
94
+ }), config.listener && this.__addListener(config.listener), this._callListeners = this._callListeners.bind(this), this._attachedEvent = null, this.__isNative = (0, import_NativeAnimatedHelper2.shouldUseNativeDriver)(config);
95
+ }
96
+ __addListener(callback) {
97
+ this._listeners.push(callback);
98
+ }
99
+ __removeListener(callback) {
100
+ this._listeners = this._listeners.filter((listener) => listener !== callback);
101
+ }
102
+ __attach(viewRef, eventName) {
103
+ (0, import_react_native_web_internals.invariant)(this.__isNative, "Only native driven events need to be attached."), this._attachedEvent = attachNativeEvent(viewRef, eventName, this._argMapping);
104
+ }
105
+ __detach(viewTag, eventName) {
106
+ (0, import_react_native_web_internals.invariant)(this.__isNative, "Only native driven events need to be detached."), this._attachedEvent && this._attachedEvent.detach();
107
+ }
108
+ __getHandler() {
109
+ var _this = this;
110
+ if (this.__isNative)
111
+ if (__DEV__) {
112
+ var _validatedMapping = !1;
113
+ return function() {
114
+ for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++)
115
+ args[_key2] = arguments[_key2];
116
+ _validatedMapping || (validateMapping(_this._argMapping, args), _validatedMapping = !0), _this._callListeners(...args);
117
+ };
118
+ } else
119
+ return this._callListeners;
120
+ var validatedMapping = !1;
121
+ return function() {
122
+ for (var _len2 = arguments.length, args = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++)
123
+ args[_key3] = arguments[_key3];
124
+ __DEV__ && !validatedMapping && (validateMapping(_this._argMapping, args), validatedMapping = !0);
125
+ var traverse = (recMapping, recEvt, key) => {
126
+ if (recMapping instanceof import_AnimatedValue.default)
127
+ typeof recEvt == "number" && recMapping.setValue(recEvt);
128
+ else if (typeof recMapping == "object")
129
+ for (var mappingKey in recMapping)
130
+ traverse(recMapping[mappingKey], recEvt[mappingKey], mappingKey);
131
+ };
132
+ _this._argMapping.forEach((mapping, idx) => {
133
+ traverse(mapping, args[idx], "arg" + idx);
134
+ }), _this._callListeners(...args);
135
+ };
136
+ }
137
+ _callListeners() {
138
+ for (var _len3 = arguments.length, args = new Array(_len3), _key4 = 0; _key4 < _len3; _key4++)
139
+ args[_key4] = arguments[_key4];
140
+ this._listeners.forEach((listener) => listener(...args));
141
+ }
142
+ }
143
+ //# sourceMappingURL=AnimatedEvent.js.map