@tamagui/react-native-web-lite 2.7.6 → 3.0.0-beta.637.1

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 (504) hide show
  1. package/dist/cjs/AccessibilityInfo/index.cjs +82 -87
  2. package/dist/cjs/ActivityIndicator/index.cjs +83 -103
  3. package/dist/cjs/Alert/index.cjs +17 -20
  4. package/dist/cjs/AppRegistry/AppContainer.cjs +37 -52
  5. package/dist/cjs/AppRegistry/index.cjs +69 -81
  6. package/dist/cjs/AppRegistry/renderApplication.cjs +42 -54
  7. package/dist/cjs/AppState/index.cjs +60 -67
  8. package/dist/cjs/Appearance/index.cjs +40 -49
  9. package/dist/cjs/BackHandler/index.cjs +20 -25
  10. package/dist/cjs/Clipboard/index.cjs +50 -53
  11. package/dist/cjs/DeviceEmitter.cjs +15 -18
  12. package/dist/cjs/DeviceInfo/index.cjs +50 -63
  13. package/dist/cjs/Dimensions/index.cjs +86 -89
  14. package/dist/cjs/FlatList.cjs +177 -211
  15. package/dist/cjs/I18nManager/index.cjs +24 -29
  16. package/dist/cjs/Image/index.cjs +277 -308
  17. package/dist/cjs/Image/types.cjs +10 -11
  18. package/dist/cjs/ImageBackground/index.cjs +35 -48
  19. package/dist/cjs/InteractionManager/TaskQueue.cjs +95 -100
  20. package/dist/cjs/InteractionManager/index.cjs +105 -115
  21. package/dist/cjs/Keyboard/index.cjs +23 -28
  22. package/dist/cjs/KeyboardAvoidingView/index.cjs +41 -54
  23. package/dist/cjs/Libraries/Pressability/Pressability.cjs +15 -18
  24. package/dist/cjs/Libraries/Pressability/usePressability.cjs +15 -18
  25. package/dist/cjs/Linking/index.cjs +86 -89
  26. package/dist/cjs/LogBox/index.cjs +20 -21
  27. package/dist/cjs/Modal/ModalAnimation.cjs +131 -151
  28. package/dist/cjs/Modal/ModalContent.cjs +57 -77
  29. package/dist/cjs/Modal/ModalPortal.cjs +38 -46
  30. package/dist/cjs/Modal/index.cjs +15 -18
  31. package/dist/cjs/NativeModules/index.cjs +15 -20
  32. package/dist/cjs/PanResponder/index.cjs +18 -26
  33. package/dist/cjs/PixelRatio/index.cjs +45 -48
  34. package/dist/cjs/Pressable/index.cjs +130 -142
  35. package/dist/cjs/RefreshControl/index.cjs +18 -35
  36. package/dist/cjs/SafeAreaView/index.cjs +35 -46
  37. package/dist/cjs/ScrollView/WebScrollView.cjs +270 -0
  38. package/dist/cjs/ScrollView/index.cjs +15 -662
  39. package/dist/cjs/SectionList.cjs +19 -25
  40. package/dist/cjs/Share/index.cjs +44 -47
  41. package/dist/cjs/StatusBar/index.cjs +17 -18
  42. package/dist/cjs/Text/index.cjs +133 -171
  43. package/dist/cjs/Text/types.cjs +10 -11
  44. package/dist/cjs/TextInput/index.cjs +281 -359
  45. package/dist/cjs/TextInput/types.cjs +10 -11
  46. package/dist/cjs/TouchableNativeFeedback.cjs +15 -18
  47. package/dist/cjs/TouchableOpacity.cjs +91 -99
  48. package/dist/cjs/TouchableWithoutFeedback.cjs +65 -74
  49. package/dist/cjs/UnimplementedView.cjs +26 -36
  50. package/dist/cjs/Vibration/index.cjs +25 -28
  51. package/dist/cjs/View/index.cjs +89 -121
  52. package/dist/cjs/View/types.cjs +10 -11
  53. package/dist/cjs/VirtualizedList.cjs +19 -25
  54. package/dist/cjs/codegenNativeCommands.cjs +32 -0
  55. package/dist/cjs/codegenNativeComponent.cjs +19 -18
  56. package/dist/cjs/createElement/index.cjs +52 -70
  57. package/dist/cjs/createReactDOMStyle.cjs +16 -17
  58. package/dist/cjs/index.cjs +106 -106
  59. package/dist/cjs/modules/requestIdleCallback.cjs +28 -29
  60. package/dist/cjs/preprocess.cjs +19 -20
  61. package/dist/cjs/render/index.cjs +18 -19
  62. package/dist/cjs/styleTypes.cjs +10 -11
  63. package/dist/cjs/types.cjs +10 -11
  64. package/dist/cjs/useColorScheme/index.cjs +27 -37
  65. package/dist/cjs/useLocaleContext/index.cjs +15 -18
  66. package/dist/cjs/useWindowDimensions/index.cjs +32 -42
  67. package/dist/cjs/vendor/react-native/Animated/Animated.cjs +23 -24
  68. package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +136 -141
  69. package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +500 -533
  70. package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +100 -109
  71. package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +2 -1
  72. package/dist/cjs/vendor/react-native/Animated/Easing.cjs +182 -183
  73. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +302 -328
  74. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.cjs +48 -56
  75. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.cjs +46 -53
  76. package/dist/cjs/vendor/react-native/Animated/SpringConfig.cjs +63 -64
  77. package/dist/cjs/vendor/react-native/Animated/animations/Animation.cjs +52 -56
  78. package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.cjs +74 -79
  79. package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.cjs +210 -215
  80. package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.cjs +107 -116
  81. package/dist/cjs/vendor/react-native/Animated/bezier.cjs +83 -88
  82. package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.cjs +23 -29
  83. package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +19 -25
  84. package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +23 -29
  85. package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.cjs +23 -29
  86. package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +16 -17
  87. package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +16 -17
  88. package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +32 -44
  89. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.cjs +51 -52
  90. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.cjs +244 -247
  91. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.cjs +59 -60
  92. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.cjs +65 -66
  93. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.cjs +185 -188
  94. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.cjs +49 -50
  95. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.cjs +51 -52
  96. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.cjs +152 -156
  97. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.cjs +133 -134
  98. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.cjs +113 -116
  99. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.cjs +51 -52
  100. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.cjs +73 -75
  101. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.cjs +109 -110
  102. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.cjs +212 -216
  103. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.cjs +96 -103
  104. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.cjs +70 -71
  105. package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.cjs +75 -76
  106. package/dist/cjs/vendor/react-native/Batchinator/index.cjs +46 -57
  107. package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.cjs +54 -57
  108. package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.cjs +16 -17
  109. package/dist/cjs/vendor/react-native/FeatureFlags.cjs +21 -24
  110. package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +165 -173
  111. package/dist/cjs/vendor/react-native/FlatList/index.cjs +259 -294
  112. package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.cjs +66 -69
  113. package/dist/cjs/vendor/react-native/LayoutAnimation/index.cjs +87 -91
  114. package/dist/cjs/vendor/react-native/PanResponder/index.cjs +170 -176
  115. package/dist/cjs/vendor/react-native/PooledClass/index.cjs +42 -43
  116. package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.cjs +21 -22
  117. package/dist/cjs/vendor/react-native/SectionList/index.cjs +95 -110
  118. package/dist/cjs/vendor/react-native/StaticContainer/index.cjs +28 -34
  119. package/dist/cjs/vendor/react-native/StaticRenderer/index.cjs +27 -33
  120. package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +82 -111
  121. package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +17 -22
  122. package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +20 -21
  123. package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +124 -127
  124. package/dist/cjs/vendor/react-native/Utilities/Platform.cjs +16 -17
  125. package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +23 -24
  126. package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +26 -30
  127. package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.cjs +27 -30
  128. package/dist/cjs/vendor/react-native/Utilities/useRefEffect.cjs +26 -27
  129. package/dist/cjs/vendor/react-native/ViewabilityHelper/index.cjs +154 -163
  130. package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +147 -156
  131. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +124 -125
  132. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +100 -99
  133. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +63 -64
  134. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +66 -75
  135. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +104 -160
  136. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +56 -64
  137. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +51 -52
  138. package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +222 -284
  139. package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.cjs +124 -144
  140. package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +58 -59
  141. package/dist/cjs/vendor/react-native/emitter/EventEmitter.cjs +16 -17
  142. package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +2 -1
  143. package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.cjs +43 -44
  144. package/dist/cjs/vendor/react-native/emitter/_EventEmitter.cjs +115 -120
  145. package/dist/cjs/vendor/react-native/emitter/_EventSubscription.cjs +31 -32
  146. package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.cjs +80 -81
  147. package/dist/cjs/vendor/react-native/infoLog/index.cjs +17 -18
  148. package/dist/cjs/vendor/react-native/useRefEffect.cjs +26 -27
  149. package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.cjs +88 -89
  150. package/dist/cjs/without-animated.cjs +255 -267
  151. package/dist/esm/AccessibilityInfo/index.mjs +69 -69
  152. package/dist/esm/AccessibilityInfo/index.mjs.map +1 -1
  153. package/dist/esm/ActivityIndicator/index.mjs +66 -78
  154. package/dist/esm/ActivityIndicator/index.mjs.map +1 -1
  155. package/dist/esm/Alert/index.mjs +4 -3
  156. package/dist/esm/Alert/index.mjs.map +1 -1
  157. package/dist/esm/AppRegistry/AppContainer.mjs +21 -28
  158. package/dist/esm/AppRegistry/AppContainer.mjs.map +1 -1
  159. package/dist/esm/AppRegistry/index.mjs +58 -65
  160. package/dist/esm/AppRegistry/index.mjs.map +1 -1
  161. package/dist/esm/AppRegistry/renderApplication.mjs +30 -40
  162. package/dist/esm/AppRegistry/renderApplication.mjs.map +1 -1
  163. package/dist/esm/AppState/index.mjs +48 -50
  164. package/dist/esm/AppState/index.mjs.map +1 -1
  165. package/dist/esm/Appearance/index.mjs +27 -31
  166. package/dist/esm/Appearance/index.mjs.map +1 -1
  167. package/dist/esm/BackHandler/index.mjs +6 -7
  168. package/dist/esm/BackHandler/index.mjs.map +1 -1
  169. package/dist/esm/Clipboard/index.mjs +37 -36
  170. package/dist/esm/Clipboard/index.mjs.map +1 -1
  171. package/dist/esm/DeviceEmitter.mjs +2 -0
  172. package/dist/esm/DeviceEmitter.mjs.map +1 -1
  173. package/dist/esm/DeviceInfo/index.mjs +37 -45
  174. package/dist/esm/DeviceInfo/index.mjs.map +1 -1
  175. package/dist/esm/Dimensions/index.mjs +72 -72
  176. package/dist/esm/Dimensions/index.mjs.map +1 -1
  177. package/dist/esm/FlatList.mjs +162 -188
  178. package/dist/esm/FlatList.mjs.map +1 -1
  179. package/dist/esm/I18nManager/index.mjs +10 -11
  180. package/dist/esm/I18nManager/index.mjs.map +1 -1
  181. package/dist/esm/Image/index.mjs +261 -285
  182. package/dist/esm/Image/index.mjs.map +1 -1
  183. package/dist/esm/Image/types.mjs +0 -2
  184. package/dist/esm/ImageBackground/index.mjs +21 -31
  185. package/dist/esm/ImageBackground/index.mjs.map +1 -1
  186. package/dist/esm/InteractionManager/TaskQueue.mjs +83 -83
  187. package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -1
  188. package/dist/esm/InteractionManager/index.mjs +89 -89
  189. package/dist/esm/InteractionManager/index.mjs.map +1 -1
  190. package/dist/esm/Keyboard/index.mjs +10 -10
  191. package/dist/esm/Keyboard/index.mjs.map +1 -1
  192. package/dist/esm/KeyboardAvoidingView/index.mjs +24 -29
  193. package/dist/esm/KeyboardAvoidingView/index.mjs.map +1 -1
  194. package/dist/esm/Libraries/Pressability/Pressability.mjs +1 -0
  195. package/dist/esm/Libraries/Pressability/Pressability.mjs.map +1 -1
  196. package/dist/esm/Libraries/Pressability/usePressability.mjs +2 -1
  197. package/dist/esm/Libraries/Pressability/usePressability.mjs.map +1 -1
  198. package/dist/esm/Linking/index.mjs +73 -71
  199. package/dist/esm/Linking/index.mjs.map +1 -1
  200. package/dist/esm/LogBox/index.mjs +5 -4
  201. package/dist/esm/LogBox/index.mjs.map +1 -1
  202. package/dist/esm/Modal/ModalAnimation.mjs +116 -126
  203. package/dist/esm/Modal/ModalAnimation.mjs.map +1 -1
  204. package/dist/esm/Modal/ModalContent.mjs +41 -51
  205. package/dist/esm/Modal/ModalContent.mjs.map +1 -1
  206. package/dist/esm/Modal/ModalPortal.mjs +22 -20
  207. package/dist/esm/Modal/ModalPortal.mjs.map +1 -1
  208. package/dist/esm/Modal/index.mjs +1 -0
  209. package/dist/esm/Modal/index.mjs.map +1 -1
  210. package/dist/esm/NativeModules/index.mjs +3 -3
  211. package/dist/esm/NativeModules/index.mjs.map +1 -1
  212. package/dist/esm/PanResponder/index.mjs +3 -3
  213. package/dist/esm/PixelRatio/index.mjs +33 -31
  214. package/dist/esm/PixelRatio/index.mjs.map +1 -1
  215. package/dist/esm/Pressable/index.mjs +114 -119
  216. package/dist/esm/Pressable/index.mjs.map +1 -1
  217. package/dist/esm/RefreshControl/index.mjs +4 -18
  218. package/dist/esm/RefreshControl/index.mjs.map +1 -1
  219. package/dist/esm/SafeAreaView/index.mjs +18 -21
  220. package/dist/esm/SafeAreaView/index.mjs.map +1 -1
  221. package/dist/esm/ScrollView/WebScrollView.mjs +244 -0
  222. package/dist/esm/ScrollView/WebScrollView.mjs.map +1 -0
  223. package/dist/esm/ScrollView/index.mjs +3 -635
  224. package/dist/esm/SectionList.mjs +3 -4
  225. package/dist/esm/Share/index.mjs +32 -30
  226. package/dist/esm/Share/index.mjs.map +1 -1
  227. package/dist/esm/StatusBar/index.mjs +2 -1
  228. package/dist/esm/StatusBar/index.mjs.map +1 -1
  229. package/dist/esm/Text/index.mjs +116 -146
  230. package/dist/esm/Text/index.mjs.map +1 -1
  231. package/dist/esm/Text/types.mjs +0 -2
  232. package/dist/esm/TextInput/index.mjs +265 -336
  233. package/dist/esm/TextInput/index.mjs.map +1 -1
  234. package/dist/esm/TextInput/types.mjs +0 -2
  235. package/dist/esm/TouchableNativeFeedback.mjs +2 -2
  236. package/dist/esm/TouchableOpacity.mjs +75 -73
  237. package/dist/esm/TouchableOpacity.mjs.map +1 -1
  238. package/dist/esm/TouchableWithoutFeedback.mjs +49 -48
  239. package/dist/esm/TouchableWithoutFeedback.mjs.map +1 -1
  240. package/dist/esm/UnimplementedView.mjs +11 -11
  241. package/dist/esm/UnimplementedView.mjs.map +1 -1
  242. package/dist/esm/Vibration/index.mjs +11 -10
  243. package/dist/esm/Vibration/index.mjs.map +1 -1
  244. package/dist/esm/View/index.mjs +73 -97
  245. package/dist/esm/View/index.mjs.map +1 -1
  246. package/dist/esm/View/types.mjs +0 -2
  247. package/dist/esm/VirtualizedList.mjs +3 -4
  248. package/dist/esm/codegenNativeCommands.mjs +8 -0
  249. package/dist/esm/codegenNativeCommands.mjs.map +1 -0
  250. package/dist/esm/codegenNativeComponent.mjs +5 -3
  251. package/dist/esm/codegenNativeComponent.mjs.map +1 -1
  252. package/dist/esm/createElement/index.mjs +35 -45
  253. package/dist/esm/createElement/index.mjs.map +1 -1
  254. package/dist/esm/createReactDOMStyle.mjs +2 -0
  255. package/dist/esm/createReactDOMStyle.mjs.map +1 -1
  256. package/dist/esm/index.js +15 -10
  257. package/dist/esm/index.js.map +1 -1
  258. package/dist/esm/index.mjs +15 -10
  259. package/dist/esm/index.mjs.map +1 -1
  260. package/dist/esm/modules/requestIdleCallback.mjs +13 -12
  261. package/dist/esm/modules/requestIdleCallback.mjs.map +1 -1
  262. package/dist/esm/preprocess.mjs +3 -3
  263. package/dist/esm/render/index.mjs +1 -0
  264. package/dist/esm/render/index.mjs.map +1 -1
  265. package/dist/esm/styleTypes.mjs +0 -2
  266. package/dist/esm/types.mjs +0 -2
  267. package/dist/esm/useColorScheme/index.mjs +11 -11
  268. package/dist/esm/useColorScheme/index.mjs.map +1 -1
  269. package/dist/esm/useLocaleContext/index.mjs +2 -2
  270. package/dist/esm/useWindowDimensions/index.mjs +16 -16
  271. package/dist/esm/useWindowDimensions/index.mjs.map +1 -1
  272. package/dist/esm/vendor/react-native/Animated/Animated.mjs +12 -10
  273. package/dist/esm/vendor/react-native/Animated/Animated.mjs.map +1 -1
  274. package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs +124 -127
  275. package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs.map +1 -1
  276. package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs +485 -515
  277. package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs.map +1 -1
  278. package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs +85 -91
  279. package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs.map +1 -1
  280. package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.mjs +0 -2
  281. package/dist/esm/vendor/react-native/Animated/Easing.mjs +169 -167
  282. package/dist/esm/vendor/react-native/Animated/Easing.mjs.map +1 -1
  283. package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs +273 -296
  284. package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs.map +1 -1
  285. package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs +26 -26
  286. package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs.map +1 -1
  287. package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs +24 -23
  288. package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs.map +1 -1
  289. package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs +48 -47
  290. package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs.map +1 -1
  291. package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs +38 -39
  292. package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs.map +1 -1
  293. package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs +60 -62
  294. package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs.map +1 -1
  295. package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs +196 -198
  296. package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs.map +1 -1
  297. package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs +93 -99
  298. package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs.map +1 -1
  299. package/dist/esm/vendor/react-native/Animated/bezier.mjs +68 -71
  300. package/dist/esm/vendor/react-native/Animated/bezier.mjs.map +1 -1
  301. package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs +7 -5
  302. package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs.map +1 -1
  303. package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs +3 -1
  304. package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs.map +1 -1
  305. package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs +7 -5
  306. package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs.map +1 -1
  307. package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs +7 -5
  308. package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs.map +1 -1
  309. package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs +2 -0
  310. package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs.map +1 -1
  311. package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs +2 -0
  312. package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs.map +1 -1
  313. package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs +15 -19
  314. package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs.map +1 -1
  315. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs +37 -35
  316. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs.map +1 -1
  317. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs +230 -230
  318. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs.map +1 -1
  319. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs +45 -43
  320. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs.map +1 -1
  321. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs +51 -49
  322. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs.map +1 -1
  323. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs +172 -172
  324. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs.map +1 -1
  325. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs +35 -33
  326. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs.map +1 -1
  327. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs +37 -35
  328. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs.map +1 -1
  329. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs +138 -139
  330. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs.map +1 -1
  331. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs +119 -117
  332. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs.map +1 -1
  333. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs +99 -99
  334. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs.map +1 -1
  335. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs +37 -35
  336. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs.map +1 -1
  337. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs +60 -59
  338. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs.map +1 -1
  339. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs +95 -93
  340. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs.map +1 -1
  341. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs +198 -199
  342. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs.map +1 -1
  343. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs +82 -86
  344. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs.map +1 -1
  345. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs +56 -54
  346. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs.map +1 -1
  347. package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs +61 -59
  348. package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs.map +1 -1
  349. package/dist/esm/vendor/react-native/Batchinator/index.mjs +32 -40
  350. package/dist/esm/vendor/react-native/Batchinator/index.mjs.map +1 -1
  351. package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs +40 -40
  352. package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs.map +1 -1
  353. package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs +2 -0
  354. package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs.map +1 -1
  355. package/dist/esm/vendor/react-native/FeatureFlags.mjs +7 -6
  356. package/dist/esm/vendor/react-native/FeatureFlags.mjs.map +1 -1
  357. package/dist/esm/vendor/react-native/FillRateHelper/index.mjs +150 -156
  358. package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -1
  359. package/dist/esm/vendor/react-native/FlatList/index.mjs +244 -271
  360. package/dist/esm/vendor/react-native/FlatList/index.mjs.map +1 -1
  361. package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs +52 -52
  362. package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs.map +1 -1
  363. package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs +73 -74
  364. package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs.map +1 -1
  365. package/dist/esm/vendor/react-native/PanResponder/index.mjs +153 -151
  366. package/dist/esm/vendor/react-native/PanResponder/index.mjs.map +1 -1
  367. package/dist/esm/vendor/react-native/PooledClass/index.mjs +27 -26
  368. package/dist/esm/vendor/react-native/PooledClass/index.mjs.map +1 -1
  369. package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs +6 -5
  370. package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs.map +1 -1
  371. package/dist/esm/vendor/react-native/SectionList/index.mjs +78 -85
  372. package/dist/esm/vendor/react-native/SectionList/index.mjs.map +1 -1
  373. package/dist/esm/vendor/react-native/StaticContainer/index.mjs +11 -9
  374. package/dist/esm/vendor/react-native/StaticContainer/index.mjs.map +1 -1
  375. package/dist/esm/vendor/react-native/StaticRenderer/index.mjs +10 -8
  376. package/dist/esm/vendor/react-native/StaticRenderer/index.mjs.map +1 -1
  377. package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs +67 -94
  378. package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs.map +1 -1
  379. package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs +3 -6
  380. package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs.map +1 -1
  381. package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs +6 -4
  382. package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs.map +1 -1
  383. package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs +105 -106
  384. package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs.map +1 -1
  385. package/dist/esm/vendor/react-native/Utilities/Platform.mjs +2 -0
  386. package/dist/esm/vendor/react-native/Utilities/Platform.mjs.map +1 -1
  387. package/dist/esm/vendor/react-native/Utilities/clamp.mjs +8 -7
  388. package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -1
  389. package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs +11 -13
  390. package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs.map +1 -1
  391. package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs +13 -13
  392. package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs.map +1 -1
  393. package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs +12 -10
  394. package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs.map +1 -1
  395. package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs +140 -146
  396. package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs.map +1 -1
  397. package/dist/esm/vendor/react-native/ViewabilityHelper.mjs +133 -139
  398. package/dist/esm/vendor/react-native/ViewabilityHelper.mjs.map +1 -1
  399. package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs +107 -106
  400. package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -1
  401. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +88 -82
  402. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -1
  403. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs +49 -47
  404. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -1
  405. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +49 -50
  406. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -1
  407. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +87 -135
  408. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -1
  409. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +38 -38
  410. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs.map +1 -1
  411. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs +36 -35
  412. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs.map +1 -1
  413. package/dist/esm/vendor/react-native/VirtualizedList/index.mjs +207 -266
  414. package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -1
  415. package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs +107 -119
  416. package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs.map +1 -1
  417. package/dist/esm/vendor/react-native/deepDiffer/index.mjs +43 -42
  418. package/dist/esm/vendor/react-native/deepDiffer/index.mjs.map +1 -1
  419. package/dist/esm/vendor/react-native/emitter/EventEmitter.mjs +2 -0
  420. package/dist/esm/vendor/react-native/emitter/EventEmitter.mjs.map +1 -1
  421. package/dist/esm/vendor/react-native/emitter/EventSubscription.mjs +0 -2
  422. package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs +29 -27
  423. package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs.map +1 -1
  424. package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs +101 -103
  425. package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs.map +1 -1
  426. package/dist/esm/vendor/react-native/emitter/_EventSubscription.mjs +16 -15
  427. package/dist/esm/vendor/react-native/emitter/_EventSubscription.mjs.map +1 -1
  428. package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs +66 -64
  429. package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs.map +1 -1
  430. package/dist/esm/vendor/react-native/infoLog/index.mjs +2 -1
  431. package/dist/esm/vendor/react-native/infoLog/index.mjs.map +1 -1
  432. package/dist/esm/vendor/react-native/useRefEffect.mjs +12 -10
  433. package/dist/esm/vendor/react-native/useRefEffect.mjs.map +1 -1
  434. package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs +71 -70
  435. package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs.map +1 -1
  436. package/dist/esm/without-animated.mjs +172 -187
  437. package/dist/esm/without-animated.mjs.map +1 -1
  438. package/package.json +12 -12
  439. package/src/ScrollView/WebScrollView.tsx +383 -0
  440. package/src/ScrollView/index.tsx +6 -892
  441. package/src/codegenNativeCommands.ts +6 -0
  442. package/src/codegenNativeComponent.ts +2 -2
  443. package/src/index.tsx +3 -0
  444. package/src/without-animated.tsx +1 -0
  445. package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +0 -209
  446. package/dist/cjs/AppRegistry/__tests__/index-test.cjs +0 -97
  447. package/dist/cjs/AppRegistry/__tests__/index-test.node.cjs +0 -162
  448. package/dist/cjs/AppState/__tests__/index-test.cjs +0 -38
  449. package/dist/cjs/Dimensions/__tests__/index-test.cjs +0 -67
  450. package/dist/cjs/ImageBackground/__tests__/index-test.cjs +0 -72
  451. package/dist/cjs/Linking/__tests__/index-test.cjs +0 -56
  452. package/dist/cjs/ScrollView/ScrollViewBase.cjs +0 -167
  453. package/dist/cjs/codegenNativeCommand.cjs +0 -31
  454. package/dist/cjs/createElement/__tests__/index-test.cjs +0 -828
  455. package/dist/esm/ActivityIndicator/__tests__/index-test.mjs +0 -186
  456. package/dist/esm/ActivityIndicator/__tests__/index-test.mjs.map +0 -1
  457. package/dist/esm/AppRegistry/__tests__/index-test.mjs +0 -74
  458. package/dist/esm/AppRegistry/__tests__/index-test.mjs.map +0 -1
  459. package/dist/esm/AppRegistry/__tests__/index-test.node.mjs +0 -139
  460. package/dist/esm/AppRegistry/__tests__/index-test.node.mjs.map +0 -1
  461. package/dist/esm/AppState/__tests__/index-test.mjs +0 -15
  462. package/dist/esm/AppState/__tests__/index-test.mjs.map +0 -1
  463. package/dist/esm/Dimensions/__tests__/index-test.mjs +0 -44
  464. package/dist/esm/Dimensions/__tests__/index-test.mjs.map +0 -1
  465. package/dist/esm/Image/types.mjs.map +0 -1
  466. package/dist/esm/ImageBackground/__tests__/index-test.mjs +0 -49
  467. package/dist/esm/ImageBackground/__tests__/index-test.mjs.map +0 -1
  468. package/dist/esm/Linking/__tests__/index-test.mjs +0 -33
  469. package/dist/esm/Linking/__tests__/index-test.mjs.map +0 -1
  470. package/dist/esm/PanResponder/index.mjs.map +0 -1
  471. package/dist/esm/ScrollView/ScrollViewBase.mjs +0 -130
  472. package/dist/esm/ScrollView/ScrollViewBase.mjs.map +0 -1
  473. package/dist/esm/ScrollView/index.mjs.map +0 -1
  474. package/dist/esm/SectionList.mjs.map +0 -1
  475. package/dist/esm/Text/types.mjs.map +0 -1
  476. package/dist/esm/TextInput/types.mjs.map +0 -1
  477. package/dist/esm/TouchableNativeFeedback.mjs.map +0 -1
  478. package/dist/esm/View/types.mjs.map +0 -1
  479. package/dist/esm/VirtualizedList.mjs.map +0 -1
  480. package/dist/esm/codegenNativeCommand.mjs +0 -6
  481. package/dist/esm/codegenNativeCommand.mjs.map +0 -1
  482. package/dist/esm/createElement/__tests__/index-test.mjs +0 -805
  483. package/dist/esm/createElement/__tests__/index-test.mjs.map +0 -1
  484. package/dist/esm/preprocess.mjs.map +0 -1
  485. package/dist/esm/styleTypes.mjs.map +0 -1
  486. package/dist/esm/types.mjs.map +0 -1
  487. package/dist/esm/useLocaleContext/index.mjs.map +0 -1
  488. package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.mjs.map +0 -1
  489. package/dist/esm/vendor/react-native/emitter/EventSubscription.mjs.map +0 -1
  490. package/src/ActivityIndicator/__tests__/__snapshots__/index-test.js.snap +0 -466
  491. package/src/ActivityIndicator/__tests__/index-test.tsx +0 -147
  492. package/src/AppRegistry/__tests__/index-test.node.tsx +0 -144
  493. package/src/AppRegistry/__tests__/index-test.tsx +0 -94
  494. package/src/AppState/__tests__/index-test.tsx +0 -24
  495. package/src/Dimensions/__tests__/index-test.tsx +0 -54
  496. package/src/ImageBackground/__tests__/index-test.tsx +0 -49
  497. package/src/Linking/__tests__/index-test.tsx +0 -37
  498. package/src/Pressable/__tests__/__snapshots__/index-test.js.snap +0 -196
  499. package/src/ScrollView/ScrollViewBase.tsx +0 -183
  500. package/src/ScrollView/__tests__/__snapshots__/index-test.js.snap +0 -49
  501. package/src/Text/__tests__/__snapshots__/index-test.js.snap +0 -218
  502. package/src/codegenNativeCommand.ts +0 -6
  503. package/src/createElement/__tests__/__snapshots__/index-test.js.snap +0 -13
  504. package/src/createElement/__tests__/index-test.tsx +0 -647
