@tamagui/animations-css 1.13.3 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/createAnimations.js +1 -107
- package/dist/cjs/createAnimations.js.map +2 -2
- package/dist/cjs/index.js +1 -18
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/createAnimations.js +1 -87
- package/dist/esm/createAnimations.js.map +2 -2
- package/dist/esm/createAnimations.mjs +1 -87
- package/dist/esm/createAnimations.mjs.map +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1,108 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var createAnimations_exports = {};
|
|
20
|
-
__export(createAnimations_exports, {
|
|
21
|
-
createAnimations: () => createAnimations
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(createAnimations_exports);
|
|
24
|
-
var import_use_presence = require("@tamagui/use-presence");
|
|
25
|
-
var import_web = require("@tamagui/web");
|
|
26
|
-
var import_react = require("react");
|
|
27
|
-
function createAnimations(animations) {
|
|
28
|
-
return {
|
|
29
|
-
View: import_web.Stack,
|
|
30
|
-
Text: import_web.Text,
|
|
31
|
-
animations,
|
|
32
|
-
usePresence: import_use_presence.usePresence,
|
|
33
|
-
useAnimatedNumber(initial) {
|
|
34
|
-
const [val, setVal] = (0, import_react.useState)(initial);
|
|
35
|
-
return {
|
|
36
|
-
getInstance() {
|
|
37
|
-
return val;
|
|
38
|
-
},
|
|
39
|
-
getValue() {
|
|
40
|
-
return val;
|
|
41
|
-
},
|
|
42
|
-
setValue(next) {
|
|
43
|
-
setVal(next);
|
|
44
|
-
},
|
|
45
|
-
stop() {
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
},
|
|
49
|
-
useAnimatedNumberReaction({ hostRef, value }, onValue) {
|
|
50
|
-
(0, import_web.useIsomorphicLayoutEffect)(() => {
|
|
51
|
-
if (!hostRef.current)
|
|
52
|
-
return;
|
|
53
|
-
const onTransitionEvent = (e) => {
|
|
54
|
-
onValue(value.getValue());
|
|
55
|
-
};
|
|
56
|
-
const node = hostRef.current;
|
|
57
|
-
node.addEventListener("transitionstart", onTransitionEvent);
|
|
58
|
-
node.addEventListener("transitioncancel", onTransitionEvent);
|
|
59
|
-
node.addEventListener("transitionend", onTransitionEvent);
|
|
60
|
-
return () => {
|
|
61
|
-
node.removeEventListener("transitionstart", onTransitionEvent);
|
|
62
|
-
node.removeEventListener("transitioncancel", onTransitionEvent);
|
|
63
|
-
node.removeEventListener("transitionend", onTransitionEvent);
|
|
64
|
-
};
|
|
65
|
-
}, [hostRef, onValue]);
|
|
66
|
-
},
|
|
67
|
-
useAnimatedNumberStyle(val, getStyle) {
|
|
68
|
-
return getStyle(val.getValue());
|
|
69
|
-
},
|
|
70
|
-
useAnimations: ({ props, presence, style, state, hostRef }) => {
|
|
71
|
-
const isEntering = !!state.unmounted;
|
|
72
|
-
const isExiting = (presence == null ? void 0 : presence[0]) === false;
|
|
73
|
-
const sendExitComplete = presence == null ? void 0 : presence[1];
|
|
74
|
-
const animationKey = Array.isArray(props.animation) ? props.animation[0] : props.animation;
|
|
75
|
-
const animation = animations[animationKey];
|
|
76
|
-
if (!animation) {
|
|
77
|
-
return null;
|
|
78
|
-
}
|
|
79
|
-
const keys = props.animateOnly ? props.animateOnly.join(" ") : "all";
|
|
80
|
-
(0, import_web.useIsomorphicLayoutEffect)(() => {
|
|
81
|
-
if (!sendExitComplete || !isExiting || !hostRef.current)
|
|
82
|
-
return;
|
|
83
|
-
const node = hostRef.current;
|
|
84
|
-
const onFinishAnimation = () => {
|
|
85
|
-
sendExitComplete == null ? void 0 : sendExitComplete();
|
|
86
|
-
};
|
|
87
|
-
node.addEventListener("transitionend", onFinishAnimation);
|
|
88
|
-
node.addEventListener("transitioncancel", onFinishAnimation);
|
|
89
|
-
return () => {
|
|
90
|
-
node.removeEventListener("transitionend", onFinishAnimation);
|
|
91
|
-
node.addEventListener("transitioncancel", onFinishAnimation);
|
|
92
|
-
};
|
|
93
|
-
}, [sendExitComplete, isExiting]);
|
|
94
|
-
style.transition = `${keys} ${animation}`;
|
|
95
|
-
if (process.env.NODE_ENV === "development" && props["debug"]) {
|
|
96
|
-
console.log("CSS animation", style, { isEntering, isExiting });
|
|
97
|
-
}
|
|
98
|
-
return (0, import_react.useMemo)(() => {
|
|
99
|
-
return { style };
|
|
100
|
-
}, [JSON.stringify(style)]);
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
105
|
-
0 && (module.exports = {
|
|
106
|
-
createAnimations
|
|
107
|
-
});
|
|
1
|
+
"use strict";var v=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var y=(r,n)=>{for(var t in n)v(r,t,{get:n[t],enumerable:!0})},S=(r,n,t,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of b(n))!N.call(r,e)&&e!==t&&v(r,e,{get:()=>n[e],enumerable:!(i=g(n,e))||i.enumerable});return r};var T=r=>S(v({},"__esModule",{value:!0}),r);var O={};y(O,{createAnimations:()=>V});module.exports=T(O);var A=require("@tamagui/use-presence"),o=require("@tamagui/web"),d=require("react");function V(r){return{View:o.Stack,Text:o.Text,animations:r,usePresence:A.usePresence,useAnimatedNumber(n){const[t,i]=(0,d.useState)(n);return{getInstance(){return t},getValue(){return t},setValue(e){i(e)},stop(){}}},useAnimatedNumberReaction({hostRef:n,value:t},i){(0,o.useIsomorphicLayoutEffect)(()=>{if(!n.current)return;const e=l=>{i(t.getValue())},a=n.current;return a.addEventListener("transitionstart",e),a.addEventListener("transitioncancel",e),a.addEventListener("transitionend",e),()=>{a.removeEventListener("transitionstart",e),a.removeEventListener("transitioncancel",e),a.removeEventListener("transitionend",e)}},[n,i])},useAnimatedNumberStyle(n,t){return t(n.getValue())},useAnimations:({props:n,presence:t,style:i,state:e,hostRef:a})=>{const l=!!e.unmounted,c=(t==null?void 0:t[0])===!1,s=t==null?void 0:t[1],L=Array.isArray(n.animation)?n.animation[0]:n.animation,E=r[L];if(!E)return null;const f=n.animateOnly?n.animateOnly.join(" "):"all";return(0,o.useIsomorphicLayoutEffect)(()=>{if(!s||!c||!a.current)return;const u=a.current,m=()=>{s==null||s()};return u.addEventListener("transitionend",m),u.addEventListener("transitioncancel",m),()=>{u.removeEventListener("transitionend",m),u.addEventListener("transitioncancel",m)}},[s,c]),i.transition=`${f} ${E}`,process.env.NODE_ENV==="development"&&n.debug&&console.log("CSS animation",i,{isEntering:l,isExiting:c}),(0,d.useMemo)(()=>({style:i}),[JSON.stringify(i)])}}}0&&(module.exports={createAnimations});
|
|
108
2
|
//# sourceMappingURL=createAnimations.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/createAnimations.tsx"],
|
|
4
4
|
"sourcesContent": ["import { usePresence } from '@tamagui/use-presence'\nimport {\n AnimationDriver,\n Stack,\n Text,\n UniversalAnimatedNumber,\n useIsomorphicLayoutEffect,\n} from '@tamagui/web'\nimport { useMemo, useRef, useState } from 'react'\n\nexport function createAnimations<A extends Object>(animations: A): AnimationDriver<A> {\n return {\n View: Stack,\n Text: Text,\n animations,\n usePresence,\n\n useAnimatedNumber(initial): UniversalAnimatedNumber<number> {\n const [val, setVal] = useState(initial)\n\n return {\n getInstance() {\n return val\n },\n getValue() {\n return val\n },\n setValue(next) {\n setVal(next)\n },\n stop() {},\n }\n },\n\n useAnimatedNumberReaction({ hostRef, value }, onValue) {\n // doesn't make much sense given value the animated value is a state in this driver, but this is compatible\n useIsomorphicLayoutEffect(() => {\n if (!hostRef.current) return\n const onTransitionEvent = (e: TransitionEvent) => {\n onValue(value.getValue())\n }\n\n const node = hostRef.current as HTMLElement\n node.addEventListener('transitionstart', onTransitionEvent)\n node.addEventListener('transitioncancel', onTransitionEvent)\n node.addEventListener('transitionend', onTransitionEvent)\n return () => {\n node.removeEventListener('transitionstart', onTransitionEvent)\n node.removeEventListener('transitioncancel', onTransitionEvent)\n node.removeEventListener('transitionend', onTransitionEvent)\n }\n }, [hostRef, onValue])\n },\n\n useAnimatedNumberStyle(val, getStyle) {\n return getStyle(val.getValue())\n },\n\n useAnimations: ({ props, presence, style, state, hostRef }) => {\n const isEntering = !!state.unmounted\n const isExiting = presence?.[0] === false\n const sendExitComplete = presence?.[1]\n const animationKey = Array.isArray(props.animation)\n ? props.animation[0]\n : props.animation\n const animation = animations[animationKey as any]\n if (!animation) {\n return null\n }\n\n const keys = props.animateOnly ? props.animateOnly.join(' ') : 'all'\n\n useIsomorphicLayoutEffect(() => {\n if (!sendExitComplete || !isExiting || !hostRef.current) return\n const node = hostRef.current as HTMLElement\n const onFinishAnimation = () => {\n sendExitComplete?.()\n }\n node.addEventListener('transitionend', onFinishAnimation)\n node.addEventListener('transitioncancel', onFinishAnimation)\n return () => {\n node.removeEventListener('transitionend', onFinishAnimation)\n node.addEventListener('transitioncancel', onFinishAnimation)\n }\n }, [sendExitComplete, isExiting])\n\n // add css transition\n style.transition = `${keys} ${animation}`\n\n if (process.env.NODE_ENV === 'development' && props['debug']) {\n // eslint-disable-next-line no-console\n console.log('CSS animation', style, { isEntering, isExiting })\n }\n\n return useMemo(() => {\n return { style }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [JSON.stringify(style)])\n },\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAA4B,iCAC5BC,EAMO,wBACPC,EAA0C,iBAEnC,SAASJ,EAAmCK,EAAmC,CACpF,MAAO,CACL,KAAM,QACN,KAAM,OACN,WAAAA,EACA,0BAEA,kBAAkBC,EAA0C,CAC1D,KAAM,CAACC,EAAKC,CAAM,KAAI,YAASF,CAAO,EAEtC,MAAO,CACL,aAAc,CACZ,OAAOC,CACT,EACA,UAAW,CACT,OAAOA,CACT,EACA,SAASE,EAAM,CACbD,EAAOC,CAAI,CACb,EACA,MAAO,CAAC,CACV,CACF,EAEA,0BAA0B,CAAE,QAAAC,EAAS,MAAAC,CAAM,EAAGC,EAAS,IAErD,6BAA0B,IAAM,CAC9B,GAAI,CAACF,EAAQ,QAAS,OACtB,MAAMG,EAAqBC,GAAuB,CAChDF,EAAQD,EAAM,SAAS,CAAC,CAC1B,EAEMI,EAAOL,EAAQ,QACrB,OAAAK,EAAK,iBAAiB,kBAAmBF,CAAiB,EAC1DE,EAAK,iBAAiB,mBAAoBF,CAAiB,EAC3DE,EAAK,iBAAiB,gBAAiBF,CAAiB,EACjD,IAAM,CACXE,EAAK,oBAAoB,kBAAmBF,CAAiB,EAC7DE,EAAK,oBAAoB,mBAAoBF,CAAiB,EAC9DE,EAAK,oBAAoB,gBAAiBF,CAAiB,CAC7D,CACF,EAAG,CAACH,EAASE,CAAO,CAAC,CACvB,EAEA,uBAAuBL,EAAKS,EAAU,CACpC,OAAOA,EAAST,EAAI,SAAS,CAAC,CAChC,EAEA,cAAe,CAAC,CAAE,MAAAU,EAAO,SAAAC,EAAU,MAAAC,EAAO,MAAAC,EAAO,QAAAV,CAAQ,IAAM,CAC7D,MAAMW,EAAa,CAAC,CAACD,EAAM,UACrBE,GAAYJ,GAAA,YAAAA,EAAW,MAAO,GAC9BK,EAAmBL,GAAA,YAAAA,EAAW,GAC9BM,EAAe,MAAM,QAAQP,EAAM,SAAS,EAC9CA,EAAM,UAAU,CAAC,EACjBA,EAAM,UACJQ,EAAYpB,EAAWmB,CAAmB,EAChD,GAAI,CAACC,EACH,OAAO,KAGT,MAAMC,EAAOT,EAAM,YAAcA,EAAM,YAAY,KAAK,GAAG,EAAI,MAE/D,sCAA0B,IAAM,CAC9B,GAAI,CAACM,GAAoB,CAACD,GAAa,CAACZ,EAAQ,QAAS,OACzD,MAAMK,EAAOL,EAAQ,QACfiB,EAAoB,IAAM,CAC9BJ,GAAA,MAAAA,GACF,EACA,OAAAR,EAAK,iBAAiB,gBAAiBY,CAAiB,EACxDZ,EAAK,iBAAiB,mBAAoBY,CAAiB,EACpD,IAAM,CACXZ,EAAK,oBAAoB,gBAAiBY,CAAiB,EAC3DZ,EAAK,iBAAiB,mBAAoBY,CAAiB,CAC7D,CACF,EAAG,CAACJ,EAAkBD,CAAS,CAAC,EAGhCH,EAAM,WAAa,GAAGO,KAAQD,IAE1B,QAAQ,IAAI,WAAa,eAAiBR,EAAM,OAElD,QAAQ,IAAI,gBAAiBE,EAAO,CAAE,WAAAE,EAAY,UAAAC,CAAU,CAAC,KAGxD,WAAQ,KACN,CAAE,MAAAH,CAAM,GAEd,CAAC,KAAK,UAAUA,CAAK,CAAC,CAAC,CAC5B,CACF,CACF",
|
|
6
|
+
"names": ["createAnimations_exports", "__export", "createAnimations", "__toCommonJS", "import_use_presence", "import_web", "import_react", "animations", "initial", "val", "setVal", "next", "hostRef", "value", "onValue", "onTransitionEvent", "e", "node", "getStyle", "props", "presence", "style", "state", "isEntering", "isExiting", "sendExitComplete", "animationKey", "animation", "keys", "onFinishAnimation"]
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var src_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(src_exports);
|
|
18
|
-
__reExport(src_exports, require("./createAnimations"), module.exports);
|
|
1
|
+
"use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var p=(r,o,f,x)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of c(o))!d.call(r,e)&&e!==f&&a(r,e,{get:()=>o[e],enumerable:!(x=b(o,e))||x.enumerable});return r},t=(r,o,f)=>(p(r,o,"default"),f&&p(f,o,"default"));var g=r=>p(a({},"__esModule",{value:!0}),r);var m={};module.exports=g(m);t(m,require("./createAnimations"),module.exports);
|
|
19
2
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
4
4
|
"sourcesContent": ["export * from './createAnimations'\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "iaAAA,IAAAA,EAAA,kBAAAC,EAAAD,GAAAE,EAAAF,EAAc,8BAAd",
|
|
6
|
+
"names": ["src_exports", "__toCommonJS", "__reExport"]
|
|
7
7
|
}
|
|
@@ -1,88 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
Stack,
|
|
4
|
-
Text,
|
|
5
|
-
useIsomorphicLayoutEffect
|
|
6
|
-
} from "@tamagui/web";
|
|
7
|
-
import { useMemo, useState } from "react";
|
|
8
|
-
function createAnimations(animations) {
|
|
9
|
-
return {
|
|
10
|
-
View: Stack,
|
|
11
|
-
Text,
|
|
12
|
-
animations,
|
|
13
|
-
usePresence,
|
|
14
|
-
useAnimatedNumber(initial) {
|
|
15
|
-
const [val, setVal] = useState(initial);
|
|
16
|
-
return {
|
|
17
|
-
getInstance() {
|
|
18
|
-
return val;
|
|
19
|
-
},
|
|
20
|
-
getValue() {
|
|
21
|
-
return val;
|
|
22
|
-
},
|
|
23
|
-
setValue(next) {
|
|
24
|
-
setVal(next);
|
|
25
|
-
},
|
|
26
|
-
stop() {
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
useAnimatedNumberReaction({ hostRef, value }, onValue) {
|
|
31
|
-
useIsomorphicLayoutEffect(() => {
|
|
32
|
-
if (!hostRef.current)
|
|
33
|
-
return;
|
|
34
|
-
const onTransitionEvent = (e) => {
|
|
35
|
-
onValue(value.getValue());
|
|
36
|
-
};
|
|
37
|
-
const node = hostRef.current;
|
|
38
|
-
node.addEventListener("transitionstart", onTransitionEvent);
|
|
39
|
-
node.addEventListener("transitioncancel", onTransitionEvent);
|
|
40
|
-
node.addEventListener("transitionend", onTransitionEvent);
|
|
41
|
-
return () => {
|
|
42
|
-
node.removeEventListener("transitionstart", onTransitionEvent);
|
|
43
|
-
node.removeEventListener("transitioncancel", onTransitionEvent);
|
|
44
|
-
node.removeEventListener("transitionend", onTransitionEvent);
|
|
45
|
-
};
|
|
46
|
-
}, [hostRef, onValue]);
|
|
47
|
-
},
|
|
48
|
-
useAnimatedNumberStyle(val, getStyle) {
|
|
49
|
-
return getStyle(val.getValue());
|
|
50
|
-
},
|
|
51
|
-
useAnimations: ({ props, presence, style, state, hostRef }) => {
|
|
52
|
-
const isEntering = !!state.unmounted;
|
|
53
|
-
const isExiting = (presence == null ? void 0 : presence[0]) === false;
|
|
54
|
-
const sendExitComplete = presence == null ? void 0 : presence[1];
|
|
55
|
-
const animationKey = Array.isArray(props.animation) ? props.animation[0] : props.animation;
|
|
56
|
-
const animation = animations[animationKey];
|
|
57
|
-
if (!animation) {
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
const keys = props.animateOnly ? props.animateOnly.join(" ") : "all";
|
|
61
|
-
useIsomorphicLayoutEffect(() => {
|
|
62
|
-
if (!sendExitComplete || !isExiting || !hostRef.current)
|
|
63
|
-
return;
|
|
64
|
-
const node = hostRef.current;
|
|
65
|
-
const onFinishAnimation = () => {
|
|
66
|
-
sendExitComplete == null ? void 0 : sendExitComplete();
|
|
67
|
-
};
|
|
68
|
-
node.addEventListener("transitionend", onFinishAnimation);
|
|
69
|
-
node.addEventListener("transitioncancel", onFinishAnimation);
|
|
70
|
-
return () => {
|
|
71
|
-
node.removeEventListener("transitionend", onFinishAnimation);
|
|
72
|
-
node.addEventListener("transitioncancel", onFinishAnimation);
|
|
73
|
-
};
|
|
74
|
-
}, [sendExitComplete, isExiting]);
|
|
75
|
-
style.transition = `${keys} ${animation}`;
|
|
76
|
-
if (process.env.NODE_ENV === "development" && props["debug"]) {
|
|
77
|
-
console.log("CSS animation", style, { isEntering, isExiting });
|
|
78
|
-
}
|
|
79
|
-
return useMemo(() => {
|
|
80
|
-
return { style };
|
|
81
|
-
}, [JSON.stringify(style)]);
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
export {
|
|
86
|
-
createAnimations
|
|
87
|
-
};
|
|
1
|
+
import{usePresence as A}from"@tamagui/use-presence";import{Stack as L,Text as f,useIsomorphicLayoutEffect as v}from"@tamagui/web";import{useMemo as g,useState as b}from"react";function x(m){return{View:L,Text:f,animations:m,usePresence:A,useAnimatedNumber(n){const[t,i]=b(n);return{getInstance(){return t},getValue(){return t},setValue(e){i(e)},stop(){}}},useAnimatedNumberReaction({hostRef:n,value:t},i){v(()=>{if(!n.current)return;const e=d=>{i(t.getValue())},r=n.current;return r.addEventListener("transitionstart",e),r.addEventListener("transitioncancel",e),r.addEventListener("transitionend",e),()=>{r.removeEventListener("transitionstart",e),r.removeEventListener("transitioncancel",e),r.removeEventListener("transitionend",e)}},[n,i])},useAnimatedNumberStyle(n,t){return t(n.getValue())},useAnimations:({props:n,presence:t,style:i,state:e,hostRef:r})=>{const d=!!e.unmounted,u=(t==null?void 0:t[0])===!1,a=t==null?void 0:t[1],l=Array.isArray(n.animation)?n.animation[0]:n.animation,c=m[l];if(!c)return null;const E=n.animateOnly?n.animateOnly.join(" "):"all";return v(()=>{if(!a||!u||!r.current)return;const o=r.current,s=()=>{a==null||a()};return o.addEventListener("transitionend",s),o.addEventListener("transitioncancel",s),()=>{o.removeEventListener("transitionend",s),o.addEventListener("transitioncancel",s)}},[a,u]),i.transition=`${E} ${c}`,process.env.NODE_ENV==="development"&&n.debug&&console.log("CSS animation",i,{isEntering:d,isExiting:u}),g(()=>({style:i}),[JSON.stringify(i)])}}}export{x as createAnimations};
|
|
88
2
|
//# sourceMappingURL=createAnimations.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/createAnimations.tsx"],
|
|
4
4
|
"sourcesContent": ["import { usePresence } from '@tamagui/use-presence'\nimport {\n AnimationDriver,\n Stack,\n Text,\n UniversalAnimatedNumber,\n useIsomorphicLayoutEffect,\n} from '@tamagui/web'\nimport { useMemo, useRef, useState } from 'react'\n\nexport function createAnimations<A extends Object>(animations: A): AnimationDriver<A> {\n return {\n View: Stack,\n Text: Text,\n animations,\n usePresence,\n\n useAnimatedNumber(initial): UniversalAnimatedNumber<number> {\n const [val, setVal] = useState(initial)\n\n return {\n getInstance() {\n return val\n },\n getValue() {\n return val\n },\n setValue(next) {\n setVal(next)\n },\n stop() {},\n }\n },\n\n useAnimatedNumberReaction({ hostRef, value }, onValue) {\n // doesn't make much sense given value the animated value is a state in this driver, but this is compatible\n useIsomorphicLayoutEffect(() => {\n if (!hostRef.current) return\n const onTransitionEvent = (e: TransitionEvent) => {\n onValue(value.getValue())\n }\n\n const node = hostRef.current as HTMLElement\n node.addEventListener('transitionstart', onTransitionEvent)\n node.addEventListener('transitioncancel', onTransitionEvent)\n node.addEventListener('transitionend', onTransitionEvent)\n return () => {\n node.removeEventListener('transitionstart', onTransitionEvent)\n node.removeEventListener('transitioncancel', onTransitionEvent)\n node.removeEventListener('transitionend', onTransitionEvent)\n }\n }, [hostRef, onValue])\n },\n\n useAnimatedNumberStyle(val, getStyle) {\n return getStyle(val.getValue())\n },\n\n useAnimations: ({ props, presence, style, state, hostRef }) => {\n const isEntering = !!state.unmounted\n const isExiting = presence?.[0] === false\n const sendExitComplete = presence?.[1]\n const animationKey = Array.isArray(props.animation)\n ? props.animation[0]\n : props.animation\n const animation = animations[animationKey as any]\n if (!animation) {\n return null\n }\n\n const keys = props.animateOnly ? props.animateOnly.join(' ') : 'all'\n\n useIsomorphicLayoutEffect(() => {\n if (!sendExitComplete || !isExiting || !hostRef.current) return\n const node = hostRef.current as HTMLElement\n const onFinishAnimation = () => {\n sendExitComplete?.()\n }\n node.addEventListener('transitionend', onFinishAnimation)\n node.addEventListener('transitioncancel', onFinishAnimation)\n return () => {\n node.removeEventListener('transitionend', onFinishAnimation)\n node.addEventListener('transitioncancel', onFinishAnimation)\n }\n }, [sendExitComplete, isExiting])\n\n // add css transition\n style.transition = `${keys} ${animation}`\n\n if (process.env.NODE_ENV === 'development' && props['debug']) {\n // eslint-disable-next-line no-console\n console.log('CSS animation', style, { isEntering, isExiting })\n }\n\n return useMemo(() => {\n return { style }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [JSON.stringify(style)])\n },\n }\n}\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAS,eAAAA,MAAmB,wBAC5B,OAEE,SAAAC,EACA,QAAAC,EAEA,6BAAAC,MACK,eACP,OAAS,WAAAC,EAAiB,YAAAC,MAAgB,QAEnC,SAASC,EAAmCC,EAAmC,CACpF,MAAO,CACL,KAAMN,EACN,KAAMC,EACN,WAAAK,EACA,YAAAP,EAEA,kBAAkBQ,EAA0C,CAC1D,KAAM,CAACC,EAAKC,CAAM,EAAIL,EAASG,CAAO,EAEtC,MAAO,CACL,aAAc,CACZ,OAAOC,CACT,EACA,UAAW,CACT,OAAOA,CACT,EACA,SAASE,EAAM,CACbD,EAAOC,CAAI,CACb,EACA,MAAO,CAAC,CACV,CACF,EAEA,0BAA0B,CAAE,QAAAC,EAAS,MAAAC,CAAM,EAAGC,EAAS,CAErDX,EAA0B,IAAM,CAC9B,GAAI,CAACS,EAAQ,QAAS,OACtB,MAAMG,EAAqBC,GAAuB,CAChDF,EAAQD,EAAM,SAAS,CAAC,CAC1B,EAEMI,EAAOL,EAAQ,QACrB,OAAAK,EAAK,iBAAiB,kBAAmBF,CAAiB,EAC1DE,EAAK,iBAAiB,mBAAoBF,CAAiB,EAC3DE,EAAK,iBAAiB,gBAAiBF,CAAiB,EACjD,IAAM,CACXE,EAAK,oBAAoB,kBAAmBF,CAAiB,EAC7DE,EAAK,oBAAoB,mBAAoBF,CAAiB,EAC9DE,EAAK,oBAAoB,gBAAiBF,CAAiB,CAC7D,CACF,EAAG,CAACH,EAASE,CAAO,CAAC,CACvB,EAEA,uBAAuBL,EAAKS,EAAU,CACpC,OAAOA,EAAST,EAAI,SAAS,CAAC,CAChC,EAEA,cAAe,CAAC,CAAE,MAAAU,EAAO,SAAAC,EAAU,MAAAC,EAAO,MAAAC,EAAO,QAAAV,CAAQ,IAAM,CAC7D,MAAMW,EAAa,CAAC,CAACD,EAAM,UACrBE,GAAYJ,GAAA,YAAAA,EAAW,MAAO,GAC9BK,EAAmBL,GAAA,YAAAA,EAAW,GAC9BM,EAAe,MAAM,QAAQP,EAAM,SAAS,EAC9CA,EAAM,UAAU,CAAC,EACjBA,EAAM,UACJQ,EAAYpB,EAAWmB,CAAmB,EAChD,GAAI,CAACC,EACH,OAAO,KAGT,MAAMC,EAAOT,EAAM,YAAcA,EAAM,YAAY,KAAK,GAAG,EAAI,MAE/D,OAAAhB,EAA0B,IAAM,CAC9B,GAAI,CAACsB,GAAoB,CAACD,GAAa,CAACZ,EAAQ,QAAS,OACzD,MAAMK,EAAOL,EAAQ,QACfiB,EAAoB,IAAM,CAC9BJ,GAAA,MAAAA,GACF,EACA,OAAAR,EAAK,iBAAiB,gBAAiBY,CAAiB,EACxDZ,EAAK,iBAAiB,mBAAoBY,CAAiB,EACpD,IAAM,CACXZ,EAAK,oBAAoB,gBAAiBY,CAAiB,EAC3DZ,EAAK,iBAAiB,mBAAoBY,CAAiB,CAC7D,CACF,EAAG,CAACJ,EAAkBD,CAAS,CAAC,EAGhCH,EAAM,WAAa,GAAGO,KAAQD,IAE1B,QAAQ,IAAI,WAAa,eAAiBR,EAAM,OAElD,QAAQ,IAAI,gBAAiBE,EAAO,CAAE,WAAAE,EAAY,UAAAC,CAAU,CAAC,EAGxDpB,EAAQ,KACN,CAAE,MAAAiB,CAAM,GAEd,CAAC,KAAK,UAAUA,CAAK,CAAC,CAAC,CAC5B,CACF,CACF",
|
|
6
|
+
"names": ["usePresence", "Stack", "Text", "useIsomorphicLayoutEffect", "useMemo", "useState", "createAnimations", "animations", "initial", "val", "setVal", "next", "hostRef", "value", "onValue", "onTransitionEvent", "e", "node", "getStyle", "props", "presence", "style", "state", "isEntering", "isExiting", "sendExitComplete", "animationKey", "animation", "keys", "onFinishAnimation"]
|
|
7
7
|
}
|
|
@@ -1,88 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
Stack,
|
|
4
|
-
Text,
|
|
5
|
-
useIsomorphicLayoutEffect
|
|
6
|
-
} from "@tamagui/web";
|
|
7
|
-
import { useMemo, useState } from "react";
|
|
8
|
-
function createAnimations(animations) {
|
|
9
|
-
return {
|
|
10
|
-
View: Stack,
|
|
11
|
-
Text,
|
|
12
|
-
animations,
|
|
13
|
-
usePresence,
|
|
14
|
-
useAnimatedNumber(initial) {
|
|
15
|
-
const [val, setVal] = useState(initial);
|
|
16
|
-
return {
|
|
17
|
-
getInstance() {
|
|
18
|
-
return val;
|
|
19
|
-
},
|
|
20
|
-
getValue() {
|
|
21
|
-
return val;
|
|
22
|
-
},
|
|
23
|
-
setValue(next) {
|
|
24
|
-
setVal(next);
|
|
25
|
-
},
|
|
26
|
-
stop() {
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
useAnimatedNumberReaction({ hostRef, value }, onValue) {
|
|
31
|
-
useIsomorphicLayoutEffect(() => {
|
|
32
|
-
if (!hostRef.current)
|
|
33
|
-
return;
|
|
34
|
-
const onTransitionEvent = (e) => {
|
|
35
|
-
onValue(value.getValue());
|
|
36
|
-
};
|
|
37
|
-
const node = hostRef.current;
|
|
38
|
-
node.addEventListener("transitionstart", onTransitionEvent);
|
|
39
|
-
node.addEventListener("transitioncancel", onTransitionEvent);
|
|
40
|
-
node.addEventListener("transitionend", onTransitionEvent);
|
|
41
|
-
return () => {
|
|
42
|
-
node.removeEventListener("transitionstart", onTransitionEvent);
|
|
43
|
-
node.removeEventListener("transitioncancel", onTransitionEvent);
|
|
44
|
-
node.removeEventListener("transitionend", onTransitionEvent);
|
|
45
|
-
};
|
|
46
|
-
}, [hostRef, onValue]);
|
|
47
|
-
},
|
|
48
|
-
useAnimatedNumberStyle(val, getStyle) {
|
|
49
|
-
return getStyle(val.getValue());
|
|
50
|
-
},
|
|
51
|
-
useAnimations: ({ props, presence, style, state, hostRef }) => {
|
|
52
|
-
const isEntering = !!state.unmounted;
|
|
53
|
-
const isExiting = (presence == null ? void 0 : presence[0]) === false;
|
|
54
|
-
const sendExitComplete = presence == null ? void 0 : presence[1];
|
|
55
|
-
const animationKey = Array.isArray(props.animation) ? props.animation[0] : props.animation;
|
|
56
|
-
const animation = animations[animationKey];
|
|
57
|
-
if (!animation) {
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
const keys = props.animateOnly ? props.animateOnly.join(" ") : "all";
|
|
61
|
-
useIsomorphicLayoutEffect(() => {
|
|
62
|
-
if (!sendExitComplete || !isExiting || !hostRef.current)
|
|
63
|
-
return;
|
|
64
|
-
const node = hostRef.current;
|
|
65
|
-
const onFinishAnimation = () => {
|
|
66
|
-
sendExitComplete == null ? void 0 : sendExitComplete();
|
|
67
|
-
};
|
|
68
|
-
node.addEventListener("transitionend", onFinishAnimation);
|
|
69
|
-
node.addEventListener("transitioncancel", onFinishAnimation);
|
|
70
|
-
return () => {
|
|
71
|
-
node.removeEventListener("transitionend", onFinishAnimation);
|
|
72
|
-
node.addEventListener("transitioncancel", onFinishAnimation);
|
|
73
|
-
};
|
|
74
|
-
}, [sendExitComplete, isExiting]);
|
|
75
|
-
style.transition = `${keys} ${animation}`;
|
|
76
|
-
if (process.env.NODE_ENV === "development" && props["debug"]) {
|
|
77
|
-
console.log("CSS animation", style, { isEntering, isExiting });
|
|
78
|
-
}
|
|
79
|
-
return useMemo(() => {
|
|
80
|
-
return { style };
|
|
81
|
-
}, [JSON.stringify(style)]);
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
export {
|
|
86
|
-
createAnimations
|
|
87
|
-
};
|
|
1
|
+
import{usePresence as A}from"@tamagui/use-presence";import{Stack as L,Text as f,useIsomorphicLayoutEffect as v}from"@tamagui/web";import{useMemo as g,useState as b}from"react";function x(m){return{View:L,Text:f,animations:m,usePresence:A,useAnimatedNumber(n){const[t,i]=b(n);return{getInstance(){return t},getValue(){return t},setValue(e){i(e)},stop(){}}},useAnimatedNumberReaction({hostRef:n,value:t},i){v(()=>{if(!n.current)return;const e=d=>{i(t.getValue())},r=n.current;return r.addEventListener("transitionstart",e),r.addEventListener("transitioncancel",e),r.addEventListener("transitionend",e),()=>{r.removeEventListener("transitionstart",e),r.removeEventListener("transitioncancel",e),r.removeEventListener("transitionend",e)}},[n,i])},useAnimatedNumberStyle(n,t){return t(n.getValue())},useAnimations:({props:n,presence:t,style:i,state:e,hostRef:r})=>{const d=!!e.unmounted,u=(t==null?void 0:t[0])===!1,a=t==null?void 0:t[1],l=Array.isArray(n.animation)?n.animation[0]:n.animation,c=m[l];if(!c)return null;const E=n.animateOnly?n.animateOnly.join(" "):"all";return v(()=>{if(!a||!u||!r.current)return;const o=r.current,s=()=>{a==null||a()};return o.addEventListener("transitionend",s),o.addEventListener("transitioncancel",s),()=>{o.removeEventListener("transitionend",s),o.addEventListener("transitioncancel",s)}},[a,u]),i.transition=`${E} ${c}`,process.env.NODE_ENV==="development"&&n.debug&&console.log("CSS animation",i,{isEntering:d,isExiting:u}),g(()=>({style:i}),[JSON.stringify(i)])}}}export{x as createAnimations};
|
|
88
2
|
//# sourceMappingURL=createAnimations.mjs.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/createAnimations.tsx"],
|
|
4
4
|
"sourcesContent": ["import { usePresence } from '@tamagui/use-presence'\nimport {\n AnimationDriver,\n Stack,\n Text,\n UniversalAnimatedNumber,\n useIsomorphicLayoutEffect,\n} from '@tamagui/web'\nimport { useMemo, useRef, useState } from 'react'\n\nexport function createAnimations<A extends Object>(animations: A): AnimationDriver<A> {\n return {\n View: Stack,\n Text: Text,\n animations,\n usePresence,\n\n useAnimatedNumber(initial): UniversalAnimatedNumber<number> {\n const [val, setVal] = useState(initial)\n\n return {\n getInstance() {\n return val\n },\n getValue() {\n return val\n },\n setValue(next) {\n setVal(next)\n },\n stop() {},\n }\n },\n\n useAnimatedNumberReaction({ hostRef, value }, onValue) {\n // doesn't make much sense given value the animated value is a state in this driver, but this is compatible\n useIsomorphicLayoutEffect(() => {\n if (!hostRef.current) return\n const onTransitionEvent = (e: TransitionEvent) => {\n onValue(value.getValue())\n }\n\n const node = hostRef.current as HTMLElement\n node.addEventListener('transitionstart', onTransitionEvent)\n node.addEventListener('transitioncancel', onTransitionEvent)\n node.addEventListener('transitionend', onTransitionEvent)\n return () => {\n node.removeEventListener('transitionstart', onTransitionEvent)\n node.removeEventListener('transitioncancel', onTransitionEvent)\n node.removeEventListener('transitionend', onTransitionEvent)\n }\n }, [hostRef, onValue])\n },\n\n useAnimatedNumberStyle(val, getStyle) {\n return getStyle(val.getValue())\n },\n\n useAnimations: ({ props, presence, style, state, hostRef }) => {\n const isEntering = !!state.unmounted\n const isExiting = presence?.[0] === false\n const sendExitComplete = presence?.[1]\n const animationKey = Array.isArray(props.animation)\n ? props.animation[0]\n : props.animation\n const animation = animations[animationKey as any]\n if (!animation) {\n return null\n }\n\n const keys = props.animateOnly ? props.animateOnly.join(' ') : 'all'\n\n useIsomorphicLayoutEffect(() => {\n if (!sendExitComplete || !isExiting || !hostRef.current) return\n const node = hostRef.current as HTMLElement\n const onFinishAnimation = () => {\n sendExitComplete?.()\n }\n node.addEventListener('transitionend', onFinishAnimation)\n node.addEventListener('transitioncancel', onFinishAnimation)\n return () => {\n node.removeEventListener('transitionend', onFinishAnimation)\n node.addEventListener('transitioncancel', onFinishAnimation)\n }\n }, [sendExitComplete, isExiting])\n\n // add css transition\n style.transition = `${keys} ${animation}`\n\n if (process.env.NODE_ENV === 'development' && props['debug']) {\n // eslint-disable-next-line no-console\n console.log('CSS animation', style, { isEntering, isExiting })\n }\n\n return useMemo(() => {\n return { style }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [JSON.stringify(style)])\n },\n }\n}\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAS,eAAAA,MAAmB,wBAC5B,OAEE,SAAAC,EACA,QAAAC,EAEA,6BAAAC,MACK,eACP,OAAS,WAAAC,EAAiB,YAAAC,MAAgB,QAEnC,SAASC,EAAmCC,EAAmC,CACpF,MAAO,CACL,KAAMN,EACN,KAAMC,EACN,WAAAK,EACA,YAAAP,EAEA,kBAAkBQ,EAA0C,CAC1D,KAAM,CAACC,EAAKC,CAAM,EAAIL,EAASG,CAAO,EAEtC,MAAO,CACL,aAAc,CACZ,OAAOC,CACT,EACA,UAAW,CACT,OAAOA,CACT,EACA,SAASE,EAAM,CACbD,EAAOC,CAAI,CACb,EACA,MAAO,CAAC,CACV,CACF,EAEA,0BAA0B,CAAE,QAAAC,EAAS,MAAAC,CAAM,EAAGC,EAAS,CAErDX,EAA0B,IAAM,CAC9B,GAAI,CAACS,EAAQ,QAAS,OACtB,MAAMG,EAAqBC,GAAuB,CAChDF,EAAQD,EAAM,SAAS,CAAC,CAC1B,EAEMI,EAAOL,EAAQ,QACrB,OAAAK,EAAK,iBAAiB,kBAAmBF,CAAiB,EAC1DE,EAAK,iBAAiB,mBAAoBF,CAAiB,EAC3DE,EAAK,iBAAiB,gBAAiBF,CAAiB,EACjD,IAAM,CACXE,EAAK,oBAAoB,kBAAmBF,CAAiB,EAC7DE,EAAK,oBAAoB,mBAAoBF,CAAiB,EAC9DE,EAAK,oBAAoB,gBAAiBF,CAAiB,CAC7D,CACF,EAAG,CAACH,EAASE,CAAO,CAAC,CACvB,EAEA,uBAAuBL,EAAKS,EAAU,CACpC,OAAOA,EAAST,EAAI,SAAS,CAAC,CAChC,EAEA,cAAe,CAAC,CAAE,MAAAU,EAAO,SAAAC,EAAU,MAAAC,EAAO,MAAAC,EAAO,QAAAV,CAAQ,IAAM,CAC7D,MAAMW,EAAa,CAAC,CAACD,EAAM,UACrBE,GAAYJ,GAAA,YAAAA,EAAW,MAAO,GAC9BK,EAAmBL,GAAA,YAAAA,EAAW,GAC9BM,EAAe,MAAM,QAAQP,EAAM,SAAS,EAC9CA,EAAM,UAAU,CAAC,EACjBA,EAAM,UACJQ,EAAYpB,EAAWmB,CAAmB,EAChD,GAAI,CAACC,EACH,OAAO,KAGT,MAAMC,EAAOT,EAAM,YAAcA,EAAM,YAAY,KAAK,GAAG,EAAI,MAE/D,OAAAhB,EAA0B,IAAM,CAC9B,GAAI,CAACsB,GAAoB,CAACD,GAAa,CAACZ,EAAQ,QAAS,OACzD,MAAMK,EAAOL,EAAQ,QACfiB,EAAoB,IAAM,CAC9BJ,GAAA,MAAAA,GACF,EACA,OAAAR,EAAK,iBAAiB,gBAAiBY,CAAiB,EACxDZ,EAAK,iBAAiB,mBAAoBY,CAAiB,EACpD,IAAM,CACXZ,EAAK,oBAAoB,gBAAiBY,CAAiB,EAC3DZ,EAAK,iBAAiB,mBAAoBY,CAAiB,CAC7D,CACF,EAAG,CAACJ,EAAkBD,CAAS,CAAC,EAGhCH,EAAM,WAAa,GAAGO,KAAQD,IAE1B,QAAQ,IAAI,WAAa,eAAiBR,EAAM,OAElD,QAAQ,IAAI,gBAAiBE,EAAO,CAAE,WAAAE,EAAY,UAAAC,CAAU,CAAC,EAGxDpB,EAAQ,KACN,CAAE,MAAAiB,CAAM,GAEd,CAAC,KAAK,UAAUA,CAAK,CAAC,CAAC,CAC5B,CACF,CACF",
|
|
6
|
+
"names": ["usePresence", "Stack", "Text", "useIsomorphicLayoutEffect", "useMemo", "useState", "createAnimations", "animations", "initial", "val", "setVal", "next", "hostRef", "value", "onValue", "onTransitionEvent", "e", "node", "getStyle", "props", "presence", "style", "state", "isEntering", "isExiting", "sendExitComplete", "animationKey", "animation", "keys", "onFinishAnimation"]
|
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export*from"./createAnimations";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
package/dist/esm/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export*from"./createAnimations";
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/animations-css",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"dist"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@tamagui/use-presence": "1.
|
|
17
|
-
"@tamagui/web": "1.
|
|
16
|
+
"@tamagui/use-presence": "1.14.0",
|
|
17
|
+
"@tamagui/web": "1.14.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@tamagui/build": "1.
|
|
20
|
+
"@tamagui/build": "1.14.0"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "tamagui-build",
|