@tamagui/animations-moti 2.0.0-rc.9 → 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.
Files changed (38) hide show
  1. package/dist/cjs/createAnimations.cjs +224 -172
  2. package/dist/cjs/createAnimations.native.js +227 -189
  3. package/dist/cjs/createAnimations.native.js.map +1 -1
  4. package/dist/cjs/index.cjs +7 -5
  5. package/dist/cjs/index.native.js +7 -5
  6. package/dist/cjs/index.native.js.map +1 -1
  7. package/dist/cjs/polyfill.cjs +6 -2
  8. package/dist/cjs/polyfill.native.js +6 -2
  9. package/dist/cjs/polyfill.native.js.map +1 -1
  10. package/dist/esm/createAnimations.mjs +194 -144
  11. package/dist/esm/createAnimations.mjs.map +1 -1
  12. package/dist/esm/createAnimations.native.js +197 -161
  13. package/dist/esm/createAnimations.native.js.map +1 -1
  14. package/dist/esm/index.js +1 -2
  15. package/dist/esm/index.js.map +1 -6
  16. package/dist/esm/index.mjs +0 -1
  17. package/dist/esm/index.mjs.map +1 -1
  18. package/dist/esm/index.native.js +0 -1
  19. package/dist/esm/index.native.js.map +1 -1
  20. package/dist/esm/polyfill.mjs +6 -2
  21. package/dist/esm/polyfill.mjs.map +1 -1
  22. package/dist/esm/polyfill.native.js +6 -2
  23. package/dist/esm/polyfill.native.js.map +1 -1
  24. package/package.json +9 -9
  25. package/src/createAnimations.tsx +2 -2
  26. package/types/createAnimations.d.ts.map +3 -3
  27. package/types/index.d.ts.map +2 -2
  28. package/types/polyfill.d.ts.map +2 -2
  29. package/dist/cjs/createAnimations.js +0 -220
  30. package/dist/cjs/createAnimations.js.map +0 -6
  31. package/dist/cjs/index.js +0 -16
  32. package/dist/cjs/index.js.map +0 -6
  33. package/dist/cjs/polyfill.js +0 -3
  34. package/dist/cjs/polyfill.js.map +0 -6
  35. package/dist/esm/createAnimations.js +0 -218
  36. package/dist/esm/createAnimations.js.map +0 -6
  37. package/dist/esm/polyfill.js +0 -3
  38. package/dist/esm/polyfill.js.map +0 -6
@@ -4,138 +4,143 @@ var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf,
8
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
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, {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
18
  get: () => from[key],
18
19
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
20
  });
20
- return to;
21
- };
21
+ }
22
+ return to;
23
+ };
22
24
  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);
25
+ // If the importer is in node compatibility mode or this is not an ESM
26
+ // file that has been converted to a CommonJS file using a Babel-
27
+ // compatible transform (i.e. "__esModule" has not been set), then set
28
+ // "default" to the CommonJS "module.exports" for node compatibility.
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
+ value: mod,
31
+ enumerable: true
32
+ }) : target, mod));
33
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
+ value: true
35
+ }), mod);
34
36
  var createAnimations_exports = {};
35
37
  __export(createAnimations_exports, {
36
38
  createAnimations: () => createAnimations
37
39
  });
38
40
  module.exports = __toCommonJS(createAnimations_exports);
39
- var import_jsx_runtime = require("react/jsx-runtime"),
40
- import_use_presence = require("@tamagui/use-presence"),
41
- import_core = require("@tamagui/core"),
42
- import_author = require("moti/author"),
43
- import_react = __toESM(require("react"), 1),
44
- import_react_native_reanimated = __toESM(require("react-native-reanimated"), 1);
41
+ var import_jsx_runtime = require("react/jsx-runtime");
42
+ var import_use_presence = require("@tamagui/use-presence");
43
+ var import_core = require("@tamagui/core");
44
+ var import_author = require("moti/author");
45
+ var import_react = __toESM(require("react"), 1);
46
+ var import_react_native_reanimated = __toESM(require("react-native-reanimated"), 1);
45
47
  function _type_of(obj) {
46
48
  "@swc/helpers - typeof";
47
49
 
48
- return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
50
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
49
51
  }
