@tamagui/animate 1.61.2 → 1.62.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.
@@ -1,48 +1,37 @@
1
- "use strict";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
5
  var __export = (target, all) => {
7
6
  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") {
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
12
10
  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
- }
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
12
  return to;
17
13
  };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
19
15
  var Animate_exports = {};
20
16
  __export(Animate_exports, {
21
17
  Animate: () => Animate
22
18
  });
23
19
  module.exports = __toCommonJS(Animate_exports);
24
- var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_animate_presence = require("@tamagui/animate-presence");
20
+ var import_animate_presence = require("@tamagui/animate-presence"), import_jsx_runtime = require("react/jsx-runtime");
26
21
  function Animate({ children, type, ...props }) {
27
- if (type === "presence") {
28
- if (props.keepChildrenMounted) {
29
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
30
- import_animate_presence.PresenceChild,
31
- {
32
- initial: props.initial ? void 0 : false,
33
- onExitComplete: props.onExitComplete,
34
- enterVariant: props.enterVariant,
35
- exitVariant: props.exitVariant,
36
- enterExitVariant: props.enterExitVariant,
37
- presenceAffectsLayout: props.presenceAffectsLayout || true,
38
- isPresent: props.present,
39
- children
40
- }
41
- );
22
+ return type === "presence" ? props.keepChildrenMounted ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
23
+ import_animate_presence.PresenceChild,
24
+ {
25
+ initial: props.initial ? void 0 : !1,
26
+ onExitComplete: props.onExitComplete,
27
+ enterVariant: props.enterVariant,
28
+ exitVariant: props.exitVariant,
29
+ enterExitVariant: props.enterExitVariant,
30
+ presenceAffectsLayout: props.presenceAffectsLayout || !0,
31
+ isPresent: props.present,
32
+ children
42
33
  }
43
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_animate_presence.AnimatePresence, { ...props, children: props.present ? children : null });
44
- }
45
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
34
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_animate_presence.AnimatePresence, { ...props, children: props.present ? children : null }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
46
35
  }
47
36
  // Annotate the CommonJS export names for ESM import in node:
48
37
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Animate.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyCQ;AAzCR,8BAIO;AAiCA,SAAS,QAAQ,EAAE,UAAU,MAAM,GAAG,MAAM,GAAiB;AAClE,MAAI,SAAS,YAAY;AACvB,QAAI,MAAM,qBAAqB;AAC7B,aACE;AAAA,QAAC;AAAA;AAAA,UACC,SAAS,MAAM,UAAU,SAAY;AAAA,UACrC,gBAAgB,MAAM;AAAA,UACtB,cAAc,MAAM;AAAA,UACpB,aAAa,MAAM;AAAA,UACnB,kBAAkB,MAAM;AAAA,UACxB,uBAAuB,MAAM,yBAAyB;AAAA,UACtD,WAAW,MAAM;AAAA,UAEhB;AAAA;AAAA,MACH;AAAA,IAEJ;AAEA,WAAO,4CAAC,2CAAiB,GAAG,OAAQ,gBAAM,UAAU,WAAW,MAAK;AAAA,EACtE;AAEA,SAAO,2EAAG,UAAS;AACrB;",
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAIO,sCAqCC;AAJD,SAAS,QAAQ,EAAE,UAAU,MAAM,GAAG,MAAM,GAAiB;AAClE,SAAI,SAAS,aACP,MAAM,sBAEN;AAAA,IAAC;AAAA;AAAA,MACC,SAAS,MAAM,UAAU,SAAY;AAAA,MACrC,gBAAgB,MAAM;AAAA,MACtB,cAAc,MAAM;AAAA,MACpB,aAAa,MAAM;AAAA,MACnB,kBAAkB,MAAM;AAAA,MACxB,uBAAuB,MAAM,yBAAyB;AAAA,MACtD,WAAW,MAAM;AAAA,MAEhB;AAAA;AAAA,EACH,IAIG,4CAAC,2CAAiB,GAAG,OAAQ,gBAAM,UAAU,WAAW,MAAK,IAG/D,2EAAG,UAAS;AACrB;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,41 @@
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: !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);
16
+ var Animate_exports = {};
17
+ __export(Animate_exports, {
18
+ Animate: () => Animate
19
+ });
20
+ module.exports = __toCommonJS(Animate_exports);
21
+ var import_animate_presence = require("@tamagui/animate-presence"), import_jsx_runtime = require("react/jsx-runtime");
22
+ function Animate({ children, type, ...props }) {
23
+ return type === "presence" ? props.keepChildrenMounted ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
24
+ import_animate_presence.PresenceChild,
25
+ {
26
+ initial: props.initial ? void 0 : !1,
27
+ onExitComplete: props.onExitComplete,
28
+ enterVariant: props.enterVariant,
29
+ exitVariant: props.exitVariant,
30
+ enterExitVariant: props.enterExitVariant,
31
+ presenceAffectsLayout: props.presenceAffectsLayout || !0,
32
+ isPresent: props.present,
33
+ children
34
+ }
35
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_animate_presence.AnimatePresence, { ...props, children: props.present ? children : null }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
36
+ }
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ Animate
40
+ });
41
+ //# sourceMappingURL=Animate.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Animate.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAIO,sCAqCC;AAJD,SAAS,QAAQ,EAAE,UAAU,MAAM,GAAG,MAAM,GAAiB;AAClE,SAAI,SAAS,aACP,MAAM,sBAEN;AAAA,IAAC;AAAA;AAAA,MACC,SAAS,MAAM,UAAU,SAAY;AAAA,MACrC,gBAAgB,MAAM;AAAA,MACtB,cAAc,MAAM;AAAA,MACpB,aAAa,MAAM;AAAA,MACnB,kBAAkB,MAAM;AAAA,MACxB,uBAAuB,MAAM,yBAAyB;AAAA,MACtD,WAAW,MAAM;AAAA,MAEhB;AAAA;AAAA,EACH,IAIG,4CAAC,2CAAiB,GAAG,OAAQ,gBAAM,UAAU,WAAW,MAAK,IAG/D,2EAAG,UAAS;AACrB;",
5
+ "names": []
6
+ }
package/dist/cjs/index.js CHANGED
@@ -1,18 +1,14 @@
1
- "use strict";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
5
  var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
