@tamagui/react-native-web-lite 2.0.0-rc.3 → 2.0.0-rc.30
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/Libraries/Pressability/Pressability.cjs +26 -0
- package/dist/cjs/Libraries/Pressability/usePressability.cjs +26 -0
- package/dist/cjs/ScrollView/ScrollViewBase.cjs +9 -7
- package/dist/cjs/ScrollView/index.cjs +31 -0
- package/dist/cjs/createReactDOMStyle.cjs +4 -2
- package/dist/cjs/index.js +76 -18
- package/dist/cjs/preprocess.cjs +1 -0
- package/dist/cjs/without-animated.cjs +134 -43
- package/dist/esm/ActivityIndicator/__tests__/index-test.mjs +1 -1
- package/dist/esm/AppRegistry/__tests__/index-test.mjs +1 -1
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs +2 -2
- package/dist/esm/AppState/__tests__/index-test.mjs +1 -1
- package/dist/esm/Dimensions/__tests__/index-test.mjs +1 -1
- package/dist/esm/FlatList.mjs +4 -4
- package/dist/esm/ImageBackground/__tests__/index-test.mjs +2 -2
- package/dist/esm/Libraries/Pressability/Pressability.mjs +3 -0
- package/dist/esm/Libraries/Pressability/Pressability.mjs.map +1 -0
- package/dist/esm/Libraries/Pressability/usePressability.mjs +3 -0
- package/dist/esm/Libraries/Pressability/usePressability.mjs.map +1 -0
- package/dist/esm/Linking/__tests__/index-test.mjs +1 -1
- package/dist/esm/Modal/ModalContent.mjs +1 -1
- package/dist/esm/ScrollView/ScrollViewBase.mjs +9 -7
- package/dist/esm/ScrollView/ScrollViewBase.mjs.map +1 -1
- package/dist/esm/ScrollView/index.mjs +31 -0
- package/dist/esm/ScrollView/index.mjs.map +1 -1
- package/dist/esm/SectionList.mjs +2 -2
- package/dist/esm/TouchableOpacity.mjs +1 -1
- package/dist/esm/VirtualizedList.mjs +2 -2
- package/dist/esm/createElement/__tests__/index-test.mjs +1 -1
- package/dist/esm/createReactDOMStyle.mjs +2 -1
- package/dist/esm/createReactDOMStyle.mjs.map +1 -1
- package/dist/esm/index.js +54 -160
- package/dist/esm/index.js.map +1 -6
- package/dist/esm/preprocess.mjs +2 -2
- package/dist/esm/preprocess.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs +1 -1
- package/dist/esm/vendor/react-native/FlatList/index.mjs +4 -4
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs +1 -1
- package/dist/esm/vendor/react-native/SectionList/index.mjs +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs +4 -4
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs +1 -1
- package/dist/esm/without-animated.mjs +133 -42
- package/dist/esm/without-animated.mjs.map +1 -1
- package/package.json +34 -8
- package/src/Libraries/Pressability/Pressability.ts +2 -0
- package/src/Libraries/Pressability/usePressability.ts +2 -0
- package/src/ScrollView/ScrollViewBase.tsx +12 -7
- package/src/ScrollView/index.tsx +31 -0
- package/src/createReactDOMStyle.ts +4 -1
- package/src/preprocess.ts +1 -0
- package/src/without-animated.tsx +156 -27
- package/dist/cjs/AccessibilityInfo/index.js +0 -95
- package/dist/cjs/AccessibilityInfo/index.js.map +0 -6
- package/dist/cjs/ActivityIndicator/__tests__/index-test.js +0 -116
- package/dist/cjs/ActivityIndicator/__tests__/index-test.js.map +0 -6
- package/dist/cjs/ActivityIndicator/index.js +0 -109
- package/dist/cjs/ActivityIndicator/index.js.map +0 -6
- package/dist/cjs/Alert/index.js +0 -24
- package/dist/cjs/Alert/index.js.map +0 -6
- package/dist/cjs/AppRegistry/AppContainer.js +0 -41
- package/dist/cjs/AppRegistry/AppContainer.js.map +0 -6
- package/dist/cjs/AppRegistry/__tests__/index-test.js +0 -77
- package/dist/cjs/AppRegistry/__tests__/index-test.js.map +0 -6
- package/dist/cjs/AppRegistry/__tests__/index-test.node.js +0 -131
- package/dist/cjs/AppRegistry/__tests__/index-test.node.js.map +0 -6
- package/dist/cjs/AppRegistry/index.js +0 -90
- package/dist/cjs/AppRegistry/index.js.map +0 -6
- package/dist/cjs/AppRegistry/renderApplication.js +0 -43
- package/dist/cjs/AppRegistry/renderApplication.js.map +0 -6
- package/dist/cjs/AppState/__tests__/index-test.js +0 -33
- package/dist/cjs/AppState/__tests__/index-test.js.map +0 -6
- package/dist/cjs/AppState/index.js +0 -71
- package/dist/cjs/AppState/index.js.map +0 -6
- package/dist/cjs/Appearance/index.js +0 -40
- package/dist/cjs/Appearance/index.js.map +0 -6
- package/dist/cjs/BackHandler/index.js +0 -31
- package/dist/cjs/BackHandler/index.js.map +0 -6
- package/dist/cjs/Clipboard/index.js +0 -47
- package/dist/cjs/Clipboard/index.js.map +0 -6
- package/dist/cjs/DeviceEmitter.js +0 -22
- package/dist/cjs/DeviceEmitter.js.map +0 -6
- package/dist/cjs/DeviceInfo/index.js +0 -53
- package/dist/cjs/DeviceInfo/index.js.map +0 -6
- package/dist/cjs/Dimensions/__tests__/index-test.js +0 -51
- package/dist/cjs/Dimensions/__tests__/index-test.js.map +0 -6
- package/dist/cjs/Dimensions/index.js +0 -76
- package/dist/cjs/Dimensions/index.js.map +0 -6
- package/dist/cjs/FlatList.js +0 -194
- package/dist/cjs/FlatList.js.map +0 -6
- package/dist/cjs/I18nManager/index.js +0 -29
- package/dist/cjs/I18nManager/index.js.map +0 -6
- package/dist/cjs/Image/index.js +0 -254
- package/dist/cjs/Image/index.js.map +0 -6
- package/dist/cjs/Image/types.js +0 -14
- package/dist/cjs/Image/types.js.map +0 -6
- package/dist/cjs/ImageBackground/__tests__/index-test.js +0 -48
- package/dist/cjs/ImageBackground/__tests__/index-test.js.map +0 -6
- package/dist/cjs/ImageBackground/index.js +0 -55
- package/dist/cjs/ImageBackground/index.js.map +0 -6
- package/dist/cjs/InteractionManager/TaskQueue.js +0 -75
- package/dist/cjs/InteractionManager/TaskQueue.js.map +0 -6
- package/dist/cjs/InteractionManager/index.js +0 -94
- package/dist/cjs/InteractionManager/index.js.map +0 -6
- package/dist/cjs/Keyboard/index.js +0 -34
- package/dist/cjs/Keyboard/index.js.map +0 -6
- package/dist/cjs/KeyboardAvoidingView/index.js +0 -57
- package/dist/cjs/KeyboardAvoidingView/index.js.map +0 -6
- package/dist/cjs/Linking/__tests__/index-test.js +0 -38
- package/dist/cjs/Linking/__tests__/index-test.js.map +0 -6
- package/dist/cjs/Linking/index.js +0 -85
- package/dist/cjs/Linking/index.js.map +0 -6
- package/dist/cjs/LogBox/index.js +0 -32
- package/dist/cjs/LogBox/index.js.map +0 -6
- package/dist/cjs/Modal/ModalAnimation.js +0 -137
- package/dist/cjs/Modal/ModalAnimation.js.map +0 -6
- package/dist/cjs/Modal/ModalContent.js +0 -77
- package/dist/cjs/Modal/ModalContent.js.map +0 -6
- package/dist/cjs/Modal/ModalPortal.js +0 -42
- package/dist/cjs/Modal/ModalPortal.js.map +0 -6
- package/dist/cjs/Modal/index.js +0 -21
- package/dist/cjs/Modal/index.js.map +0 -6
- package/dist/cjs/NativeModules/index.js +0 -24
- package/dist/cjs/NativeModules/index.js.map +0 -6
- package/dist/cjs/PanResponder/index.js +0 -29
- package/dist/cjs/PanResponder/index.js.map +0 -6
- package/dist/cjs/PixelRatio/index.js +0 -52
- package/dist/cjs/PixelRatio/index.js.map +0 -6
- package/dist/cjs/Pressable/index.js +0 -141
- package/dist/cjs/Pressable/index.js.map +0 -6
- package/dist/cjs/RefreshControl/index.js +0 -41
- package/dist/cjs/RefreshControl/index.js.map +0 -6
- package/dist/cjs/SafeAreaView/index.js +0 -44
- package/dist/cjs/SafeAreaView/index.js.map +0 -6
- package/dist/cjs/ScrollView/ScrollViewBase.js +0 -125
- package/dist/cjs/ScrollView/ScrollViewBase.js.map +0 -6
- package/dist/cjs/ScrollView/index.js +0 -525
- package/dist/cjs/ScrollView/index.js.map +0 -6
- package/dist/cjs/SectionList.js +0 -30
- package/dist/cjs/SectionList.js.map +0 -6
- package/dist/cjs/Share/index.js +0 -55
- package/dist/cjs/Share/index.js.map +0 -6
- package/dist/cjs/StatusBar/index.js +0 -32
- package/dist/cjs/StatusBar/index.js.map +0 -6
- package/dist/cjs/Text/index.js +0 -153
- package/dist/cjs/Text/index.js.map +0 -6
- package/dist/cjs/Text/types.js +0 -14
- package/dist/cjs/Text/types.js.map +0 -6
- package/dist/cjs/TextInput/index.js +0 -269
- package/dist/cjs/TextInput/index.js.map +0 -6
- package/dist/cjs/TextInput/types.js +0 -14
- package/dist/cjs/TextInput/types.js.map +0 -6
- package/dist/cjs/TouchableNativeFeedback.js +0 -21
- package/dist/cjs/TouchableNativeFeedback.js.map +0 -6
- package/dist/cjs/TouchableOpacity.js +0 -122
- package/dist/cjs/TouchableOpacity.js.map +0 -6
- package/dist/cjs/TouchableWithoutFeedback.js +0 -89
- package/dist/cjs/TouchableWithoutFeedback.js.map +0 -6
- package/dist/cjs/UnimplementedView.js +0 -36
- package/dist/cjs/UnimplementedView.js.map +0 -6
- package/dist/cjs/Vibration/index.js +0 -30
- package/dist/cjs/Vibration/index.js.map +0 -6
- package/dist/cjs/View/index.js +0 -102
- package/dist/cjs/View/index.js.map +0 -6
- package/dist/cjs/View/types.js +0 -14
- package/dist/cjs/View/types.js.map +0 -6
- package/dist/cjs/VirtualizedList.js +0 -30
- package/dist/cjs/VirtualizedList.js.map +0 -6
- package/dist/cjs/codegenNativeCommand.js +0 -23
- package/dist/cjs/codegenNativeCommand.js.map +0 -6
- package/dist/cjs/codegenNativeComponent.js +0 -23
- package/dist/cjs/codegenNativeComponent.js.map +0 -6
- package/dist/cjs/createElement/__tests__/index-test.js +0 -536
- package/dist/cjs/createElement/__tests__/index-test.js.map +0 -6
- package/dist/cjs/createElement/index.js +0 -60
- package/dist/cjs/createElement/index.js.map +0 -6
- package/dist/cjs/createReactDOMStyle.js +0 -21
- package/dist/cjs/createReactDOMStyle.js.map +0 -6
- package/dist/cjs/modules/requestIdleCallback.js +0 -34
- package/dist/cjs/modules/requestIdleCallback.js.map +0 -6
- package/dist/cjs/preprocess.js +0 -24
- package/dist/cjs/preprocess.js.map +0 -6
- package/dist/cjs/render/index.js +0 -31
- package/dist/cjs/render/index.js.map +0 -6
- package/dist/cjs/styleTypes.js +0 -14
- package/dist/cjs/styleTypes.js.map +0 -6
- package/dist/cjs/types.js +0 -14
- package/dist/cjs/types.js.map +0 -6
- package/dist/cjs/useColorScheme/index.js +0 -39
- package/dist/cjs/useColorScheme/index.js.map +0 -6
- package/dist/cjs/useLocaleContext/index.js +0 -21
- package/dist/cjs/useLocaleContext/index.js.map +0 -6
- package/dist/cjs/useWindowDimensions/index.js +0 -40
- package/dist/cjs/useWindowDimensions/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/Animated.js +0 -32
- package/dist/cjs/vendor/react-native/Animated/Animated.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.js +0 -130
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.js +0 -432
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.js +0 -115
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.js +0 -2
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/Easing.js +0 -182
- package/dist/cjs/vendor/react-native/Animated/Easing.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js +0 -322
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.js +0 -90
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.js +0 -85
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/SpringConfig.js +0 -71
- package/dist/cjs/vendor/react-native/Animated/SpringConfig.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.js +0 -63
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.js +0 -59
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.js +0 -155
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.js +0 -80
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/bezier.js +0 -77
- package/dist/cjs/vendor/react-native/Animated/bezier.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.js +0 -32
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.js +0 -24
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.js +0 -32
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.js +0 -32
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.js +0 -24
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.js +0 -24
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js +0 -37
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.js +0 -52
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.js +0 -172
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js +0 -57
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.js +0 -54
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.js +0 -167
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.js +0 -52
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.js +0 -52
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.js +0 -134
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.js +0 -107
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.js +0 -95
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.js +0 -52
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.js +0 -69
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.js +0 -94
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.js +0 -181
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.js +0 -82
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.js +0 -66
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.js.map +0 -6
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.js +0 -75
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.js.map +0 -6
- package/dist/cjs/vendor/react-native/Batchinator/index.js +0 -51
- package/dist/cjs/vendor/react-native/Batchinator/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.js +0 -60
- package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.js.map +0 -6
- package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.js +0 -24
- package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.js.map +0 -6
- package/dist/cjs/vendor/react-native/FeatureFlags.js +0 -28
- package/dist/cjs/vendor/react-native/FeatureFlags.js.map +0 -6
- package/dist/cjs/vendor/react-native/FillRateHelper/index.js +0 -125
- package/dist/cjs/vendor/react-native/FillRateHelper/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/FlatList/index.js +0 -263
- package/dist/cjs/vendor/react-native/FlatList/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.js +0 -57
- package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/LayoutAnimation/index.js +0 -102
- package/dist/cjs/vendor/react-native/LayoutAnimation/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/PanResponder/index.js +0 -147
- package/dist/cjs/vendor/react-native/PanResponder/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/PooledClass/index.js +0 -39
- package/dist/cjs/vendor/react-native/PooledClass/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.js +0 -29
- package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.js.map +0 -6
- package/dist/cjs/vendor/react-native/SectionList/index.js +0 -87
- package/dist/cjs/vendor/react-native/SectionList/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/StaticContainer/index.js +0 -41
- package/dist/cjs/vendor/react-native/StaticContainer/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/StaticRenderer/index.js +0 -40
- package/dist/cjs/vendor/react-native/StaticRenderer/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.js +0 -119
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.js +0 -27
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.js.map +0 -6
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.js +0 -33
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.js.map +0 -6
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.js +0 -128
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.js.map +0 -6
- package/dist/cjs/vendor/react-native/Utilities/Platform.js +0 -23
- package/dist/cjs/vendor/react-native/Utilities/Platform.js.map +0 -6
- package/dist/cjs/vendor/react-native/Utilities/clamp.js +0 -26
- package/dist/cjs/vendor/react-native/Utilities/clamp.js.map +0 -6
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.js +0 -29
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.js.map +0 -6
- package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.js +0 -33
- package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.js.map +0 -6
- package/dist/cjs/vendor/react-native/Utilities/useRefEffect.js +0 -32
- package/dist/cjs/vendor/react-native/Utilities/useRefEffect.js.map +0 -6
- package/dist/cjs/vendor/react-native/ViewabilityHelper/index.js +0 -153
- package/dist/cjs/vendor/react-native/ViewabilityHelper/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/ViewabilityHelper.js +0 -145
- package/dist/cjs/vendor/react-native/ViewabilityHelper.js.map +0 -6
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.js +0 -86
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.js +0 -78
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.js.map +0 -6
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.js +0 -61
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.js.map +0 -6
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.js +0 -76
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.js.map +0 -6
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js +0 -160
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js.map +0 -6
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.js +0 -65
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.js.map +0 -6
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.js +0 -59
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.js.map +0 -6
- package/dist/cjs/vendor/react-native/VirtualizedList/index.js +0 -238
- package/dist/cjs/vendor/react-native/VirtualizedList/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.js +0 -119
- package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/deepDiffer/index.js +0 -49
- package/dist/cjs/vendor/react-native/deepDiffer/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/emitter/EventEmitter.js +0 -24
- package/dist/cjs/vendor/react-native/emitter/EventEmitter.js.map +0 -6
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.js +0 -2
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.js.map +0 -6
- package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.js +0 -48
- package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.js.map +0 -6
- package/dist/cjs/vendor/react-native/emitter/_EventEmitter.js +0 -128
- package/dist/cjs/vendor/react-native/emitter/_EventEmitter.js.map +0 -6
- package/dist/cjs/vendor/react-native/emitter/_EventSubscription.js +0 -38
- package/dist/cjs/vendor/react-native/emitter/_EventSubscription.js.map +0 -6
- package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.js +0 -77
- package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.js.map +0 -6
- package/dist/cjs/vendor/react-native/infoLog/index.js +0 -26
- package/dist/cjs/vendor/react-native/infoLog/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/useRefEffect.js +0 -32
- package/dist/cjs/vendor/react-native/useRefEffect.js.map +0 -6
- package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.js +0 -87
- package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.js.map +0 -6
- package/dist/cjs/without-animated.js +0 -179
- package/dist/cjs/without-animated.js.map +0 -6
- package/dist/esm/AccessibilityInfo/index.js +0 -79
- package/dist/esm/AccessibilityInfo/index.js.map +0 -6
- package/dist/esm/ActivityIndicator/__tests__/index-test.js +0 -102
- package/dist/esm/ActivityIndicator/__tests__/index-test.js.map +0 -6
- package/dist/esm/ActivityIndicator/index.js +0 -88
- package/dist/esm/ActivityIndicator/index.js.map +0 -6
- package/dist/esm/Alert/index.js +0 -8
- package/dist/esm/Alert/index.js.map +0 -6
- package/dist/esm/AppRegistry/AppContainer.js +0 -20
- package/dist/esm/AppRegistry/AppContainer.js.map +0 -6
- package/dist/esm/AppRegistry/__tests__/index-test.js +0 -59
- package/dist/esm/AppRegistry/__tests__/index-test.js.map +0 -6
- package/dist/esm/AppRegistry/__tests__/index-test.node.js +0 -116
- package/dist/esm/AppRegistry/__tests__/index-test.node.js.map +0 -6
- package/dist/esm/AppRegistry/index.js +0 -76
- package/dist/esm/AppRegistry/index.js.map +0 -6
- package/dist/esm/AppRegistry/renderApplication.js +0 -31
- package/dist/esm/AppRegistry/renderApplication.js.map +0 -6
- package/dist/esm/AppState/__tests__/index-test.js +0 -14
- package/dist/esm/AppState/__tests__/index-test.js.map +0 -6
- package/dist/esm/AppState/index.js +0 -55
- package/dist/esm/AppState/index.js.map +0 -6
- package/dist/esm/Appearance/index.js +0 -24
- package/dist/esm/Appearance/index.js.map +0 -6
- package/dist/esm/BackHandler/index.js +0 -15
- package/dist/esm/BackHandler/index.js.map +0 -6
- package/dist/esm/Clipboard/index.js +0 -31
- package/dist/esm/Clipboard/index.js.map +0 -6
- package/dist/esm/DeviceEmitter.js +0 -6
- package/dist/esm/DeviceEmitter.js.map +0 -6
- package/dist/esm/DeviceInfo/index.js +0 -38
- package/dist/esm/DeviceInfo/index.js.map +0 -6
- package/dist/esm/Dimensions/__tests__/index-test.js +0 -32
- package/dist/esm/Dimensions/__tests__/index-test.js.map +0 -6
- package/dist/esm/Dimensions/index.js +0 -60
- package/dist/esm/Dimensions/index.js.map +0 -6
- package/dist/esm/FlatList.js +0 -177
- package/dist/esm/FlatList.js.map +0 -6
- package/dist/esm/I18nManager/index.js +0 -13
- package/dist/esm/I18nManager/index.js.map +0 -6
- package/dist/esm/Image/index.js +0 -240
- package/dist/esm/Image/index.js.map +0 -6
- package/dist/esm/Image/types.js +0 -1
- package/dist/esm/Image/types.js.map +0 -6
- package/dist/esm/ImageBackground/__tests__/index-test.js +0 -32
- package/dist/esm/ImageBackground/__tests__/index-test.js.map +0 -6
- package/dist/esm/ImageBackground/index.js +0 -43
- package/dist/esm/ImageBackground/index.js.map +0 -6
- package/dist/esm/InteractionManager/TaskQueue.js +0 -59
- package/dist/esm/InteractionManager/TaskQueue.js.map +0 -6
- package/dist/esm/InteractionManager/index.js +0 -73
- package/dist/esm/InteractionManager/index.js.map +0 -6
- package/dist/esm/Keyboard/index.js +0 -18
- package/dist/esm/Keyboard/index.js.map +0 -6
- package/dist/esm/KeyboardAvoidingView/index.js +0 -35
- package/dist/esm/KeyboardAvoidingView/index.js.map +0 -6
- package/dist/esm/Linking/__tests__/index-test.js +0 -19
- package/dist/esm/Linking/__tests__/index-test.js.map +0 -6
- package/dist/esm/Linking/index.js +0 -69
- package/dist/esm/Linking/index.js.map +0 -6
- package/dist/esm/LogBox/index.js +0 -16
- package/dist/esm/LogBox/index.js.map +0 -6
- package/dist/esm/Modal/ModalAnimation.js +0 -116
- package/dist/esm/Modal/ModalAnimation.js.map +0 -6
- package/dist/esm/Modal/ModalContent.js +0 -55
- package/dist/esm/Modal/ModalContent.js.map +0 -6
- package/dist/esm/Modal/ModalPortal.js +0 -20
- package/dist/esm/Modal/ModalPortal.js.map +0 -6
- package/dist/esm/Modal/index.js +0 -5
- package/dist/esm/Modal/index.js.map +0 -6
- package/dist/esm/NativeModules/index.js +0 -8
- package/dist/esm/NativeModules/index.js.map +0 -6
- package/dist/esm/PanResponder/index.js +0 -5
- package/dist/esm/PanResponder/index.js.map +0 -6
- package/dist/esm/PixelRatio/index.js +0 -36
- package/dist/esm/PixelRatio/index.js.map +0 -6
- package/dist/esm/Pressable/index.js +0 -122
- package/dist/esm/Pressable/index.js.map +0 -6
- package/dist/esm/RefreshControl/index.js +0 -26
- package/dist/esm/RefreshControl/index.js.map +0 -6
- package/dist/esm/SafeAreaView/index.js +0 -23
- package/dist/esm/SafeAreaView/index.js.map +0 -6
- package/dist/esm/ScrollView/ScrollViewBase.js +0 -104
- package/dist/esm/ScrollView/ScrollViewBase.js.map +0 -6
- package/dist/esm/ScrollView/index.js +0 -515
- package/dist/esm/ScrollView/index.js.map +0 -6
- package/dist/esm/SectionList.js +0 -7
- package/dist/esm/SectionList.js.map +0 -6
- package/dist/esm/Share/index.js +0 -39
- package/dist/esm/Share/index.js.map +0 -6
- package/dist/esm/StatusBar/index.js +0 -16
- package/dist/esm/StatusBar/index.js.map +0 -6
- package/dist/esm/Text/index.js +0 -142
- package/dist/esm/Text/index.js.map +0 -6
- package/dist/esm/Text/types.js +0 -1
- package/dist/esm/Text/types.js.map +0 -6
- package/dist/esm/TextInput/index.js +0 -258
- package/dist/esm/TextInput/index.js.map +0 -6
- package/dist/esm/TextInput/types.js +0 -1
- package/dist/esm/TextInput/types.js.map +0 -6
- package/dist/esm/TouchableNativeFeedback.js +0 -5
- package/dist/esm/TouchableNativeFeedback.js.map +0 -6
- package/dist/esm/TouchableOpacity.js +0 -105
- package/dist/esm/TouchableOpacity.js.map +0 -6
- package/dist/esm/TouchableWithoutFeedback.js +0 -67
- package/dist/esm/TouchableWithoutFeedback.js.map +0 -6
- package/dist/esm/UnimplementedView.js +0 -14
- package/dist/esm/UnimplementedView.js.map +0 -6
- package/dist/esm/Vibration/index.js +0 -14
- package/dist/esm/Vibration/index.js.map +0 -6
- package/dist/esm/View/index.js +0 -90
- package/dist/esm/View/index.js.map +0 -6
- package/dist/esm/View/types.js +0 -1
- package/dist/esm/View/types.js.map +0 -6
- package/dist/esm/VirtualizedList.js +0 -7
- package/dist/esm/VirtualizedList.js.map +0 -6
- package/dist/esm/codegenNativeCommand.js +0 -7
- package/dist/esm/codegenNativeCommand.js.map +0 -6
- package/dist/esm/codegenNativeComponent.js +0 -7
- package/dist/esm/codegenNativeComponent.js.map +0 -6
- package/dist/esm/createElement/__tests__/index-test.js +0 -519
- package/dist/esm/createElement/__tests__/index-test.js.map +0 -6
- package/dist/esm/createElement/index.js +0 -48
- package/dist/esm/createElement/index.js.map +0 -6
- package/dist/esm/createReactDOMStyle.js +0 -5
- package/dist/esm/createReactDOMStyle.js.map +0 -6
- package/dist/esm/modules/requestIdleCallback.js +0 -18
- package/dist/esm/modules/requestIdleCallback.js.map +0 -6
- package/dist/esm/preprocess.js +0 -13
- package/dist/esm/preprocess.js.map +0 -6
- package/dist/esm/render/index.js +0 -15
- package/dist/esm/render/index.js.map +0 -6
- package/dist/esm/styleTypes.js +0 -1
- package/dist/esm/styleTypes.js.map +0 -6
- package/dist/esm/types.js +0 -1
- package/dist/esm/types.js.map +0 -6
- package/dist/esm/useColorScheme/index.js +0 -16
- package/dist/esm/useColorScheme/index.js.map +0 -6
- package/dist/esm/useLocaleContext/index.js +0 -5
- package/dist/esm/useLocaleContext/index.js.map +0 -6
- package/dist/esm/useWindowDimensions/index.js +0 -17
- package/dist/esm/useWindowDimensions/index.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/Animated.js +0 -24
- package/dist/esm/vendor/react-native/Animated/Animated.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.js +0 -116
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.js +0 -433
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.js +0 -105
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.js +0 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/Easing.js +0 -165
- package/dist/esm/vendor/react-native/Animated/Easing.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.js +0 -312
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.js +0 -66
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.js +0 -61
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/SpringConfig.js +0 -55
- package/dist/esm/vendor/react-native/Animated/SpringConfig.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/animations/Animation.js +0 -46
- package/dist/esm/vendor/react-native/Animated/animations/Animation.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.js +0 -43
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.js +0 -141
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.js +0 -66
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/bezier.js +0 -60
- package/dist/esm/vendor/react-native/Animated/bezier.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.js +0 -11
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.js +0 -10
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.js +0 -11
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.js +0 -11
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.js +0 -9
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.js +0 -9
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.js +0 -16
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.js +0 -37
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.js +0 -159
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js +0 -42
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.js +0 -40
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.js +0 -152
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.js +0 -37
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.js +0 -37
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.js +0 -118
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.js +0 -95
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.js +0 -83
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.js +0 -37
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.js +0 -55
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.js +0 -79
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.js +0 -167
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.js +0 -68
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.js +0 -50
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.js.map +0 -6
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.js +0 -63
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.js.map +0 -6
- package/dist/esm/vendor/react-native/Batchinator/index.js +0 -34
- package/dist/esm/vendor/react-native/Batchinator/index.js.map +0 -6
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.js +0 -44
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.js.map +0 -6
- package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.js +0 -8
- package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.js.map +0 -6
- package/dist/esm/vendor/react-native/FeatureFlags.js +0 -12
- package/dist/esm/vendor/react-native/FeatureFlags.js.map +0 -6
- package/dist/esm/vendor/react-native/FillRateHelper/index.js +0 -109
- package/dist/esm/vendor/react-native/FillRateHelper/index.js.map +0 -6
- package/dist/esm/vendor/react-native/FlatList/index.js +0 -247
- package/dist/esm/vendor/react-native/FlatList/index.js.map +0 -6
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.js +0 -40
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.js.map +0 -6
- package/dist/esm/vendor/react-native/LayoutAnimation/index.js +0 -86
- package/dist/esm/vendor/react-native/LayoutAnimation/index.js.map +0 -6
- package/dist/esm/vendor/react-native/PanResponder/index.js +0 -124
- package/dist/esm/vendor/react-native/PanResponder/index.js.map +0 -6
- package/dist/esm/vendor/react-native/PooledClass/index.js +0 -23
- package/dist/esm/vendor/react-native/PooledClass/index.js.map +0 -6
- package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.js +0 -13
- package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.js.map +0 -6
- package/dist/esm/vendor/react-native/SectionList/index.js +0 -65
- package/dist/esm/vendor/react-native/SectionList/index.js.map +0 -6
- package/dist/esm/vendor/react-native/StaticContainer/index.js +0 -16
- package/dist/esm/vendor/react-native/StaticContainer/index.js.map +0 -6
- package/dist/esm/vendor/react-native/StaticRenderer/index.js +0 -15
- package/dist/esm/vendor/react-native/StaticRenderer/index.js.map +0 -6
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.js +0 -103
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.js.map +0 -6
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.js +0 -10
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.js.map +0 -6
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.js +0 -16
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.js.map +0 -6
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.js +0 -111
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.js.map +0 -6
- package/dist/esm/vendor/react-native/Utilities/Platform.js +0 -7
- package/dist/esm/vendor/react-native/Utilities/Platform.js.map +0 -6
- package/dist/esm/vendor/react-native/Utilities/clamp.js +0 -9
- package/dist/esm/vendor/react-native/Utilities/clamp.js.map +0 -6
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.js +0 -12
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.js.map +0 -6
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.js +0 -17
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.js.map +0 -6
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.js +0 -16
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.js.map +0 -6
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.js +0 -136
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.js.map +0 -6
- package/dist/esm/vendor/react-native/ViewabilityHelper.js +0 -129
- package/dist/esm/vendor/react-native/ViewabilityHelper.js.map +0 -6
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.js +0 -70
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.js.map +0 -6
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.js +0 -62
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.js.map +0 -6
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.js +0 -45
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.js.map +0 -6
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.js +0 -53
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.js.map +0 -6
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js +0 -140
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js.map +0 -6
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.js +0 -44
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.js.map +0 -6
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.js +0 -43
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.js.map +0 -6
- package/dist/esm/vendor/react-native/VirtualizedList/index.js +0 -232
- package/dist/esm/vendor/react-native/VirtualizedList/index.js.map +0 -6
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.js +0 -97
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.js.map +0 -6
- package/dist/esm/vendor/react-native/deepDiffer/index.js +0 -32
- package/dist/esm/vendor/react-native/deepDiffer/index.js.map +0 -6
- package/dist/esm/vendor/react-native/emitter/EventEmitter.js +0 -7
- package/dist/esm/vendor/react-native/emitter/EventEmitter.js.map +0 -6
- package/dist/esm/vendor/react-native/emitter/EventSubscription.js +0 -1
- package/dist/esm/vendor/react-native/emitter/EventSubscription.js.map +0 -6
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.js +0 -31
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.js.map +0 -6
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.js +0 -115
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.js.map +0 -6
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.js +0 -21
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.js.map +0 -6
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.js +0 -60
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.js.map +0 -6
- package/dist/esm/vendor/react-native/infoLog/index.js +0 -9
- package/dist/esm/vendor/react-native/infoLog/index.js.map +0 -6
- package/dist/esm/vendor/react-native/useRefEffect.js +0 -16
- package/dist/esm/vendor/react-native/useRefEffect.js.map +0 -6
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.js +0 -71
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.js.map +0 -6
- package/dist/esm/without-animated.js +0 -229
- package/dist/esm/without-animated.js.map +0 -6
package/dist/cjs/Image/index.js
DELETED
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
-
mod
|
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
-
var Image_exports = {};
|
|
24
|
-
__export(Image_exports, {
|
|
25
|
-
Image: () => ImageWithStatics,
|
|
26
|
-
default: () => Image_default
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(Image_exports);
|
|
29
|
-
var React = __toESM(require("react"), 1), import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_react_native_web_internals2 = require("@tamagui/react-native-web-internals"), import_createElement = require("../createElement/index"), import_PixelRatio = require("../PixelRatio/index"), import_View = require("../View/index"), import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
-
const ERRORED = "ERRORED", LOADED = "LOADED", LOADING = "LOADING", IDLE = "IDLE";
|
|
31
|
-
let _filterId = 0;
|
|
32
|
-
const svgDataUriPattern = /^(data:image\/svg\+xml;utf8,)(.*)/;
|
|
33
|
-
function createTintColorSVG(tintColor, id) {
|
|
34
|
-
return tintColor && id != null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
35
|
-
"svg",
|
|
36
|
-
{
|
|
37
|
-
style: {
|
|
38
|
-
position: "absolute",
|
|
39
|
-
height: 0,
|
|
40
|
-
visibility: "hidden",
|
|
41
|
-
width: 0
|
|
42
|
-
},
|
|
43
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("filter", { id: `tint-${id}`, suppressHydrationWarning: !0, children: [
|
|
44
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("feFlood", { floodColor: `${tintColor}` }, tintColor),
|
|
45
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("feComposite", { in2: "SourceAlpha", operator: "atop" })
|
|
46
|
-
] }) })
|
|
47
|
-
}
|
|
48
|
-
) : null;
|
|
49
|
-
}
|
|
50
|
-
function getFlatStyle(style, blurRadius, filterId) {
|
|
51
|
-
const flatStyle = import_react_native_web_internals.StyleSheet.flatten(style), { filter, resizeMode, shadowOffset, tintColor } = flatStyle, filters = [];
|
|
52
|
-
let _filter = null;
|
|
53
|
-
if (filter && filters.push(filter), blurRadius && filters.push(`blur(${blurRadius}px)`), shadowOffset) {
|
|
54
|
-
const shadowString = (0, import_react_native_web_internals.createBoxShadowValue)(flatStyle);
|
|
55
|
-
shadowString && filters.push(`drop-shadow(${shadowString})`);
|
|
56
|
-
}
|
|
57
|
-
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];
|
|
58
|
-
}
|
|
59
|
-
function resolveAssetDimensions(source) {
|
|
60
|
-
if (typeof source == "number") {
|
|
61
|
-
const { height, width } = (0, import_react_native_web_internals2.getAssetByID)(source);
|
|
62
|
-
return { height, width };
|
|
63
|
-
} else if (source != null && !Array.isArray(source) && typeof source == "object") {
|
|
64
|
-
const { height, width } = source;
|
|
65
|
-
return { height, width };
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
function resolveAssetUri(source) {
|
|
69
|
-
let uri = null;
|
|
70
|
-
if (typeof source == "number") {
|
|
71
|
-
const asset = (0, import_react_native_web_internals2.getAssetByID)(source);
|
|
72
|
-
let scale = asset.scales[0];
|
|
73
|
-
if (asset.scales.length > 1) {
|
|
74
|
-
const preferredScale = import_PixelRatio.PixelRatio.get();
|
|
75
|
-
scale = asset.scales.reduce(
|
|
76
|
-
(prev, curr) => Math.abs(curr - preferredScale) < Math.abs(prev - preferredScale) ? curr : prev
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
const scaleSuffix = scale !== 1 ? `@${scale}x` : "";
|
|
80
|
-
uri = asset ? `${asset.httpServerLocation}/${asset.name}${scaleSuffix}.${asset.type}` : "";
|
|
81
|
-
} else typeof source == "string" ? uri = source : source && typeof source.uri == "string" && (uri = source.uri);
|
|
82
|
-
if (uri) {
|
|
83
|
-
const match = uri.match(svgDataUriPattern);
|
|
84
|
-
if (match) {
|
|
85
|
-
const [, prefix, svg] = match, encodedSvg = encodeURIComponent(svg);
|
|
86
|
-
return `${prefix}${encodedSvg}`;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return uri;
|
|
90
|
-
}
|
|
91
|
-
const Image = React.forwardRef((props, ref) => {
|
|
92
|
-
const {
|
|
93
|
-
accessibilityLabel,
|
|
94
|
-
blurRadius,
|
|
95
|
-
defaultSource,
|
|
96
|
-
draggable,
|
|
97
|
-
onError,
|
|
98
|
-
onLayout,
|
|
99
|
-
onLoad,
|
|
100
|
-
onLoadEnd,
|
|
101
|
-
onLoadStart,
|
|
102
|
-
pointerEvents,
|
|
103
|
-
source,
|
|
104
|
-
style,
|
|
105
|
-
...rest
|
|
106
|
-
} = props;
|
|
107
|
-
if (process.env.NODE_ENV !== "production" && props.children)
|
|
108
|
-
throw new Error(
|
|
109
|
-
"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."
|
|
110
|
-
);
|
|
111
|
-
const [state, updateState] = React.useState(() => {
|
|
112
|
-
const uri2 = resolveAssetUri(source);
|
|
113
|
-
return uri2 != null && import_react_native_web_internals2.ImageLoader.has(uri2) ? LOADED : IDLE;
|
|
114
|
-
}), [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(
|
|
115
|
-
{},
|
|
116
|
-
blurRadius,
|
|
117
|
-
filterRef.current
|
|
118
|
-
), 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.createElement)("img", {
|
|
119
|
-
alt: accessibilityLabel || "",
|
|
120
|
-
style: styles.accessibilityImage$raw,
|
|
121
|
-
draggable: draggable || !1,
|
|
122
|
-
ref: hiddenImageRef,
|
|
123
|
-
src: displayImageUri
|
|
124
|
-
}) : null;
|
|
125
|
-
function getBackgroundSize() {
|
|
126
|
-
if (hiddenImageRef.current != null && (resizeMode === "center" || resizeMode === "repeat")) {
|
|
127
|
-
const { naturalHeight, naturalWidth } = hiddenImageRef.current, { height, width } = layout;
|
|
128
|
-
if (naturalHeight && naturalWidth && height && width) {
|
|
129
|
-
const scaleFactor = Math.min(1, width / naturalWidth, height / naturalHeight), x = Math.ceil(scaleFactor * naturalWidth), y = Math.ceil(scaleFactor * naturalHeight);
|
|
130
|
-
return `${x}px ${y}px`;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
function handleLayout(e) {
|
|
135
|
-
if (resizeMode === "center" || resizeMode === "repeat" || onLayout) {
|
|
136
|
-
const { layout: layout2 } = e.nativeEvent;
|
|
137
|
-
onLayout && onLayout(e), updateLayout(layout2);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
const uri = resolveAssetUri(source);
|
|
141
|
-
return React.useEffect(() => {
|
|
142
|
-
abortPendingRequest(), uri != null && (updateState(LOADING), onLoadStart && onLoadStart(), requestRef.current = import_react_native_web_internals2.ImageLoader.load(
|
|
143
|
-
uri,
|
|
144
|
-
function(e) {
|
|
145
|
-
updateState(LOADED), onLoad && onLoad(e), onLoadEnd && onLoadEnd();
|
|
146
|
-
},
|
|
147
|
-
function() {
|
|
148
|
-
updateState(ERRORED), onError && onError({
|
|
149
|
-
nativeEvent: {
|
|
150
|
-
error: `Failed to load resource ${uri} (404)`
|
|
151
|
-
}
|
|
152
|
-
}), onLoadEnd && onLoadEnd();
|
|
153
|
-
}
|
|
154
|
-
));
|
|
155
|
-
function abortPendingRequest() {
|
|
156
|
-
requestRef.current != null && (import_react_native_web_internals2.ImageLoader.abort(requestRef.current), requestRef.current = null);
|
|
157
|
-
}
|
|
158
|
-
return abortPendingRequest;
|
|
159
|
-
}, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
160
|
-
import_View.View,
|
|
161
|
-
{
|
|
162
|
-
...rest,
|
|
163
|
-
"aria-label": accessibilityLabel,
|
|
164
|
-
onLayout: handleLayout,
|
|
165
|
-
pointerEvents,
|
|
166
|
-
ref,
|
|
167
|
-
style: [
|
|
168
|
-
style,
|
|
169
|
-
styles.root,
|
|
170
|
-
hasTextAncestor && styles.inline,
|
|
171
|
-
imageSizeStyle,
|
|
172
|
-
flatStyle
|
|
173
|
-
],
|
|
174
|
-
children: [
|
|
175
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
176
|
-
import_View.View,
|
|
177
|
-
{
|
|
178
|
-
style: [
|
|
179
|
-
...[].concat(styles.image),
|
|
180
|
-
resizeModeStyles[resizeMode],
|
|
181
|
-
{ backgroundImage, filter },
|
|
182
|
-
backgroundSize != null && { backgroundSize }
|
|
183
|
-
],
|
|
184
|
-
suppressHydrationWarning: !0
|
|
185
|
-
}
|
|
186
|
-
),
|
|
187
|
-
hiddenImage,
|
|
188
|
-
createTintColorSVG(tintColor, filterRef.current)
|
|
189
|
-
]
|
|
190
|
-
}
|
|
191
|
-
);
|
|
192
|
-
});
|
|
193
|
-
Image.displayName = "Image";
|
|
194
|
-
const ImageWithStatics = Image;
|
|
195
|
-
ImageWithStatics.getSize = function(uri, success, failure) {
|
|
196
|
-
import_react_native_web_internals2.ImageLoader.getSize(uri, success, failure);
|
|
197
|
-
};
|
|
198
|
-
ImageWithStatics.prefetch = function(uri) {
|
|
199
|
-
return import_react_native_web_internals2.ImageLoader.prefetch(uri);
|
|
200
|
-
};
|
|
201
|
-
ImageWithStatics.queryCache = function(uris) {
|
|
202
|
-
return import_react_native_web_internals2.ImageLoader.queryCache(uris);
|
|
203
|
-
};
|
|
204
|
-
const styles = import_react_native_web_internals.StyleSheet.create({
|
|
205
|
-
root: {
|
|
206
|
-
flexBasis: "auto",
|
|
207
|
-
overflow: "hidden",
|
|
208
|
-
zIndex: 0
|
|
209
|
-
},
|
|
210
|
-
inline: {
|
|
211
|
-
display: "inline-flex"
|
|
212
|
-
},
|
|
213
|
-
image: {
|
|
214
|
-
...import_react_native_web_internals.StyleSheet.absoluteFillObject,
|
|
215
|
-
backgroundColor: "transparent",
|
|
216
|
-
backgroundPosition: "center",
|
|
217
|
-
backgroundRepeat: "no-repeat",
|
|
218
|
-
backgroundSize: "cover",
|
|
219
|
-
height: "100%",
|
|
220
|
-
width: "100%",
|
|
221
|
-
zIndex: -1
|
|
222
|
-
},
|
|
223
|
-
accessibilityImage$raw: {
|
|
224
|
-
...import_react_native_web_internals.StyleSheet.absoluteFillObject,
|
|
225
|
-
height: "100%",
|
|
226
|
-
opacity: 0,
|
|
227
|
-
width: "100%",
|
|
228
|
-
zIndex: -1
|
|
229
|
-
}
|
|
230
|
-
}), resizeModeStyles = import_react_native_web_internals.StyleSheet.create({
|
|
231
|
-
center: {
|
|
232
|
-
backgroundSize: "auto"
|
|
233
|
-
},
|
|
234
|
-
contain: {
|
|
235
|
-
backgroundSize: "contain"
|
|
236
|
-
},
|
|
237
|
-
cover: {
|
|
238
|
-
backgroundSize: "cover"
|
|
239
|
-
},
|
|
240
|
-
none: {
|
|
241
|
-
backgroundPosition: "0",
|
|
242
|
-
backgroundSize: "auto"
|
|
243
|
-
},
|
|
244
|
-
repeat: {
|
|
245
|
-
backgroundPosition: "0",
|
|
246
|
-
backgroundRepeat: "repeat",
|
|
247
|
-
backgroundSize: "auto"
|
|
248
|
-
},
|
|
249
|
-
stretch: {
|
|
250
|
-
backgroundSize: "100% 100%"
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
var Image_default = ImageWithStatics;
|
|
254
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/Image/index.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,YAAuB,8BACvB,oCAIO,gDACPA,qCAA0C,gDAE1C,uBAA8B,mCAC9B,oBAA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pB,gBAAgB;AAAA,EAClB;AAAA,EACA,QAAQ;AAAA,IACN,oBAAoB;AAAA,IACpB,kBAAkB;AAAA,IAClB,gBAAgB;AAAA,EAClB;AAAA,EACA,SAAS;AAAA,IACP,gBAAgB;AAAA,EAClB;AACF,CAAC;AAGD,IAAO,gBAAQ;",
|
|
5
|
-
"names": ["import_react_native_web_internals", "uri", "layout"]
|
|
6
|
-
}
|
package/dist/cjs/Image/types.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
9
|
-
return to;
|
|
10
|
-
};
|
|
11
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
12
|
-
var types_exports = {};
|
|
13
|
-
module.exports = __toCommonJS(types_exports);
|
|
14
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
return to;
|
|
11
|
-
};
|
|
12
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
13
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
14
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
15
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
16
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
17
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
18
|
-
mod
|
|
19
|
-
));
|
|
20
|
-
var import_react = require("@testing-library/react"), import_Text = __toESM(require("../../Text"), 1), import__ = __toESM(require(".."), 1), import_jsx_runtime = require("react/jsx-runtime");
|
|
21
|
-
function findImage(container) {
|
|
22
|
-
return container.firstChild.firstChild;
|
|
23
|
-
}
|
|
24
|
-
describe("components/ImageBackground", () => {
|
|
25
|
-
describe('prop "children"', () => {
|
|
26
|
-
test("render child content", () => {
|
|
27
|
-
const { getByText } = (0, import_react.render)(
|
|
28
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default, { children: "Hello World!" }) })
|
|
29
|
-
);
|
|
30
|
-
expect(getByText("Hello World!")).toBeDefined();
|
|
31
|
-
});
|
|
32
|
-
}), describe('prop "imageStyle"', () => {
|
|
33
|
-
test("sets the style of the underlying Image", () => {
|
|
34
|
-
const imageStyle = { width: 40, height: 60 }, { container } = (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { imageStyle }));
|
|
35
|
-
expect(
|
|
36
|
-
findImage(container).getAttribute("style").includes("width: 40px; height: 60px;")
|
|
37
|
-
).toBe(!0);
|
|
38
|
-
});
|
|
39
|
-
}), describe('prop "style"', () => {
|
|
40
|
-
test("sets the style of the container View", () => {
|
|
41
|
-
const style = { margin: 40 }, { container } = (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { style }));
|
|
42
|
-
expect(container.firstChild.getAttribute("style")).toEqual(
|
|
43
|
-
"margin: 40px 40px 40px 40px;"
|
|
44
|
-
);
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
//# sourceMappingURL=index-test.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/ImageBackground/__tests__/index-test.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;AAOA,mBAAuB,mCAGvB,cAAiB,mCACjB,WAA4B,2BAWlB;AATV,SAAS,UAAU,WAAW;AAC5B,SAAO,UAAU,WAAW;AAC9B;AAEA,SAAS,8BAA8B,MAAM;AAC3C,WAAS,mBAAmB,MAAM;AAChC,SAAK,wBAAwB,MAAM;AACjC,YAAM,EAAE,UAAU,QAAI;AAAA,QACpB,4CAAC,SAAAA,SAAA,EACC,sDAAC,YAAAC,SAAA,EAAK,0BAAY,GACpB;AAAA,MACF;AACA,aAAO,UAAU,cAAc,CAAC,EAAE,YAAY;AAAA,IAChD,CAAC;AAAA,EACH,CAAC,GAED,SAAS,qBAAqB,MAAM;AAClC,SAAK,0CAA0C,MAAM;AACnD,YAAM,aAAa,EAAE,OAAO,IAAI,QAAQ,GAAG,GACrC,EAAE,UAAU,QAAI,qBAAO,4CAAC,SAAAD,SAAA,EAAgB,YAAwB,CAAE;AACxE;AAAA,QACE,UAAU,SAAS,EAAE,aAAa,OAAO,EAAE,SAAS,4BAA4B;AAAA,MAClF,EAAE,KAAK,EAAI;AAAA,IACb,CAAC;AAAA,EACH,CAAC,GAED,SAAS,gBAAgB,MAAM;AAC7B,SAAK,wCAAwC,MAAM;AACjD,YAAM,QAAQ,EAAE,QAAQ,GAAG,GACrB,EAAE,UAAU,QAAI,qBAAO,4CAAC,SAAAA,SAAA,EAAgB,OAAc,CAAE;AAC9D,aAAO,UAAU,WAAW,aAAa,OAAO,CAAC,EAAE;AAAA,QACjD;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH,CAAC;AACH,CAAC;",
|
|
5
|
-
"names": ["ImageBackground", "Text"]
|
|
6
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var ImageBackground_exports = {};
|
|
16
|
-
__export(ImageBackground_exports, {
|
|
17
|
-
ImageBackground: () => ImageBackground,
|
|
18
|
-
default: () => ImageBackground_default
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(ImageBackground_exports);
|
|
21
|
-
var import_react = require("react"), import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_Image = require("../Image/index"), import_View = require("../View/index"), import_jsx_runtime = require("react/jsx-runtime");
|
|
22
|
-
const emptyObject = {}, ImageBackground = (0, import_react.forwardRef)(
|
|
23
|
-
(props, forwardedRef) => {
|
|
24
|
-
const { children, style = emptyObject, imageStyle, imageRef, ...rest } = props, { height, width } = import_react_native_web_internals.StyleSheet.flatten(style);
|
|
25
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_View.View, { ref: forwardedRef, style, children: [
|
|
26
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
27
|
-
import_Image.Image,
|
|
28
|
-
{
|
|
29
|
-
...rest,
|
|
30
|
-
ref: imageRef,
|
|
31
|
-
style: [
|
|
32
|
-
{
|
|
33
|
-
// Temporary Workaround:
|
|
34
|
-
// Current (imperfect yet) implementation of <Image> overwrites width and height styles
|
|
35
|
-
// (which is not quite correct), and these styles conflict with explicitly set styles
|
|
36
|
-
// of <ImageBackground> and with our internal layout model here.
|
|
37
|
-
// So, we have to proxy/reapply these styles explicitly for actual <Image> component.
|
|
38
|
-
// This workaround should be removed after implementing proper support of
|
|
39
|
-
// intrinsic content size of the <Image>.
|
|
40
|
-
width,
|
|
41
|
-
height,
|
|
42
|
-
zIndex: -1
|
|
43
|
-
},
|
|
44
|
-
import_react_native_web_internals.StyleSheet.absoluteFill,
|
|
45
|
-
imageStyle
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
),
|
|
49
|
-
children
|
|
50
|
-
] });
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
ImageBackground.displayName = "ImageBackground";
|
|
54
|
-
var ImageBackground_default = ImageBackground;
|
|
55
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/ImageBackground/index.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,mBAA2B,kBAC3B,oCAA2B,gDAG3B,eAAsB,2BAEtB,cAAqB,0BAmBf;AAXN,MAAM,cAAc,CAAC,GAKf,sBAAkB;AAAA,EACtB,CAAC,OAAO,iBAAiB;AACvB,UAAM,EAAE,UAAU,QAAQ,aAAa,YAAY,UAAU,GAAG,KAAK,IAAI,OACnE,EAAE,QAAQ,MAAM,IAAI,6CAAW,QAAQ,KAAK;AAElD,WACE,6CAAC,oBAAK,KAAK,cAAc,OACvB;AAAA;AAAA,QAAC;AAAA;AAAA,UACE,GAAG;AAAA,UACJ,KAAK;AAAA,UACL,OAAO;AAAA,YACL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAQE;AAAA,cACA;AAAA,cACA,QAAQ;AAAA,YACV;AAAA,YACA,6CAAW;AAAA,YACX;AAAA,UACF;AAAA;AAAA,MACF;AAAA,MACC;AAAA,OACH;AAAA,EAEJ;AACF;AAEA,gBAAgB,cAAc;AAG9B,IAAO,0BAAQ;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var TaskQueue_exports = {};
|
|
16
|
-
__export(TaskQueue_exports, {
|
|
17
|
-
TaskQueue: () => TaskQueue
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(TaskQueue_exports);
|
|
20
|
-
var import_react_native_web_internals = require("@tamagui/react-native-web-internals");
|
|
21
|
-
class TaskQueue {
|
|
22
|
-
_queueStack;
|
|
23
|
-
_onMoreTasks;
|
|
24
|
-
constructor({ onMoreTasks }) {
|
|
25
|
-
this._onMoreTasks = onMoreTasks, this._queueStack = [{ tasks: [], popable: !0 }];
|
|
26
|
-
}
|
|
27
|
-
enqueue(task) {
|
|
28
|
-
this._getCurrentQueue().push(task);
|
|
29
|
-
}
|
|
30
|
-
enqueueTasks(tasks) {
|
|
31
|
-
tasks.forEach((task) => this.enqueue(task));
|
|
32
|
-
}
|
|
33
|
-
cancelTasks(tasksToCancel) {
|
|
34
|
-
this._queueStack = this._queueStack.map((queue) => ({
|
|
35
|
-
...queue,
|
|
36
|
-
tasks: queue.tasks.filter((task) => !tasksToCancel.includes(task))
|
|
37
|
-
})).filter((queue, idx) => queue.tasks.length > 0 || idx === 0);
|
|
38
|
-
}
|
|
39
|
-
hasTasksToProcess() {
|
|
40
|
-
return this._getCurrentQueue().length > 0;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Executes the next task in the queue.
|
|
44
|
-
*/
|
|
45
|
-
processNext() {
|
|
46
|
-
const queue = this._getCurrentQueue();
|
|
47
|
-
if (queue.length) {
|
|
48
|
-
const task = queue.shift();
|
|
49
|
-
try {
|
|
50
|
-
typeof task == "object" && "gen" in task ? this._genPromise(task) : typeof task == "object" && "run" in task ? task.run() : ((0, import_react_native_web_internals.invariant)(
|
|
51
|
-
typeof task == "function",
|
|
52
|
-
`Expected Function, SimpleTask, or PromiseTask, but got:
|
|
53
|
-
` + JSON.stringify(task, null, 2)
|
|
54
|
-
), task());
|
|
55
|
-
} catch (e) {
|
|
56
|
-
throw e instanceof Error && (e.message = "TaskQueue: Error with task " + (task?.name || "") + ": " + e.message), e;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
_getCurrentQueue() {
|
|
61
|
-
const stackIdx = this._queueStack.length - 1, queue = this._queueStack[stackIdx];
|
|
62
|
-
return queue.popable && queue.tasks.length === 0 && stackIdx > 0 ? (this._queueStack.pop(), this._getCurrentQueue()) : queue.tasks;
|
|
63
|
-
}
|
|
64
|
-
_genPromise(task) {
|
|
65
|
-
const stackIdx = this._queueStack.push({ tasks: [], popable: !1 }) - 1, stackItem = this._queueStack[stackIdx];
|
|
66
|
-
task.gen().then(() => {
|
|
67
|
-
stackItem.popable = !0, this.hasTasksToProcess() && this._onMoreTasks();
|
|
68
|
-
}).catch((ex) => {
|
|
69
|
-
setTimeout(() => {
|
|
70
|
-
throw ex instanceof Error && (ex.message = `TaskQueue: Error resolving Promise in task ${task.name}: ${ex.message}`), ex;
|
|
71
|
-
}, 0);
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=TaskQueue.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/InteractionManager/TaskQueue.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wCAA0B;AAmBnB,MAAM,UAAU;AAAA,EACb;AAAA,EACA;AAAA,EAER,YAAY,EAAE,YAAY,GAAgC;AACxD,SAAK,eAAe,aACpB,KAAK,cAAc,CAAC,EAAE,OAAO,CAAC,GAAG,SAAS,GAAK,CAAC;AAAA,EAClD;AAAA,EAEA,QAAQ,MAAkB;AACxB,SAAK,iBAAiB,EAAE,KAAK,IAAI;AAAA,EACnC;AAAA,EAEA,aAAa,OAAqB;AAChC,UAAM,QAAQ,CAAC,SAAS,KAAK,QAAQ,IAAI,CAAC;AAAA,EAC5C;AAAA,EAEA,YAAY,eAA6B;AACvC,SAAK,cAAc,KAAK,YACrB,IAAI,CAAC,WAAW;AAAA,MACf,GAAG;AAAA,MACH,OAAO,MAAM,MAAM,OAAO,CAAC,SAAS,CAAC,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A8C,KAAK,IAAI,KAAK,GAAG,OAAO,KAE/E;AAAA,MACR,GAAG,CAAC;AAAA,IACN,CAAC;AAAA,EACL;AACF;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
-
mod
|
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
-
var InteractionManager_exports = {};
|
|
24
|
-
__export(InteractionManager_exports, {
|
|
25
|
-
InteractionManager: () => InteractionManager
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(InteractionManager_exports);
|
|
28
|
-
var import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_EventEmitter = __toESM(require("../vendor/react-native/emitter/_EventEmitter"), 1), import_TaskQueue = require("./TaskQueue"), import_requestIdleCallback = require("../modules/requestIdleCallback");
|
|
29
|
-
const _emitter = new import_EventEmitter.default(), InteractionManager = {
|
|
30
|
-
Events: {
|
|
31
|
-
interactionStart: "interactionStart",
|
|
32
|
-
interactionComplete: "interactionComplete"
|
|
33
|
-
},
|
|
34
|
-
/**
|
|
35
|
-
* Schedule a function to run after all interactions have completed.
|
|
36
|
-
*/
|
|
37
|
-
runAfterInteractions(task) {
|
|
38
|
-
const tasks = [], promise = new Promise((resolve) => {
|
|
39
|
-
_scheduleUpdate(), task && tasks.push(task), tasks.push({
|
|
40
|
-
run: resolve,
|
|
41
|
-
name: "resolve " + (task && task.name || "?")
|
|
42
|
-
}), _taskQueue.enqueueTasks(tasks);
|
|
43
|
-
});
|
|
44
|
-
return {
|
|
45
|
-
then: promise.then.bind(promise),
|
|
46
|
-
done: promise.then.bind(promise),
|
|
47
|
-
cancel: () => {
|
|
48
|
-
_taskQueue.cancelTasks(tasks);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
},
|
|
52
|
-
/**
|
|
53
|
-
* Notify manager that an interaction has started.
|
|
54
|
-
*/
|
|
55
|
-
createInteractionHandle() {
|
|
56
|
-
_scheduleUpdate();
|
|
57
|
-
const handle = ++_inc;
|
|
58
|
-
return _addInteractionSet.add(handle), handle;
|
|
59
|
-
},
|
|
60
|
-
/**
|
|
61
|
-
* Notify manager that an interaction has completed.
|
|
62
|
-
*/
|
|
63
|
-
clearInteractionHandle(handle) {
|
|
64
|
-
(0, import_react_native_web_internals.invariant)(!!handle, "Must provide a handle to clear."), _scheduleUpdate(), _addInteractionSet.delete(handle), _deleteInteractionSet.add(handle);
|
|
65
|
-
},
|
|
66
|
-
addListener: _emitter.addListener.bind(_emitter),
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @param deadline
|
|
70
|
-
*/
|
|
71
|
-
setDeadline(deadline) {
|
|
72
|
-
_deadline = deadline;
|
|
73
|
-
}
|
|
74
|
-
}, _interactionSet = /* @__PURE__ */ new Set(), _addInteractionSet = /* @__PURE__ */ new Set(), _deleteInteractionSet = /* @__PURE__ */ new Set(), _taskQueue = new import_TaskQueue.TaskQueue({ onMoreTasks: _scheduleUpdate });
|
|
75
|
-
let _nextUpdateHandle = null, _inc = 0, _deadline = -1;
|
|
76
|
-
function _scheduleUpdate() {
|
|
77
|
-
_nextUpdateHandle || (_deadline > 0 ? _nextUpdateHandle = setTimeout(_processUpdate) : _nextUpdateHandle = (0, import_requestIdleCallback.requestIdleCallback)(_processUpdate));
|
|
78
|
-
}
|
|
79
|
-
function _processUpdate() {
|
|
80
|
-
_nextUpdateHandle = null;
|
|
81
|
-
const interactionCount = _interactionSet.size;
|
|
82
|
-
_addInteractionSet.forEach((handle) => _interactionSet.add(handle)), _deleteInteractionSet.forEach((handle) => _interactionSet.delete(handle));
|
|
83
|
-
const nextInteractionCount = _interactionSet.size;
|
|
84
|
-
if (interactionCount !== 0 && nextInteractionCount === 0 ? _emitter.emit(InteractionManager.Events.interactionComplete) : interactionCount === 0 && nextInteractionCount !== 0 && _emitter.emit(InteractionManager.Events.interactionStart), nextInteractionCount === 0) {
|
|
85
|
-
const begin = Date.now();
|
|
86
|
-
for (; _taskQueue.hasTasksToProcess(); )
|
|
87
|
-
if (_taskQueue.processNext(), _deadline > 0 && Date.now() - begin >= _deadline) {
|
|
88
|
-
_scheduleUpdate();
|
|
89
|
-
break;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
_addInteractionSet.clear(), _deleteInteractionSet.clear();
|
|
93
|
-
}
|
|
94
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/InteractionManager/index.tsx"],
|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,GACxC,aAAa,IAAI,2BAAU,EAAE,aAAa,gBAAgB,CAAC;AACjE,IAAI,oBAAmE,MACnE,OAAO,GACP,YAAY;AAKhB,SAAS,kBAAkB;AACzB,EAAK,sBACC,YAAY,IACd,oBAAoB,WAAW,cAAc,IAE7C,wBAAoB,gDAAoB,cAAc;AAG5D;AAKA,SAAS,iBAAiB;AACxB,sBAAoB;AACpB,QAAM,mBAAmB,gBAAgB;AACzC,qBAAmB,QAAQ,CAAC,WAAW,gBAAgB,IAAI,MAAM,CAAC,GAClE,sBAAsB,QAAQ,CAAC,WAAW,gBAAgB,OAAO,MAAM,CAAC;AACxE,QAAM,uBAAuB,gBAAgB;AAQ7C,MANI,qBAAqB,KAAK,yBAAyB,IACrD,SAAS,KAAK,mBAAmB,OAAO,mBAAmB,IAClD,qBAAqB,KAAK,yBAAyB,KAC5D,SAAS,KAAK,mBAAmB,OAAO,gBAAgB,GAGtD,yBAAyB,GAAG;AAG9B,UAAM,QAAQ,KAAK,IAAI;AACvB,WAAO,WAAW,kBAAkB;AAElC,UADA,WAAW,YAAY,GACnB,YAAY,KAAK,KAAK,IAAI,IAAI,SAAS,WAAW;AACpD,wBAAgB;AAChB;AAAA,MACF;AAAA,EAEJ;AACA,qBAAmB,MAAM,GACzB,sBAAsB,MAAM;AAC9B;",
|
|
5
|
-
"names": ["EventEmitter"]
|
|
6
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var Keyboard_exports = {};
|
|
16
|
-
__export(Keyboard_exports, {
|
|
17
|
-
Keyboard: () => Keyboard
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(Keyboard_exports);
|
|
20
|
-
var import_react_native_web_internals = require("@tamagui/react-native-web-internals");
|
|
21
|
-
const Keyboard = {
|
|
22
|
-
addListener() {
|
|
23
|
-
return { remove: () => {
|
|
24
|
-
} };
|
|
25
|
-
},
|
|
26
|
-
dismiss() {
|
|
27
|
-
(0, import_react_native_web_internals.dismissKeyboard)();
|
|
28
|
-
},
|
|
29
|
-
removeAllListeners() {
|
|
30
|
-
},
|
|
31
|
-
removeListener() {
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/Keyboard/index.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,wCAAgC;AAEzB,MAAM,WAAW;AAAA,EACtB,cAEE;AACA,WAAO,EAAE,QAAQ,MAAM;AAAA,IAAC,EAAE;AAAA,EAC5B;AAAA,EACA,UAAU;AACR,2DAAgB;AAAA,EAClB;AAAA,EACA,qBAAqB;AAAA,EAAC;AAAA,EACtB,iBAAiB;AAAA,EAAC;AACpB;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|