@@ -1,10 +1,10 @@
1
1
  import * as React from "react";
2
- import { StyleSheet, TextAncestorContext, createBoxShadowValue } from "@tamagui/react-native-web-internals";
3
- import { ImageLoader, getAssetByID } from "@tamagui/react-native-web-internals";
2
+ import { ImageLoader, StyleSheet, TextAncestorContext, createBoxShadowValue, getAssetByID } from "@tamagui/react-native-web-internals";
4
3
  import { createElement } from "../createElement/index.mjs";
5
4
  import { PixelRatio } from "../PixelRatio/index.mjs";
6
5
  import { View } from "../View/index.mjs";
7
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
+
8
8
  const ERRORED = "ERRORED";
9
9
  const LOADED = "LOADED";
10
10
  const LOADING = "LOADING";
@@ -12,307 +12,283 @@ const IDLE = "IDLE";
12
12
  let _filterId = 0;
13
13
  const svgDataUriPattern = /^(data:image\/svg\+xml;utf8,)(.*)/;
14
14
  function createTintColorSVG(tintColor, id) {
15
- return tintColor && id != null ? /* @__PURE__ */jsx("svg", {
16
- style: {
17
- position: "absolute",
18
- height: 0,
19
- visibility: "hidden",
20
- width: 0
21
- },
22
- children: /* @__PURE__ */jsx("defs", {
23
- children: /* @__PURE__ */jsxs("filter", {
24
- id: `tint-${id}`,
25
- suppressHydrationWarning: true,
26
- children: [/* @__PURE__ */jsx("feFlood", {
27
- floodColor: `${tintColor}`
28
- }, tintColor), /* @__PURE__ */jsx("feComposite", {
29
- in2: "SourceAlpha",
30
- operator: "atop"
31
- })]
32
- })
33
- })
34
- }) : null;
15
+ return tintColor && id != null ? /* @__PURE__ */ jsx("svg", {
16
+ style: {
17
+ position: "absolute",
18
+ height: 0,
19
+ visibility: "hidden",
20
+ width: 0
21
+ },
22
+ children: /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("filter", {
23
+ id: `tint-${id}`,
24
+ suppressHydrationWarning: true,
25
+ children: [/* @__PURE__ */ jsx("feFlood", { floodColor: `${tintColor}` }, tintColor), /* @__PURE__ */ jsx("feComposite", {
26
+ in2: "SourceAlpha",
27
+ operator: "atop"
28
+ })]
29
+ }) })
30
+ }) : null;
35
31
  }