6
+ if (from && typeof from == "object" || typeof from == "function")
8
7
  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
- }
8
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
9
  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);
10
+ }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
12
  var src_exports = {};
17
13
  module.exports = __toCommonJS(src_exports);
18
14
  __reExport(src_exports, require("./Animate"), module.exports);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,sBAAd;",
4
+ "mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,sBAAd;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,20 @@
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
+ !__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);
13
+ var src_exports = {};
14
+ module.exports = __toCommonJS(src_exports);
15
+ __reExport(src_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
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,sBAAd;",
5
+ "names": []
6
+ }
@@ -1,28 +1,22 @@
1
- import { Fragment, jsx } from "react/jsx-runtime";
2
1
  import {
3
2
  AnimatePresence,
4
3
  PresenceChild
5
4
  } from "@tamagui/animate-presence";
5
+ import { Fragment, jsx } from "react/jsx-runtime";
6
6
  function Animate({ children, type, ...props }) {
7
- if (type === "presence") {
8
- if (props.keepChildrenMounted) {
9
- return /* @__PURE__ */ jsx(
10
- PresenceChild,
11
- {
12
- initial: props.initial ? void 0 : false,
13
- onExitComplete: props.onExitComplete,
14
- enterVariant: props.enterVariant,
15
- exitVariant: props.exitVariant,
16
- enterExitVariant: props.enterExitVariant,
17
- presenceAffectsLayout: props.presenceAffectsLayout || true,
18
- isPresent: props.present,
19
- children
20
- }
21
- );
7
+ return type === "presence" ? props.keepChildrenMounted ? /* @__PURE__ */ jsx(
8
+ PresenceChild,
9
+ {
10
+ initial: props.initial ? void 0 : !1,
11
+ onExitComplete: props.onExitComplete,
12
+ enterVariant: props.enterVariant,
13
+ exitVariant: props.exitVariant,
14
+ enterExitVariant: props.enterExitVariant,
15
+ presenceAffectsLayout: props.presenceAffectsLayout || !0,
16
+ isPresent: props.present,
17
+ children
22
18
  }
23
- return /* @__PURE__ */ jsx(AnimatePresence, { ...props, children: props.present ? children : null });
24
- }
25
- return /* @__PURE__ */ jsx(Fragment, { children });
19
+ ) : /* @__PURE__ */ jsx(AnimatePresence, { ...props, children: props.present ? children : null }) : /* @__PURE__ */ jsx(Fragment, { children });
26
20
  }
27
21
  export {
28
22
  Animate
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Animate.tsx"],
4
- "mappings": "AAyCQ,SAiBC,UAjBD;AAzCR;AAAA,EACE;AAAA,EAEA;AAAA,OACK;AAiCA,SAAS,QAAQ,EAAE,UAAU,MAAM,GAAG,MAAM,GAAiB;AAClE,MAAI,SAAS,YAAY;AACvB,QAAI,MAAM,qBAAqB;AAC7B,aACE;AAAA,QAAC;AAAA;AAAA,UACC,SAAS,MAAM,UAAU,SAAY;AAAA,UACrC,gBAAgB,MAAM;AAAA,UACtB,cAAc,MAAM;AAAA,UACpB,aAAa,MAAM;AAAA,UACnB,kBAAkB,MAAM;AAAA,UACxB,uBAAuB,MAAM,yBAAyB;AAAA,UACtD,WAAW,MAAM;AAAA,UAEhB;AAAA;AAAA,MACH;AAAA,IAEJ;AAEA,WAAO,oBAAC,mBAAiB,GAAG,OAAQ,gBAAM,UAAU,WAAW,MAAK;AAAA,EACtE;AAEA,SAAO,gCAAG,UAAS;AACrB;",
4
+ "mappings": "AAAA;AAAA,EACE;AAAA,EAEA;AAAA,OACK;AAqCC,SAiBC,UAjBD;AAJD,SAAS,QAAQ,EAAE,UAAU,MAAM,GAAG,MAAM,GAAiB;AAClE,SAAI,SAAS,aACP,MAAM,sBAEN;AAAA,IAAC;AAAA;AAAA,MACC,SAAS,MAAM,UAAU,SAAY;AAAA,MACrC,gBAAgB,MAAM;AAAA,MACtB,cAAc,MAAM;AAAA,MACpB,aAAa,MAAM;AAAA,MACnB,kBAAkB,MAAM;AAAA,MACxB,uBAAuB,MAAM,yBAAyB;AAAA,MACtD,WAAW,MAAM;AAAA,MAEhB;AAAA;AAAA,EACH,IAIG,oBAAC,mBAAiB,GAAG,OAAQ,gBAAM,UAAU,WAAW,MAAK,IAG/D,gCAAG,UAAS;AACrB;",
5
5
  "names": []
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/animate",
3
- "version": "1.61.2",
3
+ "version": "1.62.0",
4
4
  "source": "src/index.ts",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",
@@ -13,10 +13,10 @@
13
13
  "dist"
14
14
  ],
15
15
  "dependencies": {
16
- "@tamagui/animate-presence": "1.61.2"
16
+ "@tamagui/animate-presence": "1.62.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@tamagui/build": "1.61.2"
19
+ "@tamagui/build": "1.62.0"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tamagui-build",