@tamagui/animations-react-native 3.0.7 → 3.0.8
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.
|
@@ -45,7 +45,7 @@ var import_internal_runtime = require("@tamagui/web/internal-runtime");
|
|
|
45
45
|
var import_react = __toESM(require("react"), 1);
|
|
46
46
|
var import_react_native = require("react-native");
|
|
47
47
|
var isFabric = !import_constants.isWeb && typeof global !== "undefined" && !!global.__nativeFabricUIManager;
|
|
48
|
-
var resolveDynamicValue = function(value, isDark) {
|
|
48
|
+
var resolveDynamicValue = function resolveDynamicValue2(value, isDark) {
|
|
49
49
|
if (value && typeof value === "object" && "dynamic" in value) {
|
|
50
50
|
var dynamicValue = isDark ? value.dynamic.dark : value.dynamic.light;
|
|
51
51
|
return dynamicValue;
|
|
@@ -88,14 +88,14 @@ function hasAnimatedLayoutKey(style, isDark, resolved) {
|
|
|
88
88
|
}
|
|
89
89
|
return false;
|
|
90
90
|
}
|
|
91
|
-
var getLeadingRatio = function(metrics) {
|
|
91
|
+
var getLeadingRatio = function getLeadingRatio2(metrics) {
|
|
92
92
|
var ratio = metrics === null || metrics === void 0 ? void 0 : metrics.lineHeight;
|
|
93
93
|
return typeof ratio === "number" && Number.isFinite(ratio) && ratio >= 0 ? ratio : void 0;
|
|
94
94
|
};
|
|
95
|
-
var paintsLeadingProduct = function(style, ratio) {
|
|
95
|
+
var paintsLeadingProduct = function paintsLeadingProduct2(style, ratio) {
|
|
96
96
|
return ratio !== void 0 && typeof style.fontSize === "number" && typeof style.lineHeight === "number";
|
|
97
97
|
};
|
|
98
|
-
var inheritedFontSizeNode = function(style, ratio, inheritedText) {
|
|
98
|
+
var inheritedFontSizeNode = function inheritedFontSizeNode2(style, ratio, inheritedText) {
|
|
99
99
|
return ratio !== void 0 && typeof style.fontSize !== "number" && (inheritedText === null || inheritedText === void 0 ? void 0 : inheritedText.driver) === "react-native" ? inheritedText.fontSize : void 0;
|
|
100
100
|
};
|
|
101
101
|
function isAnimatableColor(value) {
|
|
@@ -175,7 +175,7 @@ function useAnimatedNumber(initial) {
|
|
|
175
175
|
}
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
|
-
var useAnimatedNumberReaction = function(param, onValue) {
|
|
178
|
+
var useAnimatedNumberReaction = function useAnimatedNumberReaction2(param, onValue) {
|
|
179
179
|
var { value } = param;
|
|
180
180
|
var onChange = (0, import_web.useEvent)(function(current) {
|
|
181
181
|
onValue(current.value);
|
|
@@ -187,7 +187,7 @@ var useAnimatedNumberReaction = function(param, onValue) {
|
|
|
187
187
|
};
|
|
188
188
|
}, [value, onChange]);
|
|
189
189
|
};
|
|
190
|
-
var useAnimatedNumberStyle = function(value, getStyle) {
|
|
190
|
+
var useAnimatedNumberStyle = function useAnimatedNumberStyle2(value, getStyle) {
|
|
191
191
|
var instance = value.getInstance();
|
|
192
192
|
var animatedStyle = getStyle(instance);
|
|
193
193
|
var usesAnimatedNode = hasAnimatedNode(animatedStyle);
|
|
@@ -210,14 +210,14 @@ function hasAnimatedNode(value) {
|
|
|
210
210
|
if (Array.isArray(value)) return value.some(hasAnimatedNode);
|
|
211
211
|
return Object.values(value).some(hasAnimatedNode);
|
|
212
212
|
}
|
|
213
|
-
var useAnimatedNumbersStyle = function(vals, getStyle) {
|
|
213
|
+
var useAnimatedNumbersStyle = function useAnimatedNumbersStyle2(vals, getStyle) {
|
|
214
214
|
return getStyle(...vals.map(function(v) {
|
|
215
215
|
return v.getInstance();
|
|
216
216
|
}));
|
|
217
217
|
};
|
|
218
218
|
function createAnimations(animations, options) {
|
|
219
|
-
var
|
|
220
|
-
var nativeDriver = (
|
|
219
|
+
var _ref;
|
|
220
|
+
var nativeDriver = (_ref = options === null || options === void 0 ? void 0 : options.useNativeDriver) !== null && _ref !== void 0 ? _ref : isFabric;
|
|
221
221
|
return {
|
|
222
222
|
inputStyle: "value",
|
|
223
223
|
outputStyle: "inline",
|
|
@@ -232,7 +232,7 @@ function createAnimations(animations, options) {
|
|
|
232
232
|
useAnimatedNumbersStyle,
|
|
233
233
|
usePresence: import_use_presence.usePresence,
|
|
234
234
|
ResetPresence: import_use_presence.ResetPresence,
|
|
235
|
-
useTextMetrics: function(param) {
|
|
235
|
+
useTextMetrics: function useTextMetrics(param) {
|
|
236
236
|
var { inheritedText, lineHeight } = param;
|
|
237
237
|
var node = (inheritedText === null || inheritedText === void 0 ? void 0 : inheritedText.driver) === "react-native" ? inheritedText.fontSize : null;
|
|
238
238
|
var ratio = typeof lineHeight === "number" ? lineHeight : null;
|
|
@@ -255,15 +255,16 @@ function createAnimations(animations, options) {
|
|
|
255
255
|
TextInput: animatedTextInput
|
|
256
256
|
};
|
|
257
257
|
},
|
|
258
|
-
useAnimations: function(param) {
|
|
258
|
+
useAnimations: function useAnimations(param) {
|
|
259
259
|
var { props, onTransition, style, componentState, presence, stateRef, styleState, useStyleEmitter, inheritedText } = param;
|
|
260
|
+
var _ref2;
|
|
260
261
|
var _themeState_name;
|
|
261
262
|
var isDisabled = import_constants.isWeb && componentState.unmounted === true;
|
|
262
263
|
var isExiting = (presence === null || presence === void 0 ? void 0 : presence[0]) === false;
|
|
263
264
|
var sendExitComplete = presence === null || presence === void 0 ? void 0 : presence[1];
|
|
264
265
|
var onTransitionRef = import_react.default.useRef(onTransition);
|
|
265
266
|
onTransitionRef.current = onTransition;
|
|
266
|
-
var emit = function(phase, cause, finished) {
|
|
267
|
+
var emit = function emit2(phase, cause, finished) {
|
|
267
268
|
var _onTransitionRef_current;
|
|
268
269
|
(_onTransitionRef_current = onTransitionRef.current) === null || _onTransitionRef_current === void 0 ? void 0 : _onTransitionRef_current.call(onTransitionRef, phase === "end" ? {
|
|
269
270
|
phase,
|
|
@@ -274,8 +275,7 @@ function createAnimations(animations, options) {
|
|
|
274
275
|
cause
|
|
275
276
|
});
|
|
276
277
|
};
|
|
277
|
-
var
|
|
278
|
-
var effectiveTransition = (_styleState_effectiveTransition = styleState === null || styleState === void 0 ? void 0 : styleState.effectiveTransition) !== null && _styleState_effectiveTransition !== void 0 ? _styleState_effectiveTransition : props.transition;
|
|
278
|
+
var effectiveTransition = (_ref2 = styleState === null || styleState === void 0 ? void 0 : styleState.effectiveTransition) !== null && _ref2 !== void 0 ? _ref2 : props.transition;
|
|
279
279
|
var [, themeState] = (0, import_internal_runtime.useThemeWithState)({});
|
|
280
280
|
var isDark = (themeState === null || themeState === void 0 ? void 0 : themeState.scheme) === "dark" || (themeState === null || themeState === void 0 ? void 0 : (_themeState_name = themeState.name) === null || _themeState_name === void 0 ? void 0 : _themeState_name.startsWith("dark"));
|
|
281
281
|
var animateStyles = import_react.default.useRef({});
|
|
@@ -285,27 +285,27 @@ function createAnimations(animations, options) {
|
|
|
285
285
|
var textChannelRef = import_react.default.useRef(null);
|
|
286
286
|
leadingRatioRef.current = getLeadingRatio(styleState === null || styleState === void 0 ? void 0 : styleState.nativeTextMetrics);
|
|
287
287
|
var paintedTextRef = import_react.default.useRef({});
|
|
288
|
-
var movesTextValue = function(key, target) {
|
|
288
|
+
var movesTextValue = function movesTextValue2(key, target) {
|
|
289
289
|
if (typeof target !== "number") return false;
|
|
290
290
|
var node = animateStyles.current[key];
|
|
291
291
|
var last = node ? node["_value"] : paintedTextRef.current[key];
|
|
292
292
|
return last !== void 0 && last !== target;
|
|
293
293
|
};
|
|
294
|
-
var movesLeadingRatio = function(ratio) {
|
|
294
|
+
var movesLeadingRatio = function movesLeadingRatio2(ratio) {
|
|
295
295
|
if (ratio === void 0) return false;
|
|
296
296
|
var node = leadingRatioValue.current;
|
|
297
297
|
var last = node ? node["_value"] : paintedTextRef.current.ratio;
|
|
298
298
|
return last !== void 0 && last !== ratio;
|
|
299
299
|
};
|
|
300
300
|
var fontSizeNode = import_react.default.useRef(null);
|
|
301
|
-
var animatedValueFor = function(key) {
|
|
301
|
+
var animatedValueFor = function animatedValueFor2(key) {
|
|
302
302
|
var painted = animateStyles.current[key];
|
|
303
303
|
if (painted) return painted;
|
|
304
304
|
if (key === "fontSize" && fontSizeNode.current) return fontSizeNode.current;
|
|
305
305
|
if (textMetricStyleKey[key]) return new import_react_native.Animated.Value(paintedTextRef.current[key]);
|
|
306
306
|
return void 0;
|
|
307
307
|
};
|
|
308
|
-
var leadingRatioValueFrom = function() {
|
|
308
|
+
var leadingRatioValueFrom = function leadingRatioValueFrom2() {
|
|
309
309
|
var _leadingRatioValue_current;
|
|
310
310
|
return (_leadingRatioValue_current = leadingRatioValue.current) !== null && _leadingRatioValue_current !== void 0 ? _leadingRatioValue_current : new import_react_native.Animated.Value(paintedTextRef.current.ratio);
|
|
311
311
|
};
|
|
@@ -445,7 +445,7 @@ function createAnimations(animations, options) {
|
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
var ratioFactor = function() {
|
|
448
|
+
var ratioFactor = function ratioFactor2() {
|
|
449
449
|
if (!movesLeading) {
|
|
450
450
|
leadingRatioValue.current = null;
|
|
451
451
|
return paintedRatio;
|
|
@@ -520,8 +520,8 @@ function createAnimations(animations, options) {
|
|
|
520
520
|
var curInterpolation = animationsState.current.get(value);
|
|
521
521
|
var interpolateArgs;
|
|
522
522
|
if (type) {
|
|
523
|
-
var
|
|
524
|
-
interpolateArgs = getInterpolated((
|
|
523
|
+
var _ref3;
|
|
524
|
+
interpolateArgs = getInterpolated((_ref3 = curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current) !== null && _ref3 !== void 0 ? _ref3 : value["_value"], val2, type);
|
|
525
525
|
animationsState.current.set(value, {
|
|
526
526
|
interpolation: value.interpolate(interpolateArgs),
|
|
527
527
|
current: val2
|
|
@@ -649,7 +649,7 @@ function createAnimations(animations, options) {
|
|
|
649
649
|
}
|
|
650
650
|
});
|
|
651
651
|
}, args);
|
|
652
|
-
var onEmittedStyle = function(nextStyle, emittedTransition, pseudoActive, nextMetrics) {
|
|
652
|
+
var onEmittedStyle = function onEmittedStyle2(nextStyle, emittedTransition, pseudoActive, nextMetrics) {
|
|
653
653
|
pseudoActiveRef.current = pseudoActive === true;
|
|
654
654
|
var runners = [];
|
|
655
655
|
var seenAnimateKeys = /* @__PURE__ */ new Set();
|
|
@@ -752,9 +752,9 @@ function createAnimations(animations, options) {
|
|
|
752
752
|
var value = animated || new import_react_native.Animated.Value(numVal);
|
|
753
753
|
var curInterpolation = animationsState.current.get(value);
|
|
754
754
|
if (type) {
|
|
755
|
-
var
|
|
755
|
+
var _ref3;
|
|
756
756
|
animationsState.current.set(value, {
|
|
757
|
-
interpolation: value.interpolate(getInterpolated((
|
|
757
|
+
interpolation: value.interpolate(getInterpolated((_ref3 = curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current) !== null && _ref3 !== void 0 ? _ref3 : value["_value"], numVal, type)),
|
|
758
758
|
current: numVal
|
|
759
759
|
});
|
|
760
760
|
}
|
|
@@ -854,10 +854,10 @@ function getAnimationConfig(key, animations, transition) {
|
|
|
854
854
|
}
|
|
855
855
|
function getValue(input) {
|
|
856
856
|
var isColor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
857
|
+
var _input_match;
|
|
857
858
|
if (typeof input !== "string") {
|
|
858
859
|
return [input];
|
|
859
860
|
}
|
|
860
|
-
var _input_match;
|
|
861
861
|
var [_, number, after] = (_input_match = input.match(/(-?(?:\d+\.?\d*|\.\d+))(deg|%|px)?/)) !== null && _input_match !== void 0 ? _input_match : [];
|
|
862
862
|
return [+number, after];
|
|
863
863
|
}
|
|
@@ -45,7 +45,7 @@ var import_internal_runtime = require("@tamagui/web/internal-runtime");
|
|
|
45
45
|
var import_react = __toESM(require("react"), 1);
|
|
46
46
|
var import_react_native = require("react-native");
|
|
47
47
|
var isFabric = !import_constants.isWeb && typeof global !== "undefined" && !!global.__nativeFabricUIManager;
|
|
48
|
-
var resolveDynamicValue = function(value, isDark) {
|
|
48
|
+
var resolveDynamicValue = function resolveDynamicValue2(value, isDark) {
|
|
49
49
|
if (value && typeof value === "object" && "dynamic" in value) {
|
|
50
50
|
var dynamicValue = isDark ? value.dynamic.dark : value.dynamic.light;
|
|
51
51
|
return dynamicValue;
|
|
@@ -88,14 +88,14 @@ function hasAnimatedLayoutKey(style, isDark, resolved) {
|
|
|
88
88
|
}
|
|
89
89
|
return false;
|
|
90
90
|
}
|
|
91
|
-
var getLeadingRatio = function(metrics) {
|
|
91
|
+
var getLeadingRatio = function getLeadingRatio2(metrics) {
|
|
92
92
|
var ratio = metrics === null || metrics === void 0 ? void 0 : metrics.lineHeight;
|
|
93
93
|
return typeof ratio === "number" && Number.isFinite(ratio) && ratio >= 0 ? ratio : void 0;
|
|
94
94
|
};
|
|
95
|
-
var paintsLeadingProduct = function(style, ratio) {
|
|
95
|
+
var paintsLeadingProduct = function paintsLeadingProduct2(style, ratio) {
|
|
96
96
|
return ratio !== void 0 && typeof style.fontSize === "number" && typeof style.lineHeight === "number";
|
|
97
97
|
};
|
|
98
|
-
var inheritedFontSizeNode = function(style, ratio, inheritedText) {
|
|
98
|
+
var inheritedFontSizeNode = function inheritedFontSizeNode2(style, ratio, inheritedText) {
|
|
99
99
|
return ratio !== void 0 && typeof style.fontSize !== "number" && (inheritedText === null || inheritedText === void 0 ? void 0 : inheritedText.driver) === "react-native" ? inheritedText.fontSize : void 0;
|
|
100
100
|
};
|
|
101
101
|
function isAnimatableColor(value) {
|
|
@@ -175,7 +175,7 @@ function useAnimatedNumber(initial) {
|
|
|
175
175
|
}
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
|
-
var useAnimatedNumberReaction = function(param, onValue) {
|
|
178
|
+
var useAnimatedNumberReaction = function useAnimatedNumberReaction2(param, onValue) {
|
|
179
179
|
var { value } = param;
|
|
180
180
|
var onChange = (0, import_web.useEvent)(function(current) {
|
|
181
181
|
onValue(current.value);
|
|
@@ -187,7 +187,7 @@ var useAnimatedNumberReaction = function(param, onValue) {
|
|
|
187
187
|
};
|
|
188
188
|
}, [value, onChange]);
|
|
189
189
|
};
|
|
190
|
-
var useAnimatedNumberStyle = function(value, getStyle) {
|
|
190
|
+
var useAnimatedNumberStyle = function useAnimatedNumberStyle2(value, getStyle) {
|
|
191
191
|
var instance = value.getInstance();
|
|
192
192
|
var animatedStyle = getStyle(instance);
|
|
193
193
|
var usesAnimatedNode = hasAnimatedNode(animatedStyle);
|
|
@@ -210,14 +210,14 @@ function hasAnimatedNode(value) {
|
|
|
210
210
|
if (Array.isArray(value)) return value.some(hasAnimatedNode);
|
|
211
211
|
return Object.values(value).some(hasAnimatedNode);
|
|
212
212
|
}
|
|
213
|
-
var useAnimatedNumbersStyle = function(vals, getStyle) {
|
|
213
|
+
var useAnimatedNumbersStyle = function useAnimatedNumbersStyle2(vals, getStyle) {
|
|
214
214
|
return getStyle(...vals.map(function(v) {
|
|
215
215
|
return v.getInstance();
|
|
216
216
|
}));
|
|
217
217
|
};
|
|
218
218
|
function createAnimations(animations, options) {
|
|
219
|
-
var
|
|
220
|
-
var nativeDriver = (
|
|
219
|
+
var _ref;
|
|
220
|
+
var nativeDriver = (_ref = options === null || options === void 0 ? void 0 : options.useNativeDriver) !== null && _ref !== void 0 ? _ref : isFabric;
|
|
221
221
|
return {
|
|
222
222
|
inputStyle: "value",
|
|
223
223
|
outputStyle: "inline",
|
|
@@ -232,7 +232,7 @@ function createAnimations(animations, options) {
|
|
|
232
232
|
useAnimatedNumbersStyle,
|
|
233
233
|
usePresence: import_use_presence.usePresence,
|
|
234
234
|
ResetPresence: import_use_presence.ResetPresence,
|
|
235
|
-
useTextMetrics: function(param) {
|
|
235
|
+
useTextMetrics: function useTextMetrics(param) {
|
|
236
236
|
var { inheritedText, lineHeight } = param;
|
|
237
237
|
var node = (inheritedText === null || inheritedText === void 0 ? void 0 : inheritedText.driver) === "react-native" ? inheritedText.fontSize : null;
|
|
238
238
|
var ratio = typeof lineHeight === "number" ? lineHeight : null;
|
|
@@ -255,15 +255,16 @@ function createAnimations(animations, options) {
|
|
|
255
255
|
TextInput: animatedTextInput
|
|
256
256
|
};
|
|
257
257
|
},
|
|
258
|
-
useAnimations: function(param) {
|
|
258
|
+
useAnimations: function useAnimations(param) {
|
|
259
259
|
var { props, onTransition, style, componentState, presence, stateRef, styleState, useStyleEmitter, inheritedText } = param;
|
|
260
|
+
var _ref2;
|
|
260
261
|
var _themeState_name;
|
|
261
262
|
var isDisabled = import_constants.isWeb && componentState.unmounted === true;
|
|
262
263
|
var isExiting = (presence === null || presence === void 0 ? void 0 : presence[0]) === false;
|
|
263
264
|
var sendExitComplete = presence === null || presence === void 0 ? void 0 : presence[1];
|
|
264
265
|
var onTransitionRef = import_react.default.useRef(onTransition);
|
|
265
266
|
onTransitionRef.current = onTransition;
|
|
266
|
-
var emit = function(phase, cause, finished) {
|
|
267
|
+
var emit = function emit2(phase, cause, finished) {
|
|
267
268
|
var _onTransitionRef_current;
|
|
268
269
|
(_onTransitionRef_current = onTransitionRef.current) === null || _onTransitionRef_current === void 0 ? void 0 : _onTransitionRef_current.call(onTransitionRef, phase === "end" ? {
|
|
269
270
|
phase,
|
|
@@ -274,8 +275,7 @@ function createAnimations(animations, options) {
|
|
|
274
275
|
cause
|
|
275
276
|
});
|
|
276
277
|
};
|
|
277
|
-
var
|
|
278
|
-
var effectiveTransition = (_styleState_effectiveTransition = styleState === null || styleState === void 0 ? void 0 : styleState.effectiveTransition) !== null && _styleState_effectiveTransition !== void 0 ? _styleState_effectiveTransition : props.transition;
|
|
278
|
+
var effectiveTransition = (_ref2 = styleState === null || styleState === void 0 ? void 0 : styleState.effectiveTransition) !== null && _ref2 !== void 0 ? _ref2 : props.transition;
|
|
279
279
|
var [, themeState] = (0, import_internal_runtime.useThemeWithState)({});
|
|
280
280
|
var isDark = (themeState === null || themeState === void 0 ? void 0 : themeState.scheme) === "dark" || (themeState === null || themeState === void 0 ? void 0 : (_themeState_name = themeState.name) === null || _themeState_name === void 0 ? void 0 : _themeState_name.startsWith("dark"));
|
|
281
281
|
var animateStyles = import_react.default.useRef({});
|
|
@@ -285,27 +285,27 @@ function createAnimations(animations, options) {
|
|
|
285
285
|
var textChannelRef = import_react.default.useRef(null);
|
|
286
286
|
leadingRatioRef.current = getLeadingRatio(styleState === null || styleState === void 0 ? void 0 : styleState.nativeTextMetrics);
|
|
287
287
|
var paintedTextRef = import_react.default.useRef({});
|
|
288
|
-
var movesTextValue = function(key, target) {
|
|
288
|
+
var movesTextValue = function movesTextValue2(key, target) {
|
|
289
289
|
if (typeof target !== "number") return false;
|
|
290
290
|
var node = animateStyles.current[key];
|
|
291
291
|
var last = node ? node["_value"] : paintedTextRef.current[key];
|
|
292
292
|
return last !== void 0 && last !== target;
|
|
293
293
|
};
|
|
294
|
-
var movesLeadingRatio = function(ratio) {
|
|
294
|
+
var movesLeadingRatio = function movesLeadingRatio2(ratio) {
|
|
295
295
|
if (ratio === void 0) return false;
|
|
296
296
|
var node = leadingRatioValue.current;
|
|
297
297
|
var last = node ? node["_value"] : paintedTextRef.current.ratio;
|
|
298
298
|
return last !== void 0 && last !== ratio;
|
|
299
299
|
};
|
|
300
300
|
var fontSizeNode = import_react.default.useRef(null);
|
|
301
|
-
var animatedValueFor = function(key) {
|
|
301
|
+
var animatedValueFor = function animatedValueFor2(key) {
|
|
302
302
|
var painted = animateStyles.current[key];
|
|
303
303
|
if (painted) return painted;
|
|
304
304
|
if (key === "fontSize" && fontSizeNode.current) return fontSizeNode.current;
|
|
305
305
|
if (textMetricStyleKey[key]) return new import_react_native.Animated.Value(paintedTextRef.current[key]);
|
|
306
306
|
return void 0;
|
|
307
307
|
};
|
|
308
|
-
var leadingRatioValueFrom = function() {
|
|
308
|
+
var leadingRatioValueFrom = function leadingRatioValueFrom2() {
|
|
309
309
|
var _leadingRatioValue_current;
|
|
310
310
|
return (_leadingRatioValue_current = leadingRatioValue.current) !== null && _leadingRatioValue_current !== void 0 ? _leadingRatioValue_current : new import_react_native.Animated.Value(paintedTextRef.current.ratio);
|
|
311
311
|
};
|
|
@@ -445,7 +445,7 @@ function createAnimations(animations, options) {
|
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
var ratioFactor = function() {
|
|
448
|
+
var ratioFactor = function ratioFactor2() {
|
|
449
449
|
if (!movesLeading) {
|
|
450
450
|
leadingRatioValue.current = null;
|
|
451
451
|
return paintedRatio;
|
|
@@ -520,8 +520,8 @@ function createAnimations(animations, options) {
|
|
|
520
520
|
var curInterpolation = animationsState.current.get(value);
|
|
521
521
|
var interpolateArgs;
|
|
522
522
|
if (type) {
|
|
523
|
-
var
|
|
524
|
-
interpolateArgs = getInterpolated((
|
|
523
|
+
var _ref3;
|
|
524
|
+
interpolateArgs = getInterpolated((_ref3 = curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current) !== null && _ref3 !== void 0 ? _ref3 : value["_value"], val2, type);
|
|
525
525
|
animationsState.current.set(value, {
|
|
526
526
|
interpolation: value.interpolate(interpolateArgs),
|
|
527
527
|
current: val2
|
|
@@ -649,7 +649,7 @@ function createAnimations(animations, options) {
|
|
|
649
649
|
}
|
|
650
650
|
});
|
|
651
651
|
}, args);
|
|
652
|
-
var onEmittedStyle = function(nextStyle, emittedTransition, pseudoActive, nextMetrics) {
|
|
652
|
+
var onEmittedStyle = function onEmittedStyle2(nextStyle, emittedTransition, pseudoActive, nextMetrics) {
|
|
653
653
|
pseudoActiveRef.current = pseudoActive === true;
|
|
654
654
|
var runners = [];
|
|
655
655
|
var seenAnimateKeys = /* @__PURE__ */ new Set();
|
|
@@ -752,9 +752,9 @@ function createAnimations(animations, options) {
|
|
|
752
752
|
var value = animated || new import_react_native.Animated.Value(numVal);
|
|
753
753
|
var curInterpolation = animationsState.current.get(value);
|
|
754
754
|
if (type) {
|
|
755
|
-
var
|
|
755
|
+
var _ref3;
|
|
756
756
|
animationsState.current.set(value, {
|
|
757
|
-
interpolation: value.interpolate(getInterpolated((
|
|
757
|
+
interpolation: value.interpolate(getInterpolated((_ref3 = curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current) !== null && _ref3 !== void 0 ? _ref3 : value["_value"], numVal, type)),
|
|
758
758
|
current: numVal
|
|
759
759
|
});
|
|
760
760
|
}
|
|
@@ -854,10 +854,10 @@ function getAnimationConfig(key, animations, transition) {
|
|
|
854
854
|
}
|
|
855
855
|
function getValue(input) {
|
|
856
856
|
var isColor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
857
|
+
var _input_match;
|
|
857
858
|
if (typeof input !== "string") {
|
|
858
859
|
return [input];
|
|
859
860
|
}
|
|
860
|
-
var _input_match;
|
|
861
861
|
var [_, number, after] = (_input_match = input.match(/(-?(?:\d+\.?\d*|\.\d+))(deg|%|px)?/)) !== null && _input_match !== void 0 ? _input_match : [];
|
|
862
862
|
return [+number, after];
|
|
863
863
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAnimations.native.js","names":[],"sources":["cjs/createAnimations.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar createAnimations_native_exports = {};\n__export(createAnimations_native_exports, {\n AnimatedText: () => AnimatedText,\n AnimatedView: () => AnimatedView,\n createAnimations: () => createAnimations,\n useAnimatedNumber: () => useAnimatedNumber,\n useAnimatedNumberReaction: () => useAnimatedNumberReaction,\n useAnimatedNumberStyle: () => useAnimatedNumberStyle,\n useAnimatedNumbersStyle: () => useAnimatedNumbersStyle\n});\nmodule.exports = __toCommonJS(createAnimations_native_exports);\nvar import_animation_helpers = require(\"@tamagui/animation-helpers\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_use_presence = require(\"@tamagui/use-presence\");\nvar import_web = require(\"@tamagui/web\");\nvar import_internal_runtime = require(\"@tamagui/web/internal-runtime\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_react_native = require(\"react-native\");\nvar isFabric = !import_constants.isWeb && typeof global !== \"undefined\" && !!global.__nativeFabricUIManager;\nvar resolveDynamicValue = function(value, isDark) {\n if (value && typeof value === \"object\" && \"dynamic\" in value) {\n var dynamicValue = isDark ? value.dynamic.dark : value.dynamic.light;\n return dynamicValue;\n }\n return value;\n};\nvar animatedStyleKey = {\n transform: true,\n opacity: true\n};\nvar colorStyleKey = {\n backgroundColor: true,\n color: true,\n borderColor: true,\n borderLeftColor: true,\n borderRightColor: true,\n borderTopColor: true,\n borderBottomColor: true\n};\nvar layoutStyleKey = {\n height: true,\n width: true,\n minHeight: true,\n maxHeight: true,\n minWidth: true,\n maxWidth: true\n};\nvar textMetricStyleKey = {\n fontSize: true,\n lineHeight: true\n};\nvar jsDriverStyleKey = {\n ...layoutStyleKey,\n ...textMetricStyleKey\n};\nfunction hasAnimatedLayoutKey(style, isDark, resolved) {\n for (var key in layoutStyleKey) {\n if (!(0, import_animation_helpers.getTransitionForKey)(resolved, key)) continue;\n if (typeof resolveDynamicValue(style[key], isDark) === \"number\") return true;\n }\n return false;\n}\nvar getLeadingRatio = function(metrics) {\n var ratio = metrics === null || metrics === void 0 ? void 0 : metrics.lineHeight;\n return typeof ratio === \"number\" && Number.isFinite(ratio) && ratio >= 0 ? ratio : void 0;\n};\nvar paintsLeadingProduct = function(style, ratio) {\n return ratio !== void 0 && typeof style.fontSize === \"number\" && typeof style.lineHeight === \"number\";\n};\nvar inheritedFontSizeNode = function(style, ratio, inheritedText) {\n return ratio !== void 0 && typeof style.fontSize !== \"number\" && (inheritedText === null || inheritedText === void 0 ? void 0 : inheritedText.driver) === \"react-native\" ? inheritedText.fontSize : void 0;\n};\nfunction isAnimatableColor(value) {\n return typeof value === \"string\" && (0, import_react_native.processColor)(value) != null;\n}\nvar costlyToAnimateStyleKey = {\n borderRadius: true,\n borderTopLeftRadius: true,\n borderTopRightRadius: true,\n borderBottomLeftRadius: true,\n borderBottomRightRadius: true,\n borderWidth: true,\n borderLeftWidth: true,\n borderRightWidth: true,\n borderTopWidth: true,\n borderBottomWidth: true,\n ...colorStyleKey\n};\nvar AnimatedView = import_react_native.Animated.View;\nvar AnimatedText = import_react_native.Animated.Text;\nvar animatedTextInput;\nfunction useAnimatedNumber(initial) {\n var state = import_react.default.useRef(null);\n if (!state.current) {\n state.current = {\n composite: null,\n val: new import_react_native.Animated.Value(initial),\n strategy: {\n type: \"spring\"\n }\n };\n }\n return {\n getInstance() {\n return state.current.val;\n },\n getValue() {\n return state.current.val[\"_value\"];\n },\n stop() {\n var _state_current_composite;\n (_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 ? void 0 : _state_current_composite.stop();\n state.current.composite = null;\n },\n setValue(next) {\n var { type, ...config } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {\n type: \"spring\"\n }, onFinish = arguments.length > 2 ? arguments[2] : void 0;\n var val = state.current.val;\n var handleFinish = onFinish ? function(param) {\n var { finished } = param;\n return finished ? onFinish() : null;\n } : void 0;\n if (type === \"direct\") {\n var _state_current_composite;\n (_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 ? void 0 : _state_current_composite.stop();\n state.current.composite = null;\n val.setValue(next);\n onFinish === null || onFinish === void 0 ? void 0 : onFinish();\n } else if (type === \"spring\") {\n var _state_current_composite1;\n (_state_current_composite1 = state.current.composite) === null || _state_current_composite1 === void 0 ? void 0 : _state_current_composite1.stop();\n var composite = import_react_native.Animated.spring(val, {\n ...config,\n toValue: next,\n useNativeDriver: isFabric\n });\n composite.start(handleFinish);\n state.current.composite = composite;\n } else {\n var _state_current_composite2;\n (_state_current_composite2 = state.current.composite) === null || _state_current_composite2 === void 0 ? void 0 : _state_current_composite2.stop();\n var composite1 = import_react_native.Animated.timing(val, {\n ...config,\n toValue: next,\n useNativeDriver: isFabric\n });\n composite1.start(handleFinish);\n state.current.composite = composite1;\n }\n }\n };\n}\nvar useAnimatedNumberReaction = function(param, onValue) {\n var { value } = param;\n var onChange = (0, import_web.useEvent)(function(current) {\n onValue(current.value);\n });\n import_react.default.useEffect(function() {\n var id = value.getInstance().addListener(onChange);\n return function() {\n value.getInstance().removeListener(id);\n };\n }, [\n value,\n onChange\n ]);\n};\nvar useAnimatedNumberStyle = function(value, getStyle) {\n var instance = value.getInstance();\n var animatedStyle = getStyle(instance);\n var usesAnimatedNode = hasAnimatedNode(animatedStyle);\n var [current, setCurrent] = import_react.default.useState(value.getValue());\n import_react.default.useEffect(function() {\n if (usesAnimatedNode) return;\n var id = instance.addListener(function(param) {\n var { value: next } = param;\n setCurrent(next);\n });\n return function() {\n instance.removeListener(id);\n };\n }, [\n instance,\n usesAnimatedNode\n ]);\n return usesAnimatedNode ? animatedStyle : getStyle(current);\n};\nfunction hasAnimatedNode(value) {\n if (!value || typeof value !== \"object\") return false;\n if (typeof value.__getValue === \"function\") return true;\n if (Array.isArray(value)) return value.some(hasAnimatedNode);\n return Object.values(value).some(hasAnimatedNode);\n}\nvar useAnimatedNumbersStyle = function(vals, getStyle) {\n return getStyle(...vals.map(function(v) {\n return v.getInstance();\n }));\n};\nfunction createAnimations(animations, options) {\n var _options_useNativeDriver;\n var nativeDriver = (_options_useNativeDriver = options === null || options === void 0 ? void 0 : options.useNativeDriver) !== null && _options_useNativeDriver !== void 0 ? _options_useNativeDriver : isFabric;\n return {\n inputStyle: \"value\",\n outputStyle: \"inline\",\n avoidReRenders: true,\n animations,\n needsCustomComponent: true,\n View: AnimatedView,\n Text: AnimatedText,\n useAnimatedNumber,\n useAnimatedNumberReaction,\n useAnimatedNumberStyle,\n useAnimatedNumbersStyle,\n usePresence: import_use_presence.usePresence,\n ResetPresence: import_use_presence.ResetPresence,\n // binds a descendant that has no font size of its own to the ancestor's\n // animated one. no clock here: the font size node is the ancestor's, and a\n // ratio leading is a multiplication of it, so both land on the same frame.\n useTextMetrics: function(param) {\n var { inheritedText, lineHeight } = param;\n var node = (inheritedText === null || inheritedText === void 0 ? void 0 : inheritedText.driver) === \"react-native\" ? inheritedText.fontSize : null;\n var ratio = typeof lineHeight === \"number\" ? lineHeight : null;\n var style = import_react.default.useMemo(function() {\n return node ? ratio === null ? {\n fontSize: node\n } : {\n fontSize: node,\n lineHeight: import_react_native.Animated.multiply(node, ratio)\n } : null;\n }, [\n node,\n ratio\n ]);\n var textChannel = inheritedText !== null && inheritedText !== void 0 ? inheritedText : null;\n if (!style) return {\n style: null,\n textChannel\n };\n animatedTextInput || (animatedTextInput = import_react_native.Animated.createAnimatedComponent(import_react_native.TextInput));\n return {\n style,\n textChannel,\n Text: AnimatedText,\n TextInput: animatedTextInput\n };\n },\n useAnimations: function(param) {\n var { props, onTransition, style, componentState, presence, stateRef, styleState, useStyleEmitter, inheritedText } = param;\n var _themeState_name;\n var isDisabled = import_constants.isWeb && componentState.unmounted === true;\n var isExiting = (presence === null || presence === void 0 ? void 0 : presence[0]) === false;\n var sendExitComplete = presence === null || presence === void 0 ? void 0 : presence[1];\n var onTransitionRef = import_react.default.useRef(onTransition);\n onTransitionRef.current = onTransition;\n var emit = function(phase, cause, finished) {\n var _onTransitionRef_current;\n (_onTransitionRef_current = onTransitionRef.current) === null || _onTransitionRef_current === void 0 ? void 0 : _onTransitionRef_current.call(onTransitionRef, phase === \"end\" ? {\n phase,\n cause,\n finished\n } : {\n phase,\n cause\n });\n };\n var _styleState_effectiveTransition;\n var effectiveTransition = (_styleState_effectiveTransition = styleState === null || styleState === void 0 ? void 0 : styleState.effectiveTransition) !== null && _styleState_effectiveTransition !== void 0 ? _styleState_effectiveTransition : props.transition;\n var [, themeState] = (0, import_internal_runtime.useThemeWithState)({});\n var isDark = (themeState === null || themeState === void 0 ? void 0 : themeState.scheme) === \"dark\" || (themeState === null || themeState === void 0 ? void 0 : (_themeState_name = themeState.name) === null || _themeState_name === void 0 ? void 0 : _themeState_name.startsWith(\"dark\"));\n var animateStyles = import_react.default.useRef({});\n var leadingRatioValue = import_react.default.useRef(null);\n var leadingRatioRef = import_react.default.useRef(void 0);\n var paintsDerivedLeading = import_react.default.useRef(false);\n var textChannelRef = import_react.default.useRef(null);\n leadingRatioRef.current = getLeadingRatio(styleState === null || styleState === void 0 ? void 0 : styleState.nativeTextMetrics);\n var paintedTextRef = import_react.default.useRef({});\n var movesTextValue = function(key, target) {\n if (typeof target !== \"number\") return false;\n var node = animateStyles.current[key];\n var last = node ? node[\"_value\"] : paintedTextRef.current[key];\n return last !== void 0 && last !== target;\n };\n var movesLeadingRatio = function(ratio) {\n if (ratio === void 0) return false;\n var node = leadingRatioValue.current;\n var last = node ? node[\"_value\"] : paintedTextRef.current.ratio;\n return last !== void 0 && last !== ratio;\n };\n var fontSizeNode = import_react.default.useRef(null);\n var animatedValueFor = function(key) {\n var painted = animateStyles.current[key];\n if (painted) return painted;\n if (key === \"fontSize\" && fontSizeNode.current) return fontSizeNode.current;\n if (textMetricStyleKey[key]) return new import_react_native.Animated.Value(paintedTextRef.current[key]);\n return void 0;\n };\n var leadingRatioValueFrom = function() {\n var _leadingRatioValue_current;\n return (_leadingRatioValue_current = leadingRatioValue.current) !== null && _leadingRatioValue_current !== void 0 ? _leadingRatioValue_current : new import_react_native.Animated.Value(paintedTextRef.current.ratio);\n };\n var animatedTranforms = import_react.default.useRef([]);\n var animationsState = import_react.default.useRef(/* @__PURE__ */ new WeakMap());\n var pseudoActiveRef = import_react.default.useRef(false);\n var exitCycleIdRef = import_react.default.useRef(0);\n var exitCompletedRef = import_react.default.useRef(false);\n var wasExitingRef = import_react.default.useRef(false);\n var enterStartedRef = import_react.default.useRef(false);\n var exitStartedRef = import_react.default.useRef(false);\n var updateInFlightRef = import_react.default.useRef(false);\n var updateCycleIdRef = import_react.default.useRef(0);\n var prevStyleSigRef = import_react.default.useRef(null);\n var justStartedExiting = isExiting && !wasExitingRef.current;\n var justStoppedExiting = !isExiting && wasExitingRef.current;\n if (justStartedExiting) {\n exitCycleIdRef.current++;\n exitCompletedRef.current = false;\n }\n if (justStoppedExiting) {\n exitCycleIdRef.current++;\n }\n var isEntering = !!componentState.unmounted;\n var wasEnteringRef = import_react.default.useRef(isEntering);\n var justFinishedEntering = wasEnteringRef.current && !isEntering;\n import_react.default.useEffect(function() {\n wasEnteringRef.current = isEntering;\n });\n var args = [\n JSON.stringify(style),\n JSON.stringify(effectiveTransition),\n componentState,\n isExiting,\n !!onTransition,\n isDark,\n justFinishedEntering,\n leadingRatioRef.current,\n inheritedText\n ];\n var res = import_react.default.useMemo(function() {\n var _textChannelRef_current;\n var runners = [];\n var completions = [];\n var animationState = isExiting ? \"exit\" : isEntering || justFinishedEntering ? \"enter\" : \"default\";\n var resolved = (0, import_animation_helpers.forAnimationState)((0, import_animation_helpers.resolveTransition)(effectiveTransition, {\n animations\n }), animationState);\n var nonAnimatedStyle = {};\n var paintedRatio = leadingRatioRef.current;\n var paintsProduct = paintsLeadingProduct(style, paintedRatio);\n var movesFontSize = movesTextValue(\"fontSize\", style.fontSize);\n var movesLeading = paintsProduct ? movesLeadingRatio(paintedRatio) : movesTextValue(\"lineHeight\", style.lineHeight);\n if (!isExiting && !isDisabled && !pseudoActiveRef.current) {\n if (!movesFontSize) delete animateStyles.current.fontSize;\n if (!movesLeading) delete animateStyles.current.lineHeight;\n }\n if (isDisabled || typeof style.fontSize !== \"number\" || !(0, import_animation_helpers.getTransitionForKey)(resolved, \"fontSize\")) {\n fontSizeNode.current = null;\n } else if (!fontSizeNode.current) {\n fontSizeNode.current = new import_react_native.Animated.Value(style.fontSize);\n }\n var seenAnimateKeys = /* @__PURE__ */ new Set();\n var sawTransform = false;\n var transformCount = 0;\n var derivesLeading = !isDisabled && paintsProduct && (movesFontSize || movesLeading) && (!!(0, import_animation_helpers.getTransitionForKey)(resolved, \"fontSize\") || !!(0, import_animation_helpers.getTransitionForKey)(resolved, \"lineHeight\"));\n var inheritedFontSize = isDisabled ? void 0 : inheritedFontSizeNode(style, paintedRatio, inheritedText);\n var useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(style, isDark, resolved) && !movesFontSize && !movesLeading && !inheritedFontSize && !Object.keys(animateStyles.current).some(function(key2) {\n return jsDriverStyleKey[key2];\n });\n for (var key in style) {\n var rawVal = style[key];\n var val = resolveDynamicValue(rawVal, isDark);\n if (val === void 0) continue;\n if (isDisabled) {\n continue;\n }\n if ((derivesLeading || inheritedFontSize) && (key === \"fontSize\" || key === \"lineHeight\")) {\n if (key === \"fontSize\" && derivesLeading && !movesFontSize) {\n nonAnimatedStyle[key] = val;\n }\n continue;\n }\n if (textMetricStyleKey[key] && !(key === \"fontSize\" ? movesFontSize : movesLeading)) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key] && !jsDriverStyleKey[key]) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (key !== \"transform\" && !(0, import_animation_helpers.getTransitionForKey)(resolved, key)) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (jsDriverStyleKey[key] && typeof val !== \"number\") {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (colorStyleKey[key] && !isAnimatableColor(val)) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (key !== \"transform\") {\n animateStyles.current[key] = update(key, animatedValueFor(key), val);\n seenAnimateKeys.add(key);\n continue;\n }\n if (!val) continue;\n if (typeof val === \"string\") {\n console.warn(`Warning: Tamagui can't animate string transforms yet!`);\n continue;\n }\n sawTransform = true;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = val[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var transform = _step.value;\n var _animatedTranforms_current_index;\n if (!transform) continue;\n var index = transformCount++;\n var tkey = Object.keys(transform)[0];\n var currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];\n animatedTranforms.current[index] = {\n [tkey]: update(tkey, currentTransform, transform[tkey])\n };\n animatedTranforms.current = [\n ...animatedTranforms.current\n ];\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n var ratioFactor = function() {\n if (!movesLeading) {\n leadingRatioValue.current = null;\n return paintedRatio;\n }\n leadingRatioValue.current = update(\"lineHeight\", leadingRatioValueFrom(), paintedRatio);\n return leadingRatioValue.current;\n };\n var derivedLeading;\n if (derivesLeading) {\n var fontSizeFactor = style.fontSize;\n if (movesFontSize) {\n fontSizeFactor = update(\"fontSize\", animatedValueFor(\"fontSize\"), style.fontSize);\n animateStyles.current.fontSize = fontSizeFactor;\n seenAnimateKeys.add(\"fontSize\");\n }\n derivedLeading = import_react_native.Animated.multiply(fontSizeFactor, ratioFactor());\n } else if (inheritedFontSize) {\n derivedLeading = import_react_native.Animated.multiply(inheritedFontSize, ratioFactor());\n } else if (!isDisabled) {\n leadingRatioValue.current = null;\n }\n paintsDerivedLeading.current = !!derivedLeading;\n var ownFontSizeNode = fontSizeNode.current;\n var textChannel = ownFontSizeNode ? ((_textChannelRef_current = textChannelRef.current) === null || _textChannelRef_current === void 0 ? void 0 : _textChannelRef_current.fontSize) === ownFontSizeNode ? textChannelRef.current : {\n fontSize: ownFontSizeNode,\n driver: \"react-native\"\n } : typeof style.fontSize === \"number\" ? null : inheritedText !== null && inheritedText !== void 0 ? inheritedText : null;\n textChannelRef.current = textChannel;\n if (!isExiting && !isDisabled && !pseudoActiveRef.current) {\n for (var k in animateStyles.current) {\n if (!seenAnimateKeys.has(k)) delete animateStyles.current[k];\n }\n if (!sawTransform) {\n if (animatedTranforms.current.length) animatedTranforms.current = [];\n } else if (animatedTranforms.current.length > transformCount) {\n animatedTranforms.current = animatedTranforms.current.slice(0, transformCount);\n }\n }\n var animatedTransformStyle = animatedTranforms.current.length > 0 ? {\n transform: animatedTranforms.current.map(function(r) {\n var _animationsState_current_get;\n var key2 = Object.keys(r)[0];\n var val2 = ((_animationsState_current_get = animationsState.current.get(r[key2])) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || r[key2];\n return {\n [key2]: val2\n };\n })\n } : {};\n var animatedStyle = {\n ...Object.fromEntries(Object.entries(animateStyles.current).map(function(param2) {\n var [k2, v] = param2;\n var _animationsState_current_get;\n return [\n k2,\n ((_animationsState_current_get = animationsState.current.get(v)) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || v\n ];\n })),\n ...derivedLeading ? {\n lineHeight: derivedLeading\n } : null,\n ...animatedTransformStyle\n };\n if (!isDisabled) {\n paintedTextRef.current = {\n fontSize: style.fontSize,\n lineHeight: style.lineHeight,\n ratio: paintedRatio\n };\n }\n return {\n runners,\n completions,\n textChannel,\n style: [\n nonAnimatedStyle,\n animatedStyle\n ]\n };\n function update(key2, animated, valIn) {\n var isColorStyleKey = colorStyleKey[key2];\n var [val2, type] = isColorStyleKey ? [\n 0,\n void 0\n ] : getValue(valIn);\n var animateToValue = val2;\n var value = animated || new import_react_native.Animated.Value(val2);\n var curInterpolation = animationsState.current.get(value);\n var interpolateArgs;\n if (type) {\n var _curInterpolation_current;\n interpolateArgs = getInterpolated((_curInterpolation_current = curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current) !== null && _curInterpolation_current !== void 0 ? _curInterpolation_current : value[\"_value\"], val2, type);\n animationsState.current.set(value, {\n interpolation: value.interpolate(interpolateArgs),\n current: val2\n });\n }\n if (isColorStyleKey) {\n animateToValue = (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1;\n interpolateArgs = getColorInterpolated(\n curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current,\n // valIn is the next color\n valIn,\n animateToValue\n );\n animationsState.current.set(value, {\n current: valIn,\n interpolation: value.interpolate(interpolateArgs),\n animateToValue: (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1\n });\n }\n if (value) {\n var animationConfig = getAnimationConfig(key2, animations, effectiveTransition, animationState);\n var resolve;\n var promise = new Promise(function(res2) {\n resolve = res2;\n });\n completions.push(promise);\n runners.push(function() {\n value.stopAnimation();\n var { type: type2, delay, ...config } = animationConfig;\n var animation = import_react_native.Animated[type2 || \"spring\"](value, {\n toValue: animateToValue,\n ...config,\n useNativeDriver: useNativeDriverForNode\n });\n var animation2 = delay ? import_react_native.Animated.sequence([\n import_react_native.Animated.delay(delay),\n animation\n ]) : animation;\n animation2.start(function(param2) {\n var { finished } = param2;\n if (finished || isExiting) {\n resolve();\n }\n });\n });\n }\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] === \"verbose\") {\n console.info(\" \\u{1F4A0} animate\", key2, `from (${value[\"_value\"]}) to`, valIn, `(${val2})`, \"type\", type, \"interpolate\", interpolateArgs);\n }\n }\n return value;\n }\n }, args);\n import_react.default.useEffect(function() {\n wasExitingRef.current = isExiting;\n });\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n if (justStoppedExiting && exitStartedRef.current && !exitCompletedRef.current) {\n exitStartedRef.current = false;\n emit(\"end\", \"exit\", false);\n }\n }, [\n justStoppedExiting\n ]);\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n res.runners.forEach(function(r) {\n return r();\n });\n var cycleId = exitCycleIdRef.current;\n var cause = isExiting ? \"exit\" : isEntering || justFinishedEntering ? \"enter\" : \"update\";\n if (cause === \"exit\") {\n if (enterStartedRef.current) {\n enterStartedRef.current = false;\n emit(\"end\", \"enter\", false);\n }\n if (updateInFlightRef.current) {\n updateInFlightRef.current = false;\n updateCycleIdRef.current++;\n emit(\"end\", \"update\", false);\n }\n }\n if (cause === \"update\") {\n var sig = args[0];\n if (prevStyleSigRef.current === null || prevStyleSigRef.current === sig) {\n prevStyleSigRef.current = sig;\n return;\n }\n prevStyleSigRef.current = sig;\n if (res.completions.length === 0) return;\n if (updateInFlightRef.current) {\n emit(\"end\", \"update\", false);\n }\n updateInFlightRef.current = true;\n var uid = ++updateCycleIdRef.current;\n emit(\"start\", \"update\");\n Promise.all(res.completions).then(function() {\n if (uid !== updateCycleIdRef.current) return;\n updateInFlightRef.current = false;\n emit(\"end\", \"update\", true);\n });\n return;\n }\n prevStyleSigRef.current = args[0];\n if (res.completions.length === 0) {\n emit(\"start\", cause);\n emit(\"end\", cause, true);\n if (isExiting && !exitCompletedRef.current) {\n exitCompletedRef.current = true;\n sendExitComplete === null || sendExitComplete === void 0 ? void 0 : sendExitComplete();\n }\n return;\n }\n if (cause === \"enter\" && !enterStartedRef.current) {\n enterStartedRef.current = true;\n emit(\"start\", \"enter\");\n }\n if (cause === \"exit\" && !exitStartedRef.current) {\n exitStartedRef.current = true;\n emit(\"start\", \"exit\");\n }\n Promise.all(res.completions).then(function() {\n if (isExiting && cycleId !== exitCycleIdRef.current) return;\n if (isExiting && exitCompletedRef.current) return;\n if (isExiting) {\n if (exitStartedRef.current) {\n exitStartedRef.current = false;\n emit(\"end\", \"exit\", true);\n }\n exitCompletedRef.current = true;\n sendExitComplete === null || sendExitComplete === void 0 ? void 0 : sendExitComplete();\n } else if (enterStartedRef.current) {\n enterStartedRef.current = false;\n emit(\"end\", \"enter\", true);\n }\n });\n }, args);\n var onEmittedStyle = function(nextStyle, emittedTransition, pseudoActive, nextMetrics) {\n pseudoActiveRef.current = pseudoActive === true;\n var runners = [];\n var seenAnimateKeys = /* @__PURE__ */ new Set();\n var transformCount = 0;\n var animatedShapeChanged = false;\n var emittedResolved = (0, import_animation_helpers.forAnimationState)((0, import_animation_helpers.resolveTransition)(emittedTransition !== null && emittedTransition !== void 0 ? emittedTransition : effectiveTransition, {\n animations\n }), \"default\");\n var emittedRatio = getLeadingRatio(nextMetrics);\n var emitterPaintsProduct = paintsLeadingProduct(nextStyle, emittedRatio);\n var emitterMovesFontSize = movesTextValue(\"fontSize\", nextStyle.fontSize);\n var emitterMovesLeading = emitterPaintsProduct ? movesLeadingRatio(emittedRatio) : movesTextValue(\"lineHeight\", nextStyle.lineHeight);\n var useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(nextStyle, isDark, emittedResolved) && !emitterMovesFontSize && !emitterMovesLeading && !inheritedFontSizeNode(nextStyle, emittedRatio, inheritedText) && !Object.keys(animateStyles.current).some(function(key2) {\n return jsDriverStyleKey[key2];\n });\n var emitterDerivesLeading = emitterPaintsProduct && (emitterMovesFontSize || emitterMovesLeading) && (!!(0, import_animation_helpers.getTransitionForKey)(emittedResolved, \"fontSize\") || !!(0, import_animation_helpers.getTransitionForKey)(emittedResolved, \"lineHeight\"));\n for (var key in nextStyle) {\n var rawVal = nextStyle[key];\n var val = resolveDynamicValue(rawVal, isDark);\n if (val === void 0) continue;\n if (emitterDerivesLeading && (key === \"fontSize\" || key === \"lineHeight\")) {\n continue;\n }\n if (textMetricStyleKey[key] && !(key === \"fontSize\" ? emitterMovesFontSize : emitterMovesLeading)) {\n continue;\n }\n if (key === \"transform\" && Array.isArray(val)) {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = val[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var transform = _step.value;\n var _animatedTranforms_current_index;\n if (!transform) continue;\n var index = transformCount++;\n var tkey = Object.keys(transform)[0];\n var currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];\n if (!currentTransform) animatedShapeChanged = true;\n animatedTranforms.current[index] = {\n [tkey]: update(tkey, currentTransform, transform[tkey])\n };\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n } else if (animatedStyleKey[key] != null || costlyToAnimateStyleKey[key] || jsDriverStyleKey[key]) {\n if (jsDriverStyleKey[key] && typeof val !== \"number\") continue;\n if (colorStyleKey[key] && !isAnimatableColor(val)) continue;\n if (!animateStyles.current[key]) animatedShapeChanged = true;\n animateStyles.current[key] = update(key, animatedValueFor(key), val);\n seenAnimateKeys.add(key);\n }\n }\n if (emitterDerivesLeading) {\n if (emitterMovesFontSize) {\n if (!animateStyles.current.fontSize) animatedShapeChanged = true;\n animateStyles.current.fontSize = update(\"fontSize\", animatedValueFor(\"fontSize\"), nextStyle.fontSize);\n seenAnimateKeys.add(\"fontSize\");\n }\n if (emitterMovesLeading) {\n if (!leadingRatioValue.current) animatedShapeChanged = true;\n leadingRatioValue.current = update(\"lineHeight\", leadingRatioValueFrom(), emittedRatio);\n }\n }\n if (emitterDerivesLeading !== paintsDerivedLeading.current) {\n animatedShapeChanged = true;\n }\n for (var key1 in animateStyles.current) {\n if (!seenAnimateKeys.has(key1)) {\n delete animateStyles.current[key1];\n animatedShapeChanged = true;\n }\n }\n if (animatedTranforms.current.length > transformCount) {\n animatedTranforms.current = animatedTranforms.current.slice(0, transformCount);\n animatedShapeChanged = true;\n }\n paintedTextRef.current = {\n fontSize: nextStyle.fontSize,\n lineHeight: nextStyle.lineHeight,\n ratio: emittedRatio\n };\n runners.forEach(function(r) {\n return r();\n });\n if (animatedShapeChanged && stateRef.current.nextState) {\n var _stateRef_current_baseSetStateShallow, _stateRef_current;\n (_stateRef_current_baseSetStateShallow = (_stateRef_current = stateRef.current).baseSetStateShallow) === null || _stateRef_current_baseSetStateShallow === void 0 ? void 0 : _stateRef_current_baseSetStateShallow.call(_stateRef_current, stateRef.current.nextState);\n }\n function update(key2, animated, valIn) {\n var isColor = colorStyleKey[key2];\n var [numVal, type] = isColor ? [\n 0,\n void 0\n ] : getValue(valIn);\n var animateToValue = numVal;\n var value = animated || new import_react_native.Animated.Value(numVal);\n var curInterpolation = animationsState.current.get(value);\n if (type) {\n var _curInterpolation_current;\n animationsState.current.set(value, {\n interpolation: value.interpolate(getInterpolated((_curInterpolation_current = curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current) !== null && _curInterpolation_current !== void 0 ? _curInterpolation_current : value[\"_value\"], numVal, type)),\n current: numVal\n });\n }\n if (isColor) {\n animateToValue = (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1;\n animationsState.current.set(value, {\n current: valIn,\n interpolation: value.interpolate(getColorInterpolated(curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current, valIn, animateToValue)),\n animateToValue: (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1\n });\n }\n var animationConfig = getAnimationConfig(key2, animations, emittedTransition !== null && emittedTransition !== void 0 ? emittedTransition : effectiveTransition, \"default\");\n runners.push(function() {\n value.stopAnimation();\n var { type: type2, delay, ...config } = animationConfig;\n var anim = import_react_native.Animated[type2 || \"spring\"](value, {\n toValue: animateToValue,\n ...config,\n useNativeDriver: useNativeDriverForNode\n });\n (delay ? import_react_native.Animated.sequence([\n import_react_native.Animated.delay(delay),\n anim\n ]) : anim).start();\n });\n return value;\n }\n };\n useStyleEmitter === null || useStyleEmitter === void 0 ? void 0 : useStyleEmitter(onEmittedStyle);\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] === \"verbose\") {\n console.info(`Animated`, {\n response: res,\n inputStyle: style,\n isExiting\n });\n }\n }\n return res;\n }\n };\n}\nfunction getColorInterpolated(currentColor, nextColor, animateToValue) {\n var inputRange = [\n 0,\n 1\n ];\n var outputRange = [\n currentColor ? currentColor : nextColor,\n nextColor\n ];\n if (animateToValue === 0) {\n outputRange.reverse();\n }\n return {\n inputRange,\n outputRange\n };\n}\nfunction getInterpolated(current, next) {\n var postfix = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : \"deg\";\n if (next === current) {\n current = next - 1e-9;\n }\n var inputRange = [\n current,\n next\n ];\n var outputRange = [\n `${current}${postfix}`,\n `${next}${postfix}`\n ];\n if (next < current) {\n inputRange.reverse();\n outputRange.reverse();\n }\n return {\n inputRange,\n outputRange\n };\n}\nfunction entryToRN(entry) {\n var extra = entry.timing.kind === \"spring\" ? entry.timing.extra : void 0;\n if (entry.timing.kind === \"spring\") {\n return {\n type: \"spring\",\n stiffness: entry.timing.stiffness,\n damping: entry.timing.damping,\n mass: entry.timing.mass,\n ...typeof (extra === null || extra === void 0 ? void 0 : extra.velocity) === \"number\" ? {\n velocity: extra.velocity\n } : null,\n ...typeof (extra === null || extra === void 0 ? void 0 : extra.overshootClamping) === \"boolean\" ? {\n overshootClamping: extra.overshootClamping\n } : null,\n ...entry.delayMs ? {\n delay: entry.delayMs\n } : null\n };\n }\n var bezier = (0, import_animation_helpers.easingToBezier)(entry.timing.easing);\n return {\n type: \"timing\",\n duration: entry.timing.durationMs,\n // `linear()` and `steps()` have no bezier equivalent; RN's default easing\n // is the honest answer rather than a curve we made up\n ...bezier ? {\n easing: import_react_native.Easing.bezier(bezier[0], bezier[1], bezier[2], bezier[3])\n } : null,\n ...entry.delayMs ? {\n delay: entry.delayMs\n } : null\n };\n}\nvar snapConfig = {\n type: \"timing\",\n duration: 0\n};\nfunction getAnimationConfig(key, animations, transition) {\n var animationState = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : \"default\";\n var resolved = (0, import_animation_helpers.forAnimationState)((0, import_animation_helpers.resolveTransition)(transition, {\n animations\n }), animationState);\n var entry = (0, import_animation_helpers.getTransitionForKey)(resolved, key);\n return entry ? entryToRN(entry) : snapConfig;\n}\nfunction getValue(input) {\n var isColor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n if (typeof input !== \"string\") {\n return [\n input\n ];\n }\n var _input_match;\n var [_, number, after] = (_input_match = input.match(/(-?(?:\\d+\\.?\\d*|\\.\\d+))(deg|%|px)?/)) !== null && _input_match !== void 0 ? _input_match : [];\n return [\n +number,\n after\n ];\n}\n//# sourceMappingURL=createAnimations.native.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAA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UAAU,KAAK,IAAI;AACpC;AACA,SAAS,SAAS,OAAO;CACvB,IAAI,UAAU,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAC/E,IAAI,OAAO,UAAU,UAAU;EAC7B,OAAO,CACL,KACF;CACF;CACA,IAAI;CACJ,IAAI,CAAC,GAAG,QAAQ,UAAU,eAAe,MAAM,MAAM,oCAAoC,OAAO,QAAQ,iBAAiB,KAAK,IAAI,eAAe,CAAC;CAClJ,OAAO,CACL,CAAC,QACD,KACF;AACF"}
|
|
1
|
+
{"version":3,"file":"createAnimations.native.js","names":[],"sources":["cjs/createAnimations.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar createAnimations_native_exports = {};\n__export(createAnimations_native_exports, {\n AnimatedText: () => AnimatedText,\n AnimatedView: () => AnimatedView,\n createAnimations: () => createAnimations,\n useAnimatedNumber: () => useAnimatedNumber,\n useAnimatedNumberReaction: () => useAnimatedNumberReaction,\n useAnimatedNumberStyle: () => useAnimatedNumberStyle,\n useAnimatedNumbersStyle: () => useAnimatedNumbersStyle\n});\nmodule.exports = __toCommonJS(createAnimations_native_exports);\nvar import_animation_helpers = require(\"@tamagui/animation-helpers\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_use_presence = require(\"@tamagui/use-presence\");\nvar import_web = require(\"@tamagui/web\");\nvar import_internal_runtime = require(\"@tamagui/web/internal-runtime\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_react_native = require(\"react-native\");\nvar isFabric = !import_constants.isWeb && typeof global !== \"undefined\" && !!global.__nativeFabricUIManager;\nvar resolveDynamicValue = function resolveDynamicValue2(value, isDark) {\n if (value && typeof value === \"object\" && \"dynamic\" in value) {\n var dynamicValue = isDark ? value.dynamic.dark : value.dynamic.light;\n return dynamicValue;\n }\n return value;\n};\nvar animatedStyleKey = {\n transform: true,\n opacity: true\n};\nvar colorStyleKey = {\n backgroundColor: true,\n color: true,\n borderColor: true,\n borderLeftColor: true,\n borderRightColor: true,\n borderTopColor: true,\n borderBottomColor: true\n};\nvar layoutStyleKey = {\n height: true,\n width: true,\n minHeight: true,\n maxHeight: true,\n minWidth: true,\n maxWidth: true\n};\nvar textMetricStyleKey = {\n fontSize: true,\n lineHeight: true\n};\nvar jsDriverStyleKey = {\n ...layoutStyleKey,\n ...textMetricStyleKey\n};\nfunction hasAnimatedLayoutKey(style, isDark, resolved) {\n for (var key in layoutStyleKey) {\n if (!(0, import_animation_helpers.getTransitionForKey)(resolved, key)) continue;\n if (typeof resolveDynamicValue(style[key], isDark) === \"number\") return true;\n }\n return false;\n}\nvar getLeadingRatio = function getLeadingRatio2(metrics) {\n var ratio = metrics === null || metrics === void 0 ? void 0 : metrics.lineHeight;\n return typeof ratio === \"number\" && Number.isFinite(ratio) && ratio >= 0 ? ratio : void 0;\n};\nvar paintsLeadingProduct = function paintsLeadingProduct2(style, ratio) {\n return ratio !== void 0 && typeof style.fontSize === \"number\" && typeof style.lineHeight === \"number\";\n};\nvar inheritedFontSizeNode = function inheritedFontSizeNode2(style, ratio, inheritedText) {\n return ratio !== void 0 && typeof style.fontSize !== \"number\" && (inheritedText === null || inheritedText === void 0 ? void 0 : inheritedText.driver) === \"react-native\" ? inheritedText.fontSize : void 0;\n};\nfunction isAnimatableColor(value) {\n return typeof value === \"string\" && (0, import_react_native.processColor)(value) != null;\n}\nvar costlyToAnimateStyleKey = {\n borderRadius: true,\n borderTopLeftRadius: true,\n borderTopRightRadius: true,\n borderBottomLeftRadius: true,\n borderBottomRightRadius: true,\n borderWidth: true,\n borderLeftWidth: true,\n borderRightWidth: true,\n borderTopWidth: true,\n borderBottomWidth: true,\n ...colorStyleKey\n};\nvar AnimatedView = import_react_native.Animated.View;\nvar AnimatedText = import_react_native.Animated.Text;\nvar animatedTextInput;\nfunction useAnimatedNumber(initial) {\n var state = import_react.default.useRef(null);\n if (!state.current) {\n state.current = {\n composite: null,\n val: new import_react_native.Animated.Value(initial),\n strategy: {\n type: \"spring\"\n }\n };\n }\n return {\n getInstance() {\n return state.current.val;\n },\n getValue() {\n return state.current.val[\"_value\"];\n },\n stop() {\n var _state_current_composite;\n (_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 ? void 0 : _state_current_composite.stop();\n state.current.composite = null;\n },\n setValue(next) {\n var { type, ...config } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {\n type: \"spring\"\n }, onFinish = arguments.length > 2 ? arguments[2] : void 0;\n var val = state.current.val;\n var handleFinish = onFinish ? function(param) {\n var { finished } = param;\n return finished ? onFinish() : null;\n } : void 0;\n if (type === \"direct\") {\n var _state_current_composite;\n (_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 ? void 0 : _state_current_composite.stop();\n state.current.composite = null;\n val.setValue(next);\n onFinish === null || onFinish === void 0 ? void 0 : onFinish();\n } else if (type === \"spring\") {\n var _state_current_composite1;\n (_state_current_composite1 = state.current.composite) === null || _state_current_composite1 === void 0 ? void 0 : _state_current_composite1.stop();\n var composite = import_react_native.Animated.spring(val, {\n ...config,\n toValue: next,\n useNativeDriver: isFabric\n });\n composite.start(handleFinish);\n state.current.composite = composite;\n } else {\n var _state_current_composite2;\n (_state_current_composite2 = state.current.composite) === null || _state_current_composite2 === void 0 ? void 0 : _state_current_composite2.stop();\n var composite1 = import_react_native.Animated.timing(val, {\n ...config,\n toValue: next,\n useNativeDriver: isFabric\n });\n composite1.start(handleFinish);\n state.current.composite = composite1;\n }\n }\n };\n}\nvar useAnimatedNumberReaction = function useAnimatedNumberReaction2(param, onValue) {\n var { value } = param;\n var onChange = (0, import_web.useEvent)(function(current) {\n onValue(current.value);\n });\n import_react.default.useEffect(function() {\n var id = value.getInstance().addListener(onChange);\n return function() {\n value.getInstance().removeListener(id);\n };\n }, [\n value,\n onChange\n ]);\n};\nvar useAnimatedNumberStyle = function useAnimatedNumberStyle2(value, getStyle) {\n var instance = value.getInstance();\n var animatedStyle = getStyle(instance);\n var usesAnimatedNode = hasAnimatedNode(animatedStyle);\n var [current, setCurrent] = import_react.default.useState(value.getValue());\n import_react.default.useEffect(function() {\n if (usesAnimatedNode) return;\n var id = instance.addListener(function(param) {\n var { value: next } = param;\n setCurrent(next);\n });\n return function() {\n instance.removeListener(id);\n };\n }, [\n instance,\n usesAnimatedNode\n ]);\n return usesAnimatedNode ? animatedStyle : getStyle(current);\n};\nfunction hasAnimatedNode(value) {\n if (!value || typeof value !== \"object\") return false;\n if (typeof value.__getValue === \"function\") return true;\n if (Array.isArray(value)) return value.some(hasAnimatedNode);\n return Object.values(value).some(hasAnimatedNode);\n}\nvar useAnimatedNumbersStyle = function useAnimatedNumbersStyle2(vals, getStyle) {\n return getStyle(...vals.map(function(v) {\n return v.getInstance();\n }));\n};\nfunction createAnimations(animations, options) {\n var _ref;\n var nativeDriver = (_ref = options === null || options === void 0 ? void 0 : options.useNativeDriver) !== null && _ref !== void 0 ? _ref : isFabric;\n return {\n inputStyle: \"value\",\n outputStyle: \"inline\",\n avoidReRenders: true,\n animations,\n needsCustomComponent: true,\n View: AnimatedView,\n Text: AnimatedText,\n useAnimatedNumber,\n useAnimatedNumberReaction,\n useAnimatedNumberStyle,\n useAnimatedNumbersStyle,\n usePresence: import_use_presence.usePresence,\n ResetPresence: import_use_presence.ResetPresence,\n // binds a descendant that has no font size of its own to the ancestor's\n // animated one. no clock here: the font size node is the ancestor's, and a\n // ratio leading is a multiplication of it, so both land on the same frame.\n useTextMetrics: function useTextMetrics(param) {\n var { inheritedText, lineHeight } = param;\n var node = (inheritedText === null || inheritedText === void 0 ? void 0 : inheritedText.driver) === \"react-native\" ? inheritedText.fontSize : null;\n var ratio = typeof lineHeight === \"number\" ? lineHeight : null;\n var style = import_react.default.useMemo(function() {\n return node ? ratio === null ? {\n fontSize: node\n } : {\n fontSize: node,\n lineHeight: import_react_native.Animated.multiply(node, ratio)\n } : null;\n }, [\n node,\n ratio\n ]);\n var textChannel = inheritedText !== null && inheritedText !== void 0 ? inheritedText : null;\n if (!style) return {\n style: null,\n textChannel\n };\n animatedTextInput || (animatedTextInput = import_react_native.Animated.createAnimatedComponent(import_react_native.TextInput));\n return {\n style,\n textChannel,\n Text: AnimatedText,\n TextInput: animatedTextInput\n };\n },\n useAnimations: function useAnimations(param) {\n var { props, onTransition, style, componentState, presence, stateRef, styleState, useStyleEmitter, inheritedText } = param;\n var _ref2;\n var _themeState_name;\n var isDisabled = import_constants.isWeb && componentState.unmounted === true;\n var isExiting = (presence === null || presence === void 0 ? void 0 : presence[0]) === false;\n var sendExitComplete = presence === null || presence === void 0 ? void 0 : presence[1];\n var onTransitionRef = import_react.default.useRef(onTransition);\n onTransitionRef.current = onTransition;\n var emit = function emit2(phase, cause, finished) {\n var _onTransitionRef_current;\n (_onTransitionRef_current = onTransitionRef.current) === null || _onTransitionRef_current === void 0 ? void 0 : _onTransitionRef_current.call(onTransitionRef, phase === \"end\" ? {\n phase,\n cause,\n finished\n } : {\n phase,\n cause\n });\n };\n var effectiveTransition = (_ref2 = styleState === null || styleState === void 0 ? void 0 : styleState.effectiveTransition) !== null && _ref2 !== void 0 ? _ref2 : props.transition;\n var [, themeState] = (0, import_internal_runtime.useThemeWithState)({});\n var isDark = (themeState === null || themeState === void 0 ? void 0 : themeState.scheme) === \"dark\" || (themeState === null || themeState === void 0 ? void 0 : (_themeState_name = themeState.name) === null || _themeState_name === void 0 ? void 0 : _themeState_name.startsWith(\"dark\"));\n var animateStyles = import_react.default.useRef({});\n var leadingRatioValue = import_react.default.useRef(null);\n var leadingRatioRef = import_react.default.useRef(void 0);\n var paintsDerivedLeading = import_react.default.useRef(false);\n var textChannelRef = import_react.default.useRef(null);\n leadingRatioRef.current = getLeadingRatio(styleState === null || styleState === void 0 ? void 0 : styleState.nativeTextMetrics);\n var paintedTextRef = import_react.default.useRef({});\n var movesTextValue = function movesTextValue2(key, target) {\n if (typeof target !== \"number\") return false;\n var node = animateStyles.current[key];\n var last = node ? node[\"_value\"] : paintedTextRef.current[key];\n return last !== void 0 && last !== target;\n };\n var movesLeadingRatio = function movesLeadingRatio2(ratio) {\n if (ratio === void 0) return false;\n var node = leadingRatioValue.current;\n var last = node ? node[\"_value\"] : paintedTextRef.current.ratio;\n return last !== void 0 && last !== ratio;\n };\n var fontSizeNode = import_react.default.useRef(null);\n var animatedValueFor = function animatedValueFor2(key) {\n var painted = animateStyles.current[key];\n if (painted) return painted;\n if (key === \"fontSize\" && fontSizeNode.current) return fontSizeNode.current;\n if (textMetricStyleKey[key]) return new import_react_native.Animated.Value(paintedTextRef.current[key]);\n return void 0;\n };\n var leadingRatioValueFrom = function leadingRatioValueFrom2() {\n var _leadingRatioValue_current;\n return (_leadingRatioValue_current = leadingRatioValue.current) !== null && _leadingRatioValue_current !== void 0 ? _leadingRatioValue_current : new import_react_native.Animated.Value(paintedTextRef.current.ratio);\n };\n var animatedTranforms = import_react.default.useRef([]);\n var animationsState = import_react.default.useRef(/* @__PURE__ */ new WeakMap());\n var pseudoActiveRef = import_react.default.useRef(false);\n var exitCycleIdRef = import_react.default.useRef(0);\n var exitCompletedRef = import_react.default.useRef(false);\n var wasExitingRef = import_react.default.useRef(false);\n var enterStartedRef = import_react.default.useRef(false);\n var exitStartedRef = import_react.default.useRef(false);\n var updateInFlightRef = import_react.default.useRef(false);\n var updateCycleIdRef = import_react.default.useRef(0);\n var prevStyleSigRef = import_react.default.useRef(null);\n var justStartedExiting = isExiting && !wasExitingRef.current;\n var justStoppedExiting = !isExiting && wasExitingRef.current;\n if (justStartedExiting) {\n exitCycleIdRef.current++;\n exitCompletedRef.current = false;\n }\n if (justStoppedExiting) {\n exitCycleIdRef.current++;\n }\n var isEntering = !!componentState.unmounted;\n var wasEnteringRef = import_react.default.useRef(isEntering);\n var justFinishedEntering = wasEnteringRef.current && !isEntering;\n import_react.default.useEffect(function() {\n wasEnteringRef.current = isEntering;\n });\n var args = [\n JSON.stringify(style),\n JSON.stringify(effectiveTransition),\n componentState,\n isExiting,\n !!onTransition,\n isDark,\n justFinishedEntering,\n leadingRatioRef.current,\n inheritedText\n ];\n var res = import_react.default.useMemo(function() {\n var _textChannelRef_current;\n var runners = [];\n var completions = [];\n var animationState = isExiting ? \"exit\" : isEntering || justFinishedEntering ? \"enter\" : \"default\";\n var resolved = (0, import_animation_helpers.forAnimationState)((0, import_animation_helpers.resolveTransition)(effectiveTransition, {\n animations\n }), animationState);\n var nonAnimatedStyle = {};\n var paintedRatio = leadingRatioRef.current;\n var paintsProduct = paintsLeadingProduct(style, paintedRatio);\n var movesFontSize = movesTextValue(\"fontSize\", style.fontSize);\n var movesLeading = paintsProduct ? movesLeadingRatio(paintedRatio) : movesTextValue(\"lineHeight\", style.lineHeight);\n if (!isExiting && !isDisabled && !pseudoActiveRef.current) {\n if (!movesFontSize) delete animateStyles.current.fontSize;\n if (!movesLeading) delete animateStyles.current.lineHeight;\n }\n if (isDisabled || typeof style.fontSize !== \"number\" || !(0, import_animation_helpers.getTransitionForKey)(resolved, \"fontSize\")) {\n fontSizeNode.current = null;\n } else if (!fontSizeNode.current) {\n fontSizeNode.current = new import_react_native.Animated.Value(style.fontSize);\n }\n var seenAnimateKeys = /* @__PURE__ */ new Set();\n var sawTransform = false;\n var transformCount = 0;\n var derivesLeading = !isDisabled && paintsProduct && (movesFontSize || movesLeading) && (!!(0, import_animation_helpers.getTransitionForKey)(resolved, \"fontSize\") || !!(0, import_animation_helpers.getTransitionForKey)(resolved, \"lineHeight\"));\n var inheritedFontSize = isDisabled ? void 0 : inheritedFontSizeNode(style, paintedRatio, inheritedText);\n var useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(style, isDark, resolved) && !movesFontSize && !movesLeading && !inheritedFontSize && !Object.keys(animateStyles.current).some(function(key2) {\n return jsDriverStyleKey[key2];\n });\n for (var key in style) {\n var rawVal = style[key];\n var val = resolveDynamicValue(rawVal, isDark);\n if (val === void 0) continue;\n if (isDisabled) {\n continue;\n }\n if ((derivesLeading || inheritedFontSize) && (key === \"fontSize\" || key === \"lineHeight\")) {\n if (key === \"fontSize\" && derivesLeading && !movesFontSize) {\n nonAnimatedStyle[key] = val;\n }\n continue;\n }\n if (textMetricStyleKey[key] && !(key === \"fontSize\" ? movesFontSize : movesLeading)) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key] && !jsDriverStyleKey[key]) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (key !== \"transform\" && !(0, import_animation_helpers.getTransitionForKey)(resolved, key)) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (jsDriverStyleKey[key] && typeof val !== \"number\") {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (colorStyleKey[key] && !isAnimatableColor(val)) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (key !== \"transform\") {\n animateStyles.current[key] = update(key, animatedValueFor(key), val);\n seenAnimateKeys.add(key);\n continue;\n }\n if (!val) continue;\n if (typeof val === \"string\") {\n console.warn(`Warning: Tamagui can't animate string transforms yet!`);\n continue;\n }\n sawTransform = true;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = val[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var transform = _step.value;\n var _animatedTranforms_current_index;\n if (!transform) continue;\n var index = transformCount++;\n var tkey = Object.keys(transform)[0];\n var currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];\n animatedTranforms.current[index] = {\n [tkey]: update(tkey, currentTransform, transform[tkey])\n };\n animatedTranforms.current = [\n ...animatedTranforms.current\n ];\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n var ratioFactor = function ratioFactor2() {\n if (!movesLeading) {\n leadingRatioValue.current = null;\n return paintedRatio;\n }\n leadingRatioValue.current = update(\"lineHeight\", leadingRatioValueFrom(), paintedRatio);\n return leadingRatioValue.current;\n };\n var derivedLeading;\n if (derivesLeading) {\n var fontSizeFactor = style.fontSize;\n if (movesFontSize) {\n fontSizeFactor = update(\"fontSize\", animatedValueFor(\"fontSize\"), style.fontSize);\n animateStyles.current.fontSize = fontSizeFactor;\n seenAnimateKeys.add(\"fontSize\");\n }\n derivedLeading = import_react_native.Animated.multiply(fontSizeFactor, ratioFactor());\n } else if (inheritedFontSize) {\n derivedLeading = import_react_native.Animated.multiply(inheritedFontSize, ratioFactor());\n } else if (!isDisabled) {\n leadingRatioValue.current = null;\n }\n paintsDerivedLeading.current = !!derivedLeading;\n var ownFontSizeNode = fontSizeNode.current;\n var textChannel = ownFontSizeNode ? ((_textChannelRef_current = textChannelRef.current) === null || _textChannelRef_current === void 0 ? void 0 : _textChannelRef_current.fontSize) === ownFontSizeNode ? textChannelRef.current : {\n fontSize: ownFontSizeNode,\n driver: \"react-native\"\n } : typeof style.fontSize === \"number\" ? null : inheritedText !== null && inheritedText !== void 0 ? inheritedText : null;\n textChannelRef.current = textChannel;\n if (!isExiting && !isDisabled && !pseudoActiveRef.current) {\n for (var k in animateStyles.current) {\n if (!seenAnimateKeys.has(k)) delete animateStyles.current[k];\n }\n if (!sawTransform) {\n if (animatedTranforms.current.length) animatedTranforms.current = [];\n } else if (animatedTranforms.current.length > transformCount) {\n animatedTranforms.current = animatedTranforms.current.slice(0, transformCount);\n }\n }\n var animatedTransformStyle = animatedTranforms.current.length > 0 ? {\n transform: animatedTranforms.current.map(function(r) {\n var _animationsState_current_get;\n var key2 = Object.keys(r)[0];\n var val2 = ((_animationsState_current_get = animationsState.current.get(r[key2])) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || r[key2];\n return {\n [key2]: val2\n };\n })\n } : {};\n var animatedStyle = {\n ...Object.fromEntries(Object.entries(animateStyles.current).map(function(param2) {\n var [k2, v] = param2;\n var _animationsState_current_get;\n return [\n k2,\n ((_animationsState_current_get = animationsState.current.get(v)) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || v\n ];\n })),\n ...derivedLeading ? {\n lineHeight: derivedLeading\n } : null,\n ...animatedTransformStyle\n };\n if (!isDisabled) {\n paintedTextRef.current = {\n fontSize: style.fontSize,\n lineHeight: style.lineHeight,\n ratio: paintedRatio\n };\n }\n return {\n runners,\n completions,\n textChannel,\n style: [\n nonAnimatedStyle,\n animatedStyle\n ]\n };\n function update(key2, animated, valIn) {\n var isColorStyleKey = colorStyleKey[key2];\n var [val2, type] = isColorStyleKey ? [\n 0,\n void 0\n ] : getValue(valIn);\n var animateToValue = val2;\n var value = animated || new import_react_native.Animated.Value(val2);\n var curInterpolation = animationsState.current.get(value);\n var interpolateArgs;\n if (type) {\n var _ref3;\n interpolateArgs = getInterpolated((_ref3 = curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current) !== null && _ref3 !== void 0 ? _ref3 : value[\"_value\"], val2, type);\n animationsState.current.set(value, {\n interpolation: value.interpolate(interpolateArgs),\n current: val2\n });\n }\n if (isColorStyleKey) {\n animateToValue = (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1;\n interpolateArgs = getColorInterpolated(\n curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current,\n // valIn is the next color\n valIn,\n animateToValue\n );\n animationsState.current.set(value, {\n current: valIn,\n interpolation: value.interpolate(interpolateArgs),\n animateToValue: (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1\n });\n }\n if (value) {\n var animationConfig = getAnimationConfig(key2, animations, effectiveTransition, animationState);\n var resolve;\n var promise = new Promise(function(res2) {\n resolve = res2;\n });\n completions.push(promise);\n runners.push(function() {\n value.stopAnimation();\n var { type: type2, delay, ...config } = animationConfig;\n var animation = import_react_native.Animated[type2 || \"spring\"](value, {\n toValue: animateToValue,\n ...config,\n useNativeDriver: useNativeDriverForNode\n });\n var animation2 = delay ? import_react_native.Animated.sequence([\n import_react_native.Animated.delay(delay),\n animation\n ]) : animation;\n animation2.start(function(param2) {\n var { finished } = param2;\n if (finished || isExiting) {\n resolve();\n }\n });\n });\n }\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] === \"verbose\") {\n console.info(\" \\u{1F4A0} animate\", key2, `from (${value[\"_value\"]}) to`, valIn, `(${val2})`, \"type\", type, \"interpolate\", interpolateArgs);\n }\n }\n return value;\n }\n }, args);\n import_react.default.useEffect(function() {\n wasExitingRef.current = isExiting;\n });\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n if (justStoppedExiting && exitStartedRef.current && !exitCompletedRef.current) {\n exitStartedRef.current = false;\n emit(\"end\", \"exit\", false);\n }\n }, [\n justStoppedExiting\n ]);\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n res.runners.forEach(function(r) {\n return r();\n });\n var cycleId = exitCycleIdRef.current;\n var cause = isExiting ? \"exit\" : isEntering || justFinishedEntering ? \"enter\" : \"update\";\n if (cause === \"exit\") {\n if (enterStartedRef.current) {\n enterStartedRef.current = false;\n emit(\"end\", \"enter\", false);\n }\n if (updateInFlightRef.current) {\n updateInFlightRef.current = false;\n updateCycleIdRef.current++;\n emit(\"end\", \"update\", false);\n }\n }\n if (cause === \"update\") {\n var sig = args[0];\n if (prevStyleSigRef.current === null || prevStyleSigRef.current === sig) {\n prevStyleSigRef.current = sig;\n return;\n }\n prevStyleSigRef.current = sig;\n if (res.completions.length === 0) return;\n if (updateInFlightRef.current) {\n emit(\"end\", \"update\", false);\n }\n updateInFlightRef.current = true;\n var uid = ++updateCycleIdRef.current;\n emit(\"start\", \"update\");\n Promise.all(res.completions).then(function() {\n if (uid !== updateCycleIdRef.current) return;\n updateInFlightRef.current = false;\n emit(\"end\", \"update\", true);\n });\n return;\n }\n prevStyleSigRef.current = args[0];\n if (res.completions.length === 0) {\n emit(\"start\", cause);\n emit(\"end\", cause, true);\n if (isExiting && !exitCompletedRef.current) {\n exitCompletedRef.current = true;\n sendExitComplete === null || sendExitComplete === void 0 ? void 0 : sendExitComplete();\n }\n return;\n }\n if (cause === \"enter\" && !enterStartedRef.current) {\n enterStartedRef.current = true;\n emit(\"start\", \"enter\");\n }\n if (cause === \"exit\" && !exitStartedRef.current) {\n exitStartedRef.current = true;\n emit(\"start\", \"exit\");\n }\n Promise.all(res.completions).then(function() {\n if (isExiting && cycleId !== exitCycleIdRef.current) return;\n if (isExiting && exitCompletedRef.current) return;\n if (isExiting) {\n if (exitStartedRef.current) {\n exitStartedRef.current = false;\n emit(\"end\", \"exit\", true);\n }\n exitCompletedRef.current = true;\n sendExitComplete === null || sendExitComplete === void 0 ? void 0 : sendExitComplete();\n } else if (enterStartedRef.current) {\n enterStartedRef.current = false;\n emit(\"end\", \"enter\", true);\n }\n });\n }, args);\n var onEmittedStyle = function onEmittedStyle2(nextStyle, emittedTransition, pseudoActive, nextMetrics) {\n pseudoActiveRef.current = pseudoActive === true;\n var runners = [];\n var seenAnimateKeys = /* @__PURE__ */ new Set();\n var transformCount = 0;\n var animatedShapeChanged = false;\n var emittedResolved = (0, import_animation_helpers.forAnimationState)((0, import_animation_helpers.resolveTransition)(emittedTransition !== null && emittedTransition !== void 0 ? emittedTransition : effectiveTransition, {\n animations\n }), \"default\");\n var emittedRatio = getLeadingRatio(nextMetrics);\n var emitterPaintsProduct = paintsLeadingProduct(nextStyle, emittedRatio);\n var emitterMovesFontSize = movesTextValue(\"fontSize\", nextStyle.fontSize);\n var emitterMovesLeading = emitterPaintsProduct ? movesLeadingRatio(emittedRatio) : movesTextValue(\"lineHeight\", nextStyle.lineHeight);\n var useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(nextStyle, isDark, emittedResolved) && !emitterMovesFontSize && !emitterMovesLeading && !inheritedFontSizeNode(nextStyle, emittedRatio, inheritedText) && !Object.keys(animateStyles.current).some(function(key2) {\n return jsDriverStyleKey[key2];\n });\n var emitterDerivesLeading = emitterPaintsProduct && (emitterMovesFontSize || emitterMovesLeading) && (!!(0, import_animation_helpers.getTransitionForKey)(emittedResolved, \"fontSize\") || !!(0, import_animation_helpers.getTransitionForKey)(emittedResolved, \"lineHeight\"));\n for (var key in nextStyle) {\n var rawVal = nextStyle[key];\n var val = resolveDynamicValue(rawVal, isDark);\n if (val === void 0) continue;\n if (emitterDerivesLeading && (key === \"fontSize\" || key === \"lineHeight\")) {\n continue;\n }\n if (textMetricStyleKey[key] && !(key === \"fontSize\" ? emitterMovesFontSize : emitterMovesLeading)) {\n continue;\n }\n if (key === \"transform\" && Array.isArray(val)) {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = val[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var transform = _step.value;\n var _animatedTranforms_current_index;\n if (!transform) continue;\n var index = transformCount++;\n var tkey = Object.keys(transform)[0];\n var currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];\n if (!currentTransform) animatedShapeChanged = true;\n animatedTranforms.current[index] = {\n [tkey]: update(tkey, currentTransform, transform[tkey])\n };\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n } else if (animatedStyleKey[key] != null || costlyToAnimateStyleKey[key] || jsDriverStyleKey[key]) {\n if (jsDriverStyleKey[key] && typeof val !== \"number\") continue;\n if (colorStyleKey[key] && !isAnimatableColor(val)) continue;\n if (!animateStyles.current[key]) animatedShapeChanged = true;\n animateStyles.current[key] = update(key, animatedValueFor(key), val);\n seenAnimateKeys.add(key);\n }\n }\n if (emitterDerivesLeading) {\n if (emitterMovesFontSize) {\n if (!animateStyles.current.fontSize) animatedShapeChanged = true;\n animateStyles.current.fontSize = update(\"fontSize\", animatedValueFor(\"fontSize\"), nextStyle.fontSize);\n seenAnimateKeys.add(\"fontSize\");\n }\n if (emitterMovesLeading) {\n if (!leadingRatioValue.current) animatedShapeChanged = true;\n leadingRatioValue.current = update(\"lineHeight\", leadingRatioValueFrom(), emittedRatio);\n }\n }\n if (emitterDerivesLeading !== paintsDerivedLeading.current) {\n animatedShapeChanged = true;\n }\n for (var key1 in animateStyles.current) {\n if (!seenAnimateKeys.has(key1)) {\n delete animateStyles.current[key1];\n animatedShapeChanged = true;\n }\n }\n if (animatedTranforms.current.length > transformCount) {\n animatedTranforms.current = animatedTranforms.current.slice(0, transformCount);\n animatedShapeChanged = true;\n }\n paintedTextRef.current = {\n fontSize: nextStyle.fontSize,\n lineHeight: nextStyle.lineHeight,\n ratio: emittedRatio\n };\n runners.forEach(function(r) {\n return r();\n });\n if (animatedShapeChanged && stateRef.current.nextState) {\n var _stateRef_current_baseSetStateShallow, _stateRef_current;\n (_stateRef_current_baseSetStateShallow = (_stateRef_current = stateRef.current).baseSetStateShallow) === null || _stateRef_current_baseSetStateShallow === void 0 ? void 0 : _stateRef_current_baseSetStateShallow.call(_stateRef_current, stateRef.current.nextState);\n }\n function update(key2, animated, valIn) {\n var isColor = colorStyleKey[key2];\n var [numVal, type] = isColor ? [\n 0,\n void 0\n ] : getValue(valIn);\n var animateToValue = numVal;\n var value = animated || new import_react_native.Animated.Value(numVal);\n var curInterpolation = animationsState.current.get(value);\n if (type) {\n var _ref3;\n animationsState.current.set(value, {\n interpolation: value.interpolate(getInterpolated((_ref3 = curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current) !== null && _ref3 !== void 0 ? _ref3 : value[\"_value\"], numVal, type)),\n current: numVal\n });\n }\n if (isColor) {\n animateToValue = (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1;\n animationsState.current.set(value, {\n current: valIn,\n interpolation: value.interpolate(getColorInterpolated(curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current, valIn, animateToValue)),\n animateToValue: (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1\n });\n }\n var animationConfig = getAnimationConfig(key2, animations, emittedTransition !== null && emittedTransition !== void 0 ? emittedTransition : effectiveTransition, \"default\");\n runners.push(function() {\n value.stopAnimation();\n var { type: type2, delay, ...config } = animationConfig;\n var anim = import_react_native.Animated[type2 || \"spring\"](value, {\n toValue: animateToValue,\n ...config,\n useNativeDriver: useNativeDriverForNode\n });\n (delay ? import_react_native.Animated.sequence([\n import_react_native.Animated.delay(delay),\n anim\n ]) : anim).start();\n });\n return value;\n }\n };\n useStyleEmitter === null || useStyleEmitter === void 0 ? void 0 : useStyleEmitter(onEmittedStyle);\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] === \"verbose\") {\n console.info(`Animated`, {\n response: res,\n inputStyle: style,\n isExiting\n });\n }\n }\n return res;\n }\n };\n}\nfunction getColorInterpolated(currentColor, nextColor, animateToValue) {\n var inputRange = [\n 0,\n 1\n ];\n var outputRange = [\n currentColor ? currentColor : nextColor,\n nextColor\n ];\n if (animateToValue === 0) {\n outputRange.reverse();\n }\n return {\n inputRange,\n outputRange\n };\n}\nfunction getInterpolated(current, next) {\n var postfix = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : \"deg\";\n if (next === current) {\n current = next - 1e-9;\n }\n var inputRange = [\n current,\n next\n ];\n var outputRange = [\n `${current}${postfix}`,\n `${next}${postfix}`\n ];\n if (next < current) {\n inputRange.reverse();\n outputRange.reverse();\n }\n return {\n inputRange,\n outputRange\n };\n}\nfunction entryToRN(entry) {\n var extra = entry.timing.kind === \"spring\" ? entry.timing.extra : void 0;\n if (entry.timing.kind === \"spring\") {\n return {\n type: \"spring\",\n stiffness: entry.timing.stiffness,\n damping: entry.timing.damping,\n mass: entry.timing.mass,\n ...typeof (extra === null || extra === void 0 ? void 0 : extra.velocity) === \"number\" ? {\n velocity: extra.velocity\n } : null,\n ...typeof (extra === null || extra === void 0 ? void 0 : extra.overshootClamping) === \"boolean\" ? {\n overshootClamping: extra.overshootClamping\n } : null,\n ...entry.delayMs ? {\n delay: entry.delayMs\n } : null\n };\n }\n var bezier = (0, import_animation_helpers.easingToBezier)(entry.timing.easing);\n return {\n type: \"timing\",\n duration: entry.timing.durationMs,\n // `linear()` and `steps()` have no bezier equivalent; RN's default easing\n // is the honest answer rather than a curve we made up\n ...bezier ? {\n easing: import_react_native.Easing.bezier(bezier[0], bezier[1], bezier[2], bezier[3])\n } : null,\n ...entry.delayMs ? {\n delay: entry.delayMs\n } : null\n };\n}\nvar snapConfig = {\n type: \"timing\",\n duration: 0\n};\nfunction getAnimationConfig(key, animations, transition) {\n var animationState = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : \"default\";\n var resolved = (0, import_animation_helpers.forAnimationState)((0, import_animation_helpers.resolveTransition)(transition, {\n animations\n }), animationState);\n var entry = (0, import_animation_helpers.getTransitionForKey)(resolved, key);\n return entry ? entryToRN(entry) : snapConfig;\n}\nfunction getValue(input) {\n var isColor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n var _input_match;\n if (typeof input !== \"string\") {\n return [\n input\n ];\n }\n var [_, number, after] = (_input_match = input.match(/(-?(?:\\d+\\.?\\d*|\\.\\d+))(deg|%|px)?/)) !== null && _input_match !== void 0 ? _input_match : [];\n return [\n +number,\n after\n ];\n}\n//# sourceMappingURL=createAnimations.native.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO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,IAAI,SAAS,GAAG,yBAAyB,oBAAmB,CAAE,UAAU,GAAG;CAC3E,OAAO,QAAQ,UAAU,KAAK,IAAI;AACpC;AACA,SAAS,SAAS,OAAO;CACvB,IAAI,UAAU,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAC/E,IAAI;CACJ,IAAI,OAAO,UAAU,UAAU;EAC7B,OAAO,CACL,KACF;CACF;CACA,IAAI,CAAC,GAAG,QAAQ,UAAU,eAAe,MAAM,MAAM,oCAAoC,OAAO,QAAQ,iBAAiB,KAAK,IAAI,eAAe,CAAC;CAClJ,OAAO,CACL,CAAC,QACD,KACF;AACF"}
|
|
@@ -7,7 +7,7 @@ import React from "react";
|
|
|
7
7
|
import { Animated, Easing, TextInput, processColor } from "react-native";
|
|
8
8
|
|
|
9
9
|
var isFabric = !isWeb && typeof global !== "undefined" && !!global.__nativeFabricUIManager;
|
|
10
|
-
var resolveDynamicValue = function(value, isDark) {
|
|
10
|
+
var resolveDynamicValue = function resolveDynamicValue2(value, isDark) {
|
|
11
11
|
if (value && typeof value === "object" && "dynamic" in value) {
|
|
12
12
|
var dynamicValue = isDark ? value.dynamic.dark : value.dynamic.light;
|
|
13
13
|
return dynamicValue;
|
|
@@ -50,14 +50,14 @@ function hasAnimatedLayoutKey(style, isDark, resolved) {
|
|
|
50
50
|
}
|
|
51
51
|
return false;
|
|
52
52
|
}
|
|
53
|
-
var getLeadingRatio = function(metrics) {
|
|
53
|
+
var getLeadingRatio = function getLeadingRatio2(metrics) {
|
|
54
54
|
var ratio = metrics === null || metrics === void 0 ? void 0 : metrics.lineHeight;
|
|
55
55
|
return typeof ratio === "number" && Number.isFinite(ratio) && ratio >= 0 ? ratio : void 0;
|
|
56
56
|
};
|
|
57
|
-
var paintsLeadingProduct = function(style, ratio) {
|
|
57
|
+
var paintsLeadingProduct = function paintsLeadingProduct2(style, ratio) {
|
|
58
58
|
return ratio !== void 0 && typeof style.fontSize === "number" && typeof style.lineHeight === "number";
|
|
59
59
|
};
|
|
60
|
-
var inheritedFontSizeNode = function(style, ratio, inheritedText) {
|
|
60
|
+
var inheritedFontSizeNode = function inheritedFontSizeNode2(style, ratio, inheritedText) {
|
|
61
61
|
return ratio !== void 0 && typeof style.fontSize !== "number" && (inheritedText === null || inheritedText === void 0 ? void 0 : inheritedText.driver) === "react-native" ? inheritedText.fontSize : void 0;
|
|
62
62
|
};
|
|
63
63
|
function isAnimatableColor(value) {
|
|
@@ -137,7 +137,7 @@ function useAnimatedNumber(initial) {
|
|
|
137
137
|
}
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
-
var useAnimatedNumberReaction = function(param, onValue) {
|
|
140
|
+
var useAnimatedNumberReaction = function useAnimatedNumberReaction2(param, onValue) {
|
|
141
141
|
var { value } = param;
|
|
142
142
|
var onChange = useEvent(function(current) {
|
|
143
143
|
onValue(current.value);
|
|
@@ -149,7 +149,7 @@ var useAnimatedNumberReaction = function(param, onValue) {
|
|
|
149
149
|
};
|
|
150
150
|
}, [value, onChange]);
|
|
151
151
|
};
|
|
152
|
-
var useAnimatedNumberStyle = function(value, getStyle) {
|
|
152
|
+
var useAnimatedNumberStyle = function useAnimatedNumberStyle2(value, getStyle) {
|
|
153
153
|
var instance = value.getInstance();
|
|
154
154
|
var animatedStyle = getStyle(instance);
|
|
155
155
|
var usesAnimatedNode = hasAnimatedNode(animatedStyle);
|
|
@@ -172,14 +172,14 @@ function hasAnimatedNode(value) {
|
|
|
172
172
|
if (Array.isArray(value)) return value.some(hasAnimatedNode);
|
|
173
173
|
return Object.values(value).some(hasAnimatedNode);
|
|
174
174
|
}
|
|
175
|
-
var useAnimatedNumbersStyle = function(vals, getStyle) {
|
|
175
|
+
var useAnimatedNumbersStyle = function useAnimatedNumbersStyle2(vals, getStyle) {
|
|
176
176
|
return getStyle(...vals.map(function(v) {
|
|
177
177
|
return v.getInstance();
|
|
178
178
|
}));
|
|
179
179
|
};
|
|
180
180
|
function createAnimations(animations, options) {
|
|
181
|
-
var
|
|
182
|
-
var nativeDriver = (
|
|
181
|
+
var _ref;
|
|
182
|
+
var nativeDriver = (_ref = options === null || options === void 0 ? void 0 : options.useNativeDriver) !== null && _ref !== void 0 ? _ref : isFabric;
|
|
183
183
|
return {
|
|
184
184
|
inputStyle: "value",
|
|
185
185
|
outputStyle: "inline",
|
|
@@ -194,7 +194,7 @@ function createAnimations(animations, options) {
|
|
|
194
194
|
useAnimatedNumbersStyle,
|
|
195
195
|
usePresence,
|
|
196
196
|
ResetPresence,
|
|
197
|
-
useTextMetrics: function(param) {
|
|
197
|
+
useTextMetrics: function useTextMetrics(param) {
|
|
198
198
|
var { inheritedText, lineHeight } = param;
|
|
199
199
|
var node = (inheritedText === null || inheritedText === void 0 ? void 0 : inheritedText.driver) === "react-native" ? inheritedText.fontSize : null;
|
|
200
200
|
var ratio = typeof lineHeight === "number" ? lineHeight : null;
|
|
@@ -217,15 +217,16 @@ function createAnimations(animations, options) {
|
|
|
217
217
|
TextInput: animatedTextInput
|
|
218
218
|
};
|
|
219
219
|
},
|
|
220
|
-
useAnimations: function(param) {
|
|
220
|
+
useAnimations: function useAnimations(param) {
|
|
221
221
|
var { props, onTransition, style, componentState, presence, stateRef, styleState, useStyleEmitter, inheritedText } = param;
|
|
222
|
+
var _ref2;
|
|
222
223
|
var _themeState_name;
|
|
223
224
|
var isDisabled = isWeb && componentState.unmounted === true;
|
|
224
225
|
var isExiting = (presence === null || presence === void 0 ? void 0 : presence[0]) === false;
|
|
225
226
|
var sendExitComplete = presence === null || presence === void 0 ? void 0 : presence[1];
|
|
226
227
|
var onTransitionRef = React.useRef(onTransition);
|
|
227
228
|
onTransitionRef.current = onTransition;
|
|
228
|
-
var emit = function(phase, cause, finished) {
|
|
229
|
+
var emit = function emit2(phase, cause, finished) {
|
|
229
230
|
var _onTransitionRef_current;
|
|
230
231
|
(_onTransitionRef_current = onTransitionRef.current) === null || _onTransitionRef_current === void 0 ? void 0 : _onTransitionRef_current.call(onTransitionRef, phase === "end" ? {
|
|
231
232
|
phase,
|
|
@@ -236,8 +237,7 @@ function createAnimations(animations, options) {
|
|
|
236
237
|
cause
|
|
237
238
|
});
|
|
238
239
|
};
|
|
239
|
-
var
|
|
240
|
-
var effectiveTransition = (_styleState_effectiveTransition = styleState === null || styleState === void 0 ? void 0 : styleState.effectiveTransition) !== null && _styleState_effectiveTransition !== void 0 ? _styleState_effectiveTransition : props.transition;
|
|
240
|
+
var effectiveTransition = (_ref2 = styleState === null || styleState === void 0 ? void 0 : styleState.effectiveTransition) !== null && _ref2 !== void 0 ? _ref2 : props.transition;
|
|
241
241
|
var [, themeState] = useThemeWithState({});
|
|
242
242
|
var isDark = (themeState === null || themeState === void 0 ? void 0 : themeState.scheme) === "dark" || (themeState === null || themeState === void 0 ? void 0 : (_themeState_name = themeState.name) === null || _themeState_name === void 0 ? void 0 : _themeState_name.startsWith("dark"));
|
|
243
243
|
var animateStyles = React.useRef({});
|
|
@@ -247,27 +247,27 @@ function createAnimations(animations, options) {
|
|
|
247
247
|
var textChannelRef = React.useRef(null);
|
|
248
248
|
leadingRatioRef.current = getLeadingRatio(styleState === null || styleState === void 0 ? void 0 : styleState.nativeTextMetrics);
|
|
249
249
|
var paintedTextRef = React.useRef({});
|
|
250
|
-
var movesTextValue = function(key, target) {
|
|
250
|
+
var movesTextValue = function movesTextValue2(key, target) {
|
|
251
251
|
if (typeof target !== "number") return false;
|
|
252
252
|
var node = animateStyles.current[key];
|
|
253
253
|
var last = node ? node["_value"] : paintedTextRef.current[key];
|
|
254
254
|
return last !== void 0 && last !== target;
|
|
255
255
|
};
|
|
256
|
-
var movesLeadingRatio = function(ratio) {
|
|
256
|
+
var movesLeadingRatio = function movesLeadingRatio2(ratio) {
|
|
257
257
|
if (ratio === void 0) return false;
|
|
258
258
|
var node = leadingRatioValue.current;
|
|
259
259
|
var last = node ? node["_value"] : paintedTextRef.current.ratio;
|
|
260
260
|
return last !== void 0 && last !== ratio;
|
|
261
261
|
};
|
|
262
262
|
var fontSizeNode = React.useRef(null);
|
|
263
|
-
var animatedValueFor = function(key) {
|
|
263
|
+
var animatedValueFor = function animatedValueFor2(key) {
|
|
264
264
|
var painted = animateStyles.current[key];
|
|
265
265
|
if (painted) return painted;
|
|
266
266
|
if (key === "fontSize" && fontSizeNode.current) return fontSizeNode.current;
|
|
267
267
|
if (textMetricStyleKey[key]) return new Animated.Value(paintedTextRef.current[key]);
|
|
268
268
|
return void 0;
|
|
269
269
|
};
|
|
270
|
-
var leadingRatioValueFrom = function() {
|
|
270
|
+
var leadingRatioValueFrom = function leadingRatioValueFrom2() {
|
|
271
271
|
var _leadingRatioValue_current;
|
|
272
272
|
return (_leadingRatioValue_current = leadingRatioValue.current) !== null && _leadingRatioValue_current !== void 0 ? _leadingRatioValue_current : new Animated.Value(paintedTextRef.current.ratio);
|
|
273
273
|
};
|
|
@@ -407,7 +407,7 @@ function createAnimations(animations, options) {
|
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
var ratioFactor = function() {
|
|
410
|
+
var ratioFactor = function ratioFactor2() {
|
|
411
411
|
if (!movesLeading) {
|
|
412
412
|
leadingRatioValue.current = null;
|
|
413
413
|
return paintedRatio;
|
|
@@ -482,8 +482,8 @@ function createAnimations(animations, options) {
|
|
|
482
482
|
var curInterpolation = animationsState.current.get(value);
|
|
483
483
|
var interpolateArgs;
|
|
484
484
|
if (type) {
|
|
485
|
-
var
|
|
486
|
-
interpolateArgs = getInterpolated((
|
|
485
|
+
var _ref3;
|
|
486
|
+
interpolateArgs = getInterpolated((_ref3 = curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current) !== null && _ref3 !== void 0 ? _ref3 : value["_value"], val2, type);
|
|
487
487
|
animationsState.current.set(value, {
|
|
488
488
|
interpolation: value.interpolate(interpolateArgs),
|
|
489
489
|
current: val2
|
|
@@ -611,7 +611,7 @@ function createAnimations(animations, options) {
|
|
|
611
611
|
}
|
|
612
612
|
});
|
|
613
613
|
}, args);
|
|
614
|
-
var onEmittedStyle = function(nextStyle, emittedTransition, pseudoActive, nextMetrics) {
|
|
614
|
+
var onEmittedStyle = function onEmittedStyle2(nextStyle, emittedTransition, pseudoActive, nextMetrics) {
|
|
615
615
|
pseudoActiveRef.current = pseudoActive === true;
|
|
616
616
|
var runners = [];
|
|
617
617
|
var seenAnimateKeys = /* @__PURE__ */ new Set();
|
|
@@ -714,9 +714,9 @@ function createAnimations(animations, options) {
|
|
|
714
714
|
var value = animated || new Animated.Value(numVal);
|
|
715
715
|
var curInterpolation = animationsState.current.get(value);
|
|
716
716
|
if (type) {
|
|
717
|
-
var
|
|
717
|
+
var _ref3;
|
|
718
718
|
animationsState.current.set(value, {
|
|
719
|
-
interpolation: value.interpolate(getInterpolated((
|
|
719
|
+
interpolation: value.interpolate(getInterpolated((_ref3 = curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current) !== null && _ref3 !== void 0 ? _ref3 : value["_value"], numVal, type)),
|
|
720
720
|
current: numVal
|
|
721
721
|
});
|
|
722
722
|
}
|
|
@@ -816,10 +816,10 @@ function getAnimationConfig(key, animations, transition) {
|
|
|
816
816
|
}
|
|
817
817
|
function getValue(input) {
|
|
818
818
|
var isColor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
819
|
+
var _input_match;
|
|
819
820
|
if (typeof input !== "string") {
|
|
820
821
|
return [input];
|
|
821
822
|
}
|
|
822
|
-
var _input_match;
|
|
823
823
|
var [_, number, after] = (_input_match = input.match(/(-?(?:\d+\.?\d*|\.\d+))(deg|%|px)?/)) !== null && _input_match !== void 0 ? _input_match : [];
|
|
824
824
|
return [+number, after];
|
|
825
825
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAnimations.native.js","names":[],"sources":["esm/createAnimations.native.js"],"sourcesContent":["import { easingToBezier, forAnimationState, getTransitionForKey, resolveTransition } from \"@tamagui/animation-helpers\";\nimport { isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { ResetPresence, usePresence } from \"@tamagui/use-presence\";\nimport { useEvent } from \"@tamagui/web\";\nimport { useThemeWithState } from \"@tamagui/web/internal-runtime\";\nimport React from \"react\";\nimport { Animated, Easing, processColor, TextInput } from \"react-native\";\nvar isFabric = !isWeb && typeof global !== \"undefined\" && !!global.__nativeFabricUIManager;\nvar resolveDynamicValue = function(value, isDark) {\n if (value && typeof value === \"object\" && \"dynamic\" in value) {\n var dynamicValue = isDark ? value.dynamic.dark : value.dynamic.light;\n return dynamicValue;\n }\n return value;\n};\nvar animatedStyleKey = {\n transform: true,\n opacity: true\n};\nvar colorStyleKey = {\n backgroundColor: true,\n color: true,\n borderColor: true,\n borderLeftColor: true,\n borderRightColor: true,\n borderTopColor: true,\n borderBottomColor: true\n};\nvar layoutStyleKey = {\n height: true,\n width: true,\n minHeight: true,\n maxHeight: true,\n minWidth: true,\n maxWidth: true\n};\nvar textMetricStyleKey = {\n fontSize: true,\n lineHeight: true\n};\nvar jsDriverStyleKey = {\n ...layoutStyleKey,\n ...textMetricStyleKey\n};\nfunction hasAnimatedLayoutKey(style, isDark, resolved) {\n for (var key in layoutStyleKey) {\n if (!getTransitionForKey(resolved, key)) continue;\n if (typeof resolveDynamicValue(style[key], isDark) === \"number\") return true;\n }\n return false;\n}\nvar getLeadingRatio = function(metrics) {\n var ratio = metrics === null || metrics === void 0 ? void 0 : metrics.lineHeight;\n return typeof ratio === \"number\" && Number.isFinite(ratio) && ratio >= 0 ? ratio : void 0;\n};\nvar paintsLeadingProduct = function(style, ratio) {\n return ratio !== void 0 && typeof style.fontSize === \"number\" && typeof style.lineHeight === \"number\";\n};\nvar inheritedFontSizeNode = function(style, ratio, inheritedText) {\n return ratio !== void 0 && typeof style.fontSize !== \"number\" && (inheritedText === null || inheritedText === void 0 ? void 0 : inheritedText.driver) === \"react-native\" ? inheritedText.fontSize : void 0;\n};\nfunction isAnimatableColor(value) {\n return typeof value === \"string\" && processColor(value) != null;\n}\nvar costlyToAnimateStyleKey = {\n borderRadius: true,\n borderTopLeftRadius: true,\n borderTopRightRadius: true,\n borderBottomLeftRadius: true,\n borderBottomRightRadius: true,\n borderWidth: true,\n borderLeftWidth: true,\n borderRightWidth: true,\n borderTopWidth: true,\n borderBottomWidth: true,\n ...colorStyleKey\n};\nvar AnimatedView = Animated.View;\nvar AnimatedText = Animated.Text;\nvar animatedTextInput;\nfunction useAnimatedNumber(initial) {\n var state = React.useRef(null);\n if (!state.current) {\n state.current = {\n composite: null,\n val: new Animated.Value(initial),\n strategy: {\n type: \"spring\"\n }\n };\n }\n return {\n getInstance() {\n return state.current.val;\n },\n getValue() {\n return state.current.val[\"_value\"];\n },\n stop() {\n var _state_current_composite;\n (_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 ? void 0 : _state_current_composite.stop();\n state.current.composite = null;\n },\n setValue(next) {\n var { type, ...config } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {\n type: \"spring\"\n }, onFinish = arguments.length > 2 ? arguments[2] : void 0;\n var val = state.current.val;\n var handleFinish = onFinish ? function(param) {\n var { finished } = param;\n return finished ? onFinish() : null;\n } : void 0;\n if (type === \"direct\") {\n var _state_current_composite;\n (_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 ? void 0 : _state_current_composite.stop();\n state.current.composite = null;\n val.setValue(next);\n onFinish === null || onFinish === void 0 ? void 0 : onFinish();\n } else if (type === \"spring\") {\n var _state_current_composite1;\n (_state_current_composite1 = state.current.composite) === null || _state_current_composite1 === void 0 ? void 0 : _state_current_composite1.stop();\n var composite = Animated.spring(val, {\n ...config,\n toValue: next,\n useNativeDriver: isFabric\n });\n composite.start(handleFinish);\n state.current.composite = composite;\n } else {\n var _state_current_composite2;\n (_state_current_composite2 = state.current.composite) === null || _state_current_composite2 === void 0 ? void 0 : _state_current_composite2.stop();\n var composite1 = Animated.timing(val, {\n ...config,\n toValue: next,\n useNativeDriver: isFabric\n });\n composite1.start(handleFinish);\n state.current.composite = composite1;\n }\n }\n };\n}\nvar useAnimatedNumberReaction = function(param, onValue) {\n var { value } = param;\n var onChange = useEvent(function(current) {\n onValue(current.value);\n });\n React.useEffect(function() {\n var id = value.getInstance().addListener(onChange);\n return function() {\n value.getInstance().removeListener(id);\n };\n }, [\n value,\n onChange\n ]);\n};\nvar useAnimatedNumberStyle = function(value, getStyle) {\n var instance = value.getInstance();\n var animatedStyle = getStyle(instance);\n var usesAnimatedNode = hasAnimatedNode(animatedStyle);\n var [current, setCurrent] = React.useState(value.getValue());\n React.useEffect(function() {\n if (usesAnimatedNode) return;\n var id = instance.addListener(function(param) {\n var { value: next } = param;\n setCurrent(next);\n });\n return function() {\n instance.removeListener(id);\n };\n }, [\n instance,\n usesAnimatedNode\n ]);\n return usesAnimatedNode ? animatedStyle : getStyle(current);\n};\nfunction hasAnimatedNode(value) {\n if (!value || typeof value !== \"object\") return false;\n if (typeof value.__getValue === \"function\") return true;\n if (Array.isArray(value)) return value.some(hasAnimatedNode);\n return Object.values(value).some(hasAnimatedNode);\n}\nvar useAnimatedNumbersStyle = function(vals, getStyle) {\n return getStyle(...vals.map(function(v) {\n return v.getInstance();\n }));\n};\nfunction createAnimations(animations, options) {\n var _options_useNativeDriver;\n var nativeDriver = (_options_useNativeDriver = options === null || options === void 0 ? void 0 : options.useNativeDriver) !== null && _options_useNativeDriver !== void 0 ? _options_useNativeDriver : isFabric;\n return {\n inputStyle: \"value\",\n outputStyle: \"inline\",\n avoidReRenders: true,\n animations,\n needsCustomComponent: true,\n View: AnimatedView,\n Text: AnimatedText,\n useAnimatedNumber,\n useAnimatedNumberReaction,\n useAnimatedNumberStyle,\n useAnimatedNumbersStyle,\n usePresence,\n ResetPresence,\n // binds a descendant that has no font size of its own to the ancestor's\n // animated one. no clock here: the font size node is the ancestor's, and a\n // ratio leading is a multiplication of it, so both land on the same frame.\n useTextMetrics: function(param) {\n var { inheritedText, lineHeight } = param;\n var node = (inheritedText === null || inheritedText === void 0 ? void 0 : inheritedText.driver) === \"react-native\" ? inheritedText.fontSize : null;\n var ratio = typeof lineHeight === \"number\" ? lineHeight : null;\n var style = React.useMemo(function() {\n return node ? ratio === null ? {\n fontSize: node\n } : {\n fontSize: node,\n lineHeight: Animated.multiply(node, ratio)\n } : null;\n }, [\n node,\n ratio\n ]);\n var textChannel = inheritedText !== null && inheritedText !== void 0 ? inheritedText : null;\n if (!style) return {\n style: null,\n textChannel\n };\n animatedTextInput || (animatedTextInput = Animated.createAnimatedComponent(TextInput));\n return {\n style,\n textChannel,\n Text: AnimatedText,\n TextInput: animatedTextInput\n };\n },\n useAnimations: function(param) {\n var { props, onTransition, style, componentState, presence, stateRef, styleState, useStyleEmitter, inheritedText } = param;\n var _themeState_name;\n var isDisabled = isWeb && componentState.unmounted === true;\n var isExiting = (presence === null || presence === void 0 ? void 0 : presence[0]) === false;\n var sendExitComplete = presence === null || presence === void 0 ? void 0 : presence[1];\n var onTransitionRef = React.useRef(onTransition);\n onTransitionRef.current = onTransition;\n var emit = function(phase, cause, finished) {\n var _onTransitionRef_current;\n (_onTransitionRef_current = onTransitionRef.current) === null || _onTransitionRef_current === void 0 ? void 0 : _onTransitionRef_current.call(onTransitionRef, phase === \"end\" ? {\n phase,\n cause,\n finished\n } : {\n phase,\n cause\n });\n };\n var _styleState_effectiveTransition;\n var effectiveTransition = (_styleState_effectiveTransition = styleState === null || styleState === void 0 ? void 0 : styleState.effectiveTransition) !== null && _styleState_effectiveTransition !== void 0 ? _styleState_effectiveTransition : props.transition;\n var [, themeState] = useThemeWithState({});\n var isDark = (themeState === null || themeState === void 0 ? void 0 : themeState.scheme) === \"dark\" || (themeState === null || themeState === void 0 ? void 0 : (_themeState_name = themeState.name) === null || _themeState_name === void 0 ? void 0 : _themeState_name.startsWith(\"dark\"));\n var animateStyles = React.useRef({});\n var leadingRatioValue = React.useRef(null);\n var leadingRatioRef = React.useRef(void 0);\n var paintsDerivedLeading = React.useRef(false);\n var textChannelRef = React.useRef(null);\n leadingRatioRef.current = getLeadingRatio(styleState === null || styleState === void 0 ? void 0 : styleState.nativeTextMetrics);\n var paintedTextRef = React.useRef({});\n var movesTextValue = function(key, target) {\n if (typeof target !== \"number\") return false;\n var node = animateStyles.current[key];\n var last = node ? node[\"_value\"] : paintedTextRef.current[key];\n return last !== void 0 && last !== target;\n };\n var movesLeadingRatio = function(ratio) {\n if (ratio === void 0) return false;\n var node = leadingRatioValue.current;\n var last = node ? node[\"_value\"] : paintedTextRef.current.ratio;\n return last !== void 0 && last !== ratio;\n };\n var fontSizeNode = React.useRef(null);\n var animatedValueFor = function(key) {\n var painted = animateStyles.current[key];\n if (painted) return painted;\n if (key === \"fontSize\" && fontSizeNode.current) return fontSizeNode.current;\n if (textMetricStyleKey[key]) return new Animated.Value(paintedTextRef.current[key]);\n return void 0;\n };\n var leadingRatioValueFrom = function() {\n var _leadingRatioValue_current;\n return (_leadingRatioValue_current = leadingRatioValue.current) !== null && _leadingRatioValue_current !== void 0 ? _leadingRatioValue_current : new Animated.Value(paintedTextRef.current.ratio);\n };\n var animatedTranforms = React.useRef([]);\n var animationsState = React.useRef(/* @__PURE__ */ new WeakMap());\n var pseudoActiveRef = React.useRef(false);\n var exitCycleIdRef = React.useRef(0);\n var exitCompletedRef = React.useRef(false);\n var wasExitingRef = React.useRef(false);\n var enterStartedRef = React.useRef(false);\n var exitStartedRef = React.useRef(false);\n var updateInFlightRef = React.useRef(false);\n var updateCycleIdRef = React.useRef(0);\n var prevStyleSigRef = React.useRef(null);\n var justStartedExiting = isExiting && !wasExitingRef.current;\n var justStoppedExiting = !isExiting && wasExitingRef.current;\n if (justStartedExiting) {\n exitCycleIdRef.current++;\n exitCompletedRef.current = false;\n }\n if (justStoppedExiting) {\n exitCycleIdRef.current++;\n }\n var isEntering = !!componentState.unmounted;\n var wasEnteringRef = React.useRef(isEntering);\n var justFinishedEntering = wasEnteringRef.current && !isEntering;\n React.useEffect(function() {\n wasEnteringRef.current = isEntering;\n });\n var args = [\n JSON.stringify(style),\n JSON.stringify(effectiveTransition),\n componentState,\n isExiting,\n !!onTransition,\n isDark,\n justFinishedEntering,\n leadingRatioRef.current,\n inheritedText\n ];\n var res = React.useMemo(function() {\n var _textChannelRef_current;\n var runners = [];\n var completions = [];\n var animationState = isExiting ? \"exit\" : isEntering || justFinishedEntering ? \"enter\" : \"default\";\n var resolved = forAnimationState(resolveTransition(effectiveTransition, {\n animations\n }), animationState);\n var nonAnimatedStyle = {};\n var paintedRatio = leadingRatioRef.current;\n var paintsProduct = paintsLeadingProduct(style, paintedRatio);\n var movesFontSize = movesTextValue(\"fontSize\", style.fontSize);\n var movesLeading = paintsProduct ? movesLeadingRatio(paintedRatio) : movesTextValue(\"lineHeight\", style.lineHeight);\n if (!isExiting && !isDisabled && !pseudoActiveRef.current) {\n if (!movesFontSize) delete animateStyles.current.fontSize;\n if (!movesLeading) delete animateStyles.current.lineHeight;\n }\n if (isDisabled || typeof style.fontSize !== \"number\" || !getTransitionForKey(resolved, \"fontSize\")) {\n fontSizeNode.current = null;\n } else if (!fontSizeNode.current) {\n fontSizeNode.current = new Animated.Value(style.fontSize);\n }\n var seenAnimateKeys = /* @__PURE__ */ new Set();\n var sawTransform = false;\n var transformCount = 0;\n var derivesLeading = !isDisabled && paintsProduct && (movesFontSize || movesLeading) && (!!getTransitionForKey(resolved, \"fontSize\") || !!getTransitionForKey(resolved, \"lineHeight\"));\n var inheritedFontSize = isDisabled ? void 0 : inheritedFontSizeNode(style, paintedRatio, inheritedText);\n var useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(style, isDark, resolved) && !movesFontSize && !movesLeading && !inheritedFontSize && !Object.keys(animateStyles.current).some(function(key2) {\n return jsDriverStyleKey[key2];\n });\n for (var key in style) {\n var rawVal = style[key];\n var val = resolveDynamicValue(rawVal, isDark);\n if (val === void 0) continue;\n if (isDisabled) {\n continue;\n }\n if ((derivesLeading || inheritedFontSize) && (key === \"fontSize\" || key === \"lineHeight\")) {\n if (key === \"fontSize\" && derivesLeading && !movesFontSize) {\n nonAnimatedStyle[key] = val;\n }\n continue;\n }\n if (textMetricStyleKey[key] && !(key === \"fontSize\" ? movesFontSize : movesLeading)) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key] && !jsDriverStyleKey[key]) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (key !== \"transform\" && !getTransitionForKey(resolved, key)) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (jsDriverStyleKey[key] && typeof val !== \"number\") {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (colorStyleKey[key] && !isAnimatableColor(val)) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (key !== \"transform\") {\n animateStyles.current[key] = update(key, animatedValueFor(key), val);\n seenAnimateKeys.add(key);\n continue;\n }\n if (!val) continue;\n if (typeof val === \"string\") {\n console.warn(`Warning: Tamagui can't animate string transforms yet!`);\n continue;\n }\n sawTransform = true;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = val[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var transform = _step.value;\n var _animatedTranforms_current_index;\n if (!transform) continue;\n var index = transformCount++;\n var tkey = Object.keys(transform)[0];\n var currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];\n animatedTranforms.current[index] = {\n [tkey]: update(tkey, currentTransform, transform[tkey])\n };\n animatedTranforms.current = [\n ...animatedTranforms.current\n ];\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n var ratioFactor = function() {\n if (!movesLeading) {\n leadingRatioValue.current = null;\n return paintedRatio;\n }\n leadingRatioValue.current = update(\"lineHeight\", leadingRatioValueFrom(), paintedRatio);\n return leadingRatioValue.current;\n };\n var derivedLeading;\n if (derivesLeading) {\n var fontSizeFactor = style.fontSize;\n if (movesFontSize) {\n fontSizeFactor = update(\"fontSize\", animatedValueFor(\"fontSize\"), style.fontSize);\n animateStyles.current.fontSize = fontSizeFactor;\n seenAnimateKeys.add(\"fontSize\");\n }\n derivedLeading = Animated.multiply(fontSizeFactor, ratioFactor());\n } else if (inheritedFontSize) {\n derivedLeading = Animated.multiply(inheritedFontSize, ratioFactor());\n } else if (!isDisabled) {\n leadingRatioValue.current = null;\n }\n paintsDerivedLeading.current = !!derivedLeading;\n var ownFontSizeNode = fontSizeNode.current;\n var textChannel = ownFontSizeNode ? ((_textChannelRef_current = textChannelRef.current) === null || _textChannelRef_current === void 0 ? void 0 : _textChannelRef_current.fontSize) === ownFontSizeNode ? textChannelRef.current : {\n fontSize: ownFontSizeNode,\n driver: \"react-native\"\n } : typeof style.fontSize === \"number\" ? null : inheritedText !== null && inheritedText !== void 0 ? inheritedText : null;\n textChannelRef.current = textChannel;\n if (!isExiting && !isDisabled && !pseudoActiveRef.current) {\n for (var k in animateStyles.current) {\n if (!seenAnimateKeys.has(k)) delete animateStyles.current[k];\n }\n if (!sawTransform) {\n if (animatedTranforms.current.length) animatedTranforms.current = [];\n } else if (animatedTranforms.current.length > transformCount) {\n animatedTranforms.current = animatedTranforms.current.slice(0, transformCount);\n }\n }\n var animatedTransformStyle = animatedTranforms.current.length > 0 ? {\n transform: animatedTranforms.current.map(function(r) {\n var _animationsState_current_get;\n var key2 = Object.keys(r)[0];\n var val2 = ((_animationsState_current_get = animationsState.current.get(r[key2])) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || r[key2];\n return {\n [key2]: val2\n };\n })\n } : {};\n var animatedStyle = {\n ...Object.fromEntries(Object.entries(animateStyles.current).map(function(param2) {\n var [k2, v] = param2;\n var _animationsState_current_get;\n return [\n k2,\n ((_animationsState_current_get = animationsState.current.get(v)) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || v\n ];\n })),\n ...derivedLeading ? {\n lineHeight: derivedLeading\n } : null,\n ...animatedTransformStyle\n };\n if (!isDisabled) {\n paintedTextRef.current = {\n fontSize: style.fontSize,\n lineHeight: style.lineHeight,\n ratio: paintedRatio\n };\n }\n return {\n runners,\n completions,\n textChannel,\n style: [\n nonAnimatedStyle,\n animatedStyle\n ]\n };\n function update(key2, animated, valIn) {\n var isColorStyleKey = colorStyleKey[key2];\n var [val2, type] = isColorStyleKey ? [\n 0,\n void 0\n ] : getValue(valIn);\n var animateToValue = val2;\n var value = animated || new Animated.Value(val2);\n var curInterpolation = animationsState.current.get(value);\n var interpolateArgs;\n if (type) {\n var _curInterpolation_current;\n interpolateArgs = getInterpolated((_curInterpolation_current = curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current) !== null && _curInterpolation_current !== void 0 ? _curInterpolation_current : value[\"_value\"], val2, type);\n animationsState.current.set(value, {\n interpolation: value.interpolate(interpolateArgs),\n current: val2\n });\n }\n if (isColorStyleKey) {\n animateToValue = (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1;\n interpolateArgs = getColorInterpolated(\n curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current,\n // valIn is the next color\n valIn,\n animateToValue\n );\n animationsState.current.set(value, {\n current: valIn,\n interpolation: value.interpolate(interpolateArgs),\n animateToValue: (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1\n });\n }\n if (value) {\n var animationConfig = getAnimationConfig(key2, animations, effectiveTransition, animationState);\n var resolve;\n var promise = new Promise(function(res2) {\n resolve = res2;\n });\n completions.push(promise);\n runners.push(function() {\n value.stopAnimation();\n var { type: type2, delay, ...config } = animationConfig;\n var animation = Animated[type2 || \"spring\"](value, {\n toValue: animateToValue,\n ...config,\n useNativeDriver: useNativeDriverForNode\n });\n var animation2 = delay ? Animated.sequence([\n Animated.delay(delay),\n animation\n ]) : animation;\n animation2.start(function(param2) {\n var { finished } = param2;\n if (finished || isExiting) {\n resolve();\n }\n });\n });\n }\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] === \"verbose\") {\n console.info(\" \\u{1F4A0} animate\", key2, `from (${value[\"_value\"]}) to`, valIn, `(${val2})`, \"type\", type, \"interpolate\", interpolateArgs);\n }\n }\n return value;\n }\n }, args);\n React.useEffect(function() {\n wasExitingRef.current = isExiting;\n });\n useIsomorphicLayoutEffect(function() {\n if (justStoppedExiting && exitStartedRef.current && !exitCompletedRef.current) {\n exitStartedRef.current = false;\n emit(\"end\", \"exit\", false);\n }\n }, [\n justStoppedExiting\n ]);\n useIsomorphicLayoutEffect(function() {\n res.runners.forEach(function(r) {\n return r();\n });\n var cycleId = exitCycleIdRef.current;\n var cause = isExiting ? \"exit\" : isEntering || justFinishedEntering ? \"enter\" : \"update\";\n if (cause === \"exit\") {\n if (enterStartedRef.current) {\n enterStartedRef.current = false;\n emit(\"end\", \"enter\", false);\n }\n if (updateInFlightRef.current) {\n updateInFlightRef.current = false;\n updateCycleIdRef.current++;\n emit(\"end\", \"update\", false);\n }\n }\n if (cause === \"update\") {\n var sig = args[0];\n if (prevStyleSigRef.current === null || prevStyleSigRef.current === sig) {\n prevStyleSigRef.current = sig;\n return;\n }\n prevStyleSigRef.current = sig;\n if (res.completions.length === 0) return;\n if (updateInFlightRef.current) {\n emit(\"end\", \"update\", false);\n }\n updateInFlightRef.current = true;\n var uid = ++updateCycleIdRef.current;\n emit(\"start\", \"update\");\n Promise.all(res.completions).then(function() {\n if (uid !== updateCycleIdRef.current) return;\n updateInFlightRef.current = false;\n emit(\"end\", \"update\", true);\n });\n return;\n }\n prevStyleSigRef.current = args[0];\n if (res.completions.length === 0) {\n emit(\"start\", cause);\n emit(\"end\", cause, true);\n if (isExiting && !exitCompletedRef.current) {\n exitCompletedRef.current = true;\n sendExitComplete === null || sendExitComplete === void 0 ? void 0 : sendExitComplete();\n }\n return;\n }\n if (cause === \"enter\" && !enterStartedRef.current) {\n enterStartedRef.current = true;\n emit(\"start\", \"enter\");\n }\n if (cause === \"exit\" && !exitStartedRef.current) {\n exitStartedRef.current = true;\n emit(\"start\", \"exit\");\n }\n Promise.all(res.completions).then(function() {\n if (isExiting && cycleId !== exitCycleIdRef.current) return;\n if (isExiting && exitCompletedRef.current) return;\n if (isExiting) {\n if (exitStartedRef.current) {\n exitStartedRef.current = false;\n emit(\"end\", \"exit\", true);\n }\n exitCompletedRef.current = true;\n sendExitComplete === null || sendExitComplete === void 0 ? void 0 : sendExitComplete();\n } else if (enterStartedRef.current) {\n enterStartedRef.current = false;\n emit(\"end\", \"enter\", true);\n }\n });\n }, args);\n var onEmittedStyle = function(nextStyle, emittedTransition, pseudoActive, nextMetrics) {\n pseudoActiveRef.current = pseudoActive === true;\n var runners = [];\n var seenAnimateKeys = /* @__PURE__ */ new Set();\n var transformCount = 0;\n var animatedShapeChanged = false;\n var emittedResolved = forAnimationState(resolveTransition(emittedTransition !== null && emittedTransition !== void 0 ? emittedTransition : effectiveTransition, {\n animations\n }), \"default\");\n var emittedRatio = getLeadingRatio(nextMetrics);\n var emitterPaintsProduct = paintsLeadingProduct(nextStyle, emittedRatio);\n var emitterMovesFontSize = movesTextValue(\"fontSize\", nextStyle.fontSize);\n var emitterMovesLeading = emitterPaintsProduct ? movesLeadingRatio(emittedRatio) : movesTextValue(\"lineHeight\", nextStyle.lineHeight);\n var useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(nextStyle, isDark, emittedResolved) && !emitterMovesFontSize && !emitterMovesLeading && !inheritedFontSizeNode(nextStyle, emittedRatio, inheritedText) && !Object.keys(animateStyles.current).some(function(key2) {\n return jsDriverStyleKey[key2];\n });\n var emitterDerivesLeading = emitterPaintsProduct && (emitterMovesFontSize || emitterMovesLeading) && (!!getTransitionForKey(emittedResolved, \"fontSize\") || !!getTransitionForKey(emittedResolved, \"lineHeight\"));\n for (var key in nextStyle) {\n var rawVal = nextStyle[key];\n var val = resolveDynamicValue(rawVal, isDark);\n if (val === void 0) continue;\n if (emitterDerivesLeading && (key === \"fontSize\" || key === \"lineHeight\")) {\n continue;\n }\n if (textMetricStyleKey[key] && !(key === \"fontSize\" ? emitterMovesFontSize : emitterMovesLeading)) {\n continue;\n }\n if (key === \"transform\" && Array.isArray(val)) {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = val[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var transform = _step.value;\n var _animatedTranforms_current_index;\n if (!transform) continue;\n var index = transformCount++;\n var tkey = Object.keys(transform)[0];\n var currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];\n if (!currentTransform) animatedShapeChanged = true;\n animatedTranforms.current[index] = {\n [tkey]: update(tkey, currentTransform, transform[tkey])\n };\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n } else if (animatedStyleKey[key] != null || costlyToAnimateStyleKey[key] || jsDriverStyleKey[key]) {\n if (jsDriverStyleKey[key] && typeof val !== \"number\") continue;\n if (colorStyleKey[key] && !isAnimatableColor(val)) continue;\n if (!animateStyles.current[key]) animatedShapeChanged = true;\n animateStyles.current[key] = update(key, animatedValueFor(key), val);\n seenAnimateKeys.add(key);\n }\n }\n if (emitterDerivesLeading) {\n if (emitterMovesFontSize) {\n if (!animateStyles.current.fontSize) animatedShapeChanged = true;\n animateStyles.current.fontSize = update(\"fontSize\", animatedValueFor(\"fontSize\"), nextStyle.fontSize);\n seenAnimateKeys.add(\"fontSize\");\n }\n if (emitterMovesLeading) {\n if (!leadingRatioValue.current) animatedShapeChanged = true;\n leadingRatioValue.current = update(\"lineHeight\", leadingRatioValueFrom(), emittedRatio);\n }\n }\n if (emitterDerivesLeading !== paintsDerivedLeading.current) {\n animatedShapeChanged = true;\n }\n for (var key1 in animateStyles.current) {\n if (!seenAnimateKeys.has(key1)) {\n delete animateStyles.current[key1];\n animatedShapeChanged = true;\n }\n }\n if (animatedTranforms.current.length > transformCount) {\n animatedTranforms.current = animatedTranforms.current.slice(0, transformCount);\n animatedShapeChanged = true;\n }\n paintedTextRef.current = {\n fontSize: nextStyle.fontSize,\n lineHeight: nextStyle.lineHeight,\n ratio: emittedRatio\n };\n runners.forEach(function(r) {\n return r();\n });\n if (animatedShapeChanged && stateRef.current.nextState) {\n var _stateRef_current_baseSetStateShallow, _stateRef_current;\n (_stateRef_current_baseSetStateShallow = (_stateRef_current = stateRef.current).baseSetStateShallow) === null || _stateRef_current_baseSetStateShallow === void 0 ? void 0 : _stateRef_current_baseSetStateShallow.call(_stateRef_current, stateRef.current.nextState);\n }\n function update(key2, animated, valIn) {\n var isColor = colorStyleKey[key2];\n var [numVal, type] = isColor ? [\n 0,\n void 0\n ] : getValue(valIn);\n var animateToValue = numVal;\n var value = animated || new Animated.Value(numVal);\n var curInterpolation = animationsState.current.get(value);\n if (type) {\n var _curInterpolation_current;\n animationsState.current.set(value, {\n interpolation: value.interpolate(getInterpolated((_curInterpolation_current = curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current) !== null && _curInterpolation_current !== void 0 ? _curInterpolation_current : value[\"_value\"], numVal, type)),\n current: numVal\n });\n }\n if (isColor) {\n animateToValue = (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1;\n animationsState.current.set(value, {\n current: valIn,\n interpolation: value.interpolate(getColorInterpolated(curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current, valIn, animateToValue)),\n animateToValue: (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1\n });\n }\n var animationConfig = getAnimationConfig(key2, animations, emittedTransition !== null && emittedTransition !== void 0 ? emittedTransition : effectiveTransition, \"default\");\n runners.push(function() {\n value.stopAnimation();\n var { type: type2, delay, ...config } = animationConfig;\n var anim = Animated[type2 || \"spring\"](value, {\n toValue: animateToValue,\n ...config,\n useNativeDriver: useNativeDriverForNode\n });\n (delay ? Animated.sequence([\n Animated.delay(delay),\n anim\n ]) : anim).start();\n });\n return value;\n }\n };\n useStyleEmitter === null || useStyleEmitter === void 0 ? void 0 : useStyleEmitter(onEmittedStyle);\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] === \"verbose\") {\n console.info(`Animated`, {\n response: res,\n inputStyle: style,\n isExiting\n });\n }\n }\n return res;\n }\n };\n}\nfunction getColorInterpolated(currentColor, nextColor, animateToValue) {\n var inputRange = [\n 0,\n 1\n ];\n var outputRange = [\n currentColor ? currentColor : nextColor,\n nextColor\n ];\n if (animateToValue === 0) {\n outputRange.reverse();\n }\n return {\n inputRange,\n outputRange\n };\n}\nfunction getInterpolated(current, next) {\n var postfix = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : \"deg\";\n if (next === current) {\n current = next - 1e-9;\n }\n var inputRange = [\n current,\n next\n ];\n var outputRange = [\n `${current}${postfix}`,\n `${next}${postfix}`\n ];\n if (next < current) {\n inputRange.reverse();\n outputRange.reverse();\n }\n return {\n inputRange,\n outputRange\n };\n}\nfunction entryToRN(entry) {\n var extra = entry.timing.kind === \"spring\" ? entry.timing.extra : void 0;\n if (entry.timing.kind === \"spring\") {\n return {\n type: \"spring\",\n stiffness: entry.timing.stiffness,\n damping: entry.timing.damping,\n mass: entry.timing.mass,\n ...typeof (extra === null || extra === void 0 ? void 0 : extra.velocity) === \"number\" ? {\n velocity: extra.velocity\n } : null,\n ...typeof (extra === null || extra === void 0 ? void 0 : extra.overshootClamping) === \"boolean\" ? {\n overshootClamping: extra.overshootClamping\n } : null,\n ...entry.delayMs ? {\n delay: entry.delayMs\n } : null\n };\n }\n var bezier = easingToBezier(entry.timing.easing);\n return {\n type: \"timing\",\n duration: entry.timing.durationMs,\n // `linear()` and `steps()` have no bezier equivalent; RN's default easing\n // is the honest answer rather than a curve we made up\n ...bezier ? {\n easing: Easing.bezier(bezier[0], bezier[1], bezier[2], bezier[3])\n } : null,\n ...entry.delayMs ? {\n delay: entry.delayMs\n } : null\n };\n}\nvar snapConfig = {\n type: \"timing\",\n duration: 0\n};\nfunction getAnimationConfig(key, animations, transition) {\n var animationState = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : \"default\";\n var resolved = forAnimationState(resolveTransition(transition, {\n animations\n }), animationState);\n var entry = getTransitionForKey(resolved, key);\n return entry ? entryToRN(entry) : snapConfig;\n}\nfunction getValue(input) {\n var isColor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n if (typeof input !== \"string\") {\n return [\n input\n ];\n }\n var _input_match;\n var [_, number, after] = (_input_match = input.match(/(-?(?:\\d+\\.?\\d*|\\.\\d+))(deg|%|px)?/)) !== null && _input_match !== void 0 ? _input_match : [];\n return [\n +number,\n after\n ];\n}\nexport {\n AnimatedText,\n AnimatedView,\n createAnimations,\n useAnimatedNumber,\n useAnimatedNumberReaction,\n useAnimatedNumberStyle,\n useAnimatedNumbersStyle\n};\n//# sourceMappingURL=createAnimations.native.js.map\n"],"mappings":";;;;;;;;;AAOA,IAAI,WAAW,CAAC,SAAS,OAAO,WAAW,eAAe,CAAC,CAAC,OAAO;AACnE,IAAI,sBAAsB,SAAS,OAAO,QAAQ;CAChD,IAAI,SAAS,OAAO,UAAU,YAAY,aAAa,OAAO;EAC5D,IAAI,eAAe,SAAS,MAAM,QAAQ,OAAO,MAAM,QAAQ;EAC/D,OAAO;CACT;CACA,OAAO;AACT;AACA,IAAI,mBAAmB;CACrB,WAAW;CACX,SAAS;AACX;AACA,IAAI,gBAAgB;CAClB,iBAAiB;CACjB,OAAO;CACP,aAAa;CACb,iBAAiB;CACjB,kBAAkB;CAClB,gBAAgB;CAChB,mBAAmB;AAC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AAU,EACjB,OAAO,MAAM,QACf,IAAI;EACN;CACF;CACA,IAAI,SAAS,eAAe,MAAM,OAAO,MAAM;CAC/C,OAAO;EACL,MAAM;EACN,UAAU,MAAM,OAAO;EAGvB,GAAG,SAAS,EACV,QAAQ,OAAO,OAAO,OAAO,IAAI,OAAO,IAAI,OAAO,IAAI,OAAO,EAAE,EAClE,IAAI;EACJ,GAAG,MAAM,UAAU,EACjB,OAAO,MAAM,QACf,IAAI;CACN;AACF;AACA,IAAI,aAAa;CACf,MAAM;CACN,UAAU;AACZ;AACA,SAAS,mBAAmB,KAAK,YAAY,YAAY;CACvD,IAAI,iBAAiB,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CACtF,IAAI,WAAW,kBAAkB,kBAAkB,YAAY,EAC7D,WACF,CAAC,GAAG,cAAc;CAClB,IAAI,QAAQ,oBAAoB,UAAU,GAAG;CAC7C,OAAO,QAAQ,UAAU,KAAK,IAAI;AACpC;AACA,SAAS,SAAS,OAAO;CACvB,IAAI,UAAU,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAC/E,IAAI,OAAO,UAAU,UAAU;EAC7B,OAAO,CACL,KACF;CACF;CACA,IAAI;CACJ,IAAI,CAAC,GAAG,QAAQ,UAAU,eAAe,MAAM,MAAM,oCAAoC,OAAO,QAAQ,iBAAiB,KAAK,IAAI,eAAe,CAAC;CAClJ,OAAO,CACL,CAAC,QACD,KACF;AACF"}
|
|
1
|
+
{"version":3,"file":"createAnimations.native.js","names":[],"sources":["esm/createAnimations.native.js"],"sourcesContent":["import { easingToBezier, forAnimationState, getTransitionForKey, resolveTransition } from \"@tamagui/animation-helpers\";\nimport { isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { ResetPresence, usePresence } from \"@tamagui/use-presence\";\nimport { useEvent } from \"@tamagui/web\";\nimport { useThemeWithState } from \"@tamagui/web/internal-runtime\";\nimport React from \"react\";\nimport { Animated, Easing, processColor, TextInput } from \"react-native\";\nvar isFabric = !isWeb && typeof global !== \"undefined\" && !!global.__nativeFabricUIManager;\nvar resolveDynamicValue = function resolveDynamicValue2(value, isDark) {\n if (value && typeof value === \"object\" && \"dynamic\" in value) {\n var dynamicValue = isDark ? value.dynamic.dark : value.dynamic.light;\n return dynamicValue;\n }\n return value;\n};\nvar animatedStyleKey = {\n transform: true,\n opacity: true\n};\nvar colorStyleKey = {\n backgroundColor: true,\n color: true,\n borderColor: true,\n borderLeftColor: true,\n borderRightColor: true,\n borderTopColor: true,\n borderBottomColor: true\n};\nvar layoutStyleKey = {\n height: true,\n width: true,\n minHeight: true,\n maxHeight: true,\n minWidth: true,\n maxWidth: true\n};\nvar textMetricStyleKey = {\n fontSize: true,\n lineHeight: true\n};\nvar jsDriverStyleKey = {\n ...layoutStyleKey,\n ...textMetricStyleKey\n};\nfunction hasAnimatedLayoutKey(style, isDark, resolved) {\n for (var key in layoutStyleKey) {\n if (!getTransitionForKey(resolved, key)) continue;\n if (typeof resolveDynamicValue(style[key], isDark) === \"number\") return true;\n }\n return false;\n}\nvar getLeadingRatio = function getLeadingRatio2(metrics) {\n var ratio = metrics === null || metrics === void 0 ? void 0 : metrics.lineHeight;\n return typeof ratio === \"number\" && Number.isFinite(ratio) && ratio >= 0 ? ratio : void 0;\n};\nvar paintsLeadingProduct = function paintsLeadingProduct2(style, ratio) {\n return ratio !== void 0 && typeof style.fontSize === \"number\" && typeof style.lineHeight === \"number\";\n};\nvar inheritedFontSizeNode = function inheritedFontSizeNode2(style, ratio, inheritedText) {\n return ratio !== void 0 && typeof style.fontSize !== \"number\" && (inheritedText === null || inheritedText === void 0 ? void 0 : inheritedText.driver) === \"react-native\" ? inheritedText.fontSize : void 0;\n};\nfunction isAnimatableColor(value) {\n return typeof value === \"string\" && processColor(value) != null;\n}\nvar costlyToAnimateStyleKey = {\n borderRadius: true,\n borderTopLeftRadius: true,\n borderTopRightRadius: true,\n borderBottomLeftRadius: true,\n borderBottomRightRadius: true,\n borderWidth: true,\n borderLeftWidth: true,\n borderRightWidth: true,\n borderTopWidth: true,\n borderBottomWidth: true,\n ...colorStyleKey\n};\nvar AnimatedView = Animated.View;\nvar AnimatedText = Animated.Text;\nvar animatedTextInput;\nfunction useAnimatedNumber(initial) {\n var state = React.useRef(null);\n if (!state.current) {\n state.current = {\n composite: null,\n val: new Animated.Value(initial),\n strategy: {\n type: \"spring\"\n }\n };\n }\n return {\n getInstance() {\n return state.current.val;\n },\n getValue() {\n return state.current.val[\"_value\"];\n },\n stop() {\n var _state_current_composite;\n (_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 ? void 0 : _state_current_composite.stop();\n state.current.composite = null;\n },\n setValue(next) {\n var { type, ...config } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {\n type: \"spring\"\n }, onFinish = arguments.length > 2 ? arguments[2] : void 0;\n var val = state.current.val;\n var handleFinish = onFinish ? function(param) {\n var { finished } = param;\n return finished ? onFinish() : null;\n } : void 0;\n if (type === \"direct\") {\n var _state_current_composite;\n (_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 ? void 0 : _state_current_composite.stop();\n state.current.composite = null;\n val.setValue(next);\n onFinish === null || onFinish === void 0 ? void 0 : onFinish();\n } else if (type === \"spring\") {\n var _state_current_composite1;\n (_state_current_composite1 = state.current.composite) === null || _state_current_composite1 === void 0 ? void 0 : _state_current_composite1.stop();\n var composite = Animated.spring(val, {\n ...config,\n toValue: next,\n useNativeDriver: isFabric\n });\n composite.start(handleFinish);\n state.current.composite = composite;\n } else {\n var _state_current_composite2;\n (_state_current_composite2 = state.current.composite) === null || _state_current_composite2 === void 0 ? void 0 : _state_current_composite2.stop();\n var composite1 = Animated.timing(val, {\n ...config,\n toValue: next,\n useNativeDriver: isFabric\n });\n composite1.start(handleFinish);\n state.current.composite = composite1;\n }\n }\n };\n}\nvar useAnimatedNumberReaction = function useAnimatedNumberReaction2(param, onValue) {\n var { value } = param;\n var onChange = useEvent(function(current) {\n onValue(current.value);\n });\n React.useEffect(function() {\n var id = value.getInstance().addListener(onChange);\n return function() {\n value.getInstance().removeListener(id);\n };\n }, [\n value,\n onChange\n ]);\n};\nvar useAnimatedNumberStyle = function useAnimatedNumberStyle2(value, getStyle) {\n var instance = value.getInstance();\n var animatedStyle = getStyle(instance);\n var usesAnimatedNode = hasAnimatedNode(animatedStyle);\n var [current, setCurrent] = React.useState(value.getValue());\n React.useEffect(function() {\n if (usesAnimatedNode) return;\n var id = instance.addListener(function(param) {\n var { value: next } = param;\n setCurrent(next);\n });\n return function() {\n instance.removeListener(id);\n };\n }, [\n instance,\n usesAnimatedNode\n ]);\n return usesAnimatedNode ? animatedStyle : getStyle(current);\n};\nfunction hasAnimatedNode(value) {\n if (!value || typeof value !== \"object\") return false;\n if (typeof value.__getValue === \"function\") return true;\n if (Array.isArray(value)) return value.some(hasAnimatedNode);\n return Object.values(value).some(hasAnimatedNode);\n}\nvar useAnimatedNumbersStyle = function useAnimatedNumbersStyle2(vals, getStyle) {\n return getStyle(...vals.map(function(v) {\n return v.getInstance();\n }));\n};\nfunction createAnimations(animations, options) {\n var _ref;\n var nativeDriver = (_ref = options === null || options === void 0 ? void 0 : options.useNativeDriver) !== null && _ref !== void 0 ? _ref : isFabric;\n return {\n inputStyle: \"value\",\n outputStyle: \"inline\",\n avoidReRenders: true,\n animations,\n needsCustomComponent: true,\n View: AnimatedView,\n Text: AnimatedText,\n useAnimatedNumber,\n useAnimatedNumberReaction,\n useAnimatedNumberStyle,\n useAnimatedNumbersStyle,\n usePresence,\n ResetPresence,\n // binds a descendant that has no font size of its own to the ancestor's\n // animated one. no clock here: the font size node is the ancestor's, and a\n // ratio leading is a multiplication of it, so both land on the same frame.\n useTextMetrics: function useTextMetrics(param) {\n var { inheritedText, lineHeight } = param;\n var node = (inheritedText === null || inheritedText === void 0 ? void 0 : inheritedText.driver) === \"react-native\" ? inheritedText.fontSize : null;\n var ratio = typeof lineHeight === \"number\" ? lineHeight : null;\n var style = React.useMemo(function() {\n return node ? ratio === null ? {\n fontSize: node\n } : {\n fontSize: node,\n lineHeight: Animated.multiply(node, ratio)\n } : null;\n }, [\n node,\n ratio\n ]);\n var textChannel = inheritedText !== null && inheritedText !== void 0 ? inheritedText : null;\n if (!style) return {\n style: null,\n textChannel\n };\n animatedTextInput || (animatedTextInput = Animated.createAnimatedComponent(TextInput));\n return {\n style,\n textChannel,\n Text: AnimatedText,\n TextInput: animatedTextInput\n };\n },\n useAnimations: function useAnimations(param) {\n var { props, onTransition, style, componentState, presence, stateRef, styleState, useStyleEmitter, inheritedText } = param;\n var _ref2;\n var _themeState_name;\n var isDisabled = isWeb && componentState.unmounted === true;\n var isExiting = (presence === null || presence === void 0 ? void 0 : presence[0]) === false;\n var sendExitComplete = presence === null || presence === void 0 ? void 0 : presence[1];\n var onTransitionRef = React.useRef(onTransition);\n onTransitionRef.current = onTransition;\n var emit = function emit2(phase, cause, finished) {\n var _onTransitionRef_current;\n (_onTransitionRef_current = onTransitionRef.current) === null || _onTransitionRef_current === void 0 ? void 0 : _onTransitionRef_current.call(onTransitionRef, phase === \"end\" ? {\n phase,\n cause,\n finished\n } : {\n phase,\n cause\n });\n };\n var effectiveTransition = (_ref2 = styleState === null || styleState === void 0 ? void 0 : styleState.effectiveTransition) !== null && _ref2 !== void 0 ? _ref2 : props.transition;\n var [, themeState] = useThemeWithState({});\n var isDark = (themeState === null || themeState === void 0 ? void 0 : themeState.scheme) === \"dark\" || (themeState === null || themeState === void 0 ? void 0 : (_themeState_name = themeState.name) === null || _themeState_name === void 0 ? void 0 : _themeState_name.startsWith(\"dark\"));\n var animateStyles = React.useRef({});\n var leadingRatioValue = React.useRef(null);\n var leadingRatioRef = React.useRef(void 0);\n var paintsDerivedLeading = React.useRef(false);\n var textChannelRef = React.useRef(null);\n leadingRatioRef.current = getLeadingRatio(styleState === null || styleState === void 0 ? void 0 : styleState.nativeTextMetrics);\n var paintedTextRef = React.useRef({});\n var movesTextValue = function movesTextValue2(key, target) {\n if (typeof target !== \"number\") return false;\n var node = animateStyles.current[key];\n var last = node ? node[\"_value\"] : paintedTextRef.current[key];\n return last !== void 0 && last !== target;\n };\n var movesLeadingRatio = function movesLeadingRatio2(ratio) {\n if (ratio === void 0) return false;\n var node = leadingRatioValue.current;\n var last = node ? node[\"_value\"] : paintedTextRef.current.ratio;\n return last !== void 0 && last !== ratio;\n };\n var fontSizeNode = React.useRef(null);\n var animatedValueFor = function animatedValueFor2(key) {\n var painted = animateStyles.current[key];\n if (painted) return painted;\n if (key === \"fontSize\" && fontSizeNode.current) return fontSizeNode.current;\n if (textMetricStyleKey[key]) return new Animated.Value(paintedTextRef.current[key]);\n return void 0;\n };\n var leadingRatioValueFrom = function leadingRatioValueFrom2() {\n var _leadingRatioValue_current;\n return (_leadingRatioValue_current = leadingRatioValue.current) !== null && _leadingRatioValue_current !== void 0 ? _leadingRatioValue_current : new Animated.Value(paintedTextRef.current.ratio);\n };\n var animatedTranforms = React.useRef([]);\n var animationsState = React.useRef(/* @__PURE__ */ new WeakMap());\n var pseudoActiveRef = React.useRef(false);\n var exitCycleIdRef = React.useRef(0);\n var exitCompletedRef = React.useRef(false);\n var wasExitingRef = React.useRef(false);\n var enterStartedRef = React.useRef(false);\n var exitStartedRef = React.useRef(false);\n var updateInFlightRef = React.useRef(false);\n var updateCycleIdRef = React.useRef(0);\n var prevStyleSigRef = React.useRef(null);\n var justStartedExiting = isExiting && !wasExitingRef.current;\n var justStoppedExiting = !isExiting && wasExitingRef.current;\n if (justStartedExiting) {\n exitCycleIdRef.current++;\n exitCompletedRef.current = false;\n }\n if (justStoppedExiting) {\n exitCycleIdRef.current++;\n }\n var isEntering = !!componentState.unmounted;\n var wasEnteringRef = React.useRef(isEntering);\n var justFinishedEntering = wasEnteringRef.current && !isEntering;\n React.useEffect(function() {\n wasEnteringRef.current = isEntering;\n });\n var args = [\n JSON.stringify(style),\n JSON.stringify(effectiveTransition),\n componentState,\n isExiting,\n !!onTransition,\n isDark,\n justFinishedEntering,\n leadingRatioRef.current,\n inheritedText\n ];\n var res = React.useMemo(function() {\n var _textChannelRef_current;\n var runners = [];\n var completions = [];\n var animationState = isExiting ? \"exit\" : isEntering || justFinishedEntering ? \"enter\" : \"default\";\n var resolved = forAnimationState(resolveTransition(effectiveTransition, {\n animations\n }), animationState);\n var nonAnimatedStyle = {};\n var paintedRatio = leadingRatioRef.current;\n var paintsProduct = paintsLeadingProduct(style, paintedRatio);\n var movesFontSize = movesTextValue(\"fontSize\", style.fontSize);\n var movesLeading = paintsProduct ? movesLeadingRatio(paintedRatio) : movesTextValue(\"lineHeight\", style.lineHeight);\n if (!isExiting && !isDisabled && !pseudoActiveRef.current) {\n if (!movesFontSize) delete animateStyles.current.fontSize;\n if (!movesLeading) delete animateStyles.current.lineHeight;\n }\n if (isDisabled || typeof style.fontSize !== \"number\" || !getTransitionForKey(resolved, \"fontSize\")) {\n fontSizeNode.current = null;\n } else if (!fontSizeNode.current) {\n fontSizeNode.current = new Animated.Value(style.fontSize);\n }\n var seenAnimateKeys = /* @__PURE__ */ new Set();\n var sawTransform = false;\n var transformCount = 0;\n var derivesLeading = !isDisabled && paintsProduct && (movesFontSize || movesLeading) && (!!getTransitionForKey(resolved, \"fontSize\") || !!getTransitionForKey(resolved, \"lineHeight\"));\n var inheritedFontSize = isDisabled ? void 0 : inheritedFontSizeNode(style, paintedRatio, inheritedText);\n var useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(style, isDark, resolved) && !movesFontSize && !movesLeading && !inheritedFontSize && !Object.keys(animateStyles.current).some(function(key2) {\n return jsDriverStyleKey[key2];\n });\n for (var key in style) {\n var rawVal = style[key];\n var val = resolveDynamicValue(rawVal, isDark);\n if (val === void 0) continue;\n if (isDisabled) {\n continue;\n }\n if ((derivesLeading || inheritedFontSize) && (key === \"fontSize\" || key === \"lineHeight\")) {\n if (key === \"fontSize\" && derivesLeading && !movesFontSize) {\n nonAnimatedStyle[key] = val;\n }\n continue;\n }\n if (textMetricStyleKey[key] && !(key === \"fontSize\" ? movesFontSize : movesLeading)) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key] && !jsDriverStyleKey[key]) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (key !== \"transform\" && !getTransitionForKey(resolved, key)) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (jsDriverStyleKey[key] && typeof val !== \"number\") {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (colorStyleKey[key] && !isAnimatableColor(val)) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (key !== \"transform\") {\n animateStyles.current[key] = update(key, animatedValueFor(key), val);\n seenAnimateKeys.add(key);\n continue;\n }\n if (!val) continue;\n if (typeof val === \"string\") {\n console.warn(`Warning: Tamagui can't animate string transforms yet!`);\n continue;\n }\n sawTransform = true;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = val[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var transform = _step.value;\n var _animatedTranforms_current_index;\n if (!transform) continue;\n var index = transformCount++;\n var tkey = Object.keys(transform)[0];\n var currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];\n animatedTranforms.current[index] = {\n [tkey]: update(tkey, currentTransform, transform[tkey])\n };\n animatedTranforms.current = [\n ...animatedTranforms.current\n ];\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n var ratioFactor = function ratioFactor2() {\n if (!movesLeading) {\n leadingRatioValue.current = null;\n return paintedRatio;\n }\n leadingRatioValue.current = update(\"lineHeight\", leadingRatioValueFrom(), paintedRatio);\n return leadingRatioValue.current;\n };\n var derivedLeading;\n if (derivesLeading) {\n var fontSizeFactor = style.fontSize;\n if (movesFontSize) {\n fontSizeFactor = update(\"fontSize\", animatedValueFor(\"fontSize\"), style.fontSize);\n animateStyles.current.fontSize = fontSizeFactor;\n seenAnimateKeys.add(\"fontSize\");\n }\n derivedLeading = Animated.multiply(fontSizeFactor, ratioFactor());\n } else if (inheritedFontSize) {\n derivedLeading = Animated.multiply(inheritedFontSize, ratioFactor());\n } else if (!isDisabled) {\n leadingRatioValue.current = null;\n }\n paintsDerivedLeading.current = !!derivedLeading;\n var ownFontSizeNode = fontSizeNode.current;\n var textChannel = ownFontSizeNode ? ((_textChannelRef_current = textChannelRef.current) === null || _textChannelRef_current === void 0 ? void 0 : _textChannelRef_current.fontSize) === ownFontSizeNode ? textChannelRef.current : {\n fontSize: ownFontSizeNode,\n driver: \"react-native\"\n } : typeof style.fontSize === \"number\" ? null : inheritedText !== null && inheritedText !== void 0 ? inheritedText : null;\n textChannelRef.current = textChannel;\n if (!isExiting && !isDisabled && !pseudoActiveRef.current) {\n for (var k in animateStyles.current) {\n if (!seenAnimateKeys.has(k)) delete animateStyles.current[k];\n }\n if (!sawTransform) {\n if (animatedTranforms.current.length) animatedTranforms.current = [];\n } else if (animatedTranforms.current.length > transformCount) {\n animatedTranforms.current = animatedTranforms.current.slice(0, transformCount);\n }\n }\n var animatedTransformStyle = animatedTranforms.current.length > 0 ? {\n transform: animatedTranforms.current.map(function(r) {\n var _animationsState_current_get;\n var key2 = Object.keys(r)[0];\n var val2 = ((_animationsState_current_get = animationsState.current.get(r[key2])) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || r[key2];\n return {\n [key2]: val2\n };\n })\n } : {};\n var animatedStyle = {\n ...Object.fromEntries(Object.entries(animateStyles.current).map(function(param2) {\n var [k2, v] = param2;\n var _animationsState_current_get;\n return [\n k2,\n ((_animationsState_current_get = animationsState.current.get(v)) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || v\n ];\n })),\n ...derivedLeading ? {\n lineHeight: derivedLeading\n } : null,\n ...animatedTransformStyle\n };\n if (!isDisabled) {\n paintedTextRef.current = {\n fontSize: style.fontSize,\n lineHeight: style.lineHeight,\n ratio: paintedRatio\n };\n }\n return {\n runners,\n completions,\n textChannel,\n style: [\n nonAnimatedStyle,\n animatedStyle\n ]\n };\n function update(key2, animated, valIn) {\n var isColorStyleKey = colorStyleKey[key2];\n var [val2, type] = isColorStyleKey ? [\n 0,\n void 0\n ] : getValue(valIn);\n var animateToValue = val2;\n var value = animated || new Animated.Value(val2);\n var curInterpolation = animationsState.current.get(value);\n var interpolateArgs;\n if (type) {\n var _ref3;\n interpolateArgs = getInterpolated((_ref3 = curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current) !== null && _ref3 !== void 0 ? _ref3 : value[\"_value\"], val2, type);\n animationsState.current.set(value, {\n interpolation: value.interpolate(interpolateArgs),\n current: val2\n });\n }\n if (isColorStyleKey) {\n animateToValue = (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1;\n interpolateArgs = getColorInterpolated(\n curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current,\n // valIn is the next color\n valIn,\n animateToValue\n );\n animationsState.current.set(value, {\n current: valIn,\n interpolation: value.interpolate(interpolateArgs),\n animateToValue: (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1\n });\n }\n if (value) {\n var animationConfig = getAnimationConfig(key2, animations, effectiveTransition, animationState);\n var resolve;\n var promise = new Promise(function(res2) {\n resolve = res2;\n });\n completions.push(promise);\n runners.push(function() {\n value.stopAnimation();\n var { type: type2, delay, ...config } = animationConfig;\n var animation = Animated[type2 || \"spring\"](value, {\n toValue: animateToValue,\n ...config,\n useNativeDriver: useNativeDriverForNode\n });\n var animation2 = delay ? Animated.sequence([\n Animated.delay(delay),\n animation\n ]) : animation;\n animation2.start(function(param2) {\n var { finished } = param2;\n if (finished || isExiting) {\n resolve();\n }\n });\n });\n }\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] === \"verbose\") {\n console.info(\" \\u{1F4A0} animate\", key2, `from (${value[\"_value\"]}) to`, valIn, `(${val2})`, \"type\", type, \"interpolate\", interpolateArgs);\n }\n }\n return value;\n }\n }, args);\n React.useEffect(function() {\n wasExitingRef.current = isExiting;\n });\n useIsomorphicLayoutEffect(function() {\n if (justStoppedExiting && exitStartedRef.current && !exitCompletedRef.current) {\n exitStartedRef.current = false;\n emit(\"end\", \"exit\", false);\n }\n }, [\n justStoppedExiting\n ]);\n useIsomorphicLayoutEffect(function() {\n res.runners.forEach(function(r) {\n return r();\n });\n var cycleId = exitCycleIdRef.current;\n var cause = isExiting ? \"exit\" : isEntering || justFinishedEntering ? \"enter\" : \"update\";\n if (cause === \"exit\") {\n if (enterStartedRef.current) {\n enterStartedRef.current = false;\n emit(\"end\", \"enter\", false);\n }\n if (updateInFlightRef.current) {\n updateInFlightRef.current = false;\n updateCycleIdRef.current++;\n emit(\"end\", \"update\", false);\n }\n }\n if (cause === \"update\") {\n var sig = args[0];\n if (prevStyleSigRef.current === null || prevStyleSigRef.current === sig) {\n prevStyleSigRef.current = sig;\n return;\n }\n prevStyleSigRef.current = sig;\n if (res.completions.length === 0) return;\n if (updateInFlightRef.current) {\n emit(\"end\", \"update\", false);\n }\n updateInFlightRef.current = true;\n var uid = ++updateCycleIdRef.current;\n emit(\"start\", \"update\");\n Promise.all(res.completions).then(function() {\n if (uid !== updateCycleIdRef.current) return;\n updateInFlightRef.current = false;\n emit(\"end\", \"update\", true);\n });\n return;\n }\n prevStyleSigRef.current = args[0];\n if (res.completions.length === 0) {\n emit(\"start\", cause);\n emit(\"end\", cause, true);\n if (isExiting && !exitCompletedRef.current) {\n exitCompletedRef.current = true;\n sendExitComplete === null || sendExitComplete === void 0 ? void 0 : sendExitComplete();\n }\n return;\n }\n if (cause === \"enter\" && !enterStartedRef.current) {\n enterStartedRef.current = true;\n emit(\"start\", \"enter\");\n }\n if (cause === \"exit\" && !exitStartedRef.current) {\n exitStartedRef.current = true;\n emit(\"start\", \"exit\");\n }\n Promise.all(res.completions).then(function() {\n if (isExiting && cycleId !== exitCycleIdRef.current) return;\n if (isExiting && exitCompletedRef.current) return;\n if (isExiting) {\n if (exitStartedRef.current) {\n exitStartedRef.current = false;\n emit(\"end\", \"exit\", true);\n }\n exitCompletedRef.current = true;\n sendExitComplete === null || sendExitComplete === void 0 ? void 0 : sendExitComplete();\n } else if (enterStartedRef.current) {\n enterStartedRef.current = false;\n emit(\"end\", \"enter\", true);\n }\n });\n }, args);\n var onEmittedStyle = function onEmittedStyle2(nextStyle, emittedTransition, pseudoActive, nextMetrics) {\n pseudoActiveRef.current = pseudoActive === true;\n var runners = [];\n var seenAnimateKeys = /* @__PURE__ */ new Set();\n var transformCount = 0;\n var animatedShapeChanged = false;\n var emittedResolved = forAnimationState(resolveTransition(emittedTransition !== null && emittedTransition !== void 0 ? emittedTransition : effectiveTransition, {\n animations\n }), \"default\");\n var emittedRatio = getLeadingRatio(nextMetrics);\n var emitterPaintsProduct = paintsLeadingProduct(nextStyle, emittedRatio);\n var emitterMovesFontSize = movesTextValue(\"fontSize\", nextStyle.fontSize);\n var emitterMovesLeading = emitterPaintsProduct ? movesLeadingRatio(emittedRatio) : movesTextValue(\"lineHeight\", nextStyle.lineHeight);\n var useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(nextStyle, isDark, emittedResolved) && !emitterMovesFontSize && !emitterMovesLeading && !inheritedFontSizeNode(nextStyle, emittedRatio, inheritedText) && !Object.keys(animateStyles.current).some(function(key2) {\n return jsDriverStyleKey[key2];\n });\n var emitterDerivesLeading = emitterPaintsProduct && (emitterMovesFontSize || emitterMovesLeading) && (!!getTransitionForKey(emittedResolved, \"fontSize\") || !!getTransitionForKey(emittedResolved, \"lineHeight\"));\n for (var key in nextStyle) {\n var rawVal = nextStyle[key];\n var val = resolveDynamicValue(rawVal, isDark);\n if (val === void 0) continue;\n if (emitterDerivesLeading && (key === \"fontSize\" || key === \"lineHeight\")) {\n continue;\n }\n if (textMetricStyleKey[key] && !(key === \"fontSize\" ? emitterMovesFontSize : emitterMovesLeading)) {\n continue;\n }\n if (key === \"transform\" && Array.isArray(val)) {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = val[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var transform = _step.value;\n var _animatedTranforms_current_index;\n if (!transform) continue;\n var index = transformCount++;\n var tkey = Object.keys(transform)[0];\n var currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];\n if (!currentTransform) animatedShapeChanged = true;\n animatedTranforms.current[index] = {\n [tkey]: update(tkey, currentTransform, transform[tkey])\n };\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n } else if (animatedStyleKey[key] != null || costlyToAnimateStyleKey[key] || jsDriverStyleKey[key]) {\n if (jsDriverStyleKey[key] && typeof val !== \"number\") continue;\n if (colorStyleKey[key] && !isAnimatableColor(val)) continue;\n if (!animateStyles.current[key]) animatedShapeChanged = true;\n animateStyles.current[key] = update(key, animatedValueFor(key), val);\n seenAnimateKeys.add(key);\n }\n }\n if (emitterDerivesLeading) {\n if (emitterMovesFontSize) {\n if (!animateStyles.current.fontSize) animatedShapeChanged = true;\n animateStyles.current.fontSize = update(\"fontSize\", animatedValueFor(\"fontSize\"), nextStyle.fontSize);\n seenAnimateKeys.add(\"fontSize\");\n }\n if (emitterMovesLeading) {\n if (!leadingRatioValue.current) animatedShapeChanged = true;\n leadingRatioValue.current = update(\"lineHeight\", leadingRatioValueFrom(), emittedRatio);\n }\n }\n if (emitterDerivesLeading !== paintsDerivedLeading.current) {\n animatedShapeChanged = true;\n }\n for (var key1 in animateStyles.current) {\n if (!seenAnimateKeys.has(key1)) {\n delete animateStyles.current[key1];\n animatedShapeChanged = true;\n }\n }\n if (animatedTranforms.current.length > transformCount) {\n animatedTranforms.current = animatedTranforms.current.slice(0, transformCount);\n animatedShapeChanged = true;\n }\n paintedTextRef.current = {\n fontSize: nextStyle.fontSize,\n lineHeight: nextStyle.lineHeight,\n ratio: emittedRatio\n };\n runners.forEach(function(r) {\n return r();\n });\n if (animatedShapeChanged && stateRef.current.nextState) {\n var _stateRef_current_baseSetStateShallow, _stateRef_current;\n (_stateRef_current_baseSetStateShallow = (_stateRef_current = stateRef.current).baseSetStateShallow) === null || _stateRef_current_baseSetStateShallow === void 0 ? void 0 : _stateRef_current_baseSetStateShallow.call(_stateRef_current, stateRef.current.nextState);\n }\n function update(key2, animated, valIn) {\n var isColor = colorStyleKey[key2];\n var [numVal, type] = isColor ? [\n 0,\n void 0\n ] : getValue(valIn);\n var animateToValue = numVal;\n var value = animated || new Animated.Value(numVal);\n var curInterpolation = animationsState.current.get(value);\n if (type) {\n var _ref3;\n animationsState.current.set(value, {\n interpolation: value.interpolate(getInterpolated((_ref3 = curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current) !== null && _ref3 !== void 0 ? _ref3 : value[\"_value\"], numVal, type)),\n current: numVal\n });\n }\n if (isColor) {\n animateToValue = (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1;\n animationsState.current.set(value, {\n current: valIn,\n interpolation: value.interpolate(getColorInterpolated(curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.current, valIn, animateToValue)),\n animateToValue: (curInterpolation === null || curInterpolation === void 0 ? void 0 : curInterpolation.animateToValue) ? 0 : 1\n });\n }\n var animationConfig = getAnimationConfig(key2, animations, emittedTransition !== null && emittedTransition !== void 0 ? emittedTransition : effectiveTransition, \"default\");\n runners.push(function() {\n value.stopAnimation();\n var { type: type2, delay, ...config } = animationConfig;\n var anim = Animated[type2 || \"spring\"](value, {\n toValue: animateToValue,\n ...config,\n useNativeDriver: useNativeDriverForNode\n });\n (delay ? Animated.sequence([\n Animated.delay(delay),\n anim\n ]) : anim).start();\n });\n return value;\n }\n };\n useStyleEmitter === null || useStyleEmitter === void 0 ? void 0 : useStyleEmitter(onEmittedStyle);\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] === \"verbose\") {\n console.info(`Animated`, {\n response: res,\n inputStyle: style,\n isExiting\n });\n }\n }\n return res;\n }\n };\n}\nfunction getColorInterpolated(currentColor, nextColor, animateToValue) {\n var inputRange = [\n 0,\n 1\n ];\n var outputRange = [\n currentColor ? currentColor : nextColor,\n nextColor\n ];\n if (animateToValue === 0) {\n outputRange.reverse();\n }\n return {\n inputRange,\n outputRange\n };\n}\nfunction getInterpolated(current, next) {\n var postfix = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : \"deg\";\n if (next === current) {\n current = next - 1e-9;\n }\n var inputRange = [\n current,\n next\n ];\n var outputRange = [\n `${current}${postfix}`,\n `${next}${postfix}`\n ];\n if (next < current) {\n inputRange.reverse();\n outputRange.reverse();\n }\n return {\n inputRange,\n outputRange\n };\n}\nfunction entryToRN(entry) {\n var extra = entry.timing.kind === \"spring\" ? entry.timing.extra : void 0;\n if (entry.timing.kind === \"spring\") {\n return {\n type: \"spring\",\n stiffness: entry.timing.stiffness,\n damping: entry.timing.damping,\n mass: entry.timing.mass,\n ...typeof (extra === null || extra === void 0 ? void 0 : extra.velocity) === \"number\" ? {\n velocity: extra.velocity\n } : null,\n ...typeof (extra === null || extra === void 0 ? void 0 : extra.overshootClamping) === \"boolean\" ? {\n overshootClamping: extra.overshootClamping\n } : null,\n ...entry.delayMs ? {\n delay: entry.delayMs\n } : null\n };\n }\n var bezier = easingToBezier(entry.timing.easing);\n return {\n type: \"timing\",\n duration: entry.timing.durationMs,\n // `linear()` and `steps()` have no bezier equivalent; RN's default easing\n // is the honest answer rather than a curve we made up\n ...bezier ? {\n easing: Easing.bezier(bezier[0], bezier[1], bezier[2], bezier[3])\n } : null,\n ...entry.delayMs ? {\n delay: entry.delayMs\n } : null\n };\n}\nvar snapConfig = {\n type: \"timing\",\n duration: 0\n};\nfunction getAnimationConfig(key, animations, transition) {\n var animationState = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : \"default\";\n var resolved = forAnimationState(resolveTransition(transition, {\n animations\n }), animationState);\n var entry = getTransitionForKey(resolved, key);\n return entry ? entryToRN(entry) : snapConfig;\n}\nfunction getValue(input) {\n var isColor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n var _input_match;\n if (typeof input !== \"string\") {\n return [\n input\n ];\n }\n var [_, number, after] = (_input_match = input.match(/(-?(?:\\d+\\.?\\d*|\\.\\d+))(deg|%|px)?/)) !== null && _input_match !== void 0 ? _input_match : [];\n return [\n +number,\n after\n ];\n}\nexport {\n AnimatedText,\n AnimatedView,\n createAnimations,\n useAnimatedNumber,\n useAnimatedNumberReaction,\n useAnimatedNumberStyle,\n useAnimatedNumbersStyle\n};\n//# sourceMappingURL=createAnimations.native.js.map\n"],"mappings":";;;;;;;;;AAOA,IAAI,WAAW,CAAC,SAAS,OAAO,WAAW,eAAe,CAAC,CAAC,OAAO;AACnE,IAAI,sBAAsB,SAAS,qBAAqB,OAAO,QAAQ;CACrE,IAAI,SAAS,OAAO,UAAU,YAAY,aAAa,OAAO;EAC5D,IAAI,eAAe,SAAS,MAAM,QAAQ,OAAO,MAAM,QAAQ;EAC/D,OAAO;CACT;CACA,OAAO;AACT;AACA,IAAI,mBAAmB;CACrB,WAAW;CACX,SAAS;AACX;AACA,IAAI,gBAAgB;CAClB,iBAAiB;CACjB,OAAO;CACP,aAAa;CACb,iBAAiB;CACjB,kBAAkB;CAClB,gBAAgB;CAChB,mBAAmB;AACrB;AACA,IAAI,iBAAiB;CACnB,QAAQ;CACR,OAAO;CACP,WA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AmB,MAAM,kBAC3B,IAAI;GACJ,GAAG,MAAM,UAAU,EACjB,OAAO,MAAM,QACf,IAAI;EACN;CACF;CACA,IAAI,SAAS,eAAe,MAAM,OAAO,MAAM;CAC/C,OAAO;EACL,MAAM;EACN,UAAU,MAAM,OAAO;EAGvB,GAAG,SAAS,EACV,QAAQ,OAAO,OAAO,OAAO,IAAI,OAAO,IAAI,OAAO,IAAI,OAAO,EAAE,EAClE,IAAI;EACJ,GAAG,MAAM,UAAU,EACjB,OAAO,MAAM,QACf,IAAI;CACN;AACF;AACA,IAAI,aAAa;CACf,MAAM;CACN,UAAU;AACZ;AACA,SAAS,mBAAmB,KAAK,YAAY,YAAY;CACvD,IAAI,iBAAiB,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CACtF,IAAI,WAAW,kBAAkB,kBAAkB,YAAY,EAC7D,WACF,CAAC,GAAG,cAAc;CAClB,IAAI,QAAQ,oBAAoB,UAAU,GAAG;CAC7C,OAAO,QAAQ,UAAU,KAAK,IAAI;AACpC;AACA,SAAS,SAAS,OAAO;CACvB,IAAI,UAAU,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAC/E,IAAI;CACJ,IAAI,OAAO,UAAU,UAAU;EAC7B,OAAO,CACL,KACF;CACF;CACA,IAAI,CAAC,GAAG,QAAQ,UAAU,eAAe,MAAM,MAAM,oCAAoC,OAAO,QAAQ,iBAAiB,KAAK,IAAI,eAAe,CAAC;CAClJ,OAAO,CACL,CAAC,QACD,KACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/animations-react-native",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"clean:build": "tamagui-build clean:build"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@tamagui/animation-helpers": "3.0.
|
|
46
|
-
"@tamagui/constants": "3.0.
|
|
47
|
-
"@tamagui/use-presence": "3.0.
|
|
48
|
-
"@tamagui/web": "3.0.
|
|
45
|
+
"@tamagui/animation-helpers": "3.0.8",
|
|
46
|
+
"@tamagui/constants": "3.0.8",
|
|
47
|
+
"@tamagui/use-presence": "3.0.8",
|
|
48
|
+
"@tamagui/web": "3.0.8"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@tamagui/build": "3.0.
|
|
51
|
+
"@tamagui/build": "3.0.8",
|
|
52
52
|
"react": "19.2.3",
|
|
53
53
|
"react-native": "0.87.1"
|
|
54
54
|
},
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"url": "git+https://github.com/tamagui/tamagui.git",
|
|
63
63
|
"directory": "code/core/animations-react-native"
|
|
64
64
|
},
|
|
65
|
-
"releaseSourceCommit": "
|
|
65
|
+
"releaseSourceCommit": "b723356193510591d9ad15877b8937e8e6a31910"
|
|
66
66
|
}
|