36
32
  function getFlatStyle(style, blurRadius, filterId) {
37
- const flatStyle = StyleSheet.flatten(style);
38
- const {
39
- filter,
40
- resizeMode,
41
- shadowOffset,
42
- tintColor
43
- } = flatStyle;
44
- const filters = [];
45
- let _filter = null;
46
- if (filter) {
47
- filters.push(filter);
48
- }
49
- if (blurRadius) {
50
- filters.push(`blur(${blurRadius}px)`);
51
- }
52
- if (shadowOffset) {
53
- const shadowString = createBoxShadowValue(flatStyle);
54
- if (shadowString) {
55
- filters.push(`drop-shadow(${shadowString})`);
56
- }
57
- }
58
- if (tintColor && filterId != null) {
59
- filters.push(`url(#tint-${filterId})`);
60
- }
61
- if (filters.length > 0) {
62
- _filter = filters.join(" ");
63
- }
64
- delete flatStyle.blurRadius;
65
- delete flatStyle.shadowColor;
66
- delete flatStyle.shadowOpacity;
67
- delete flatStyle.shadowOffset;
68
- delete flatStyle.shadowRadius;
69
- delete flatStyle.tintColor;
70
- delete flatStyle.overlayColor;
71
- delete flatStyle.resizeMode;
72
- return [flatStyle, resizeMode, _filter, tintColor];
33
+ const flatStyle = StyleSheet.flatten(style);
34
+ const { filter, resizeMode, shadowOffset, tintColor } = flatStyle;
35
+ const filters = [];
36
+ let _filter = null;
37
+ if (filter) {
38
+ filters.push(filter);
39
+ }
40
+ if (blurRadius) {
41
+ filters.push(`blur(${blurRadius}px)`);
42
+ }
43
+ if (shadowOffset) {
44
+ const shadowString = createBoxShadowValue(flatStyle);
45
+ if (shadowString) {
46
+ filters.push(`drop-shadow(${shadowString})`);
47
+ }
48
+ }
49
+ if (tintColor && filterId != null) {
50
+ filters.push(`url(#tint-${filterId})`);
51
+ }
52
+ if (filters.length > 0) {
53
+ _filter = filters.join(" ");
54
+ }
55
+ delete flatStyle.blurRadius;
56
+ delete flatStyle.shadowColor;
57
+ delete flatStyle.shadowOpacity;
58
+ delete flatStyle.shadowOffset;
59
+ delete flatStyle.shadowRadius;
60
+ delete flatStyle.tintColor;
61
+ delete flatStyle.overlayColor;
62
+ delete flatStyle.resizeMode;
63
+ return [
64
+ flatStyle,
65
+ resizeMode,
66
+ _filter,
67
+ tintColor
68
+ ];
73
69
  }
