@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,253 @@
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 Image_exports = {};
24
+ __export(Image_exports, {
25
+ default: () => Image_default
26
+ });
27
+ module.exports = __toCommonJS(Image_exports);
28
+ var React = __toESM(require("react")), import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_react_native_web_internals2 = require("@tamagui/react-native-web-internals"), import_createElement = __toESM(require("../createElement/index")), import_PixelRatio = __toESM(require("../PixelRatio/index")), import_View = __toESM(require("../View/index")), import_jsx_runtime = require("react/jsx-runtime");
29
+ const ERRORED = "ERRORED", LOADED = "LOADED", LOADING = "LOADING", IDLE = "IDLE";
30
+ let _filterId = 0;
31
+ const svgDataUriPattern = /^(data:image\/svg\+xml;utf8,)(.*)/;
32
+ function createTintColorSVG(tintColor, id) {
33
+ return tintColor && id != null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
34
+ "svg",
35
+ {
36
+ style: {
37
+ position: "absolute",
38
+ height: 0,
39
+ visibility: "hidden",
40
+ width: 0
41
+ },
42
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("filter", { id: `tint-${id}`, suppressHydrationWarning: !0, children: [
43
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("feFlood", { floodColor: `${tintColor}` }, tintColor),
44
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("feComposite", { in2: "SourceAlpha", operator: "atop" })
45
+ ] }) })
46
+ }
47
+ ) : null;
48
+ }
49
+ function getFlatStyle(style, blurRadius, filterId) {
50
+ const flatStyle = import_react_native_web_internals.StyleSheet.flatten(style), { filter, resizeMode, shadowOffset, tintColor } = flatStyle, filters = [];
51
+ let _filter = null;
52
+ if (filter && filters.push(filter), blurRadius && filters.push(`blur(${blurRadius}px)`), shadowOffset) {
53
+ const shadowString = (0, import_react_native_web_internals.createBoxShadowValue)(flatStyle);
54
+ shadowString && filters.push(`drop-shadow(${shadowString})`);
55
+ }
56
+ return tintColor && filterId != null && filters.push(`url(#tint-${filterId})`), filters.length > 0 && (_filter = filters.join(" ")), delete flatStyle.blurRadius, delete flatStyle.shadowColor, delete flatStyle.shadowOpacity, delete flatStyle.shadowOffset, delete flatStyle.shadowRadius, delete flatStyle.tintColor, delete flatStyle.overlayColor, delete flatStyle.resizeMode, [flatStyle, resizeMode, _filter, tintColor];
57
+ }
58
+ function resolveAssetDimensions(source) {
59
+ if (typeof source == "number") {
60
+ const { height, width } = (0, import_react_native_web_internals2.getAssetByID)(source);
61
+ return { height, width };
62
+ } else if (source != null && !Array.isArray(source) && typeof source == "object") {
63
+ const { height, width } = source;
64
+ return { height, width };
65
+ }
66
+ }
67
+ function resolveAssetUri(source) {
68
+ let uri = null;
69
+ if (typeof source == "number") {
70
+ const asset = (0, import_react_native_web_internals2.getAssetByID)(source);
71
+ let scale = asset.scales[0];
72
+ if (asset.scales.length > 1) {
73
+ const preferredScale = import_PixelRatio.default.get();
74
+ scale = asset.scales.reduce(
75
+ (prev, curr) => Math.abs(curr - preferredScale) < Math.abs(prev - preferredScale) ? curr : prev
76
+ );
77
+ }
78
+ const scaleSuffix = scale !== 1 ? `@${scale}x` : "";
79
+ uri = asset ? `${asset.httpServerLocation}/${asset.name}${scaleSuffix}.${asset.type}` : "";
80
+ } else typeof source == "string" ? uri = source : source && typeof source.uri == "string" && (uri = source.uri);
81
+ if (uri) {
82
+ const match = uri.match(svgDataUriPattern);
83
+ if (match) {
84
+ const [, prefix, svg] = match, encodedSvg = encodeURIComponent(svg);
85
+ return `${prefix}${encodedSvg}`;
86
+ }
87
+ }
88
+ return uri;
89
+ }
90
+ const Image = React.forwardRef((props, ref) => {
91
+ const {
92
+ accessibilityLabel,
93
+ blurRadius,
94
+ defaultSource,
95
+ draggable,
96
+ onError,
97
+ onLayout,
98
+ onLoad,
99
+ onLoadEnd,
100
+ onLoadStart,
101
+ pointerEvents,
102
+ source,
103
+ style,
104
+ ...rest
105
+ } = props;
106
+ if (process.env.NODE_ENV !== "production" && props.children)
107
+ throw new Error(
108
+ "The <Image> component cannot contain children. If you want to render content on top of the image, consider using the <ImageBackground> component or absolute positioning."
109
+ );
110
+ const [state, updateState] = React.useState(() => {
111
+ const uri2 = resolveAssetUri(source);
112
+ return uri2 != null && import_react_native_web_internals2.ImageLoader.has(uri2) ? LOADED : IDLE;
113
+ }), [layout, updateLayout] = React.useState({}), hasTextAncestor = React.useContext(import_react_native_web_internals.TextAncestorContext), hiddenImageRef = React.useRef(null), filterRef = React.useRef(_filterId++), requestRef = React.useRef(null), shouldDisplaySource = state === LOADED || state === LOADING && defaultSource == null, [flatStyle, _resizeMode, filter, tintColor] = getFlatStyle(
114
+ {},
115
+ blurRadius,
116
+ filterRef.current
117
+ ), resizeMode = props.resizeMode || _resizeMode || "cover", selectedSource = shouldDisplaySource ? source : defaultSource, displayImageUri = resolveAssetUri(selectedSource), imageSizeStyle = resolveAssetDimensions(selectedSource), backgroundImage = displayImageUri ? `url("${displayImageUri}")` : null, backgroundSize = getBackgroundSize(), hiddenImage = displayImageUri ? (0, import_createElement.default)("img", {
118
+ alt: accessibilityLabel || "",
119
+ style: styles.accessibilityImage$raw,
120
+ draggable: draggable || !1,
121
+ ref: hiddenImageRef,
122
+ src: displayImageUri
123
+ }) : null;
124
+ function getBackgroundSize() {
125
+ if (hiddenImageRef.current != null && (resizeMode === "center" || resizeMode === "repeat")) {
126
+ const { naturalHeight, naturalWidth } = hiddenImageRef.current, { height, width } = layout;
127
+ if (naturalHeight && naturalWidth && height && width) {
128
+ const scaleFactor = Math.min(1, width / naturalWidth, height / naturalHeight), x = Math.ceil(scaleFactor * naturalWidth), y = Math.ceil(scaleFactor * naturalHeight);
129
+ return `${x}px ${y}px`;
130
+ }
131
+ }
132
+ }
133
+ function handleLayout(e) {
134
+ if (resizeMode === "center" || resizeMode === "repeat" || onLayout) {
135
+ const { layout: layout2 } = e.nativeEvent;
136
+ onLayout && onLayout(e), updateLayout(layout2);
137
+ }
138
+ }
139
+ const uri = resolveAssetUri(source);
140
+ return React.useEffect(() => {
141
+ abortPendingRequest(), uri != null && (updateState(LOADING), onLoadStart && onLoadStart(), requestRef.current = import_react_native_web_internals2.ImageLoader.load(
142
+ uri,
143
+ function(e) {
144
+ updateState(LOADED), onLoad && onLoad(e), onLoadEnd && onLoadEnd();
145
+ },
146
+ function() {
147
+ updateState(ERRORED), onError && onError({
148
+ nativeEvent: {
149
+ error: `Failed to load resource ${uri} (404)`
150
+ }
151
+ }), onLoadEnd && onLoadEnd();
152
+ }
153
+ ));
154
+ function abortPendingRequest() {
155
+ requestRef.current != null && (import_react_native_web_internals2.ImageLoader.abort(requestRef.current), requestRef.current = null);
156
+ }
157
+ return abortPendingRequest;
158
+ }, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
159
+ import_View.default,
160
+ {
161
+ ...rest,
162
+ accessibilityLabel,
163
+ onLayout: handleLayout,
164
+ pointerEvents,
165
+ ref,
166
+ style: [
167
+ style,
168
+ styles.root,
169
+ hasTextAncestor && styles.inline,
170
+ imageSizeStyle,
171
+ flatStyle
172
+ ],
173
+ children: [
174
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
175
+ import_View.default,
176
+ {
177
+ style: [
178
+ ...[].concat(styles.image),
179
+ resizeModeStyles[resizeMode],
180
+ { backgroundImage, filter },
181
+ backgroundSize != null && { backgroundSize }
182
+ ],
183
+ suppressHydrationWarning: !0
184
+ }
185
+ ),
186
+ hiddenImage,
187
+ createTintColorSVG(tintColor, filterRef.current)
188
+ ]
189
+ }
190
+ );
191
+ });
192
+ Image.displayName = "Image";
193
+ const ImageWithStatics = Image;
194
+ ImageWithStatics.getSize = function(uri, success, failure) {
195
+ import_react_native_web_internals2.ImageLoader.getSize(uri, success, failure);
196
+ };
197
+ ImageWithStatics.prefetch = function(uri) {
198
+ return import_react_native_web_internals2.ImageLoader.prefetch(uri);
199
+ };
200
+ ImageWithStatics.queryCache = function(uris) {
201
+ return import_react_native_web_internals2.ImageLoader.queryCache(uris);
202
+ };
203
+ const styles = import_react_native_web_internals.StyleSheet.create({
204
+ root: {
205
+ flexBasis: "auto",
206
+ overflow: "hidden",
207
+ zIndex: 0
208
+ },
209
+ inline: {
210
+ display: "inline-flex"
211
+ },
212
+ image: {
213
+ ...import_react_native_web_internals.StyleSheet.absoluteFillObject,
214
+ backgroundColor: "transparent",
215
+ backgroundPosition: "center",
216
+ backgroundRepeat: "no-repeat",
217
+ backgroundSize: "cover",
218
+ height: "100%",
219
+ width: "100%",
220
+ zIndex: -1
221
+ },
222
+ accessibilityImage$raw: {
223
+ ...import_react_native_web_internals.StyleSheet.absoluteFillObject,
224
+ height: "100%",
225
+ opacity: 0,
226
+ width: "100%",
227
+ zIndex: -1
228
+ }
229
+ }), resizeModeStyles = import_react_native_web_internals.StyleSheet.create({
230
+ center: {
231
+ backgroundSize: "auto"
232
+ },
233
+ contain: {
234
+ backgroundSize: "contain"
235
+ },
236
+ cover: {
237
+ backgroundSize: "cover"
238
+ },
239
+ none: {
240
+ backgroundPosition: "0",
241
+ backgroundSize: "auto"
242
+ },
243
+ repeat: {
244
+ backgroundPosition: "0",
245
+ backgroundRepeat: "repeat",
246
+ backgroundSize: "auto"
247
+ },
248
+ stretch: {
249
+ backgroundSize: "100% 100%"
250
+ }
251
+ });
252
+ var Image_default = ImageWithStatics;
253
+ //# 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 types_exports = {};
13
+ module.exports = __toCommonJS(types_exports);
14
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,48 @@
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 __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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
13
+ // If the importer is in node compatibility mode or this is not an ESM
14
+ // file that has been converted to a CommonJS file using a Babel-
15
+ // compatible transform (i.e. "__esModule" has not been set), then set
16
+ // "default" to the CommonJS "module.exports" for node compatibility.
17
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
18
+ mod
19
+ ));
20
+ var import_react = require("@testing-library/react"), import_Text = __toESM(require("../../Text")), import__ = __toESM(require("..")), import_jsx_runtime = require("react/jsx-runtime");
21
+ function findImage(container) {
22
+ return container.firstChild.firstChild;
23
+ }
24
+ describe("components/ImageBackground", () => {
25
+ describe('prop "children"', () => {
26
+ test("render child content", () => {
27
+ const { getByText } = (0, import_react.render)(
28
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default, { children: "Hello World!" }) })
29
+ );
30
+ expect(getByText("Hello World!")).toBeDefined();
31
+ });
32
+ }), describe('prop "imageStyle"', () => {
33
+ test("sets the style of the underlying Image", () => {
34
+ const imageStyle = { width: 40, height: 60 }, { container } = (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { imageStyle }));
35
+ expect(
36
+ findImage(container).getAttribute("style").includes("width: 40px; height: 60px;")
37
+ ).toBe(!0);
38
+ });
39
+ }), describe('prop "style"', () => {
40
+ test("sets the style of the container View", () => {
41
+ const style = { margin: 40 }, { container } = (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { style }));
42
+ expect(container.firstChild.getAttribute("style")).toEqual(
43
+ "margin: 40px 40px 40px 40px;"
44
+ );
45
+ });
46
+ });
47
+ });
48
+ //# sourceMappingURL=index-test.js.map
@@ -0,0 +1,62 @@
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 ImageBackground_exports = {};
24
+ __export(ImageBackground_exports, {
25
+ default: () => ImageBackground_default
26
+ });
27
+ module.exports = __toCommonJS(ImageBackground_exports);
28
+ var import_react = require("react"), import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_Image = __toESM(require("../Image/index")), import_View = __toESM(require("../View/index")), import_jsx_runtime = require("react/jsx-runtime");
29
+ const emptyObject = {}, ImageBackground = (0, import_react.forwardRef)(
30
+ (props, forwardedRef) => {
31
+ const { children, style = emptyObject, imageStyle, imageRef, ...rest } = props, { height, width } = import_react_native_web_internals.StyleSheet.flatten(style);
32
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_View.default, { ref: forwardedRef, style, children: [
33
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
34
+ import_Image.default,
35
+ {
36
+ ...rest,
37
+ ref: imageRef,
38
+ style: [
39
+ {
40
+ // Temporary Workaround:
41
+ // Current (imperfect yet) implementation of <Image> overwrites width and height styles
42
+ // (which is not quite correct), and these styles conflict with explicitly set styles
43
+ // of <ImageBackground> and with our internal layout model here.
44
+ // So, we have to proxy/reapply these styles explicitly for actual <Image> component.
45
+ // This workaround should be removed after implementing proper support of
46
+ // intrinsic content size of the <Image>.
47
+ width,
48
+ height,
49
+ zIndex: -1
50
+ },
51
+ import_react_native_web_internals.StyleSheet.absoluteFill,
52
+ imageStyle
53
+ ]
54
+ }
55
+ ),
56
+ children
57
+ ] });
58
+ }
59
+ );
60
+ ImageBackground.displayName = "ImageBackground";
61
+ var ImageBackground_default = ImageBackground;
62
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,35 @@
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 Keyboard_exports = {};
16
+ __export(Keyboard_exports, {
17
+ default: () => Keyboard_default
18
+ });
19
+ module.exports = __toCommonJS(Keyboard_exports);
20
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals");
21
+ const Keyboard = {
22
+ addListener() {
23
+ return { remove: () => {
24
+ } };
25
+ },
26
+ dismiss() {
27
+ (0, import_react_native_web_internals.dismissKeyboard)();
28
+ },
29
+ removeAllListeners() {
30
+ },
31
+ removeListener() {
32
+ }
33
+ };
34
+ var Keyboard_default = Keyboard;
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,56 @@
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 KeyboardAvoidingView_exports = {};
24
+ __export(KeyboardAvoidingView_exports, {
25
+ default: () => KeyboardAvoidingView_default
26
+ });
27
+ module.exports = __toCommonJS(KeyboardAvoidingView_exports);
28
+ var React = __toESM(require("react")), import_View = __toESM(require("../View/index")), import_jsx_runtime = require("react/jsx-runtime");
29
+ class KeyboardAvoidingView extends React.Component {
30
+ frame = null;
31
+ relativeKeyboardHeight(keyboardFrame) {
32
+ const frame = this.frame;
33
+ if (!frame || !keyboardFrame)
34
+ return 0;
35
+ const keyboardY = keyboardFrame.screenY - (this.props.keyboardVerticalOffset || 0);
36
+ return Math.max(frame.y + frame.height - keyboardY, 0);
37
+ }
38
+ onKeyboardChange(event) {
39
+ }
40
+ onLayout = (event) => {
41
+ this.frame = event.nativeEvent.layout;
42
+ };
43
+ render() {
44
+ const {
45
+ /* eslint-disable */
46
+ behavior,
47
+ contentContainerStyle,
48
+ keyboardVerticalOffset,
49
+ /* eslint-enable */
50
+ ...rest
51
+ } = this.props;
52
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_View.default, { onLayout: this.onLayout, ...rest });
53
+ }
54
+ }
55
+ var KeyboardAvoidingView_default = KeyboardAvoidingView;
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,38 @@
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 __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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
13
+ // If the importer is in node compatibility mode or this is not an ESM
14
+ // file that has been converted to a CommonJS file using a Babel-
15
+ // compatible transform (i.e. "__esModule" has not been set), then set
16
+ // "default" to the CommonJS "module.exports" for node compatibility.
17
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
18
+ mod
19
+ ));
20
+ var import__ = __toESM(require(".."));
21
+ describe("apis/Linking", () => {
22
+ describe("openURL", () => {
23
+ test("calls open with a url and target", (done) => {
24
+ jest.spyOn(window, "open").mockImplementationOnce((url, target, opener) => {
25
+ expect(url).toBe("http://foo.com/"), expect(target).toBe("target_name"), expect(opener).toBe("noopener"), done();
26
+ }), import__.default.openURL("http://foo.com", "target_name");
27
+ }), test("defaults target to _blank if not provided", (done) => {
28
+ jest.spyOn(window, "open").mockImplementationOnce((url, target, opener) => {
29
+ expect(url).toBe("http://foo.com/"), expect(target).toBe("_blank"), expect(opener).toBe("noopener"), done();
30
+ }), import__.default.openURL("http://foo.com");
31
+ }), test("accepts undefined as a target", (done) => {
32
+ jest.spyOn(window, "open").mockImplementationOnce((url, target, opener) => {
33
+ expect(url).toBe("http://foo.com/"), expect(target).toBe(void 0), expect(opener).toBe("noopener"), done();
34
+ }), import__.default.openURL("http://foo.com", void 0);
35
+ });
36
+ });
37
+ });
38
+ //# sourceMappingURL=index-test.js.map
@@ -0,0 +1,86 @@
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 Linking_exports = {};
16
+ __export(Linking_exports, {
17
+ default: () => Linking_default
18
+ });
19
+ module.exports = __toCommonJS(Linking_exports);
20
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals");
21
+ const initialURL = import_react_native_web_internals.canUseDOM ? window.location.href : "";
22
+ class Linking {
23
+ /**
24
+ * An object mapping of event name
25
+ * and all the callbacks subscribing to it
26
+ */
27
+ _eventCallbacks = {};
28
+ _dispatchEvent(event, ...data) {
29
+ const listeners = this._eventCallbacks[event];
30
+ listeners != null && Array.isArray(listeners) && listeners.map((listener) => {
31
+ listener(...data);
32
+ });
33
+ }
34
+ /**
35
+ * Adds a event listener for the specified event. The callback will be called when the
36
+ * said event is dispatched.
37
+ */
38
+ addEventListener = (event, callback) => {
39
+ if (!this._eventCallbacks[event]) {
40
+ this._eventCallbacks[event] = [callback];
41
+ return;
42
+ }
43
+ this._eventCallbacks[event].push(callback);
44
+ };
45
+ /**
46
+ * Removes a previously added event listener for the specified event. The callback must
47
+ * be the same object as the one passed to `addEventListener`.
48
+ */
49
+ removeEventListener = (event, callback) => {
50
+ const filteredCallbacks = this._eventCallbacks[event].filter(
51
+ (c) => c.toString() !== callback.toString()
52
+ );
53
+ this._eventCallbacks[event] = filteredCallbacks;
54
+ };
55
+ canOpenURL() {
56
+ return Promise.resolve(!0);
57
+ }
58
+ getInitialURL() {
59
+ return Promise.resolve(initialURL);
60
+ }
61
+ /**
62
+ * Try to open the given url in a secure fashion. The method returns a Promise object.
63
+ * If a target is passed (including undefined) that target will be used, otherwise '_blank'.
64
+ * If the url opens, the promise is resolved. If not, the promise is rejected.
65
+ * Dispatches the `onOpen` event if `url` is opened successfully.
66
+ */
67
+ openURL(url, target) {
68
+ arguments.length === 1 && (target = "_blank");
69
+ try {
70
+ return open(url, target), this._dispatchEvent("onOpen", url), Promise.resolve();
71
+ } catch (e) {
72
+ return Promise.reject(e);
73
+ }
74
+ }
75
+ _validateURL(url) {
76
+ (0, import_react_native_web_internals.invariant)(typeof url == "string", "Invalid URL: should be a string. Was: " + url), (0, import_react_native_web_internals.invariant)(url, "Invalid URL: cannot be empty");
77
+ }
78
+ }
79
+ const open = (url, target) => {
80
+ if (import_react_native_web_internals.canUseDOM) {
81
+ const urlToOpen = new URL(url, window.location).toString();
82
+ urlToOpen.indexOf("tel:") === 0 ? window.location = urlToOpen : window.open(urlToOpen, target, "noopener");
83
+ }
84
+ };
85
+ var Linking_default = new Linking();
86
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,31 @@
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 LogBox_exports = {};
16
+ __export(LogBox_exports, {
17
+ default: () => LogBox_default
18
+ });
19
+ module.exports = __toCommonJS(LogBox_exports);
20
+ const LogBox = {
21
+ ignoreLogs() {
22
+ },
23
+ ignoreAllLogs() {
24
+ },
25
+ uninstall() {
26
+ },
27
+ install() {
28
+ }
29
+ };
30
+ var LogBox_default = LogBox;
31
+ //# sourceMappingURL=index.js.map