@tamagui/animations-css 1.135.4 → 1.135.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.
@@ -37,7 +37,7 @@ module.exports = __toCommonJS(createAnimations_exports);
37
37
  var import_constants = require("@tamagui/constants"),
38
38
  import_use_presence = require("@tamagui/use-presence"),
39
39
  import_web = require("@tamagui/web"),
40
- import_react = __toESM(require("react"));
40
+ import_react = __toESM(require("react"), 1);
41
41
  function extractDuration(animation) {
42
42
  const msMatch = animation.match(/(\d+(?:\.\d+)?)\s*ms/);
43
43
  if (msMatch) return Number.parseInt(msMatch[1], 10);
@@ -25,7 +25,7 @@ __export(createAnimations_exports, {
25
25
  createAnimations: () => createAnimations
26
26
  });
27
27
  module.exports = __toCommonJS(createAnimations_exports);
28
- var import_constants = require("@tamagui/constants"), import_use_presence = require("@tamagui/use-presence"), import_web = require("@tamagui/web"), import_react = __toESM(require("react"));
28
+ var import_constants = require("@tamagui/constants"), import_use_presence = require("@tamagui/use-presence"), import_web = require("@tamagui/web"), import_react = __toESM(require("react"), 1);
29
29
  function extractDuration(animation) {
30
30
  const msMatch = animation.match(/(\d+(?:\.\d+)?)\s*ms/);
31
31
  if (msMatch)
@@ -1,53 +1,64 @@
1
1
  "use strict";
2
+
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: !0
13
+ });
14
+ },
15
+ __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ return to;
21
+ };
16
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
23
  // If the importer is in node compatibility mode or this is not an ESM
18
24
  // file that has been converted to a CommonJS file using a Babel-
19
25
  // compatible transform (i.e. "__esModule" has not been set), then set
20
26
  // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: !0
30
+ }) : target, mod)),
31
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: !0
33
+ }), mod);
24
34
  var createAnimations_exports = {};
25
35
  __export(createAnimations_exports, {
26
36
  createAnimations: () => createAnimations
27
37
  });
28
38
  module.exports = __toCommonJS(createAnimations_exports);
29
- var import_constants = require("@tamagui/constants"), import_use_presence = require("@tamagui/use-presence"), import_web = require("@tamagui/web"), import_react = __toESM(require("react"));
39
+ var import_constants = require("@tamagui/constants"),
40
+ import_use_presence = require("@tamagui/use-presence"),
41
+ import_web = require("@tamagui/web"),
42
+ import_react = __toESM(require("react"), 1);
30
43
  function extractDuration(animation) {
31
44
  var msMatch = animation.match(/(\d+(?:\.\d+)?)\s*ms/);
32
- if (msMatch)
33
- return Number.parseInt(msMatch[1], 10);
45
+ if (msMatch) return Number.parseInt(msMatch[1], 10);
34
46
  var sMatch = animation.match(/(\d+(?:\.\d+)?)\s*s/);
35
47
  return sMatch ? Math.round(Number.parseFloat(sMatch[1]) * 1e3) : 300;
36
48
  }
