@tamagui/animate 1.89.26 → 1.89.27-1708113113238
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")
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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": "
|
|
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,19 +1,37 @@
|
|
|
1
1
|
import { AnimatePresence, PresenceChild } from "@tamagui/animate-presence";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
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,
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/animate",
|
|
3
|
-
"version": "1.89.
|
|
3
|
+
"version": "1.89.27-1708113113238",
|
|
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.
|
|
16
|
+
"@tamagui/animate-presence": "1.89.27-1708113113238"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@tamagui/build": "1.89.
|
|
19
|
+
"@tamagui/build": "1.89.27-1708113113238"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
22
|
"build": "tamagui-build",
|