@tamagui/react-native-web-lite 1.113.0 → 1.113.2
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/esm/AccessibilityInfo/index.native.js +62 -58
- package/dist/esm/AccessibilityInfo/index.native.js.map +6 -1
- package/dist/esm/ActivityIndicator/__tests__/index-test.native.js +55 -85
- package/dist/esm/ActivityIndicator/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/ActivityIndicator/index.native.js +90 -82
- package/dist/esm/ActivityIndicator/index.native.js.map +6 -1
- package/dist/esm/Alert/index.native.js +18 -14
- package/dist/esm/Alert/index.native.js.map +6 -1
- package/dist/esm/AppRegistry/AppContainer.native.js +26 -30
- package/dist/esm/AppRegistry/AppContainer.native.js.map +6 -1
- package/dist/esm/AppRegistry/__tests__/index-test.native.js +13 -13
- package/dist/esm/AppRegistry/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/AppRegistry/__tests__/index-test.node.native.js +34 -45
- package/dist/esm/AppRegistry/__tests__/index-test.node.native.js.map +6 -1
- package/dist/esm/AppRegistry/index.native.js +55 -50
- package/dist/esm/AppRegistry/index.native.js.map +6 -1
- package/dist/esm/AppRegistry/renderApplication.native.js +27 -33
- package/dist/esm/AppRegistry/renderApplication.native.js.map +6 -1
- package/dist/esm/AppState/__tests__/index-test.native.js +10 -9
- package/dist/esm/AppState/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/AppState/index.native.js +51 -45
- package/dist/esm/AppState/index.native.js.map +6 -1
- package/dist/esm/Appearance/index.native.js +24 -27
- package/dist/esm/Appearance/index.native.js.map +6 -1
- package/dist/esm/BackHandler/index.native.js +13 -11
- package/dist/esm/BackHandler/index.native.js.map +6 -1
- package/dist/esm/Clipboard/index.native.js +26 -21
- package/dist/esm/Clipboard/index.native.js.map +6 -1
- package/dist/esm/DeviceEmitter.native.js +5 -3
- package/dist/esm/DeviceEmitter.native.js.map +6 -1
- package/dist/esm/DeviceInfo/index.native.js +33 -41
- package/dist/esm/DeviceInfo/index.native.js.map +6 -1
- package/dist/esm/Dimensions/__tests__/index-test.native.js +8 -9
- package/dist/esm/Dimensions/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/Dimensions/index.native.js +53 -49
- package/dist/esm/Dimensions/index.native.js.map +6 -1
- package/dist/esm/I18nManager/index.native.js +13 -10
- package/dist/esm/I18nManager/index.native.js.map +6 -1
- package/dist/esm/Image/index.native.js +149 -174
- package/dist/esm/Image/index.native.js.map +6 -1
- package/dist/esm/Image/types.native.js +1 -2
- package/dist/esm/Image/types.native.js.map +6 -1
- package/dist/esm/ImageBackground/__tests__/index-test.native.js +19 -27
- package/dist/esm/ImageBackground/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/ImageBackground/index.native.js +33 -35
- package/dist/esm/ImageBackground/index.native.js.map +6 -1
- package/dist/esm/Keyboard/index.native.js +17 -13
- package/dist/esm/Keyboard/index.native.js.map +6 -1
- package/dist/esm/KeyboardAvoidingView/index.native.js +44 -34
- package/dist/esm/KeyboardAvoidingView/index.native.js.map +6 -1
- package/dist/esm/Linking/__tests__/index-test.native.js +9 -9
- package/dist/esm/Linking/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/Linking/index.native.js +49 -42
- package/dist/esm/Linking/index.native.js.map +6 -1
- package/dist/esm/LogBox/index.native.js +12 -7
- package/dist/esm/LogBox/index.native.js.map +6 -1
- package/dist/esm/Modal/ModalAnimation.native.js +112 -89
- package/dist/esm/Modal/ModalAnimation.native.js.map +6 -1
- package/dist/esm/Modal/ModalContent.native.js +54 -52
- package/dist/esm/Modal/ModalContent.native.js.map +6 -1
- package/dist/esm/Modal/ModalFocusTrap.native.js +52 -49
- package/dist/esm/Modal/ModalFocusTrap.native.js.map +6 -1
- package/dist/esm/Modal/ModalPortal.native.js +11 -9
- package/dist/esm/Modal/ModalPortal.native.js.map +6 -1
- package/dist/esm/Modal/index.native.js +45 -53
- package/dist/esm/Modal/index.native.js.map +6 -1
- package/dist/esm/NativeModules/index.native.js +6 -5
- package/dist/esm/NativeModules/index.native.js.map +6 -1
- package/dist/esm/PanResponder/Alternative.js +122 -157
- package/dist/esm/PanResponder/Alternative.js.map +6 -1
- package/dist/esm/PanResponder/index.native.js +5 -3
- package/dist/esm/PanResponder/index.native.js.map +6 -1
- package/dist/esm/PixelRatio/index.native.js +59 -48
- package/dist/esm/PixelRatio/index.native.js.map +6 -1
- package/dist/esm/Pressable/index.native.js +67 -70
- package/dist/esm/Pressable/index.native.js.map +6 -1
- package/dist/esm/RefreshControl/index.native.js +6 -4
- package/dist/esm/RefreshControl/index.native.js.map +6 -1
- package/dist/esm/SafeAreaView/index.native.js +21 -24
- package/dist/esm/SafeAreaView/index.native.js.map +6 -1
- package/dist/esm/ScrollView/ScrollViewBase.native.js +50 -61
- package/dist/esm/ScrollView/ScrollViewBase.native.js.map +6 -1
- package/dist/esm/ScrollView/index.native.js +211 -183
- package/dist/esm/ScrollView/index.native.js.map +6 -1
- package/dist/esm/Share/index.native.js +36 -29
- package/dist/esm/Share/index.native.js.map +6 -1
- package/dist/esm/StatusBar/index.native.js +6 -3
- package/dist/esm/StatusBar/index.native.js.map +6 -1
- package/dist/esm/Text/index.native.js +100 -128
- package/dist/esm/Text/index.native.js.map +6 -1
- package/dist/esm/Text/types.native.js +1 -2
- package/dist/esm/Text/types.native.js.map +6 -1
- package/dist/esm/TextInput/__tests__/index-test.native.js +259 -445
- package/dist/esm/TextInput/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/TextInput/index.native.js +157 -220
- package/dist/esm/TextInput/index.native.js.map +6 -1
- package/dist/esm/TextInput/types.native.js +1 -2
- package/dist/esm/TextInput/types.native.js.map +6 -1
- package/dist/esm/TouchableOpacity.native.js +67 -63
- package/dist/esm/TouchableOpacity.native.js.map +6 -1
- package/dist/esm/TouchableWithoutFeedback.native.js +45 -49
- package/dist/esm/TouchableWithoutFeedback.native.js.map +6 -1
- package/dist/esm/UnimplementedView.native.js +30 -22
- package/dist/esm/UnimplementedView.native.js.map +6 -1
- package/dist/esm/Vibration/index.native.js +14 -14
- package/dist/esm/Vibration/index.native.js.map +6 -1
- package/dist/esm/View/index.native.js +55 -84
- package/dist/esm/View/index.native.js.map +6 -1
- package/dist/esm/View/types.native.js +1 -2
- package/dist/esm/View/types.native.js.map +6 -1
- package/dist/esm/createElement/__tests__/index-test.native.js +195 -398
- package/dist/esm/createElement/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/createElement/index.native.js +14 -16
- package/dist/esm/createElement/index.native.js.map +6 -1
- package/dist/esm/createReactDOMStyle.native.js +4 -2
- package/dist/esm/createReactDOMStyle.native.js.map +6 -1
- package/dist/esm/findNodeHandle.native.js +7 -4
- package/dist/esm/findNodeHandle.native.js.map +6 -1
- package/dist/esm/index.native.js +133 -55
- package/dist/esm/index.native.js.map +6 -1
- package/dist/esm/render/index.native.js +9 -4
- package/dist/esm/render/index.native.js.map +6 -1
- package/dist/esm/styleTypes.native.js +1 -2
- package/dist/esm/styleTypes.native.js.map +6 -1
- package/dist/esm/types.native.js +1 -2
- package/dist/esm/types.native.js.map +6 -1
- package/dist/esm/useColorScheme/index.native.js +7 -7
- package/dist/esm/useColorScheme/index.native.js.map +6 -1
- package/dist/esm/useLocaleContext/index.native.js +4 -2
- package/dist/esm/useLocaleContext/index.native.js.map +6 -1
- package/dist/esm/useWindowDimensions/index.native.js +9 -9
- package/dist/esm/useWindowDimensions/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/Animated.native.js +17 -16
- package/dist/esm/vendor/react-native/Animated/Animated.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js +99 -72
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js +436 -465
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js +91 -97
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js +1 -2
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/Easing.native.js +231 -194
- package/dist/esm/vendor/react-native/Animated/Easing.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js +222 -206
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js +5 -3
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js +5 -3
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js +5 -5
- package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js +37 -25
- package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js +54 -42
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js +72 -72
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js +60 -45
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/bezier.native.js +20 -23
- package/dist/esm/vendor/react-native/Animated/bezier.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js +6 -4
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js +13 -12
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js +6 -4
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js +6 -4
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js +11 -17
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js +55 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js +197 -180
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js +51 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js +57 -42
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js +116 -99
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js +50 -37
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js +55 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js +89 -61
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js +70 -52
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js +68 -50
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js +55 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js +53 -41
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js +57 -44
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js +99 -70
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js +82 -64
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js +53 -40
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js +58 -50
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js.map +6 -1
- package/dist/esm/vendor/react-native/FeatureFlags.native.js +10 -8
- package/dist/esm/vendor/react-native/FeatureFlags.native.js.map +6 -1
- package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js +5 -3
- package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js.map +6 -1
- package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js +55 -46
- package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/PanResponder/index.native.js +219 -224
- package/dist/esm/vendor/react-native/PanResponder/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js +81 -58
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js +1 -2
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js.map +6 -1
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js +5 -2
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js +1 -2
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js +6 -5
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js +5 -3
- package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js +1 -2
- package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js +33 -24
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js +51 -41
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js +16 -12
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js +26 -21
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js.map +6 -1
- package/dist/esm/vendor/react-native/infoLog/index.native.js +6 -3
- package/dist/esm/vendor/react-native/infoLog/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/useRefEffect.native.js +8 -4
- package/dist/esm/vendor/react-native/useRefEffect.native.js.map +6 -1
- package/dist/esm/without-animated.native.js +115 -52
- package/dist/esm/without-animated.native.js.map +6 -1
- package/package.json +6 -6
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import ModalAnimation from "./ModalAnimation
|
|
3
|
-
import ModalContent from "./ModalContent
|
|
4
|
-
import ModalFocusTrap from "./ModalFocusTrap
|
|
5
|
-
import ModalPortal from "./ModalPortal
|
|
6
|
-
var uniqueModalIdentifier = 0,
|
|
7
|
-
activeModalStack = [],
|
|
8
|
-
activeModalListeners = {};
|
|
2
|
+
import ModalAnimation from "./ModalAnimation";
|
|
3
|
+
import ModalContent from "./ModalContent";
|
|
4
|
+
import ModalFocusTrap from "./ModalFocusTrap";
|
|
5
|
+
import ModalPortal from "./ModalPortal";
|
|
6
|
+
var uniqueModalIdentifier = 0, activeModalStack = [], activeModalListeners = {};
|
|
9
7
|
function notifyActiveModalListeners() {
|
|
10
8
|
if (activeModalStack.length !== 0) {
|
|
11
9
|
var activeModalId = activeModalStack[activeModalStack.length - 1];
|
|
12
|
-
activeModalStack.forEach(function
|
|
10
|
+
activeModalStack.forEach(function(modalId) {
|
|
13
11
|
modalId in activeModalListeners && activeModalListeners[modalId](modalId === activeModalId);
|
|
14
12
|
});
|
|
15
13
|
}
|
|
@@ -22,48 +20,42 @@ function removeActiveModal(modalId) {
|
|
|
22
20
|
function addActiveModal(modalId, listener) {
|
|
23
21
|
removeActiveModal(modalId), activeModalStack.push(modalId), activeModalListeners[modalId] = listener, notifyActiveModalListeners();
|
|
24
22
|
}
|
|
25
|
-
var Modal = /* @__PURE__ */React.forwardRef(function
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
transparent
|
|
65
|
-
}, children))));
|
|
66
|
-
}),
|
|
67
|
-
Modal_default = Modal;
|
|
68
|
-
export { Modal_default as default };
|
|
69
|
-
//# sourceMappingURL=index.native.js.map
|
|
23
|
+
var Modal = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
24
|
+
var { animationType, children, onDismiss, onRequestClose, onShow, transparent, visible = !0, ...rest } = props, modalId = React.useMemo(function() {
|
|
25
|
+
return uniqueModalIdentifier++;
|
|
26
|
+
}, []), _React$useState = React.useState(!1), isActive = _React$useState[0], setIsActive = _React$useState[1], onDismissCallback = React.useCallback(function() {
|
|
27
|
+
removeActiveModal(modalId), onDismiss && onDismiss();
|
|
28
|
+
}, [
|
|
29
|
+
modalId,
|
|
30
|
+
onDismiss
|
|
31
|
+
]), onShowCallback = React.useCallback(function() {
|
|
32
|
+
addActiveModal(modalId, setIsActive), onShow && onShow();
|
|
33
|
+
}, [
|
|
34
|
+
modalId,
|
|
35
|
+
onShow
|
|
36
|
+
]);
|
|
37
|
+
return React.useEffect(function() {
|
|
38
|
+
return function() {
|
|
39
|
+
return removeActiveModal(modalId);
|
|
40
|
+
};
|
|
41
|
+
}, [
|
|
42
|
+
modalId
|
|
43
|
+
]), /* @__PURE__ */ React.createElement(ModalPortal, null, /* @__PURE__ */ React.createElement(ModalAnimation, {
|
|
44
|
+
animationType,
|
|
45
|
+
onDismiss: onDismissCallback,
|
|
46
|
+
onShow: onShowCallback,
|
|
47
|
+
visible
|
|
48
|
+
}, /* @__PURE__ */ React.createElement(ModalFocusTrap, {
|
|
49
|
+
active: isActive
|
|
50
|
+
}, /* @__PURE__ */ React.createElement(ModalContent, {
|
|
51
|
+
...rest,
|
|
52
|
+
active: isActive,
|
|
53
|
+
onRequestClose,
|
|
54
|
+
ref: forwardedRef,
|
|
55
|
+
transparent
|
|
56
|
+
}, children))));
|
|
57
|
+
}), Modal_default = Modal;
|
|
58
|
+
export {
|
|
59
|
+
Modal_default as default
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/Modal/Users/n8/tamagui/code/packages/react-native-web-lite/src/Modal/index.js"],
|
|
4
|
+
"mappings": "AASA,YAAYA,WAAW;AAEvB,OAAOC,oBAAoB;AAC3B,OAAOC,kBAAkB;AACzB,OAAOC,oBAAoB;AAC3B,OAAOC,iBAAiB;AAExB,IAAIC,wBAAwB,GACxBC,mBAAmB,CAAA,GACnBC,uBAAuB,CAAC;AAE5B,SAASC,6BAAAA;AACP,MAAIF,iBAAiBG,WAAW,GAIhC;QAAIC,gBAAgBJ,iBAAiBA,iBAAiBG,SAAS,CAAA;AAC/DH,qBAAiBK,QAAQ,SAACC,SAAAA;AACxB,MAAIA,WAAWL,wBACbA,qBAAqBK,OAAAA,EAASA,YAAYF,aAAAA;IAE9C,CAAA;;AACF;AAEA,SAASG,kBAAkBD,SAAO;AAChC,EAAIA,WAAWL,yBAGbA,qBAAqBK,OAAAA,EAAS,EAAA,GAC9B,OAAOL,qBAAqBK,OAAAA;AAG9B,MAAIE,QAAQR,iBAAiBS,QAAQH,OAAAA;AAErC,EAAIE,UAAU,OACZR,iBAAiBU,OAAOF,OAAO,CAAA,GAC/BN,2BAAAA;AAEJ;AAEA,SAASS,eAAeL,SAASM,UAAQ;AACvCL,oBAAkBD,OAAAA,GAClBN,iBAAiBa,KAAKP,OAAAA,GACtBL,qBAAqBK,OAAAA,IAAWM,UAChCV,2BAAAA;AACF;AAEA,IAAIY,QAAsBpB,sBAAMqB,WAAW,SAACC,OAAOC,cAAAA;AACjD,MAAM,EACJC,eACAC,UACAC,WACAC,gBACAC,QACAC,aACAC,UAAU,IACV,GAAGC,KAAAA,IACDT,OAEAV,UAAUZ,MAAMgC,QAAQ,WAAA;WAAM3B;KAAyB,CAAA,CAAE,GAEzD4B,kBAAkBjC,MAAMkC,SAAS,EAAA,GACnCC,WAAWF,gBAAgB,CAAA,GAC3BG,cAAcH,gBAAgB,CAAA,GAE5BI,oBAAoBrC,MAAMsC,YAAY,WAAA;AACxCzB,sBAAkBD,OAAAA,GAEdc,aACFA,UAAAA;EAEJ,GAAG;IAACd;IAASc;GAAU,GACnBa,iBAAiBvC,MAAMsC,YAAY,WAAA;AACrCrB,mBAAeL,SAASwB,WAAAA,GAEpBR,UACFA,OAAAA;EAEJ,GAAG;IAAChB;IAASgB;GAAO;AACpB5B,eAAMwC,UAAU,WAAA;AACd,WAAO,WAAA;aAAM3B,kBAAkBD,OAAAA;;EACjC,GAAG;IAACA;GAAQ,GACSZ,sBAAMyC,cACzBrC,aACA,MACcJ,sBAAMyC,cAClBxC,gBACA;IACEuB;IACAE,WAAWW;IACXT,QAAQW;IACRT;EACF,GACc9B,sBAAMyC,cAClBtC,gBACA;IACEuC,QAAQP;EACV,GACcnC,sBAAMyC,cAClBvC,cACA;IACE,GAAG6B;IACHW,QAAQP;IACRR;IACAgB,KAAKpB;IACLM;EACF,GACAJ,QAAAA,CAAAA,CAAAA,CAAAA;AAKV,CAAA,GACA,gBAAeL;",
|
|
5
|
+
"names": ["React", "ModalAnimation", "ModalContent", "ModalFocusTrap", "ModalPortal", "uniqueModalIdentifier", "activeModalStack", "activeModalListeners", "notifyActiveModalListeners", "length", "activeModalId", "forEach", "modalId", "removeActiveModal", "index", "indexOf", "splice", "addActiveModal", "listener", "push", "Modal", "forwardRef", "props", "forwardedRef", "animationType", "children", "onDismiss", "onRequestClose", "onShow", "transparent", "visible", "rest", "useMemo", "_React$useState", "useState", "isActive", "setIsActive", "onDismissCallback", "useCallback", "onShowCallback", "useEffect", "createElement", "active", "ref"]
|
|
6
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { UIManager } from "@tamagui/react-native-web-internals";
|
|
2
2
|
var NativeModules = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
UIManager
|
|
4
|
+
}, NativeModules_default = NativeModules;
|
|
5
|
+
export {
|
|
6
|
+
NativeModules_default as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/NativeModules/Users/n8/tamagui/code/packages/react-native-web-lite/src/NativeModules/index.tsx"],
|
|
4
|
+
"mappings": "AASA,SAASA,iBAAiB;AAG1B,IAAMC,gBAAgB;EACpBD;AACF,GAEA,wBAAeC;",
|
|
5
|
+
"names": ["UIManager", "NativeModules"]
|
|
6
|
+
}
|
|
@@ -1,163 +1,128 @@
|
|
|
1
1
|
import { InteractionManager } from "@tamagui/react-native-web-internals";
|
|
2
|
-
import TouchHistoryMath from "../vendor/react-native/TouchHistoryMath/index
|
|
3
|
-
var {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
gestureState
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
onResponderReject(event) {
|
|
122
|
-
clearInteractionHandle(interactionState, onPanReject, event, gestureState);
|
|
123
|
-
},
|
|
124
|
-
onResponderStart(event) {
|
|
125
|
-
var {
|
|
126
|
-
numberActiveTouches
|
|
127
|
-
} = event.touchHistory;
|
|
128
|
-
gestureState.numberActiveTouches = numberActiveTouches, onPanStart?.(event, gestureState);
|
|
129
|
-
},
|
|
130
|
-
onResponderMove(event) {
|
|
131
|
-
var touchHistory = event.touchHistory;
|
|
132
|
-
gestureState._accountsForMovesUpTo !== touchHistory.mostRecentTimeStamp && (PanResponder._updateGestureStateOnMove(gestureState, touchHistory), onPanMove?.(event, gestureState));
|
|
133
|
-
},
|
|
134
|
-
onResponderEnd(event) {
|
|
135
|
-
var {
|
|
136
|
-
numberActiveTouches
|
|
137
|
-
} = event.touchHistory;
|
|
138
|
-
gestureState.numberActiveTouches = numberActiveTouches, clearInteractionHandle(interactionState, onPanEnd, event, gestureState);
|
|
139
|
-
},
|
|
140
|
-
onResponderRelease(event) {
|
|
141
|
-
clearInteractionHandle(interactionState, onPanRelease, event, gestureState), PanResponder._initializeGestureState(gestureState);
|
|
142
|
-
},
|
|
143
|
-
onResponderTerminate(event) {
|
|
144
|
-
clearInteractionHandle(interactionState, onPanTerminate, event, gestureState), PanResponder._initializeGestureState(gestureState);
|
|
145
|
-
},
|
|
146
|
-
onResponderTerminationRequest(event) {
|
|
147
|
-
return onPanTerminationRequest != null ? onPanTerminationRequest(event, gestureState) : !0;
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
return {
|
|
151
|
-
panHandlers,
|
|
152
|
-
getInteractionHandle() {
|
|
153
|
-
return interactionState.handle;
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
};
|
|
2
|
+
import TouchHistoryMath from "../vendor/react-native/TouchHistoryMath/index";
|
|
3
|
+
var { currentCentroidX, currentCentroidY, currentCentroidXOfTouchesChangedAfter, currentCentroidYOfTouchesChangedAfter, previousCentroidXOfTouchesChangedAfter, previousCentroidYOfTouchesChangedAfter } = TouchHistoryMath, PanResponder = {
|
|
4
|
+
_initializeGestureState(gestureState) {
|
|
5
|
+
gestureState.x = 0, gestureState.y = 0, gestureState.initialX = 0, gestureState.initialY = 0, gestureState.deltaX = 0, gestureState.deltaY = 0, gestureState.velocityX = 0, gestureState.velocityY = 0, gestureState.numberActiveTouches = 0, gestureState._accountsForMovesUpTo = 0;
|
|
6
|
+
},
|
|
7
|
+
/**
|
|
8
|
+
* Take all recently moved touches, calculate how the centroid has changed just for those
|
|
9
|
+
* recently moved touches, and append that change to an accumulator. This is
|
|
10
|
+
* to (at least) handle the case where the user is moving three fingers, and
|
|
11
|
+
* then one of the fingers stops but the other two continue.
|
|
12
|
+
*
|
|
13
|
+
* This is very different than taking all of the recently moved touches and
|
|
14
|
+
* storing their centroid as `dx/dy`. For correctness, we must *accumulate
|
|
15
|
+
* changes* in the centroid of recently moved touches.
|
|
16
|
+
*
|
|
17
|
+
* There is also some nuance with how we handle multiple moved touches in a
|
|
18
|
+
* single event. Multiple touches generate two 'move' events, each of
|
|
19
|
+
* them triggering `onResponderMove`. But with the way `PanResponder` works,
|
|
20
|
+
* all of the gesture inference is performed on the first dispatch, since it
|
|
21
|
+
* looks at all of the touches. Therefore, `PanResponder` does not call
|
|
22
|
+
* `onResponderMove` passed the first dispatch. This diverges from the
|
|
23
|
+
* typical responder callback pattern (without using `PanResponder`), but
|
|
24
|
+
* avoids more dispatches than necessary.
|
|
25
|
+
*
|
|
26
|
+
* When moving two touches in opposite directions, the cumulative
|
|
27
|
+
* distance is zero in each dimension. When two touches move in parallel five
|
|
28
|
+
* pixels in the same direction, the cumulative distance is five, not ten. If
|
|
29
|
+
* two touches start, one moves five in a direction, then stops and the other
|
|
30
|
+
* touch moves fives in the same direction, the cumulative distance is ten.
|
|
31
|
+
*
|
|
32
|
+
* This logic requires a kind of processing of time "clusters" of touch events
|
|
33
|
+
* so that two touch moves that essentially occur in parallel but move every
|
|
34
|
+
* other frame respectively, are considered part of the same movement.
|
|
35
|
+
*
|
|
36
|
+
* x/y: If a move event has been observed, `(x, y)` is the centroid of the most
|
|
37
|
+
* recently moved "cluster" of active touches.
|
|
38
|
+
* deltaX/deltaY: Cumulative touch distance. Accounts for touch moves that are
|
|
39
|
+
* clustered together in time, moving the same direction. Only valid when
|
|
40
|
+
* currently responder (otherwise, it only represents the drag distance below
|
|
41
|
+
* the threshold).
|
|
42
|
+
*/
|
|
43
|
+
_updateGestureStateOnMove(gestureState, touchHistory) {
|
|
44
|
+
var movedAfter = gestureState._accountsForMovesUpTo, prevX = previousCentroidXOfTouchesChangedAfter(touchHistory, movedAfter), prevY = previousCentroidYOfTouchesChangedAfter(touchHistory, movedAfter), prevDeltaX = gestureState.deltaX, prevDeltaY = gestureState.deltaY, x = currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter), y = currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter), deltaX = prevDeltaX + (x - prevX), deltaY = prevDeltaY + (y - prevY), dt = touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo;
|
|
45
|
+
gestureState.deltaX = deltaX, gestureState.deltaY = deltaY, gestureState.numberActiveTouches = touchHistory.numberActiveTouches, gestureState.velocityX = (deltaX - prevDeltaX) / dt, gestureState.velocityY = (deltaY - prevDeltaY) / dt, gestureState.x = x, gestureState.y = y, gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp;
|
|
46
|
+
},
|
|
47
|
+
/**
|
|
48
|
+
* Enhanced versions of all of the responder callbacks that provide not only
|
|
49
|
+
* the `ResponderEvent`, but also the `PanResponder` gesture state.
|
|
50
|
+
*
|
|
51
|
+
* In general, for events that have capture equivalents, we update the
|
|
52
|
+
* gestureState once in the capture phase and can use it in the bubble phase
|
|
53
|
+
* as well.
|
|
54
|
+
*/
|
|
55
|
+
create(config) {
|
|
56
|
+
var interactionState = {
|
|
57
|
+
handle: null
|
|
58
|
+
}, gestureState = {
|
|
59
|
+
// Useful for debugging
|
|
60
|
+
stateID: Math.random(),
|
|
61
|
+
x: 0,
|
|
62
|
+
y: 0,
|
|
63
|
+
initialX: 0,
|
|
64
|
+
initialY: 0,
|
|
65
|
+
deltaX: 0,
|
|
66
|
+
deltaY: 0,
|
|
67
|
+
velocityX: 0,
|
|
68
|
+
velocityY: 0,
|
|
69
|
+
numberActiveTouches: 0,
|
|
70
|
+
_accountsForMovesUpTo: 0
|
|
71
|
+
}, { onStartShouldSetResponder, onStartShouldSetResponderCapture, onMoveShouldSetResponder, onMoveShouldSetResponderCapture, onPanGrant, onPanStart, onPanMove, onPanEnd, onPanRelease, onPanReject, onPanTerminate, onPanTerminationRequest } = config, panHandlers = {
|
|
72
|
+
onStartShouldSetResponder(event) {
|
|
73
|
+
return onStartShouldSetResponder != null ? onStartShouldSetResponder(event, gestureState) : !1;
|
|
74
|
+
},
|
|
75
|
+
onMoveShouldSetResponder(event) {
|
|
76
|
+
return onMoveShouldSetResponder != null ? onMoveShouldSetResponder(event, gestureState) : !1;
|
|
77
|
+
},
|
|
78
|
+
onStartShouldSetResponderCapture(event) {
|
|
79
|
+
return event.nativeEvent.touches.length === 1 && PanResponder._initializeGestureState(gestureState), gestureState.numberActiveTouches = event.touchHistory.numberActiveTouches, onStartShouldSetResponderCapture != null ? onStartShouldSetResponderCapture(event, gestureState) : !1;
|
|
80
|
+
},
|
|
81
|
+
onMoveShouldSetResponderCapture(event) {
|
|
82
|
+
var touchHistory = event.touchHistory;
|
|
83
|
+
return PanResponder._updateGestureStateOnMove(gestureState, touchHistory), onMoveShouldSetResponderCapture != null ? onMoveShouldSetResponderCapture(event, gestureState) : !1;
|
|
84
|
+
},
|
|
85
|
+
onResponderGrant(event) {
|
|
86
|
+
interactionState.handle || (interactionState.handle = InteractionManager.createInteractionHandle()), gestureState.initialX = currentCentroidX(event.touchHistory), gestureState.initialY = currentCentroidY(event.touchHistory), gestureState.deltaX = 0, gestureState.deltaY = 0, onPanGrant?.(event, gestureState);
|
|
87
|
+
},
|
|
88
|
+
onResponderReject(event) {
|
|
89
|
+
clearInteractionHandle(interactionState, onPanReject, event, gestureState);
|
|
90
|
+
},
|
|
91
|
+
onResponderStart(event) {
|
|
92
|
+
var { numberActiveTouches } = event.touchHistory;
|
|
93
|
+
gestureState.numberActiveTouches = numberActiveTouches, onPanStart?.(event, gestureState);
|
|
94
|
+
},
|
|
95
|
+
onResponderMove(event) {
|
|
96
|
+
var touchHistory = event.touchHistory;
|
|
97
|
+
gestureState._accountsForMovesUpTo !== touchHistory.mostRecentTimeStamp && (PanResponder._updateGestureStateOnMove(gestureState, touchHistory), onPanMove?.(event, gestureState));
|
|
98
|
+
},
|
|
99
|
+
onResponderEnd(event) {
|
|
100
|
+
var { numberActiveTouches } = event.touchHistory;
|
|
101
|
+
gestureState.numberActiveTouches = numberActiveTouches, clearInteractionHandle(interactionState, onPanEnd, event, gestureState);
|
|
102
|
+
},
|
|
103
|
+
onResponderRelease(event) {
|
|
104
|
+
clearInteractionHandle(interactionState, onPanRelease, event, gestureState), PanResponder._initializeGestureState(gestureState);
|
|
105
|
+
},
|
|
106
|
+
onResponderTerminate(event) {
|
|
107
|
+
clearInteractionHandle(interactionState, onPanTerminate, event, gestureState), PanResponder._initializeGestureState(gestureState);
|
|
108
|
+
},
|
|
109
|
+
onResponderTerminationRequest(event) {
|
|
110
|
+
return onPanTerminationRequest != null ? onPanTerminationRequest(event, gestureState) : !0;
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
return {
|
|
114
|
+
panHandlers,
|
|
115
|
+
getInteractionHandle() {
|
|
116
|
+
return interactionState.handle;
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
};
|
|
158
121
|
function clearInteractionHandle(interactionState, callback, event, gestureState) {
|
|
159
122
|
interactionState.handle && (InteractionManager.clearInteractionHandle(interactionState.handle), interactionState.handle = null), callback && callback(event, gestureState);
|
|
160
123
|
}
|
|
161
124
|
var Alternative_default = PanResponder;
|
|
162
|
-
export {
|
|
125
|
+
export {
|
|
126
|
+
Alternative_default as default
|
|
127
|
+
};
|
|
163
128
|
//# sourceMappingURL=Alternative.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/PanResponder/Users/n8/tamagui/code/packages/react-native-web-lite/src/PanResponder/Alternative.tsx"],
|
|
4
|
+
"mappings": "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",
|
|
5
|
+
"names": ["InteractionManager", "TouchHistoryMath", "currentCentroidX", "currentCentroidY", "currentCentroidXOfTouchesChangedAfter", "currentCentroidYOfTouchesChangedAfter", "previousCentroidXOfTouchesChangedAfter", "previousCentroidYOfTouchesChangedAfter", "PanResponder", "_initializeGestureState", "gestureState", "x", "y", "initialX", "initialY", "deltaX", "deltaY", "velocityX", "velocityY", "numberActiveTouches", "_accountsForMovesUpTo", "_updateGestureStateOnMove", "touchHistory", "movedAfter", "prevX", "prevY", "prevDeltaX", "prevDeltaY", "dt", "mostRecentTimeStamp", "create", "config", "interactionState", "handle", "stateID", "Math", "random", "onStartShouldSetResponder", "onStartShouldSetResponderCapture", "onMoveShouldSetResponder", "onMoveShouldSetResponderCapture", "onPanGrant", "onPanStart", "onPanMove", "onPanEnd", "onPanRelease", "onPanReject", "onPanTerminate", "onPanTerminationRequest", "panHandlers", "event", "nativeEvent", "touches", "length", "onResponderGrant", "createInteractionHandle", "onResponderReject", "clearInteractionHandle", "onResponderStart", "onResponderMove", "onResponderEnd", "onResponderRelease", "onResponderTerminate", "onResponderTerminationRequest", "getInteractionHandle", "callback"]
|
|
6
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import PanResponder from "../vendor/react-native/PanResponder/index
|
|
1
|
+
import PanResponder from "../vendor/react-native/PanResponder/index";
|
|
2
2
|
var PanResponder_default = PanResponder;
|
|
3
|
-
export {
|
|
4
|
-
|
|
3
|
+
export {
|
|
4
|
+
PanResponder_default as default
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/PanResponder/Users/n8/tamagui/code/packages/react-native-web-lite/src/PanResponder/index.tsx"],
|
|
4
|
+
"mappings": "AAAA,OAAOA,kBAAkB;AACzB,IAAA,uBAAeA;",
|
|
5
|
+
"names": ["PanResponder"]
|
|
6
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import Dimensions from "../Dimensions/index
|
|
1
|
+
import Dimensions from "../Dimensions/index";
|
|
2
2
|
function _class_call_check(instance, Constructor) {
|
|
3
|
-
if (!(instance instanceof Constructor))
|
|
3
|
+
if (!(instance instanceof Constructor))
|
|
4
|
+
throw new TypeError("Cannot call a class as a function");
|
|
4
5
|
}
|
|
5
6
|
function _defineProperties(target, props) {
|
|
6
7
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -11,54 +12,64 @@ function _defineProperties(target, props) {
|
|
|
11
12
|
function _create_class(Constructor, protoProps, staticProps) {
|
|
12
13
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
13
14
|
}
|
|
14
|
-
var PixelRatio = /* @__PURE__ */function
|
|
15
|
+
var PixelRatio = /* @__PURE__ */ function() {
|
|
15
16
|
"use strict";
|
|
16
|
-
|
|
17
17
|
function PixelRatio2() {
|
|
18
18
|
_class_call_check(this, PixelRatio2);
|
|
19
19
|
}
|
|
20
|
-
return _create_class(PixelRatio2, null, [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
20
|
+
return _create_class(PixelRatio2, null, [
|
|
21
|
+
{
|
|
22
|
+
key: "get",
|
|
23
|
+
value: (
|
|
24
|
+
/**
|
|
25
|
+
* Returns the device pixel density.
|
|
26
|
+
*/
|
|
27
|
+
function() {
|
|
28
|
+
return Dimensions.get("window").scale;
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
key: "getFontScale",
|
|
34
|
+
value: (
|
|
35
|
+
/**
|
|
36
|
+
* No equivalent for Web
|
|
37
|
+
*/
|
|
38
|
+
function() {
|
|
39
|
+
return Dimensions.get("window").fontScale || PixelRatio2.get();
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
key: "getPixelSizeForLayoutSize",
|
|
45
|
+
value: (
|
|
46
|
+
/**
|
|
47
|
+
* Converts a layout size (dp) to pixel size (px).
|
|
48
|
+
* Guaranteed to return an integer number.
|
|
49
|
+
*/
|
|
50
|
+
function(layoutSize) {
|
|
51
|
+
return Math.round(layoutSize * PixelRatio2.get());
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
key: "roundToNearestPixel",
|
|
57
|
+
value: (
|
|
58
|
+
/**
|
|
59
|
+
* Rounds a layout size (dp) to the nearest layout size that corresponds to
|
|
60
|
+
* an integer number of pixels. For example, on a device with a PixelRatio
|
|
61
|
+
* of 3, `PixelRatio.roundToNearestPixel(8.4) = 8.33`, which corresponds to
|
|
62
|
+
* exactly (8.33 * 3) = 25 pixels.
|
|
63
|
+
*/
|
|
64
|
+
function(layoutSize) {
|
|
65
|
+
var ratio = PixelRatio2.get();
|
|
66
|
+
return Math.round(layoutSize * ratio) / ratio;
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
}
|
|
70
|
+
]), PixelRatio2;
|
|
62
71
|
}();
|
|
63
|
-
export {
|
|
64
|
-
|
|
72
|
+
export {
|
|
73
|
+
PixelRatio as default
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=index.js.map
|