74
70
  function resolveAssetDimensions(source) {
75
- if (typeof source === "number") {
76
- const {
77
- height,
78
- width
79
- } = getAssetByID(source);
80
- return {
81
- height,
82
- width
83
- };
84
- } else if (source != null && !Array.isArray(source) && typeof source === "object") {
85
- const {
86
- height,
87
- width
88
- } = source;
89
- return {
90
- height,
91
- width
92
- };
93
- }
71
+ if (typeof source === "number") {
72
+ const { height, width } = getAssetByID(source);
73
+ return {
74
+ height,
75
+ width
76
+ };
77
+ } else if (source != null && !Array.isArray(source) && typeof source === "object") {
78
+ const { height, width } = source;
79
+ return {
80
+ height,
81
+ width
82
+ };
83
+ }
94
84
  }
95
85
  function resolveAssetUri(source) {
96
- let uri = null;
97
- if (typeof source === "number") {
98
- const asset = getAssetByID(source);
99
- let scale = asset.scales[0];
100
- if (asset.scales.length > 1) {
101
- const preferredScale = PixelRatio.get();
102
- scale = asset.scales.reduce((prev, curr) => Math.abs(curr - preferredScale) < Math.abs(prev - preferredScale) ? curr : prev);
103
- }
104
- const scaleSuffix = scale !== 1 ? `@${scale}x` : "";
105
- uri = asset ? `${asset.httpServerLocation}/${asset.name}${scaleSuffix}.${asset.type}` : "";
106
- } else if (typeof source === "string") {
107
- uri = source;
108
- } else if (source && typeof source.uri === "string") {
109
- uri = source.uri;
110
- }
111
- if (uri) {
112
- const match = uri.match(svgDataUriPattern);
113
- if (match) {
114
- const [, prefix, svg] = match;
115
- const encodedSvg = encodeURIComponent(svg);
116
- return `${prefix}${encodedSvg}`;
117
- }
118
- }
119
- return uri;
86
+ let uri = null;
87
+ if (typeof source === "number") {
88
+ const asset = getAssetByID(source);
89
+ let scale = asset.scales[0];
90
+ if (asset.scales.length > 1) {
91
+ const preferredScale = PixelRatio.get();
92
+ scale = asset.scales.reduce((prev, curr) => Math.abs(curr - preferredScale) < Math.abs(prev - preferredScale) ? curr : prev);
93
+ }
94
+ const scaleSuffix = scale !== 1 ? `@${scale}x` : "";
95
+ uri = asset ? `${asset.httpServerLocation}/${asset.name}${scaleSuffix}.${asset.type}` : "";
96
+ } else if (typeof source === "string") {
97
+ uri = source;
98
+ } else if (source && typeof source.uri === "string") {
99
+ uri = source.uri;
100
+ }
101
+ if (uri) {
102
+ const match = uri.match(svgDataUriPattern);
103
+ if (match) {
104
+ const [, prefix, svg] = match;
105
+ const encodedSvg = encodeURIComponent(svg);
106
+ return `${prefix}${encodedSvg}`;
107
+ }
108
+ }
109
+ return uri;
120
110
  }
