@tamagui/animate 1.114.3 → 1.115.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.
@@ -0,0 +1,49 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var Animate_exports = {};
22
+ __export(Animate_exports, {
23
+ Animate: () => Animate
24
+ });
25
+ module.exports = __toCommonJS(Animate_exports);
26
+ var import_animate_presence = require("@tamagui/animate-presence"),
27
+ import_jsx_runtime = require("react/jsx-runtime");
28
+ function Animate({
29
+ children,
30
+ type,
31
+ ...props
32
+ }) {
33
+ return type === "presence" ? props.keepChildrenMounted ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_animate_presence.PresenceChild, {
34
+ initial: props.initial ? void 0 : !1,
35
+ onExitComplete: props.onExitComplete,
36
+ enterVariant: props.enterVariant,
37
+ exitVariant: props.exitVariant,
38
+ enterExitVariant: props.enterExitVariant,
39
+ presenceAffectsLayout: !1,
40
+ isPresent: props.present,
41
+ custom: props.custom,
42
+ children
43
+ }) : /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_animate_presence.AnimatePresence, {
44
+ ...props,
45
+ children: props.present ? children : null
46
+ }) : /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
47
+ children
48
+ });
49
+ }
@@ -0,0 +1,18 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
7
+ get: () => from[key],
8
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
+ });
10
+ return to;
11
+ },
12
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
14
+ value: !0
15
+ }), mod);
16
+ var src_exports = {};
17
+ module.exports = __toCommonJS(src_exports);
18
+ __reExport(src_exports, require("./Animate.cjs"), module.exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/animate",
3
- "version": "1.114.3",
3
+ "version": "1.115.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.114.3"
16
+ "@tamagui/animate-presence": "1.115.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@tamagui/build": "1.114.3"
19
+ "@tamagui/build": "1.115.0"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tamagui-build",
@@ -33,7 +33,8 @@
33
33
  "react-native": "./dist/cjs/index.native.js",
34
34
  "types": "./types/index.d.ts",
35
35
  "import": "./dist/esm/index.mjs",
36
- "require": "./dist/cjs/index.js"
36
+ "require": "./dist/cjs/index.cjs",
37
+ "default": "./dist/cjs/index.native.js"
37
38
  }
38
39
  },
39
40
  "publishConfig": {
@@ -1,37 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var Animate_exports = {};
16
- __export(Animate_exports, {
17
- Animate: () => Animate
18
- });
19
- module.exports = __toCommonJS(Animate_exports);
20
- var import_animate_presence = require("@tamagui/animate-presence"), import_jsx_runtime = require("react/jsx-runtime");
21
- function Animate({ children, type, ...props }) {
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: !1,
31
- isPresent: props.present,
32
- custom: props.custom,
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
- //# sourceMappingURL=Animate.js.map
package/dist/cjs/index.js DELETED
@@ -1,15 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from == "object" || typeof from == "function")
7
- for (let key of __getOwnPropNames(from))
8
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
9
- return to;
10
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
12
- var src_exports = {};
13
- module.exports = __toCommonJS(src_exports);
14
- __reExport(src_exports, require("./Animate"), module.exports);
15
- //# sourceMappingURL=index.js.map
File without changes
File without changes