@tamagui/react-native-web-lite 1.116.1 → 1.116.3
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.
- package/dist/cjs/AccessibilityInfo/index.js +96 -0
- package/dist/cjs/ActivityIndicator/__tests__/index-test.js +116 -0
- package/dist/cjs/ActivityIndicator/index.js +108 -0
- package/dist/cjs/Alert/index.js +25 -0
- package/dist/cjs/AppRegistry/AppContainer.js +41 -0
- package/dist/cjs/AppRegistry/__tests__/index-test.js +77 -0
- package/dist/cjs/AppRegistry/__tests__/index-test.node.js +131 -0
- package/dist/cjs/AppRegistry/index.js +98 -0
- package/dist/cjs/AppRegistry/renderApplication.js +51 -0
- package/dist/cjs/AppState/__tests__/index-test.js +33 -0
- package/dist/cjs/AppState/index.js +71 -0
- package/dist/cjs/Appearance/index.js +41 -0
- package/dist/cjs/BackHandler/index.js +32 -0
- package/dist/cjs/Batchinator/index.cjs +68 -0
- package/dist/cjs/Batchinator/index.js +57 -0
- package/dist/cjs/Batchinator/index.js.map +6 -0
- package/dist/cjs/Batchinator/index.native.js +92 -0
- package/dist/cjs/Batchinator/index.native.js.map +6 -0
- package/dist/cjs/Clipboard/index.js +47 -0
- package/dist/cjs/DeviceEmitter.js +29 -0
- package/dist/cjs/DeviceInfo/index.js +62 -0
- package/dist/cjs/Dimensions/__tests__/index-test.js +51 -0
- package/dist/cjs/Dimensions/index.js +74 -0
- package/dist/cjs/FlatList.cjs +196 -0
- package/dist/cjs/FlatList.js +193 -0
- package/dist/cjs/FlatList.js.map +6 -0
- package/dist/cjs/FlatList.native.js +256 -0
- package/dist/cjs/FlatList.native.js.map +6 -0
- package/dist/cjs/I18nManager/index.js +30 -0
- package/dist/cjs/Image/index.js +253 -0
- package/dist/cjs/Image/types.js +14 -0
- package/dist/cjs/ImageBackground/__tests__/index-test.js +48 -0
- package/dist/cjs/ImageBackground/index.js +62 -0
- package/dist/cjs/InteractionManager/TaskQueue.cjs +88 -0
- package/dist/cjs/InteractionManager/TaskQueue.js +76 -0
- package/dist/cjs/InteractionManager/TaskQueue.js.map +6 -0
- package/dist/cjs/InteractionManager/TaskQueue.native.js +134 -0
- package/dist/cjs/InteractionManager/TaskQueue.native.js.map +6 -0
- package/dist/cjs/InteractionManager/index.cjs +114 -0
- package/dist/cjs/InteractionManager/index.js +95 -0
- package/dist/cjs/InteractionManager/index.js.map +6 -0
- package/dist/cjs/InteractionManager/index.native.js +99 -0
- package/dist/cjs/InteractionManager/index.native.js.map +6 -0
- package/dist/cjs/Keyboard/index.js +35 -0
- package/dist/cjs/KeyboardAvoidingView/index.js +56 -0
- package/dist/cjs/Linking/__tests__/index-test.js +38 -0
- package/dist/cjs/Linking/index.js +86 -0
- package/dist/cjs/LogBox/index.js +31 -0
- package/dist/cjs/Modal/ModalAnimation.js +137 -0
- package/dist/cjs/Modal/ModalContent.js +75 -0
- package/dist/cjs/Modal/ModalFocusTrap.js +105 -0
- package/dist/cjs/Modal/ModalPortal.js +43 -0
- package/dist/cjs/Modal/index.js +92 -0
- package/dist/cjs/NativeModules/index.js +25 -0
- package/dist/cjs/PanResponder/index.js +29 -0
- package/dist/cjs/PixelRatio/index.js +60 -0
- package/dist/cjs/Pressable/index.js +140 -0
- package/dist/cjs/RefreshControl/index.js +48 -0
- package/dist/cjs/SafeAreaView/index.js +43 -0
- package/dist/cjs/ScrollView/ScrollViewBase.js +124 -0
- package/dist/cjs/ScrollView/index.js +374 -0
- package/dist/cjs/Share/index.js +56 -0
- package/dist/cjs/StatusBar/index.js +31 -0
- package/dist/cjs/Text/index.js +152 -0
- package/dist/cjs/Text/types.js +14 -0
- package/dist/cjs/TextInput/__tests__/index-test.js +422 -0
- package/dist/cjs/TextInput/index.js +260 -0
- package/dist/cjs/TextInput/types.js +14 -0
- package/dist/cjs/TouchableOpacity.js +123 -0
- package/dist/cjs/TouchableWithoutFeedback.js +90 -0
- package/dist/cjs/UnimplementedView.js +36 -0
- package/dist/cjs/Vibration/index.js +31 -0
- package/dist/cjs/View/index.js +101 -0
- package/dist/cjs/View/types.js +14 -0
- package/dist/cjs/createElement/__tests__/index-test.js +536 -0
- package/dist/cjs/createElement/index.js +37 -0
- package/dist/cjs/createReactDOMStyle.js +21 -0
- package/dist/cjs/findNodeHandle.js +29 -0
- package/dist/cjs/index.cjs +7 -7
- package/dist/cjs/index.js +110 -0
- package/dist/cjs/{index.cjs.map → index.js.map} +1 -1
- package/dist/cjs/index.native.js +6 -6
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/render/index.js +45 -0
- package/dist/cjs/styleTypes.js +14 -0
- package/dist/cjs/types.js +14 -0
- package/dist/cjs/useColorScheme/index.js +39 -0
- package/dist/cjs/useLocaleContext/index.js +21 -0
- package/dist/cjs/useWindowDimensions/index.js +41 -0
- package/dist/cjs/vendor/react-native/Animated/Animated.js +35 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.js +143 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.js +458 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.js +126 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.js +2 -0
- package/dist/cjs/vendor/react-native/Animated/Easing.js +189 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js +335 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.js +29 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.js +29 -0
- package/dist/cjs/vendor/react-native/Animated/SpringConfig.js +70 -0
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.js +64 -0
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.js +63 -0
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.js +146 -0
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.js +82 -0
- package/dist/cjs/vendor/react-native/Animated/bezier.js +72 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.js +29 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.js +38 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.js +29 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.js +29 -0
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js +42 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.js +57 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.js +197 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js +60 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.js +58 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.js +175 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.js +58 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.js +57 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.js +136 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.js +112 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.js +100 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.js +57 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.js +76 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.js +100 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.js +182 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.js +167 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.js +67 -0
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.js +89 -0
- package/dist/cjs/vendor/react-native/FeatureFlags.js +28 -0
- package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +138 -0
- package/dist/cjs/vendor/react-native/FillRateHelper/index.js +124 -0
- package/dist/cjs/vendor/react-native/FillRateHelper/index.js.map +6 -0
- package/dist/cjs/vendor/react-native/FillRateHelper/index.native.js +158 -0
- package/dist/cjs/vendor/react-native/FillRateHelper/index.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.js +29 -0
- package/dist/cjs/vendor/react-native/NativeEventEmitter/index.js +73 -0
- package/dist/cjs/vendor/react-native/PanResponder/index.js +272 -0
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.js +118 -0
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.js +2 -0
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.js +28 -0
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.js +15 -0
- package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +29 -0
- package/dist/cjs/vendor/react-native/Utilities/clamp.js +24 -0
- package/dist/cjs/vendor/react-native/Utilities/clamp.js.map +6 -0
- package/dist/cjs/vendor/react-native/Utilities/clamp.native.js +25 -0
- package/dist/cjs/vendor/react-native/Utilities/clamp.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.js +29 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +133 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper.js +144 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper.js.map +6 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper.native.js +199 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +106 -0
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.js +86 -0
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.native.js +95 -0
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +81 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.js +84 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.native.js +125 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +56 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.js +59 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.native.js +153 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +80 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.js +74 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js +163 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +164 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js +149 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js +245 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +84 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.js +72 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js +85 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +16 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.js +14 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js +15 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +1003 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/index.js +1021 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/index.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/index.native.js +1075 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/index.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +41 -0
- package/dist/cjs/vendor/react-native/deepDiffer/index.js +47 -0
- package/dist/cjs/vendor/react-native/deepDiffer/index.js.map +6 -0
- package/dist/cjs/vendor/react-native/deepDiffer/index.native.js +48 -0
- package/dist/cjs/vendor/react-native/deepDiffer/index.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/emitter/EventEmitter.js +30 -0
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.js +2 -0
- package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.js +55 -0
- package/dist/cjs/vendor/react-native/emitter/_EventEmitter.js +135 -0
- package/dist/cjs/vendor/react-native/emitter/_EventSubscription.js +37 -0
- package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.js +76 -0
- package/dist/cjs/vendor/react-native/infoLog/index.js +25 -0
- package/dist/cjs/vendor/react-native/useRefEffect.js +30 -0
- package/dist/cjs/without-animated.js +95 -0
- package/dist/esm/Batchinator/index.js +33 -0
- package/dist/esm/Batchinator/index.js.map +6 -0
- package/dist/esm/Batchinator/index.mjs +34 -0
- package/dist/esm/Batchinator/index.mjs.map +1 -0
- package/dist/esm/Batchinator/index.native.js +67 -0
- package/dist/esm/Batchinator/index.native.js.map +6 -0
- package/dist/esm/FlatList.js +176 -0
- package/dist/esm/FlatList.js.map +6 -0
- package/dist/esm/FlatList.mjs +162 -0
- package/dist/esm/FlatList.mjs.map +1 -0
- package/dist/esm/FlatList.native.js +238 -0
- package/dist/esm/FlatList.native.js.map +6 -0
- package/dist/esm/InteractionManager/TaskQueue.js +60 -0
- package/dist/esm/InteractionManager/TaskQueue.js.map +6 -0
- package/dist/esm/InteractionManager/TaskQueue.mjs +65 -0
- package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -0
- package/dist/esm/InteractionManager/TaskQueue.native.js +117 -0
- package/dist/esm/InteractionManager/TaskQueue.native.js.map +6 -0
- package/dist/esm/InteractionManager/index.js +73 -0
- package/dist/esm/InteractionManager/index.js.map +6 -0
- package/dist/esm/InteractionManager/index.mjs +80 -0
- package/dist/esm/InteractionManager/index.mjs.map +1 -0
- package/dist/esm/InteractionManager/index.native.js +77 -0
- package/dist/esm/InteractionManager/index.native.js.map +6 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/index.native.js +2 -2
- package/dist/esm/vendor/react-native/FillRateHelper/index.js +108 -0
- package/dist/esm/vendor/react-native/FillRateHelper/index.js.map +6 -0
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs +115 -0
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/FillRateHelper/index.native.js +141 -0
- package/dist/esm/vendor/react-native/FillRateHelper/index.native.js.map +6 -0
- package/dist/esm/vendor/react-native/Utilities/clamp.js +8 -0
- package/dist/esm/vendor/react-native/Utilities/clamp.js.map +6 -0
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs +6 -0
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/clamp.native.js +8 -0
- package/dist/esm/vendor/react-native/Utilities/clamp.native.js.map +6 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper.js +128 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper.js.map +6 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs +110 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs.map +1 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper.native.js +182 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper.native.js.map +6 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.js +70 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.js.map +6 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs +80 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.native.js +71 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.native.js.map +6 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.js +68 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.js.map +6 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +58 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.native.js +104 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.native.js.map +6 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.js +43 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.js.map +6 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs +33 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.native.js +136 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.native.js.map +6 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.js +51 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.js.map +6 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +46 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js +139 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js.map +6 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js +132 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js.map +6 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +130 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js +224 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js.map +6 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.js +50 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.js.map +6 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +47 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js +56 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js.map +6 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.js +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.js.map +6 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs +2 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js.map +6 -0
- package/dist/esm/vendor/react-native/VirtualizedList/index.js +1016 -0
- package/dist/esm/vendor/react-native/VirtualizedList/index.js.map +6 -0
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs +969 -0
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/index.native.js +1065 -0
- package/dist/esm/vendor/react-native/VirtualizedList/index.native.js.map +6 -0
- package/dist/esm/vendor/react-native/deepDiffer/index.js +31 -0
- package/dist/esm/vendor/react-native/deepDiffer/index.js.map +6 -0
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs +18 -0
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/deepDiffer/index.native.js +31 -0
- package/dist/esm/vendor/react-native/deepDiffer/index.native.js.map +6 -0
- package/package.json +6 -6
- package/src/Batchinator/index.tsx +78 -0
- package/src/FlatList.tsx +330 -0
- package/src/InteractionManager/TaskQueue.tsx +114 -0
- package/src/InteractionManager/index.tsx +139 -0
- package/src/index.tsx +2 -2
- package/src/vendor/react-native/FillRateHelper/index.tsx +218 -0
- package/src/vendor/react-native/Utilities/clamp.ts +21 -0
- package/src/vendor/react-native/ViewabilityHelper.ts +291 -0
- package/src/vendor/react-native/VirtualizeUtils/index.tsx +212 -0
- package/src/vendor/react-native/VirtualizedList/CellRenderMask.ts +147 -0
- package/src/vendor/react-native/VirtualizedList/ChildListCollection.tsx +73 -0
- package/src/vendor/react-native/VirtualizedList/StateSafePureComponent.tsx +79 -0
- package/src/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.tsx +210 -0
- package/src/vendor/react-native/VirtualizedList/VirtualizedListContext.tsx +116 -0
- package/src/vendor/react-native/VirtualizedList/VirtualizedListProps.ts +130 -0
- package/src/vendor/react-native/VirtualizedList/index.tsx +1797 -0
- package/src/vendor/react-native/deepDiffer/index.tsx +56 -0
- package/dist/cjs/PanResponder/Alternative.cjs +0 -198
- package/dist/cjs/PanResponder/Alternative.cjs.map +0 -6
- /package/dist/cjs/AccessibilityInfo/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/ActivityIndicator/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
- /package/dist/cjs/ActivityIndicator/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Alert/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/AppRegistry/{AppContainer.cjs.map → AppContainer.js.map} +0 -0
- /package/dist/cjs/AppRegistry/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
- /package/dist/cjs/AppRegistry/__tests__/{index-test.node.cjs.map → index-test.node.js.map} +0 -0
- /package/dist/cjs/AppRegistry/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/AppRegistry/{renderApplication.cjs.map → renderApplication.js.map} +0 -0
- /package/dist/cjs/AppState/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
- /package/dist/cjs/AppState/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Appearance/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/BackHandler/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Clipboard/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/{DeviceEmitter.cjs.map → DeviceEmitter.js.map} +0 -0
- /package/dist/cjs/DeviceInfo/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Dimensions/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
- /package/dist/cjs/Dimensions/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/I18nManager/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Image/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Image/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/ImageBackground/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
- /package/dist/cjs/ImageBackground/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Keyboard/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/KeyboardAvoidingView/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Linking/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
- /package/dist/cjs/Linking/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/LogBox/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Modal/{ModalAnimation.cjs.map → ModalAnimation.js.map} +0 -0
- /package/dist/cjs/Modal/{ModalContent.cjs.map → ModalContent.js.map} +0 -0
- /package/dist/cjs/Modal/{ModalFocusTrap.cjs.map → ModalFocusTrap.js.map} +0 -0
- /package/dist/cjs/Modal/{ModalPortal.cjs.map → ModalPortal.js.map} +0 -0
- /package/dist/cjs/Modal/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/NativeModules/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/PanResponder/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/PixelRatio/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Pressable/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/RefreshControl/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/SafeAreaView/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/ScrollView/{ScrollViewBase.cjs.map → ScrollViewBase.js.map} +0 -0
- /package/dist/cjs/ScrollView/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Share/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/StatusBar/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Text/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Text/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/TextInput/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
- /package/dist/cjs/TextInput/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/TextInput/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/{TouchableOpacity.cjs.map → TouchableOpacity.js.map} +0 -0
- /package/dist/cjs/{TouchableWithoutFeedback.cjs.map → TouchableWithoutFeedback.js.map} +0 -0
- /package/dist/cjs/{UnimplementedView.cjs.map → UnimplementedView.js.map} +0 -0
- /package/dist/cjs/Vibration/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/View/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/View/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/createElement/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
- /package/dist/cjs/createElement/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/{createReactDOMStyle.cjs.map → createReactDOMStyle.js.map} +0 -0
- /package/dist/cjs/{findNodeHandle.cjs.map → findNodeHandle.js.map} +0 -0
- /package/dist/cjs/render/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/{styleTypes.cjs.map → styleTypes.js.map} +0 -0
- /package/dist/cjs/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/useColorScheme/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/useLocaleContext/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/useWindowDimensions/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{Animated.cjs.map → Animated.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedEvent.cjs.map → AnimatedEvent.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedImplementation.cjs.map → AnimatedImplementation.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedMock.cjs.map → AnimatedMock.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedPlatformConfig.cjs.map → AnimatedPlatformConfig.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{Easing.cjs.map → Easing.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedHelper.cjs.map → NativeAnimatedHelper.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.cjs.map → NativeAnimatedModule.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.cjs.map → NativeAnimatedTurboModule.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{SpringConfig.cjs.map → SpringConfig.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{Animation.cjs.map → Animation.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.cjs.map → DecayAnimation.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.cjs.map → SpringAnimation.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.cjs.map → TimingAnimation.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{bezier.cjs.map → bezier.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedImage.cjs.map → AnimatedImage.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedScrollView.cjs.map → AnimatedScrollView.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedText.cjs.map → AnimatedText.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedView.cjs.map → AnimatedView.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{createAnimatedComponent.cjs.map → createAnimatedComponent.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.cjs.map → AnimatedAddition.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.cjs.map → AnimatedColor.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.cjs.map → AnimatedDiffClamp.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.cjs.map → AnimatedDivision.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.cjs.map → AnimatedInterpolation.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.cjs.map → AnimatedModulo.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.cjs.map → AnimatedMultiplication.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.cjs.map → AnimatedNode.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.cjs.map → AnimatedProps.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.cjs.map → AnimatedStyle.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.cjs.map → AnimatedSubtraction.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.cjs.map → AnimatedTracking.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.cjs.map → AnimatedTransform.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.cjs.map → AnimatedValue.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.cjs.map → AnimatedValueXY.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.cjs.map → AnimatedWithChildren.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.cjs.map → useAnimatedProps.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/{FeatureFlags.cjs.map → FeatureFlags.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.cjs.map → RCTDeviceEventEmitter.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/PanResponder/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/TouchHistoryMath/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/TurboModule/{RCTExport.cjs.map → RCTExport.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/TurboModule/{TurboModuleRegistry.cjs.map → TurboModuleRegistry.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Types/{CoreEventTypes.cjs.map → CoreEventTypes.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Utilities/{setAndForwardRef.cjs.map → setAndForwardRef.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{EventEmitter.cjs.map → EventEmitter.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{EventSubscription.cjs.map → EventSubscription.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.cjs.map → _EmitterSubscription.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.cjs.map → _EventEmitter.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.cjs.map → _EventSubscription.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.cjs.map → _EventSubscriptionVendor.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/infoLog/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/{useRefEffect.cjs.map → useRefEffect.js.map} +0 -0
- /package/dist/cjs/{without-animated.cjs.map → without-animated.js.map} +0 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
+
mod
|
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
+
var FlatList_exports = {};
|
|
25
|
+
__export(FlatList_exports, {
|
|
26
|
+
default: () => FlatList_default
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(FlatList_exports);
|
|
29
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_memoize_one = __toESM(require("memoize-one")), import_react = __toESM(require("react")), import_deepDiffer = __toESM(require("./vendor/react-native/deepDiffer")), import_VirtualizedList = __toESM(require("./vendor/react-native/VirtualizedList")), import_VirtualizeUtils = require("./vendor/react-native/VirtualizeUtils"), import_View = __toESM(require("./View"));
|
|
30
|
+
function _assert_this_initialized(self) {
|
|
31
|
+
if (self === void 0)
|
|
32
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
33
|
+
return self;
|
|
34
|
+
}
|
|
35
|
+
function _call_super(_this, derived, args) {
|
|
36
|
+
return derived = _get_prototype_of(derived), _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
37
|
+
}
|
|
38
|
+
function _class_call_check(instance, Constructor) {
|
|
39
|
+
if (!(instance instanceof Constructor))
|
|
40
|
+
throw new TypeError("Cannot call a class as a function");
|
|
41
|
+
}
|
|
42
|
+
function _defineProperties(target, props) {
|
|
43
|
+
for (var i = 0; i < props.length; i++) {
|
|
44
|
+
var descriptor = props[i];
|
|
45
|
+
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
49
|
+
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
50
|
+
}
|
|
51
|
+
function _define_property(obj, key, value) {
|
|
52
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
53
|
+
value,
|
|
54
|
+
enumerable: !0,
|
|
55
|
+
configurable: !0,
|
|
56
|
+
writable: !0
|
|
57
|
+
}) : obj[key] = value, obj;
|
|
58
|
+
}
|
|
59
|
+
function _get_prototype_of(o) {
|
|
60
|
+
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function(o2) {
|
|
61
|
+
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
62
|
+
}, _get_prototype_of(o);
|
|
63
|
+
}
|
|
64
|
+
function _inherits(subClass, superClass) {
|
|
65
|
+
if (typeof superClass != "function" && superClass !== null)
|
|
66
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
67
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
68
|
+
constructor: {
|
|
69
|
+
value: subClass,
|
|
70
|
+
writable: !0,
|
|
71
|
+
configurable: !0
|
|
72
|
+
}
|
|
73
|
+
}), superClass && _set_prototype_of(subClass, superClass);
|
|
74
|
+
}
|
|
75
|
+
function _possible_constructor_return(self, call) {
|
|
76
|
+
return call && (_type_of(call) === "object" || typeof call == "function") ? call : _assert_this_initialized(self);
|
|
77
|
+
}
|
|
78
|
+
function _set_prototype_of(o, p) {
|
|
79
|
+
return _set_prototype_of = Object.setPrototypeOf || function(o2, p2) {
|
|
80
|
+
return o2.__proto__ = p2, o2;
|
|
81
|
+
}, _set_prototype_of(o, p);
|
|
82
|
+
}
|
|
83
|
+
function _type_of(obj) {
|
|
84
|
+
"@swc/helpers - typeof";
|
|
85
|
+
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
86
|
+
}
|
|
87
|
+
function _is_native_reflect_construct() {
|
|
88
|
+
try {
|
|
89
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
90
|
+
}));
|
|
91
|
+
} catch {
|
|
92
|
+
}
|
|
93
|
+
return (_is_native_reflect_construct = function() {
|
|
94
|
+
return !!result;
|
|
95
|
+
})();
|
|
96
|
+
}
|
|
97
|
+
function removeClippedSubviewsOrDefault(removeClippedSubviews) {
|
|
98
|
+
return removeClippedSubviews ?? import_react_native_web_internals.Platform.OS === "android";
|
|
99
|
+
}
|
|
100
|
+
function numColumnsOrDefault(numColumns) {
|
|
101
|
+
return numColumns ?? 1;
|
|
102
|
+
}
|
|
103
|
+
function isArrayLike(data) {
|
|
104
|
+
return typeof Object(data).length == "number";
|
|
105
|
+
}
|
|
106
|
+
var FlatList = /* @__PURE__ */ function(_React_PureComponent) {
|
|
107
|
+
"use strict";
|
|
108
|
+
_inherits(FlatList2, _React_PureComponent);
|
|
109
|
+
function FlatList2(props) {
|
|
110
|
+
_class_call_check(this, FlatList2);
|
|
111
|
+
var _this;
|
|
112
|
+
return _this = _call_super(this, FlatList2, [
|
|
113
|
+
props
|
|
114
|
+
]), _define_property(_this, "props", void 0), _define_property(_this, "_listRef", null), _define_property(_this, "_virtualizedListPairs", []), _define_property(_this, "_captureRef", function(ref) {
|
|
115
|
+
_this._listRef = ref;
|
|
116
|
+
}), _define_property(_this, "_getItem", function(data, index) {
|
|
117
|
+
var numColumns = numColumnsOrDefault(_this.props.numColumns);
|
|
118
|
+
if (numColumns > 1) {
|
|
119
|
+
for (var ret = [], kk = 0; kk < numColumns; kk++) {
|
|
120
|
+
var itemIndex = index * numColumns + kk;
|
|
121
|
+
if (itemIndex < data.length) {
|
|
122
|
+
var item = data[itemIndex];
|
|
123
|
+
ret.push(item);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return ret;
|
|
127
|
+
} else
|
|
128
|
+
return data[index];
|
|
129
|
+
}), _define_property(_this, "_getItemCount", function(data) {
|
|
130
|
+
if (data != null && isArrayLike(data)) {
|
|
131
|
+
var numColumns = numColumnsOrDefault(_this.props.numColumns);
|
|
132
|
+
return numColumns > 1 ? Math.ceil(data.length / numColumns) : data.length;
|
|
133
|
+
} else
|
|
134
|
+
return 0;
|
|
135
|
+
}), _define_property(_this, "_keyExtractor", function(items, index) {
|
|
136
|
+
var numColumns = numColumnsOrDefault(_this.props.numColumns), _this_props_keyExtractor, keyExtractor = (_this_props_keyExtractor = _this.props.keyExtractor) !== null && _this_props_keyExtractor !== void 0 ? _this_props_keyExtractor : import_VirtualizeUtils.keyExtractor;
|
|
137
|
+
return numColumns > 1 ? ((0, import_react_native_web_internals.invariant)(Array.isArray(items), "FlatList: Expected each item to be an array with multiple columns."), items.map(function(item, kk) {
|
|
138
|
+
return keyExtractor(item, index * numColumns + kk);
|
|
139
|
+
}).join(":")) : keyExtractor(items, index);
|
|
140
|
+
}), _define_property(_this, "_renderer", function(ListItemComponent, renderItem, columnWrapperStyle, numColumns, extraData) {
|
|
141
|
+
var cols = numColumnsOrDefault(numColumns), render = function(props2) {
|
|
142
|
+
return ListItemComponent ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ListItemComponent, {
|
|
143
|
+
...props2
|
|
144
|
+
}) : renderItem ? renderItem(props2) : null;
|
|
145
|
+
}, renderProp = function(info) {
|
|
146
|
+
if (cols > 1) {
|
|
147
|
+
var { item, index } = info;
|
|
148
|
+
return (0, import_react_native_web_internals.invariant)(Array.isArray(item), "Expected array of items with numColumns > 1"), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_View.default, {
|
|
149
|
+
style: [
|
|
150
|
+
styles.row,
|
|
151
|
+
columnWrapperStyle
|
|
152
|
+
],
|
|
153
|
+
children: item.map(function(it, kk) {
|
|
154
|
+
var element = render({
|
|
155
|
+
item: it,
|
|
156
|
+
index: index * cols + kk,
|
|
157
|
+
separators: info.separators
|
|
158
|
+
});
|
|
159
|
+
return element != null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.default.Fragment, {
|
|
160
|
+
children: element
|
|
161
|
+
}, kk) : null;
|
|
162
|
+
})
|
|
163
|
+
});
|
|
164
|
+
} else
|
|
165
|
+
return render(info);
|
|
166
|
+
};
|
|
167
|
+
return ListItemComponent ? {
|
|
168
|
+
ListItemComponent: renderProp
|
|
169
|
+
} : {
|
|
170
|
+
renderItem: renderProp
|
|
171
|
+
};
|
|
172
|
+
}), _define_property(_this, "_memoizedRenderer", (0, import_memoize_one.default)(_this._renderer)), _this.props = props, _this._checkProps(_this.props), _this.props.viewabilityConfigCallbackPairs ? _this._virtualizedListPairs = _this.props.viewabilityConfigCallbackPairs.map(function(pair) {
|
|
173
|
+
return {
|
|
174
|
+
viewabilityConfig: pair.viewabilityConfig,
|
|
175
|
+
onViewableItemsChanged: _this._createOnViewableItemsChanged(pair.onViewableItemsChanged)
|
|
176
|
+
};
|
|
177
|
+
}) : _this.props.onViewableItemsChanged && _this._virtualizedListPairs.push({
|
|
178
|
+
viewabilityConfig: _this.props.viewabilityConfig,
|
|
179
|
+
onViewableItemsChanged: _this._createOnViewableItemsChanged(_this.props.onViewableItemsChanged)
|
|
180
|
+
}), _this;
|
|
181
|
+
}
|
|
182
|
+
return _create_class(FlatList2, [
|
|
183
|
+
{
|
|
184
|
+
key: "componentDidUpdate",
|
|
185
|
+
value: function(prevProps) {
|
|
186
|
+
(0, import_react_native_web_internals.invariant)(prevProps.numColumns === this.props.numColumns, "Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."), (0, import_react_native_web_internals.invariant)(prevProps.onViewableItemsChanged === this.props.onViewableItemsChanged, "Changing onViewableItemsChanged on the fly is not supported"), (0, import_react_native_web_internals.invariant)(!(0, import_deepDiffer.default)(prevProps.viewabilityConfig, this.props.viewabilityConfig), "Changing viewabilityConfig on the fly is not supported"), (0, import_react_native_web_internals.invariant)(prevProps.viewabilityConfigCallbackPairs === this.props.viewabilityConfigCallbackPairs, "Changing viewabilityConfigCallbackPairs on the fly is not supported"), this._checkProps(this.props);
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
key: "_checkProps",
|
|
191
|
+
value: function(props) {
|
|
192
|
+
var { getItem, getItemCount, horizontal, columnWrapperStyle, onViewableItemsChanged, viewabilityConfigCallbackPairs } = props, numColumns = numColumnsOrDefault(this.props.numColumns);
|
|
193
|
+
(0, import_react_native_web_internals.invariant)(!getItem && !getItemCount, "FlatList does not support custom data formats."), numColumns > 1 ? (0, import_react_native_web_internals.invariant)(!horizontal, "numColumns does not support horizontal.") : (0, import_react_native_web_internals.invariant)(!columnWrapperStyle, "columnWrapperStyle not supported for single column lists"), (0, import_react_native_web_internals.invariant)(!(onViewableItemsChanged && viewabilityConfigCallbackPairs), "FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.");
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
key: "_pushMultiColumnViewable",
|
|
198
|
+
value: function(arr, v) {
|
|
199
|
+
var numColumns = numColumnsOrDefault(this.props.numColumns), _this_props_keyExtractor, keyExtractor = (_this_props_keyExtractor = this.props.keyExtractor) !== null && _this_props_keyExtractor !== void 0 ? _this_props_keyExtractor : import_VirtualizeUtils.keyExtractor;
|
|
200
|
+
v.item.forEach(function(item, ii) {
|
|
201
|
+
(0, import_react_native_web_internals.invariant)(v.index != null, "Missing index!");
|
|
202
|
+
var index = v.index * numColumns + ii;
|
|
203
|
+
arr.push({
|
|
204
|
+
...v,
|
|
205
|
+
item,
|
|
206
|
+
key: keyExtractor(item, index),
|
|
207
|
+
index
|
|
208
|
+
});
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
key: "_createOnViewableItemsChanged",
|
|
214
|
+
value: function(onViewableItemsChanged) {
|
|
215
|
+
var _this = this;
|
|
216
|
+
return function(info) {
|
|
217
|
+
var numColumns = numColumnsOrDefault(_this.props.numColumns);
|
|
218
|
+
if (onViewableItemsChanged)
|
|
219
|
+
if (numColumns > 1) {
|
|
220
|
+
var changed = [], viewableItems = [];
|
|
221
|
+
info.viewableItems.forEach(function(v) {
|
|
222
|
+
return _this._pushMultiColumnViewable(viewableItems, v);
|
|
223
|
+
}), info.changed.forEach(function(v) {
|
|
224
|
+
return _this._pushMultiColumnViewable(changed, v);
|
|
225
|
+
}), onViewableItemsChanged({
|
|
226
|
+
viewableItems,
|
|
227
|
+
changed
|
|
228
|
+
});
|
|
229
|
+
} else
|
|
230
|
+
onViewableItemsChanged(info);
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
key: "render",
|
|
236
|
+
value: function() {
|
|
237
|
+
var { numColumns, columnWrapperStyle, removeClippedSubviews: _removeClippedSubviews, strictMode = !1, ...restProps } = this.props, renderer = strictMode ? this._memoizedRenderer : this._renderer;
|
|
238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_VirtualizedList.default, {
|
|
239
|
+
...restProps,
|
|
240
|
+
getItem: this._getItem,
|
|
241
|
+
getItemCount: this._getItemCount,
|
|
242
|
+
keyExtractor: this._keyExtractor,
|
|
243
|
+
ref: this._captureRef,
|
|
244
|
+
viewabilityConfigCallbackPairs: this._virtualizedListPairs,
|
|
245
|
+
removeClippedSubviews: removeClippedSubviewsOrDefault(_removeClippedSubviews),
|
|
246
|
+
...renderer(this.props.ListItemComponent, this.props.renderItem, columnWrapperStyle, numColumns, this.props.extraData)
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
]), FlatList2;
|
|
251
|
+
}(import_react.default.PureComponent), styles = {
|
|
252
|
+
row: {
|
|
253
|
+
flexDirection: "row"
|
|
254
|
+
}
|
|
255
|
+
}, FlatList_default = FlatList;
|
|
256
|
+
//# sourceMappingURL=FlatList.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/packages/react-native-web-lite/src/FlatList.tsx"],
|
|
4
|
+
"mappings": "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",
|
|
5
|
+
"names": ["removeClippedSubviewsOrDefault", "removeClippedSubviews", "Platform", "OS", "numColumnsOrDefault", "numColumns", "isArrayLike", "data", "Object", "length", "FlatList", "props", "_listRef", "_virtualizedListPairs", "_captureRef", "ref", "_getItem", "index", "ret", "kk", "itemIndex", "item", "push", "_getItemCount", "Math", "ceil", "_keyExtractor", "items", "keyExtractor", "defaultKeyExtractor", "invariant", "Array", "isArray", "map", "join", "_renderer", "ListItemComponent", "renderItem", "columnWrapperStyle", "extraData", "cols", "render", "_jsx", "renderProp", "info", "View", "style", "styles", "row", "it", "element", "separators", "React", "Fragment", "_memoizedRenderer", "memoizeOne", "_checkProps", "viewabilityConfigCallbackPairs", "pair", "viewabilityConfig", "onViewableItemsChanged", "_createOnViewableItemsChanged", "componentDidUpdate", "prevProps", "deepDiffer", "getItem", "getItemCount", "horizontal", "_pushMultiColumnViewable", "arr", "v", "forEach", "ii", "key", "changed", "viewableItems", "_removeClippedSubviews", "strictMode", "restProps", "renderer", "VirtualizedList", "PureComponent", "flexDirection"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 I18nManager_exports = {};
|
|
16
|
+
__export(I18nManager_exports, {
|
|
17
|
+
default: () => I18nManager_default
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(I18nManager_exports);
|
|
20
|
+
const I18nManager = {
|
|
21
|
+
allowRTL() {
|
|
22
|
+
},
|
|
23
|
+
forceRTL() {
|
|
24
|
+
},
|
|
25
|
+
getConstants() {
|
|
26
|
+
return { isRTL: !1 };
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
var I18nManager_default = I18nManager;
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
+
mod
|
|
22
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
+
var Image_exports = {};
|
|
24
|
+
__export(Image_exports, {
|
|
25
|
+
default: () => Image_default
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(Image_exports);
|
|
28
|
+
var React = __toESM(require("react")), import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_react_native_web_internals2 = require("@tamagui/react-native-web-internals"), import_createElement = __toESM(require("../createElement/index")), import_PixelRatio = __toESM(require("../PixelRatio/index")), import_View = __toESM(require("../View/index")), import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
+
const ERRORED = "ERRORED", LOADED = "LOADED", LOADING = "LOADING", IDLE = "IDLE";
|
|
30
|
+
let _filterId = 0;
|
|
31
|
+
const svgDataUriPattern = /^(data:image\/svg\+xml;utf8,)(.*)/;
|
|
32
|
+
function createTintColorSVG(tintColor, id) {
|
|
33
|
+
return tintColor && id != null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
34
|
+
"svg",
|
|
35
|
+
{
|
|
36
|
+
style: {
|
|
37
|
+
position: "absolute",
|
|
38
|
+
height: 0,
|
|
39
|
+
visibility: "hidden",
|
|
40
|
+
width: 0
|
|
41
|
+
},
|
|
42
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("filter", { id: `tint-${id}`, suppressHydrationWarning: !0, children: [
|
|
43
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("feFlood", { floodColor: `${tintColor}` }, tintColor),
|
|
44
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("feComposite", { in2: "SourceAlpha", operator: "atop" })
|
|
45
|
+
] }) })
|
|
46
|
+
}
|
|
47
|
+
) : null;
|
|
48
|
+
}
|
|
49
|
+
function getFlatStyle(style, blurRadius, filterId) {
|
|
50
|
+
const flatStyle = import_react_native_web_internals.StyleSheet.flatten(style), { filter, resizeMode, shadowOffset, tintColor } = flatStyle, filters = [];
|
|
51
|
+
let _filter = null;
|
|
52
|
+
if (filter && filters.push(filter), blurRadius && filters.push(`blur(${blurRadius}px)`), shadowOffset) {
|
|
53
|
+
const shadowString = (0, import_react_native_web_internals.createBoxShadowValue)(flatStyle);
|
|
54
|
+
shadowString && filters.push(`drop-shadow(${shadowString})`);
|
|
55
|
+
}
|
|
56
|
+
return tintColor && filterId != null && filters.push(`url(#tint-${filterId})`), filters.length > 0 && (_filter = filters.join(" ")), delete flatStyle.blurRadius, delete flatStyle.shadowColor, delete flatStyle.shadowOpacity, delete flatStyle.shadowOffset, delete flatStyle.shadowRadius, delete flatStyle.tintColor, delete flatStyle.overlayColor, delete flatStyle.resizeMode, [flatStyle, resizeMode, _filter, tintColor];
|
|
57
|
+
}
|
|
58
|
+
function resolveAssetDimensions(source) {
|
|
59
|
+
if (typeof source == "number") {
|
|
60
|
+
const { height, width } = (0, import_react_native_web_internals2.getAssetByID)(source);
|
|
61
|
+
return { height, width };
|
|
62
|
+
} else if (source != null && !Array.isArray(source) && typeof source == "object") {
|
|
63
|
+
const { height, width } = source;
|
|
64
|
+
return { height, width };
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function resolveAssetUri(source) {
|
|
68
|
+
let uri = null;
|
|
69
|
+
if (typeof source == "number") {
|
|
70
|
+
const asset = (0, import_react_native_web_internals2.getAssetByID)(source);
|
|
71
|
+
let scale = asset.scales[0];
|
|
72
|
+
if (asset.scales.length > 1) {
|
|
73
|
+
const preferredScale = import_PixelRatio.default.get();
|
|
74
|
+
scale = asset.scales.reduce(
|
|
75
|
+
(prev, curr) => Math.abs(curr - preferredScale) < Math.abs(prev - preferredScale) ? curr : prev
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
const scaleSuffix = scale !== 1 ? `@${scale}x` : "";
|
|
79
|
+
uri = asset ? `${asset.httpServerLocation}/${asset.name}${scaleSuffix}.${asset.type}` : "";
|
|
80
|
+
} else typeof source == "string" ? uri = source : source && typeof source.uri == "string" && (uri = source.uri);
|
|
81
|
+
if (uri) {
|
|
82
|
+
const match = uri.match(svgDataUriPattern);
|
|
83
|
+
if (match) {
|
|
84
|
+
const [, prefix, svg] = match, encodedSvg = encodeURIComponent(svg);
|
|
85
|
+
return `${prefix}${encodedSvg}`;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return uri;
|
|
89
|
+
}
|
|
90
|
+
const Image = React.forwardRef((props, ref) => {
|
|
91
|
+
const {
|
|
92
|
+
accessibilityLabel,
|
|
93
|
+
blurRadius,
|
|
94
|
+
defaultSource,
|
|
95
|
+
draggable,
|
|
96
|
+
onError,
|
|
97
|
+
onLayout,
|
|
98
|
+
onLoad,
|
|
99
|
+
onLoadEnd,
|
|
100
|
+
onLoadStart,
|
|
101
|
+
pointerEvents,
|
|
102
|
+
source,
|
|
103
|
+
style,
|
|
104
|
+
...rest
|
|
105
|
+
} = props;
|
|
106
|
+
if (process.env.NODE_ENV !== "production" && props.children)
|
|
107
|
+
throw new Error(
|
|
108
|
+
"The <Image> component cannot contain children. If you want to render content on top of the image, consider using the <ImageBackground> component or absolute positioning."
|
|
109
|
+
);
|
|
110
|
+
const [state, updateState] = React.useState(() => {
|
|
111
|
+
const uri2 = resolveAssetUri(source);
|
|
112
|
+
return uri2 != null && import_react_native_web_internals2.ImageLoader.has(uri2) ? LOADED : IDLE;
|
|
113
|
+
}), [layout, updateLayout] = React.useState({}), hasTextAncestor = React.useContext(import_react_native_web_internals.TextAncestorContext), hiddenImageRef = React.useRef(null), filterRef = React.useRef(_filterId++), requestRef = React.useRef(null), shouldDisplaySource = state === LOADED || state === LOADING && defaultSource == null, [flatStyle, _resizeMode, filter, tintColor] = getFlatStyle(
|
|
114
|
+
{},
|
|
115
|
+
blurRadius,
|
|
116
|
+
filterRef.current
|
|
117
|
+
), resizeMode = props.resizeMode || _resizeMode || "cover", selectedSource = shouldDisplaySource ? source : defaultSource, displayImageUri = resolveAssetUri(selectedSource), imageSizeStyle = resolveAssetDimensions(selectedSource), backgroundImage = displayImageUri ? `url("${displayImageUri}")` : null, backgroundSize = getBackgroundSize(), hiddenImage = displayImageUri ? (0, import_createElement.default)("img", {
|
|
118
|
+
alt: accessibilityLabel || "",
|
|
119
|
+
style: styles.accessibilityImage$raw,
|
|
120
|
+
draggable: draggable || !1,
|
|
121
|
+
ref: hiddenImageRef,
|
|
122
|
+
src: displayImageUri
|
|
123
|
+
}) : null;
|
|
124
|
+
function getBackgroundSize() {
|
|
125
|
+
if (hiddenImageRef.current != null && (resizeMode === "center" || resizeMode === "repeat")) {
|
|
126
|
+
const { naturalHeight, naturalWidth } = hiddenImageRef.current, { height, width } = layout;
|
|
127
|
+
if (naturalHeight && naturalWidth && height && width) {
|
|
128
|
+
const scaleFactor = Math.min(1, width / naturalWidth, height / naturalHeight), x = Math.ceil(scaleFactor * naturalWidth), y = Math.ceil(scaleFactor * naturalHeight);
|
|
129
|
+
return `${x}px ${y}px`;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
function handleLayout(e) {
|
|
134
|
+
if (resizeMode === "center" || resizeMode === "repeat" || onLayout) {
|
|
135
|
+
const { layout: layout2 } = e.nativeEvent;
|
|
136
|
+
onLayout && onLayout(e), updateLayout(layout2);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
const uri = resolveAssetUri(source);
|
|
140
|
+
return React.useEffect(() => {
|
|
141
|
+
abortPendingRequest(), uri != null && (updateState(LOADING), onLoadStart && onLoadStart(), requestRef.current = import_react_native_web_internals2.ImageLoader.load(
|
|
142
|
+
uri,
|
|
143
|
+
function(e) {
|
|
144
|
+
updateState(LOADED), onLoad && onLoad(e), onLoadEnd && onLoadEnd();
|
|
145
|
+
},
|
|
146
|
+
function() {
|
|
147
|
+
updateState(ERRORED), onError && onError({
|
|
148
|
+
nativeEvent: {
|
|
149
|
+
error: `Failed to load resource ${uri} (404)`
|
|
150
|
+
}
|
|
151
|
+
}), onLoadEnd && onLoadEnd();
|
|
152
|
+
}
|
|
153
|
+
));
|
|
154
|
+
function abortPendingRequest() {
|
|
155
|
+
requestRef.current != null && (import_react_native_web_internals2.ImageLoader.abort(requestRef.current), requestRef.current = null);
|
|
156
|
+
}
|
|
157
|
+
return abortPendingRequest;
|
|
158
|
+
}, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
159
|
+
import_View.default,
|
|
160
|
+
{
|
|
161
|
+
...rest,
|
|
162
|
+
accessibilityLabel,
|
|
163
|
+
onLayout: handleLayout,
|
|
164
|
+
pointerEvents,
|
|
165
|
+
ref,
|
|
166
|
+
style: [
|
|
167
|
+
style,
|
|
168
|
+
styles.root,
|
|
169
|
+
hasTextAncestor && styles.inline,
|
|
170
|
+
imageSizeStyle,
|
|
171
|
+
flatStyle
|
|
172
|
+
],
|
|
173
|
+
children: [
|
|
174
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
175
|
+
import_View.default,
|
|
176
|
+
{
|
|
177
|
+
style: [
|
|
178
|
+
...[].concat(styles.image),
|
|
179
|
+
resizeModeStyles[resizeMode],
|
|
180
|
+
{ backgroundImage, filter },
|
|
181
|
+
backgroundSize != null && { backgroundSize }
|
|
182
|
+
],
|
|
183
|
+
suppressHydrationWarning: !0
|
|
184
|
+
}
|
|
185
|
+
),
|
|
186
|
+
hiddenImage,
|
|
187
|
+
createTintColorSVG(tintColor, filterRef.current)
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
});
|
|
192
|
+
Image.displayName = "Image";
|
|
193
|
+
const ImageWithStatics = Image;
|
|
194
|
+
ImageWithStatics.getSize = function(uri, success, failure) {
|
|
195
|
+
import_react_native_web_internals2.ImageLoader.getSize(uri, success, failure);
|
|
196
|
+
};
|
|
197
|
+
ImageWithStatics.prefetch = function(uri) {
|
|
198
|
+
return import_react_native_web_internals2.ImageLoader.prefetch(uri);
|
|
199
|
+
};
|
|
200
|
+
ImageWithStatics.queryCache = function(uris) {
|
|
201
|
+
return import_react_native_web_internals2.ImageLoader.queryCache(uris);
|
|
202
|
+
};
|
|
203
|
+
const styles = import_react_native_web_internals.StyleSheet.create({
|
|
204
|
+
root: {
|
|
205
|
+
flexBasis: "auto",
|
|
206
|
+
overflow: "hidden",
|
|
207
|
+
zIndex: 0
|
|
208
|
+
},
|
|
209
|
+
inline: {
|
|
210
|
+
display: "inline-flex"
|
|
211
|
+
},
|
|
212
|
+
image: {
|
|
213
|
+
...import_react_native_web_internals.StyleSheet.absoluteFillObject,
|
|
214
|
+
backgroundColor: "transparent",
|
|
215
|
+
backgroundPosition: "center",
|
|
216
|
+
backgroundRepeat: "no-repeat",
|
|
217
|
+
backgroundSize: "cover",
|
|
218
|
+
height: "100%",
|
|
219
|
+
width: "100%",
|
|
220
|
+
zIndex: -1
|
|
221
|
+
},
|
|
222
|
+
accessibilityImage$raw: {
|
|
223
|
+
...import_react_native_web_internals.StyleSheet.absoluteFillObject,
|
|
224
|
+
height: "100%",
|
|
225
|
+
opacity: 0,
|
|
226
|
+
width: "100%",
|
|
227
|
+
zIndex: -1
|
|
228
|
+
}
|
|
229
|
+
}), resizeModeStyles = import_react_native_web_internals.StyleSheet.create({
|
|
230
|
+
center: {
|
|
231
|
+
backgroundSize: "auto"
|
|
232
|
+
},
|
|
233
|
+
contain: {
|
|
234
|
+
backgroundSize: "contain"
|
|
235
|
+
},
|
|
236
|
+
cover: {
|
|
237
|
+
backgroundSize: "cover"
|
|
238
|
+
},
|
|
239
|
+
none: {
|
|
240
|
+
backgroundPosition: "0",
|
|
241
|
+
backgroundSize: "auto"
|
|
242
|
+
},
|
|
243
|
+
repeat: {
|
|
244
|
+
backgroundPosition: "0",
|
|
245
|
+
backgroundRepeat: "repeat",
|
|
246
|
+
backgroundSize: "auto"
|
|
247
|
+
},
|
|
248
|
+
stretch: {
|
|
249
|
+
backgroundSize: "100% 100%"
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
var Image_default = ImageWithStatics;
|
|
253
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
9
|
+
return to;
|
|
10
|
+
};
|
|
11
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
12
|
+
var types_exports = {};
|
|
13
|
+
module.exports = __toCommonJS(types_exports);
|
|
14
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
return to;
|
|
11
|
+
};
|
|
12
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
13
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
14
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
15
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
16
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
17
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
18
|
+
mod
|
|
19
|
+
));
|
|
20
|
+
var import_react = require("@testing-library/react"), import_Text = __toESM(require("../../Text")), import__ = __toESM(require("..")), import_jsx_runtime = require("react/jsx-runtime");
|
|
21
|
+
function findImage(container) {
|
|
22
|
+
return container.firstChild.firstChild;
|
|
23
|
+
}
|
|
24
|
+
describe("components/ImageBackground", () => {
|
|
25
|
+
describe('prop "children"', () => {
|
|
26
|
+
test("render child content", () => {
|
|
27
|
+
const { getByText } = (0, import_react.render)(
|
|
28
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default, { children: "Hello World!" }) })
|
|
29
|
+
);
|
|
30
|
+
expect(getByText("Hello World!")).toBeDefined();
|
|
31
|
+
});
|
|
32
|
+
}), describe('prop "imageStyle"', () => {
|
|
33
|
+
test("sets the style of the underlying Image", () => {
|
|
34
|
+
const imageStyle = { width: 40, height: 60 }, { container } = (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { imageStyle }));
|
|
35
|
+
expect(
|
|
36
|
+
findImage(container).getAttribute("style").includes("width: 40px; height: 60px;")
|
|
37
|
+
).toBe(!0);
|
|
38
|
+
});
|
|
39
|
+
}), describe('prop "style"', () => {
|
|
40
|
+
test("sets the style of the container View", () => {
|
|
41
|
+
const style = { margin: 40 }, { container } = (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { style }));
|
|
42
|
+
expect(container.firstChild.getAttribute("style")).toEqual(
|
|
43
|
+
"margin: 40px 40px 40px 40px;"
|
|
44
|
+
);
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=index-test.js.map
|