50
52
  var resolveDynamicValue = function (value, isDark) {
51
- if (value && (typeof value > "u" ? "undefined" : _type_of(value)) === "object" && "dynamic" in value) {
52
- var dynamicValue = isDark ? value.dynamic.dark : value.dynamic.light;
53
- return dynamicValue;
54
- }
55
- return value;
56
- },
57
- safeESModule = function (a) {
58
- var b = a,
59
- out = b.__esModule || b[Symbol.toStringTag] === "Module" ? b.default : b;
60
- return out || a;
61
- },
62
- Animated = safeESModule(import_react_native_reanimated.default);
53
+ if (value && (typeof value === "undefined" ? "undefined" : _type_of(value)) === "object" && "dynamic" in value) {
54
+ var dynamicValue = isDark ? value.dynamic.dark : value.dynamic.light;
55
+ return dynamicValue;
56
+ }
57
+ return value;
58
+ };
59
+ var safeESModule = function (a) {
60
+ var b = a;
61
+ var out = b.__esModule || b[Symbol.toStringTag] === "Module" ? b.default : b;
62
+ return out || a;
63
+ };
64
+ var Animated = safeESModule(import_react_native_reanimated.default);
63
65
  function createTamaguiAnimatedComponent() {
64
- var defaultTag = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "div",
65
- isText = defaultTag === "span",
66
- Component = Animated.createAnimatedComponent(/* @__PURE__ */(0, import_react.forwardRef)(function (propsIn, ref) {
67
- var _hooks_usePropsTransform,
68
- {
69
- forwardedRef,
70
- animation,
71
- render = defaultTag,
72
- ...propsRest
73
- } = propsIn,
74
- hostRef = (0, import_react.useRef)(null),
75
- composedRefs = (0, import_core.useComposedRefs)(forwardedRef, ref, hostRef),
76
- stateRef = (0, import_react.useRef)(null);
77
- stateRef.current || (stateRef.current = {
66
+ var defaultTag = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "div";
67
+ var isText = defaultTag === "span";
68
+ var Component = Animated.createAnimatedComponent(/* @__PURE__ */(0, import_react.forwardRef)(function (propsIn, ref) {
69
+ var _hooks_usePropsTransform;
70
+ var {
71
+ forwardedRef,
72
+ animation,
73
+ render = defaultTag,
74
+ ...propsRest
75
+ } = propsIn;
76
+ var hostRef = (0, import_react.useRef)(null);
77
+ var composedRefs = (0, import_core.useComposedRefs)(forwardedRef, ref, hostRef);
78
+ var stateRef = (0, import_react.useRef)(null);
79
+ if (!stateRef.current) {
80
+ stateRef.current = {
78
81
  get host() {
79
82
  return hostRef.current;
80
83
  }
81
- });
82
- var [_, state] = (0, import_core.useThemeWithState)({}),
83
- result = (0, import_core.getSplitStyles)(propsRest, isText ? import_core.Text.staticConfig : import_core.View.staticConfig, state?.theme, state?.name, {
84
- unmounted: !1
85
- }, {
86
- isAnimated: !1,
87
- noClass: !0
88
- }),
89
- props = result?.viewProps || {},
90
- Element = render,
91
- transformedProps = (_hooks_usePropsTransform = import_core.hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(import_core.hooks, render, props, stateRef, !1);
92
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Element, {
93
- ...transformedProps,
94
- ref: composedRefs
95
- });
96
- }));
97
- return Component.acceptTagProp = !0, Component;
84
+ };
85
+ }
86
+ var [_, state] = (0, import_core.useThemeWithState)({});
87
+ var result = (0, import_core.getSplitStyles)(propsRest, isText ? import_core.Text.staticConfig : import_core.View.staticConfig, state === null || state === void 0 ? void 0 : state.theme, state === null || state === void 0 ? void 0 : state.name, {
88
+ unmounted: false
89
+ }, {
90
+ isAnimated: false,
91
+ noClass: true
92
+ });
93
+ var props = (result === null || result === void 0 ? void 0 : result.viewProps) || {};
94
+ var Element = render;
95
+ var transformedProps = (_hooks_usePropsTransform = import_core.hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(import_core.hooks, render, props, stateRef, false);
96
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Element, {
97
+ ...transformedProps,
98
+ ref: composedRefs
99
+ });
100
+ }));
101
+ Component["acceptRenderProp"] = true;
102
+ return Component;
98
103
  }
