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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. package/dist/cjs/AccessibilityInfo/index.cjs +98 -0
  2. package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +188 -0
  3. package/dist/cjs/ActivityIndicator/index.cjs +127 -0
  4. package/dist/cjs/Alert/index.cjs +29 -0
  5. package/dist/cjs/AppRegistry/AppContainer.cjs +70 -0
  6. package/dist/cjs/AppRegistry/__tests__/{index-test.js → index-test.cjs} +22 -16
  7. package/dist/cjs/AppRegistry/__tests__/{index-test.node.js → index-test.node.cjs} +46 -22
  8. package/dist/cjs/AppRegistry/index.cjs +99 -0
  9. package/dist/cjs/AppRegistry/renderApplication.cjs +80 -0
  10. package/dist/cjs/AppState/__tests__/{index-test.js → index-test.cjs} +17 -16
  11. package/dist/cjs/AppState/index.cjs +69 -0
  12. package/dist/cjs/Appearance/index.cjs +54 -0
  13. package/dist/cjs/BackHandler/index.cjs +36 -0
  14. package/dist/cjs/Clipboard/{index.js → index.cjs} +17 -13
  15. package/dist/cjs/{DeviceEmitter.js → DeviceEmitter.cjs} +23 -14
  16. package/dist/cjs/DeviceInfo/{index.js → index.cjs} +37 -19
  17. package/dist/cjs/Dimensions/__tests__/{index-test.js → index-test.cjs} +18 -15
  18. package/dist/cjs/Dimensions/{index.js → index.cjs} +34 -28
  19. package/dist/cjs/I18nManager/index.cjs +35 -0
  20. package/dist/cjs/Image/index.cjs +292 -0
  21. package/dist/cjs/Image/types.cjs +16 -0
  22. package/dist/cjs/ImageBackground/__tests__/index-test.cjs +68 -0
  23. package/dist/cjs/ImageBackground/index.cjs +77 -0
  24. package/dist/cjs/Keyboard/index.cjs +39 -0
  25. package/dist/cjs/KeyboardAvoidingView/{index.js → index.cjs} +32 -21
  26. package/dist/cjs/Linking/__tests__/{index-test.js → index-test.cjs} +19 -17
  27. package/dist/cjs/Linking/{index.js → index.cjs} +18 -15
  28. package/dist/cjs/LogBox/index.cjs +32 -0
  29. package/dist/cjs/Modal/ModalAnimation.cjs +148 -0
  30. package/dist/cjs/Modal/ModalContent.cjs +86 -0
  31. package/dist/cjs/Modal/ModalFocusTrap.cjs +108 -0
  32. package/dist/cjs/Modal/ModalPortal.cjs +53 -0
  33. package/dist/cjs/Modal/index.cjs +97 -0
  34. package/dist/cjs/NativeModules/index.cjs +30 -0
  35. package/dist/cjs/PanResponder/Alternative.cjs +198 -0
  36. package/dist/cjs/PanResponder/Alternative.cjs.map +6 -0
  37. package/dist/cjs/PanResponder/{index.js → index.cjs} +23 -14
  38. package/dist/cjs/PixelRatio/{index.js → index.cjs} +23 -15
  39. package/dist/cjs/Pressable/index.cjs +143 -0
  40. package/dist/cjs/RefreshControl/{index.js → index.cjs} +27 -16
  41. package/dist/cjs/SafeAreaView/index.cjs +62 -0
  42. package/dist/cjs/ScrollView/ScrollViewBase.cjs +137 -0
  43. package/dist/cjs/ScrollView/{index.js → index.cjs} +123 -108
  44. package/dist/cjs/Share/index.cjs +49 -0
  45. package/dist/cjs/StatusBar/{index.js → index.cjs} +17 -13
  46. package/dist/cjs/Text/index.cjs +170 -0
  47. package/dist/cjs/Text/types.cjs +16 -0
  48. package/dist/cjs/TextInput/__tests__/index-test.cjs +709 -0
  49. package/dist/cjs/TextInput/index.cjs +277 -0
  50. package/dist/cjs/TextInput/types.cjs +16 -0
  51. package/dist/cjs/TouchableOpacity.cjs +117 -0
  52. package/dist/cjs/{TouchableWithoutFeedback.js → TouchableWithoutFeedback.cjs} +60 -58
  53. package/dist/cjs/UnimplementedView.cjs +47 -0
  54. package/dist/cjs/Vibration/index.cjs +37 -0
  55. package/dist/cjs/View/{index.js → index.cjs} +49 -28
  56. package/dist/cjs/View/types.cjs +16 -0
  57. package/dist/cjs/createElement/__tests__/index-test.cjs +765 -0
  58. package/dist/cjs/createElement/index.cjs +54 -0
  59. package/dist/cjs/createReactDOMStyle.cjs +27 -0
  60. package/dist/cjs/findNodeHandle.cjs +33 -0
  61. package/dist/cjs/{index.js → index.cjs} +77 -16
  62. package/dist/cjs/render/{index.js → index.cjs} +20 -14
  63. package/dist/cjs/styleTypes.cjs +16 -0
  64. package/dist/cjs/types.cjs +16 -0
  65. package/dist/cjs/useColorScheme/{index.js → index.cjs} +27 -16
  66. package/dist/cjs/useLocaleContext/index.cjs +26 -0
  67. package/dist/cjs/useWindowDimensions/{index.js → index.cjs} +28 -16
  68. package/dist/cjs/vendor/react-native/Animated/Animated.cjs +52 -0
  69. package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +125 -0
  70. package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +514 -0
  71. package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +149 -0
  72. package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +1 -0
  73. package/dist/cjs/vendor/react-native/Animated/{Easing.js → Easing.cjs} +31 -22
  74. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +331 -0
  75. package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.js → NativeAnimatedModule.cjs} +23 -14
  76. package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.js → NativeAnimatedTurboModule.cjs} +23 -14
  77. package/dist/cjs/vendor/react-native/Animated/{SpringConfig.js → SpringConfig.cjs} +20 -12
  78. package/dist/cjs/vendor/react-native/Animated/animations/{Animation.js → Animation.cjs} +29 -24
  79. package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.js → DecayAnimation.cjs} +27 -16
  80. package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.js → SpringAnimation.cjs} +48 -34
  81. package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.js → TimingAnimation.cjs} +32 -26
  82. package/dist/cjs/vendor/react-native/Animated/{bezier.js → bezier.cjs} +38 -27
  83. package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +40 -0
  84. package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +45 -0
  85. package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +40 -0
  86. package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +40 -0
  87. package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +61 -0
  88. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.js → AnimatedAddition.cjs} +26 -15
  89. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.js → AnimatedColor.cjs} +57 -40
  90. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.js → AnimatedDiffClamp.cjs} +27 -16
  91. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.js → AnimatedDivision.cjs} +29 -16
  92. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.js → AnimatedInterpolation.cjs} +62 -72
  93. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.js → AnimatedModulo.cjs} +25 -15
  94. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.js → AnimatedMultiplication.cjs} +26 -15
  95. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.js → AnimatedNode.cjs} +39 -39
  96. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.js → AnimatedProps.cjs} +34 -24
  97. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.js → AnimatedStyle.cjs} +35 -21
  98. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.js → AnimatedSubtraction.cjs} +26 -15
  99. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.js → AnimatedTracking.cjs} +34 -32
  100. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.js → AnimatedTransform.cjs} +32 -21
  101. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.js → AnimatedValue.cjs} +43 -50
  102. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.js → AnimatedValueXY.cjs} +38 -31
  103. package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.js → AnimatedWithChildren.cjs} +31 -21
  104. package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.js → useAnimatedProps.cjs} +44 -31
  105. package/dist/cjs/vendor/react-native/{FeatureFlags.js → FeatureFlags.cjs} +16 -11
  106. package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.js → RCTDeviceEventEmitter.cjs} +23 -14
  107. package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.js → index.cjs} +29 -25
  108. package/dist/cjs/vendor/react-native/PanResponder/index.cjs +272 -0
  109. package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +105 -0
  110. package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +1 -0
  111. package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +34 -0
  112. package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +18 -0
  113. package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +36 -0
  114. package/dist/cjs/vendor/react-native/emitter/{EventEmitter.js → EventEmitter.cjs} +24 -14
  115. package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +1 -0
  116. package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.js → _EmitterSubscription.cjs} +24 -15
  117. package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.js → _EventEmitter.cjs} +39 -39
  118. package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.js → _EventSubscription.cjs} +17 -11
  119. package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.js → _EventSubscriptionVendor.cjs} +21 -16
  120. package/dist/cjs/vendor/react-native/infoLog/index.cjs +31 -0
  121. package/dist/cjs/vendor/react-native/useRefEffect.cjs +32 -0
  122. package/dist/cjs/without-animated.cjs +155 -0
  123. package/package.json +9 -8
  124. package/dist/cjs/AccessibilityInfo/index.js +0 -96
  125. package/dist/cjs/ActivityIndicator/__tests__/index-test.js +0 -116
  126. package/dist/cjs/ActivityIndicator/index.js +0 -108
  127. package/dist/cjs/Alert/index.js +0 -25
  128. package/dist/cjs/AppRegistry/AppContainer.js +0 -41
  129. package/dist/cjs/AppRegistry/index.js +0 -98
  130. package/dist/cjs/AppRegistry/renderApplication.js +0 -51
  131. package/dist/cjs/AppState/index.js +0 -71
  132. package/dist/cjs/Appearance/index.js +0 -41
  133. package/dist/cjs/BackHandler/index.js +0 -32
  134. package/dist/cjs/I18nManager/index.js +0 -30
  135. package/dist/cjs/Image/index.js +0 -253
  136. package/dist/cjs/Image/types.js +0 -14
  137. package/dist/cjs/ImageBackground/__tests__/index-test.js +0 -48
  138. package/dist/cjs/ImageBackground/index.js +0 -62
  139. package/dist/cjs/Keyboard/index.js +0 -35
  140. package/dist/cjs/LogBox/index.js +0 -31
  141. package/dist/cjs/Modal/ModalAnimation.js +0 -137
  142. package/dist/cjs/Modal/ModalContent.js +0 -75
  143. package/dist/cjs/Modal/ModalFocusTrap.js +0 -105
  144. package/dist/cjs/Modal/ModalPortal.js +0 -43
  145. package/dist/cjs/Modal/index.js +0 -92
  146. package/dist/cjs/NativeModules/index.js +0 -25
  147. package/dist/cjs/Pressable/index.js +0 -140
  148. package/dist/cjs/SafeAreaView/index.js +0 -43
  149. package/dist/cjs/ScrollView/ScrollViewBase.js +0 -124
  150. package/dist/cjs/Share/index.js +0 -56
  151. package/dist/cjs/Text/index.js +0 -152
  152. package/dist/cjs/Text/types.js +0 -14
  153. package/dist/cjs/TextInput/__tests__/index-test.js +0 -422
  154. package/dist/cjs/TextInput/index.js +0 -260
  155. package/dist/cjs/TextInput/types.js +0 -14
  156. package/dist/cjs/TouchableOpacity.js +0 -123
  157. package/dist/cjs/UnimplementedView.js +0 -36
  158. package/dist/cjs/Vibration/index.js +0 -31
  159. package/dist/cjs/View/types.js +0 -14
  160. package/dist/cjs/createElement/__tests__/index-test.js +0 -536
  161. package/dist/cjs/createElement/index.js +0 -37
  162. package/dist/cjs/createReactDOMStyle.js +0 -21
  163. package/dist/cjs/findNodeHandle.js +0 -29
  164. package/dist/cjs/styleTypes.js +0 -14
  165. package/dist/cjs/types.js +0 -14
  166. package/dist/cjs/useLocaleContext/index.js +0 -21
  167. package/dist/cjs/vendor/react-native/Animated/Animated.js +0 -35
  168. package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.js +0 -143
  169. package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.js +0 -458
  170. package/dist/cjs/vendor/react-native/Animated/AnimatedMock.js +0 -126
  171. package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.js +0 -2
  172. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js +0 -335
  173. package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.js +0 -29
  174. package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.js +0 -38
  175. package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.js +0 -29
  176. package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.js +0 -29
  177. package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js +0 -42
  178. package/dist/cjs/vendor/react-native/PanResponder/index.js +0 -272
  179. package/dist/cjs/vendor/react-native/TouchHistoryMath/index.js +0 -118
  180. package/dist/cjs/vendor/react-native/TurboModule/RCTExport.js +0 -2
  181. package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.js +0 -28
  182. package/dist/cjs/vendor/react-native/Types/CoreEventTypes.js +0 -15
  183. package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.js +0 -29
  184. package/dist/cjs/vendor/react-native/emitter/EventSubscription.js +0 -2
  185. package/dist/cjs/vendor/react-native/infoLog/index.js +0 -25
  186. package/dist/cjs/vendor/react-native/useRefEffect.js +0 -30
  187. package/dist/cjs/without-animated.js +0 -95
  188. /package/dist/cjs/AccessibilityInfo/{index.js.map → index.cjs.map} +0 -0
  189. /package/dist/cjs/ActivityIndicator/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  190. /package/dist/cjs/ActivityIndicator/{index.js.map → index.cjs.map} +0 -0
  191. /package/dist/cjs/Alert/{index.js.map → index.cjs.map} +0 -0
  192. /package/dist/cjs/AppRegistry/{AppContainer.js.map → AppContainer.cjs.map} +0 -0
  193. /package/dist/cjs/AppRegistry/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  194. /package/dist/cjs/AppRegistry/__tests__/{index-test.node.js.map → index-test.node.cjs.map} +0 -0
  195. /package/dist/cjs/AppRegistry/{index.js.map → index.cjs.map} +0 -0
  196. /package/dist/cjs/AppRegistry/{renderApplication.js.map → renderApplication.cjs.map} +0 -0
  197. /package/dist/cjs/AppState/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  198. /package/dist/cjs/AppState/{index.js.map → index.cjs.map} +0 -0
  199. /package/dist/cjs/Appearance/{index.js.map → index.cjs.map} +0 -0
  200. /package/dist/cjs/BackHandler/{index.js.map → index.cjs.map} +0 -0
  201. /package/dist/cjs/Clipboard/{index.js.map → index.cjs.map} +0 -0
  202. /package/dist/cjs/{DeviceEmitter.js.map → DeviceEmitter.cjs.map} +0 -0
  203. /package/dist/cjs/DeviceInfo/{index.js.map → index.cjs.map} +0 -0
  204. /package/dist/cjs/Dimensions/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  205. /package/dist/cjs/Dimensions/{index.js.map → index.cjs.map} +0 -0
  206. /package/dist/cjs/I18nManager/{index.js.map → index.cjs.map} +0 -0
  207. /package/dist/cjs/Image/{index.js.map → index.cjs.map} +0 -0
  208. /package/dist/cjs/Image/{types.js.map → types.cjs.map} +0 -0
  209. /package/dist/cjs/ImageBackground/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  210. /package/dist/cjs/ImageBackground/{index.js.map → index.cjs.map} +0 -0
  211. /package/dist/cjs/Keyboard/{index.js.map → index.cjs.map} +0 -0
  212. /package/dist/cjs/KeyboardAvoidingView/{index.js.map → index.cjs.map} +0 -0
  213. /package/dist/cjs/Linking/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  214. /package/dist/cjs/Linking/{index.js.map → index.cjs.map} +0 -0
  215. /package/dist/cjs/LogBox/{index.js.map → index.cjs.map} +0 -0
  216. /package/dist/cjs/Modal/{ModalAnimation.js.map → ModalAnimation.cjs.map} +0 -0
  217. /package/dist/cjs/Modal/{ModalContent.js.map → ModalContent.cjs.map} +0 -0
  218. /package/dist/cjs/Modal/{ModalFocusTrap.js.map → ModalFocusTrap.cjs.map} +0 -0
  219. /package/dist/cjs/Modal/{ModalPortal.js.map → ModalPortal.cjs.map} +0 -0
  220. /package/dist/cjs/Modal/{index.js.map → index.cjs.map} +0 -0
  221. /package/dist/cjs/NativeModules/{index.js.map → index.cjs.map} +0 -0
  222. /package/dist/cjs/PanResponder/{index.js.map → index.cjs.map} +0 -0
  223. /package/dist/cjs/PixelRatio/{index.js.map → index.cjs.map} +0 -0
  224. /package/dist/cjs/Pressable/{index.js.map → index.cjs.map} +0 -0
  225. /package/dist/cjs/RefreshControl/{index.js.map → index.cjs.map} +0 -0
  226. /package/dist/cjs/SafeAreaView/{index.js.map → index.cjs.map} +0 -0
  227. /package/dist/cjs/ScrollView/{ScrollViewBase.js.map → ScrollViewBase.cjs.map} +0 -0
  228. /package/dist/cjs/ScrollView/{index.js.map → index.cjs.map} +0 -0
  229. /package/dist/cjs/Share/{index.js.map → index.cjs.map} +0 -0
  230. /package/dist/cjs/StatusBar/{index.js.map → index.cjs.map} +0 -0
  231. /package/dist/cjs/Text/{index.js.map → index.cjs.map} +0 -0
  232. /package/dist/cjs/Text/{types.js.map → types.cjs.map} +0 -0
  233. /package/dist/cjs/TextInput/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  234. /package/dist/cjs/TextInput/{index.js.map → index.cjs.map} +0 -0
  235. /package/dist/cjs/TextInput/{types.js.map → types.cjs.map} +0 -0
  236. /package/dist/cjs/{TouchableOpacity.js.map → TouchableOpacity.cjs.map} +0 -0
  237. /package/dist/cjs/{TouchableWithoutFeedback.js.map → TouchableWithoutFeedback.cjs.map} +0 -0
  238. /package/dist/cjs/{UnimplementedView.js.map → UnimplementedView.cjs.map} +0 -0
  239. /package/dist/cjs/Vibration/{index.js.map → index.cjs.map} +0 -0
  240. /package/dist/cjs/View/{index.js.map → index.cjs.map} +0 -0
  241. /package/dist/cjs/View/{types.js.map → types.cjs.map} +0 -0
  242. /package/dist/cjs/createElement/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
  243. /package/dist/cjs/createElement/{index.js.map → index.cjs.map} +0 -0
  244. /package/dist/cjs/{createReactDOMStyle.js.map → createReactDOMStyle.cjs.map} +0 -0
  245. /package/dist/cjs/{findNodeHandle.js.map → findNodeHandle.cjs.map} +0 -0
  246. /package/dist/cjs/{index.js.map → index.cjs.map} +0 -0
  247. /package/dist/cjs/render/{index.js.map → index.cjs.map} +0 -0
  248. /package/dist/cjs/{styleTypes.js.map → styleTypes.cjs.map} +0 -0
  249. /package/dist/cjs/{types.js.map → types.cjs.map} +0 -0
  250. /package/dist/cjs/useColorScheme/{index.js.map → index.cjs.map} +0 -0
  251. /package/dist/cjs/useLocaleContext/{index.js.map → index.cjs.map} +0 -0
  252. /package/dist/cjs/useWindowDimensions/{index.js.map → index.cjs.map} +0 -0
  253. /package/dist/cjs/vendor/react-native/Animated/{Animated.js.map → Animated.cjs.map} +0 -0
  254. /package/dist/cjs/vendor/react-native/Animated/{AnimatedEvent.js.map → AnimatedEvent.cjs.map} +0 -0
  255. /package/dist/cjs/vendor/react-native/Animated/{AnimatedImplementation.js.map → AnimatedImplementation.cjs.map} +0 -0
  256. /package/dist/cjs/vendor/react-native/Animated/{AnimatedMock.js.map → AnimatedMock.cjs.map} +0 -0
  257. /package/dist/cjs/vendor/react-native/Animated/{AnimatedPlatformConfig.js.map → AnimatedPlatformConfig.cjs.map} +0 -0
  258. /package/dist/cjs/vendor/react-native/Animated/{Easing.js.map → Easing.cjs.map} +0 -0
  259. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedHelper.js.map → NativeAnimatedHelper.cjs.map} +0 -0
  260. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.js.map → NativeAnimatedModule.cjs.map} +0 -0
  261. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.js.map → NativeAnimatedTurboModule.cjs.map} +0 -0
  262. /package/dist/cjs/vendor/react-native/Animated/{SpringConfig.js.map → SpringConfig.cjs.map} +0 -0
  263. /package/dist/cjs/vendor/react-native/Animated/animations/{Animation.js.map → Animation.cjs.map} +0 -0
  264. /package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.js.map → DecayAnimation.cjs.map} +0 -0
  265. /package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.js.map → SpringAnimation.cjs.map} +0 -0
  266. /package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.js.map → TimingAnimation.cjs.map} +0 -0
  267. /package/dist/cjs/vendor/react-native/Animated/{bezier.js.map → bezier.cjs.map} +0 -0
  268. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedImage.js.map → AnimatedImage.cjs.map} +0 -0
  269. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedScrollView.js.map → AnimatedScrollView.cjs.map} +0 -0
  270. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedText.js.map → AnimatedText.cjs.map} +0 -0
  271. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedView.js.map → AnimatedView.cjs.map} +0 -0
  272. /package/dist/cjs/vendor/react-native/Animated/{createAnimatedComponent.js.map → createAnimatedComponent.cjs.map} +0 -0
  273. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.js.map → AnimatedAddition.cjs.map} +0 -0
  274. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.js.map → AnimatedColor.cjs.map} +0 -0
  275. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.js.map → AnimatedDiffClamp.cjs.map} +0 -0
  276. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.js.map → AnimatedDivision.cjs.map} +0 -0
  277. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.js.map → AnimatedInterpolation.cjs.map} +0 -0
  278. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.js.map → AnimatedModulo.cjs.map} +0 -0
  279. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.js.map → AnimatedMultiplication.cjs.map} +0 -0
  280. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.js.map → AnimatedNode.cjs.map} +0 -0
  281. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.js.map → AnimatedProps.cjs.map} +0 -0
  282. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.js.map → AnimatedStyle.cjs.map} +0 -0
  283. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.js.map → AnimatedSubtraction.cjs.map} +0 -0
  284. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.js.map → AnimatedTracking.cjs.map} +0 -0
  285. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.js.map → AnimatedTransform.cjs.map} +0 -0
  286. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.js.map → AnimatedValue.cjs.map} +0 -0
  287. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.js.map → AnimatedValueXY.cjs.map} +0 -0
  288. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.js.map → AnimatedWithChildren.cjs.map} +0 -0
  289. /package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.js.map → useAnimatedProps.cjs.map} +0 -0
  290. /package/dist/cjs/vendor/react-native/{FeatureFlags.js.map → FeatureFlags.cjs.map} +0 -0
  291. /package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.js.map → RCTDeviceEventEmitter.cjs.map} +0 -0
  292. /package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.js.map → index.cjs.map} +0 -0
  293. /package/dist/cjs/vendor/react-native/PanResponder/{index.js.map → index.cjs.map} +0 -0
  294. /package/dist/cjs/vendor/react-native/TouchHistoryMath/{index.js.map → index.cjs.map} +0 -0
  295. /package/dist/cjs/vendor/react-native/TurboModule/{RCTExport.js.map → RCTExport.cjs.map} +0 -0
  296. /package/dist/cjs/vendor/react-native/TurboModule/{TurboModuleRegistry.js.map → TurboModuleRegistry.cjs.map} +0 -0
  297. /package/dist/cjs/vendor/react-native/Types/{CoreEventTypes.js.map → CoreEventTypes.cjs.map} +0 -0
  298. /package/dist/cjs/vendor/react-native/Utilities/{setAndForwardRef.js.map → setAndForwardRef.cjs.map} +0 -0
  299. /package/dist/cjs/vendor/react-native/emitter/{EventEmitter.js.map → EventEmitter.cjs.map} +0 -0
  300. /package/dist/cjs/vendor/react-native/emitter/{EventSubscription.js.map → EventSubscription.cjs.map} +0 -0
  301. /package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.js.map → _EmitterSubscription.cjs.map} +0 -0
  302. /package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.js.map → _EventEmitter.cjs.map} +0 -0
  303. /package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.js.map → _EventSubscription.cjs.map} +0 -0
  304. /package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.js.map → _EventSubscriptionVendor.cjs.map} +0 -0
  305. /package/dist/cjs/vendor/react-native/infoLog/{index.js.map → index.cjs.map} +0 -0
  306. /package/dist/cjs/vendor/react-native/{useRefEffect.js.map → useRefEffect.cjs.map} +0 -0
  307. /package/dist/cjs/{without-animated.js.map → without-animated.cjs.map} +0 -0
