@tamagui/animate 1.89.26 → 1.89.27-1708112217600

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.
@@ -18,21 +18,40 @@ __export(Animate_exports, {
18
18
  Animate: () => Animate
19
19
  });
20
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 });
21
+ var import_animate_presence = require("@tamagui/animate-presence");
22
+ function _object_without_properties(source, excluded) {
23
+ if (source == null)
24
+ return {};
25
+ var target = _object_without_properties_loose(source, excluded), key, i;
26
+ if (Object.getOwnPropertySymbols) {
27
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
28
+ for (i = 0; i < sourceSymbolKeys.length; i++)
29
+ key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
30
+ }
31
+ return target;
32
+ }
33
+ function _object_without_properties_loose(source, excluded) {
34
+ if (source == null)
35
+ return {};
36
+ var target = {}, sourceKeys = Object.keys(source), key, i;
37
+ for (i = 0; i < sourceKeys.length; i++)
38
+ key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
39
+ return target;
40
+ }
41
+ function Animate(_param) {
42
+ var children = _param.children, type = _param.type, props = _object_without_properties(_param, [
43
+ "children",
44
+ "type"
45
+ ]);
46
+ return type === "presence" ? props.keepChildrenMounted ? /* @__PURE__ */ React.createElement(import_animate_presence.PresenceChild, {
47
+ initial: props.initial ? void 0 : !1,
48
+ onExitComplete: props.onExitComplete,
49
+ enterVariant: props.enterVariant,
50
+ exitVariant: props.exitVariant,
51
+ enterExitVariant: props.enterExitVariant,
52
+ presenceAffectsLayout: props.presenceAffectsLayout || !0,
53
+ isPresent: props.present
54
+ }, children) : /* @__PURE__ */ React.createElement(import_animate_presence.AnimatePresence, props, props.present ? children : null) : /* @__PURE__ */ React.createElement(React.Fragment, null, children);
36
55
  }
37
56
  // Annotate the CommonJS export names for ESM import in node:
38
57
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/Animate.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,8BAA+C,sCAqCvC;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": []
3
+ "sources": ["../../src/Users/n8/tamagui/packages/animate/src/Animate.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AACA,8BAA+C;;;;;;;;;;;;;;;;;;;;AAiCxC,SAASA,QAAQ,QAAA;MAAEC,WAAF,OAAEA,UAAUC,OAAZ,OAAYA,MAASC,QAAAA,2BAArB,QAAA;IAAEF;IAAUC;;AAClC,SAAIA,SAAS,aACPC,MAAMC,sBAEN,sBAAA,cAACC,uCAAAA;IACCC,SAASH,MAAMG,UAAUC,SAAY;IACrCC,gBAAgBL,MAAMK;IACtBC,cAAcN,MAAMM;IACpBC,aAAaP,MAAMO;IACnBC,kBAAkBR,MAAMQ;IACxBC,uBAAuBT,MAAMS,yBAAyB;IACtDC,WAAWV,MAAMW;KAEhBb,QAAAA,IAKA,sBAAA,cAACc,yCAAoBZ,OAAQA,MAAMW,UAAUb,WAAW,IAAA,IAG1D,sBAAA,cAAA,MAAA,UAAA,MAAGA,QAAAA;AACZ;",
5
+ "names": ["Animate", "children", "type", "props", "keepChildrenMounted", "PresenceChild", "initial", "undefined", "onExitComplete", "enterVariant", "exitVariant", "enterExitVariant", "presenceAffectsLayout", "isPresent", "present", "AnimatePresence"]
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,sBAAd;",
3
+ "sources": ["../../src/Users/n8/tamagui/packages/animate/src/index.ts"],
4
+ "mappings": ";;;;;;;;;;;;AAAA;;wBAAc,sBAAd;",
5
5
  "names": []
6
6
  }
@@ -1,19 +1,37 @@
1
1
  import { AnimatePresence, PresenceChild } from "@tamagui/animate-presence";
