@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,22 +1,25 @@
|
|
|
1
|
-
import Easing from "../Easing
|
|
2
|
-
import { shouldUseNativeDriver } from "../NativeAnimatedHelper
|
|
3
|
-
import Animation from "./Animation
|
|
1
|
+
import Easing from "../Easing";
|
|
2
|
+
import { shouldUseNativeDriver } from "../NativeAnimatedHelper";
|
|
3
|
+
import Animation from "./Animation";
|
|
4
4
|
function _assert_this_initialized(self) {
|
|
5
|
-
if (self === void 0)
|
|
5
|
+
if (self === void 0)
|
|
6
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6
7
|
return self;
|
|
7
8
|
}
|
|
8
9
|
function _call_super(_this, derived, args) {
|
|
9
10
|
return derived = _get_prototype_of(derived), _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
11
|
}
|
|
11
12
|
function _class_call_check(instance, Constructor) {
|
|
12
|
-
if (!(instance instanceof Constructor))
|
|
13
|
+
if (!(instance instanceof Constructor))
|
|
14
|
+
throw new TypeError("Cannot call a class as a function");
|
|
13
15
|
}
|
|
14
16
|
function _construct(Parent, args, Class) {
|
|
15
|
-
return _is_native_reflect_construct() ? _construct = Reflect.construct : _construct = function
|
|
16
|
-
var a = [
|
|
17
|
+
return _is_native_reflect_construct() ? _construct = Reflect.construct : _construct = function(Parent2, args2, Class2) {
|
|
18
|
+
var a = [
|
|
19
|
+
null
|
|
20
|
+
];
|
|
17
21
|
a.push.apply(a, args2);
|
|
18
|
-
var Constructor = Function.bind.apply(Parent2, a),
|
|
19
|
-
instance = new Constructor();
|
|
22
|
+
var Constructor = Function.bind.apply(Parent2, a), instance = new Constructor();
|
|
20
23
|
return Class2 && _set_prototype_of(instance, Class2.prototype), instance;
|
|
21
24
|
}, _construct.apply(null, arguments);
|
|
22
25
|
}
|
|
@@ -30,7 +33,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
30
33
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
31
34
|
}
|
|
32
35
|
function _get(target, property, receiver) {
|
|
33
|
-
return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function
|
|
36
|
+
return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function(target2, property2, receiver2) {
|
|
34
37
|
var base = _super_prop_base(target2, property2);
|
|
35
38
|
if (base) {
|
|
36
39
|
var desc = Object.getOwnPropertyDescriptor(base, property2);
|
|
@@ -39,12 +42,13 @@ function _get(target, property, receiver) {
|
|
|
39
42
|
}, _get(target, property, receiver || target);
|
|
40
43
|
}
|
|
41
44
|
function _get_prototype_of(o) {
|
|
42
|
-
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function
|
|
45
|
+
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function(o2) {
|
|
43
46
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
44
47
|
}, _get_prototype_of(o);
|
|
45
48
|
}
|
|
46
49
|
function _inherits(subClass, superClass) {
|
|
47
|
-
if (typeof superClass != "function" && superClass !== null)
|
|
50
|
+
if (typeof superClass != "function" && superClass !== null)
|
|
51
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
48
52
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
49
53
|
constructor: {
|
|
50
54
|
value: subClass,
|
|
@@ -60,24 +64,25 @@ function _possible_constructor_return(self, call) {
|
|
|
60
64
|
return call && (_type_of(call) === "object" || typeof call == "function") ? call : _assert_this_initialized(self);
|
|
61
65
|
}
|
|
62
66
|
function _set_prototype_of(o, p) {
|
|
63
|
-
return _set_prototype_of = Object.setPrototypeOf || function
|
|
67
|
+
return _set_prototype_of = Object.setPrototypeOf || function(o2, p2) {
|
|
64
68
|
return o2.__proto__ = p2, o2;
|
|
65
69
|
}, _set_prototype_of(o, p);
|
|
66
70
|
}
|
|
67
71
|
function _super_prop_base(object, property) {
|
|
68
|
-
for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null);)
|
|
72
|
+
for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null); )
|
|
73
|
+
;
|
|
69
74
|
return object;
|
|
70
75
|
}
|
|
71
76
|
function _type_of(obj) {
|
|
72
77
|
"@swc/helpers - typeof";
|
|
73
|
-
|
|
74
78
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
75
79
|
}
|
|
76
80
|
function _wrap_native_super(Class) {
|
|
77
|
-
var _cache = typeof Map == "function" ? /* @__PURE__ */new Map() : void 0;
|
|
78
|
-
return _wrap_native_super = function
|
|
81
|
+
var _cache = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
82
|
+
return _wrap_native_super = function(Class2) {
|
|
79
83
|
if (Class2 === null || !_is_native_function(Class2)) return Class2;
|
|
80
|
-
if (typeof Class2 != "function")
|
|
84
|
+
if (typeof Class2 != "function")
|
|
85
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
81
86
|
if (typeof _cache < "u") {
|
|
82
87
|
if (_cache.has(Class2)) return _cache.get(Class2);
|
|
83
88
|
_cache.set(Class2, Wrapper);
|
|
@@ -97,9 +102,11 @@ function _wrap_native_super(Class) {
|
|
|
97
102
|
}
|
|
98
103
|
function _is_native_reflect_construct() {
|
|
99
104
|
try {
|
|
100
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function
|
|
101
|
-
|
|
102
|
-
|
|
105
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
106
|
+
}));
|
|
107
|
+
} catch {
|
|
108
|
+
}
|
|
109
|
+
return (_is_native_reflect_construct = function() {
|
|
103
110
|
return !!result;
|
|
104
111
|
})();
|
|
105
112
|
}
|
|
@@ -107,17 +114,19 @@ var _easeInOut;
|
|
|
107
114
|
function easeInOut() {
|
|
108
115
|
return _easeInOut || (_easeInOut = Easing.inOut(Easing.ease)), _easeInOut;
|
|
109
116
|
}
|
|
110
|
-
var TimingAnimation = /* @__PURE__ */function
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
117
|
+
var TimingAnimation = /* @__PURE__ */ function(Animation2) {
|
|
118
|
+
_inherits(TimingAnimation2, Animation2);
|
|
119
|
+
function TimingAnimation2(config) {
|
|
120
|
+
_class_call_check(this, TimingAnimation2);
|
|
121
|
+
var _this, _config$easing, _config$duration, _config$delay, _config$iterations, _config$isInteraction;
|
|
122
|
+
return _this = _call_super(this, TimingAnimation2), _this._toValue = config.toValue, _this._easing = (_config$easing = config.easing) !== null && _config$easing !== void 0 ? _config$easing : easeInOut(), _this._duration = (_config$duration = config.duration) !== null && _config$duration !== void 0 ? _config$duration : 500, _this._delay = (_config$delay = config.delay) !== null && _config$delay !== void 0 ? _config$delay : 0, _this.__iterations = (_config$iterations = config.iterations) !== null && _config$iterations !== void 0 ? _config$iterations : 1, _this._useNativeDriver = shouldUseNativeDriver(config), _this._platformConfig = config.platformConfig, _this.__isInteraction = (_config$isInteraction = config.isInteraction) !== null && _config$isInteraction !== void 0 ? _config$isInteraction : !_this._useNativeDriver, _this;
|
|
123
|
+
}
|
|
124
|
+
return _create_class(TimingAnimation2, [
|
|
125
|
+
{
|
|
118
126
|
key: "__getNativeAnimationConfig",
|
|
119
|
-
value: function
|
|
120
|
-
for (var frameDuration = 16.666666666666668, frames = [], numFrames = Math.round(this._duration / frameDuration), frame = 0; frame < numFrames; frame++)
|
|
127
|
+
value: function() {
|
|
128
|
+
for (var frameDuration = 16.666666666666668, frames = [], numFrames = Math.round(this._duration / frameDuration), frame = 0; frame < numFrames; frame++)
|
|
129
|
+
frames.push(this._easing(frame / numFrames));
|
|
121
130
|
return frames.push(this._easing(1)), {
|
|
122
131
|
type: "frames",
|
|
123
132
|
frames,
|
|
@@ -126,23 +135,26 @@ var TimingAnimation = /* @__PURE__ */function (Animation2) {
|
|
|
126
135
|
platformConfig: this._platformConfig
|
|
127
136
|
};
|
|
128
137
|
}
|
|
129
|
-
},
|
|
138
|
+
},
|
|
139
|
+
{
|
|
130
140
|
key: "start",
|
|
131
|
-
value: function
|
|
141
|
+
value: function(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) {
|
|
132
142
|
var _this = this;
|
|
133
143
|
this.__active = !0, this._fromValue = fromValue, this._onUpdate = onUpdate, this.__onEnd = onEnd;
|
|
134
|
-
var start2 = function
|
|
144
|
+
var start2 = function() {
|
|
135
145
|
_this._duration === 0 && !_this._useNativeDriver ? (_this._onUpdate(_this._toValue), _this.__debouncedOnEnd({
|
|
136
146
|
finished: !0
|
|
137
147
|
})) : (_this._startTime = Date.now(), _this._useNativeDriver ? _this.__startNativeAnimation(animatedValue) : _this._animationFrame = requestAnimationFrame(
|
|
138
|
-
|
|
139
|
-
|
|
148
|
+
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
|
|
149
|
+
_this.onUpdate.bind(_this)
|
|
150
|
+
));
|
|
140
151
|
};
|
|
141
152
|
this._delay ? this._timeout = setTimeout(start2, this._delay) : start2();
|
|
142
153
|
}
|
|
143
|
-
},
|
|
154
|
+
},
|
|
155
|
+
{
|
|
144
156
|
key: "onUpdate",
|
|
145
|
-
value: function
|
|
157
|
+
value: function() {
|
|
146
158
|
var now = Date.now();
|
|
147
159
|
if (now >= this._startTime + this._duration) {
|
|
148
160
|
this._duration === 0 ? this._onUpdate(this._toValue) : this._onUpdate(this._fromValue + this._easing(1) * (this._toValue - this._fromValue)), this.__debouncedOnEnd({
|
|
@@ -152,15 +164,18 @@ var TimingAnimation = /* @__PURE__ */function (Animation2) {
|
|
|
152
164
|
}
|
|
153
165
|
this._onUpdate(this._fromValue + this._easing((now - this._startTime) / this._duration) * (this._toValue - this._fromValue)), this.__active && (this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)));
|
|
154
166
|
}
|
|
155
|
-
},
|
|
167
|
+
},
|
|
168
|
+
{
|
|
156
169
|
key: "stop",
|
|
157
|
-
value: function
|
|
170
|
+
value: function() {
|
|
158
171
|
_get(_get_prototype_of(TimingAnimation2.prototype), "stop", this).call(this), this.__active = !1, clearTimeout(this._timeout), global.cancelAnimationFrame(this._animationFrame), this.__debouncedOnEnd({
|
|
159
172
|
finished: !1
|
|
160
173
|
});
|
|
161
174
|
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
export {
|
|
166
|
-
|
|
175
|
+
}
|
|
176
|
+
]), TimingAnimation2;
|
|
177
|
+
}(_wrap_native_super(Animation)), TimingAnimation_default = TimingAnimation;
|
|
178
|
+
export {
|
|
179
|
+
TimingAnimation_default as default
|
|
180
|
+
};
|
|
181
|
+
//# sourceMappingURL=TimingAnimation.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/vendor/react-native/Animated/animations/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/Animated/animations/TimingAnimation.js"],
|
|
4
|
+
"mappings": "AAWA,OAAOA,YAAY;AACnB,SAASC,6BAA6B;AACtC,OAAOC,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtB,IAAIC;AAEJ,SAASC,YAAAA;AACP,SAAKD,eACHA,aAAaH,OAAOK,MAAML,OAAOM,IAAI,IAGhCH;AACT;AAEA,IAAMI,kBAAN,yBAAAL,YAAA;YAAMK,kBAAAA,UAAAA;WAAAA,iBACQC,QAAM;4BADd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AAiB;YACpBC,UAAU;UACZ,CAAA,MAEA,MAAKC,aAAaC,KAAKC,IAAG,GAEtB,MAAK5B,mBACP,MAAK6B,uBAAuBV,aAAAA,IAE5B,MAAKW,kBAAkBC;;YAErB,MAAKf,SAASgB,KAAI,KAAA;UAAA;QAI1B;AAEA,QAAI,KAAKpC,SACP,KAAKqC,WAAWC,WAAWpB,QAAO,KAAKlB,MAAM,IAE7CkB,OAAAA;MAEJ;;;MAEAE,KAAAA;aAAAA,WAAAA;AACE,YAAIY,MAAMD,KAAKC,IAAG;AAElB,YAAIA,OAAO,KAAKF,aAAa,KAAKhC,WAAW;AAC3C,UAAI,KAAKA,cAAc,IACrB,KAAK4B,UAAU,KAAKhC,QAAQ,IAE5B,KAAKgC,UACH,KAAKD,aAAa,KAAK7B,QAAQ,CAAA,KAAM,KAAKF,WAAW,KAAK+B,WAAS,GAIvE,KAAKG,iBAAiB;YACpBC,UAAU;UACZ,CAAA;AAEA;QACF;AAEA,aAAKH,UACH,KAAKD,aACH,KAAK7B,SAASoC,MAAM,KAAKF,cAAc,KAAKhC,SAAS,KAClD,KAAKJ,WAAW,KAAK+B,WAAS,GAGjC,KAAKD,aAEP,KAAKU,kBAAkBC,sBAAsB,KAAKf,SAASgB,KAAK,IAAI,CAAA;MAExE;;;MAEAG,KAAAA;aAAAA,WAAAA;AACE,aAAA,kBA3HEpD,iBAAAA,SAAAA,GA2HIoD,QAAN,IAAK,EAAA,KAAA,IAAA,GACL,KAAKf,WAAW,IAChBgB,aAAa,KAAKH,QAAQ,GAC1BI,OAAOC,qBAAqB,KAAKR,eAAe,GAEhD,KAAKN,iBAAiB;UACpBC,UAAU;QACZ,CAAA;MACF;;MAnII1C;qBAAwBL,SAAAA,CAAAA,GAsI9B,0BAAeK;",
|
|
5
|
+
"names": ["Easing", "shouldUseNativeDriver", "Animation", "_easeInOut", "easeInOut", "inOut", "ease", "TimingAnimation", "config", "_config$easing", "_config$duration", "_config$delay", "_config$iterations", "_config$isInteraction", "_toValue", "toValue", "_easing", "easing", "_duration", "duration", "_delay", "delay", "__iterations", "iterations", "_useNativeDriver", "_platformConfig", "platformConfig", "__isInteraction", "isInteraction", "__getNativeAnimationConfig", "frameDuration", "frames", "numFrames", "Math", "round", "frame", "push", "type", "start", "fromValue", "onUpdate", "onEnd", "previousAnimation", "animatedValue", "__active", "_fromValue", "_onUpdate", "__onEnd", "__debouncedOnEnd", "finished", "_startTime", "Date", "now", "__startNativeAnimation", "_animationFrame", "requestAnimationFrame", "bind", "_timeout", "setTimeout", "stop", "clearTimeout", "global", "cancelAnimationFrame"]
|
|
6
|
+
}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
var NEWTON_ITERATIONS = 4,
|
|
2
|
-
NEWTON_MIN_SLOPE = 1e-3,
|
|
3
|
-
SUBDIVISION_PRECISION = 1e-7,
|
|
4
|
-
SUBDIVISION_MAX_ITERATIONS = 10,
|
|
5
|
-
kSplineTableSize = 11,
|
|
6
|
-
kSampleStepSize = 1 / (kSplineTableSize - 1),
|
|
7
|
-
float32ArraySupported = typeof Float32Array == "function";
|
|
1
|
+
var NEWTON_ITERATIONS = 4, NEWTON_MIN_SLOPE = 1e-3, SUBDIVISION_PRECISION = 1e-7, SUBDIVISION_MAX_ITERATIONS = 10, kSplineTableSize = 11, kSampleStepSize = 1 / (kSplineTableSize - 1), float32ArraySupported = typeof Float32Array == "function";
|
|
8
2
|
function A(aA1, aA2) {
|
|
9
3
|
return 1 - 3 * aA2 + 3 * aA1;
|
|
10
4
|
}
|
|
@@ -21,38 +15,41 @@ function getSlope(aT, aA1, aA2) {
|
|
|
21
15
|
return 3 * A(aA1, aA2) * aT * aT + 2 * B(aA1, aA2) * aT + C(aA1);
|
|
22
16
|
}
|
|
23
17
|
function binarySubdivide(aX, _aA, _aB, mX1, mX2) {
|
|
24
|
-
var currentX,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
aB = _aB;
|
|
29
|
-
do currentT = aA + (aB - aA) / 2, currentX = calcBezier(currentT, mX1, mX2) - aX, currentX > 0 ? aB = currentT : aA = currentT; while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS);
|
|
18
|
+
var currentX, currentT, i = 0, aA = _aA, aB = _aB;
|
|
19
|
+
do
|
|
20
|
+
currentT = aA + (aB - aA) / 2, currentX = calcBezier(currentT, mX1, mX2) - aX, currentX > 0 ? aB = currentT : aA = currentT;
|
|
21
|
+
while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS);
|
|
30
22
|
return currentT;
|
|
31
23
|
}
|
|
32
24
|
function newtonRaphsonIterate(aX, _aGuessT, mX1, mX2) {
|
|
33
25
|
for (var aGuessT = _aGuessT, i = 0; i < NEWTON_ITERATIONS; ++i) {
|
|
34
26
|
var currentSlope = getSlope(aGuessT, mX1, mX2);
|
|
35
|
-
if (currentSlope === 0)
|
|
27
|
+
if (currentSlope === 0)
|
|
28
|
+
return aGuessT;
|
|
36
29
|
var currentX = calcBezier(aGuessT, mX1, mX2) - aX;
|
|
37
30
|
aGuessT -= currentX / currentSlope;
|
|
38
31
|
}
|
|
39
32
|
return aGuessT;
|
|
40
33
|
}
|
|
41
34
|
function bezier(mX1, mY1, mX2, mY2) {
|
|
42
|
-
if (!(mX1 >= 0 && mX1 <= 1 && mX2 >= 0 && mX2 <= 1))
|
|
35
|
+
if (!(mX1 >= 0 && mX1 <= 1 && mX2 >= 0 && mX2 <= 1))
|
|
36
|
+
throw new Error("bezier x values must be in [0, 1] range");
|
|
43
37
|
var sampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize);
|
|
44
|
-
if (mX1 !== mY1 || mX2 !== mY2)
|
|
38
|
+
if (mX1 !== mY1 || mX2 !== mY2)
|
|
39
|
+
for (var i = 0; i < kSplineTableSize; ++i)
|
|
40
|
+
sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);
|
|
45
41
|
function getTForX(aX) {
|
|
46
|
-
for (var intervalStart = 0, currentSample = 1, lastSample = kSplineTableSize - 1; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample)
|
|
42
|
+
for (var intervalStart = 0, currentSample = 1, lastSample = kSplineTableSize - 1; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample)
|
|
43
|
+
intervalStart += kSampleStepSize;
|
|
47
44
|
--currentSample;
|
|
48
|
-
var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]),
|
|
49
|
-
guessForT = intervalStart + dist * kSampleStepSize,
|
|
50
|
-
initialSlope = getSlope(guessForT, mX1, mX2);
|
|
45
|
+
var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]), guessForT = intervalStart + dist * kSampleStepSize, initialSlope = getSlope(guessForT, mX1, mX2);
|
|
51
46
|
return initialSlope >= NEWTON_MIN_SLOPE ? newtonRaphsonIterate(aX, guessForT, mX1, mX2) : initialSlope === 0 ? guessForT : binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2);
|
|
52
47
|
}
|
|
53
|
-
return function
|
|
48
|
+
return function(x) {
|
|
54
49
|
return mX1 === mY1 && mX2 === mY2 ? x : x === 0 ? 0 : x === 1 ? 1 : calcBezier(getTForX(x), mY1, mY2);
|
|
55
50
|
};
|
|
56
51
|
}
|
|
57
|
-
export {
|
|
58
|
-
|
|
52
|
+
export {
|
|
53
|
+
bezier as default
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=bezier.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/vendor/react-native/Animated/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/Animated/bezier.js"],
|
|
4
|
+
"mappings": "AAiBA,IAAIA,oBAAoB,GACpBC,mBAAmB,MACnBC,wBAAwB,MACxBC,6BAA6B,I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ineTableSize", "kSampleStepSize", "float32ArraySupported", "Float32Array", "A", "aA1", "aA2", "B", "C", "calcBezier", "aT", "getSlope", "binarySubdivide", "aX", "_aA", "_aB", "mX1", "mX2", "currentX", "currentT", "i", "aA", "aB", "Math", "abs", "newtonRaphsonIterate", "_aGuessT", "aGuessT", "currentSlope", "mY1", "mY2", "Error", "sampleValues", "Array", "getTForX", "intervalStart", "currentSample", "lastSample", "dist", "guessForT", "initialSlope", "x"]
|
|
6
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import Image from "../../../../Image/index
|
|
3
|
-
import createAnimatedComponent from "../createAnimatedComponent
|
|
2
|
+
import Image from "../../../../Image/index";
|
|
3
|
+
import createAnimatedComponent from "../createAnimatedComponent";
|
|
4
4
|
var AnimatedImage_default = createAnimatedComponent(Image);
|
|
5
|
-
export {
|
|
6
|
-
|
|
5
|
+
export {
|
|
6
|
+
AnimatedImage_default as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=AnimatedImage.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/vendor/react-native/Animated/components/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/Animated/components/AnimatedImage.js"],
|
|
4
|
+
"mappings": "AASA,OAAuB;AAEvB,OAAOA,WAAW;AAClB,OAAOC,6BAA6B;AAEpC,IAAA,wBAAeA,wBAAwBD,KAAAA;",
|
|
5
|
+
"names": ["Image", "createAnimatedComponent"]
|
|
6
|
+
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import ScrollView from "../../../../ScrollView/index
|
|
3
|
-
import createAnimatedComponent from "../createAnimatedComponent
|
|
4
|
-
var ScrollViewWithEventThrottle = /* @__PURE__ */React.forwardRef(function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
import ScrollView from "../../../../ScrollView/index";
|
|
3
|
+
import createAnimatedComponent from "../createAnimatedComponent";
|
|
4
|
+
var ScrollViewWithEventThrottle = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
5
|
+
return /* @__PURE__ */ React.createElement(ScrollView, {
|
|
6
|
+
scrollEventThrottle: 1e-4,
|
|
7
|
+
...props,
|
|
8
|
+
ref
|
|
9
|
+
});
|
|
10
|
+
}), AnimatedScrollView_default = createAnimatedComponent(ScrollViewWithEventThrottle);
|
|
11
|
+
export {
|
|
12
|
+
AnimatedScrollView_default as default
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=AnimatedScrollView.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/vendor/react-native/Animated/components/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/Animated/components/AnimatedScrollView.js"],
|
|
4
|
+
"mappings": "AASA,YAAYA,WAAW;AAEvB,OAAOC,gBAAgB;AACvB,OAAOC,6BAA6B;AAKpC,IAAIC,8BAA4CH,sBAAMI,WAAW,SAACC,OAAOC,KAAAA;SACzDN,sBAAMO,cAClBN,YAEA;IACEO,qBAAqB;IACrB,GAAGH;IACHC;EACF,CAAA;IAGJ,6BAAeJ,wBAAwBC,2BAAAA;",
|
|
5
|
+
"names": ["React", "ScrollView", "createAnimatedComponent", "ScrollViewWithEventThrottle", "forwardRef", "props", "ref", "createElement", "scrollEventThrottle"]
|
|
6
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import Text from "../../../../Text/index
|
|
3
|
-
import createAnimatedComponent from "../createAnimatedComponent
|
|
2
|
+
import Text from "../../../../Text/index";
|
|
3
|
+
import createAnimatedComponent from "../createAnimatedComponent";
|
|
4
4
|
var AnimatedText_default = createAnimatedComponent(Text);
|
|
5
|
-
export {
|
|
6
|
-
|
|
5
|
+
export {
|
|
6
|
+
AnimatedText_default as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=AnimatedText.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/vendor/react-native/Animated/components/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/Animated/components/AnimatedText.js"],
|
|
4
|
+
"mappings": "AASA,OAAuB;AAEvB,OAAOA,UAAU;AACjB,OAAOC,6BAA6B;AAEpC,IAAA,uBAAeA,wBAAwBD,IAAAA;",
|
|
5
|
+
"names": ["Text", "createAnimatedComponent"]
|
|
6
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import View from "../../../../View/index
|
|
3
|
-
import createAnimatedComponent from "../createAnimatedComponent
|
|
2
|
+
import View from "../../../../View/index";
|
|
3
|
+
import createAnimatedComponent from "../createAnimatedComponent";
|
|
4
4
|
var AnimatedView_default = createAnimatedComponent(View);
|
|
5
|
-
export {
|
|
6
|
-
|
|
5
|
+
export {
|
|
6
|
+
AnimatedView_default as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=AnimatedView.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/vendor/react-native/Animated/components/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/Animated/components/AnimatedView.js"],
|
|
4
|
+
"mappings": "AASA,OAAuB;AAEvB,OAAOA,UAAU;AACjB,OAAOC,6BAA6B;AAEpC,IAAA,uBAAeA,wBAAwBD,IAAAA;",
|
|
5
|
+
"names": ["View", "createAnimatedComponent"]
|
|
6
|
+
}
|
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { useMergeRefs } from "@tamagui/react-native-web-internals";
|
|
3
|
-
import useAnimatedProps from "./useAnimatedProps
|
|
3
|
+
import useAnimatedProps from "./useAnimatedProps";
|
|
4
4
|
function createAnimatedComponent(Component) {
|
|
5
|
-
return /* @__PURE__ */React.forwardRef(function
|
|
6
|
-
var _useAnimatedProps = useAnimatedProps(props),
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
style = reducedProps.style,
|
|
12
|
-
_ref = passthroughAnimatedPropExplicitValues ?? {},
|
|
13
|
-
{
|
|
14
|
-
passthroughStyle,
|
|
15
|
-
...passthroughProps
|
|
16
|
-
} = _ref,
|
|
17
|
-
mergedStyle = [style, passthroughStyle];
|
|
18
|
-
return /* @__PURE__ */React.createElement(Component, {
|
|
5
|
+
return /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
6
|
+
var _useAnimatedProps = useAnimatedProps(props), reducedProps = _useAnimatedProps[0], callbackRef = _useAnimatedProps[1], ref = useMergeRefs(callbackRef, forwardedRef), passthroughAnimatedPropExplicitValues = reducedProps.passthroughAnimatedPropExplicitValues, style = reducedProps.style, _ref = passthroughAnimatedPropExplicitValues ?? {}, { passthroughStyle, ...passthroughProps } = _ref, mergedStyle = [
|
|
7
|
+
style,
|
|
8
|
+
passthroughStyle
|
|
9
|
+
];
|
|
10
|
+
return /* @__PURE__ */ React.createElement(Component, {
|
|
19
11
|
...reducedProps,
|
|
20
12
|
...passthroughProps,
|
|
21
13
|
style: mergedStyle,
|
|
@@ -23,5 +15,7 @@ function createAnimatedComponent(Component) {
|
|
|
23
15
|
});
|
|
24
16
|
});
|
|
25
17
|
}
|
|
26
|
-
export {
|
|
27
|
-
|
|
18
|
+
export {
|
|
19
|
+
createAnimatedComponent as default
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=createAnimatedComponent.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/vendor/react-native/Animated/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/Animated/createAnimatedComponent.js"],
|
|
4
|
+
"mappings": "AAAA,YAAYA,WAAW;AACvB,SAASC,oBAAoB;AAW7B,OAAOC,sBAAsB;AAMd,SAAf,wBAAgDC,WAAS;AACvD,SAAqBH,sBAAMI,WAAW,SAACC,OAAOC,cAAAA;AAC5C,QAAIC,oBAAoBL,iBAAiBG,KAAAA,GACvCG,eAAeD,kBAAkB,CAAA,GACjCE,cAAcF,kBAAkB,CAAA,GAE9BG,MAAMT,aAAaQ,aAAaH,YAAAA,GAMhCK,wCACAH,aAAaG,uCACfC,QAAQJ,aAAaI,OAEnBC,OACFF,yCAGI,CAAC,GAED,EAAEG,kBAAkB,GAAGC,iBAAAA,IAAqBF,MAE9CG,cAAc;MAACJ;MAAOE;;AAC1B,WAAqBd,sBAAMiB,cAAcd,WAAW;MAClD,GAAGK;MACH,GAAGO;MACHH,OAAOI;MACPN;IACF,CAAA;EACF,CAAA;AACF;",
|
|
5
|
+
"names": ["React", "useMergeRefs", "useAnimatedProps", "Component", "forwardRef", "props", "forwardedRef", "_useAnimatedProps", "reducedProps", "callbackRef", "ref", "passthroughAnimatedPropExplicitValues", "style", "_ref", "passthroughStyle", "passthroughProps", "mergedStyle", "createElement"]
|
|
6
|
+
}
|