99
- var AnimatedView = createTamaguiAnimatedComponent("div"),
100
- AnimatedText = createTamaguiAnimatedComponent("span"),
101
- onlyAnimateKeys = {
102
- transform: !0,
103
- opacity: !0,
104
- height: !0,
105
- width: !0,
106
- backgroundColor: !0,
107
- borderColor: !0,
108
- borderLeftColor: !0,
109
- borderRightColor: !0,
110
- borderTopColor: !0,
111
- borderBottomColor: !0,
112
- borderRadius: !0,
113
- borderTopLeftRadius: !0,
114
- borderTopRightRadius: !0,
115
- borderBottomLeftRadius: !0,
116
- borderBottomRightRadius: !0,
117
- borderLeftWidth: !0,
118
- borderRightWidth: !0,
119
- borderTopWidth: !0,
120
- borderBottomWidth: !0,
121
- color: !0,
122
- left: !0,
123
- right: !0,
124
- top: !0,
125
- bottom: !0,
126
- fontSize: !0,
127
- fontWeight: !0,
128
- lineHeight: !0,
129
- letterSpacing: !0
130
- };
104
+ var AnimatedView = createTamaguiAnimatedComponent("div");
105
+ var AnimatedText = createTamaguiAnimatedComponent("span");
106
+ var onlyAnimateKeys = {
107
+ transform: true,
108
+ opacity: true,
109
+ height: true,
110
+ width: true,
111
+ backgroundColor: true,
112
+ borderColor: true,
113
+ borderLeftColor: true,
114
+ borderRightColor: true,
115
+ borderTopColor: true,
116
+ borderBottomColor: true,
117
+ borderRadius: true,
118
+ borderTopLeftRadius: true,
119
+ borderTopRightRadius: true,
120
+ borderBottomLeftRadius: true,
121
+ borderBottomRightRadius: true,
122
+ borderLeftWidth: true,
123
+ borderRightWidth: true,
124
+ borderTopWidth: true,
125
+ borderBottomWidth: true,
126
+ color: true,
127
+ left: true,
128
+ right: true,
129
+ top: true,
130
+ bottom: true,
131
+ fontSize: true,
132
+ fontWeight: true,
133
+ lineHeight: true,
134
+ letterSpacing: true
135
+ };
131
136
  function createAnimations(animations) {
132
137
  return {
138
+ needsCustomComponent: true,
133
139
  View: import_core.isWeb ? AnimatedView : Animated.View,
134
140
  Text: import_core.isWeb ? AnimatedText : Animated.Text,
135
141
  // View: Animated.View,
136
142
  // Text: Animated.Text,
137
- isReactNative: !0,
138
- supportsCSS: !1,
143
+ isReactNative: true,
139
144
  inputStyle: "value",
140
145
  outputStyle: "inline",
141
146
  animations,
@@ -162,15 +167,22 @@ function createAnimations(animations) {
162
167
  type: "spring"
163
168
  },
164
169
  onFinish = arguments.length > 2 ? arguments[2] : void 0;
165
- config.type === "direct" ? (sharedValue.value = next, onFinish?.()) : config.type === "spring" ? sharedValue.value = (0, import_react_native_reanimated.withSpring)(next, config, onFinish ? function () {
166
- "worklet";
170
+ if (config.type === "direct") {
171
+ sharedValue.value = next;
172
+ onFinish === null || onFinish === void 0 ? void 0 : onFinish();
173
+ } else if (config.type === "spring") {
174
+ sharedValue.value = (0, import_react_native_reanimated.withSpring)(next, config, onFinish ? function () {
175
+ "worklet";
167
176
 
168
- (0, import_react_native_reanimated.runOnJS)(onFinish)();
169
- } : void 0) : sharedValue.value = (0, import_react_native_reanimated.withTiming)(next, config, onFinish ? function () {
170
- "worklet";
177
+ (0, import_react_native_reanimated.runOnJS)(onFinish)();
178
+ } : void 0);
179
+ } else {
180
+ sharedValue.value = (0, import_react_native_reanimated.withTiming)(next, config, onFinish ? function () {
181
+ "worklet";
171
182
 
172
- (0, import_react_native_reanimated.runOnJS)(onFinish)();
173
- } : void 0);
183
+ (0, import_react_native_reanimated.runOnJS)(onFinish)();
184
+ } : void 0);
185
+ }
174
186
  },
175
187
  stop() {
176
188
  "worklet";
@@ -182,13 +194,15 @@ function createAnimations(animations) {
182
194
  },
183
195
  useAnimatedNumberReaction(param, onValue) {
184
196
  var {
185
- value
186
- } = param,
187
- instance = value.getInstance();
197
+ value
198
+ } = param;
199
+ var instance = value.getInstance();
188
200
  return (0, import_react_native_reanimated.useAnimatedReaction)(function () {
189
201
  return instance.value;
190
202
  }, function (next, prev) {
191
- prev !== next && (0, import_react_native_reanimated.runOnJS)(onValue)(next);
203
+ if (prev !== next) {
204
+ (0, import_react_native_reanimated.runOnJS)(onValue)(next);
205
+ }
192
206
  },
193
207
  // dependency array is very important here
194
208
  [onValue, instance]);
@@ -197,12 +211,12 @@ function createAnimations(animations) {
197
211
  * `getStyle` must be a worklet
198
212
  */
199
213
  useAnimatedNumberStyle(val, getStyle) {
200
- var instance = val.getInstance(),
201
- derivedValue = (0, import_react_native_reanimated.useDerivedValue)(function () {
202
- return instance.value;
203
- },
204
- // dependency array is very important here
205
- [instance, getStyle]);
214
+ var instance = val.getInstance();
215
+ var derivedValue = (0, import_react_native_reanimated.useDerivedValue)(function () {
216
+ return instance.value;
217
+ },
218
+ // dependency array is very important here
219
+ [instance, getStyle]);
206
220
  return (0, import_react_native_reanimated.useAnimatedStyle)(function () {
207
221
  return getStyle(derivedValue.value);
208
222
  },
@@ -210,78 +224,102 @@ function createAnimations(animations) {
210
224
  [val, getStyle, derivedValue, instance]);
211
225
  },
212
226
  useAnimations: function (animationProps) {
213
- var _themeState_name,
214
- {
215
- props,
216
- presence,
217
- style,
218
- componentState
219
- } = animationProps,
220
- animationKey = Array.isArray(props.transition) ? props.transition[0] : props.transition,
221
- isHydrating = componentState.unmounted === !0,
222
- disableAnimation = isHydrating || !animationKey,
223
- presenceContext = import_react.default.useContext(import_use_presence.PresenceContext),
224
- [, themeState] = (0, import_core.useThemeWithState)({}),
225
- isDark = themeState?.scheme === "dark" || (themeState == null || (_themeState_name = themeState.name) === null || _themeState_name === void 0 ? void 0 : _themeState_name.startsWith("dark")),
226
- {
227
- dontAnimate,
228
- motiProps
229
- } = (0, import_react.useMemo)(function () {
230
- var animate = {},
231
- dontAnimate2 = {};
232
- if (disableAnimation) for (var key in style) {
233
- var rawValue = style[key],
234
- value = resolveDynamicValue(rawValue, isDark);
235
- value !== void 0 && (dontAnimate2[key] = value);
236
- } else {
237
- var animateOnly = props.animateOnly;
238
- for (var key1 in style) {
239
- var rawValue1 = style[key1],
240
- value1 = resolveDynamicValue(rawValue1, isDark);
241
- value1 !== void 0 && (!onlyAnimateKeys[key1] || value1 === "auto" || typeof value1 == "string" && value1.startsWith("calc") || animateOnly && !animateOnly.includes(key1) ? dontAnimate2[key1] = value1 : animate[key1] = value1);
227
+ var _themeState_name;
228
+ var {
229
+ props,
230
+ presence,
231
+ style,
232
+ componentState
233
+ } = animationProps;
234
+ var animationKey = Array.isArray(props.transition) ? props.transition[0] : props.transition;
235
+ var isHydrating = componentState.unmounted === true;
236
+ var disableAnimation = isHydrating || !animationKey;
237
+ var presenceContext = import_react.default.useContext(import_use_presence.PresenceContext);
238
+ var [, themeState] = (0, import_core.useThemeWithState)({});
239
+ 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"));
240
+ var {
241
+ dontAnimate,
242
+ motiProps
243
+ } = (0, import_react.useMemo)(function () {
244
+ var animate = {};
245
+ var dontAnimate2 = {};
246
+ if (disableAnimation) {
247
+ for (var key in style) {
248
+ var rawValue = style[key];
249
+ var value = resolveDynamicValue(rawValue, isDark);
250
+ if (value === void 0) continue;
251
+ dontAnimate2[key] = value;
252
+ }
253
+ } else {
254
+ var animateOnly = props.animateOnly;
255
+ for (var key1 in style) {
256
+ var rawValue1 = style[key1];
257
+ var value1 = resolveDynamicValue(rawValue1, isDark);
258
+ if (value1 === void 0) continue;
259
+ if (!onlyAnimateKeys[key1] || value1 === "auto" || typeof value1 === "string" && value1.startsWith("calc") || animateOnly && !animateOnly.includes(key1)) {
260
+ dontAnimate2[key1] = value1;
261
+ } else {
262
+ animate[key1] = value1;
242
263
  }
243
264
  }
244
- if (componentState.unmounted === "should-enter") for (var key2 in style) {
245
- var rawValue2 = style[key2],
246
- value2 = resolveDynamicValue(rawValue2, isDark);
247
- value2 !== void 0 && (dontAnimate2[key2] = value2);
265
+ }
266
+ if (componentState.unmounted === "should-enter") {
267
+ for (var key2 in style) {
268
+ var rawValue2 = style[key2];
269
+ var value2 = resolveDynamicValue(rawValue2, isDark);
270
+ if (value2 === void 0) continue;
271
+ dontAnimate2[key2] = value2;
248
272
  }
249
- var styles = animate,
250
- isExiting = !!presence?.[1],
251
- usePresenceValue = presence || void 0,
252
- transition = isHydrating ? {
253
- type: "transition",
254
- duration: 0
255
- } : animations[animationKey],
256
- hasClonedTransition = !1;
257
- if (Array.isArray(props.transition)) {
258
- var config = props.transition[1];
259
- if (config && (typeof config > "u" ? "undefined" : _type_of(config)) === "object") for (var key3 in config) {
273
+ }
274
+ var styles = animate;
275
+ var isExiting = Boolean(presence === null || presence === void 0 ? void 0 : presence[1]);
276
+ var usePresenceValue = presence || void 0;
277
+ var transition = isHydrating ? {
278
+ type: "transition",
279
+ duration: 0
280
+ } : animations[animationKey];
281
+ var hasClonedTransition = false;
282
+ if (Array.isArray(props.transition)) {
283
+ var config = props.transition[1];
284
+ if (config && (typeof config === "undefined" ? "undefined" : _type_of(config)) === "object") {
285
+ for (var key3 in config) {
260
286
  var val = config[key3];
261
- hasClonedTransition || (transition = Object.assign({}, transition), hasClonedTransition = !0), typeof val == "string" ? transition[key3] = animations[val] : transition[key3] = val;
287
+ if (!hasClonedTransition) {
288
+ transition = Object.assign({}, transition);
289
+ hasClonedTransition = true;
290
+ }
291
+ if (typeof val === "string") {
292
+ transition[key3] = animations[val];
293
+ } else {
294
+ transition[key3] = val;
295
+ }
262
296
  }
263
297
  }
264
- return {
265
- dontAnimate: dontAnimate2,
266
- motiProps: {
267
- animate: isExiting || componentState.unmounted === !0 ? {} : styles,
268
- transition: componentState.unmounted ? {
269
- duration: 0
270
- } : transition,
271
- usePresenceValue,
272
- presenceContext,
273
- exit: isExiting ? styles : void 0
274
- }
275
- };
276
- }, [presenceContext, presence, animationKey, componentState.unmounted, JSON.stringify(style), presenceContext, isDark]),
277
- moti = (0, import_author.useMotify)(motiProps);
278
- return process.env.NODE_ENV === "development" && props.debug && props.debug !== "profile" && console.info("useMotify(", JSON.stringify(motiProps, null, 2) + ")", {
279
- "componentState.unmounted": componentState.unmounted,
280
- animationProps,
281
- motiProps,
282
- moti,
283
- style: [dontAnimate, moti.style]
284
- }), {
298
+ }
299
+ return {
300
+ dontAnimate: dontAnimate2,
301
+ motiProps: {
302
+ animate: isExiting || componentState.unmounted === true ? {} : styles,
303
+ transition: componentState.unmounted ? {
304
+ duration: 0
305
+ } : transition,
306
+ usePresenceValue,
307
+ presenceContext,
308
+ exit: isExiting ? styles : void 0
309
+ }
310
+ };
311
+ }, [presenceContext, presence, animationKey, componentState.unmounted, JSON.stringify(style), presenceContext, isDark]);
312
+ var moti = (0, import_author.useMotify)(motiProps);
313
+ if (process.env.NODE_ENV === "development" && props["debug"] && props["debug"] !== "profile") {
314
+ console.info(`useMotify(`, JSON.stringify(motiProps, null, 2) + ")", {
315
+ "componentState.unmounted": componentState.unmounted,
316
+ animationProps,
317
+ motiProps,
318
+ moti,
319
+ style: [dontAnimate, moti.style]
320
+ });
321
+ }
322
+ return {
285
323
  style: [dontAnimate, moti.style]
286
324
  };
287
325
  }
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","createAnimations_exports","__export","createAnimations","module","exports","import_jsx_runtime","require","import_use_presence","import_core","import_author","import_react","__toESM","import_react_native_reanimated","_type_of","obj","Symbol","constructor","resolveDynamicValue","isDark","dynamicValue","dynamic","dark","light","safeESModule","a","b","out","__esModule","toStringTag","default","Animated","createTamaguiAnimatedComponent","defaultTag","arguments","length","isText","Component","createAnimatedComponent","forwardRef","propsIn","ref","_hooks_usePropsTransform","forwardedRef","animation","render","propsRest","hostRef","useRef","composedRefs","useComposedRefs","stateRef","current","host","_","state","useThemeWithState","result","getSplitStyles","Text","staticConfig","View","theme","name","unmounted","isAnimated","noClass","props","viewProps","Element","transformedProps","hooks","usePropsTransform","call","jsx","acceptTagProp","AnimatedView","AnimatedText","onlyAnimateKeys","transform","opacity","height","width","backgroundColor","borderColor","borderLeftColor","borderRightColor","borderTopColor","borderBottomColor","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","color","left","right","top","bottom","fontSize","fontWeight","lineHeight","letterSpacing","animations","isWeb","isReactNative","supportsCSS","inputStyle","outputStyle","usePresence","ResetPresence","useAnimatedNumber","initial","sharedValue","useSharedValue","useMemo","getInstance","getValue","setValue","next","config","type","onFinish","withSpring","runOnJS","withTiming","stop","cancelAnimation","useAnimatedNumberReaction","param","onValue","instance","useAnimatedReaction","prev","useAnimatedNumberStyle","val","getStyle","derivedValue","useDerivedValue","useAnimatedStyle","useAnimations","animationProps","_themeState_name","presence","style","componentState","animationKey","Array","isArray","transition","isHydrating","disableAnimation","presenceContext","useContext","PresenceContext","themeState","scheme","startsWith","dontAnimate","motiProps","animate","dontAnimate2","key","rawValue","animateOnly","key1","rawValue1","value1","includes","key2","rawValue2","value2","styles","isExiting","usePresenceValue","duration","hasClonedTransition","key3","Object","assign"],"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,gBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAA4D,CAAAK,wBAAA;AAe5D,IAAAK,kBAAM,GAAAC,OAAuB,oBACvB;EAAAC,mBAA0B,GAAAD,OAAY,wBACnB;EAAAE,WAAe,GAAAF,OAAQ,gBAAa,CAAQ;EAAAG,aAwB/D,GAAAH,OAAA,cAAiD;EAAAI,YAAA,GAAAC,OAAA,CAAAL,OAAA;EAAAM,8BAAA,GAAAD,OAAA,CAAAL,OAAA;AACrD,SAAMO,QAAIA,CAAAC,GAAA;EAGV,uBAFc;;EAGhB,OAEMA,GAAA,IAAW,OAAAC,MAAa,UAAAD,GAAA,CAAAE,WAAA,KAAAD,MAAS,qBAAAD,GAAA;AAOvC;AACE,IAAAG,mBAAe,YAAAA,CAAelB,KAExB,EAAAmB,MAAA;IAAqB,IAAAnB,KACzB,YAAAA,KAAA,MAAY,cAAc,GAAQc,QAAA,CAAAd,KAAA,gCAAAA,KAAA;MAChC,IAAAoB,YAAQ,GAAAD,MAAc,GAAAnB,KAAA,CAAAqB,OAAW,CAAAC,IAAS,GAAAtB,KAAA,CAAAqB,OAAe,CAAAE,KAAA;MAIzD,OAAKH,YAAS;IACO;IAEf,OAAApB,KAAA;EAAe;EAAAwB,YACjB,YAAAA,CAAAC,CAAA;IAAA,IACFC,CAAA,GAAAD,CAAA;MAAAE,GAAA,GAAAD,CAAA,CAAAE,UAAA,IAAAF,CAAA,CAAAV,MAAA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MAAA,uBAAA9G,QAAA,CAAA8G,MAAA,iBACA,SAAAyD,IAAA,IAAAzD,MAAA;cACA,IAAQe,GAAA,GAAAf,MAAa,CAAAyD,IAAK;cAIvBD,mBAAA,KAAA3B,UAAA,GAAA6B,MAAA,CAAAC,MAAA,KAAA9B,UAAA,GAAA2B,mBAAA,eAAAzC,GAAA,eAAAc,UAAA,CAAA4B,IAAA,IAAA1E,UAAA,CAAAgC,GAAA,IAAAc,UAAA,CAAA4B,IAAA,IAAA1C,GAAA;YACL;UACF;UACF;YACFuB,WAAA,EAAAG,YAAA;YACFF,SAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","createAnimations_exports","__export","createAnimations","module","exports","import_jsx_runtime","require","import_use_presence","import_core","import_author","import_react","__toESM","import_react_native_reanimated","_type_of","obj","Symbol","constructor","resolveDynamicValue","isDark","dynamicValue","dynamic","dark","light","safeESModule","a","b","out","__esModule","toStringTag","default","Animated","createTamaguiAnimatedComponent","defaultTag","arguments","length","isText","Component","createAnimatedComponent","forwardRef","propsIn","ref","_hooks_usePropsTransform","forwardedRef","animation","render","propsRest","hostRef","useRef","composedRefs","useComposedRefs","stateRef","current","host","_","state","useThemeWithState","result","getSplitStyles","Text","staticConfig","View","theme","name","unmounted","isAnimated","noClass","props","viewProps","Element","transformedProps","hooks","usePropsTransform","call","jsx","AnimatedView","AnimatedText","onlyAnimateKeys","transform","opacity","height","width","backgroundColor","borderColor","borderLeftColor","borderRightColor","borderTopColor","borderBottomColor","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","color","left","right","top","bottom","fontSize","fontWeight","lineHeight","letterSpacing","animations","needsCustomComponent","isWeb","isReactNative","inputStyle","outputStyle","usePresence","ResetPresence","useAnimatedNumber","initial","sharedValue","useSharedValue","useMemo","getInstance","getValue","setValue","next","config","type","onFinish","withSpring","runOnJS","withTiming","stop","cancelAnimation","useAnimatedNumberReaction","param","onValue","instance","useAnimatedReaction","prev","useAnimatedNumberStyle","val","getStyle","derivedValue","useDerivedValue","useAnimatedStyle","useAnimations","animationProps","_themeState_name","presence","style","componentState","animationKey","Array","isArray","transition","isHydrating","disableAnimation","presenceContext","useContext","PresenceContext","themeState","scheme","startsWith","dontAnimate","motiProps","animate","dontAnimate2","key","rawValue","animateOnly","key1","rawValue1","value1","includes","key2","rawValue2","value2","styles","isExiting","Boolean","usePresenceValue","duration","hasClonedTransition","key3","Object","assign","exit"],"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,gBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAA4D,CAAAK,wBAAA;AAE5D,IAAAK,kBAUO,GAAAC,OAAA;AAWP,IAAAC,mBAA0B,GAAAD,OAAA;AAE1B,IAAAE,WAAA,GAAAF,OAAmD;AAGnD,IAAAG,aAAA,GAAAH,OAAA,cASO;AAwDM,IAAAI,YAAA,GAAAC,OAAA,CAAAL,OAAA;AA9Eb,IAAAM,8BAA6B,GAAYD,OAAA,CAAAL,OAAyB;AAChE,SAAIO,QAASA,CAAAC,GAAA,EAAO;EAClB,uBAAqB;;EACrB,OAAAA,GAAO,WAAAC,MAAA,oBAAAD,GAAA,CAAAE,WAAA,KAAAD,MAAA,qBAAAD,GAAA;AAAA;AAET,IAAAG,mBAAO,YAAAA,CAAAlB,KAAA,EAAAmB,MAAA;EACT,IAAAnB,KAAA,YAAAA,KAAA,iCAAAc,QAAA,CAAAd,KAAA,gCAAAA,KAAA;IAoBA,IAAMoB,YAAA,GAAoBD,MAA6B,GAAAnB,KAAA,C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gBACLc,UAAA,CAAA6B,IAAA,IAAA3C,GAAA;cACA;YACD;UAED;QAEA;QAKE;UACEuB,WAAA,EAAAG,YAAA;UACAF,SAAA;YACAC,OAAA,EAAAa,SAAA,IAAA5B,cAAA,CAAApF,SAAA,iBAAA+G,MAAA;YACAvB,UAAA,EAAAJ,cAAA,CAAApF,SAAA;cACAmH,QAAQ;YACT,IAAA3B,UAAA;YACH0B,gBAAA;YAEAvB,eAAO;YACL6B,IAAQ,EAAAR,SAAA,GAAaD,MAAK,GAAK;UACjC;QACF;MACF,IACFpB,eAAA,E","ignoreList":[]}
@@ -3,15 +3,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
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, {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
7
8
  get: () => from[key],
8
9
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
10
  });
10
- return to;
11
- },
12
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
15
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
14
- value: !0
16
+ value: true
15
17
  }), mod);
16
18
  var index_exports = {};
17
19
  module.exports = __toCommonJS(index_exports);
@@ -5,15 +5,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
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, {
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
9
10
  get: () => from[key],
10
11
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
12
  });
12
- return to;
13
- },
14
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
+ }
14
+ return to;
15
+ };
16
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
17
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: !0
18
+ value: true
17
19
  }), mod);
18
20
  var index_exports = {};
19
21
  module.exports = __toCommonJS(index_exports);
@@ -1 +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":[]}
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":[]}