@tamagui/react-native-web-lite 1.114.4 → 1.115.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AccessibilityInfo/index.cjs +98 -0
- package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +188 -0
- package/dist/cjs/ActivityIndicator/index.cjs +127 -0
- package/dist/cjs/Alert/index.cjs +29 -0
- package/dist/cjs/AppRegistry/AppContainer.cjs +70 -0
- package/dist/cjs/AppRegistry/__tests__/{index-test.js → index-test.cjs} +22 -16
- package/dist/cjs/AppRegistry/__tests__/{index-test.node.js → index-test.node.cjs} +46 -22
- package/dist/cjs/AppRegistry/index.cjs +99 -0
- package/dist/cjs/AppRegistry/renderApplication.cjs +80 -0
- package/dist/cjs/AppState/__tests__/{index-test.js → index-test.cjs} +17 -16
- package/dist/cjs/AppState/index.cjs +69 -0
- package/dist/cjs/Appearance/index.cjs +54 -0
- package/dist/cjs/BackHandler/index.cjs +36 -0
- package/dist/cjs/Clipboard/{index.js → index.cjs} +17 -13
- package/dist/cjs/{DeviceEmitter.js → DeviceEmitter.cjs} +23 -14
- package/dist/cjs/DeviceInfo/{index.js → index.cjs} +37 -19
- package/dist/cjs/Dimensions/__tests__/{index-test.js → index-test.cjs} +18 -15
- package/dist/cjs/Dimensions/{index.js → index.cjs} +34 -28
- package/dist/cjs/I18nManager/index.cjs +35 -0
- package/dist/cjs/Image/index.cjs +292 -0
- package/dist/cjs/Image/types.cjs +16 -0
- package/dist/cjs/ImageBackground/__tests__/index-test.cjs +68 -0
- package/dist/cjs/ImageBackground/index.cjs +77 -0
- package/dist/cjs/Keyboard/index.cjs +39 -0
- package/dist/cjs/KeyboardAvoidingView/{index.js → index.cjs} +32 -21
- package/dist/cjs/Linking/__tests__/{index-test.js → index-test.cjs} +19 -17
- package/dist/cjs/Linking/{index.js → index.cjs} +18 -15
- package/dist/cjs/LogBox/index.cjs +32 -0
- package/dist/cjs/Modal/ModalAnimation.cjs +148 -0
- package/dist/cjs/Modal/ModalContent.cjs +86 -0
- package/dist/cjs/Modal/ModalFocusTrap.cjs +108 -0
- package/dist/cjs/Modal/ModalPortal.cjs +53 -0
- package/dist/cjs/Modal/index.cjs +97 -0
- package/dist/cjs/NativeModules/index.cjs +30 -0
- package/dist/cjs/PanResponder/Alternative.cjs +198 -0
- package/dist/cjs/PanResponder/Alternative.cjs.map +6 -0
- package/dist/cjs/PanResponder/{index.js → index.cjs} +23 -14
- package/dist/cjs/PixelRatio/{index.js → index.cjs} +23 -15
- package/dist/cjs/Pressable/index.cjs +143 -0
- package/dist/cjs/RefreshControl/{index.js → index.cjs} +27 -16
- package/dist/cjs/SafeAreaView/index.cjs +62 -0
- package/dist/cjs/ScrollView/ScrollViewBase.cjs +137 -0
- package/dist/cjs/ScrollView/{index.js → index.cjs} +123 -108
- package/dist/cjs/Share/index.cjs +49 -0
- package/dist/cjs/StatusBar/{index.js → index.cjs} +17 -13
- package/dist/cjs/Text/index.cjs +170 -0
- package/dist/cjs/Text/types.cjs +16 -0
- package/dist/cjs/TextInput/__tests__/index-test.cjs +709 -0
- package/dist/cjs/TextInput/index.cjs +277 -0
- package/dist/cjs/TextInput/types.cjs +16 -0
- package/dist/cjs/TouchableOpacity.cjs +117 -0
- package/dist/cjs/{TouchableWithoutFeedback.js → TouchableWithoutFeedback.cjs} +60 -58
- package/dist/cjs/UnimplementedView.cjs +47 -0
- package/dist/cjs/Vibration/index.cjs +37 -0
- package/dist/cjs/View/{index.js → index.cjs} +49 -28
- package/dist/cjs/View/types.cjs +16 -0
- package/dist/cjs/createElement/__tests__/index-test.cjs +765 -0
- package/dist/cjs/createElement/index.cjs +54 -0
- package/dist/cjs/createReactDOMStyle.cjs +27 -0
- package/dist/cjs/findNodeHandle.cjs +33 -0
- package/dist/cjs/{index.js → index.cjs} +77 -16
- package/dist/cjs/render/{index.js → index.cjs} +20 -14
- package/dist/cjs/styleTypes.cjs +16 -0
- package/dist/cjs/types.cjs +16 -0
- package/dist/cjs/useColorScheme/{index.js → index.cjs} +27 -16
- package/dist/cjs/useLocaleContext/index.cjs +26 -0
- package/dist/cjs/useWindowDimensions/{index.js → index.cjs} +28 -16
- package/dist/cjs/vendor/react-native/Animated/Animated.cjs +52 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +125 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +514 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +149 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +1 -0
- package/dist/cjs/vendor/react-native/Animated/{Easing.js → Easing.cjs} +31 -22
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +331 -0
- package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.js → NativeAnimatedModule.cjs} +23 -14
- package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.js → NativeAnimatedTurboModule.cjs} +23 -14
- package/dist/cjs/vendor/react-native/Animated/{SpringConfig.js → SpringConfig.cjs} +20 -12
- package/dist/cjs/vendor/react-native/Animated/animations/{Animation.js → Animation.cjs} +29 -24
- package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.js → DecayAnimation.cjs} +27 -16
- package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.js → SpringAnimation.cjs} +48 -34
- package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.js → TimingAnimation.cjs} +32 -26
- package/dist/cjs/vendor/react-native/Animated/{bezier.js → bezier.cjs} +38 -27
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +40 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +45 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +40 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +40 -0
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +61 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.js → AnimatedAddition.cjs} +26 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.js → AnimatedColor.cjs} +57 -40
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.js → AnimatedDiffClamp.cjs} +27 -16
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.js → AnimatedDivision.cjs} +29 -16
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.js → AnimatedInterpolation.cjs} +62 -72
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.js → AnimatedModulo.cjs} +25 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.js → AnimatedMultiplication.cjs} +26 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.js → AnimatedNode.cjs} +39 -39
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.js → AnimatedProps.cjs} +34 -24
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.js → AnimatedStyle.cjs} +35 -21
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.js → AnimatedSubtraction.cjs} +26 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.js → AnimatedTracking.cjs} +34 -32
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.js → AnimatedTransform.cjs} +32 -21
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.js → AnimatedValue.cjs} +43 -50
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.js → AnimatedValueXY.cjs} +38 -31
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.js → AnimatedWithChildren.cjs} +31 -21
- package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.js → useAnimatedProps.cjs} +44 -31
- package/dist/cjs/vendor/react-native/{FeatureFlags.js → FeatureFlags.cjs} +16 -11
- package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.js → RCTDeviceEventEmitter.cjs} +23 -14
- package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.js → index.cjs} +29 -25
- package/dist/cjs/vendor/react-native/PanResponder/index.cjs +272 -0
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +105 -0
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +1 -0
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +34 -0
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +18 -0
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +36 -0
- package/dist/cjs/vendor/react-native/emitter/{EventEmitter.js → EventEmitter.cjs} +24 -14
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +1 -0
- package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.js → _EmitterSubscription.cjs} +24 -15
- package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.js → _EventEmitter.cjs} +39 -39
- package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.js → _EventSubscription.cjs} +17 -11
- package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.js → _EventSubscriptionVendor.cjs} +21 -16
- package/dist/cjs/vendor/react-native/infoLog/index.cjs +31 -0
- package/dist/cjs/vendor/react-native/useRefEffect.cjs +32 -0
- package/dist/cjs/without-animated.cjs +155 -0
- package/package.json +9 -8
- package/dist/cjs/AccessibilityInfo/index.js +0 -96
- package/dist/cjs/ActivityIndicator/__tests__/index-test.js +0 -116
- package/dist/cjs/ActivityIndicator/index.js +0 -108
- package/dist/cjs/Alert/index.js +0 -25
- package/dist/cjs/AppRegistry/AppContainer.js +0 -41
- package/dist/cjs/AppRegistry/index.js +0 -98
- package/dist/cjs/AppRegistry/renderApplication.js +0 -51
- package/dist/cjs/AppState/index.js +0 -71
- package/dist/cjs/Appearance/index.js +0 -41
- package/dist/cjs/BackHandler/index.js +0 -32
- package/dist/cjs/I18nManager/index.js +0 -30
- package/dist/cjs/Image/index.js +0 -253
- package/dist/cjs/Image/types.js +0 -14
- package/dist/cjs/ImageBackground/__tests__/index-test.js +0 -48
- package/dist/cjs/ImageBackground/index.js +0 -62
- package/dist/cjs/Keyboard/index.js +0 -35
- package/dist/cjs/LogBox/index.js +0 -31
- package/dist/cjs/Modal/ModalAnimation.js +0 -137
- package/dist/cjs/Modal/ModalContent.js +0 -75
- package/dist/cjs/Modal/ModalFocusTrap.js +0 -105
- package/dist/cjs/Modal/ModalPortal.js +0 -43
- package/dist/cjs/Modal/index.js +0 -92
- package/dist/cjs/NativeModules/index.js +0 -25
- package/dist/cjs/Pressable/index.js +0 -140
- package/dist/cjs/SafeAreaView/index.js +0 -43
- package/dist/cjs/ScrollView/ScrollViewBase.js +0 -124
- package/dist/cjs/Share/index.js +0 -56
- package/dist/cjs/Text/index.js +0 -152
- package/dist/cjs/Text/types.js +0 -14
- package/dist/cjs/TextInput/__tests__/index-test.js +0 -422
- package/dist/cjs/TextInput/index.js +0 -260
- package/dist/cjs/TextInput/types.js +0 -14
- package/dist/cjs/TouchableOpacity.js +0 -123
- package/dist/cjs/UnimplementedView.js +0 -36
- package/dist/cjs/Vibration/index.js +0 -31
- package/dist/cjs/View/types.js +0 -14
- package/dist/cjs/createElement/__tests__/index-test.js +0 -536
- package/dist/cjs/createElement/index.js +0 -37
- package/dist/cjs/createReactDOMStyle.js +0 -21
- package/dist/cjs/findNodeHandle.js +0 -29
- package/dist/cjs/styleTypes.js +0 -14
- package/dist/cjs/types.js +0 -14
- package/dist/cjs/useLocaleContext/index.js +0 -21
- package/dist/cjs/vendor/react-native/Animated/Animated.js +0 -35
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.js +0 -143
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.js +0 -458
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.js +0 -126
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.js +0 -2
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js +0 -335
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.js +0 -29
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.js +0 -38
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.js +0 -29
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.js +0 -29
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js +0 -42
- package/dist/cjs/vendor/react-native/PanResponder/index.js +0 -272
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.js +0 -118
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.js +0 -2
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.js +0 -28
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.js +0 -15
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.js +0 -29
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.js +0 -2
- package/dist/cjs/vendor/react-native/infoLog/index.js +0 -25
- package/dist/cjs/vendor/react-native/useRefEffect.js +0 -30
- package/dist/cjs/without-animated.js +0 -95
- /package/dist/cjs/AccessibilityInfo/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/ActivityIndicator/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/ActivityIndicator/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Alert/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/{AppContainer.js.map → AppContainer.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/__tests__/{index-test.node.js.map → index-test.node.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/{renderApplication.js.map → renderApplication.cjs.map} +0 -0
- /package/dist/cjs/AppState/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/AppState/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Appearance/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/BackHandler/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Clipboard/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/{DeviceEmitter.js.map → DeviceEmitter.cjs.map} +0 -0
- /package/dist/cjs/DeviceInfo/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Dimensions/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/Dimensions/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/I18nManager/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Image/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Image/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/ImageBackground/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/ImageBackground/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Keyboard/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/KeyboardAvoidingView/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Linking/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/Linking/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/LogBox/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Modal/{ModalAnimation.js.map → ModalAnimation.cjs.map} +0 -0
- /package/dist/cjs/Modal/{ModalContent.js.map → ModalContent.cjs.map} +0 -0
- /package/dist/cjs/Modal/{ModalFocusTrap.js.map → ModalFocusTrap.cjs.map} +0 -0
- /package/dist/cjs/Modal/{ModalPortal.js.map → ModalPortal.cjs.map} +0 -0
- /package/dist/cjs/Modal/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/NativeModules/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/PanResponder/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/PixelRatio/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Pressable/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/RefreshControl/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/SafeAreaView/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/ScrollView/{ScrollViewBase.js.map → ScrollViewBase.cjs.map} +0 -0
- /package/dist/cjs/ScrollView/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Share/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/StatusBar/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Text/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Text/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/TextInput/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/TextInput/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/TextInput/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/{TouchableOpacity.js.map → TouchableOpacity.cjs.map} +0 -0
- /package/dist/cjs/{TouchableWithoutFeedback.js.map → TouchableWithoutFeedback.cjs.map} +0 -0
- /package/dist/cjs/{UnimplementedView.js.map → UnimplementedView.cjs.map} +0 -0
- /package/dist/cjs/Vibration/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/View/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/View/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/createElement/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/createElement/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/{createReactDOMStyle.js.map → createReactDOMStyle.cjs.map} +0 -0
- /package/dist/cjs/{findNodeHandle.js.map → findNodeHandle.cjs.map} +0 -0
- /package/dist/cjs/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/render/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/{styleTypes.js.map → styleTypes.cjs.map} +0 -0
- /package/dist/cjs/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/useColorScheme/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/useLocaleContext/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/useWindowDimensions/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{Animated.js.map → Animated.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedEvent.js.map → AnimatedEvent.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedImplementation.js.map → AnimatedImplementation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedMock.js.map → AnimatedMock.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedPlatformConfig.js.map → AnimatedPlatformConfig.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{Easing.js.map → Easing.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedHelper.js.map → NativeAnimatedHelper.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.js.map → NativeAnimatedModule.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.js.map → NativeAnimatedTurboModule.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{SpringConfig.js.map → SpringConfig.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{Animation.js.map → Animation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.js.map → DecayAnimation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.js.map → SpringAnimation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.js.map → TimingAnimation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{bezier.js.map → bezier.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedImage.js.map → AnimatedImage.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedScrollView.js.map → AnimatedScrollView.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedText.js.map → AnimatedText.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedView.js.map → AnimatedView.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{createAnimatedComponent.js.map → createAnimatedComponent.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.js.map → AnimatedAddition.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.js.map → AnimatedColor.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.js.map → AnimatedDiffClamp.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.js.map → AnimatedDivision.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.js.map → AnimatedInterpolation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.js.map → AnimatedModulo.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.js.map → AnimatedMultiplication.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.js.map → AnimatedNode.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.js.map → AnimatedProps.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.js.map → AnimatedStyle.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.js.map → AnimatedSubtraction.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.js.map → AnimatedTracking.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.js.map → AnimatedTransform.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.js.map → AnimatedValue.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.js.map → AnimatedValueXY.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.js.map → AnimatedWithChildren.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.js.map → useAnimatedProps.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/{FeatureFlags.js.map → FeatureFlags.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.js.map → RCTDeviceEventEmitter.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/PanResponder/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/TouchHistoryMath/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/TurboModule/{RCTExport.js.map → RCTExport.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/TurboModule/{TurboModuleRegistry.js.map → TurboModuleRegistry.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Types/{CoreEventTypes.js.map → CoreEventTypes.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Utilities/{setAndForwardRef.js.map → setAndForwardRef.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{EventEmitter.js.map → EventEmitter.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{EventSubscription.js.map → EventSubscription.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.js.map → _EmitterSubscription.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.js.map → _EventEmitter.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.js.map → _EventSubscription.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.js.map → _EventSubscriptionVendor.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/infoLog/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/{useRefEffect.js.map → useRefEffect.cjs.map} +0 -0
- /package/dist/cjs/{without-animated.js.map → without-animated.cjs.map} +0 -0
|
@@ -1,105 +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 ModalFocusTrap_exports = {};
|
|
24
|
-
__export(ModalFocusTrap_exports, {
|
|
25
|
-
default: () => ModalFocusTrap_default
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(ModalFocusTrap_exports);
|
|
28
|
-
var React = __toESM(require("react")), import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_createElement = __toESM(require("../createElement/index")), import_View = __toESM(require("../View")), FocusBracket = () => (0, import_createElement.default)("div", {
|
|
29
|
-
accessibilityRole: "none",
|
|
30
|
-
tabIndex: 0,
|
|
31
|
-
style: styles.focusBracket
|
|
32
|
-
});
|
|
33
|
-
function attemptFocus(element) {
|
|
34
|
-
if (!import_react_native_web_internals.canUseDOM)
|
|
35
|
-
return !1;
|
|
36
|
-
try {
|
|
37
|
-
element.focus();
|
|
38
|
-
} catch {
|
|
39
|
-
}
|
|
40
|
-
return document.activeElement === element;
|
|
41
|
-
}
|
|
42
|
-
function focusFirstDescendant(element) {
|
|
43
|
-
for (var i = 0; i < element.childNodes.length; i++) {
|
|
44
|
-
var child = element.childNodes[i];
|
|
45
|
-
if (attemptFocus(child) || focusFirstDescendant(child))
|
|
46
|
-
return !0;
|
|
47
|
-
}
|
|
48
|
-
return !1;
|
|
49
|
-
}
|
|
50
|
-
function focusLastDescendant(element) {
|
|
51
|
-
for (var i = element.childNodes.length - 1; i >= 0; i--) {
|
|
52
|
-
var child = element.childNodes[i];
|
|
53
|
-
if (attemptFocus(child) || focusLastDescendant(child))
|
|
54
|
-
return !0;
|
|
55
|
-
}
|
|
56
|
-
return !1;
|
|
57
|
-
}
|
|
58
|
-
var ModalFocusTrap = (_ref) => {
|
|
59
|
-
var active = _ref.active, children = _ref.children, trapElementRef = React.useRef(), focusRef = React.useRef({
|
|
60
|
-
trapFocusInProgress: !1,
|
|
61
|
-
lastFocusedElement: null
|
|
62
|
-
});
|
|
63
|
-
return React.useEffect(() => {
|
|
64
|
-
if (import_react_native_web_internals.canUseDOM) {
|
|
65
|
-
var trapFocus = () => {
|
|
66
|
-
if (!(trapElementRef.current == null || focusRef.current.trapFocusInProgress || !active)) {
|
|
67
|
-
try {
|
|
68
|
-
if (focusRef.current.trapFocusInProgress = !0, document.activeElement instanceof Node && !trapElementRef.current.contains(document.activeElement)) {
|
|
69
|
-
var hasFocused = focusFirstDescendant(trapElementRef.current);
|
|
70
|
-
focusRef.current.lastFocusedElement === document.activeElement && (hasFocused = focusLastDescendant(trapElementRef.current)), !hasFocused && trapElementRef.current != null && document.activeElement && import_react_native_web_internals.UIManager.focus(trapElementRef.current);
|
|
71
|
-
}
|
|
72
|
-
} finally {
|
|
73
|
-
focusRef.current.trapFocusInProgress = !1;
|
|
74
|
-
}
|
|
75
|
-
focusRef.current.lastFocusedElement = document.activeElement;
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
return trapFocus(), document.addEventListener("focus", trapFocus, !0), () => document.removeEventListener("focus", trapFocus, !0);
|
|
79
|
-
}
|
|
80
|
-
}, [active]), React.useEffect(function() {
|
|
81
|
-
if (import_react_native_web_internals.canUseDOM) {
|
|
82
|
-
var lastFocusedElementOutsideTrap = document.activeElement;
|
|
83
|
-
return function() {
|
|
84
|
-
lastFocusedElementOutsideTrap && document.contains(lastFocusedElementOutsideTrap) && import_react_native_web_internals.UIManager.focus(lastFocusedElementOutsideTrap);
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
}, []), /* @__PURE__ */ React.createElement(
|
|
88
|
-
React.Fragment,
|
|
89
|
-
null,
|
|
90
|
-
/* @__PURE__ */ React.createElement(FocusBracket, null),
|
|
91
|
-
/* @__PURE__ */ React.createElement(
|
|
92
|
-
import_View.default,
|
|
93
|
-
{
|
|
94
|
-
ref: trapElementRef
|
|
95
|
-
},
|
|
96
|
-
children
|
|
97
|
-
),
|
|
98
|
-
/* @__PURE__ */ React.createElement(FocusBracket, null)
|
|
99
|
-
);
|
|
100
|
-
}, ModalFocusTrap_default = ModalFocusTrap, styles = import_react_native_web_internals.StyleSheet.create({
|
|
101
|
-
focusBracket: {
|
|
102
|
-
outlineStyle: "none"
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
//# sourceMappingURL=ModalFocusTrap.js.map
|
|
@@ -1,43 +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 ModalPortal_exports = {};
|
|
24
|
-
__export(ModalPortal_exports, {
|
|
25
|
-
default: () => ModalPortal_default
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(ModalPortal_exports);
|
|
28
|
-
var React = __toESM(require("react")), import_react_dom = __toESM(require("react-dom")), import_react_native_web_internals = require("@tamagui/react-native-web-internals");
|
|
29
|
-
function ModalPortal(props) {
|
|
30
|
-
var children = props.children, elementRef = React.useRef(null);
|
|
31
|
-
if (import_react_native_web_internals.canUseDOM && !elementRef.current) {
|
|
32
|
-
var element = document.createElement("div");
|
|
33
|
-
element && document.body && (document.body.appendChild(element), elementRef.current = element);
|
|
34
|
-
}
|
|
35
|
-
return React.useEffect(() => {
|
|
36
|
-
if (import_react_native_web_internals.canUseDOM)
|
|
37
|
-
return () => {
|
|
38
|
-
document.body && elementRef.current && (document.body.removeChild(elementRef.current), elementRef.current = null);
|
|
39
|
-
};
|
|
40
|
-
}, []), elementRef.current && import_react_native_web_internals.canUseDOM ? /* @__PURE__ */ import_react_dom.default.createPortal(children, elementRef.current) : null;
|
|
41
|
-
}
|
|
42
|
-
var ModalPortal_default = ModalPortal;
|
|
43
|
-
//# sourceMappingURL=ModalPortal.js.map
|
package/dist/cjs/Modal/index.js
DELETED
|
@@ -1,92 +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 Modal_exports = {};
|
|
24
|
-
__export(Modal_exports, {
|
|
25
|
-
default: () => Modal_default
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(Modal_exports);
|
|
28
|
-
var React = __toESM(require("react")), import_ModalAnimation = __toESM(require("./ModalAnimation")), import_ModalContent = __toESM(require("./ModalContent")), import_ModalFocusTrap = __toESM(require("./ModalFocusTrap")), import_ModalPortal = __toESM(require("./ModalPortal")), uniqueModalIdentifier = 0, activeModalStack = [], activeModalListeners = {};
|
|
29
|
-
function notifyActiveModalListeners() {
|
|
30
|
-
if (activeModalStack.length !== 0) {
|
|
31
|
-
var activeModalId = activeModalStack[activeModalStack.length - 1];
|
|
32
|
-
activeModalStack.forEach((modalId) => {
|
|
33
|
-
modalId in activeModalListeners && activeModalListeners[modalId](modalId === activeModalId);
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function removeActiveModal(modalId) {
|
|
38
|
-
modalId in activeModalListeners && (activeModalListeners[modalId](!1), delete activeModalListeners[modalId]);
|
|
39
|
-
var index = activeModalStack.indexOf(modalId);
|
|
40
|
-
index !== -1 && (activeModalStack.splice(index, 1), notifyActiveModalListeners());
|
|
41
|
-
}
|
|
42
|
-
function addActiveModal(modalId, listener) {
|
|
43
|
-
removeActiveModal(modalId), activeModalStack.push(modalId), activeModalListeners[modalId] = listener, notifyActiveModalListeners();
|
|
44
|
-
}
|
|
45
|
-
var Modal = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
46
|
-
const {
|
|
47
|
-
animationType,
|
|
48
|
-
children,
|
|
49
|
-
onDismiss,
|
|
50
|
-
onRequestClose,
|
|
51
|
-
onShow,
|
|
52
|
-
transparent,
|
|
53
|
-
visible = !0,
|
|
54
|
-
...rest
|
|
55
|
-
} = props;
|
|
56
|
-
var modalId = React.useMemo(() => uniqueModalIdentifier++, []), _React$useState = React.useState(!1), isActive = _React$useState[0], setIsActive = _React$useState[1], onDismissCallback = React.useCallback(() => {
|
|
57
|
-
removeActiveModal(modalId), onDismiss && onDismiss();
|
|
58
|
-
}, [modalId, onDismiss]), onShowCallback = React.useCallback(() => {
|
|
59
|
-
addActiveModal(modalId, setIsActive), onShow && onShow();
|
|
60
|
-
}, [modalId, onShow]);
|
|
61
|
-
return React.useEffect(() => () => removeActiveModal(modalId), [modalId]), /* @__PURE__ */ React.createElement(
|
|
62
|
-
import_ModalPortal.default,
|
|
63
|
-
null,
|
|
64
|
-
/* @__PURE__ */ React.createElement(
|
|
65
|
-
import_ModalAnimation.default,
|
|
66
|
-
{
|
|
67
|
-
animationType,
|
|
68
|
-
onDismiss: onDismissCallback,
|
|
69
|
-
onShow: onShowCallback,
|
|
70
|
-
visible
|
|
71
|
-
},
|
|
72
|
-
/* @__PURE__ */ React.createElement(
|
|
73
|
-
import_ModalFocusTrap.default,
|
|
74
|
-
{
|
|
75
|
-
active: isActive
|
|
76
|
-
},
|
|
77
|
-
/* @__PURE__ */ React.createElement(
|
|
78
|
-
import_ModalContent.default,
|
|
79
|
-
{
|
|
80
|
-
...rest,
|
|
81
|
-
active: isActive,
|
|
82
|
-
onRequestClose,
|
|
83
|
-
ref: forwardedRef,
|
|
84
|
-
transparent
|
|
85
|
-
},
|
|
86
|
-
children
|
|
87
|
-
)
|
|
88
|
-
)
|
|
89
|
-
)
|
|
90
|
-
);
|
|
91
|
-
}), Modal_default = Modal;
|
|
92
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,25 +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 NativeModules_exports = {};
|
|
16
|
-
__export(NativeModules_exports, {
|
|
17
|
-
default: () => NativeModules_default
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(NativeModules_exports);
|
|
20
|
-
var import_react_native_web_internals = require("@tamagui/react-native-web-internals");
|
|
21
|
-
const NativeModules = {
|
|
22
|
-
UIManager: import_react_native_web_internals.UIManager
|
|
23
|
-
};
|
|
24
|
-
var NativeModules_default = NativeModules;
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,140 +0,0 @@
|
|
|
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 Pressable_exports = {};
|
|
25
|
-
__export(Pressable_exports, {
|
|
26
|
-
default: () => Pressable_default
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(Pressable_exports);
|
|
29
|
-
var import_react_native_use_pressable = require("@tamagui/react-native-use-pressable"), React = __toESM(require("react")), import_react = 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_View = __toESM(require("../View/index")), import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
-
function Pressable(props, forwardedRef) {
|
|
31
|
-
const {
|
|
32
|
-
children,
|
|
33
|
-
delayLongPress,
|
|
34
|
-
delayPressIn,
|
|
35
|
-
delayPressOut,
|
|
36
|
-
disabled,
|
|
37
|
-
focusable,
|
|
38
|
-
onBlur,
|
|
39
|
-
onContextMenu,
|
|
40
|
-
onFocus,
|
|
41
|
-
onHoverIn,
|
|
42
|
-
onHoverOut,
|
|
43
|
-
onKeyDown,
|
|
44
|
-
onLongPress,
|
|
45
|
-
onPress,
|
|
46
|
-
onPressMove,
|
|
47
|
-
onPressIn,
|
|
48
|
-
onPressOut,
|
|
49
|
-
style,
|
|
50
|
-
testOnly_hovered,
|
|
51
|
-
testOnly_pressed,
|
|
52
|
-
...rest
|
|
53
|
-
} = props, [hovered, setHovered] = useForceableState(testOnly_hovered === !0), [focused, setFocused] = useForceableState(!1), [pressed, setPressed] = useForceableState(testOnly_pressed === !0), hostRef = (0, import_react.useRef)(null), setRef = (0, import_react_native_web_internals2.useMergeRefs)(forwardedRef, hostRef), pressConfig = (0, import_react.useMemo)(
|
|
54
|
-
() => ({
|
|
55
|
-
delayLongPress,
|
|
56
|
-
delayPressStart: delayPressIn,
|
|
57
|
-
delayPressEnd: delayPressOut,
|
|
58
|
-
disabled,
|
|
59
|
-
onLongPress,
|
|
60
|
-
onPress,
|
|
61
|
-
onPressChange: setPressed,
|
|
62
|
-
onPressStart: onPressIn,
|
|
63
|
-
onPressMove,
|
|
64
|
-
onPressEnd: onPressOut
|
|
65
|
-
}),
|
|
66
|
-
[
|
|
67
|
-
delayLongPress,
|
|
68
|
-
delayPressIn,
|
|
69
|
-
delayPressOut,
|
|
70
|
-
disabled,
|
|
71
|
-
onLongPress,
|
|
72
|
-
onPress,
|
|
73
|
-
onPressIn,
|
|
74
|
-
onPressMove,
|
|
75
|
-
onPressOut,
|
|
76
|
-
setPressed
|
|
77
|
-
]
|
|
78
|
-
), pressEventHandlers = (0, import_react_native_use_pressable.usePressEvents)(hostRef, pressConfig), { onContextMenu: onContextMenuPress, onKeyDown: onKeyDownPress } = pressEventHandlers;
|
|
79
|
-
(0, import_react_native_web_internals2.useHover)(hostRef, {
|
|
80
|
-
contain: !0,
|
|
81
|
-
disabled,
|
|
82
|
-
onHoverChange: setHovered,
|
|
83
|
-
onHoverStart: onHoverIn,
|
|
84
|
-
onHoverEnd: onHoverOut
|
|
85
|
-
});
|
|
86
|
-
const interactionState = { hovered, focused, pressed }, blurHandler = React.useCallback(
|
|
87
|
-
(e) => {
|
|
88
|
-
disabled || e.nativeEvent.target === hostRef.current && (setFocused(!1), onBlur?.(e));
|
|
89
|
-
},
|
|
90
|
-
[disabled, hostRef, setFocused, onBlur]
|
|
91
|
-
), focusHandler = React.useCallback(
|
|
92
|
-
(e) => {
|
|
93
|
-
disabled || e.nativeEvent.target === hostRef.current && (setFocused(!0), onFocus?.(e));
|
|
94
|
-
},
|
|
95
|
-
[disabled, hostRef, setFocused, onFocus]
|
|
96
|
-
), contextMenuHandler = React.useCallback(
|
|
97
|
-
(e) => {
|
|
98
|
-
onContextMenuPress?.(e), onContextMenu?.(e);
|
|
99
|
-
},
|
|
100
|
-
[onContextMenu, onContextMenuPress]
|
|
101
|
-
), keyDownHandler = React.useCallback(
|
|
102
|
-
(e) => {
|
|
103
|
-
onKeyDownPress?.(e), onKeyDown?.(e);
|
|
104
|
-
},
|
|
105
|
-
[onKeyDown, onKeyDownPress]
|
|
106
|
-
);
|
|
107
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
108
|
-
import_View.default,
|
|
109
|
-
{
|
|
110
|
-
...rest,
|
|
111
|
-
...pressEventHandlers,
|
|
112
|
-
accessibilityDisabled: disabled,
|
|
113
|
-
focusable: !disabled && focusable !== !1,
|
|
114
|
-
onBlur: blurHandler,
|
|
115
|
-
onContextMenu: contextMenuHandler,
|
|
116
|
-
onFocus: focusHandler,
|
|
117
|
-
onKeyDown: keyDownHandler,
|
|
118
|
-
pointerEvents: disabled ? "none" : rest.pointerEvents,
|
|
119
|
-
ref: setRef,
|
|
120
|
-
style: [
|
|
121
|
-
!disabled && styles.root,
|
|
122
|
-
typeof style == "function" ? style(interactionState) : style
|
|
123
|
-
],
|
|
124
|
-
children: typeof children == "function" ? children(interactionState) : children
|
|
125
|
-
}
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
function useForceableState(forced) {
|
|
129
|
-
const [bool, setBool] = (0, import_react.useState)(!1);
|
|
130
|
-
return [bool || forced, setBool];
|
|
131
|
-
}
|
|
132
|
-
const styles = import_react_native_web_internals.StyleSheet.create({
|
|
133
|
-
root: {
|
|
134
|
-
cursor: "pointer",
|
|
135
|
-
touchAction: "manipulation"
|
|
136
|
-
}
|
|
137
|
-
}), MemoedPressable = (0, import_react.memo)((0, import_react.forwardRef)(Pressable));
|
|
138
|
-
MemoedPressable.displayName = "Pressable";
|
|
139
|
-
var Pressable_default = MemoedPressable;
|
|
140
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,43 +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 SafeAreaView_exports = {};
|
|
24
|
-
__export(SafeAreaView_exports, {
|
|
25
|
-
default: () => SafeAreaView_default
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(SafeAreaView_exports);
|
|
28
|
-
var React = __toESM(require("react")), import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_View = __toESM(require("../View/index")), import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
-
const cssFunction = import_react_native_web_internals.canUseDOM && window.CSS && window.CSS.supports && window.CSS.supports("top: constant(safe-area-inset-top)") ? "constant" : "env", SafeAreaView = React.forwardRef((props, ref) => {
|
|
30
|
-
const { style, ...rest } = props;
|
|
31
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_View.default, { ...rest, ref, style: import_react_native_web_internals.StyleSheet.compose(styles.root, style) });
|
|
32
|
-
});
|
|
33
|
-
SafeAreaView.displayName = "SafeAreaView";
|
|
34
|
-
const styles = import_react_native_web_internals.StyleSheet.create({
|
|
35
|
-
root: {
|
|
36
|
-
paddingTop: `${cssFunction}(safe-area-inset-top)`,
|
|
37
|
-
paddingRight: `${cssFunction}(safe-area-inset-right)`,
|
|
38
|
-
paddingBottom: `${cssFunction}(safe-area-inset-bottom)`,
|
|
39
|
-
paddingLeft: `${cssFunction}(safe-area-inset-left)`
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
var SafeAreaView_default = SafeAreaView;
|
|
43
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,124 +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 ScrollViewBase_exports = {};
|
|
24
|
-
__export(ScrollViewBase_exports, {
|
|
25
|
-
default: () => ScrollViewBase_default
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(ScrollViewBase_exports);
|
|
28
|
-
var import_react_native_web_internals = require("@tamagui/react-native-web-internals"), React = __toESM(require("react")), import_View = __toESM(require("../View/index")), import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
-
function normalizeScrollEvent(e) {
|
|
30
|
-
return {
|
|
31
|
-
nativeEvent: {
|
|
32
|
-
contentOffset: {
|
|
33
|
-
get x() {
|
|
34
|
-
return e.target.scrollLeft;
|
|
35
|
-
},
|
|
36
|
-
get y() {
|
|
37
|
-
return e.target.scrollTop;
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
contentSize: {
|
|
41
|
-
get height() {
|
|
42
|
-
return e.target.scrollHeight;
|
|
43
|
-
},
|
|
44
|
-
get width() {
|
|
45
|
-
return e.target.scrollWidth;
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
layoutMeasurement: {
|
|
49
|
-
get height() {
|
|
50
|
-
return e.target.offsetHeight;
|
|
51
|
-
},
|
|
52
|
-
get width() {
|
|
53
|
-
return e.target.offsetWidth;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
timeStamp: Date.now()
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function shouldEmitScrollEvent(lastTick, eventThrottle) {
|
|
61
|
-
const timeSinceLastTick = Date.now() - lastTick;
|
|
62
|
-
return eventThrottle > 0 && timeSinceLastTick >= eventThrottle;
|
|
63
|
-
}
|
|
64
|
-
const ScrollViewBase = React.forwardRef((props, forwardedRef) => {
|
|
65
|
-
const {
|
|
66
|
-
onScroll,
|
|
67
|
-
onTouchMove,
|
|
68
|
-
onWheel,
|
|
69
|
-
scrollEnabled = !0,
|
|
70
|
-
scrollEventThrottle = 0,
|
|
71
|
-
showsHorizontalScrollIndicator,
|
|
72
|
-
showsVerticalScrollIndicator,
|
|
73
|
-
style,
|
|
74
|
-
...rest
|
|
75
|
-
} = props, scrollState = React.useRef({ isScrolling: !1, scrollLastTick: 0 }), scrollTimeout = React.useRef(null), scrollRef = React.useRef(null);
|
|
76
|
-
function createPreventableScrollHandler(handler) {
|
|
77
|
-
return (e) => {
|
|
78
|
-
scrollEnabled && handler && handler(e);
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
function handleScroll(e) {
|
|
82
|
-
e.stopPropagation(), e.target === scrollRef.current && (e.persist(), scrollTimeout.current != null && clearTimeout(scrollTimeout.current), scrollTimeout.current = setTimeout(() => {
|
|
83
|
-
handleScrollEnd(e);
|
|
84
|
-
}, 100), scrollState.current.isScrolling ? shouldEmitScrollEvent(scrollState.current.scrollLastTick, scrollEventThrottle) && handleScrollTick(e) : handleScrollStart(e));
|
|
85
|
-
}
|
|
86
|
-
function handleScrollStart(e) {
|
|
87
|
-
scrollState.current.isScrolling = !0, handleScrollTick(e);
|
|
88
|
-
}
|
|
89
|
-
function handleScrollTick(e) {
|
|
90
|
-
scrollState.current.scrollLastTick = Date.now(), onScroll && onScroll(normalizeScrollEvent(e));
|
|
91
|
-
}
|
|
92
|
-
function handleScrollEnd(e) {
|
|
93
|
-
scrollState.current.isScrolling = !1, onScroll && onScroll(normalizeScrollEvent(e));
|
|
94
|
-
}
|
|
95
|
-
const hideScrollbar = showsHorizontalScrollIndicator === !1 || showsVerticalScrollIndicator === !1;
|
|
96
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
97
|
-
import_View.default,
|
|
98
|
-
{
|
|
99
|
-
...rest,
|
|
100
|
-
onScroll: handleScroll,
|
|
101
|
-
onTouchMove: createPreventableScrollHandler(onTouchMove),
|
|
102
|
-
onWheel: createPreventableScrollHandler(onWheel),
|
|
103
|
-
ref: (0, import_react_native_web_internals.useMergeRefs)(scrollRef, forwardedRef),
|
|
104
|
-
style: [
|
|
105
|
-
style,
|
|
106
|
-
// @ts-ignore
|
|
107
|
-
!scrollEnabled && styles.scrollDisabled,
|
|
108
|
-
// @ts-ignore
|
|
109
|
-
hideScrollbar && styles.hideScrollbar
|
|
110
|
-
]
|
|
111
|
-
}
|
|
112
|
-
);
|
|
113
|
-
}), styles = {
|
|
114
|
-
scrollDisabled: {
|
|
115
|
-
overflowX: "hidden",
|
|
116
|
-
overflowY: "hidden",
|
|
117
|
-
touchAction: "none"
|
|
118
|
-
},
|
|
119
|
-
hideScrollbar: {
|
|
120
|
-
scrollbarWidth: "none"
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
var ScrollViewBase_default = ScrollViewBase;
|
|
124
|
-
//# sourceMappingURL=ScrollViewBase.js.map
|
package/dist/cjs/Share/index.js
DELETED
|
@@ -1,56 +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 Share_exports = {};
|
|
16
|
-
__export(Share_exports, {
|
|
17
|
-
default: () => Share_default
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(Share_exports);
|
|
20
|
-
var import_react_native_web_internals = require("@tamagui/react-native-web-internals");
|
|
21
|
-
class Share {
|
|
22
|
-
static share(content, options = {}) {
|
|
23
|
-
return (0, import_react_native_web_internals.invariant)(
|
|
24
|
-
typeof content == "object" && content !== null,
|
|
25
|
-
"Content to share must be a valid object"
|
|
26
|
-
), (0, import_react_native_web_internals.invariant)(
|
|
27
|
-
typeof content.url == "string" || typeof content.message == "string",
|
|
28
|
-
"At least one of URL and message is required"
|
|
29
|
-
), (0, import_react_native_web_internals.invariant)(
|
|
30
|
-
typeof options == "object" && options !== null,
|
|
31
|
-
"Options must be a valid object"
|
|
32
|
-
), (0, import_react_native_web_internals.invariant)(
|
|
33
|
-
!content.title || typeof content.title == "string",
|
|
34
|
-
"Invalid title: title should be a string."
|
|
35
|
-
), window.navigator.share !== void 0 ? window.navigator.share({
|
|
36
|
-
title: content.title,
|
|
37
|
-
text: content.message,
|
|
38
|
-
url: content.url
|
|
39
|
-
}) : Promise.reject(new Error("Share is not supported in this browser"));
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* The content was successfully shared.
|
|
43
|
-
*/
|
|
44
|
-
static get sharedAction() {
|
|
45
|
-
return "sharedAction";
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* The dialog has been dismissed.
|
|
49
|
-
* @platform ios
|
|
50
|
-
*/
|
|
51
|
-
static get dismissedAction() {
|
|
52
|
-
return "dismissedAction";
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
var Share_default = Share;
|
|
56
|
-
//# sourceMappingURL=index.js.map
|