@hanzogui/animations-react-native 2.0.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.
@@ -0,0 +1,477 @@
1
+ "use strict";
2
+
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: !0
13
+ });
14
+ },
15
+ __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: !0
30
+ }) : target, mod)),
31
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: !0
33
+ }), mod);
34
+ var createAnimations_exports = {};
35
+ __export(createAnimations_exports, {
36
+ AnimatedText: () => AnimatedText,
37
+ AnimatedView: () => AnimatedView,
38
+ createAnimations: () => createAnimations,
39
+ useAnimatedNumber: () => useAnimatedNumber,
40
+ useAnimatedNumberReaction: () => useAnimatedNumberReaction,
41
+ useAnimatedNumberStyle: () => useAnimatedNumberStyle
42
+ });
43
+ module.exports = __toCommonJS(createAnimations_exports);
44
+ var import_animation_helpers = require("@hanzogui/animation-helpers"),
45
+ import_constants = require("@hanzogui/constants"),
46
+ import_use_presence = require("@hanzogui/use-presence"),
47
+ import_web = require("@hanzogui/web"),
48
+ import_react = __toESM(require("react"), 1),
49
+ import_react_native = require("react-native");
50
+ function _type_of(obj) {
51
+ "@swc/helpers - typeof";
52
+
53
+ return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
54
+ }
55
+ var isFabric = !import_constants.isWeb && typeof global < "u" && !!global.__nativeFabricUIManager,
56
+ resolveDynamicValue = function (value, isDark) {
57
+ if (value && (typeof value > "u" ? "undefined" : _type_of(value)) === "object" && "dynamic" in value) {
58
+ var dynamicValue = isDark ? value.dynamic.dark : value.dynamic.light;
59
+ return dynamicValue;
60
+ }
61
+ return value;
62
+ },
63
+ animatedStyleKey = {
64
+ transform: !0,
65
+ opacity: !0
66
+ },
67
+ colorStyleKey = {
68
+ backgroundColor: !0,
69
+ color: !0,
70
+ borderColor: !0,
71
+ borderLeftColor: !0,
72
+ borderRightColor: !0,
73
+ borderTopColor: !0,
74
+ borderBottomColor: !0
75
+ },
76
+ costlyToAnimateStyleKey = {
77
+ borderRadius: !0,
78
+ borderTopLeftRadius: !0,
79
+ borderTopRightRadius: !0,
80
+ borderBottomLeftRadius: !0,
81
+ borderBottomRightRadius: !0,
82
+ borderWidth: !0,
83
+ borderLeftWidth: !0,
84
+ borderRightWidth: !0,
85
+ borderTopWidth: !0,
86
+ borderBottomWidth: !0,
87
+ ...colorStyleKey
88
+ },
89
+ AnimatedView = import_react_native.Animated.View,
90
+ AnimatedText = import_react_native.Animated.Text;
91
+ function useAnimatedNumber(initial) {
92
+ var state = import_react.default.useRef(null);
93
+ return state.current || (state.current = {
94
+ composite: null,
95
+ val: new import_react_native.Animated.Value(initial),
96
+ strategy: {
97
+ type: "spring"
98
+ }
99
+ }), {
100
+ getInstance() {
101
+ return state.current.val;
102
+ },
103
+ getValue() {
104
+ return state.current.val._value;
105
+ },
106
+ stop() {
107
+ var _state_current_composite;
108
+ (_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 || _state_current_composite.stop(), state.current.composite = null;
109
+ },
110
+ setValue(next) {
111
+ var {
112
+ type,
113
+ ...config
114
+ } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
115
+ type: "spring"
116
+ },
117
+ onFinish = arguments.length > 2 ? arguments[2] : void 0,
118
+ val = state.current.val,
119
+ handleFinish = onFinish ? function (param) {
120
+ var {
121
+ finished
122
+ } = param;
123
+ return finished ? onFinish() : null;
124
+ } : void 0;
125
+ if (type === "direct") val.setValue(next);else if (type === "spring") {
126
+ var _state_current_composite;
127
+ (_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 || _state_current_composite.stop();
128
+ var composite = import_react_native.Animated.spring(val, {
129
+ ...config,
130
+ toValue: next,
131
+ useNativeDriver: isFabric
132
+ });
133
+ composite.start(handleFinish), state.current.composite = composite;
134
+ } else {
135
+ var _state_current_composite1;
136
+ (_state_current_composite1 = state.current.composite) === null || _state_current_composite1 === void 0 || _state_current_composite1.stop();
137
+ var composite1 = import_react_native.Animated.timing(val, {
138
+ ...config,
139
+ toValue: next,
140
+ useNativeDriver: isFabric
141
+ });
142
+ composite1.start(handleFinish), state.current.composite = composite1;
143
+ }
144
+ }
145
+ };
146
+ }
147
+ var useAnimatedNumberReaction = function (param, onValue) {
148
+ var {
149
+ value
150
+ } = param,
151
+ onChange = (0, import_web.useEvent)(function (current) {
152
+ onValue(current.value);
153
+ });
154
+ import_react.default.useEffect(function () {
155
+ var id = value.getInstance().addListener(onChange);
156
+ return function () {
157
+ value.getInstance().removeListener(id);
158
+ };
159
+ }, [value, onChange]);
160
+ },
161
+ useAnimatedNumberStyle = function (value, getStyle) {
162
+ return getStyle(value.getInstance());
163
+ };
164
+ function createAnimations(animations, options) {
165
+ var _options_useNativeDriver,
166
+ nativeDriver = (_options_useNativeDriver = options?.useNativeDriver) !== null && _options_useNativeDriver !== void 0 ? _options_useNativeDriver : isFabric;
167
+ return {
168
+ isReactNative: !0,
169
+ inputStyle: "value",
170
+ outputStyle: "inline",
171
+ avoidReRenders: !0,
172
+ animations,
173
+ needsCustomComponent: !0,
174
+ View: AnimatedView,
175
+ Text: AnimatedText,
176
+ useAnimatedNumber,
177
+ useAnimatedNumberReaction,
178
+ useAnimatedNumberStyle,
179
+ usePresence: import_use_presence.usePresence,
180
+ ResetPresence: import_use_presence.ResetPresence,
181
+ useAnimations: function (param) {
182
+ var {
183
+ props,
184
+ onDidAnimate,
185
+ style,
186
+ componentState,
187
+ presence,
188
+ useStyleEmitter
189
+ } = param,
190
+ _themeState_name,
191
+ isDisabled = import_constants.isWeb && componentState.unmounted === !0,
192
+ isExiting = presence?.[0] === !1,
193
+ sendExitComplete = presence?.[1],
194
+ [, themeState] = (0, import_web.useThemeWithState)({}),
195
+ isDark = themeState?.scheme === "dark" || (themeState == null || (_themeState_name = themeState.name) === null || _themeState_name === void 0 ? void 0 : _themeState_name.startsWith("dark")),
196
+ animateStyles = import_react.default.useRef({}),
197
+ animatedTranforms = import_react.default.useRef([]),
198
+ animationsState = import_react.default.useRef(/* @__PURE__ */new WeakMap()),
199
+ exitCycleIdRef = import_react.default.useRef(0),
200
+ exitCompletedRef = import_react.default.useRef(!1),
201
+ wasExitingRef = import_react.default.useRef(!1),
202
+ justStartedExiting = isExiting && !wasExitingRef.current,
203
+ justStoppedExiting = !isExiting && wasExitingRef.current;
204
+ justStartedExiting && (exitCycleIdRef.current++, exitCompletedRef.current = !1), justStoppedExiting && exitCycleIdRef.current++;
205
+ var animateOnly = props.animateOnly || [],
206
+ hasTransitionOnly = !!props.animateOnly,
207
+ isEntering = !!componentState.unmounted,
208
+ wasEnteringRef = import_react.default.useRef(isEntering),
209
+ justFinishedEntering = wasEnteringRef.current && !isEntering;
210
+ import_react.default.useEffect(function () {
211
+ wasEnteringRef.current = isEntering;
212
+ });
213
+ var args = [JSON.stringify(style), componentState, isExiting, !!onDidAnimate, isDark, justFinishedEntering, hasTransitionOnly],
214
+ res = import_react.default.useMemo(function () {
215
+ var runners = [],
216
+ completions = [],
217
+ animationState = isExiting ? "exit" : isEntering || justFinishedEntering ? "enter" : "default",
218
+ nonAnimatedStyle = {};
219
+ for (var key in style) {
220
+ var rawVal = style[key],
221
+ val = resolveDynamicValue(rawVal, isDark);
222
+ if (val !== void 0 && !isDisabled) {
223
+ if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key]) {
224
+ nonAnimatedStyle[key] = val;
225
+ continue;
226
+ }
227
+ if (hasTransitionOnly && !animateOnly.includes(key)) {
228
+ nonAnimatedStyle[key] = val;
229
+ continue;
230
+ }
231
+ if (key !== "transform") {
232
+ animateStyles.current[key] = update(key, animateStyles.current[key], val);
233
+ continue;
234
+ }
235
+ if (val) {
236
+ if (typeof val == "string") {
237
+ console.warn("Warning: Hanzo GUI can't animate string transforms yet!");
238
+ continue;
239
+ }
240
+ var _iteratorNormalCompletion = !0,
241
+ _didIteratorError = !1,
242
+ _iteratorError = void 0;
243
+ try {
244
+ for (var _iterator = val.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
245
+ var [index, transform] = _step.value,
246
+ _animatedTranforms_current_index;
247
+ if (transform) {
248
+ var tkey = Object.keys(transform)[0],
249
+ currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];
250
+ animatedTranforms.current[index] = {
251
+ [tkey]: update(tkey, currentTransform, transform[tkey])
252
+ }, animatedTranforms.current = [...animatedTranforms.current];
253
+ }
254
+ }
255
+ } catch (err) {
256
+ _didIteratorError = !0, _iteratorError = err;
257
+ } finally {
258
+ try {
259
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
260
+ } finally {
261
+ if (_didIteratorError) throw _iteratorError;
262
+ }
263
+ }
264
+ }
265
+ }
266
+ }
267
+ var animatedTransformStyle = animatedTranforms.current.length > 0 ? {
268
+ transform: animatedTranforms.current.map(function (r) {
269
+ var _animationsState_current_get,
270
+ key2 = Object.keys(r)[0],
271
+ val2 = ((_animationsState_current_get = animationsState.current.get(r[key2])) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || r[key2];
272
+ return {
273
+ [key2]: val2
274
+ };
275
+ })
276
+ } : {},
277
+ animatedStyle = {
278
+ ...Object.fromEntries(Object.entries(animateStyles.current).map(function (param2) {
279
+ var [k, v] = param2,
280
+ _animationsState_current_get;
281
+ return [k, ((_animationsState_current_get = animationsState.current.get(v)) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || v];
282
+ })),
283
+ ...animatedTransformStyle
284
+ };
285
+ return {
286
+ runners,
287
+ completions,
288
+ style: [nonAnimatedStyle, animatedStyle]
289
+ };
290
+ function update(key2, animated, valIn) {
291
+ var isColorStyleKey = colorStyleKey[key2],
292
+ [val2, type] = isColorStyleKey ? [0, void 0] : getValue(valIn),
293
+ animateToValue = val2,
294
+ value = animated || new import_react_native.Animated.Value(val2),
295
+ curInterpolation = animationsState.current.get(value),
296
+ interpolateArgs;
297
+ if (type) {
298
+ var _curInterpolation_current;
299
+ interpolateArgs = getInterpolated((_curInterpolation_current = curInterpolation?.current) !== null && _curInterpolation_current !== void 0 ? _curInterpolation_current : value._value, val2, type), animationsState.current.set(value, {
300
+ interpolation: value.interpolate(interpolateArgs),
301
+ current: val2
302
+ });
303
+ }
304
+ if (isColorStyleKey && (animateToValue = curInterpolation?.animateToValue ? 0 : 1, interpolateArgs = getColorInterpolated(curInterpolation?.current,
305
+ // valIn is the next color
306
+ valIn, animateToValue), animationsState.current.set(value, {
307
+ current: valIn,
308
+ interpolation: value.interpolate(interpolateArgs),
309
+ animateToValue: curInterpolation?.animateToValue ? 0 : 1
310
+ })), value) {
311
+ var animationConfig = getAnimationConfig(key2, animations, props.transition, animationState),
312
+ resolve,
313
+ promise = new Promise(function (res2) {
314
+ resolve = res2;
315
+ });
316
+ completions.push(promise), runners.push(function () {
317
+ value.stopAnimation();
318
+ function getAnimation() {
319
+ return import_react_native.Animated[animationConfig.type || "spring"](value, {
320
+ toValue: animateToValue,
321
+ useNativeDriver: nativeDriver,
322
+ ...animationConfig
323
+ });
324
+ }
325
+ var animation = animationConfig.delay ? import_react_native.Animated.sequence([import_react_native.Animated.delay(animationConfig.delay), getAnimation()]) : getAnimation();
326
+ animation.start(function (param2) {
327
+ var {
328
+ finished
329
+ } = param2;
330
+ (finished || isExiting) && resolve();
331
+ });
332
+ });
333
+ }
334
+ return process.env.NODE_ENV === "development" && props.debug === "verbose" && console.info(" \u{1F4A0} animate", key2, `from (${value._value}) to`, valIn, `(${val2})`, "type", type, "interpolate", interpolateArgs), value;
335
+ }
336
+ }, args);
337
+ return import_react.default.useEffect(function () {
338
+ wasExitingRef.current = isExiting;
339
+ }), (0, import_constants.useIsomorphicLayoutEffect)(function () {
340
+ res.runners.forEach(function (r) {
341
+ return r();
342
+ });
343
+ var cycleId = exitCycleIdRef.current;
344
+ if (res.completions.length === 0) {
345
+ onDidAnimate?.(), isExiting && !exitCompletedRef.current && (exitCompletedRef.current = !0, sendExitComplete?.());
346
+ return;
347
+ }
348
+ var cancel = !1;
349
+ return Promise.all(res.completions).then(function () {
350
+ cancel || isExiting && cycleId !== exitCycleIdRef.current || isExiting && exitCompletedRef.current || (onDidAnimate?.(), isExiting && (exitCompletedRef.current = !0, sendExitComplete?.()));
351
+ }), function () {
352
+ cancel = !0;
353
+ };
354
+ }, args), useStyleEmitter?.(function (nextStyle) {
355
+ for (var key in nextStyle) {
356
+ var rawVal = nextStyle[key],
357
+ val = resolveDynamicValue(rawVal, isDark);
358
+ if (val !== void 0) if (key === "transform" && Array.isArray(val)) {
359
+ var _iteratorNormalCompletion = !0,
360
+ _didIteratorError = !1,
361
+ _iteratorError = void 0;
362
+ try {
363
+ for (var _iterator = val.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
364
+ var [index, transform] = _step.value,
365
+ _animatedTranforms_current_index;
366
+ if (transform) {
367
+ var tkey = Object.keys(transform)[0],
368
+ currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];
369
+ animatedTranforms.current[index] = {
370
+ [tkey]: update(tkey, currentTransform, transform[tkey])
371
+ };
372
+ }
373
+ }
374
+ } catch (err) {
375
+ _didIteratorError = !0, _iteratorError = err;
376
+ } finally {
377
+ try {
378
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
379
+ } finally {
380
+ if (_didIteratorError) throw _iteratorError;
381
+ }
382
+ }
383
+ } else (animatedStyleKey[key] != null || costlyToAnimateStyleKey[key]) && (animateStyles.current[key] = update(key, animateStyles.current[key], val));
384
+ }
385
+ res.runners.forEach(function (r) {
386
+ return r();
387
+ });
388
+ function update(key2, animated, valIn) {
389
+ var isColor = colorStyleKey[key2],
390
+ [numVal, type] = isColor ? [0, void 0] : getValue(valIn),
391
+ animateToValue = numVal,
392
+ value = animated || new import_react_native.Animated.Value(numVal),
393
+ curInterpolation = animationsState.current.get(value);
394
+ if (type) {
395
+ var _curInterpolation_current;
396
+ animationsState.current.set(value, {
397
+ interpolation: value.interpolate(getInterpolated((_curInterpolation_current = curInterpolation?.current) !== null && _curInterpolation_current !== void 0 ? _curInterpolation_current : value._value, numVal, type)),
398
+ current: numVal
399
+ });
400
+ }
401
+ isColor && (animateToValue = curInterpolation?.animateToValue ? 0 : 1, animationsState.current.set(value, {
402
+ current: valIn,
403
+ interpolation: value.interpolate(getColorInterpolated(curInterpolation?.current, valIn, animateToValue)),
404
+ animateToValue: curInterpolation?.animateToValue ? 0 : 1
405
+ }));
406
+ var animationConfig = getAnimationConfig(key2, animations, props.transition, "default");
407
+ return res.runners.push(function () {
408
+ value.stopAnimation();
409
+ var anim = import_react_native.Animated[animationConfig.type || "spring"](value, {
410
+ toValue: animateToValue,
411
+ useNativeDriver: nativeDriver,
412
+ ...animationConfig
413
+ });
414
+ (animationConfig.delay ? import_react_native.Animated.sequence([import_react_native.Animated.delay(animationConfig.delay), anim]) : anim).start();
415
+ }), value;
416
+ }
417
+ }), process.env.NODE_ENV === "development" && props.debug === "verbose" && console.info("Animated", {
418
+ response: res,
419
+ inputStyle: style,
420
+ isExiting
421
+ }), res;
422
+ }
423
+ };
424
+ }
425
+ function getColorInterpolated(currentColor, nextColor, animateToValue) {
426
+ var inputRange = [0, 1],
427
+ outputRange = [currentColor || nextColor, nextColor];
428
+ return animateToValue === 0 && outputRange.reverse(), {
429
+ inputRange,
430
+ outputRange
431
+ };
432
+ }
433
+ function getInterpolated(current, next) {
434
+ var postfix = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "deg";
435
+ next === current && (current = next - 1e-9);
436
+ var inputRange = [current, next],
437
+ outputRange = [`${current}${postfix}`, `${next}${postfix}`];
438
+ return next < current && (inputRange.reverse(), outputRange.reverse()), {
439
+ inputRange,
440
+ outputRange
441
+ };
442
+ }
443
+ function getAnimationConfig(key, animations, transition) {
444
+ var animationState = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "default",
445
+ normalized = (0, import_animation_helpers.normalizeTransition)(transition),
446
+ shortKey = transformShorthands[key],
447
+ _normalized_properties_key,
448
+ propAnimation = (_normalized_properties_key = normalized.properties[key]) !== null && _normalized_properties_key !== void 0 ? _normalized_properties_key : normalized.properties[shortKey],
449
+ animationType = null,
450
+ extraConf = {};
451
+ typeof propAnimation == "string" ? animationType = propAnimation : propAnimation && (typeof propAnimation > "u" ? "undefined" : _type_of(propAnimation)) === "object" ? (animationType = propAnimation.type || (0, import_animation_helpers.getEffectiveAnimation)(normalized, animationState), extraConf = propAnimation) : animationType = (0, import_animation_helpers.getEffectiveAnimation)(normalized, animationState), normalized.delay && !extraConf.delay && (extraConf = {
452
+ ...extraConf,
453
+ delay: normalized.delay
454
+ });
455
+ var found = animationType ? animations[animationType] : {};
456
+ return {
457
+ ...found,
458
+ // Apply global spring config overrides (from transition={['bouncy', { stiffness: 1000 }]})
459
+ ...normalized.config,
460
+ // Property-specific config takes highest precedence
461
+ ...extraConf
462
+ };
463
+ }
464
+ var transformShorthands = {
465
+ x: "translateX",
466
+ y: "translateY",
467
+ translateX: "x",
468
+ translateY: "y"
469
+ };
470
+ function getValue(input) {
471
+ var isColor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
472
+ if (typeof input != "string") return [input];
473
+ var _input_match,
474
+ [_, number, after] = (_input_match = input.match(/([-0-9]+)(deg|%|px)/)) !== null && _input_match !== void 0 ? _input_match : [];
475
+ return [+number, after];
476
+ }
477
+ //# sourceMappingURL=createAnimations.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","createAnimations_exports","__export","AnimatedText","AnimatedView","createAnimations","useAnimatedNumber","useAnimatedNumberReaction","useAnimatedNumberStyle","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","_value","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","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","map","r","_animationsState_current_get","key2","val2","get","interpolation","animatedStyle","fromEntries","param2","k","v","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","debug","info","useIsomorphicLayoutEffect","forEach","cycleId","cancel","all","then","nextStyle","Array","isArray","isColor","numVal","anim","response","currentColor","nextColor","inputRange"],"sources":["../../src/createAnimations.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,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;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAA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= Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
7
+ get: () => from[key],
8
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
+ });
10
+ return to;
11
+ },
12
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
14
+ value: !0
15
+ }), mod);
16
+ var index_exports = {};
17
+ module.exports = __toCommonJS(index_exports);
18
+ var import_polyfill = require("./polyfill.cjs");
19
+ __reExport(index_exports, require("./createAnimations.cjs"), module.exports);
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __copyProps = (to, from, except, desc) => {
8
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
+ get: () => from[key],
10
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
+ });
12
+ return to;
13
+ },
14
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
+ value: !0
17
+ }), mod);
18
+ var index_exports = {};
19
+ module.exports = __toCommonJS(index_exports);
20
+ var import_polyfill = require("./polyfill.native.js");
21
+ __reExport(index_exports, require("./createAnimations.native.js"), module.exports);
22
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports","import_polyfill","require"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAO,CAAAK,aAAA;AAEP,IAAAG,eAAA,GAAAC,OAAc","ignoreList":[]}
@@ -0,0 +1 @@
1
+ typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
4
+ //# sourceMappingURL=polyfill.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["../../src/polyfill.ts"],"sourcesContent":[null],"mappings":"AACI,YAAO","ignoreList":[]}