@tamagui/animations-react-native 2.4.6 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/createAnimations.cjs +84 -11
- package/dist/cjs/createAnimations.native.js +91 -15
- package/dist/cjs/createAnimations.native.js.map +1 -1
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/polyfill.native.js.map +1 -1
- package/dist/esm/createAnimations.mjs +84 -11
- package/dist/esm/createAnimations.mjs.map +1 -1
- package/dist/esm/createAnimations.native.js +91 -15
- package/dist/esm/createAnimations.native.js.map +1 -1
- package/package.json +12 -7
- package/src/createAnimations.tsx +150 -9
- package/types/createAnimations.d.ts.map +2 -2
|
@@ -69,6 +69,27 @@ const colorStyleKey = {
|
|
|
69
69
|
borderTopColor: true,
|
|
70
70
|
borderBottomColor: true
|
|
71
71
|
};
|
|
72
|
+
const layoutStyleKey = {
|
|
73
|
+
height: true,
|
|
74
|
+
width: true,
|
|
75
|
+
minHeight: true,
|
|
76
|
+
maxHeight: true,
|
|
77
|
+
minWidth: true,
|
|
78
|
+
maxWidth: true
|
|
79
|
+
};
|
|
80
|
+
function hasAnimatedLayoutKey(style, isDark, animateOnly) {
|
|
81
|
+
for (const key in layoutStyleKey) {
|
|
82
|
+
if (animateOnly && !animateOnly.includes(key)) continue;
|
|
83
|
+
if (typeof resolveDynamicValue(style[key], isDark) === "number") return true;
|
|
84
|
+
}
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
function isAnimatableColor(value) {
|
|
88
|
+
if (typeof value !== "string") return false;
|
|
89
|
+
if (value === "") return false;
|
|
90
|
+
if (value.includes("var(") || value.includes("calc(")) return false;
|
|
91
|
+
return true;
|
|
92
|
+
}
|
|
72
93
|
const costlyToAnimateStyleKey = {
|
|
73
94
|
borderRadius: true,
|
|
74
95
|
borderTopLeftRadius: true,
|
|
@@ -182,6 +203,7 @@ function createAnimations(animations, options) {
|
|
|
182
203
|
style,
|
|
183
204
|
componentState,
|
|
184
205
|
presence,
|
|
206
|
+
stateRef,
|
|
185
207
|
useStyleEmitter
|
|
186
208
|
}) => {
|
|
187
209
|
const isDisabled = import_constants.isWeb && componentState.unmounted === true;
|
|
@@ -192,6 +214,7 @@ function createAnimations(animations, options) {
|
|
|
192
214
|
const animateStyles = import_react.default.useRef({});
|
|
193
215
|
const animatedTranforms = import_react.default.useRef([]);
|
|
194
216
|
const animationsState = import_react.default.useRef(/* @__PURE__ */new WeakMap());
|
|
217
|
+
const pseudoActiveRef = import_react.default.useRef(false);
|
|
195
218
|
const exitCycleIdRef = import_react.default.useRef(0);
|
|
196
219
|
const exitCompletedRef = import_react.default.useRef(false);
|
|
197
220
|
const wasExitingRef = import_react.default.useRef(false);
|
|
@@ -218,6 +241,10 @@ function createAnimations(animations, options) {
|
|
|
218
241
|
const completions = [];
|
|
219
242
|
const animationState = isExiting ? "exit" : isEntering || justFinishedEntering ? "enter" : "default";
|
|
220
243
|
const nonAnimatedStyle = {};
|
|
244
|
+
const useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(style, isDark, hasTransitionOnly ? animateOnly : void 0);
|
|
245
|
+
const seenAnimateKeys = /* @__PURE__ */new Set();
|
|
246
|
+
let sawTransform = false;
|
|
247
|
+
let transformCount = 0;
|
|
221
248
|
for (const key in style) {
|
|
222
249
|
const rawVal = style[key];
|
|
223
250
|
const val = resolveDynamicValue(rawVal, isDark);
|
|
@@ -225,7 +252,7 @@ function createAnimations(animations, options) {
|
|
|
225
252
|
if (isDisabled) {
|
|
226
253
|
continue;
|
|
227
254
|
}
|
|
228
|
-
if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key]) {
|
|
255
|
+
if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key] && !layoutStyleKey[key]) {
|
|
229
256
|
nonAnimatedStyle[key] = val;
|
|
230
257
|
continue;
|
|
231
258
|
}
|
|
@@ -233,8 +260,17 @@ function createAnimations(animations, options) {
|
|
|
233
260
|
nonAnimatedStyle[key] = val;
|
|
234
261
|
continue;
|
|
235
262
|
}
|
|
263
|
+
if (layoutStyleKey[key] && typeof val !== "number") {
|
|
264
|
+
nonAnimatedStyle[key] = val;
|
|
265
|
+
continue;
|
|
266
|
+
}
|
|
267
|
+
if (colorStyleKey[key] && !isAnimatableColor(val)) {
|
|
268
|
+
nonAnimatedStyle[key] = val;
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
236
271
|
if (key !== "transform") {
|
|
237
272
|
animateStyles.current[key] = update(key, animateStyles.current[key], val);
|
|
273
|
+
seenAnimateKeys.add(key);
|
|
238
274
|
continue;
|
|
239
275
|
}
|
|
240
276
|
if (!val) continue;
|
|
@@ -242,8 +278,10 @@ function createAnimations(animations, options) {
|
|
|
242
278
|
console.warn(`Warning: Tamagui can't animate string transforms yet!`);
|
|
243
279
|
continue;
|
|
244
280
|
}
|
|
245
|
-
|
|
281
|
+
sawTransform = true;
|
|
282
|
+
for (const transform of val) {
|
|
246
283
|
if (!transform) continue;
|
|
284
|
+
const index = transformCount++;
|
|
247
285
|
const tkey = Object.keys(transform)[0];
|
|
248
286
|
const currentTransform = animatedTranforms.current[index]?.[tkey];
|
|
249
287
|
animatedTranforms.current[index] = {
|
|
@@ -252,6 +290,16 @@ function createAnimations(animations, options) {
|
|
|
252
290
|
animatedTranforms.current = [...animatedTranforms.current];
|
|
253
291
|
}
|
|
254
292
|
}
|
|
293
|
+
if (!isExiting && !isDisabled && !pseudoActiveRef.current) {
|
|
294
|
+
for (const k in animateStyles.current) {
|
|
295
|
+
if (!seenAnimateKeys.has(k)) delete animateStyles.current[k];
|
|
296
|
+
}
|
|
297
|
+
if (!sawTransform) {
|
|
298
|
+
if (animatedTranforms.current.length) animatedTranforms.current = [];
|
|
299
|
+
} else if (animatedTranforms.current.length > transformCount) {
|
|
300
|
+
animatedTranforms.current = animatedTranforms.current.slice(0, transformCount);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
255
303
|
const animatedTransformStyle = animatedTranforms.current.length > 0 ? {
|
|
256
304
|
transform: animatedTranforms.current.map(r => {
|
|
257
305
|
const key = Object.keys(r)[0];
|
|
@@ -307,8 +355,8 @@ function createAnimations(animations, options) {
|
|
|
307
355
|
function getAnimation() {
|
|
308
356
|
return import_react_native.Animated[animationConfig.type || "spring"](value, {
|
|
309
357
|
toValue: animateToValue,
|
|
310
|
-
|
|
311
|
-
|
|
358
|
+
...animationConfig,
|
|
359
|
+
useNativeDriver: useNativeDriverForNode
|
|
312
360
|
});
|
|
313
361
|
}
|
|
314
362
|
const animation = animationConfig.delay ? import_react_native.Animated.sequence([import_react_native.Animated.delay(animationConfig.delay), getAnimation()]) : getAnimation();
|
|
@@ -358,25 +406,50 @@ function createAnimations(animations, options) {
|
|
|
358
406
|
cancel = true;
|
|
359
407
|
};
|
|
360
408
|
}, args);
|
|
361
|
-
useStyleEmitter?.(nextStyle => {
|
|
409
|
+
useStyleEmitter?.((nextStyle, _effectiveTransition, pseudoActive) => {
|
|
410
|
+
pseudoActiveRef.current = pseudoActive === true;
|
|
411
|
+
const runners = [];
|
|
412
|
+
const seenAnimateKeys = /* @__PURE__ */new Set();
|
|
413
|
+
let transformCount = 0;
|
|
414
|
+
let animatedShapeChanged = false;
|
|
415
|
+
const useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(nextStyle, isDark) && !Object.keys(animateStyles.current).some(key => layoutStyleKey[key]);
|
|
362
416
|
for (const key in nextStyle) {
|
|
363
417
|
const rawVal = nextStyle[key];
|
|
364
418
|
const val = resolveDynamicValue(rawVal, isDark);
|
|
365
419
|
if (val === void 0) continue;
|
|
366
420
|
if (key === "transform" && Array.isArray(val)) {
|
|
367
|
-
for (const
|
|
421
|
+
for (const transform of val) {
|
|
368
422
|
if (!transform) continue;
|
|
423
|
+
const index = transformCount++;
|
|
369
424
|
const tkey = Object.keys(transform)[0];
|
|
370
425
|
const currentTransform = animatedTranforms.current[index]?.[tkey];
|
|
426
|
+
if (!currentTransform) animatedShapeChanged = true;
|
|
371
427
|
animatedTranforms.current[index] = {
|
|
372
428
|
[tkey]: update(tkey, currentTransform, transform[tkey])
|
|
373
429
|
};
|
|
374
430
|
}
|
|
375
|
-
} else if (animatedStyleKey[key] != null || costlyToAnimateStyleKey[key]) {
|
|
431
|
+
} else if (animatedStyleKey[key] != null || costlyToAnimateStyleKey[key] || layoutStyleKey[key]) {
|
|
432
|
+
if (layoutStyleKey[key] && typeof val !== "number") continue;
|
|
433
|
+
if (colorStyleKey[key] && !isAnimatableColor(val)) continue;
|
|
434
|
+
if (!animateStyles.current[key]) animatedShapeChanged = true;
|
|
376
435
|
animateStyles.current[key] = update(key, animateStyles.current[key], val);
|
|
436
|
+
seenAnimateKeys.add(key);
|
|
377
437
|
}
|
|
378
438
|
}
|
|
379
|
-
|
|
439
|
+
for (const key in animateStyles.current) {
|
|
440
|
+
if (!seenAnimateKeys.has(key)) {
|
|
441
|
+
delete animateStyles.current[key];
|
|
442
|
+
animatedShapeChanged = true;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
if (animatedTranforms.current.length > transformCount) {
|
|
446
|
+
animatedTranforms.current = animatedTranforms.current.slice(0, transformCount);
|
|
447
|
+
animatedShapeChanged = true;
|
|
448
|
+
}
|
|
449
|
+
runners.forEach(r => r());
|
|
450
|
+
if (animatedShapeChanged && stateRef.current.nextState) {
|
|
451
|
+
stateRef.current.baseSetStateShallow?.(stateRef.current.nextState);
|
|
452
|
+
}
|
|
380
453
|
function update(key, animated, valIn) {
|
|
381
454
|
const isColor = colorStyleKey[key];
|
|
382
455
|
const [numVal, type] = isColor ? [0, void 0] : getValue(valIn);
|
|
@@ -398,12 +471,12 @@ function createAnimations(animations, options) {
|
|
|
398
471
|
});
|
|
399
472
|
}
|
|
400
473
|
const animationConfig = getAnimationConfig(key, animations, props.transition, "default");
|
|
401
|
-
|
|
474
|
+
runners.push(() => {
|
|
402
475
|
value.stopAnimation();
|
|
403
476
|
const anim = import_react_native.Animated[animationConfig.type || "spring"](value, {
|
|
404
477
|
toValue: animateToValue,
|
|
405
|
-
|
|
406
|
-
|
|
478
|
+
...animationConfig,
|
|
479
|
+
useNativeDriver: useNativeDriverForNode
|
|
407
480
|
});
|
|
408
481
|
(animationConfig.delay ? import_react_native.Animated.sequence([import_react_native.Animated.delay(animationConfig.delay), anim]) : anim).start();
|
|
409
482
|
});
|
|
@@ -76,6 +76,27 @@ var colorStyleKey = {
|
|
|
76
76
|
borderTopColor: true,
|
|
77
77
|
borderBottomColor: true
|
|
78
78
|
};
|
|
79
|
+
var layoutStyleKey = {
|
|
80
|
+
height: true,
|
|
81
|
+
width: true,
|
|
82
|
+
minHeight: true,
|
|
83
|
+
maxHeight: true,
|
|
84
|
+
minWidth: true,
|
|
85
|
+
maxWidth: true
|
|
86
|
+
};
|
|
87
|
+
function hasAnimatedLayoutKey(style, isDark, animateOnly) {
|
|
88
|
+
for (var key in layoutStyleKey) {
|
|
89
|
+
if (animateOnly && !animateOnly.includes(key)) continue;
|
|
90
|
+
if (typeof resolveDynamicValue(style[key], isDark) === "number") return true;
|
|
91
|
+
}
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
function isAnimatableColor(value) {
|
|
95
|
+
if (typeof value !== "string") return false;
|
|
96
|
+
if (value === "") return false;
|
|
97
|
+
if (value.includes("var(") || value.includes("calc(")) return false;
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
79
100
|
var costlyToAnimateStyleKey = {
|
|
80
101
|
borderRadius: true,
|
|
81
102
|
borderTopLeftRadius: true,
|
|
@@ -202,6 +223,7 @@ function createAnimations(animations, options) {
|
|
|
202
223
|
style,
|
|
203
224
|
componentState,
|
|
204
225
|
presence,
|
|
226
|
+
stateRef,
|
|
205
227
|
useStyleEmitter
|
|
206
228
|
} = param;
|
|
207
229
|
var _themeState_name;
|
|
@@ -213,6 +235,7 @@ function createAnimations(animations, options) {
|
|
|
213
235
|
var animateStyles = import_react.default.useRef({});
|
|
214
236
|
var animatedTranforms = import_react.default.useRef([]);
|
|
215
237
|
var animationsState = import_react.default.useRef(/* @__PURE__ */new WeakMap());
|
|
238
|
+
var pseudoActiveRef = import_react.default.useRef(false);
|
|
216
239
|
var exitCycleIdRef = import_react.default.useRef(0);
|
|
217
240
|
var exitCompletedRef = import_react.default.useRef(false);
|
|
218
241
|
var wasExitingRef = import_react.default.useRef(false);
|
|
@@ -239,6 +262,10 @@ function createAnimations(animations, options) {
|
|
|
239
262
|
var completions = [];
|
|
240
263
|
var animationState = isExiting ? "exit" : isEntering || justFinishedEntering ? "enter" : "default";
|
|
241
264
|
var nonAnimatedStyle = {};
|
|
265
|
+
var useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(style, isDark, hasTransitionOnly ? animateOnly : void 0);
|
|
266
|
+
var seenAnimateKeys = /* @__PURE__ */new Set();
|
|
267
|
+
var sawTransform = false;
|
|
268
|
+
var transformCount = 0;
|
|
242
269
|
for (var key in style) {
|
|
243
270
|
var rawVal = style[key];
|
|
244
271
|
var val = resolveDynamicValue(rawVal, isDark);
|
|
@@ -246,7 +273,7 @@ function createAnimations(animations, options) {
|
|
|
246
273
|
if (isDisabled) {
|
|
247
274
|
continue;
|
|
248
275
|
}
|
|
249
|
-
if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key]) {
|
|
276
|
+
if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key] && !layoutStyleKey[key]) {
|
|
250
277
|
nonAnimatedStyle[key] = val;
|
|
251
278
|
continue;
|
|
252
279
|
}
|
|
@@ -254,8 +281,17 @@ function createAnimations(animations, options) {
|
|
|
254
281
|
nonAnimatedStyle[key] = val;
|
|
255
282
|
continue;
|
|
256
283
|
}
|
|
284
|
+
if (layoutStyleKey[key] && typeof val !== "number") {
|
|
285
|
+
nonAnimatedStyle[key] = val;
|
|
286
|
+
continue;
|
|
287
|
+
}
|
|
288
|
+
if (colorStyleKey[key] && !isAnimatableColor(val)) {
|
|
289
|
+
nonAnimatedStyle[key] = val;
|
|
290
|
+
continue;
|
|
291
|
+
}
|
|
257
292
|
if (key !== "transform") {
|
|
258
293
|
animateStyles.current[key] = update(key, animateStyles.current[key], val);
|
|
294
|
+
seenAnimateKeys.add(key);
|
|
259
295
|
continue;
|
|
260
296
|
}
|
|
261
297
|
if (!val) continue;
|
|
@@ -263,14 +299,16 @@ function createAnimations(animations, options) {
|
|
|
263
299
|
console.warn(`Warning: Tamagui can't animate string transforms yet!`);
|
|
264
300
|
continue;
|
|
265
301
|
}
|
|
302
|
+
sawTransform = true;
|
|
266
303
|
var _iteratorNormalCompletion = true,
|
|
267
304
|
_didIteratorError = false,
|
|
268
305
|
_iteratorError = void 0;
|
|
269
306
|
try {
|
|
270
|
-
for (var _iterator = val
|
|
271
|
-
var
|
|
307
|
+
for (var _iterator = val[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
308
|
+
var transform = _step.value;
|
|
272
309
|
var _animatedTranforms_current_index;
|
|
273
310
|
if (!transform) continue;
|
|
311
|
+
var index = transformCount++;
|
|
274
312
|
var tkey = Object.keys(transform)[0];
|
|
275
313
|
var currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];
|
|
276
314
|
animatedTranforms.current[index] = {
|
|
@@ -293,6 +331,16 @@ function createAnimations(animations, options) {
|
|
|
293
331
|
}
|
|
294
332
|
}
|
|
295
333
|
}
|
|
334
|
+
if (!isExiting && !isDisabled && !pseudoActiveRef.current) {
|
|
335
|
+
for (var k in animateStyles.current) {
|
|
336
|
+
if (!seenAnimateKeys.has(k)) delete animateStyles.current[k];
|
|
337
|
+
}
|
|
338
|
+
if (!sawTransform) {
|
|
339
|
+
if (animatedTranforms.current.length) animatedTranforms.current = [];
|
|
340
|
+
} else if (animatedTranforms.current.length > transformCount) {
|
|
341
|
+
animatedTranforms.current = animatedTranforms.current.slice(0, transformCount);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
296
344
|
var animatedTransformStyle = animatedTranforms.current.length > 0 ? {
|
|
297
345
|
transform: animatedTranforms.current.map(function (r) {
|
|
298
346
|
var _animationsState_current_get;
|
|
@@ -305,9 +353,9 @@ function createAnimations(animations, options) {
|
|
|
305
353
|
} : {};
|
|
306
354
|
var animatedStyle = {
|
|
307
355
|
...Object.fromEntries(Object.entries(animateStyles.current).map(function (param2) {
|
|
308
|
-
var [
|
|
356
|
+
var [k2, v] = param2;
|
|
309
357
|
var _animationsState_current_get;
|
|
310
|
-
return [
|
|
358
|
+
return [k2, ((_animationsState_current_get = animationsState.current.get(v)) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || v];
|
|
311
359
|
})),
|
|
312
360
|
...animatedTransformStyle
|
|
313
361
|
};
|
|
@@ -354,8 +402,8 @@ function createAnimations(animations, options) {
|
|
|
354
402
|
function getAnimation() {
|
|
355
403
|
return import_react_native.Animated[animationConfig.type || "spring"](value, {
|
|
356
404
|
toValue: animateToValue,
|
|
357
|
-
|
|
358
|
-
|
|
405
|
+
...animationConfig,
|
|
406
|
+
useNativeDriver: useNativeDriverForNode
|
|
359
407
|
});
|
|
360
408
|
}
|
|
361
409
|
var animation = animationConfig.delay ? import_react_native.Animated.sequence([import_react_native.Animated.delay(animationConfig.delay), getAnimation()]) : getAnimation();
|
|
@@ -408,7 +456,15 @@ function createAnimations(animations, options) {
|
|
|
408
456
|
cancel = true;
|
|
409
457
|
};
|
|
410
458
|
}, args);
|
|
411
|
-
useStyleEmitter === null || useStyleEmitter === void 0 ? void 0 : useStyleEmitter(function (nextStyle) {
|
|
459
|
+
useStyleEmitter === null || useStyleEmitter === void 0 ? void 0 : useStyleEmitter(function (nextStyle, _effectiveTransition, pseudoActive) {
|
|
460
|
+
pseudoActiveRef.current = pseudoActive === true;
|
|
461
|
+
var runners = [];
|
|
462
|
+
var seenAnimateKeys = /* @__PURE__ */new Set();
|
|
463
|
+
var transformCount = 0;
|
|
464
|
+
var animatedShapeChanged = false;
|
|
465
|
+
var useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(nextStyle, isDark) && !Object.keys(animateStyles.current).some(function (key2) {
|
|
466
|
+
return layoutStyleKey[key2];
|
|
467
|
+
});
|
|
412
468
|
for (var key in nextStyle) {
|
|
413
469
|
var rawVal = nextStyle[key];
|
|
414
470
|
var val = resolveDynamicValue(rawVal, isDark);
|
|
@@ -418,12 +474,14 @@ function createAnimations(animations, options) {
|
|
|
418
474
|
_didIteratorError = false,
|
|
419
475
|
_iteratorError = void 0;
|
|
420
476
|
try {
|
|
421
|
-
for (var _iterator = val
|
|
422
|
-
var
|
|
477
|
+
for (var _iterator = val[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
478
|
+
var transform = _step.value;
|
|
423
479
|
var _animatedTranforms_current_index;
|
|
424
480
|
if (!transform) continue;
|
|
481
|
+
var index = transformCount++;
|
|
425
482
|
var tkey = Object.keys(transform)[0];
|
|
426
483
|
var currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];
|
|
484
|
+
if (!currentTransform) animatedShapeChanged = true;
|
|
427
485
|
animatedTranforms.current[index] = {
|
|
428
486
|
[tkey]: update(tkey, currentTransform, transform[tkey])
|
|
429
487
|
};
|
|
@@ -442,13 +500,31 @@ function createAnimations(animations, options) {
|
|
|
442
500
|
}
|
|
443
501
|
}
|
|
444
502
|
}
|
|
445
|
-
} else if (animatedStyleKey[key] != null || costlyToAnimateStyleKey[key]) {
|
|
503
|
+
} else if (animatedStyleKey[key] != null || costlyToAnimateStyleKey[key] || layoutStyleKey[key]) {
|
|
504
|
+
if (layoutStyleKey[key] && typeof val !== "number") continue;
|
|
505
|
+
if (colorStyleKey[key] && !isAnimatableColor(val)) continue;
|
|
506
|
+
if (!animateStyles.current[key]) animatedShapeChanged = true;
|
|
446
507
|
animateStyles.current[key] = update(key, animateStyles.current[key], val);
|
|
508
|
+
seenAnimateKeys.add(key);
|
|
447
509
|
}
|
|
448
510
|
}
|
|
449
|
-
|
|
511
|
+
for (var key1 in animateStyles.current) {
|
|
512
|
+
if (!seenAnimateKeys.has(key1)) {
|
|
513
|
+
delete animateStyles.current[key1];
|
|
514
|
+
animatedShapeChanged = true;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
if (animatedTranforms.current.length > transformCount) {
|
|
518
|
+
animatedTranforms.current = animatedTranforms.current.slice(0, transformCount);
|
|
519
|
+
animatedShapeChanged = true;
|
|
520
|
+
}
|
|
521
|
+
runners.forEach(function (r) {
|
|
450
522
|
return r();
|
|
451
523
|
});
|
|
524
|
+
if (animatedShapeChanged && stateRef.current.nextState) {
|
|
525
|
+
var _stateRef_current_baseSetStateShallow, _stateRef_current;
|
|
526
|
+
(_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);
|
|
527
|
+
}
|
|
452
528
|
function update(key2, animated, valIn) {
|
|
453
529
|
var isColor = colorStyleKey[key2];
|
|
454
530
|
var [numVal, type] = isColor ? [0, void 0] : getValue(valIn);
|
|
@@ -471,12 +547,12 @@ function createAnimations(animations, options) {
|
|
|
471
547
|
});
|
|
472
548
|
}
|
|
473
549
|
var animationConfig = getAnimationConfig(key2, animations, props.transition, "default");
|
|
474
|
-
|
|
550
|
+
runners.push(function () {
|
|
475
551
|
value.stopAnimation();
|
|
476
552
|
var anim = import_react_native.Animated[animationConfig.type || "spring"](value, {
|
|
477
553
|
toValue: animateToValue,
|
|
478
|
-
|
|
479
|
-
|
|
554
|
+
...animationConfig,
|
|
555
|
+
useNativeDriver: useNativeDriverForNode
|
|
480
556
|
});
|
|
481
557
|
(animationConfig.delay ? import_react_native.Animated.sequence([import_react_native.Animated.delay(animationConfig.delay), anim]) : anim).start();
|
|
482
558
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","createAnimations_exports","__export","AnimatedText","AnimatedView","createAnimations","useAnimatedNumber","useAnimatedNumberReaction","useAnimatedNumberStyle","useAnimatedNumbersStyle","module","exports","import_animation_helpers","require","import_constants","import_use_presence","import_web","import_react","__toESM","import_react_native","_type_of","obj","Symbol","constructor","isFabric","isWeb","global","__nativeFabricUIManager","resolveDynamicValue","isDark","dynamicValue","dynamic","dark","light","animatedStyleKey","transform","opacity","colorStyleKey","backgroundColor","color","borderColor","borderLeftColor","borderRightColor","borderTopColor","borderBottomColor","costlyToAnimateStyleKey","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderWidth","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","Animated","View","Text","initial","state","default","useRef","current","composite","val","Value","strategy","type","getInstance","getValue","stop","_state_current_composite","setValue","next","config","arguments","length","onFinish","handleFinish","param","finished","spring","toValue","useNativeDriver","start","_state_current_composite1","composite1","timing","onValue","onChange","useEvent","useEffect","id","addListener","removeListener","getStyle","vals","map","v","animations","options","_options_useNativeDriver","nativeDriver","isReactNative","inputStyle","outputStyle","avoidReRenders","needsCustomComponent","usePresence","ResetPresence","useAnimations","props","onDidAnimate","style","componentState","presence","useStyleEmitter","_themeState_name","isDisabled","unmounted","isExiting","sendExitComplete","themeState","useThemeWithState","scheme","name","startsWith","animateStyles","animatedTranforms","animationsState","WeakMap","exitCycleIdRef","exitCompletedRef","wasExitingRef","justStartedExiting","justStoppedExiting","animateOnly","hasTransitionOnly","isEntering","wasEnteringRef","justFinishedEntering","args","JSON","stringify","res","useMemo","runners","completions","animationState","nonAnimatedStyle","key","rawVal","includes","update","console","warn","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","entries","iterator","_step","done","index","_animatedTranforms_current_index","tkey","Object","keys","currentTransform","err","return","animatedTransformStyle","r","_animationsState_current_get","key2","val2","get","interpolation","animatedStyle","fromEntries","param2","k","animated","valIn","isColorStyleKey","animateToValue","curInterpolation","interpolateArgs","_curInterpolation_current","getInterpolated","set","interpolate","getColorInterpolated","animationConfig","getAnimationConfig","transition","resolve","promise","Promise","res2","push","stopAnimation","getAnimation","animation","delay","sequence","process","env","NODE_ENV","info","useIsomorphicLayoutEffect","forEach","cycleId","cancel","all","then","nextStyle","Array","isArray","isColor","numVal","anim","response","currentColor","nextColor","inputRange","outputRange","reverse","postfix"],"sources":["../../src/createAnimations.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,wBAAA;AAAAC,QAAA,CAAAD,wBAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA,YAAA;EAAAC,YAAA,EAAAA,CAAA,KAAAA,YAAA;EAAAC,gBAAA,EAAAA,CAAA,KAAAA,gBAAA;EAAAC,iBAAA,EAAAA,CAAA,KAAAA,iBAAA;EAAAC,yBAAA,EAAAA,CAAA,KAAAA,yBAAA;EAAAC,sBAAA,EAAAA,CAAA,KAAAA,sBAAA;EAAAC,uBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAf,YAAA,CAAAK,wBAA2D;AAC3D,IAAAW,wBAAiD,GAAAC,OAAA;AACjD,IAAAC,gBAAA,GAAAD,OAA2C;AAS3C,IAAAE,mBAA4C,GAAAF,OAAA;AAC5C,IAAAG,UAAA,GAAAH,OAAkB;AAClB,IAAAI,YAAA,GAAAC,OAA+C,CAAAL,OAAA;AAG/C,IAAAM,mBACG,GAAAN,OAAA,eAAS;AAGZ,SAAMO,SAAAC,GAAA;EACJ,uBAAoB;;EAClB,OAAAA,GAAM,WAAAC,MAAe,KAAS,WAAM,IAAQD,GAAA,CAA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;YAClB,IAAWoB,IAAA,GAAQ5M,mBAAA,CAAAqC,QAAA,CAAA2I,eAAA,CAAA/H,IAAA,cAAApE,KAAA;cACnBmF,OAAY,EAAAwG,cAAQ;cACtBvG,eAAA,EAAAmB,YAAA;cACO,GAAA4F;YACL;YACA,CAAAA,eAAA,CAAAW,KAAA,GAAA3L,mBAAA,CAAAqC,QAAA,CAAAuJ,QAAA,EACF5L,mBAAA,CAAAqC,QAAA,CAAAsJ,KAAA,CAAAX,eAAA,CAAAW,KAAA,GACFiB,IAAA,CAES,IAAAA,IAAA,EAAA1I,KACP;UAKM;UACA,OAAArF,KAAW;QAGX;MAEF;MACA,IAAAgN,OAAA,CAAiBC,GAAC,CAAAC,QAAA;QAElB,IAAAlG,KAAO,cAAkB,WAAU;UAErC2C,OAAA,CAAAwD,IAAgB;YAClBa,QAAW,EAAA/E,GAAA;YAGTxC,UACE,EAAAS,KAAA;YACFO;UACK;QAEL;MACF;MAGI,OAAAwB,GAAA;IACF;EACF;AAEA;AACA,SAAOiD,qBAAA+B,YAAA,EAAAC,SAAA,EAAAvC,cAAA;EAAA,IACLwC,UAAG,OAEH,EAAc;EAAA,IAEdC,WAAG,IACLH,YAAA,GAAAA,YAAA,GAAAC,SAAA,EACFA,SAAA,CAGA;EACE,IAAGvC,cAAA;IACHyC,WAAG,CAAAC,OAAA;EACH;EACA;IACFF,UAAA;IAEAC;EACE;AACE;AAAa,SACfrC,gBAAAhI,OAAA,EAAAW,IAAA;EACA,IAAA4J,OAAU,GAAA1J,SAAa,CAAAC,MAAI,GAAM,KAAAD,SAAM,aAAqB,IAAAA,SAAM;EAClE,IAAAF,IAAQ,KAACX,OAAQ,EAAK;IACxBA,OAAA,GAAAW,IAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","createAnimations_exports","AnimatedText","AnimatedView","createAnimations","useAnimatedNumber","useAnimatedNumberReaction","useAnimatedNumberStyle","useAnimatedNumbersStyle","module","exports","import_animation_helpers","require","import_constants","import_use_presence","import_web","import_react","import_react_native","_type_of","obj","Symbol","constructor","isFabric","isWeb","global","__nativeFabricUIManager","resolveDynamicValue","isDark","dynamicValue","dynamic","dark","light","animatedStyleKey","transform","opacity","colorStyleKey","backgroundColor","color","borderColor","borderLeftColor","borderRightColor","borderTopColor","borderBottomColor","layoutStyleKey","height","width","minHeight","maxHeight","minWidth","maxWidth","hasAnimatedLayoutKey","style","animateOnly","includes","isAnimatableColor","costlyToAnimateStyleKey","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderWidth","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","Animated","View","Text","initial","state","default","useRef","current","composite","val","Value","strategy","type","getInstance","getValue","stop","_state_current_composite","setValue","next","config","arguments","length","onFinish","handleFinish","param","finished","spring","toValue","useNativeDriver","start","_state_current_composite1","composite1","timing","onValue","onChange","useEvent","useEffect","id","addListener","removeListener","getStyle","vals","map","v","animations","options","_options_useNativeDriver","nativeDriver","isReactNative","inputStyle","outputStyle","avoidReRenders","needsCustomComponent","usePresence","ResetPresence","useAnimations","props","onDidAnimate","componentState","presence","stateRef","useStyleEmitter","_themeState_name","isDisabled","unmounted","isExiting","sendExitComplete","themeState","useThemeWithState","scheme","startsWith","animateStyles","animatedTranforms","animationsState","WeakMap","pseudoActiveRef","exitCycleIdRef","exitCompletedRef","wasExitingRef","justStartedExiting","justStoppedExiting","hasTransitionOnly","isEntering","wasEnteringRef","justFinishedEntering","args","JSON","stringify","res","useMemo","runners","completions","animationState","nonAnimatedStyle","useNativeDriverForNode","seenAnimateKeys","Set","sawTransform","transformCount","rawVal","update","add","console","warn","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","iterator","_step","done","_animatedTranforms_current_index","index","tkey","keys","currentTransform","err","return","k","has","slice","animatedTransformStyle","r","_animationsState_current_get","key2","val2","interpolation","animatedStyle","fromEntries","entries","param2","k2","animated","valIn","isColorStyleKey","animateToValue","curInterpolation","interpolateArgs","_curInterpolation_current","getInterpolated","set","interpolate","getColorInterpolated","animationConfig","getAnimationConfig","transition","resolve","promise","Promise","res2","push","stopAnimation","getAnimation","animation","delay","sequence","process","env","NODE_ENV","info","useIsomorphicLayoutEffect","forEach","cycleId","cancel","then","nextStyle","_effectiveTransition","pseudoActive","animatedShapeChanged","some","Array","isArray","key1","nextState","_stateRef_current_baseSetStateShallow","_stateRef_current","baseSetStateShallow","isColor","numVal","anim","response","currentColor","nextColor","inputRange","outputRange","reverse","postfix","normalized","normalizeTransition","shortKey","transformShorthands","_normalized_properties_key","propAnimation","properties","animationType","extraConf","getEffectiveAnimation","found","x","y","translateX","translateY","input","_input_match","_","number","after","match"],"sources":["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_exports = {};\n__export(createAnimations_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_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_react = __toESM(require(\"react\"), 1);\nvar import_react_native = require(\"react-native\");\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar isFabric = !import_constants.isWeb && typeof global !== \"undefined\" && !!global.__nativeFabricUIManager;\nvar resolveDynamicValue = function(value, isDark) {\n if (value && (typeof value === \"undefined\" ? \"undefined\" : _type_of(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};\nfunction hasAnimatedLayoutKey(style, isDark, animateOnly) {\n for (var key in layoutStyleKey) {\n if (animateOnly && !animateOnly.includes(key)) continue;\n if (typeof resolveDynamicValue(style[key], isDark) === \"number\") return true;\n }\n return false;\n}\nfunction isAnimatableColor(value) {\n if (typeof value !== \"string\") return false;\n if (value === \"\") return false;\n if (value.includes(\"var(\") || value.includes(\"calc(\")) return false;\n return true;\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;\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 val.setValue(next);\n } else if (type === \"spring\") {\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 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_composite1;\n (_state_current_composite1 = state.current.composite) === null || _state_current_composite1 === void 0 ? void 0 : _state_current_composite1.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 return getStyle(value.getInstance());\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 isReactNative: true,\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 useAnimations: function(param) {\n var { props, onDidAnimate, style, componentState, presence, stateRef, useStyleEmitter } = 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 [, themeState] = (0, import_web.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 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 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 animateOnly = props.animateOnly || [];\n var hasTransitionOnly = !!props.animateOnly;\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 componentState,\n isExiting,\n !!onDidAnimate,\n isDark,\n justFinishedEntering,\n hasTransitionOnly\n ];\n var res = import_react.default.useMemo(function() {\n var runners = [];\n var completions = [];\n var animationState = isExiting ? \"exit\" : isEntering || justFinishedEntering ? \"enter\" : \"default\";\n var nonAnimatedStyle = {};\n var useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(style, isDark, hasTransitionOnly ? animateOnly : void 0);\n var seenAnimateKeys = /* @__PURE__ */ new Set();\n var sawTransform = false;\n var transformCount = 0;\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 (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key] && !layoutStyleKey[key]) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (hasTransitionOnly && !animateOnly.includes(key)) {\n nonAnimatedStyle[key] = val;\n continue;\n }\n if (layoutStyleKey[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, animateStyles.current[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 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 ...animatedTransformStyle\n };\n return {\n runners,\n completions,\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, props.transition, 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 function getAnimation() {\n return import_react_native.Animated[animationConfig.type || \"spring\"](value, {\n toValue: animateToValue,\n ...animationConfig,\n useNativeDriver: useNativeDriverForNode\n });\n }\n var animation = animationConfig.delay ? import_react_native.Animated.sequence([\n import_react_native.Animated.delay(animationConfig.delay),\n getAnimation()\n ]) : getAnimation();\n animation.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 res.runners.forEach(function(r) {\n return r();\n });\n var cycleId = exitCycleIdRef.current;\n if (res.completions.length === 0) {\n onDidAnimate === null || onDidAnimate === void 0 ? void 0 : onDidAnimate();\n if (isExiting && !exitCompletedRef.current) {\n exitCompletedRef.current = true;\n sendExitComplete === null || sendExitComplete === void 0 ? void 0 : sendExitComplete();\n }\n return;\n }\n var cancel = false;\n Promise.all(res.completions).then(function() {\n if (cancel) return;\n if (isExiting && cycleId !== exitCycleIdRef.current) return;\n if (isExiting && exitCompletedRef.current) return;\n onDidAnimate === null || onDidAnimate === void 0 ? void 0 : onDidAnimate();\n if (isExiting) {\n exitCompletedRef.current = true;\n sendExitComplete === null || sendExitComplete === void 0 ? void 0 : sendExitComplete();\n }\n });\n return function() {\n cancel = true;\n };\n }, args);\n useStyleEmitter === null || useStyleEmitter === void 0 ? void 0 : useStyleEmitter(function(nextStyle, _effectiveTransition, pseudoActive) {\n pseudoActiveRef.current = pseudoActive === true;\n var runners = [];\n var seenAnimateKeys = /* @__PURE__ */ new Set();\n var transformCount = 0;\n var animatedShapeChanged = false;\n var useNativeDriverForNode = nativeDriver && !hasAnimatedLayoutKey(nextStyle, isDark) && !Object.keys(animateStyles.current).some(function(key2) {\n return layoutStyleKey[key2];\n });\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 (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] || layoutStyleKey[key]) {\n if (layoutStyleKey[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, animateStyles.current[key], val);\n seenAnimateKeys.add(key);\n }\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 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, props.transition, \"default\");\n runners.push(function() {\n value.stopAnimation();\n var anim = import_react_native.Animated[animationConfig.type || \"spring\"](value, {\n toValue: animateToValue,\n ...animationConfig,\n useNativeDriver: useNativeDriverForNode\n });\n (animationConfig.delay ? import_react_native.Animated.sequence([\n import_react_native.Animated.delay(animationConfig.delay),\n anim\n ]) : anim).start();\n });\n return value;\n }\n });\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 getAnimationConfig(key, animations, transition) {\n var animationState = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : \"default\";\n var normalized = (0, import_animation_helpers.normalizeTransition)(transition);\n var shortKey = transformShorthands[key];\n var _normalized_properties_key;\n var propAnimation = (_normalized_properties_key = normalized.properties[key]) !== null && _normalized_properties_key !== void 0 ? _normalized_properties_key : normalized.properties[shortKey];\n var animationType = null;\n var extraConf = {};\n if (typeof propAnimation === \"string\") {\n animationType = propAnimation;\n } else if (propAnimation && (typeof propAnimation === \"undefined\" ? \"undefined\" : _type_of(propAnimation)) === \"object\") {\n animationType = propAnimation.type || (0, import_animation_helpers.getEffectiveAnimation)(normalized, animationState);\n extraConf = propAnimation;\n } else {\n animationType = (0, import_animation_helpers.getEffectiveAnimation)(normalized, animationState);\n }\n if (normalized.delay && !extraConf.delay) {\n extraConf = {\n ...extraConf,\n delay: normalized.delay\n };\n }\n var found = animationType ? animations[animationType] : {};\n return {\n ...found,\n // Apply global spring config overrides (from transition={['bouncy', { stiffness: 1000 }]})\n ...normalized.config,\n // Property-specific config takes highest precedence\n ...extraConf\n };\n}\nvar transformShorthands = {\n x: \"translateX\",\n y: \"translateY\",\n translateX: \"x\",\n translateY: \"y\"\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(/([-0-9]+)(deg|%|px)/)) !== null && _input_match !== void 0 ? _input_match : [];\n return [\n +number,\n after\n ];\n}\n//# sourceMappingURL=createAnimations.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,QAAQ,GAAGC,MAAM,CAACC,MAAM;AAC5B,IAAIC,SAAS,GAAGF,MAAM,CAACG,cAAc;AACrC,IAAIC,gBAAg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EACfC,CAAC,EAAE,YAAY;EACfC,UAAU,EAAE,GAAG;EACfC,UAAU,EAAE;AACd,CAAC;AACD,SAAS3L,QAAQA,CAAC4L,KAAK,EAAE;EACvB,IAAIzB,OAAO,GAAG7J,SAAS,CAACC,MAAM,GAAG,CAAC,IAAID,SAAS,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,GAAGA,SAAS,CAAC,CAAC,CAAC,GAAG,KAAK;EACpF,IAAI,OAAOsL,KAAK,KAAK,QAAQ,EAAE;IAC7B,OAAO,CACLA,KAAK,CACN;EACH;EACA,IAAIC,YAAY;EAChB,IAAI,CAACC,CAAC,EAAEC,MAAM,EAAEC,KAAK,CAAC,GAAG,CAACH,YAAY,GAAGD,KAAK,CAACK,KAAK,CAAC,qBAAqB,CAAC,MAAM,IAAI,IAAIJ,YAAY,KAAK,KAAK,CAAC,GAAGA,YAAY,GAAG,EAAE;EACpI,OAAO,CACL,CAACE,MAAM,EACPC,KAAK,CACN;AACH","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__copyProps","to","from","except","desc","key","call","get","enumerable","__reExport","target","mod","secondTarget","__toCommonJS","value","index_exports","module","exports","import_polyfill","require"],"sources":["index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\nvar import_polyfill = require(\"./polyfill\");\n__reExport(index_exports, require(\"./createAnimations\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIV,iBAAiB,CAACO,IAAI,CAAC,EACrC,IAAI,CAACL,YAAY,CAACS,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/Cb,SAAS,CAACW,EAAE,EAAEI,GAAG,EAAE;MAAEE,GAAG,EAAEA,CAAA,KAAML,IAAI,CAACG,GAAG,CAAC;MAAEG,UAAU,EAAE,EAAEJ,IAAI,GAAGX,gBAAgB,CAACS,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACI;IAAW,CAAC,CAAC;EACxH;EACA,OAAOP,EAAE;AACX,CAAC;AACD,IAAIQ,UAAU,GAAGA,CAACC,MAAM,EAAEC,GAAG,EAAEC,YAAY,MAAMZ,WAAW,CAACU,MAAM,EAAEC,GAAG,EAAE,SAAS,CAAC,EAAEC,YAAY,IAAIZ,WAAW,CAACY,YAAY,EAAED,GAAG,EAAE,SAAS,CAAC,CAAC;AAChJ,IAAIE,YAAY,GAAIF,GAAG,IAAKX,WAAW,CAACV,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE;EAAEwB,KAAK,EAAE;AAAK,CAAC,CAAC,EAAEH,GAAG,CAAC;AAC1F,IAAII,aAAa,GAAG,CAAC,CAAC;AACtBC,MAAM,CAACC,OAAO,GAAGJ,YAAY,CAACE,aAAa,CAAC;AAC5C,IAAIG,eAAe,GAAGC,OAAO,CAAC,sBAAY,CAAC;AAC3CV,UAAU,CAACM,aAAa,EAAEI,OAAO,CAAC,8BAAoB,CAAC,EAAEH,MAAM,CAACC,OAAO,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["requestAnimationFrame","globalThis","setImmediate","setTimeout"],"sources":["
|
|
1
|
+
{"version":3,"names":["requestAnimationFrame","globalThis","setImmediate","setTimeout"],"sources":["polyfill.native.js"],"sourcesContent":["\"use strict\";\nif (typeof requestAnimationFrame === \"undefined\") {\n globalThis[\"requestAnimationFrame\"] = typeof setImmediate === \"undefined\" ? setTimeout : setImmediate;\n}\n//# sourceMappingURL=polyfill.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAI,OAAOA,qBAAqB,KAAK,WAAW,EAAE;EAChDC,UAAU,CAAC,uBAAuB,CAAC,GAAG,OAAOC,YAAY,KAAK,WAAW,GAAGC,UAAU,GAAGD,YAAY;AACvG","ignoreList":[]}
|