@tamagui/animate 1.135.2 → 1.135.4-1761748186554

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.
@@ -1,38 +1,52 @@
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 __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
16
23
  var Animate_exports = {};
17
24
  __export(Animate_exports, {
18
25
  Animate: () => Animate
19
26
  });
20
27
  module.exports = __toCommonJS(Animate_exports);
21
- var import_jsx_runtime = require("react/jsx-runtime"), import_animate_presence = require("@tamagui/animate-presence"), import_react = require("react");
28
+ var import_jsx_runtime = require("react/jsx-runtime"),
29
+ import_animate_presence = require("@tamagui/animate-presence"),
30
+ import_react = require("react");
22
31
  function Animate(param) {
23
- var { children, lazyMount, type, present, passThrough, ...props } = param, [lazyMounted, setLazyMounted] = (0, import_react.useState)(lazyMount ? !1 : present);
24
- (0, import_react.useEffect)(function() {
25
- passThrough || lazyMount && present && (0, import_react.startTransition)(function() {
32
+ var {
33
+ children,
34
+ lazyMount,
35
+ type,
36
+ present,
37
+ passThrough,
38
+ ...props
39
+ } = param,
40
+ [lazyMounted, setLazyMounted] = (0, import_react.useState)(lazyMount ? !1 : present);
41
+ (0, import_react.useEffect)(function () {
42
+ passThrough || lazyMount && present && (0, import_react.startTransition)(function () {
26
43
  setLazyMounted(present);
27
44
  });
28
- }, [
29
- lazyMount,
30
- present
31
- ]);
45
+ }, [lazyMount, present]);
32
46
  var mounted = present ? lazyMount ? lazyMounted : present : !1;
33
- return type === "presence" ? props.keepChildrenMounted ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_animate_presence.PresenceChild, {
47
+ return type === "presence" ? props.keepChildrenMounted ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_animate_presence.PresenceChild, {
34
48
  isPresent: !0,
35
- ...!passThrough && {
49
+ ...(!passThrough && {
36
50
  initial: props.initial ? void 0 : !1,
37
51
  onExitComplete: props.onExitComplete,
38
52
  enterVariant: props.enterVariant,
@@ -43,18 +57,14 @@ function Animate(param) {
43
57
  presenceAffectsLayout: !1,
44
58
  isPresent: present,
45
59
  custom: props.custom
46
- },
60
+ }),
47
61
  children
48
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_animate_presence.AnimatePresence, {
62
+ }) : /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_animate_presence.AnimatePresence, {
49
63
  passThrough,
50
64
  ...props,
51
65
  children: mounted || passThrough ? children : null
52
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
66
+ }) : /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
53
67
  children
54
68
  });
55
69
  }
56
- // Annotate the CommonJS export names for ESM import in node:
57
- 0 && (module.exports = {
58
- Animate
59
- });
60
- //# sourceMappingURL=Animate.js.map
70
+ //# sourceMappingURL=Animate.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Animate.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAmD,8BACnD,0BAA+C,sCAC/C,eAAqD;AAkB1C,SAAS,QAAQ,OAAO;AAC/B,MAAI,EAAE,UAAU,WAAW,MAAM,SAAS,aAAa,GAAG,MAAM,IAAI,OAChE,CAAC,aAAa,cAAc,QAAI,uBAAS,YAAY,KAAQ,OAAO;AACxE,8BAAU,WAAW;AACjB,IAAI,eACC,aACA,eACL,8BAAgB,WAAW;AACvB,qBAAe,OAAO;AAAA,IAC1B,CAAC;AAAA,EACL,GAAG;AAAA,IACC;AAAA,IACA;AAAA,EACJ,CAAC;AAED,MAAI,UAAW,UAAkB,YAAY,cAAc,UAAlC;AACzB,SAAI,SAAS,aACL,MAAM,sBACe,uCAAAA,KAAK,uCAAe;AAAA,IACrC,WAAW;AAAA,IACX,GAAG,CAAC,eAAe;AAAA,MACf,SAAS,MAAM,UAAU,SAAY;AAAA,MACrC,gBAAgB,MAAM;AAAA,MACtB,cAAc,MAAM;AAAA,MACpB,aAAa,MAAM;AAAA,MACnB,kBAAkB,MAAM;AAAA;AAAA;AAAA,MAGxB,uBAAuB;AAAA,MACvB,WAAW;AAAA,MACX,QAAQ,MAAM;AAAA,IAClB;AAAA,IACA;AAAA,EACJ,CAAC,IAEgB,uCAAAA,KAAK,yCAAiB;AAAA,IACvC;AAAA,IACA,GAAG;AAAA,IACH,UAAU,WAAW,cAAc,WAAW;AAAA,EAClD,CAAC,IAEgB,uCAAAA,KAAK,mBAAAC,UAAW;AAAA,IACjC;AAAA,EACJ,CAAC;AACL;",
5
- "names": ["_jsx", "_Fragment"]
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Animate_exports","__export","Animate","module","exports","import_jsx_runtime","require","import_animate_presence","import_react","param","children","lazyMount","type","present","passThrough","props","lazyMounted","setLazyMounted","useState","useEffect","startTransition","mounted","keepChildrenMounted","jsx","PresenceChild","isPresent","initial","onExitComplete","enterVariant","exitVariant","enterExitVariant","presenceAffectsLayout","custom","AnimatePresence","Fragment"],"sources":["../../src/Animate.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,eAAA;AAAAC,QAAA,CAAAD,eAAA;EAAAE,OAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAAA,CAA+CK,eAAA;AAoCxC,IAAAK,kBAAiB,GAAAC,OAAA;EAAAC,uBAAA,GAAAD,OAAA;EAAAE,YAAA,GAAAF,OAAA;AAAA,SACtBJ,QAAAO,KAAA;EACA;MAAAC,QAAA;MAAAC,SAAA;MAAAC,IAAA;MAAAC,OAAA;MAAAC,WAAA;MAAA,GAAAC;IAAA,IAAAN,KAAA;IAAA,CAAAO,WAAA,EAAAC,cAAA,QAAAT,YAAA,CAAAU,QAAA,EAAAP,SAAA,QAAAE,OAAA;EACA,IAAAL,YAAA,CAAAW,SAAA;IACAL,WAAA,IAAAH,SAAA,IAAAE,OAAA,QAAAL,YAAA,CAAAY,eAAA;MACAH,cAAA,CAAAJ,OAAA;IACA,CAAG;EACL,CAAkC,GAChCF,SAAO,EAEPE,OAAA,CACE,CAAI;EAIF,IAAAQ,OAAA,GAAAR,OAAe,GAAAF,SAAO,GAAAK,WAAA,GAAAH,OAAA;EAAA,OACvBD,IAAA,kBAAAG,KAAA,CAAAO,mBAAA,sBAAAjB,kBAAA,CAAAkB,GAAA,EAAAhB,uBAAA,CAAAiB,aAAA;IACHC,SAAI,IAAW;IAGf,KAAMX,WAAW;MAEjBY,OAAI,EAAAX,KAAS,CAAAW,OAAA,GACP,MAAM;MAELC,cAAA,EAAAZ,KAAA,CAAAY,cAAA;MAAAC,YAAA,EAAAb,KAAA,CAAAa,YAAA;MACCC,WAAS,EAAAd,KAAA,CAAAc,WAAA;MACRC,gBAAK,EAAAf,KAAe,CAAAe,gBAAA;MAAA;MACkB;MACfC,qBACR,EAAM;MAAAN,SACpB,EAAAZ,OAAa;MAAMmB,MACnB,EAAAjB,KAAA,CAAAiB;IAAwB;IAAAtB;EAAA,oBAGxB,IAAAL,kBAAuB,CAAAkB,GAAA,EAAAhB,uBAAA,CAAA0B,eAAA;IAAAnB,WACvB;IAAW,GAAAC,KACX;IAAcL,QAChB,EAAAW,OAAA,IAAAP,WAAA,GAAAJ,QAAA;EAAA,KAEC,mBAAAL,kBAAA,CAAAkB,GAAA,EAAAlB,kBAAA,CAAA6B,QAAA;IAAAxB;EACH;AAYR","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("./Animate"), module.exports);
16
- // Annotate the CommonJS export names for ESM import in node:
17
- 0 && (module.exports = {
18
- ...require("./Animate")
19
- });
20
- //# sourceMappingURL=index.js.map
20
+ __reExport(index_exports, require("./Animate.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,sBAAd;",
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/animate",
3
- "version": "1.135.2",
3
+ "version": "1.135.4-1761748186554",
4
+ "type": "module",
4
5
  "source": "src/index.ts",
5
6
  "sideEffects": false,
6
7
  "license": "MIT",
@@ -13,10 +14,10 @@
13
14
  "dist"
14
15
  ],
15
16
  "dependencies": {
16
- "@tamagui/animate-presence": "1.135.2"
17
+ "@tamagui/animate-presence": "1.135.4-1761748186554"
17
18
  },
18
19
  "devDependencies": {
19
- "@tamagui/build": "1.135.2",
20
+ "@tamagui/build": "1.135.4-1761748186554",
20
21
  "react": "*"
21
22
  },
22
23
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "mappings": "AAAA,cAAc,4BAA4B,2BAA2B;KAIhE,YAAY;CACf,UAAU,MAAM;CAChB;AACD;KAEI,gBAAgB,uBAAuB;CAC1C,MAAM;CACN;CACA;CACA;AACD;AAED,YAAY,eAAe,YAAY;;;;;;;;;;;;;;;;;;;AAqBvC,OAAO,iBAAS,QAAQ,EACtB,UACA,WACA,MACA,SACA,YACA,GAAG,OACU,EAAZ,eAAe,MAAM",
2
+ "mappings": "AAAA,cAAc,4BAA4B;KAIrC,YAAY;CACf,UAAU,MAAM;CAChB;;KAGG,gBAAgB,uBAAuB;CAC1C,MAAM;CACN;CACA;CACA;;AAGF,YAAY,eAAe,YAAY;;;;;;;;;;;;;;;;;;;AAqBvC,OAAO,iBAAS,QAAQ,EACtB,UACA,WACA,MACA,SACA,YACA,GAAG,SACF,eAAe,MAAM",
3
3
  "names": [],
4
4
  "sources": [
5
5
  "src/Animate.tsx"