@tamagui/animations-moti 1.90.4 → 1.90.6
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 +9 -14
- package/dist/cjs/createAnimations.js.map +1 -1
- package/dist/cjs/createAnimations.native.js +8 -71
- package/dist/cjs/createAnimations.native.js.map +2 -2
- package/dist/esm/createAnimations.js +9 -18
- package/dist/esm/createAnimations.js.map +1 -1
- package/dist/esm/createAnimations.mjs +41 -56
- package/dist/esm/createAnimations.native.js +10 -73
- package/dist/esm/createAnimations.native.js.map +2 -2
- package/package.json +4 -4
- package/src/createAnimations.tsx +34 -20
- package/types/createAnimations.d.ts.map +1 -1
|
@@ -25,17 +25,8 @@ __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_web = require("@tamagui/web"), import_author = require("moti/author"), import_react = require("react"), import_react_native_reanimated = __toESM(require("react-native-reanimated"))
|
|
29
|
-
|
|
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 = {
|
|
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"));
|
|
29
|
+
const neverAnimate = {
|
|
39
30
|
alignItems: !0,
|
|
40
31
|
backdropFilter: !0,
|
|
41
32
|
borderBottomStyle: !0,
|
|
@@ -66,12 +57,16 @@ const AnimatedView = createTamaguiAnimatedComponent("div"), AnimatedText = creat
|
|
|
66
57
|
textOverflow: !0,
|
|
67
58
|
whiteSpace: !0,
|
|
68
59
|
wordWrap: !0,
|
|
69
|
-
zIndex: !0
|
|
60
|
+
zIndex: !0,
|
|
61
|
+
fontFamily: !0,
|
|
62
|
+
lineHeight: !0
|
|
70
63
|
};
|
|
71
64
|
function createAnimations(animations) {
|
|
72
65
|
return {
|
|
73
|
-
View:
|
|
74
|
-
Text:
|
|
66
|
+
// View: isWeb ? AnimatedView : Animated.View,
|
|
67
|
+
// Text: isWeb ? AnimatedText : Animated.Text,
|
|
68
|
+
View: import_react_native_reanimated.default.View,
|
|
69
|
+
Text: import_react_native_reanimated.default.Text,
|
|
75
70
|
isReactNative: !0,
|
|
76
71
|
animations,
|
|
77
72
|
usePresence: import_use_presence.usePresence,
|
|
@@ -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,kCAC5D,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA4D,kCAC5D,aASO,yBAEP,gBAA0B,wBAC1B,eAAgD,kBAEhD,iCASO;AA8BP,MAAM,eAAe;AAAA,EACnB,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,SAAS;AAAA,EAC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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": ["Animated"]
|
|
6
6
|
}
|
|
@@ -26,74 +26,7 @@ __export(createAnimations_exports, {
|
|
|
26
26
|
createAnimations: () => createAnimations
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(createAnimations_exports);
|
|
29
|
-
var
|
|
30
|
-
function _define_property(obj, key, value) {
|
|
31
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
32
|
-
value,
|
|
33
|
-
enumerable: !0,
|
|
34
|
-
configurable: !0,
|
|
35
|
-
writable: !0
|
|
36
|
-
}) : obj[key] = value, obj;
|
|
37
|
-
}
|
|
38
|
-
function _object_spread(target) {
|
|
39
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
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
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
43
|
-
}))), ownKeys2.forEach(function(key) {
|
|
44
|
-
_define_property(target, key, source[key]);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
return target;
|
|
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 = {
|
|
29
|
+
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")), neverAnimate = {
|
|
97
30
|
alignItems: !0,
|
|
98
31
|
backdropFilter: !0,
|
|
99
32
|
borderBottomStyle: !0,
|
|
@@ -124,12 +57,16 @@ var AnimatedView = createTamaguiAnimatedComponent("div"), AnimatedText = createT
|
|
|
124
57
|
textOverflow: !0,
|
|
125
58
|
whiteSpace: !0,
|
|
126
59
|
wordWrap: !0,
|
|
127
|
-
zIndex: !0
|
|
60
|
+
zIndex: !0,
|
|
61
|
+
fontFamily: !0,
|
|
62
|
+
lineHeight: !0
|
|
128
63
|
};
|
|
129
64
|
function createAnimations(animations) {
|
|
130
65
|
return {
|
|
131
|
-
View:
|
|
132
|
-
Text:
|
|
66
|
+
// View: isWeb ? AnimatedView : Animated.View,
|
|
67
|
+
// Text: isWeb ? AnimatedText : Animated.Text,
|
|
68
|
+
View: import_react_native_reanimated.default.View,
|
|
69
|
+
Text: import_react_native_reanimated.default.Text,
|
|
133
70
|
isReactNative: !0,
|
|
134
71
|
animations,
|
|
135
72
|
usePresence: import_use_presence.usePresence,
|
|
@@ -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": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;0BAA4D,kCAC5D,aASO,yBAEP,gBAA0B,wBAC1B,eAAgD,kBAEhD,iCASO,6CA8BDA,eAAe;EACnBC,YAAY;EACZC,gBAAgB;EAChBC,mBAAmB;EACnBC,iBAAiB;EACjBC,kBAAkB;EAClBC,aAAa;EACbC,gBAAgB;EAChBC,WAAW;EACXC,SAAS;EACTC,QAAQ;EACRC,SAAS;EACTC,WAAW;EACXC,eAAe;EACfC,YAAY;EACZC,gBAAgB;EAChBC,WAAW;EACXC,UAAU;EACVC,WAAW;EACXC,UAAU;EACVC,cAAc;EACdC,UAAU;EACVC,WAAW;EACXC,WAAW;EACXC,eAAe;EACfC,UAAU;EACVC,aAAa;EACbC,WAAW;EACXC,cAAc;EACdC,YAAY;EACZC,UAAU;EACVC,QAAQ;EAERC,YAAY;EACZC,YAAY;AACd;AAEO,SAASC,iBACdC,YAAa;AAEb,SAAO;;;IAGLC,MAAMC,+BAAAA,QAASD;IACfE,MAAMD,+BAAAA,QAASC;IACfC,eAAe;IACfJ;IACAK,aAAAA;IACAC,eAAAA;IAEAC,mBAAAA,SAAkBC,SAAO;AACvB,UAAMC,kBAAcC,+CAAeF,OAAAA;AAEnC,iBAAOG,sBACL,WAAA;eAAO;UACLC,aAAAA,WAAAA;AACE;AACA,mBAAOH;UACT;UACAI,UAAAA,WAAAA;AACE;AACA,mBAAOJ,YAAYK;UACrB;UACAC,UAAAA,SAASC,MAAI;AACX;gBADaC,SAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAS;cAAEC,MAAM;YAAS;AAEvC,YAAID,OAAOC,SAAS,WAClBT,YAAYK,QAAQE,OACXC,OAAOC,SAAS,WACzBT,YAAYK,YAAQK,2CAAWH,MAAM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G,GAAAA,IAAOZ,MAAMY,GAAAA;MAG3B;AAIA,UAAMG,aAAaC,KAAKC,UAAUR,OAAAA,GAC5BS,aAAS9C,sBAAQ,WAAA;eAAM4C,KAAKG,MAAMJ,UAAAA;SAAa;QAACA;OAAW,GAE3DK,YAAYC,GAAQtB,YAAAA,QAAAA,SAAW,CAAA,IAC/BuB,sBAAkBC,yBAAWC,mCAAAA,GAC7BC,mBAAoB1B,YAAY2B,QAIhCC,YAAY;QAChBlB,SAASW,aAAab,cAAc,CAAC,IAAIW;QACzCU,YAAYnE,WAAW0C,YAAAA;QACvBsB;QACAH;QACAO,MAAMT,YAAYF,SAASQ;MAC7B,GAEMI,WAAOC,yBAAUJ,SAAAA;AAEvB,aAAIK,QAAQC,IAAIC,aAAa,iBAAiBpC,MAAM,SAClDqC,QAAQC,KAAM,cAAapB,KAAKC,UAAUU,WAAW,MAAM,CAAA,IAAK,KAAK;QACnE9B;QACA8B;QACAG;QACA9B,OAAO;UAACU;UAAaoB,KAAK9B;;MAC5B,CAAA,GAGK;QACLA,OAAO;UAACU;UAAaoB,KAAK9B;;MAC5B;IACF;EACF;AACF;",
|
|
5
|
+
"names": ["neverAnimate", "alignItems", "backdropFilter", "borderBottomStyle", "borderLeftStyle", "borderRightStyle", "borderStyle", "borderTopStyle", "boxSizing", "contain", "cursor", "display", "flexBasis", "flexDirection", "flexShrink", "justifyContent", "maxHeight", "maxWidth", "minHeight", "minWidth", "outlineStyle", "overflow", "overflowX", "overflowY", "pointerEvents", "position", "shadowColor", "textAlign", "textOverflow", "whiteSpace", "wordWrap", "zIndex", "fontFamily", "lineHeight", "createAnimations", "animations", "View", "Animated", "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", "props", "presence", "style", "onDidAnimate", "componentState", "animationKey", "Array", "isArray", "animation", "isHydrating", "unmounted", "animate", "dontAnimate", "animateOnly", "key", "stylePropsAll", "includes", "animateStr", "JSON", "stringify", "styles", "parse", "isExiting", "Boolean", "presenceContext", "useContext", "PresenceContext", "usePresenceValue", "undefined", "motiProps", "transition", "exit", "moti", "useMotify", "process", "env", "NODE_ENV", "console", "info"]
|
|
6
6
|
}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { PresenceContext, ResetPresence, usePresence } from "@tamagui/use-presence";
|
|
2
2
|
import {
|
|
3
|
-
isWeb,
|
|
4
|
-
transformsToString,
|
|
5
|
-
useComposedRefs,
|
|
6
3
|
stylePropsAll
|
|
7
4
|
} from "@tamagui/web";
|
|
8
5
|
import { useMotify } from "moti/author";
|
|
9
|
-
import {
|
|
6
|
+
import { useContext, useMemo } from "react";
|
|
10
7
|
import Animated, {
|
|
11
8
|
cancelAnimation,
|
|
12
9
|
runOnJS,
|
|
@@ -17,17 +14,7 @@ import Animated, {
|
|
|
17
14
|
withSpring,
|
|
18
15
|
withTiming
|
|
19
16
|
} from "react-native-reanimated";
|
|
20
|
-
|
|
21
|
-
function createTamaguiAnimatedComponent(tag = "div") {
|
|
22
|
-
const Component = Animated.createAnimatedComponent(
|
|
23
|
-
forwardRef(({ forwardedRef, style, ...props }, ref) => {
|
|
24
|
-
const composedRefs = useComposedRefs(forwardedRef, ref), Element = props.tag || tag;
|
|
25
|
-
return style && Array.isArray(style.transform) && (style.transform = transformsToString(style.transform)), /* @__PURE__ */ jsx(Element, { ...props, style, ref: composedRefs });
|
|
26
|
-
})
|
|
27
|
-
);
|
|
28
|
-
return Component.acceptTagProp = !0, Component;
|
|
29
|
-
}
|
|
30
|
-
const AnimatedView = createTamaguiAnimatedComponent("div"), AnimatedText = createTamaguiAnimatedComponent("span"), neverAnimate = {
|
|
17
|
+
const neverAnimate = {
|
|
31
18
|
alignItems: !0,
|
|
32
19
|
backdropFilter: !0,
|
|
33
20
|
borderBottomStyle: !0,
|
|
@@ -58,12 +45,16 @@ const AnimatedView = createTamaguiAnimatedComponent("div"), AnimatedText = creat
|
|
|
58
45
|
textOverflow: !0,
|
|
59
46
|
whiteSpace: !0,
|
|
60
47
|
wordWrap: !0,
|
|
61
|
-
zIndex: !0
|
|
48
|
+
zIndex: !0,
|
|
49
|
+
fontFamily: !0,
|
|
50
|
+
lineHeight: !0
|
|
62
51
|
};
|
|
63
52
|
function createAnimations(animations) {
|
|
64
53
|
return {
|
|
65
|
-
View: isWeb ? AnimatedView : Animated.View,
|
|
66
|
-
Text: isWeb ? AnimatedText : Animated.Text,
|
|
54
|
+
// View: isWeb ? AnimatedView : Animated.View,
|
|
55
|
+
// Text: isWeb ? AnimatedText : Animated.Text,
|
|
56
|
+
View: Animated.View,
|
|
57
|
+
Text: Animated.Text,
|
|
67
58
|
isReactNative: !0,
|
|
68
59
|
animations,
|
|
69
60
|
usePresence,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/createAnimations.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,iBAAiB,eAAe,mBAAmB;AAC5D;AAAA,
|
|
4
|
+
"mappings": "AAAA,SAAS,iBAAiB,eAAe,mBAAmB;AAC5D;AAAA,EAIE;AAAA,OAKK;AAEP,SAAS,iBAAiB;AAC1B,SAAqB,YAAY,eAAe;AAEhD,OAAO;AAAA,EACL;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AA8BP,MAAM,eAAe;AAAA,EACnB,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,WAAW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AAa,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,64 +1,49 @@
|
|
|
1
1
|
import { PresenceContext, ResetPresence, usePresence } from "@tamagui/use-presence";
|
|
2
|
-
import {
|
|
2
|
+
import { stylePropsAll } from "@tamagui/web";
|
|
3
3
|
import { useMotify } from "moti/author";
|
|
4
|
-
import {
|
|
4
|
+
import { useContext, useMemo } from "react";
|
|
5
5
|
import Animated, { cancelAnimation, runOnJS, useAnimatedReaction, useAnimatedStyle, useDerivedValue, useSharedValue, withSpring, withTiming } from "react-native-reanimated";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
maxHeight: !0,
|
|
42
|
-
maxWidth: !0,
|
|
43
|
-
minHeight: !0,
|
|
44
|
-
minWidth: !0,
|
|
45
|
-
outlineStyle: !0,
|
|
46
|
-
overflow: !0,
|
|
47
|
-
overflowX: !0,
|
|
48
|
-
overflowY: !0,
|
|
49
|
-
pointerEvents: !0,
|
|
50
|
-
position: !0,
|
|
51
|
-
shadowColor: !0,
|
|
52
|
-
textAlign: !0,
|
|
53
|
-
textOverflow: !0,
|
|
54
|
-
whiteSpace: !0,
|
|
55
|
-
wordWrap: !0,
|
|
56
|
-
zIndex: !0
|
|
57
|
-
};
|
|
6
|
+
const neverAnimate = {
|
|
7
|
+
alignItems: !0,
|
|
8
|
+
backdropFilter: !0,
|
|
9
|
+
borderBottomStyle: !0,
|
|
10
|
+
borderLeftStyle: !0,
|
|
11
|
+
borderRightStyle: !0,
|
|
12
|
+
borderStyle: !0,
|
|
13
|
+
borderTopStyle: !0,
|
|
14
|
+
boxSizing: !0,
|
|
15
|
+
contain: !0,
|
|
16
|
+
cursor: !0,
|
|
17
|
+
display: !0,
|
|
18
|
+
flexBasis: !0,
|
|
19
|
+
flexDirection: !0,
|
|
20
|
+
flexShrink: !0,
|
|
21
|
+
justifyContent: !0,
|
|
22
|
+
maxHeight: !0,
|
|
23
|
+
maxWidth: !0,
|
|
24
|
+
minHeight: !0,
|
|
25
|
+
minWidth: !0,
|
|
26
|
+
outlineStyle: !0,
|
|
27
|
+
overflow: !0,
|
|
28
|
+
overflowX: !0,
|
|
29
|
+
overflowY: !0,
|
|
30
|
+
pointerEvents: !0,
|
|
31
|
+
position: !0,
|
|
32
|
+
shadowColor: !0,
|
|
33
|
+
textAlign: !0,
|
|
34
|
+
textOverflow: !0,
|
|
35
|
+
whiteSpace: !0,
|
|
36
|
+
wordWrap: !0,
|
|
37
|
+
zIndex: !0,
|
|
38
|
+
fontFamily: !0,
|
|
39
|
+
lineHeight: !0
|
|
40
|
+
};
|
|
58
41
|
function createAnimations(animations) {
|
|
59
42
|
return {
|
|
60
|
-
View: isWeb ? AnimatedView : Animated.View,
|
|
61
|
-
Text: isWeb ? AnimatedText : Animated.Text,
|
|
43
|
+
// View: isWeb ? AnimatedView : Animated.View,
|
|
44
|
+
// Text: isWeb ? AnimatedText : Animated.Text,
|
|
45
|
+
View: Animated.View,
|
|
46
|
+
Text: Animated.Text,
|
|
62
47
|
isReactNative: !0,
|
|
63
48
|
animations,
|
|
64
49
|
usePresence,
|
|
@@ -1,76 +1,9 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
1
|
import { PresenceContext, ResetPresence, usePresence } from "@tamagui/use-presence";
|
|
3
|
-
import {
|
|
2
|
+
import { stylePropsAll } from "@tamagui/web";
|
|
4
3
|
import { useMotify } from "moti/author";
|
|
5
|
-
import {
|
|
4
|
+
import { useContext, useMemo } from "react";
|
|
6
5
|
import Animated, { cancelAnimation, runOnJS, useAnimatedReaction, useAnimatedStyle, useDerivedValue, useSharedValue, withSpring, withTiming } from "react-native-reanimated";
|
|
7
|
-
|
|
8
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
9
|
-
value,
|
|
10
|
-
enumerable: !0,
|
|
11
|
-
configurable: !0,
|
|
12
|
-
writable: !0
|
|
13
|
-
}) : obj[key] = value, obj;
|
|
14
|
-
}
|
|
15
|
-
function _object_spread(target) {
|
|
16
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
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) {
|
|
19
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
20
|
-
}))), ownKeys2.forEach(function(key) {
|
|
21
|
-
_define_property(target, key, source[key]);
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
return target;
|
|
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 = {
|
|
6
|
+
var neverAnimate = {
|
|
74
7
|
alignItems: !0,
|
|
75
8
|
backdropFilter: !0,
|
|
76
9
|
borderBottomStyle: !0,
|
|
@@ -101,12 +34,16 @@ var AnimatedView = createTamaguiAnimatedComponent("div"), AnimatedText = createT
|
|
|
101
34
|
textOverflow: !0,
|
|
102
35
|
whiteSpace: !0,
|
|
103
36
|
wordWrap: !0,
|
|
104
|
-
zIndex: !0
|
|
37
|
+
zIndex: !0,
|
|
38
|
+
fontFamily: !0,
|
|
39
|
+
lineHeight: !0
|
|
105
40
|
};
|
|
106
41
|
function createAnimations(animations) {
|
|
107
42
|
return {
|
|
108
|
-
View: isWeb ? AnimatedView : Animated.View,
|
|
109
|
-
Text: isWeb ? AnimatedText : Animated.Text,
|
|
43
|
+
// View: isWeb ? AnimatedView : Animated.View,
|
|
44
|
+
// Text: isWeb ? AnimatedText : Animated.Text,
|
|
45
|
+
View: Animated.View,
|
|
46
|
+
Text: Animated.Text,
|
|
110
47
|
isReactNative: !0,
|
|
111
48
|
animations,
|
|
112
49
|
usePresence,
|
|
@@ -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": ["PresenceContext", "ResetPresence", "usePresence", "
|
|
4
|
+
"mappings": "AAAA,SAASA,iBAAiBC,eAAeC,mBAAmB;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OAAAA,GAC5BQ,SAASzF,QAAQ,WAAA;eAAMuF,KAAKG,MAAMJ,UAAAA;SAAa;QAACA;OAAW,GAE3DK,YAAYC,GAAQrB,YAAAA,QAAAA,SAAW,CAAA,IAC/BsB,kBAAkB9F,WAAWL,eAAAA,GAC7BoG,mBAAoBvB,YAAYwB,QAIhCC,YAAY;QAChBf,SAASU,aAAaZ,cAAc,CAAC,IAAIU;QACzCQ,YAAYpD,WAAW8B,YAAAA;QACvBmB;QACAD;QACAK,MAAMP,YAAYF,SAASM;MAC7B,GAEMI,OAAOrG,UAAUkG,SAAAA;AAEvB,aAAII,QAAQC,IAAIC,aAAa,iBAAiBhC,MAAM,SAClDiC,QAAQC,KAAM,cAAajB,KAAKC,UAAUQ,WAAW,MAAM,CAAA,IAAK,KAAK;QACnE3B;QACA2B;QACAG;QACA3B,OAAO;UAACU;UAAaiB,KAAK3B;;MAC5B,CAAA,GAGK;QACLA,OAAO;UAACU;UAAaiB,KAAK3B;;MAC5B;IACF;EACF;AACF;",
|
|
5
|
+
"names": ["PresenceContext", "ResetPresence", "usePresence", "stylePropsAll", "useMotify", "useContext", "useMemo", "Animated", "cancelAnimation", "runOnJS", "useAnimatedReaction", "useAnimatedStyle", "useDerivedValue", "useSharedValue", "withSpring", "withTiming", "neverAnimate", "alignItems", "backdropFilter", "borderBottomStyle", "borderLeftStyle", "borderRightStyle", "borderStyle", "borderTopStyle", "boxSizing", "contain", "cursor", "display", "flexBasis", "flexDirection", "flexShrink", "justifyContent", "maxHeight", "maxWidth", "minHeight", "minWidth", "outlineStyle", "overflow", "overflowX", "overflowY", "pointerEvents", "position", "shadowColor", "textAlign", "textOverflow", "whiteSpace", "wordWrap", "zIndex", "fontFamily", "lineHeight", "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", "props", "presence", "style", "onDidAnimate", "componentState", "animationKey", "Array", "isArray", "animation", "isHydrating", "unmounted", "animate", "dontAnimate", "animateOnly", "key", "includes", "animateStr", "JSON", "stringify", "styles", "parse", "isExiting", "Boolean", "presenceContext", "usePresenceValue", "undefined", "motiProps", "transition", "exit", "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.6",
|
|
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.6",
|
|
19
|
+
"@tamagui/web": "1.90.6",
|
|
20
20
|
"moti": "^0.27.4",
|
|
21
21
|
"react": "^18.2.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@tamagui/build": "1.90.
|
|
24
|
+
"@tamagui/build": "1.90.6",
|
|
25
25
|
"react-native-reanimated": "~3.6.2"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
package/src/createAnimations.tsx
CHANGED
|
@@ -6,6 +6,8 @@ import {
|
|
|
6
6
|
stylePropsAll,
|
|
7
7
|
type AnimationDriver,
|
|
8
8
|
type UniversalAnimatedNumber,
|
|
9
|
+
styleToCSS,
|
|
10
|
+
normalizeValueWithProperty,
|
|
9
11
|
} from '@tamagui/web'
|
|
10
12
|
import type { MotiTransition } from 'moti'
|
|
11
13
|
import { useMotify } from 'moti/author'
|
|
@@ -24,24 +26,31 @@ import Animated, {
|
|
|
24
26
|
|
|
25
27
|
type ReanimatedAnimatedNumber = SharedValue<number>
|
|
26
28
|
|
|
27
|
-
function createTamaguiAnimatedComponent(tag = 'div') {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
29
|
+
// function createTamaguiAnimatedComponent(tag = 'div') {
|
|
30
|
+
// const Component = Animated.createAnimatedComponent(
|
|
31
|
+
// forwardRef(({ forwardedRef, style, ...props }: any, ref) => {
|
|
32
|
+
// const composedRefs = useComposedRefs(forwardedRef, ref)
|
|
33
|
+
// const Element = props.tag || tag
|
|
34
|
+
|
|
35
|
+
// // TODO this block should be exported by web as styleToWebStyle()
|
|
36
|
+
// const webStyle = style
|
|
37
|
+
// styleToCSS(style)
|
|
38
|
+
// if (Array.isArray(webStyle.transform)) {
|
|
39
|
+
// style.transform = transformsToString(style.transform)
|
|
40
|
+
// }
|
|
41
|
+
// for (const key in style) {
|
|
42
|
+
// style[key] = normalizeValueWithProperty(style[key], key)
|
|
43
|
+
// }
|
|
44
|
+
|
|
45
|
+
// return <Element {...props} style={style} ref={composedRefs} />
|
|
46
|
+
// })
|
|
47
|
+
// )
|
|
48
|
+
// Component['acceptTagProp'] = true
|
|
49
|
+
// return Component
|
|
50
|
+
// }
|
|
51
|
+
|
|
52
|
+
// const AnimatedView = createTamaguiAnimatedComponent('div')
|
|
53
|
+
// const AnimatedText = createTamaguiAnimatedComponent('span')
|
|
45
54
|
|
|
46
55
|
const neverAnimate = {
|
|
47
56
|
alignItems: true,
|
|
@@ -75,14 +84,19 @@ const neverAnimate = {
|
|
|
75
84
|
whiteSpace: true,
|
|
76
85
|
wordWrap: true,
|
|
77
86
|
zIndex: true,
|
|
87
|
+
|
|
88
|
+
fontFamily: true,
|
|
89
|
+
lineHeight: true,
|
|
78
90
|
}
|
|
79
91
|
|
|
80
92
|
export function createAnimations<A extends Record<string, MotiTransition>>(
|
|
81
93
|
animations: A
|
|
82
94
|
): AnimationDriver<A> {
|
|
83
95
|
return {
|
|
84
|
-
View: isWeb ? AnimatedView : Animated.View,
|
|
85
|
-
Text: isWeb ? AnimatedText : Animated.Text,
|
|
96
|
+
// View: isWeb ? AnimatedView : Animated.View,
|
|
97
|
+
// Text: isWeb ? AnimatedText : Animated.Text,
|
|
98
|
+
View: Animated.View,
|
|
99
|
+
Text: Animated.Text,
|
|
86
100
|
isReactNative: true,
|
|
87
101
|
animations,
|
|
88
102
|
usePresence,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAnimations.d.ts","sourceRoot":"","sources":["../src/createAnimations.tsx"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"createAnimations.d.ts","sourceRoot":"","sources":["../src/createAnimations.tsx"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,eAAe,EAIrB,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAA;AAgF1C,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,EACvE,UAAU,EAAE,CAAC,GACZ,eAAe,CAAC,CAAC,CAAC,CA6IpB"}
|