@@ -1,253 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
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
@@ -1,14 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __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
@@ -1,48 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __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
@@ -1,62 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
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
@@ -1,35 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var 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
@@ -1,31 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var 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
@@ -1,137 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
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 ModalAnimation_exports = {};
24
- __export(ModalAnimation_exports, {
25
- default: () => ModalAnimation_default
26
- });
27
- module.exports = __toCommonJS(ModalAnimation_exports);
28
- var React = __toESM(require("react")), import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_createElement = __toESM(require("../createElement/index")), ANIMATION_DURATION = 300;
29
- function getAnimationStyle(animationType, visible) {
30
- return animationType === "slide" ? visible ? animatedSlideInStyles : animatedSlideOutStyles : animationType === "fade" ? visible ? animatedFadeInStyles : animatedFadeOutStyles : visible ? styles.container : styles.hidden;
31
- }
32
- function ModalAnimation(props) {
33
- var animationType = props.animationType, children = props.children, onDismiss = props.onDismiss, onShow = props.onShow, visible = props.visible, _React$useState = React.useState(!1), isRendering = _React$useState[0], setIsRendering = _React$useState[1], wasVisible = React.useRef(!1), isAnimated = animationType && animationType !== "none", animationEndCallback = React.useCallback(
34
- (e) => {
35
- e && e.currentTarget !== e.target || (visible ? onShow && onShow() : (setIsRendering(!1), onDismiss && onDismiss()));
36
- },
37
- [onDismiss, onShow, visible]
38
- );
39
- return React.useEffect(() => {
40
- visible && setIsRendering(!0), visible !== wasVisible.current && !isAnimated && animationEndCallback(), wasVisible.current = visible;
41
- }, [isAnimated, visible, animationEndCallback]), isRendering || visible ? (0, import_createElement.default)("div", {
42
- style: isRendering ? getAnimationStyle(animationType, visible) : styles.hidden,
43
- onAnimationEnd: animationEndCallback,
44
- children
45
- }) : null;
46
- }
47
- var styles = import_react_native_web_internals.StyleSheet.create({
48
- container: {
49
- position: "fixed",
50
- top: 0,
51
- right: 0,
52
- bottom: 0,
53
- left: 0,
54
- zIndex: 9999
55
- },
56
- animatedIn: {
57
- animationDuration: ANIMATION_DURATION + "ms",
58
- animationTimingFunction: "ease-in"
59
- },
60
- animatedOut: {
61
- pointerEvents: "none",
62
- animationDuration: ANIMATION_DURATION + "ms",
63
- animationTimingFunction: "ease-out"
64
- },
65
- fadeIn: {
66
- opacity: 1,
67
- animationKeyframes: {
68
- "0%": {
69
- opacity: 0
70
- },
71
- "100%": {
72
- opacity: 1
73
- }
74
- }
75
- },
76
- fadeOut: {
77
- opacity: 0,
78
- animationKeyframes: {
79
- "0%": {
80
- opacity: 1
81
- },
82
- "100%": {
83
- opacity: 0
84
- }
85
- }
86
- },
87
- slideIn: {
88
- transform: [
89
- {
90
- translateY: "0%"
91
- }
92
- ],
93
- animationKeyframes: {
94
- "0%": {
95
- transform: [
96
- {
97
- translateY: "100%"
98
- }
99
- ]
100
- },
101
- "100%": {
102
- transform: [
103
- {
104
- translateY: "0%"
105
- }
106
- ]
107
- }
108
- }
109
- },
110
- slideOut: {
111
- transform: [
112
- {
113
- translateY: "100%"
114
- }
115
- ],
116
- animationKeyframes: {
117
- "0%": {
118
- transform: [
119
- {
120
- translateY: "0%"
121
- }
122
- ]
123
- },
124
- "100%": {
125
- transform: [
126
- {
127
- translateY: "100%"
128
- }
129
- ]
130
- }
131
- }
132
- },
133
- hidden: {
134
- opacity: 0
135
- }
136
- }), animatedSlideInStyles = [styles.container, styles.animatedIn, styles.slideIn], animatedSlideOutStyles = [styles.container, styles.animatedOut, styles.slideOut], animatedFadeInStyles = [styles.container, styles.animatedIn, styles.fadeIn], animatedFadeOutStyles = [styles.container, styles.animatedOut, styles.fadeOut], ModalAnimation_default = ModalAnimation;
137
- //# sourceMappingURL=ModalAnimation.js.map
@@ -1,75 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
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 ModalContent_exports = {};
24
- __export(ModalContent_exports, {
25
- default: () => ModalContent_default
26
- });
27
- module.exports = __toCommonJS(ModalContent_exports);
28
- var React = __toESM(require("react")), import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_View = __toESM(require("../View")), ModalContent = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
29
- const { active, children, onRequestClose, transparent, ...rest } = props;
30
- React.useEffect(() => {
31
- if (import_react_native_web_internals.canUseDOM) {
32
- var closeOnEscape = (e) => {
33
- active && e.key === "Escape" && (e.stopPropagation(), onRequestClose && onRequestClose());
34
- };
35
- return document.addEventListener("keyup", closeOnEscape, !1), () => document.removeEventListener("keyup", closeOnEscape, !1);
36
- }
37
- }, [active, onRequestClose]);
38
- var style = React.useMemo(() => [styles.modal, transparent ? styles.modalTransparent : styles.modalOpaque], [transparent]);
39
- return /* @__PURE__ */ React.createElement(
40
- import_View.default,
41
- {
42
- ...rest,
43
- accessibilityModal: !0,
44
- accessibilityRole: active ? "dialog" : null,
45
- ref: forwardedRef,
46
- style
47
- },
48
- /* @__PURE__ */ React.createElement(
49
- import_View.default,
50
- {
51
- style: styles.container
52
- },
53
- children
54
- )
55
- );
56
- }), styles = import_react_native_web_internals.StyleSheet.create({
57
- modal: {
58
- position: "fixed",
59
- top: 0,
60
- right: 0,
61
- bottom: 0,
62
- left: 0
63
- },
64
- modalTransparent: {
65
- backgroundColor: "transparent"
66
- },
67
- modalOpaque: {
68
- backgroundColor: "white"
69
- },
70
- container: {
71
- top: 0,
72
- flex: 1
73
- }
74
- }), ModalContent_default = ModalContent;
75
- //# sourceMappingURL=ModalContent.js.map