37
49
  function createAnimations(animations) {
38
- var reactionListeners = /* @__PURE__ */ new WeakMap();
50
+ var reactionListeners = /* @__PURE__ */new WeakMap();
39
51
  return {
40
52
  animations,
41
53
  usePresence: import_use_presence.usePresence,
42
54
  ResetPresence: import_use_presence.ResetPresence,
43
55
  supportsCSS: !0,
44
56
  useAnimatedNumber(initial) {
45
- var [val, setVal] = import_react.default.useState(initial), [onFinish, setOnFinish] = (0, import_react.useState)();
46
- return (0, import_constants.useIsomorphicLayoutEffect)(function() {
47
- onFinish && (onFinish == null || onFinish(), setOnFinish(void 0));
48
- }, [
49
- onFinish
50
- ]), {
57
+ var [val, setVal] = import_react.default.useState(initial),
58
+ [onFinish, setOnFinish] = (0, import_react.useState)();
59
+ return (0, import_constants.useIsomorphicLayoutEffect)(function () {
60
+ onFinish && (onFinish?.(), setOnFinish(void 0));
61
+ }, [onFinish]), {
51
62
  getInstance() {
52
63
  return setVal;
53
64
  },
@@ -57,49 +68,61 @@ function createAnimations(animations) {
57
68
  setValue(next, config, onFinish2) {
58
69
  setVal(next), setOnFinish(onFinish2);
59
70
  },
60
- stop() {
61
- }
71
+ stop() {}
62
72
  };
63
73
  },
64
74
  useAnimatedNumberReaction(param, onValue) {
65
- var { value } = param;
66
- import_react.default.useEffect(function() {
67
- var instance = value.getInstance(), queue = reactionListeners.get(instance);
75
+ var {
76
+ value
77
+ } = param;
78
+ import_react.default.useEffect(function () {
79
+ var instance = value.getInstance(),
80
+ queue = reactionListeners.get(instance);
68
81
  if (!queue) {
69
- var next = /* @__PURE__ */ new Set();
82
+ var next = /* @__PURE__ */new Set();
70
83
  reactionListeners.set(instance, next), queue = next;
71
84
  }
72
- return queue.add(onValue), function() {
73
- queue == null || queue.delete(onValue);
85
+ return queue.add(onValue), function () {
86
+ queue?.delete(onValue);
74
87
  };
75
88
  }, []);
76
89
  },
77
90
  useAnimatedNumberStyle(val, getStyle) {
78
91
  return getStyle(val.getValue());
79
92
  },
80
- useAnimations: function(param) {
81
- var { props, presence, style, componentState, stateRef } = param, isEntering = !!componentState.unmounted, isExiting = (presence == null ? void 0 : presence[0]) === !1, sendExitComplete = presence == null ? void 0 : presence[1], [animationKey, animationConfig] = Array.isArray(props.animation) ? props.animation : [
82
- props.animation
83
- ], animation = animations[animationKey], _props_animateOnly, keys = (_props_animateOnly = props.animateOnly) !== null && _props_animateOnly !== void 0 ? _props_animateOnly : [
84
- "all"
85
- ];
86
- return (0, import_constants.useIsomorphicLayoutEffect)(function() {
93
+ useAnimations: function (param) {
94
+ var {
95
+ props,
96
+ presence,
97
+ style,
98
+ componentState,
99
+ stateRef
100
+ } = param,
101
+ isEntering = !!componentState.unmounted,
102
+ isExiting = presence?.[0] === !1,
103
+ sendExitComplete = presence?.[1],
104
+ [animationKey, animationConfig] = Array.isArray(props.animation) ? props.animation : [props.animation],
105
+ animation = animations[animationKey],
106
+ _props_animateOnly,
107
+ keys = (_props_animateOnly = props.animateOnly) !== null && _props_animateOnly !== void 0 ? _props_animateOnly : ["all"];
108
+ return (0, import_constants.useIsomorphicLayoutEffect)(function () {
87
109
  var host = stateRef.current.host;
88
110
  if (!(!sendExitComplete || !isExiting || !host)) {
89
- var node = host, fallbackTimeout = animation ? extractDuration(animation) : 200, timeoutId = setTimeout(function() {
90
- sendExitComplete == null || sendExitComplete();
91
- }, fallbackTimeout), onFinishAnimation = function() {
92
- clearTimeout(timeoutId), sendExitComplete == null || sendExitComplete();
93
- };
94
- return node.addEventListener("transitionend", onFinishAnimation), node.addEventListener("transitioncancel", onFinishAnimation), function() {
111
+ var node = host,
112
+ fallbackTimeout = animation ? extractDuration(animation) : 200,
113
+ timeoutId = setTimeout(function () {
114
+ sendExitComplete?.();
115
+ }, fallbackTimeout),
116
+ onFinishAnimation = function () {
117
+ clearTimeout(timeoutId), sendExitComplete?.();
118
+ };
119
+ return node.addEventListener("transitionend", onFinishAnimation), node.addEventListener("transitioncancel", onFinishAnimation), function () {
95
120
  clearTimeout(timeoutId), node.removeEventListener("transitionend", onFinishAnimation), node.removeEventListener("transitioncancel", onFinishAnimation);
96
121
  };
97
122
  }
98
- }, [
99
- sendExitComplete,
100
- isExiting
101
- ]), animation && (Array.isArray(style.transform) && (style.transform = (0, import_web.transformsToString)(style.transform)), style.transition = keys.map(function(key) {
102
- var _animations_animationConfig_key, override = (_animations_animationConfig_key = animations[animationConfig == null ? void 0 : animationConfig[key]]) !== null && _animations_animationConfig_key !== void 0 ? _animations_animationConfig_key : animation;
123
+ }, [sendExitComplete, isExiting]), animation && (Array.isArray(style.transform) && (style.transform = (0, import_web.transformsToString)(style.transform)), style.transition = keys.map(function (key) {
124
+ var _animations_animationConfig_key,
125
+ override = (_animations_animationConfig_key = animations[animationConfig?.[key]]) !== null && _animations_animationConfig_key !== void 0 ? _animations_animationConfig_key : animation;
103
126
  return `${key} ${override}`;
104
127
  }).join(", ")), process.env.NODE_ENV === "development" && props.debug === "verbose" && console.info("CSS animation", {
105
128
  props,
@@ -116,8 +139,4 @@ function createAnimations(animations) {
116
139
  }
117
140
  };
118
141
  }
119
- // Annotate the CommonJS export names for ESM import in node:
120
- 0 && (module.exports = {
121
- createAnimations
122
- });
123
- //# sourceMappingURL=createAnimations.js.map
142
+ //# sourceMappingURL=createAnimations.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/createAnimations.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAA0C,+BAC1C,sBAA2C,kCAC3C,aAAmC,yBACnC,eAAgC;AAM5B,SAAS,gBAAgB,WAAW;AAEpC,MAAI,UAAU,UAAU,MAAM,sBAAsB;AACpD,MAAI;AACA,WAAO,OA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Q,oCAAoC,SAAS,kCAAkC;AACjP,eAAO,GAAG,GAAG,IAAI,QAAQ;AAAA,MAC7B,CAAC,EAAE,KAAK,IAAI,IAEZ,QAAQ,IAAI,aAAa,iBAAiB,MAAM,UAAa,aAC7D,QAAQ,KAAK,iBAAiB;AAAA,QAC1B;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACJ,CAAC,GAEA,YAGE;AAAA,QACH;AAAA,QACA,WAAW,aAAa,gBAAgB;AAAA,MAC5C,IALW;AAAA,IAMf;AAAA,EACJ;AACJ;",
5
- "names": ["React", "onFinish"]
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","createAnimations_exports","__export","createAnimations","module","exports","import_constants","require","import_use_presence","import_web","import_react","__toESM","extractDuration","animation","msMatch","match","Number","parseInt","sMatch","Math","round","parseFloat","animations","reactionListeners","WeakMap","usePresence","ResetPresence","supportsCSS","useAnimatedNumber","initial","val","setVal","default","useState","onFinish","setOnFinish","useIsomorphicLayoutEffect","getInstance","getValue","setValue","next","config","onFinish2","stop","useAnimatedNumberReaction","param","onValue","useEffect","instance","queue","get","Set","set","add","delete","useAnimatedNumberStyle","getStyle","useAnimations","props","presence","style","componentState","stateRef","isEntering","unmounted","isExiting","sendExitComplete","animationKey","animationConfig","Array","isArray","_props_animateOnly","keys","animateOnly","host","current","node","fallbackTimeout","timeoutId","setTimeout","onFinishAnimation","clearTimeout","addEventListener","removeEventListener","transform","transformsToString","transition","map","key","_animations_animationConfig_key","override","join","process","env","NODE_ENV","debug","console","info"],"sources":["../../src/createAnimations.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,wBAAA;AAAAC,QAAA,CAAAD,wBAAA;EAAAE,gBAAA,EAAA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SAAK,KAAAS,IAAA;UAEP,IAAAE,IAAA,GAAAF,IAAA;YAAAG,eAAA,GAAAhE,SAAA,GAAAD,eAAA,CAAAC,SAAA;YAAAiE,SAAA,GAAAC,UAAA;cACEb,gBAAkB;YAYhB,GAAAW,eAAiB;YAAAG,iBAAW,YAAAA,CAAA,EAAsB;cAClDC,YAAa,CAAIH,SAAQ,GAAAZ,gBAAA;YAE1B;UAKD,OAAAU,IAAA,CAAAM,gBAAA,kBAAAF,iBAAA,GAAAJ,IAAA,CAAAM,gBAAA,qBAAAF,iBAAA;YACAC,YAAA,CAAAH,SAAA,GAAAF,IAAA,CAAAO,mBAAA,kBAAAH,iBAAA,GAAAJ,IAAA,CAAAO,mBAAA,qBAAAH,iBAAA;UACA;QACA;MAAA,GACA,CACAd,gBAAA,EACAD,SAAA,CACD,GAGEpD,SAAA,KAIIwD,KAAA,CAAAC,OAAO,CAAAV,KAAW,CAAAwB,SAAA,MAAaxB,KAAA,CAAAwB,SAAmB,IAHlD,GAAA3E,UAAA,CAAA4E,kBAAA,EAAAzB,KAAA,CAAAwB,SAAA,IAAAxB,KAAA,CAAA0B,UAAA,GAAAd,IAAA,CAAAe,GAAA,WAAAC,GAAA;QAIX,IAAAC,+BAAA;UAAAC,QAAA,IAAAD,+BAAA,GAAAnE,UAAA,CAAA8C,eAAA,GAAAoB,GAAA,gBAAAC,+BAAA,cAAAA,+BAAA,GAAA5E,SAAA;QACF,UAAA2E,GAAA,IAAAE,QAAA;MACF,GAAAC,IAAA,SAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,sBAAApC,KAAA,CAAAqC,KAAA,kBAAAC,OAAA,CAAAC,IAAA","ignoreList":[]}
@@ -1,20 +1,21 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from == "object" || typeof from == "function")
8
- for (let key of __getOwnPropNames(from))
9
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- return to;
11
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
12
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
8
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
+ get: () => from[key],
10
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
+ });
12
+ return to;
13
+ },
14
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
+ value: !0
17
+ }), mod);
13
18
  var index_exports = {};
14
19
  module.exports = __toCommonJS(index_exports);
15
- __reExport(index_exports, require("./createAnimations"), module.exports);
16
- // Annotate the CommonJS export names for ESM import in node:
17
- 0 && (module.exports = {
18
- ...require("./createAnimations")
19
- });
20
- //# sourceMappingURL=index.js.map
20
+ __reExport(index_exports, require("./createAnimations.native.js"), module.exports);
21
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,+BAAd;",
5
- "names": []
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@tamagui/animations-css",
3
- "version": "1.135.4",
3
+ "version": "1.135.6",
4
+ "type": "module",
4
5
  "source": "src/index.ts",
5
6
  "sideEffects": false,
6
7
  "license": "MIT",
@@ -26,13 +27,13 @@
26
27
  }
27
28
  },
28
29
  "dependencies": {
29
- "@tamagui/constants": "1.135.4",
30
- "@tamagui/cubic-bezier-animator": "1.135.4",
31
- "@tamagui/use-presence": "1.135.4",
32
- "@tamagui/web": "1.135.4"
30
+ "@tamagui/constants": "1.135.6",
31
+ "@tamagui/cubic-bezier-animator": "1.135.6",
32
+ "@tamagui/use-presence": "1.135.6",
33
+ "@tamagui/web": "1.135.6"
33
34
  },
34
35
  "devDependencies": {
35
- "@tamagui/build": "1.135.4",
36
+ "@tamagui/build": "1.135.6",
36
37
  "react": "*",
37
38
  "react-dom": "*"
38
39
  },
@@ -1,8 +1,6 @@
1
1
  {
2
- "mappings": "AAEA,cAAc,uBAAgD,cAAc;AA0B5E,OAAO,iBAAS,iBAAiB,UAAU,QAAQA,YAAY,IAAI,gBAAgB",
3
- "names": [
4
- "animations: A"
5
- ],
2
+ "mappings": "AAEA,cAAc,uBAAgD;AA0B9D,OAAO,iBAAS,iBAAiB,UAAU,QAAQ,YAAY,IAAI,gBAAgB",
3
+ "names": [],
6
4
  "sources": [
7
5
  "src/createAnimations.tsx"
8
6
  ],