121
111
  const Image = React.forwardRef((props, ref) => {
122
- const {
123
- accessibilityLabel,
124
- blurRadius,
125
- defaultSource,
126
- draggable,
127
- onError,
128
- onLayout,
129
- onLoad,
130
- onLoadEnd,
131
- onLoadStart,
132
- pointerEvents,
133
- source,
134
- style,
135
- ...rest
136
- } = props;
137
- if (process.env.NODE_ENV !== "production") {
138
- if (props.children) {
139
- throw new Error("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.");
140
- }
141
- }
142
- const [state, updateState] = React.useState(() => {
143
- const uri2 = resolveAssetUri(source);
144
- if (uri2 != null) {
145
- const isLoaded = ImageLoader.has(uri2);
146
- if (isLoaded) {
147
- return LOADED;
148
- }
149
- }
150
- return IDLE;
151
- });
152
- const [layout, updateLayout] = React.useState({});
153
- const hasTextAncestor = React.useContext(TextAncestorContext);
154
- const hiddenImageRef = React.useRef(null);
155
- const filterRef = React.useRef(_filterId++);
156
- const requestRef = React.useRef(null);
157
- const shouldDisplaySource = state === LOADED || state === LOADING && defaultSource == null;
158
- const [flatStyle, _resizeMode, filter, tintColor] = getFlatStyle({}, blurRadius, filterRef.current);
159
- const resizeMode = props.resizeMode || _resizeMode || "cover";
160
- const selectedSource = shouldDisplaySource ? source : defaultSource;
161
- const displayImageUri = resolveAssetUri(selectedSource);
162
- const imageSizeStyle = resolveAssetDimensions(selectedSource);
163
- const backgroundImage = displayImageUri ? `url("${displayImageUri}")` : null;
164
- const backgroundSize = getBackgroundSize();
165
- const hiddenImage = displayImageUri ? createElement("img", {
166
- alt: accessibilityLabel || "",
167
- style: styles.accessibilityImage$raw,
168
- draggable: draggable || false,
169
- ref: hiddenImageRef,
170
- src: displayImageUri
171
- }) : null;
172
- function getBackgroundSize() {
173
- if (hiddenImageRef.current != null && (resizeMode === "center" || resizeMode === "repeat")) {
174
- const {
175
- naturalHeight,
176
- naturalWidth
177
- } = hiddenImageRef.current;
178
- const {
179
- height,
180
- width
181
- } = layout;
182
- if (naturalHeight && naturalWidth && height && width) {
183
- const scaleFactor = Math.min(1, width / naturalWidth, height / naturalHeight);
184
- const x = Math.ceil(scaleFactor * naturalWidth);
185
- const y = Math.ceil(scaleFactor * naturalHeight);
186
- return `${x}px ${y}px`;
187
- }
188
- }
189
- }
190
- function handleLayout(e) {
191
- if (resizeMode === "center" || resizeMode === "repeat" || onLayout) {
192
- const {
193
- layout: layout2
194
- } = e.nativeEvent;
195
- onLayout && onLayout(e);
196
- updateLayout(layout2);
197
- }
198
- }
199
- const uri = resolveAssetUri(source);
200
- React.useEffect(() => {
201
- abortPendingRequest();
202
- if (uri != null) {
203
- updateState(LOADING);
204
- if (onLoadStart) {
205
- onLoadStart();
206
- }
207
- requestRef.current = ImageLoader.load(uri, function load(e) {
208
- updateState(LOADED);
209
- if (onLoad) {
210
- onLoad(e);
211
- }
212
- if (onLoadEnd) {
213
- onLoadEnd();
214
- }
215
- }, function error() {
216
- updateState(ERRORED);
217
- if (onError) {
218
- onError({
219
- nativeEvent: {
220
- error: `Failed to load resource ${uri} (404)`
221
- }
222
- });
223
- }
224
- if (onLoadEnd) {
225
- onLoadEnd();
226
- }
227
- });
228
- }
229
- function abortPendingRequest() {
230
- if (requestRef.current != null) {
231
- ImageLoader.abort(requestRef.current);
232
- requestRef.current = null;
233
- }
234
- }
235
- return abortPendingRequest;
236
- }, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]);
237
- return /* @__PURE__ */jsxs(View, {
238
- ...rest,
239
- "aria-label": accessibilityLabel,
240
- onLayout: handleLayout,
241
- pointerEvents,
242
- ref,
243
- style: [style, styles.root, hasTextAncestor && styles.inline, imageSizeStyle, flatStyle],
244
- children: [/* @__PURE__ */jsx(View, {
245
- style: [...[].concat(styles.image), resizeModeStyles[resizeMode], {
246
- backgroundImage,
247
- filter
248
- }, backgroundSize != null && {
249
- backgroundSize
250
- }],
251
- suppressHydrationWarning: true
252
- }), hiddenImage, createTintColorSVG(tintColor, filterRef.current)]
253
- });
112
+ const { accessibilityLabel, blurRadius, defaultSource, draggable, onError, onLayout, onLoad, onLoadEnd, onLoadStart, pointerEvents, source, style, ...rest } = props;
113
+ if (process.env.NODE_ENV !== "production") {
114
+ if (props.children) {
115
+ throw new Error("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.");
116
+ }
117
+ }
118
+ const [state, updateState] = React.useState(() => {
119
+ const uri2 = resolveAssetUri(source);
120
+ if (uri2 != null) {
121
+ const isLoaded = ImageLoader.has(uri2);
122
+ if (isLoaded) {
123
+ return LOADED;
124
+ }
125
+ }
126
+ return IDLE;
127
+ });
128
+ const [layout, updateLayout] = React.useState({});
129
+ const hasTextAncestor = React.useContext(TextAncestorContext);
130
+ const hiddenImageRef = React.useRef(null);
131
+ const filterRef = React.useRef(_filterId++);
132
+ const requestRef = React.useRef(null);
133
+ const shouldDisplaySource = state === LOADED || state === LOADING && defaultSource == null;
134
+ const [flatStyle, _resizeMode, filter, tintColor] = getFlatStyle({}, blurRadius, filterRef.current);
135
+ const resizeMode = props.resizeMode || _resizeMode || "cover";
136
+ const selectedSource = shouldDisplaySource ? source : defaultSource;
137
+ const displayImageUri = resolveAssetUri(selectedSource);
138
+ const imageSizeStyle = resolveAssetDimensions(selectedSource);
139
+ const backgroundImage = displayImageUri ? `url("${displayImageUri}")` : null;
140
+ const backgroundSize = getBackgroundSize();
141
+ const hiddenImage = displayImageUri ? createElement("img", {
142
+ alt: accessibilityLabel || "",
143
+ style: styles.accessibilityImage$raw,
144
+ draggable: draggable || false,
145
+ ref: hiddenImageRef,
146
+ src: displayImageUri
147
+ }) : null;
148
+ function getBackgroundSize() {
149
+ if (hiddenImageRef.current != null && (resizeMode === "center" || resizeMode === "repeat")) {
150
+ const { naturalHeight, naturalWidth } = hiddenImageRef.current;
151
+ const { height, width } = layout;
152
+ if (naturalHeight && naturalWidth && height && width) {
153
+ const scaleFactor = Math.min(1, width / naturalWidth, height / naturalHeight);
154
+ const x = Math.ceil(scaleFactor * naturalWidth);
155
+ const y = Math.ceil(scaleFactor * naturalHeight);
156
+ return `${x}px ${y}px`;
157
+ }
158
+ }
159
+ }
160
+ function handleLayout(e) {
161
+ if (resizeMode === "center" || resizeMode === "repeat" || onLayout) {
162
+ const { layout: layout2 } = e.nativeEvent;
163
+ onLayout && onLayout(e);
164
+ updateLayout(layout2);
165
+ }
166
+ }
167
+ const uri = resolveAssetUri(source);
168
+ React.useEffect(() => {
169
+ abortPendingRequest();
170
+ if (uri != null) {
171
+ updateState(LOADING);
172
+ if (onLoadStart) {
173
+ onLoadStart();
174
+ }
175
+ requestRef.current = ImageLoader.load(uri, function load(e) {
176
+ updateState(LOADED);
177
+ if (onLoad) {
178
+ onLoad(e);
179
+ }
180
+ if (onLoadEnd) {
181
+ onLoadEnd();
182
+ }
183
+ }, function error() {
184
+ updateState(ERRORED);
185
+ if (onError) {
186
+ onError({ nativeEvent: { error: `Failed to load resource ${uri} (404)` } });
187
+ }
188
+ if (onLoadEnd) {
189
+ onLoadEnd();
190
+ }
191
+ });
192
+ }
193
+ function abortPendingRequest() {
194
+ if (requestRef.current != null) {
195
+ ImageLoader.abort(requestRef.current);
196
+ requestRef.current = null;
197
+ }
198
+ }
199
+ return abortPendingRequest;
200
+ }, [
201
+ uri,
202
+ requestRef,
203
+ updateState,
204
+ onError,
205
+ onLoad,
206
+ onLoadEnd,
207
+ onLoadStart
208
+ ]);
209
+ return /* @__PURE__ */ jsxs(View, {
210
+ ...rest,
211
+ "aria-label": accessibilityLabel,
212
+ onLayout: handleLayout,
213
+ pointerEvents,
214
+ ref,
215
+ style: [
216
+ style,
217
+ styles.root,
218
+ hasTextAncestor && styles.inline,
219
+ imageSizeStyle,
220
+ flatStyle
221
+ ],
222
+ children: [
223
+ /* @__PURE__ */ jsx(View, {
224
+ style: [
225
+ ...[].concat(styles.image),
226
+ resizeModeStyles[resizeMode],
227
+ {
228
+ backgroundImage,
229
+ filter
230
+ },
231
+ backgroundSize != null && { backgroundSize }
232
+ ],
233
+ suppressHydrationWarning: true
234
+ }),
235
+ hiddenImage,
236
+ createTintColorSVG(tintColor, filterRef.current)
237
+ ]
238
+ });
254
239
  });
