@tamagui/animations-moti 1.90.2 → 1.90.3
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.js +39 -7
- package/dist/cjs/createAnimations.js.map +1 -1
- package/dist/cjs/createAnimations.native.js +80 -24
- package/dist/cjs/createAnimations.native.js.map +2 -2
- package/dist/esm/createAnimations.js +44 -7
- package/dist/esm/createAnimations.js.map +1 -1
- package/dist/esm/createAnimations.mjs +49 -7
- package/dist/esm/createAnimations.native.js +82 -24
- package/dist/esm/createAnimations.native.js.map +2 -2
- package/package.json +4 -4
- package/src/createAnimations.tsx +60 -12
- package/types/createAnimations.d.ts +1 -1
- package/types/createAnimations.d.ts.map +1 -1
|
@@ -25,9 +25,45 @@ __export(createAnimations_exports, {
|
|
|
25
25
|
createAnimations: () => createAnimations
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(createAnimations_exports);
|
|
28
|
-
var import_use_presence = require("@tamagui/use-presence"), import_author = require("moti/author"), import_react = require("react"), import_react_native_reanimated = __toESM(require("react-native-reanimated"));
|
|
28
|
+
var import_use_presence = require("@tamagui/use-presence"), import_web = require("@tamagui/web"), import_author = require("moti/author"), import_react = require("react"), import_react_native_reanimated = __toESM(require("react-native-reanimated")), import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
+
function createTamaguiAnimatedComponent(tag = "div") {
|
|
30
|
+
const Component = import_react_native_reanimated.default.createAnimatedComponent(
|
|
31
|
+
(0, import_react.forwardRef)(({ forwardedRef, style, ...props }, ref) => {
|
|
32
|
+
const composedRefs = (0, import_web.useComposedRefs)(forwardedRef, ref), Element = props.tag || tag;
|
|
33
|
+
return style && Array.isArray(style.transform) && (style.transform = (0, import_web.transformsToString)(style.transform)), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Element, { ...props, style, ref: composedRefs });
|
|
34
|
+
})
|
|
35
|
+
);
|
|
36
|
+
return Component.acceptTagProp = !0, Component;
|
|
37
|
+
}
|
|
38
|
+
const AnimatedView = createTamaguiAnimatedComponent("div"), AnimatedText = createTamaguiAnimatedComponent("span"), neverAnimate = {
|
|
39
|
+
alignItems: !0,
|
|
40
|
+
backdropFilter: !0,
|
|
41
|
+
borderStyle: !0,
|
|
42
|
+
boxSizing: !0,
|
|
43
|
+
contain: !0,
|
|
44
|
+
cursor: !0,
|
|
45
|
+
display: !0,
|
|
46
|
+
flexBasis: !0,
|
|
47
|
+
flexDirection: !0,
|
|
48
|
+
flexShrink: !0,
|
|
49
|
+
justifyContent: !0,
|
|
50
|
+
maxHeight: !0,
|
|
51
|
+
maxWidth: !0,
|
|
52
|
+
overflow: !0,
|
|
53
|
+
overflowX: !0,
|
|
54
|
+
overflowY: !0,
|
|
55
|
+
position: !0,
|
|
56
|
+
shadowColor: !0,
|
|
57
|
+
textAlign: !0,
|
|
58
|
+
textOverflow: !0,
|
|
59
|
+
whiteSpace: !0,
|
|
60
|
+
wordWrap: !0,
|
|
61
|
+
zIndex: !0
|
|
62
|
+
};
|
|
29
63
|
function createAnimations(animations) {
|
|
30
64
|
return {
|
|
65
|
+
// View: isWeb ? AnimatedView : Animated.View,
|
|
66
|
+
// Text: isWeb ? AnimatedText : Animated.Text,
|
|
31
67
|
View: import_react_native_reanimated.default.View,
|
|
32
68
|
Text: import_react_native_reanimated.default.Text,
|
|
33
69
|
isReactNative: !0,
|
|
@@ -83,12 +119,8 @@ function createAnimations(animations) {
|
|
|
83
119
|
dontAnimate = style;
|
|
84
120
|
else {
|
|
85
121
|
const animateOnly = props.animateOnly;
|
|
86
|
-
|
|
87
|
-
dontAnimate =
|
|
88
|
-
for (const key of animateOnly)
|
|
89
|
-
key in style && (animate[key] = style[key], delete dontAnimate[key]);
|
|
90
|
-
} else
|
|
91
|
-
animate = style;
|
|
122
|
+
for (const key in style)
|
|
123
|
+
neverAnimate[key] || animateOnly && !animateOnly.includes(key) ? dontAnimate[key] = style[key] : animate[key] = style[key];
|
|
92
124
|
}
|
|
93
125
|
const animateStr = JSON.stringify(animate), styles = (0, import_react.useMemo)(() => JSON.parse(animateStr), [animateStr]), isExiting = !!presence?.[1], sendExitComplete = presence?.[1], onDidAnimateCombined = (0, import_react.useCallback)(() => {
|
|
94
126
|
onDidAnimate?.(), sendExitComplete?.();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/createAnimations.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA4D,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA4D,kCAC5D,aAKO,yBAEP,gBAA0B,wBAC1B,eAA6D,kBAE7D,iCASO,6CAaM;AATb,SAAS,+BAA+B,MAAM,OAAO;AACnD,QAAM,YAAY,+BAAAA,QAAS;AAAA,QACzB,yBAAW,CAAC,EAAE,cAAc,OAAO,GAAG,MAAM,GAAQ,QAAQ;AAC1D,YAAM,mBAAe,4BAAgB,cAAc,GAAG,GAChD,UAAU,MAAM,OAAO;AAE7B,aAAI,SAAS,MAAM,QAAQ,MAAM,SAAS,MACxC,MAAM,gBAAY,+BAAmB,MAAM,SAAS,IAE/C,4CAAC,WAAS,GAAG,OAAO,OAAc,KAAK,cAAc;AAAA,IAC9D,CAAC;AAAA,EACH;AACA,mBAAU,gBAAmB,IACtB;AACT;AAEA,MAAM,eAAe,+BAA+B,KAAK,GACnD,eAAe,+BAA+B,MAAM,GAEpD,eAAe;AAAA,EACnB,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,WAAW;AAAA,EACX,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,WAAW;AAAA,EACX,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,UAAU;AAAA,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,QACA;AAAA,QACA,OAAO,CAAC,aAAa,KAAK,KAAK;AAAA,MACjC,CAAC,GAGI;AAAA,QACL,OAAO,CAAC,aAAa,KAAK,KAAK;AAAA,MACjC;AAAA,IACF;AAAA,EACF;AACF;",
|
|
5
5
|
"names": ["Animated"]
|
|
6
6
|
}
|
|
@@ -26,7 +26,7 @@ __export(createAnimations_exports, {
|
|
|
26
26
|
createAnimations: () => createAnimations
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(createAnimations_exports);
|
|
29
|
-
var import_use_presence = require("@tamagui/use-presence"), import_author = require("moti/author"), import_react = require("react"), import_react_native_reanimated = __toESM(require("react-native-reanimated"));
|
|
29
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_use_presence = require("@tamagui/use-presence"), import_web = require("@tamagui/web"), import_author = require("moti/author"), import_react = require("react"), import_react_native_reanimated = __toESM(require("react-native-reanimated"));
|
|
30
30
|
function _define_property(obj, key, value) {
|
|
31
31
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
32
32
|
value,
|
|
@@ -37,17 +37,91 @@ function _define_property(obj, key, value) {
|
|
|
37
37
|
}
|
|
38
38
|
function _object_spread(target) {
|
|
39
39
|
for (var i = 1; i < arguments.length; i++) {
|
|
40
|
-
var source = arguments[i] != null ? arguments[i] : {},
|
|
41
|
-
typeof Object.getOwnPropertySymbols == "function" && (
|
|
40
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
41
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
42
42
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
43
|
-
}))),
|
|
43
|
+
}))), ownKeys2.forEach(function(key) {
|
|
44
44
|
_define_property(target, key, source[key]);
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
return target;
|
|
48
48
|
}
|
|
49
|
+
function ownKeys(object, enumerableOnly) {
|
|
50
|
+
var keys = Object.keys(object);
|
|
51
|
+
if (Object.getOwnPropertySymbols) {
|
|
52
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
53
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
54
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
55
|
+
})), keys.push.apply(keys, symbols);
|
|
56
|
+
}
|
|
57
|
+
return keys;
|
|
58
|
+
}
|
|
59
|
+
function _object_spread_props(target, source) {
|
|
60
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
61
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
62
|
+
}), target;
|
|
63
|
+
}
|
|
64
|
+
function _object_without_properties(source, excluded) {
|
|
65
|
+
if (source == null)
|
|
66
|
+
return {};
|
|
67
|
+
var target = _object_without_properties_loose(source, excluded), key, i;
|
|
68
|
+
if (Object.getOwnPropertySymbols) {
|
|
69
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
70
|
+
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
71
|
+
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
72
|
+
}
|
|
73
|
+
return target;
|
|
74
|
+
}
|
|
75
|
+
function _object_without_properties_loose(source, excluded) {
|
|
76
|
+
if (source == null)
|
|
77
|
+
return {};
|
|
78
|
+
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
79
|
+
for (i = 0; i < sourceKeys.length; i++)
|
|
80
|
+
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
81
|
+
return target;
|
|
82
|
+
}
|
|
83
|
+
function createTamaguiAnimatedComponent() {
|
|
84
|
+
var tag = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "div", Component = import_react_native_reanimated.default.createAnimatedComponent(/* @__PURE__ */ (0, import_react.forwardRef)(function(_param, ref) {
|
|
85
|
+
var forwardedRef = _param.forwardedRef, style = _param.style, props = _object_without_properties(_param, [
|
|
86
|
+
"forwardedRef",
|
|
87
|
+
"style"
|
|
88
|
+
]), composedRefs = (0, import_web.useComposedRefs)(forwardedRef, ref), Element = props.tag || tag;
|
|
89
|
+
return style && Array.isArray(style.transform) && (style.transform = (0, import_web.transformsToString)(style.transform)), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Element, _object_spread_props(_object_spread({}, props), {
|
|
90
|
+
style,
|
|
91
|
+
ref: composedRefs
|
|
92
|
+
}));
|
|
93
|
+
}));
|
|
94
|
+
return Component.acceptTagProp = !0, Component;
|
|
95
|
+
}
|
|
96
|
+
var AnimatedView = createTamaguiAnimatedComponent("div"), AnimatedText = createTamaguiAnimatedComponent("span"), neverAnimate = {
|
|
97
|
+
alignItems: !0,
|
|
98
|
+
backdropFilter: !0,
|
|
99
|
+
borderStyle: !0,
|
|
100
|
+
boxSizing: !0,
|
|
101
|
+
contain: !0,
|
|
102
|
+
cursor: !0,
|
|
103
|
+
display: !0,
|
|
104
|
+
flexBasis: !0,
|
|
105
|
+
flexDirection: !0,
|
|
106
|
+
flexShrink: !0,
|
|
107
|
+
justifyContent: !0,
|
|
108
|
+
maxHeight: !0,
|
|
109
|
+
maxWidth: !0,
|
|
110
|
+
overflow: !0,
|
|
111
|
+
overflowX: !0,
|
|
112
|
+
overflowY: !0,
|
|
113
|
+
position: !0,
|
|
114
|
+
shadowColor: !0,
|
|
115
|
+
textAlign: !0,
|
|
116
|
+
textOverflow: !0,
|
|
117
|
+
whiteSpace: !0,
|
|
118
|
+
wordWrap: !0,
|
|
119
|
+
zIndex: !0
|
|
120
|
+
};
|
|
49
121
|
function createAnimations(animations) {
|
|
50
122
|
return {
|
|
123
|
+
// View: isWeb ? AnimatedView : Animated.View,
|
|
124
|
+
// Text: isWeb ? AnimatedText : Animated.Text,
|
|
51
125
|
View: import_react_native_reanimated.default.View,
|
|
52
126
|
Text: import_react_native_reanimated.default.Text,
|
|
53
127
|
isReactNative: !0,
|
|
@@ -131,26 +205,8 @@ function createAnimations(animations) {
|
|
|
131
205
|
dontAnimate = style;
|
|
132
206
|
else {
|
|
133
207
|
var animateOnly = props.animateOnly;
|
|
134
|
-
|
|
135
|
-
dontAnimate =
|
|
136
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
137
|
-
try {
|
|
138
|
-
for (var _iterator = animateOnly[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
139
|
-
var key = _step.value;
|
|
140
|
-
key in style && (animate[key] = style[key], delete dontAnimate[key]);
|
|
141
|
-
}
|
|
142
|
-
} catch (err) {
|
|
143
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
144
|
-
} finally {
|
|
145
|
-
try {
|
|
146
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
147
|
-
} finally {
|
|
148
|
-
if (_didIteratorError)
|
|
149
|
-
throw _iteratorError;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
} else
|
|
153
|
-
animate = style;
|
|
208
|
+
for (var key in style)
|
|
209
|
+
neverAnimate[key] || animateOnly && !animateOnly.includes(key) ? dontAnimate[key] = style[key] : animate[key] = style[key];
|
|
154
210
|
}
|
|
155
211
|
var animateStr = JSON.stringify(animate), styles = (0, import_react.useMemo)(function() {
|
|
156
212
|
return JSON.parse(animateStr);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/packages/animations-moti/src/createAnimations.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
5
|
-
"names": ["
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,sBAA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GAGK;QACLA,OAAO;UAACiF;UAAasB,KAAKvG;;MAC5B;IACF;EACF;AACF;",
|
|
5
|
+
"names": ["createTamaguiAnimatedComponent", "tag", "Component", "Animated", "createAnimatedComponent", "forwardRef", "ref", "forwardedRef", "style", "props", "composedRefs", "useComposedRefs", "Element", "Array", "isArray", "transform", "transformsToString", "_jsx", "AnimatedView", "AnimatedText", "neverAnimate", "alignItems", "backdropFilter", "borderStyle", "boxSizing", "contain", "cursor", "display", "flexBasis", "flexDirection", "flexShrink", "justifyContent", "maxHeight", "maxWidth", "overflow", "overflowX", "overflowY", "position", "shadowColor", "textAlign", "textOverflow", "whiteSpace", "wordWrap", "zIndex", "createAnimations", "animations", "View", "Text", "isReactNative", "usePresence", "ResetPresence", "useAnimatedNumber", "initial", "sharedValue", "useSharedValue", "useMemo", "getInstance", "getValue", "value", "setValue", "next", "config", "type", "withSpring", "withTiming", "stop", "cancelAnimation", "useAnimatedNumberReaction", "onValue", "instance", "useAnimatedReaction", "prev", "runOnJS", "useAnimatedNumberStyle", "val", "getStyle", "derivedValue", "useDerivedValue", "useAnimatedStyle", "useAnimations", "animationProps", "presence", "onDidAnimate", "componentState", "animationKey", "animation", "isHydrating", "unmounted", "animate", "dontAnimate", "animateOnly", "key", "includes", "animateStr", "JSON", "stringify", "styles", "parse", "isExiting", "Boolean", "sendExitComplete", "onDidAnimateCombined", "useCallback", "motiProps", "transition", "usePresenceValue", "presenceContext", "useContext", "PresenceContext", "exit", "undefined", "moti", "useMotify", "process", "env", "NODE_ENV", "console", "info"]
|
|
6
6
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { PresenceContext, ResetPresence, usePresence } from "@tamagui/use-presence";
|
|
2
|
+
import {
|
|
3
|
+
transformsToString,
|
|
4
|
+
useComposedRefs
|
|
5
|
+
} from "@tamagui/web";
|
|
2
6
|
import { useMotify } from "moti/author";
|
|
3
|
-
import { useCallback, useContext, useMemo } from "react";
|
|
7
|
+
import { forwardRef, useCallback, useContext, useMemo } from "react";
|
|
4
8
|
import Animated, {
|
|
5
9
|
cancelAnimation,
|
|
6
10
|
runOnJS,
|
|
@@ -11,8 +15,45 @@ import Animated, {
|
|
|
11
15
|
withSpring,
|
|
12
16
|
withTiming
|
|
13
17
|
} from "react-native-reanimated";
|
|
18
|
+
import { jsx } from "react/jsx-runtime";
|
|
19
|
+
function createTamaguiAnimatedComponent(tag = "div") {
|
|
20
|
+
const Component = Animated.createAnimatedComponent(
|
|
21
|
+
forwardRef(({ forwardedRef, style, ...props }, ref) => {
|
|
22
|
+
const composedRefs = useComposedRefs(forwardedRef, ref), Element = props.tag || tag;
|
|
23
|
+
return style && Array.isArray(style.transform) && (style.transform = transformsToString(style.transform)), /* @__PURE__ */ jsx(Element, { ...props, style, ref: composedRefs });
|
|
24
|
+
})
|
|
25
|
+
);
|
|
26
|
+
return Component.acceptTagProp = !0, Component;
|
|
27
|
+
}
|
|
28
|
+
const AnimatedView = createTamaguiAnimatedComponent("div"), AnimatedText = createTamaguiAnimatedComponent("span"), neverAnimate = {
|
|
29
|
+
alignItems: !0,
|
|
30
|
+
backdropFilter: !0,
|
|
31
|
+
borderStyle: !0,
|
|
32
|
+
boxSizing: !0,
|
|
33
|
+
contain: !0,
|
|
34
|
+
cursor: !0,
|
|
35
|
+
display: !0,
|
|
36
|
+
flexBasis: !0,
|
|
37
|
+
flexDirection: !0,
|
|
38
|
+
flexShrink: !0,
|
|
39
|
+
justifyContent: !0,
|
|
40
|
+
maxHeight: !0,
|
|
41
|
+
maxWidth: !0,
|
|
42
|
+
overflow: !0,
|
|
43
|
+
overflowX: !0,
|
|
44
|
+
overflowY: !0,
|
|
45
|
+
position: !0,
|
|
46
|
+
shadowColor: !0,
|
|
47
|
+
textAlign: !0,
|
|
48
|
+
textOverflow: !0,
|
|
49
|
+
whiteSpace: !0,
|
|
50
|
+
wordWrap: !0,
|
|
51
|
+
zIndex: !0
|
|
52
|
+
};
|
|
14
53
|
function createAnimations(animations) {
|
|
15
54
|
return {
|
|
55
|
+
// View: isWeb ? AnimatedView : Animated.View,
|
|
56
|
+
// Text: isWeb ? AnimatedText : Animated.Text,
|
|
16
57
|
View: Animated.View,
|
|
17
58
|
Text: Animated.Text,
|
|
18
59
|
isReactNative: !0,
|
|
@@ -68,12 +109,8 @@ function createAnimations(animations) {
|
|
|
68
109
|
dontAnimate = style;
|
|
69
110
|
else {
|
|
70
111
|
const animateOnly = props.animateOnly;
|
|
71
|
-
|
|
72
|
-
dontAnimate =
|
|
73
|
-
for (const key of animateOnly)
|
|
74
|
-
key in style && (animate[key] = style[key], delete dontAnimate[key]);
|
|
75
|
-
} else
|
|
76
|
-
animate = style;
|
|
112
|
+
for (const key in style)
|
|
113
|
+
neverAnimate[key] || animateOnly && !animateOnly.includes(key) ? dontAnimate[key] = style[key] : animate[key] = style[key];
|
|
77
114
|
}
|
|
78
115
|
const animateStr = JSON.stringify(animate), styles = useMemo(() => JSON.parse(animateStr), [animateStr]), isExiting = !!presence?.[1], sendExitComplete = presence?.[1], onDidAnimateCombined = useCallback(() => {
|
|
79
116
|
onDidAnimate?.(), sendExitComplete?.();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/createAnimations.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,iBAAiB,eAAe,mBAAmB;
|
|
4
|
+
"mappings": "AAAA,SAAS,iBAAiB,eAAe,mBAAmB;AAC5D;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AAEP,SAAS,iBAAiB;AAC1B,SAAS,YAAY,aAAa,YAAY,eAAe;AAE7D,OAAO;AAAA,EACL;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAaM;AATb,SAAS,+BAA+B,MAAM,OAAO;AACnD,QAAM,YAAY,SAAS;AAAA,IACzB,WAAW,CAAC,EAAE,cAAc,OAAO,GAAG,MAAM,GAAQ,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GAE3D,YAAY,EAAQ,WAAW,CAAC,GAChC,mBAAmB,WAAW,CAAC,GAE/B,uBAAuB,YAAY,MAAM;AAC7C,uBAAe,GACf,mBAAmB;AAAA,MACrB,GAAG,CAAC,CAAC,GAIC,YAAY;AAAA,QAChB,SAAS,aAAa,cAAc,CAAC,IAAI;AAAA,QACzC,YAAY,WAAW,YAAuC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAM9D,cAAc;AAAA,QACd,kBAAkB;AAAA,QAClB,iBAAiB,WAAW,eAAe;AAAA,QAC3C,MAAM,YAAY,SAAS;AAAA,MAC7B,GAEM,OAAO,UAAU,SAAS;AAEhC,aAAI,QAAQ,IAAI,aAAa,iBAAiB,MAAM,SAClD,QAAQ,KAAK,cAAc,KAAK,UAAU,WAAW,MAAM,CAAC,IAAI,KAAK;AAAA,QACnE;AAAA,QACA;AAAA,QACA;AAAA,QACA,OAAO,CAAC,aAAa,KAAK,KAAK;AAAA,MACjC,CAAC,GAGI;AAAA,QACL,OAAO,CAAC,aAAa,KAAK,KAAK;AAAA,MACjC;AAAA,IACF;AAAA,EACF;AACF;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,9 +1,56 @@
|
|
|
1
1
|
import { PresenceContext, ResetPresence, usePresence } from "@tamagui/use-presence";
|
|
2
|
+
import { transformsToString, useComposedRefs } from "@tamagui/web";
|
|
2
3
|
import { useMotify } from "moti/author";
|
|
3
|
-
import { useCallback, useContext, useMemo } from "react";
|
|
4
|
+
import { forwardRef, useCallback, useContext, useMemo } from "react";
|
|
4
5
|
import Animated, { cancelAnimation, runOnJS, useAnimatedReaction, useAnimatedStyle, useDerivedValue, useSharedValue, withSpring, withTiming } from "react-native-reanimated";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
function createTamaguiAnimatedComponent(tag = "div") {
|
|
8
|
+
const Component = Animated.createAnimatedComponent(forwardRef(({
|
|
9
|
+
forwardedRef,
|
|
10
|
+
style,
|
|
11
|
+
...props
|
|
12
|
+
}, ref) => {
|
|
13
|
+
const composedRefs = useComposedRefs(forwardedRef, ref),
|
|
14
|
+
Element = props.tag || tag;
|
|
15
|
+
return style && Array.isArray(style.transform) && (style.transform = transformsToString(style.transform)), /* @__PURE__ */jsx(Element, {
|
|
16
|
+
...props,
|
|
17
|
+
style,
|
|
18
|
+
ref: composedRefs
|
|
19
|
+
});
|
|
20
|
+
}));
|
|
21
|
+
return Component.acceptTagProp = !0, Component;
|
|
22
|
+
}
|
|
23
|
+
const AnimatedView = createTamaguiAnimatedComponent("div"),
|
|
24
|
+
AnimatedText = createTamaguiAnimatedComponent("span"),
|
|
25
|
+
neverAnimate = {
|
|
26
|
+
alignItems: !0,
|
|
27
|
+
backdropFilter: !0,
|
|
28
|
+
borderStyle: !0,
|
|
29
|
+
boxSizing: !0,
|
|
30
|
+
contain: !0,
|
|
31
|
+
cursor: !0,
|
|
32
|
+
display: !0,
|
|
33
|
+
flexBasis: !0,
|
|
34
|
+
flexDirection: !0,
|
|
35
|
+
flexShrink: !0,
|
|
36
|
+
justifyContent: !0,
|
|
37
|
+
maxHeight: !0,
|
|
38
|
+
maxWidth: !0,
|
|
39
|
+
overflow: !0,
|
|
40
|
+
overflowX: !0,
|
|
41
|
+
overflowY: !0,
|
|
42
|
+
position: !0,
|
|
43
|
+
shadowColor: !0,
|
|
44
|
+
textAlign: !0,
|
|
45
|
+
textOverflow: !0,
|
|
46
|
+
whiteSpace: !0,
|
|
47
|
+
wordWrap: !0,
|
|
48
|
+
zIndex: !0
|
|
49
|
+
};
|
|
5
50
|
function createAnimations(animations) {
|
|
6
51
|
return {
|
|
52
|
+
// View: isWeb ? AnimatedView : Animated.View,
|
|
53
|
+
// Text: isWeb ? AnimatedText : Animated.Text,
|
|
7
54
|
View: Animated.View,
|
|
8
55
|
Text: Animated.Text,
|
|
9
56
|
isReactNative: !0,
|
|
@@ -69,12 +116,7 @@ function createAnimations(animations) {
|
|
|
69
116
|
dontAnimate = {};
|
|
70
117
|
if (isHydrating) dontAnimate = style;else {
|
|
71
118
|
const animateOnly = props.animateOnly;
|
|
72
|
-
|
|
73
|
-
dontAnimate = {
|
|
74
|
-
...style
|
|
75
|
-
};
|
|
76
|
-
for (const key of animateOnly) key in style && (animate[key] = style[key], delete dontAnimate[key]);
|
|
77
|
-
} else animate = style;
|
|
119
|
+
for (const key in style) neverAnimate[key] || animateOnly && !animateOnly.includes(key) ? dontAnimate[key] = style[key] : animate[key] = style[key];
|
|
78
120
|
}
|
|
79
121
|
const animateStr = JSON.stringify(animate),
|
|
80
122
|
styles = useMemo(() => JSON.parse(animateStr), [animateStr]),
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { PresenceContext, ResetPresence, usePresence } from "@tamagui/use-presence";
|
|
3
|
+
import { transformsToString, useComposedRefs } from "@tamagui/web";
|
|
2
4
|
import { useMotify } from "moti/author";
|
|
3
|
-
import { useCallback, useContext, useMemo } from "react";
|
|
5
|
+
import { forwardRef, useCallback, useContext, useMemo } from "react";
|
|
4
6
|
import Animated, { cancelAnimation, runOnJS, useAnimatedReaction, useAnimatedStyle, useDerivedValue, useSharedValue, withSpring, withTiming } from "react-native-reanimated";
|
|
5
7
|
function _define_property(obj, key, value) {
|
|
6
8
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
@@ -12,17 +14,91 @@ function _define_property(obj, key, value) {
|
|
|
12
14
|
}
|
|
13
15
|
function _object_spread(target) {
|
|
14
16
|
for (var i = 1; i < arguments.length; i++) {
|
|
15
|
-
var source = arguments[i] != null ? arguments[i] : {},
|
|
16
|
-
typeof Object.getOwnPropertySymbols == "function" && (
|
|
17
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
18
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
17
19
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
18
|
-
}))),
|
|
20
|
+
}))), ownKeys2.forEach(function(key) {
|
|
19
21
|
_define_property(target, key, source[key]);
|
|
20
22
|
});
|
|
21
23
|
}
|
|
22
24
|
return target;
|
|
23
25
|
}
|
|
26
|
+
function ownKeys(object, enumerableOnly) {
|
|
27
|
+
var keys = Object.keys(object);
|
|
28
|
+
if (Object.getOwnPropertySymbols) {
|
|
29
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
30
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
31
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
32
|
+
})), keys.push.apply(keys, symbols);
|
|
33
|
+
}
|
|
34
|
+
return keys;
|
|
35
|
+
}
|
|
36
|
+
function _object_spread_props(target, source) {
|
|
37
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
38
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
39
|
+
}), target;
|
|
40
|
+
}
|
|
41
|
+
function _object_without_properties(source, excluded) {
|
|
42
|
+
if (source == null)
|
|
43
|
+
return {};
|
|
44
|
+
var target = _object_without_properties_loose(source, excluded), key, i;
|
|
45
|
+
if (Object.getOwnPropertySymbols) {
|
|
46
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
47
|
+
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
48
|
+
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
49
|
+
}
|
|
50
|
+
return target;
|
|
51
|
+
}
|
|
52
|
+
function _object_without_properties_loose(source, excluded) {
|
|
53
|
+
if (source == null)
|
|
54
|
+
return {};
|
|
55
|
+
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
56
|
+
for (i = 0; i < sourceKeys.length; i++)
|
|
57
|
+
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
58
|
+
return target;
|
|
59
|
+
}
|
|
60
|
+
function createTamaguiAnimatedComponent() {
|
|
61
|
+
var tag = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "div", Component = Animated.createAnimatedComponent(/* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
62
|
+
var forwardedRef = _param.forwardedRef, style = _param.style, props = _object_without_properties(_param, [
|
|
63
|
+
"forwardedRef",
|
|
64
|
+
"style"
|
|
65
|
+
]), composedRefs = useComposedRefs(forwardedRef, ref), Element = props.tag || tag;
|
|
66
|
+
return style && Array.isArray(style.transform) && (style.transform = transformsToString(style.transform)), /* @__PURE__ */ _jsx(Element, _object_spread_props(_object_spread({}, props), {
|
|
67
|
+
style,
|
|
68
|
+
ref: composedRefs
|
|
69
|
+
}));
|
|
70
|
+
}));
|
|
71
|
+
return Component.acceptTagProp = !0, Component;
|
|
72
|
+
}
|
|
73
|
+
var AnimatedView = createTamaguiAnimatedComponent("div"), AnimatedText = createTamaguiAnimatedComponent("span"), neverAnimate = {
|
|
74
|
+
alignItems: !0,
|
|
75
|
+
backdropFilter: !0,
|
|
76
|
+
borderStyle: !0,
|
|
77
|
+
boxSizing: !0,
|
|
78
|
+
contain: !0,
|
|
79
|
+
cursor: !0,
|
|
80
|
+
display: !0,
|
|
81
|
+
flexBasis: !0,
|
|
82
|
+
flexDirection: !0,
|
|
83
|
+
flexShrink: !0,
|
|
84
|
+
justifyContent: !0,
|
|
85
|
+
maxHeight: !0,
|
|
86
|
+
maxWidth: !0,
|
|
87
|
+
overflow: !0,
|
|
88
|
+
overflowX: !0,
|
|
89
|
+
overflowY: !0,
|
|
90
|
+
position: !0,
|
|
91
|
+
shadowColor: !0,
|
|
92
|
+
textAlign: !0,
|
|
93
|
+
textOverflow: !0,
|
|
94
|
+
whiteSpace: !0,
|
|
95
|
+
wordWrap: !0,
|
|
96
|
+
zIndex: !0
|
|
97
|
+
};
|
|
24
98
|
function createAnimations(animations) {
|
|
25
99
|
return {
|
|
100
|
+
// View: isWeb ? AnimatedView : Animated.View,
|
|
101
|
+
// Text: isWeb ? AnimatedText : Animated.Text,
|
|
26
102
|
View: Animated.View,
|
|
27
103
|
Text: Animated.Text,
|
|
28
104
|
isReactNative: !0,
|
|
@@ -106,26 +182,8 @@ function createAnimations(animations) {
|
|
|
106
182
|
dontAnimate = style;
|
|
107
183
|
else {
|
|
108
184
|
var animateOnly = props.animateOnly;
|
|
109
|
-
|
|
110
|
-
dontAnimate =
|
|
111
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
112
|
-
try {
|
|
113
|
-
for (var _iterator = animateOnly[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
114
|
-
var key = _step.value;
|
|
115
|
-
key in style && (animate[key] = style[key], delete dontAnimate[key]);
|
|
116
|
-
}
|
|
117
|
-
} catch (err) {
|
|
118
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
119
|
-
} finally {
|
|
120
|
-
try {
|
|
121
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
122
|
-
} finally {
|
|
123
|
-
if (_didIteratorError)
|
|
124
|
-
throw _iteratorError;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
} else
|
|
128
|
-
animate = style;
|
|
185
|
+
for (var key in style)
|
|
186
|
+
neverAnimate[key] || animateOnly && !animateOnly.includes(key) ? dontAnimate[key] = style[key] : animate[key] = style[key];
|
|
129
187
|
}
|
|
130
188
|
var animateStr = JSON.stringify(animate), styles = useMemo(function() {
|
|
131
189
|
return JSON.parse(animateStr);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/packages/animations-moti/src/createAnimations.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAASA,iBAAiBC,eAAeC,mBAAmB;
|
|
5
|
-
"names": ["PresenceContext", "ResetPresence", "usePresence", "useMotify", "useCallback", "useContext", "useMemo", "Animated", "cancelAnimation", "runOnJS", "useAnimatedReaction", "useAnimatedStyle", "useDerivedValue", "useSharedValue", "withSpring", "withTiming", "createAnimations", "animations", "View", "Text", "isReactNative", "useAnimatedNumber", "initial", "sharedValue", "getInstance", "getValue", "value", "setValue", "next", "config", "type", "stop", "useAnimatedNumberReaction", "onValue", "instance", "prev", "useAnimatedNumberStyle", "val", "getStyle", "derivedValue", "useAnimations", "animationProps", "
|
|
4
|
+
"mappings": ";AAAA,SAASA,iBAAiBC,eAAeC,mBAAmB;AAC5D,SACEC,oBACAC,uBAGK;AAEP,SAASC,iBAAiB;AAC1B,SAASC,YAAYC,aAAaC,YAAYC,eAAe;AAE7D,OAAOC,YACLC,iBACAC,SACAC,qBACAC,kBACAC,iBACAC,gBACAC,YACAC,kBACK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIP,SAASC,iCAAAA;MAA+BC,MAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAM,OACtCC,YAAYX,SAASY,wBACzBhB,2BAAW,SAAA,QAAyCiB,KAAAA;QAAtCC,eAAAA,OAAAA,cAAcC,QAAAA,OAAAA,OAAUC,QAAAA,2BAAAA,QAAAA;MAAxBF;MAAcC;QACpBE,eAAevB,gBAAgBoB,cAAcD,GAAAA,GAC7CK,UAAUF,MAAMN,OAAOA;AAE7B,WAAIK,SAASI,MAAMC,QAAQL,MAAMM,SAAS,MACxCN,MAAMM,YAAY5B,mBAAmBsB,MAAMM,SAAS,IAE/C,qBAACH,SAAAA,qBAAAA,eAAAA,CAAAA,GAAYF,KAAAA,GAAAA;MAAOD;MAAcF,KAAKI;;EAChD,CAAA,CAAA;AAEFN,mBAAU,gBAAmB,IACtBA;AACT;AAEA,IAAMW,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aAAAA,GACAkB,oBAAAA,QAAAA,iBAAAA;MACF,GAAG,CAAA,CAAE,GAICE,YAAY;QAChBd,SAASU,aAAaZ,cAAc,CAAC,IAAIU;QACzCO,YAAY/C,WAAW4B,YAAAA;;;;;;QAMvBF,cAAcmB;QACdG,kBAAkBvB;QAClBwB,iBAAiBpG,WAAWR,eAAAA;QAC5B6G,MAAMR,YAAYF,SAASW;MAC7B,GAEMC,OAAO1G,UAAUoG,SAAAA;AAEvB,aAAIO,QAAQC,IAAIC,aAAa,iBAAiBxF,MAAM,SAClDyF,QAAQC,KAAM,cAAanB,KAAKC,UAAUO,WAAW,MAAM,CAAA,IAAK,KAAK;QACnEtB;QACAsB;QACAM;QACAtF,OAAO;UAACmE;UAAamB,KAAKtF;;MAC5B,CAAA,GAGK;QACLA,OAAO;UAACmE;UAAamB,KAAKtF;;MAC5B;IACF;EACF;AACF;",
|
|
5
|
+
"names": ["PresenceContext", "ResetPresence", "usePresence", "transformsToString", "useComposedRefs", "useMotify", "forwardRef", "useCallback", "useContext", "useMemo", "Animated", "cancelAnimation", "runOnJS", "useAnimatedReaction", "useAnimatedStyle", "useDerivedValue", "useSharedValue", "withSpring", "withTiming", "createTamaguiAnimatedComponent", "tag", "Component", "createAnimatedComponent", "ref", "forwardedRef", "style", "props", "composedRefs", "Element", "Array", "isArray", "transform", "AnimatedView", "AnimatedText", "neverAnimate", "alignItems", "backdropFilter", "borderStyle", "boxSizing", "contain", "cursor", "display", "flexBasis", "flexDirection", "flexShrink", "justifyContent", "maxHeight", "maxWidth", "overflow", "overflowX", "overflowY", "position", "shadowColor", "textAlign", "textOverflow", "whiteSpace", "wordWrap", "zIndex", "createAnimations", "animations", "View", "Text", "isReactNative", "useAnimatedNumber", "initial", "sharedValue", "getInstance", "getValue", "value", "setValue", "next", "config", "type", "stop", "useAnimatedNumberReaction", "onValue", "instance", "prev", "useAnimatedNumberStyle", "val", "getStyle", "derivedValue", "useAnimations", "animationProps", "presence", "onDidAnimate", "componentState", "animationKey", "animation", "isHydrating", "unmounted", "animate", "dontAnimate", "animateOnly", "key", "includes", "animateStr", "JSON", "stringify", "styles", "parse", "isExiting", "Boolean", "sendExitComplete", "onDidAnimateCombined", "motiProps", "transition", "usePresenceValue", "presenceContext", "exit", "undefined", "moti", "process", "env", "NODE_ENV", "console", "info"]
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/animations-moti",
|
|
3
|
-
"version": "1.90.
|
|
3
|
+
"version": "1.90.3",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@tamagui/use-presence": "1.90.
|
|
19
|
-
"@tamagui/web": "1.90.
|
|
18
|
+
"@tamagui/use-presence": "1.90.3",
|
|
19
|
+
"@tamagui/web": "1.90.3",
|
|
20
20
|
"moti": "^0.27.2",
|
|
21
21
|
"react": "^18.2.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@tamagui/build": "1.90.
|
|
24
|
+
"@tamagui/build": "1.90.3",
|
|
25
25
|
"react-native-reanimated": "~3.6.2"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
package/src/createAnimations.tsx
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { PresenceContext, ResetPresence, usePresence } from '@tamagui/use-presence'
|
|
2
|
-
import
|
|
2
|
+
import {
|
|
3
|
+
transformsToString,
|
|
4
|
+
useComposedRefs,
|
|
5
|
+
type AnimationDriver,
|
|
6
|
+
type UniversalAnimatedNumber,
|
|
7
|
+
} from '@tamagui/web'
|
|
3
8
|
import type { MotiTransition } from 'moti'
|
|
4
9
|
import { useMotify } from 'moti/author'
|
|
5
|
-
import { useCallback, useContext, useMemo } from 'react'
|
|
10
|
+
import { forwardRef, useCallback, useContext, useMemo } from 'react'
|
|
6
11
|
import type { SharedValue } from 'react-native-reanimated'
|
|
7
12
|
import Animated, {
|
|
8
13
|
cancelAnimation,
|
|
@@ -17,10 +22,57 @@ import Animated, {
|
|
|
17
22
|
|
|
18
23
|
type ReanimatedAnimatedNumber = SharedValue<number>
|
|
19
24
|
|
|
25
|
+
function createTamaguiAnimatedComponent(tag = 'div') {
|
|
26
|
+
const Component = Animated.createAnimatedComponent(
|
|
27
|
+
forwardRef(({ forwardedRef, style, ...props }: any, ref) => {
|
|
28
|
+
const composedRefs = useComposedRefs(forwardedRef, ref)
|
|
29
|
+
const Element = props.tag || tag
|
|
30
|
+
// we can probably just use stringifyTransforms? it seems almost fully normalized
|
|
31
|
+
if (style && Array.isArray(style.transform)) {
|
|
32
|
+
style.transform = transformsToString(style.transform)
|
|
33
|
+
}
|
|
34
|
+
return <Element {...props} style={style} ref={composedRefs} />
|
|
35
|
+
})
|
|
36
|
+
)
|
|
37
|
+
Component['acceptTagProp'] = true
|
|
38
|
+
return Component
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const AnimatedView = createTamaguiAnimatedComponent('div')
|
|
42
|
+
const AnimatedText = createTamaguiAnimatedComponent('span')
|
|
43
|
+
|
|
44
|
+
const neverAnimate = {
|
|
45
|
+
alignItems: true,
|
|
46
|
+
backdropFilter: true,
|
|
47
|
+
borderStyle: true,
|
|
48
|
+
boxSizing: true,
|
|
49
|
+
contain: true,
|
|
50
|
+
cursor: true,
|
|
51
|
+
display: true,
|
|
52
|
+
flexBasis: true,
|
|
53
|
+
flexDirection: true,
|
|
54
|
+
flexShrink: true,
|
|
55
|
+
justifyContent: true,
|
|
56
|
+
maxHeight: true,
|
|
57
|
+
maxWidth: true,
|
|
58
|
+
overflow: true,
|
|
59
|
+
overflowX: true,
|
|
60
|
+
overflowY: true,
|
|
61
|
+
position: true,
|
|
62
|
+
shadowColor: true,
|
|
63
|
+
textAlign: true,
|
|
64
|
+
textOverflow: true,
|
|
65
|
+
whiteSpace: true,
|
|
66
|
+
wordWrap: true,
|
|
67
|
+
zIndex: true,
|
|
68
|
+
}
|
|
69
|
+
|
|
20
70
|
export function createAnimations<A extends Record<string, MotiTransition>>(
|
|
21
71
|
animations: A
|
|
22
72
|
): AnimationDriver<A> {
|
|
23
73
|
return {
|
|
74
|
+
// View: isWeb ? AnimatedView : Animated.View,
|
|
75
|
+
// Text: isWeb ? AnimatedText : Animated.Text,
|
|
24
76
|
View: Animated.View,
|
|
25
77
|
Text: Animated.Text,
|
|
26
78
|
isReactNative: true,
|
|
@@ -109,17 +161,13 @@ export function createAnimations<A extends Record<string, MotiTransition>>(
|
|
|
109
161
|
if (isHydrating) {
|
|
110
162
|
dontAnimate = style
|
|
111
163
|
} else {
|
|
112
|
-
const animateOnly = props.animateOnly
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
delete dontAnimate[key]
|
|
119
|
-
}
|
|
164
|
+
const animateOnly = props.animateOnly as string[]
|
|
165
|
+
for (const key in style) {
|
|
166
|
+
if (neverAnimate[key] || (animateOnly && !animateOnly.includes(key))) {
|
|
167
|
+
dontAnimate[key] = style[key]
|
|
168
|
+
} else {
|
|
169
|
+
animate[key] = style[key]
|
|
120
170
|
}
|
|
121
|
-
} else {
|
|
122
|
-
animate = style
|
|
123
171
|
}
|
|
124
172
|
}
|
|
125
173
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type AnimationDriver } from '@tamagui/web';
|
|
2
2
|
import type { MotiTransition } from 'moti';
|
|
3
3
|
export declare function createAnimations<A extends Record<string, MotiTransition>>(animations: A): AnimationDriver<A>;
|
|
4
4
|
//# sourceMappingURL=createAnimations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAnimations.d.ts","sourceRoot":"","sources":["../src/createAnimations.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"createAnimations.d.ts","sourceRoot":"","sources":["../src/createAnimations.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,eAAe,EAErB,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAA;AA8D1C,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,EACvE,UAAU,EAAE,CAAC,GACZ,eAAe,CAAC,CAAC,CAAC,CAmJpB"}
|