@tamagui/react-native-web-lite 1.116.0 → 1.116.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/cjs/AccessibilityInfo/index.js +96 -0
- package/dist/cjs/ActivityIndicator/__tests__/index-test.js +116 -0
- package/dist/cjs/ActivityIndicator/index.js +108 -0
- package/dist/cjs/Alert/index.js +25 -0
- package/dist/cjs/AppRegistry/AppContainer.js +41 -0
- package/dist/cjs/AppRegistry/__tests__/index-test.js +77 -0
- package/dist/cjs/AppRegistry/__tests__/index-test.node.js +131 -0
- package/dist/cjs/AppRegistry/index.js +98 -0
- package/dist/cjs/AppRegistry/renderApplication.js +51 -0
- package/dist/cjs/AppState/__tests__/index-test.js +33 -0
- package/dist/cjs/AppState/index.js +71 -0
- package/dist/cjs/Appearance/index.js +41 -0
- package/dist/cjs/BackHandler/index.js +32 -0
- package/dist/cjs/Clipboard/index.js +47 -0
- package/dist/cjs/DeviceEmitter.js +29 -0
- package/dist/cjs/DeviceInfo/index.js +62 -0
- package/dist/cjs/Dimensions/__tests__/index-test.js +51 -0
- package/dist/cjs/Dimensions/index.js +74 -0
- package/dist/cjs/I18nManager/index.js +30 -0
- package/dist/cjs/Image/index.js +253 -0
- package/dist/cjs/Image/types.js +14 -0
- package/dist/cjs/ImageBackground/__tests__/index-test.js +48 -0
- package/dist/cjs/ImageBackground/index.js +62 -0
- package/dist/cjs/Keyboard/index.js +35 -0
- package/dist/cjs/KeyboardAvoidingView/index.js +56 -0
- package/dist/cjs/Linking/__tests__/index-test.js +38 -0
- package/dist/cjs/Linking/index.js +86 -0
- package/dist/cjs/LogBox/index.js +31 -0
- package/dist/cjs/Modal/ModalAnimation.js +137 -0
- package/dist/cjs/Modal/ModalContent.js +75 -0
- package/dist/cjs/Modal/ModalFocusTrap.js +105 -0
- package/dist/cjs/Modal/ModalPortal.js +43 -0
- package/dist/cjs/Modal/index.js +92 -0
- package/dist/cjs/NativeModules/index.js +25 -0
- package/dist/cjs/PanResponder/index.js +29 -0
- package/dist/cjs/PixelRatio/index.js +60 -0
- package/dist/cjs/Pressable/index.js +140 -0
- package/dist/cjs/RefreshControl/index.js +48 -0
- package/dist/cjs/SafeAreaView/index.js +43 -0
- package/dist/cjs/ScrollView/ScrollViewBase.js +124 -0
- package/dist/cjs/ScrollView/index.js +374 -0
- package/dist/cjs/Share/index.js +56 -0
- package/dist/cjs/StatusBar/index.js +31 -0
- package/dist/cjs/Text/index.js +152 -0
- package/dist/cjs/Text/types.js +14 -0
- package/dist/cjs/TextInput/__tests__/index-test.js +422 -0
- package/dist/cjs/TextInput/index.js +260 -0
- package/dist/cjs/TextInput/types.js +14 -0
- package/dist/cjs/TouchableOpacity.js +123 -0
- package/dist/cjs/TouchableWithoutFeedback.js +90 -0
- package/dist/cjs/UnimplementedView.js +36 -0
- package/dist/cjs/Vibration/index.js +31 -0
- package/dist/cjs/View/index.js +101 -0
- package/dist/cjs/View/types.js +14 -0
- package/dist/cjs/createElement/__tests__/index-test.js +536 -0
- package/dist/cjs/createElement/index.js +37 -0
- package/dist/cjs/createReactDOMStyle.js +21 -0
- package/dist/cjs/findNodeHandle.js +29 -0
- package/dist/cjs/index.js +110 -0
- package/dist/cjs/render/index.js +45 -0
- package/dist/cjs/styleTypes.js +14 -0
- package/dist/cjs/types.js +14 -0
- package/dist/cjs/useColorScheme/index.js +39 -0
- package/dist/cjs/useLocaleContext/index.js +21 -0
- package/dist/cjs/useWindowDimensions/index.js +41 -0
- package/dist/cjs/vendor/react-native/Animated/Animated.js +35 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.js +143 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.js +458 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.js +126 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.js +2 -0
- package/dist/cjs/vendor/react-native/Animated/Easing.js +189 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js +335 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.js +29 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.js +29 -0
- package/dist/cjs/vendor/react-native/Animated/SpringConfig.js +70 -0
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.js +64 -0
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.js +63 -0
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.js +146 -0
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.js +82 -0
- package/dist/cjs/vendor/react-native/Animated/bezier.js +72 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.js +29 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.js +38 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.js +29 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.js +29 -0
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js +42 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.js +57 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.js +197 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js +60 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.js +58 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.js +175 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.js +58 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.js +57 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.js +136 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.js +112 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.js +100 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.js +57 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.js +76 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.js +100 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.js +182 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.js +167 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.js +67 -0
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.js +89 -0
- package/dist/cjs/vendor/react-native/FeatureFlags.js +28 -0
- package/dist/cjs/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.js +29 -0
- package/dist/cjs/vendor/react-native/NativeEventEmitter/index.js +73 -0
- package/dist/cjs/vendor/react-native/PanResponder/index.js +272 -0
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.js +118 -0
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.js +2 -0
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.js +28 -0
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.js +15 -0
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.js +29 -0
- package/dist/cjs/vendor/react-native/emitter/EventEmitter.js +30 -0
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.js +2 -0
- package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.js +55 -0
- package/dist/cjs/vendor/react-native/emitter/_EventEmitter.js +135 -0
- package/dist/cjs/vendor/react-native/emitter/_EventSubscription.js +37 -0
- package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.js +76 -0
- package/dist/cjs/vendor/react-native/infoLog/index.js +25 -0
- package/dist/cjs/vendor/react-native/useRefEffect.js +30 -0
- package/dist/cjs/without-animated.js +95 -0
- package/package.json +6 -6
- package/dist/cjs/PanResponder/Alternative.cjs +0 -198
- package/dist/cjs/PanResponder/Alternative.cjs.map +0 -6
- /package/dist/cjs/AccessibilityInfo/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/ActivityIndicator/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
- /package/dist/cjs/ActivityIndicator/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Alert/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/AppRegistry/{AppContainer.cjs.map → AppContainer.js.map} +0 -0
- /package/dist/cjs/AppRegistry/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
- /package/dist/cjs/AppRegistry/__tests__/{index-test.node.cjs.map → index-test.node.js.map} +0 -0
- /package/dist/cjs/AppRegistry/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/AppRegistry/{renderApplication.cjs.map → renderApplication.js.map} +0 -0
- /package/dist/cjs/AppState/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
- /package/dist/cjs/AppState/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Appearance/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/BackHandler/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Clipboard/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/{DeviceEmitter.cjs.map → DeviceEmitter.js.map} +0 -0
- /package/dist/cjs/DeviceInfo/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Dimensions/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
- /package/dist/cjs/Dimensions/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/I18nManager/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Image/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Image/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/ImageBackground/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
- /package/dist/cjs/ImageBackground/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Keyboard/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/KeyboardAvoidingView/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Linking/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
- /package/dist/cjs/Linking/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/LogBox/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Modal/{ModalAnimation.cjs.map → ModalAnimation.js.map} +0 -0
- /package/dist/cjs/Modal/{ModalContent.cjs.map → ModalContent.js.map} +0 -0
- /package/dist/cjs/Modal/{ModalFocusTrap.cjs.map → ModalFocusTrap.js.map} +0 -0
- /package/dist/cjs/Modal/{ModalPortal.cjs.map → ModalPortal.js.map} +0 -0
- /package/dist/cjs/Modal/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/NativeModules/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/PanResponder/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/PixelRatio/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Pressable/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/RefreshControl/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/SafeAreaView/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/ScrollView/{ScrollViewBase.cjs.map → ScrollViewBase.js.map} +0 -0
- /package/dist/cjs/ScrollView/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Share/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/StatusBar/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Text/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/Text/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/TextInput/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
- /package/dist/cjs/TextInput/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/TextInput/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/{TouchableOpacity.cjs.map → TouchableOpacity.js.map} +0 -0
- /package/dist/cjs/{TouchableWithoutFeedback.cjs.map → TouchableWithoutFeedback.js.map} +0 -0
- /package/dist/cjs/{UnimplementedView.cjs.map → UnimplementedView.js.map} +0 -0
- /package/dist/cjs/Vibration/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/View/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/View/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/createElement/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
- /package/dist/cjs/createElement/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/{createReactDOMStyle.cjs.map → createReactDOMStyle.js.map} +0 -0
- /package/dist/cjs/{findNodeHandle.cjs.map → findNodeHandle.js.map} +0 -0
- /package/dist/cjs/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/render/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/{styleTypes.cjs.map → styleTypes.js.map} +0 -0
- /package/dist/cjs/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/useColorScheme/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/useLocaleContext/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/useWindowDimensions/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{Animated.cjs.map → Animated.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedEvent.cjs.map → AnimatedEvent.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedImplementation.cjs.map → AnimatedImplementation.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedMock.cjs.map → AnimatedMock.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedPlatformConfig.cjs.map → AnimatedPlatformConfig.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{Easing.cjs.map → Easing.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedHelper.cjs.map → NativeAnimatedHelper.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.cjs.map → NativeAnimatedModule.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.cjs.map → NativeAnimatedTurboModule.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{SpringConfig.cjs.map → SpringConfig.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{Animation.cjs.map → Animation.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.cjs.map → DecayAnimation.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.cjs.map → SpringAnimation.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.cjs.map → TimingAnimation.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{bezier.cjs.map → bezier.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedImage.cjs.map → AnimatedImage.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedScrollView.cjs.map → AnimatedScrollView.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedText.cjs.map → AnimatedText.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedView.cjs.map → AnimatedView.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{createAnimatedComponent.cjs.map → createAnimatedComponent.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.cjs.map → AnimatedAddition.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.cjs.map → AnimatedColor.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.cjs.map → AnimatedDiffClamp.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.cjs.map → AnimatedDivision.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.cjs.map → AnimatedInterpolation.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.cjs.map → AnimatedModulo.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.cjs.map → AnimatedMultiplication.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.cjs.map → AnimatedNode.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.cjs.map → AnimatedProps.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.cjs.map → AnimatedStyle.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.cjs.map → AnimatedSubtraction.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.cjs.map → AnimatedTracking.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.cjs.map → AnimatedTransform.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.cjs.map → AnimatedValue.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.cjs.map → AnimatedValueXY.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.cjs.map → AnimatedWithChildren.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.cjs.map → useAnimatedProps.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/{FeatureFlags.cjs.map → FeatureFlags.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.cjs.map → RCTDeviceEventEmitter.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/PanResponder/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/TouchHistoryMath/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/TurboModule/{RCTExport.cjs.map → RCTExport.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/TurboModule/{TurboModuleRegistry.cjs.map → TurboModuleRegistry.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Types/{CoreEventTypes.cjs.map → CoreEventTypes.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/Utilities/{setAndForwardRef.cjs.map → setAndForwardRef.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{EventEmitter.cjs.map → EventEmitter.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{EventSubscription.cjs.map → EventSubscription.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.cjs.map → _EmitterSubscription.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.cjs.map → _EventEmitter.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.cjs.map → _EventSubscription.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.cjs.map → _EventSubscriptionVendor.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/infoLog/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/vendor/react-native/{useRefEffect.cjs.map → useRefEffect.js.map} +0 -0
- /package/dist/cjs/{without-animated.cjs.map → without-animated.js.map} +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
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 AnimatedAddition_exports = {};
|
|
25
|
+
__export(AnimatedAddition_exports, {
|
|
26
|
+
default: () => AnimatedAddition_default
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(AnimatedAddition_exports);
|
|
29
|
+
var import_AnimatedInterpolation = __toESM(require("./AnimatedInterpolation")), import_AnimatedValue = __toESM(require("./AnimatedValue")), import_AnimatedWithChildren = __toESM(require("./AnimatedWithChildren"));
|
|
30
|
+
class AnimatedAddition extends import_AnimatedWithChildren.default {
|
|
31
|
+
constructor(a, b) {
|
|
32
|
+
super(), this._a = typeof a == "number" ? new import_AnimatedValue.default(a) : a, this._b = typeof b == "number" ? new import_AnimatedValue.default(b) : b;
|
|
33
|
+
}
|
|
34
|
+
__makeNative(platformConfig) {
|
|
35
|
+
this._a.__makeNative(platformConfig), this._b.__makeNative(platformConfig), super.__makeNative(platformConfig);
|
|
36
|
+
}
|
|
37
|
+
__getValue() {
|
|
38
|
+
return this._a.__getValue() + this._b.__getValue();
|
|
39
|
+
}
|
|
40
|
+
interpolate(config) {
|
|
41
|
+
return new import_AnimatedInterpolation.default(this, config);
|
|
42
|
+
}
|
|
43
|
+
__attach() {
|
|
44
|
+
this._a.__addChild(this), this._b.__addChild(this);
|
|
45
|
+
}
|
|
46
|
+
__detach() {
|
|
47
|
+
this._a.__removeChild(this), this._b.__removeChild(this), super.__detach();
|
|
48
|
+
}
|
|
49
|
+
__getNativeConfig() {
|
|
50
|
+
return {
|
|
51
|
+
type: "addition",
|
|
52
|
+
input: [this._a.__getNativeTag(), this._b.__getNativeTag()]
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
var AnimatedAddition_default = AnimatedAddition;
|
|
57
|
+
//# sourceMappingURL=AnimatedAddition.js.map
|
|
@@ -0,0 +1,197 @@
|
|
|
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 AnimatedColor_exports = {};
|
|
25
|
+
__export(AnimatedColor_exports, {
|
|
26
|
+
default: () => AnimatedColor
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(AnimatedColor_exports);
|
|
29
|
+
var import_normalize_css_color = __toESM(require("@tamagui/normalize-css-color")), import_NativeAnimatedHelper = __toESM(require("../NativeAnimatedHelper")), import_AnimatedValue = __toESM(require("./AnimatedValue")), import_AnimatedWithChildren = __toESM(require("./AnimatedWithChildren")), NativeAnimatedAPI = import_NativeAnimatedHelper.default.API, defaultColor = {
|
|
30
|
+
r: 0,
|
|
31
|
+
g: 0,
|
|
32
|
+
b: 0,
|
|
33
|
+
a: 1
|
|
34
|
+
}, _uniqueId = 1, processColorObject = (color) => color;
|
|
35
|
+
function processColor(color) {
|
|
36
|
+
if (color == null)
|
|
37
|
+
return null;
|
|
38
|
+
if (isRgbaValue(color))
|
|
39
|
+
return color;
|
|
40
|
+
var normalizedColor = (0, import_normalize_css_color.default)(
|
|
41
|
+
// $FlowIgnore[incompatible-cast] - Type is verified above
|
|
42
|
+
color
|
|
43
|
+
);
|
|
44
|
+
if (normalizedColor == null)
|
|
45
|
+
return null;
|
|
46
|
+
if (typeof normalizedColor == "object") {
|
|
47
|
+
var processedColorObj = processColorObject(normalizedColor);
|
|
48
|
+
if (processedColorObj != null)
|
|
49
|
+
return processedColorObj;
|
|
50
|
+
} else if (typeof normalizedColor == "number") {
|
|
51
|
+
var r = (normalizedColor & 4278190080) >>> 24, g = (normalizedColor & 16711680) >>> 16, b = (normalizedColor & 65280) >>> 8, a = (normalizedColor & 255) / 255;
|
|
52
|
+
return {
|
|
53
|
+
r,
|
|
54
|
+
g,
|
|
55
|
+
b,
|
|
56
|
+
a
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
function isRgbaValue(value) {
|
|
62
|
+
return value && typeof value.r == "number" && typeof value.g == "number" && typeof value.b == "number" && typeof value.a == "number";
|
|
63
|
+
}
|
|
64
|
+
function isRgbaAnimatedValue(value) {
|
|
65
|
+
return value && value.r instanceof import_AnimatedValue.default && value.g instanceof import_AnimatedValue.default && value.b instanceof import_AnimatedValue.default && value.a instanceof import_AnimatedValue.default;
|
|
66
|
+
}
|
|
67
|
+
class AnimatedColor extends import_AnimatedWithChildren.default {
|
|
68
|
+
constructor(valueIn, config) {
|
|
69
|
+
super(), this._listeners = {};
|
|
70
|
+
var value = valueIn ?? defaultColor;
|
|
71
|
+
if (isRgbaAnimatedValue(value)) {
|
|
72
|
+
var rgbaAnimatedValue = value;
|
|
73
|
+
this.r = rgbaAnimatedValue.r, this.g = rgbaAnimatedValue.g, this.b = rgbaAnimatedValue.b, this.a = rgbaAnimatedValue.a;
|
|
74
|
+
} else {
|
|
75
|
+
var _processColor, processedColor = (
|
|
76
|
+
// $FlowIgnore[incompatible-cast] - Type is verified above
|
|
77
|
+
(_processColor = processColor(value)) !== null && _processColor !== void 0 ? _processColor : defaultColor
|
|
78
|
+
), initColor = defaultColor;
|
|
79
|
+
isRgbaValue(processedColor) ? initColor = processedColor : this.nativeColor = processedColor, this.r = new import_AnimatedValue.default(initColor.r), this.g = new import_AnimatedValue.default(initColor.g), this.b = new import_AnimatedValue.default(initColor.b), this.a = new import_AnimatedValue.default(initColor.a);
|
|
80
|
+
}
|
|
81
|
+
(this.nativeColor || config && config.useNativeDriver) && this.__makeNative();
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Directly set the value. This will stop any animations running on the value
|
|
85
|
+
* and update all the bound properties.
|
|
86
|
+
*/
|
|
87
|
+
setValue(value) {
|
|
88
|
+
var _processColor2, shouldUpdateNodeConfig = !1;
|
|
89
|
+
if (this.__isNative) {
|
|
90
|
+
var nativeTag = this.__getNativeTag();
|
|
91
|
+
NativeAnimatedAPI.setWaitingForIdentifier(nativeTag.toString());
|
|
92
|
+
}
|
|
93
|
+
var processedColor = (_processColor2 = processColor(value)) !== null && _processColor2 !== void 0 ? _processColor2 : defaultColor;
|
|
94
|
+
if (isRgbaValue(processedColor)) {
|
|
95
|
+
var rgbaValue = processedColor;
|
|
96
|
+
this.r.setValue(rgbaValue.r), this.g.setValue(rgbaValue.g), this.b.setValue(rgbaValue.b), this.a.setValue(rgbaValue.a), this.nativeColor != null && (this.nativeColor = null, shouldUpdateNodeConfig = !0);
|
|
97
|
+
} else {
|
|
98
|
+
var nativeColor = processedColor;
|
|
99
|
+
this.nativeColor !== nativeColor && (this.nativeColor = nativeColor, shouldUpdateNodeConfig = !0);
|
|
100
|
+
}
|
|
101
|
+
if (this.__isNative) {
|
|
102
|
+
var _nativeTag = this.__getNativeTag();
|
|
103
|
+
shouldUpdateNodeConfig && NativeAnimatedAPI.updateAnimatedNodeConfig(_nativeTag, this.__getNativeConfig()), NativeAnimatedAPI.unsetWaitingForIdentifier(_nativeTag.toString());
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Sets an offset that is applied on top of whatever value is set, whether
|
|
108
|
+
* via `setValue`, an animation, or `Animated.event`. Useful for compensating
|
|
109
|
+
* things like the start of a pan gesture.
|
|
110
|
+
*/
|
|
111
|
+
setOffset(offset) {
|
|
112
|
+
this.r.setOffset(offset.r), this.g.setOffset(offset.g), this.b.setOffset(offset.b), this.a.setOffset(offset.a);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Merges the offset value into the base value and resets the offset to zero.
|
|
116
|
+
* The final output of the value is unchanged.
|
|
117
|
+
*/
|
|
118
|
+
flattenOffset() {
|
|
119
|
+
this.r.flattenOffset(), this.g.flattenOffset(), this.b.flattenOffset(), this.a.flattenOffset();
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Sets the offset value to the base value, and resets the base value to
|
|
123
|
+
* zero. The final output of the value is unchanged.
|
|
124
|
+
*/
|
|
125
|
+
extractOffset() {
|
|
126
|
+
this.r.extractOffset(), this.g.extractOffset(), this.b.extractOffset(), this.a.extractOffset();
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Adds an asynchronous listener to the value so you can observe updates from
|
|
130
|
+
* animations. This is useful because there is no way to synchronously read
|
|
131
|
+
* the value because it might be driven natively.
|
|
132
|
+
*
|
|
133
|
+
* Returns a string that serves as an identifier for the listener.
|
|
134
|
+
*/
|
|
135
|
+
addListener(callback) {
|
|
136
|
+
var id = String(_uniqueId++), jointCallback = (_ref) => {
|
|
137
|
+
var number = _ref.value;
|
|
138
|
+
callback(this.__getValue());
|
|
139
|
+
};
|
|
140
|
+
return this._listeners[id] = {
|
|
141
|
+
r: this.r.addListener(jointCallback),
|
|
142
|
+
g: this.g.addListener(jointCallback),
|
|
143
|
+
b: this.b.addListener(jointCallback),
|
|
144
|
+
a: this.a.addListener(jointCallback)
|
|
145
|
+
}, id;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Unregister a listener. The `id` param shall match the identifier
|
|
149
|
+
* previously returned by `addListener()`.
|
|
150
|
+
*/
|
|
151
|
+
removeListener(id) {
|
|
152
|
+
this.r.removeListener(this._listeners[id].r), this.g.removeListener(this._listeners[id].g), this.b.removeListener(this._listeners[id].b), this.a.removeListener(this._listeners[id].a), delete this._listeners[id];
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Remove all registered listeners.
|
|
156
|
+
*/
|
|
157
|
+
removeAllListeners() {
|
|
158
|
+
this.r.removeAllListeners(), this.g.removeAllListeners(), this.b.removeAllListeners(), this.a.removeAllListeners(), this._listeners = {};
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Stops any running animation or tracking. `callback` is invoked with the
|
|
162
|
+
* final value after stopping the animation, which is useful for updating
|
|
163
|
+
* state to match the animation position with layout.
|
|
164
|
+
*/
|
|
165
|
+
stopAnimation(callback) {
|
|
166
|
+
this.r.stopAnimation(), this.g.stopAnimation(), this.b.stopAnimation(), this.a.stopAnimation(), callback && callback(this.__getValue());
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Stops any animation and resets the value to its original.
|
|
170
|
+
*/
|
|
171
|
+
resetAnimation(callback) {
|
|
172
|
+
this.r.resetAnimation(), this.g.resetAnimation(), this.b.resetAnimation(), this.a.resetAnimation(), callback && callback(this.__getValue());
|
|
173
|
+
}
|
|
174
|
+
__getValue() {
|
|
175
|
+
return this.nativeColor != null ? this.nativeColor : "rgba(" + this.r.__getValue() + ", " + this.g.__getValue() + ", " + this.b.__getValue() + ", " + this.a.__getValue() + ")";
|
|
176
|
+
}
|
|
177
|
+
__attach() {
|
|
178
|
+
this.r.__addChild(this), this.g.__addChild(this), this.b.__addChild(this), this.a.__addChild(this), super.__attach();
|
|
179
|
+
}
|
|
180
|
+
__detach() {
|
|
181
|
+
this.r.__removeChild(this), this.g.__removeChild(this), this.b.__removeChild(this), this.a.__removeChild(this), super.__detach();
|
|
182
|
+
}
|
|
183
|
+
__makeNative(platformConfig) {
|
|
184
|
+
this.r.__makeNative(platformConfig), this.g.__makeNative(platformConfig), this.b.__makeNative(platformConfig), this.a.__makeNative(platformConfig), super.__makeNative(platformConfig);
|
|
185
|
+
}
|
|
186
|
+
__getNativeConfig() {
|
|
187
|
+
return {
|
|
188
|
+
type: "color",
|
|
189
|
+
r: this.r.__getNativeTag(),
|
|
190
|
+
g: this.g.__getNativeTag(),
|
|
191
|
+
b: this.b.__getNativeTag(),
|
|
192
|
+
a: this.a.__getNativeTag(),
|
|
193
|
+
nativeColor: this.nativeColor
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
//# sourceMappingURL=AnimatedColor.js.map
|
|
@@ -0,0 +1,60 @@
|
|
|
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 AnimatedDiffClamp_exports = {};
|
|
25
|
+
__export(AnimatedDiffClamp_exports, {
|
|
26
|
+
default: () => AnimatedDiffClamp_default
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(AnimatedDiffClamp_exports);
|
|
29
|
+
var import_AnimatedInterpolation = __toESM(require("./AnimatedInterpolation")), import_AnimatedWithChildren = __toESM(require("./AnimatedWithChildren"));
|
|
30
|
+
class AnimatedDiffClamp extends import_AnimatedWithChildren.default {
|
|
31
|
+
constructor(a, min, max) {
|
|
32
|
+
super(), this._a = a, this._min = min, this._max = max, this._value = this._lastValue = this._a.__getValue();
|
|
33
|
+
}
|
|
34
|
+
__makeNative(platformConfig) {
|
|
35
|
+
this._a.__makeNative(platformConfig), super.__makeNative(platformConfig);
|
|
36
|
+
}
|
|
37
|
+
interpolate(config) {
|
|
38
|
+
return new import_AnimatedInterpolation.default(this, config);
|
|
39
|
+
}
|
|
40
|
+
__getValue() {
|
|
41
|
+
var value = this._a.__getValue(), diff = value - this._lastValue;
|
|
42
|
+
return this._lastValue = value, this._value = Math.min(Math.max(this._value + diff, this._min), this._max), this._value;
|
|
43
|
+
}
|
|
44
|
+
__attach() {
|
|
45
|
+
this._a.__addChild(this);
|
|
46
|
+
}
|
|
47
|
+
__detach() {
|
|
48
|
+
this._a.__removeChild(this), super.__detach();
|
|
49
|
+
}
|
|
50
|
+
__getNativeConfig() {
|
|
51
|
+
return {
|
|
52
|
+
type: "diffclamp",
|
|
53
|
+
input: this._a.__getNativeTag(),
|
|
54
|
+
min: this._min,
|
|
55
|
+
max: this._max
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
var AnimatedDiffClamp_default = AnimatedDiffClamp;
|
|
60
|
+
//# sourceMappingURL=AnimatedDiffClamp.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
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 AnimatedDivision_exports = {};
|
|
25
|
+
__export(AnimatedDivision_exports, {
|
|
26
|
+
default: () => AnimatedDivision_default
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(AnimatedDivision_exports);
|
|
29
|
+
var import_AnimatedInterpolation = __toESM(require("./AnimatedInterpolation")), import_AnimatedNode = __toESM(require("./AnimatedNode")), import_AnimatedValue = __toESM(require("./AnimatedValue")), import_AnimatedWithChildren = __toESM(require("./AnimatedWithChildren"));
|
|
30
|
+
class AnimatedDivision extends import_AnimatedWithChildren.default {
|
|
31
|
+
constructor(a, b) {
|
|
32
|
+
super(), this._warnedAboutDivideByZero = !1, (b === 0 || b instanceof import_AnimatedNode.default && b.__getValue() === 0) && console.error("Detected potential division by zero in AnimatedDivision"), this._a = typeof a == "number" ? new import_AnimatedValue.default(a) : a, this._b = typeof b == "number" ? new import_AnimatedValue.default(b) : b;
|
|
33
|
+
}
|
|
34
|
+
__makeNative(platformConfig) {
|
|
35
|
+
this._a.__makeNative(platformConfig), this._b.__makeNative(platformConfig), super.__makeNative(platformConfig);
|
|
36
|
+
}
|
|
37
|
+
__getValue() {
|
|
38
|
+
var a = this._a.__getValue(), b = this._b.__getValue();
|
|
39
|
+
return b === 0 ? (this._warnedAboutDivideByZero || (console.error("Detected division by zero in AnimatedDivision"), this._warnedAboutDivideByZero = !0), 0) : (this._warnedAboutDivideByZero = !1, a / b);
|
|
40
|
+
}
|
|
41
|
+
interpolate(config) {
|
|
42
|
+
return new import_AnimatedInterpolation.default(this, config);
|
|
43
|
+
}
|
|
44
|
+
__attach() {
|
|
45
|
+
this._a.__addChild(this), this._b.__addChild(this);
|
|
46
|
+
}
|
|
47
|
+
__detach() {
|
|
48
|
+
this._a.__removeChild(this), this._b.__removeChild(this), super.__detach();
|
|
49
|
+
}
|
|
50
|
+
__getNativeConfig() {
|
|
51
|
+
return {
|
|
52
|
+
type: "division",
|
|
53
|
+
input: [this._a.__getNativeTag(), this._b.__getNativeTag()]
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
var AnimatedDivision_default = AnimatedDivision;
|
|
58
|
+
//# sourceMappingURL=AnimatedDivision.js.map
|
|
@@ -0,0 +1,175 @@
|
|
|
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 AnimatedInterpolation_exports = {};
|
|
25
|
+
__export(AnimatedInterpolation_exports, {
|
|
26
|
+
default: () => AnimatedInterpolation_default
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(AnimatedInterpolation_exports);
|
|
29
|
+
var import_normalize_css_color = __toESM(require("@tamagui/normalize-css-color")), import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_NativeAnimatedHelper = __toESM(require("../NativeAnimatedHelper")), import_AnimatedWithChildren = __toESM(require("./AnimatedWithChildren")), __DEV__ = process.env.NODE_ENV !== "production", linear = (t) => t;
|
|
30
|
+
function createInterpolation(config) {
|
|
31
|
+
if (config.outputRange && typeof config.outputRange[0] == "string")
|
|
32
|
+
return createInterpolationFromStringOutputRange(config);
|
|
33
|
+
var outputRange = config.outputRange, inputRange = config.inputRange;
|
|
34
|
+
__DEV__ && (checkInfiniteRange("outputRange", outputRange), checkInfiniteRange("inputRange", inputRange), checkValidInputRange(inputRange), (0, import_react_native_web_internals.invariant)(
|
|
35
|
+
inputRange.length === outputRange.length,
|
|
36
|
+
"inputRange (" + inputRange.length + ") and outputRange (" + outputRange.length + ") must have the same length"
|
|
37
|
+
));
|
|
38
|
+
var easing = config.easing || linear, extrapolateLeft = "extend";
|
|
39
|
+
config.extrapolateLeft !== void 0 ? extrapolateLeft = config.extrapolateLeft : config.extrapolate !== void 0 && (extrapolateLeft = config.extrapolate);
|
|
40
|
+
var extrapolateRight = "extend";
|
|
41
|
+
return config.extrapolateRight !== void 0 ? extrapolateRight = config.extrapolateRight : config.extrapolate !== void 0 && (extrapolateRight = config.extrapolate), (input) => {
|
|
42
|
+
(0, import_react_native_web_internals.invariant)(
|
|
43
|
+
typeof input == "number",
|
|
44
|
+
"Cannot interpolation an input which is not a number"
|
|
45
|
+
);
|
|
46
|
+
var range = findRange(input, inputRange);
|
|
47
|
+
return interpolate(
|
|
48
|
+
input,
|
|
49
|
+
inputRange[range],
|
|
50
|
+
inputRange[range + 1],
|
|
51
|
+
outputRange[range],
|
|
52
|
+
outputRange[range + 1],
|
|
53
|
+
easing,
|
|
54
|
+
extrapolateLeft,
|
|
55
|
+
extrapolateRight
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function interpolate(input, inputMin, inputMax, outputMin, outputMax, easing, extrapolateLeft, extrapolateRight) {
|
|
60
|
+
var result = input;
|
|
61
|
+
if (result < inputMin) {
|
|
62
|
+
if (extrapolateLeft === "identity")
|
|
63
|
+
return result;
|
|
64
|
+
extrapolateLeft === "clamp" && (result = inputMin);
|
|
65
|
+
}
|
|
66
|
+
if (result > inputMax) {
|
|
67
|
+
if (extrapolateRight === "identity")
|
|
68
|
+
return result;
|
|
69
|
+
extrapolateRight === "clamp" && (result = inputMax);
|
|
70
|
+
}
|
|
71
|
+
return outputMin === outputMax ? outputMin : inputMin === inputMax ? input <= inputMin ? outputMin : outputMax : (inputMin === -1 / 0 ? result = -result : inputMax === 1 / 0 ? result = result - inputMin : result = (result - inputMin) / (inputMax - inputMin), result = easing(result), outputMin === -1 / 0 ? result = -result : outputMax === 1 / 0 ? result = result + outputMin : result = result * (outputMax - outputMin) + outputMin, result);
|
|
72
|
+
}
|
|
73
|
+
function colorToRgba(input) {
|
|
74
|
+
var normalizedColor = (0, import_normalize_css_color.default)(input);
|
|
75
|
+
if (normalizedColor === null || typeof normalizedColor != "number")
|
|
76
|
+
return input;
|
|
77
|
+
normalizedColor = normalizedColor || 0;
|
|
78
|
+
var r = (normalizedColor & 4278190080) >>> 24, g = (normalizedColor & 16711680) >>> 16, b = (normalizedColor & 65280) >>> 8, a = (normalizedColor & 255) / 255;
|
|
79
|
+
return "rgba(" + r + ", " + g + ", " + b + ", " + a + ")";
|
|
80
|
+
}
|
|
81
|
+
var stringShapeRegex = /[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;
|
|
82
|
+
function createInterpolationFromStringOutputRange(config) {
|
|
83
|
+
var outputRange = config.outputRange;
|
|
84
|
+
(0, import_react_native_web_internals.invariant)(outputRange.length >= 2, "Bad output range"), outputRange = outputRange.map(colorToRgba), checkPattern(outputRange);
|
|
85
|
+
var outputRanges = outputRange[0].match(stringShapeRegex).map(() => []);
|
|
86
|
+
outputRange.forEach((value) => {
|
|
87
|
+
value.match(stringShapeRegex).forEach((number, i) => {
|
|
88
|
+
outputRanges[i].push(+number);
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
var interpolations = outputRange[0].match(stringShapeRegex).map((value, i) => createInterpolation({
|
|
92
|
+
...config,
|
|
93
|
+
outputRange: outputRanges[i]
|
|
94
|
+
})), shouldRound = isRgbOrRgba(outputRange[0]);
|
|
95
|
+
return (input) => {
|
|
96
|
+
var i = 0;
|
|
97
|
+
return outputRange[0].replace(stringShapeRegex, () => {
|
|
98
|
+
var val = +interpolations[i++](input);
|
|
99
|
+
return shouldRound && (val = i < 4 ? Math.round(val) : Math.round(val * 1e3) / 1e3), String(val);
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function isRgbOrRgba(range) {
|
|
104
|
+
return typeof range == "string" && range.startsWith("rgb");
|
|
105
|
+
}
|
|
106
|
+
function checkPattern(arr) {
|
|
107
|
+
for (var pattern = arr[0].replace(stringShapeRegex, ""), i = 1; i < arr.length; ++i)
|
|
108
|
+
(0, import_react_native_web_internals.invariant)(
|
|
109
|
+
pattern === arr[i].replace(stringShapeRegex, ""),
|
|
110
|
+
"invalid pattern " + arr[0] + " and " + arr[i]
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
function findRange(input, inputRange) {
|
|
114
|
+
var i;
|
|
115
|
+
for (i = 1; i < inputRange.length - 1 && !(inputRange[i] >= input); ++i)
|
|
116
|
+
;
|
|
117
|
+
return i - 1;
|
|
118
|
+
}
|
|
119
|
+
function checkValidInputRange(arr) {
|
|
120
|
+
(0, import_react_native_web_internals.invariant)(arr.length >= 2, "inputRange must have at least 2 elements");
|
|
121
|
+
for (var message = "inputRange must be monotonically non-decreasing " + String(arr), i = 1; i < arr.length; ++i)
|
|
122
|
+
(0, import_react_native_web_internals.invariant)(arr[i] >= arr[i - 1], message);
|
|
123
|
+
}
|
|
124
|
+
function checkInfiniteRange(name, arr) {
|
|
125
|
+
(0, import_react_native_web_internals.invariant)(arr.length >= 2, name + " must have at least 2 elements"), (0, import_react_native_web_internals.invariant)(
|
|
126
|
+
arr.length !== 2 || arr[0] !== -1 / 0 || arr[1] !== 1 / 0,
|
|
127
|
+
/* $FlowFixMe[incompatible-type] (>=0.13.0) - In the addition expression
|
|
128
|
+
* below this comment, one or both of the operands may be something that
|
|
129
|
+
* doesn't cleanly convert to a string, like undefined, null, and object,
|
|
130
|
+
* etc. If you really mean this implicit string conversion, you can do
|
|
131
|
+
* something like String(myThing) */
|
|
132
|
+
name + "cannot be ]-infinity;+infinity[ " + arr
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
class AnimatedInterpolation extends import_AnimatedWithChildren.default {
|
|
136
|
+
// Export for testing.
|
|
137
|
+
constructor(parent, config) {
|
|
138
|
+
super(), this._parent = parent, this._config = config, this._interpolation = createInterpolation(config);
|
|
139
|
+
}
|
|
140
|
+
__makeNative(platformConfig) {
|
|
141
|
+
this._parent.__makeNative(platformConfig), super.__makeNative(platformConfig);
|
|
142
|
+
}
|
|
143
|
+
__getValue() {
|
|
144
|
+
var parentValue = this._parent.__getValue();
|
|
145
|
+
return (0, import_react_native_web_internals.invariant)(
|
|
146
|
+
typeof parentValue == "number",
|
|
147
|
+
"Cannot interpolate an input which is not a number."
|
|
148
|
+
), this._interpolation(parentValue);
|
|
149
|
+
}
|
|
150
|
+
interpolate(config) {
|
|
151
|
+
return new AnimatedInterpolation(this, config);
|
|
152
|
+
}
|
|
153
|
+
__attach() {
|
|
154
|
+
this._parent.__addChild(this);
|
|
155
|
+
}
|
|
156
|
+
__detach() {
|
|
157
|
+
this._parent.__removeChild(this), super.__detach();
|
|
158
|
+
}
|
|
159
|
+
__transformDataType(range) {
|
|
160
|
+
return range.map(import_NativeAnimatedHelper.default.transformDataType);
|
|
161
|
+
}
|
|
162
|
+
__getNativeConfig() {
|
|
163
|
+
return __DEV__ && import_NativeAnimatedHelper.default.validateInterpolation(this._config), {
|
|
164
|
+
inputRange: this._config.inputRange,
|
|
165
|
+
// Only the `outputRange` can contain strings so we don't need to transform `inputRange` here
|
|
166
|
+
outputRange: this.__transformDataType(this._config.outputRange),
|
|
167
|
+
extrapolateLeft: this._config.extrapolateLeft || this._config.extrapolate || "extend",
|
|
168
|
+
extrapolateRight: this._config.extrapolateRight || this._config.extrapolate || "extend",
|
|
169
|
+
type: "interpolation"
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
AnimatedInterpolation.__createInterpolation = createInterpolation;
|
|
174
|
+
var AnimatedInterpolation_default = AnimatedInterpolation;
|
|
175
|
+
//# sourceMappingURL=AnimatedInterpolation.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
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 AnimatedModulo_exports = {};
|
|
25
|
+
__export(AnimatedModulo_exports, {
|
|
26
|
+
default: () => AnimatedModulo_default
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(AnimatedModulo_exports);
|
|
29
|
+
var import_AnimatedInterpolation = __toESM(require("./AnimatedInterpolation")), import_AnimatedWithChildren = __toESM(require("./AnimatedWithChildren"));
|
|
30
|
+
class AnimatedModulo extends import_AnimatedWithChildren.default {
|
|
31
|
+
constructor(a, modulus) {
|
|
32
|
+
super(), this._a = a, this._modulus = modulus;
|
|
33
|
+
}
|
|
34
|
+
__makeNative(platformConfig) {
|
|
35
|
+
this._a.__makeNative(platformConfig), super.__makeNative(platformConfig);
|
|
36
|
+
}
|
|
37
|
+
__getValue() {
|
|
38
|
+
return (this._a.__getValue() % this._modulus + this._modulus) % this._modulus;
|
|
39
|
+
}
|
|
40
|
+
interpolate(config) {
|
|
41
|
+
return new import_AnimatedInterpolation.default(this, config);
|
|
42
|
+
}
|
|
43
|
+
__attach() {
|
|
44
|
+
this._a.__addChild(this);
|
|
45
|
+
}
|
|
46
|
+
__detach() {
|
|
47
|
+
this._a.__removeChild(this), super.__detach();
|
|
48
|
+
}
|
|
49
|
+
__getNativeConfig() {
|
|
50
|
+
return {
|
|
51
|
+
type: "modulus",
|
|
52
|
+
input: this._a.__getNativeTag(),
|
|
53
|
+
modulus: this._modulus
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
var AnimatedModulo_default = AnimatedModulo;
|
|
58
|
+
//# sourceMappingURL=AnimatedModulo.js.map
|
|
@@ -0,0 +1,57 @@
|
|
|
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 AnimatedMultiplication_exports = {};
|
|
25
|
+
__export(AnimatedMultiplication_exports, {
|
|
26
|
+
default: () => AnimatedMultiplication_default
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(AnimatedMultiplication_exports);
|
|
29
|
+
var import_AnimatedInterpolation = __toESM(require("./AnimatedInterpolation")), import_AnimatedValue = __toESM(require("./AnimatedValue")), import_AnimatedWithChildren = __toESM(require("./AnimatedWithChildren"));
|
|
30
|
+
class AnimatedMultiplication extends import_AnimatedWithChildren.default {
|
|
31
|
+
constructor(a, b) {
|
|
32
|
+
super(), this._a = typeof a == "number" ? new import_AnimatedValue.default(a) : a, this._b = typeof b == "number" ? new import_AnimatedValue.default(b) : b;
|
|
33
|
+
}
|
|
34
|
+
__makeNative(platformConfig) {
|
|
35
|
+
this._a.__makeNative(platformConfig), this._b.__makeNative(platformConfig), super.__makeNative(platformConfig);
|
|
36
|
+
}
|
|
37
|
+
__getValue() {
|
|
38
|
+
return this._a.__getValue() * this._b.__getValue();
|
|
39
|
+
}
|
|
40
|
+
interpolate(config) {
|
|
41
|
+
return new import_AnimatedInterpolation.default(this, config);
|
|
42
|
+
}
|
|
43
|
+
__attach() {
|
|
44
|
+
this._a.__addChild(this), this._b.__addChild(this);
|
|
45
|
+
}
|
|
46
|
+
__detach() {
|
|
47
|
+
this._a.__removeChild(this), this._b.__removeChild(this), super.__detach();
|
|
48
|
+
}
|
|
49
|
+
__getNativeConfig() {
|
|
50
|
+
return {
|
|
51
|
+
type: "multiplication",
|
|
52
|
+
input: [this._a.__getNativeTag(), this._b.__getNativeTag()]
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
var AnimatedMultiplication_default = AnimatedMultiplication;
|
|
57
|
+
//# sourceMappingURL=AnimatedMultiplication.js.map
|