2
- import { Fragment, jsx } from "react/jsx-runtime";
3
- function Animate({ children, type, ...props }) {
4
- return type === "presence" ? props.keepChildrenMounted ? /* @__PURE__ */ jsx(
5
- PresenceChild,
6
- {
7
- initial: props.initial ? void 0 : !1,
8
- onExitComplete: props.onExitComplete,
9
- enterVariant: props.enterVariant,
10
- exitVariant: props.exitVariant,
11
- enterExitVariant: props.enterExitVariant,
12
- presenceAffectsLayout: props.presenceAffectsLayout || !0,
13
- isPresent: props.present,
14
- children
15
- }
16
- ) : /* @__PURE__ */ jsx(AnimatePresence, { ...props, children: props.present ? children : null }) : /* @__PURE__ */ jsx(Fragment, { children });
2
+ function _object_without_properties(source, excluded) {
3
+ if (source == null)
4
+ return {};
5
+ var target = _object_without_properties_loose(source, excluded), key, i;
6
+ if (Object.getOwnPropertySymbols) {
7
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
8
+ for (i = 0; i < sourceSymbolKeys.length; i++)
9
+ key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
10
+ }
11
+ return target;
12
+ }
13
+ function _object_without_properties_loose(source, excluded) {
14
+ if (source == null)
15
+ return {};
16
+ var target = {}, sourceKeys = Object.keys(source), key, i;
17
+ for (i = 0; i < sourceKeys.length; i++)
18
+ key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
19
+ return target;
20
+ }
21
+ function Animate(_param) {
22
+ var children = _param.children, type = _param.type, props = _object_without_properties(_param, [
23
+ "children",
24
+ "type"
25
+ ]);
26
+ return type === "presence" ? props.keepChildrenMounted ? /* @__PURE__ */ React.createElement(PresenceChild, {
27
+ initial: props.initial ? void 0 : !1,
28
+ onExitComplete: props.onExitComplete,
29
+ enterVariant: props.enterVariant,
30
+ exitVariant: props.exitVariant,
31
+ enterExitVariant: props.enterExitVariant,
32
+ presenceAffectsLayout: props.presenceAffectsLayout || !0,
33
+ isPresent: props.present
34
+ }, children) : /* @__PURE__ */ React.createElement(AnimatePresence, props, props.present ? children : null) : /* @__PURE__ */ React.createElement(React.Fragment, null, children);
17
35
  }
18
36
  export {
19
37
  Animate
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/Animate.tsx"],
4
- "mappings": "AACA,SAAS,iBAAiB,qBAAqB;AAqCvC,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
- "names": []
3
+ "sources": ["../../src/Users/n8/tamagui/packages/animate/src/Animate.tsx"],
4
+ "mappings": "AACA,SAASA,iBAAiBC,qBAAqB;;;;;;;;;;;;;;;;;;;;AAiCxC,SAASC,QAAQ,QAAA;MAAEC,WAAF,OAAEA,UAAUC,OAAZ,OAAYA,MAASC,QAAAA,2BAArB,QAAA;IAAEF;IAAUC;;AAClC,SAAIA,SAAS,aACPC,MAAMC,sBAEN,sBAAA,cAACL,eAAAA;IACCM,SAASF,MAAME,UAAUC,SAAY;IACrCC,gBAAgBJ,MAAMI;IACtBC,cAAcL,MAAMK;IACpBC,aAAaN,MAAMM;IACnBC,kBAAkBP,MAAMO;IACxBC,uBAAuBR,MAAMQ,yBAAyB;IACtDC,WAAWT,MAAMU;KAEhBZ,QAAAA,IAKA,sBAAA,cAACH,iBAAoBK,OAAQA,MAAMU,UAAUZ,WAAW,IAAA,IAG1D,sBAAA,cAAA,MAAA,UAAA,MAAGA,QAAAA;AACZ;",
5
+ "names": ["AnimatePresence", "PresenceChild", "Animate", "children", "type", "props", "keepChildrenMounted", "initial", "undefined", "onExitComplete", "enterVariant", "exitVariant", "enterExitVariant", "presenceAffectsLayout", "isPresent", "present"]
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/index.ts"],
3
+ "sources": ["../../src/Users/n8/tamagui/packages/animate/src/index.ts"],
4
4
  "mappings": "AAAA,cAAc;",
5
5
  "names": []
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/animate",
3
- "version": "1.89.26",
3
+ "version": "1.89.27-1708112217600",
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.89.26"
16
+ "@tamagui/animate-presence": "1.89.27-1708112217600"
17
17
  },
18
18
  "devDependencies": {
19
- "@tamagui/build": "1.89.26"
19
+ "@tamagui/build": "1.89.27-1708112217600"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tamagui-build",