255
240
  Image.displayName = "Image";
256
241
  const ImageWithStatics = Image;
257
- ImageWithStatics.getSize = function (uri, success, failure) {
258
- ImageLoader.getSize(uri, success, failure);
242
+ ImageWithStatics.getSize = function(uri, success, failure) {
243
+ ImageLoader.getSize(uri, success, failure);
259
244
  };
260
- ImageWithStatics.prefetch = function (uri) {
261
- return ImageLoader.prefetch(uri);
245
+ ImageWithStatics.prefetch = function(uri) {
246
+ return ImageLoader.prefetch(uri);
262
247
  };
263
- ImageWithStatics.queryCache = function (uris) {
264
- return ImageLoader.queryCache(uris);
248
+ ImageWithStatics.queryCache = function(uris) {
249
+ return ImageLoader.queryCache(uris);
265
250
  };
266
251
  const styles = StyleSheet.create({
267
- root: {
268
- flexBasis: "auto",
269
- overflow: "hidden",
270
- zIndex: 0
271
- },
272
- inline: {
273
- display: "inline-flex"
274
- },
275
- image: {
276
- ...StyleSheet.absoluteFillObject,
277
- backgroundColor: "transparent",
278
- backgroundPosition: "center",
279
- backgroundRepeat: "no-repeat",
280
- backgroundSize: "cover",
281
- height: "100%",
282
- width: "100%",
283
- zIndex: -1
284
- },
285
- accessibilityImage$raw: {
286
- ...StyleSheet.absoluteFillObject,
287
- height: "100%",
288
- opacity: 0,
289
- width: "100%",
290
- zIndex: -1
291
- }
252
+ root: {
253
+ flexBasis: "auto",
254
+ overflow: "hidden",
255
+ zIndex: 0
256
+ },
257
+ inline: { display: "inline-flex" },
258
+ image: {
259
+ ...StyleSheet.absoluteFillObject,
260
+ backgroundColor: "transparent",
261
+ backgroundPosition: "center",
262
+ backgroundRepeat: "no-repeat",
263
+ backgroundSize: "cover",
264
+ height: "100%",
265
+ width: "100%",
266
+ zIndex: -1
267
+ },
268
+ accessibilityImage$raw: {
269
+ ...StyleSheet.absoluteFillObject,
270
+ height: "100%",
271
+ opacity: 0,
272
+ width: "100%",
273
+ zIndex: -1
274
+ }
292
275
  });
293
276
  const resizeModeStyles = StyleSheet.create({
294
- center: {
295
- backgroundSize: "auto"
296
- },
297
- contain: {
298
- backgroundSize: "contain"
299
- },
300
- cover: {
301
- backgroundSize: "cover"
302
- },
303
- none: {
304
- backgroundPosition: "0",
305
- backgroundSize: "auto"
306
- },
307
- repeat: {
308
- backgroundPosition: "0",
309
- backgroundRepeat: "repeat",
310
- backgroundSize: "auto"
311
- },
312
- stretch: {
313
- backgroundSize: "100% 100%"
314
- }
277
+ center: { backgroundSize: "auto" },
278
+ contain: { backgroundSize: "contain" },
279
+ cover: { backgroundSize: "cover" },
280
+ none: {
281
+ backgroundPosition: "0",
282
+ backgroundSize: "auto"
283
+ },
284
+ repeat: {
285
+ backgroundPosition: "0",
286
+ backgroundRepeat: "repeat",
287
+ backgroundSize: "auto"
288
+ },
289
+ stretch: { backgroundSize: "100% 100%" }
315
290
  });
316
291
  var Image_default = ImageWithStatics;
292
+
317
293
  export { ImageWithStatics as Image, Image_default as default };
318
294
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","StyleSheet","TextAncestorContext","createBoxShadowValue","ImageLoader","getAssetByID","createElement","PixelRatio","View","jsx","jsxs","ERRORED","LOADED","LOADING","IDLE","_filterId","svgDataUriPattern","createTintColorSVG","tintColor","id","style","position","height","visibility","width","children","suppressHydrationWarning","floodColor","in2","operator","getFlatStyle","blurRadius","filterId","flatStyle","flatten","filter","resizeMode","shadowOffset","filters","_filter","push","shadowString","length","join","shadowColor","shadowOpacity","shadowRadius","overlayColor","resolveAssetDimensions","source","Array","isArray","resolveAssetUri","uri","asset","scale","scales","preferredScale","get","reduce","prev","curr","Math","abs","scaleSuffix","httpServerLocation","name","type","match","prefix","svg","encodedSvg","encodeURIComponent","Image","forwardRef","props","ref","accessibilityLabel","defaultSource","draggable","onError","onLayout","onLoad","onLoadEnd","onLoadStart","pointerEvents","rest","process","env","NODE_ENV","Error","state","updateState","useState","isLoaded","has","layout","updateLayout","hasTextAncestor","useContext","hiddenImageRef","useRef","filterRef","requestRef","shouldDisplaySource","_resizeMode","current","selectedSource","displayImageUri","imageSizeStyle","backgroundImage","backgroundSize","getBackgroundSize","hiddenImage","alt","styles","accessibilityImage$raw","src","naturalHeight","naturalWidth","scaleFactor","min","x","ceil","y","handleLayout","e","layout2","nativeEvent","useEffect","abortPendingRequest","load","error","abort","root","inline","concat","image","resizeModeStyles","displayName","ImageWithStatics","getSize","success","failure","prefetch","queryCache","uris","create","flexBasis","overflow","zIndex","display","absoluteFillObject","backgroundColor","backgroundPosition","backgroundRepeat","opacity","center","contain","cover","none","repeat","stretch","Image_default"],"sources":["../../../src/Image/index.tsx"],"sourcesContent":[null],"mappings":"AAUA,YAAYA,KAAA,MAAW;AACvB,SACEC,UAAA,EACAC,mBAAA,EACAC,oBAAA,QACK;AACP,SAASC,WAAA,EAAaC,YAAA,QAAoB;AAE1C,SAASC,aAAA,QAAqB;AAC9B,SAASC,UAAA,QAAkB;AAC3B,SAASC,IAAA,QAAY;AAyBb,SACEC,GAAA,EADFC,IAAA;AApBR,MAAMC,OAAA,GAAU;AAChB,MAAMC,MAAA,GAAS;AACf,MAAMC,OAAA,GAAU;AAChB,MAAMC,IAAA,GAAO;AAEb,IAAIC,SAAA,GAAY;AAChB,MAAMC,iBAAA,GAAoB;AAE1B,SAASC,mBAAmBC,SAAA,E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Z,gBAAA,GAAmBzI,UAAA,CAAWkJ,MAAA,CAAO;EACzCU,MAAA,EAAQ;IACN9C,cAAA,EAAgB;EAClB;EACA+C,OAAA,EAAS;IACP/C,cAAA,EAAgB;EAClB;EACAgD,KAAA,EAAO;IACLhD,cAAA,EAAgB;EAClB;EACAiD,IAAA,EAAM;IACJN,kBAAA,EAAoB;IACpB3C,cAAA,EAAgB;EAClB;EACAkD,MAAA,EAAQ;IACNP,kBAAA,EAAoB;IACpBC,gBAAA,EAAkB;IAClB5C,cAAA,EAAgB;EAClB;EACAmD,OAAA,EAAS;IACPnD,cAAA,EAAgB;EAClB;AACF,CAAC;AAGD,IAAOoD,aAAA,GAAQvB,gBAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/Image/index.js"],"sourcesContent":["import * as React from \"react\";\nimport {\n StyleSheet,\n TextAncestorContext,\n createBoxShadowValue\n} from \"@tamagui/react-native-web-internals\";\nimport { ImageLoader, getAssetByID } from \"@tamagui/react-native-web-internals\";\nimport { createElement } from \"../createElement/index\";\nimport { PixelRatio } from \"../PixelRatio/index\";\nimport { View } from \"../View/index\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nconst ERRORED = \"ERRORED\";\nconst LOADED = \"LOADED\";\nconst LOADING = \"LOADING\";\nconst IDLE = \"IDLE\";\nlet _filterId = 0;\nconst svgDataUriPattern = /^(data:image\\/svg\\+xml;utf8,)(.*)/;\nfunction createTintColorSVG(tintColor, id) {\n return tintColor && id != null ? /* @__PURE__ */ jsx(\n \"svg\",\n {\n style: {\n position: \"absolute\",\n height: 0,\n visibility: \"hidden\",\n width: 0\n },\n children: /* @__PURE__ */ jsx(\"defs\", { children: /* @__PURE__ */ jsxs(\"filter\", { id: `tint-${id}`, suppressHydrationWarning: true, children: [\n /* @__PURE__ */ jsx(\"feFlood\", { floodColor: `${tintColor}` }, tintColor),\n /* @__PURE__ */ jsx(\"feComposite\", { in2: \"SourceAlpha\", operator: \"atop\" })\n ] }) })\n }\n ) : null;\n}\nfunction getFlatStyle(style, blurRadius, filterId) {\n const flatStyle = StyleSheet.flatten(style);\n const { filter, resizeMode, shadowOffset, tintColor } = flatStyle;\n const filters = [];\n let _filter = null;\n if (filter) {\n filters.push(filter);\n }\n if (blurRadius) {\n filters.push(`blur(${blurRadius}px)`);\n }\n if (shadowOffset) {\n const shadowString = createBoxShadowValue(flatStyle);\n if (shadowString) {\n filters.push(`drop-shadow(${shadowString})`);\n }\n }\n if (tintColor && filterId != null) {\n filters.push(`url(#tint-${filterId})`);\n }\n if (filters.length > 0) {\n _filter = filters.join(\" \");\n }\n delete flatStyle.blurRadius;\n delete flatStyle.shadowColor;\n delete flatStyle.shadowOpacity;\n delete flatStyle.shadowOffset;\n delete flatStyle.shadowRadius;\n delete flatStyle.tintColor;\n delete flatStyle.overlayColor;\n delete flatStyle.resizeMode;\n return [flatStyle, resizeMode, _filter, tintColor];\n}\nfunction resolveAssetDimensions(source) {\n if (typeof source === \"number\") {\n const { height, width } = getAssetByID(source);\n return { height, width };\n } else if (source != null && !Array.isArray(source) && typeof source === \"object\") {\n const { height, width } = source;\n return { height, width };\n }\n}\nfunction resolveAssetUri(source) {\n let uri = null;\n if (typeof source === \"number\") {\n const asset = getAssetByID(source);\n let scale = asset.scales[0];\n if (asset.scales.length > 1) {\n const preferredScale = PixelRatio.get();\n scale = asset.scales.reduce(\n (prev, curr) => Math.abs(curr - preferredScale) < Math.abs(prev - preferredScale) ? curr : prev\n );\n }\n const scaleSuffix = scale !== 1 ? `@${scale}x` : \"\";\n uri = asset ? `${asset.httpServerLocation}/${asset.name}${scaleSuffix}.${asset.type}` : \"\";\n } else if (typeof source === \"string\") {\n uri = source;\n } else if (source && typeof source.uri === \"string\") {\n uri = source.uri;\n }\n if (uri) {\n const match = uri.match(svgDataUriPattern);\n if (match) {\n const [, prefix, svg] = match;\n const encodedSvg = encodeURIComponent(svg);\n return `${prefix}${encodedSvg}`;\n }\n }\n return uri;\n}\nconst Image = React.forwardRef((props, ref) => {\n const {\n accessibilityLabel,\n blurRadius,\n defaultSource,\n draggable,\n onError,\n onLayout,\n onLoad,\n onLoadEnd,\n onLoadStart,\n pointerEvents,\n source,\n style,\n ...rest\n } = props;\n if (process.env.NODE_ENV !== \"production\") {\n if (props.children) {\n throw new Error(\n \"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.\"\n );\n }\n }\n const [state, updateState] = React.useState(() => {\n const uri2 = resolveAssetUri(source);\n if (uri2 != null) {\n const isLoaded = ImageLoader.has(uri2);\n if (isLoaded) {\n return LOADED;\n }\n }\n return IDLE;\n });\n const [layout, updateLayout] = React.useState({});\n const hasTextAncestor = React.useContext(TextAncestorContext);\n const hiddenImageRef = React.useRef(null);\n const filterRef = React.useRef(_filterId++);\n const requestRef = React.useRef(null);\n const shouldDisplaySource = state === LOADED || state === LOADING && defaultSource == null;\n const [flatStyle, _resizeMode, filter, tintColor] = getFlatStyle(\n {},\n blurRadius,\n filterRef.current\n );\n const resizeMode = props.resizeMode || _resizeMode || \"cover\";\n const selectedSource = shouldDisplaySource ? source : defaultSource;\n const displayImageUri = resolveAssetUri(selectedSource);\n const imageSizeStyle = resolveAssetDimensions(selectedSource);\n const backgroundImage = displayImageUri ? `url(\"${displayImageUri}\")` : null;\n const backgroundSize = getBackgroundSize();\n const hiddenImage = displayImageUri ? createElement(\"img\", {\n alt: accessibilityLabel || \"\",\n style: styles.accessibilityImage$raw,\n draggable: draggable || false,\n ref: hiddenImageRef,\n src: displayImageUri\n }) : null;\n function getBackgroundSize() {\n if (hiddenImageRef.current != null && (resizeMode === \"center\" || resizeMode === \"repeat\")) {\n const { naturalHeight, naturalWidth } = hiddenImageRef.current;\n const { height, width } = layout;\n if (naturalHeight && naturalWidth && height && width) {\n const scaleFactor = Math.min(1, width / naturalWidth, height / naturalHeight);\n const x = Math.ceil(scaleFactor * naturalWidth);\n const y = Math.ceil(scaleFactor * naturalHeight);\n return `${x}px ${y}px`;\n }\n }\n }\n function handleLayout(e) {\n if (resizeMode === \"center\" || resizeMode === \"repeat\" || onLayout) {\n const { layout: layout2 } = e.nativeEvent;\n onLayout && onLayout(e);\n updateLayout(layout2);\n }\n }\n const uri = resolveAssetUri(source);\n React.useEffect(() => {\n abortPendingRequest();\n if (uri != null) {\n updateState(LOADING);\n if (onLoadStart) {\n onLoadStart();\n }\n requestRef.current = ImageLoader.load(\n uri,\n function load(e) {\n updateState(LOADED);\n if (onLoad) {\n onLoad(e);\n }\n if (onLoadEnd) {\n onLoadEnd();\n }\n },\n function error() {\n updateState(ERRORED);\n if (onError) {\n onError({\n nativeEvent: {\n error: `Failed to load resource ${uri} (404)`\n }\n });\n }\n if (onLoadEnd) {\n onLoadEnd();\n }\n }\n );\n }\n function abortPendingRequest() {\n if (requestRef.current != null) {\n ImageLoader.abort(requestRef.current);\n requestRef.current = null;\n }\n }\n return abortPendingRequest;\n }, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]);\n return /* @__PURE__ */ jsxs(\n View,\n {\n ...rest,\n \"aria-label\": accessibilityLabel,\n onLayout: handleLayout,\n pointerEvents,\n ref,\n style: [\n style,\n styles.root,\n hasTextAncestor && styles.inline,\n imageSizeStyle,\n flatStyle\n ],\n children: [\n /* @__PURE__ */ jsx(\n View,\n {\n style: [\n ...[].concat(styles.image),\n resizeModeStyles[resizeMode],\n { backgroundImage, filter },\n backgroundSize != null && { backgroundSize }\n ],\n suppressHydrationWarning: true\n }\n ),\n hiddenImage,\n createTintColorSVG(tintColor, filterRef.current)\n ]\n }\n );\n});\nImage.displayName = \"Image\";\nconst ImageWithStatics = Image;\nImageWithStatics.getSize = function(uri, success, failure) {\n ImageLoader.getSize(uri, success, failure);\n};\nImageWithStatics.prefetch = function(uri) {\n return ImageLoader.prefetch(uri);\n};\nImageWithStatics.queryCache = function(uris) {\n return ImageLoader.queryCache(uris);\n};\nconst styles = StyleSheet.create({\n root: {\n flexBasis: \"auto\",\n overflow: \"hidden\",\n zIndex: 0\n },\n inline: {\n display: \"inline-flex\"\n },\n image: {\n ...StyleSheet.absoluteFillObject,\n backgroundColor: \"transparent\",\n backgroundPosition: \"center\",\n backgroundRepeat: \"no-repeat\",\n backgroundSize: \"cover\",\n height: \"100%\",\n width: \"100%\",\n zIndex: -1\n },\n accessibilityImage$raw: {\n ...StyleSheet.absoluteFillObject,\n height: \"100%\",\n opacity: 0,\n width: \"100%\",\n zIndex: -1\n }\n});\nconst resizeModeStyles = StyleSheet.create({\n center: {\n backgroundSize: \"auto\"\n },\n contain: {\n backgroundSize: \"contain\"\n },\n cover: {\n backgroundSize: \"cover\"\n },\n none: {\n backgroundPosition: \"0\",\n backgroundSize: \"auto\"\n },\n repeat: {\n backgroundPosition: \"0\",\n backgroundRepeat: \"repeat\",\n backgroundSize: \"auto\"\n },\n stretch: {\n backgroundSize: \"100% 100%\"\n }\n});\nvar Image_default = ImageWithStatics;\nexport {\n ImageWithStatics as Image,\n Image_default as default\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;;;;AAWA,MAAM,UAAU;AAChB,MAAM,SAAS;AACf,MAAM,UAAU;AAChB,MAAM,OAAO;AACb,IAAI,YAAY;AAChB,MAAM,oBAAoB;AAC1B,SAAS,mBAAmB,WAAW,IAAI;CACzC,OAAO,aAAa,MAAM,OAAuB,oBAC/C,OACA;EACE,OAAO;GACL,UAAU;GACV,QAAQ;GACR,YAAY;GACZ,OAAO;EACT;EACA,UAA0B,oBAAI,QAAQ,EAAE,UAA0B,qBAAK,UAAU;GAAE,IAAI,QAAQ;GAAM,0BAA0B;GAAM,UAAU,CAC7H,oBAAI,WAAW,EAAE,YAAY,GAAG,YAAY,GAAG,SAAS,GACxD,oBAAI,eAAe;IAAE,KAAK;IAAe,UAAU;GAAO,CAAC,CAC7E;EAAE,CAAC,EAAE,CAAC;CACR,CACF,IAAI;AACN;AACA,SAAS,aAAa,OAAO,YAAY,UAAU;CACjD,MAAM,YAAY,WAAW,QAAQ,KAAK;CAC1C,M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