@tamagui/stacks 3.0.0-beta.1216.1 → 3.0.0-beta.1310.1
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.
- package/dist/cjs/Stacks.cjs +2 -10
- package/dist/cjs/Stacks.native.cjs +2 -10
- package/dist/cjs/Stacks.native.js +2 -10
- package/dist/cjs/Stacks.native.js.map +1 -1
- package/dist/cjs/index.cjs +0 -1
- package/dist/cjs/index.native.cjs +0 -1
- package/dist/cjs/index.native.js +0 -1
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/Stacks.mjs +2 -10
- package/dist/esm/Stacks.mjs.map +1 -1
- package/dist/esm/Stacks.native.js +2 -10
- package/dist/esm/Stacks.native.js.map +1 -1
- package/dist/esm/index.js +0 -2
- package/dist/esm/index.mjs +0 -2
- package/dist/esm/index.native.js +0 -2
- package/dist/jsx/Stacks.mjs +2 -10
- package/dist/jsx/Stacks.mjs.map +1 -1
- package/dist/jsx/Stacks.native.cjs +2 -10
- package/dist/jsx/Stacks.native.js +2 -10
- package/dist/jsx/Stacks.native.js.map +1 -1
- package/dist/jsx/index.js +0 -2
- package/dist/jsx/index.mjs +0 -2
- package/dist/jsx/index.native.cjs +0 -1
- package/dist/jsx/index.native.js +0 -1
- package/dist/jsx/index.native.js.map +1 -1
- package/package.json +4 -4
- package/src/Stacks.tsx +3 -15
- package/src/index.ts +0 -1
- package/types/Stacks.d.ts +11 -30
- package/types/Stacks.d.ts.map +1 -1
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/dist/cjs/getElevation.cjs +0 -55
- package/dist/cjs/getElevation.native.cjs +0 -58
- package/dist/cjs/getElevation.native.js +0 -60
- package/dist/cjs/getElevation.native.js.map +0 -1
- package/dist/esm/getElevation.mjs +0 -33
- package/dist/esm/getElevation.mjs.map +0 -1
- package/dist/esm/getElevation.native.js +0 -34
- package/dist/esm/getElevation.native.js.map +0 -1
- package/dist/jsx/getElevation.mjs +0 -33
- package/dist/jsx/getElevation.mjs.map +0 -1
- package/dist/jsx/getElevation.native.cjs +0 -58
- package/dist/jsx/getElevation.native.js +0 -60
- package/dist/jsx/getElevation.native.js.map +0 -1
- package/src/getElevation.tsx +0 -33
- package/types/getElevation.d.ts +0 -3
- package/types/getElevation.d.ts.map +0 -1
package/dist/cjs/Stacks.cjs
CHANGED
|
@@ -26,17 +26,9 @@ __export(Stacks_exports, {
|
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(Stacks_exports);
|
|
28
28
|
var import_core = require("@tamagui/core");
|
|
29
|
-
|
|
30
|
-
const variants = { elevation: import_getElevation.getElevation };
|
|
31
|
-
const YStack = (0, import_core.styled)(import_core.View, {
|
|
32
|
-
flexDirection: "column",
|
|
33
|
-
variants
|
|
34
|
-
});
|
|
29
|
+
const YStack = (0, import_core.styled)(import_core.View, { flexDirection: "column" });
|
|
35
30
|
YStack["displayName"] = "YStack";
|
|
36
|
-
const XStack = (0, import_core.styled)(import_core.View, {
|
|
37
|
-
flexDirection: "row",
|
|
38
|
-
variants
|
|
39
|
-
});
|
|
31
|
+
const XStack = (0, import_core.styled)(import_core.View, { flexDirection: "row" });
|
|
40
32
|
XStack["displayName"] = "XStack";
|
|
41
33
|
const ZStack = (0, import_core.styled)(YStack, { position: "relative" }, {
|
|
42
34
|
neverFlatten: true,
|
|
@@ -28,17 +28,9 @@ __export(Stacks_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(Stacks_exports);
|
|
30
30
|
var import_core = require("@tamagui/core");
|
|
31
|
-
var
|
|
32
|
-
var variants = { elevation: import_getElevation.getElevation };
|
|
33
|
-
var YStack = (0, import_core.styled)(import_core.View, {
|
|
34
|
-
flexDirection: "column",
|
|
35
|
-
variants
|
|
36
|
-
});
|
|
31
|
+
var YStack = (0, import_core.styled)(import_core.View, { flexDirection: "column" });
|
|
37
32
|
YStack["displayName"] = "YStack";
|
|
38
|
-
var XStack = (0, import_core.styled)(import_core.View, {
|
|
39
|
-
flexDirection: "row",
|
|
40
|
-
variants
|
|
41
|
-
});
|
|
33
|
+
var XStack = (0, import_core.styled)(import_core.View, { flexDirection: "row" });
|
|
42
34
|
XStack["displayName"] = "XStack";
|
|
43
35
|
var ZStack = (0, import_core.styled)(YStack, { position: "relative" }, {
|
|
44
36
|
neverFlatten: true,
|
|
@@ -28,17 +28,9 @@ __export(Stacks_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(Stacks_exports);
|
|
30
30
|
var import_core = require("@tamagui/core");
|
|
31
|
-
var
|
|
32
|
-
var variants = { elevation: import_getElevation.getElevation };
|
|
33
|
-
var YStack = (0, import_core.styled)(import_core.View, {
|
|
34
|
-
flexDirection: "column",
|
|
35
|
-
variants
|
|
36
|
-
});
|
|
31
|
+
var YStack = (0, import_core.styled)(import_core.View, { flexDirection: "column" });
|
|
37
32
|
YStack["displayName"] = "YStack";
|
|
38
|
-
var XStack = (0, import_core.styled)(import_core.View, {
|
|
39
|
-
flexDirection: "row",
|
|
40
|
-
variants
|
|
41
|
-
});
|
|
33
|
+
var XStack = (0, import_core.styled)(import_core.View, { flexDirection: "row" });
|
|
42
34
|
XStack["displayName"] = "XStack";
|
|
43
35
|
var ZStack = (0, import_core.styled)(YStack, { position: "relative" }, {
|
|
44
36
|
neverFlatten: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stacks.native.js","names":[],"sources":["cjs/Stacks.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Stacks_exports = {};\n__export(Stacks_exports, {\n XStack: () => XStack,\n YStack: () => YStack,\n ZStack: () => ZStack\n});\nmodule.exports = __toCommonJS(Stacks_exports);\nvar import_core = require(\"@tamagui/core\");\nvar
|
|
1
|
+
{"version":3,"file":"Stacks.native.js","names":[],"sources":["cjs/Stacks.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Stacks_exports = {};\n__export(Stacks_exports, {\n XStack: () => XStack,\n YStack: () => YStack,\n ZStack: () => ZStack\n});\nmodule.exports = __toCommonJS(Stacks_exports);\nvar import_core = require(\"@tamagui/core\");\nvar YStack = (0, import_core.styled)(import_core.View, {\n flexDirection: \"column\"\n});\nYStack[\"displayName\"] = \"YStack\";\nvar XStack = (0, import_core.styled)(import_core.View, {\n flexDirection: \"row\"\n});\nXStack[\"displayName\"] = \"XStack\";\nvar ZStack = (0, import_core.styled)(YStack, {\n position: \"relative\"\n}, {\n neverFlatten: true,\n isZStack: true\n});\nZStack[\"displayName\"] = \"ZStack\";\n//# sourceMappingURL=Stacks.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,iBAAiB,CAAC;AACtB,SAAS,gBAAgB;CACvB,cAAc;CACd,cAAc;CACd,cAAc;AAChB,CAAC;AACD,OAAO,UAAU,aAAa,cAAc;AAC5C,IAAI,cAAc,QAAQ,eAAe;AACzC,IAAI,UAAU,GAAG,YAAY,OAAM,CAAE,YAAY,MAAM,EACrD,eAAe,SACjB,CAAC;AACD,OAAO,iBAAiB;AACxB,IAAI,UAAU,GAAG,YAAY,OAAM,CAAE,YAAY,MAAM,EACrD,eAAe,MACjB,CAAC;AACD,OAAO,iBAAiB;AACxB,IAAI,UAAU,GAAG,YAAY,OAAM,CAAE,QAAQ,EAC3C,UAAU,WACZ,GAAG;CACD,cAAc;CACd,UAAU;AACZ,CAAC;AACD,OAAO,iBAAiB"}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -17,4 +17,3 @@ var index_exports = {};
|
|
|
17
17
|
module.exports = __toCommonJS(index_exports);
|
|
18
18
|
__reExport(index_exports, require("./Stacks.cjs"), module.exports);
|
|
19
19
|
__reExport(index_exports, require("./NestingContext.cjs"), module.exports);
|
|
20
|
-
__reExport(index_exports, require("./getElevation.cjs"), module.exports);
|
|
@@ -19,4 +19,3 @@ var index_exports = {};
|
|
|
19
19
|
module.exports = __toCommonJS(index_exports);
|
|
20
20
|
__reExport(index_exports, require("./Stacks.native.js"), module.exports);
|
|
21
21
|
__reExport(index_exports, require("./NestingContext.native.js"), module.exports);
|
|
22
|
-
__reExport(index_exports, require("./getElevation.native.js"), module.exports);
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -19,6 +19,5 @@ var index_exports = {};
|
|
|
19
19
|
module.exports = __toCommonJS(index_exports);
|
|
20
20
|
__reExport(index_exports, require("./Stacks.native.js"), module.exports);
|
|
21
21
|
__reExport(index_exports, require("./NestingContext.native.js"), module.exports);
|
|
22
|
-
__reExport(index_exports, require("./getElevation.native.js"), module.exports);
|
|
23
22
|
|
|
24
23
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./Stacks\"), module.exports);\n__reExport(index_exports, require(\"./NestingContext\"), module.exports);\
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./Stacks\"), module.exports);\n__reExport(index_exports, require(\"./NestingContext\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,oBAAU,GAAG,OAAO,OAAO;AAC7D,WAAW,eAAe,QAAQ,4BAAkB,GAAG,OAAO,OAAO"}
|
package/dist/esm/Stacks.mjs
CHANGED
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import { View, styled } from "@tamagui/core";
|
|
2
|
-
import { getElevation } from "./getElevation.mjs";
|
|
3
2
|
|
|
4
|
-
const
|
|
5
|
-
const YStack = styled(View, {
|
|
6
|
-
flexDirection: "column",
|
|
7
|
-
variants
|
|
8
|
-
});
|
|
3
|
+
const YStack = styled(View, { flexDirection: "column" });
|
|
9
4
|
YStack["displayName"] = "YStack";
|
|
10
|
-
const XStack = styled(View, {
|
|
11
|
-
flexDirection: "row",
|
|
12
|
-
variants
|
|
13
|
-
});
|
|
5
|
+
const XStack = styled(View, { flexDirection: "row" });
|
|
14
6
|
XStack["displayName"] = "XStack";
|
|
15
7
|
const ZStack = styled(YStack, { position: "relative" }, {
|
|
16
8
|
neverFlatten: true,
|
package/dist/esm/Stacks.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stacks.js","names":[],"sources":["esm/Stacks.js"],"sourcesContent":["import { View, styled } from \"@tamagui/core\";\
|
|
1
|
+
{"version":3,"file":"Stacks.js","names":[],"sources":["esm/Stacks.js"],"sourcesContent":["import { View, styled } from \"@tamagui/core\";\nconst YStack = styled(View, {\n flexDirection: \"column\"\n});\nYStack[\"displayName\"] = \"YStack\";\nconst XStack = styled(View, {\n flexDirection: \"row\"\n});\nXStack[\"displayName\"] = \"XStack\";\nconst ZStack = styled(\n YStack,\n {\n position: \"relative\"\n },\n {\n neverFlatten: true,\n isZStack: true\n }\n);\nZStack[\"displayName\"] = \"ZStack\";\nexport {\n XStack,\n YStack,\n ZStack\n};\n//# sourceMappingURL=Stacks.js.map\n"],"mappings":";;;AACA,MAAM,SAAS,OAAO,MAAM,EAC1B,eAAe,SACjB,CAAC;AACD,OAAO,iBAAiB;AACxB,MAAM,SAAS,OAAO,MAAM,EAC1B,eAAe,MACjB,CAAC;AACD,OAAO,iBAAiB;AACxB,MAAM,SAAS,OACb,QACA,EACE,UAAU,WACZ,GACA;CACE,cAAc;CACd,UAAU;AACZ,CACF;AACA,OAAO,iBAAiB"}
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import { View, styled } from "@tamagui/core";
|
|
2
|
-
import { getElevation } from "./getElevation.native.js";
|
|
3
2
|
|
|
4
|
-
var
|
|
5
|
-
var YStack = styled(View, {
|
|
6
|
-
flexDirection: "column",
|
|
7
|
-
variants
|
|
8
|
-
});
|
|
3
|
+
var YStack = styled(View, { flexDirection: "column" });
|
|
9
4
|
YStack["displayName"] = "YStack";
|
|
10
|
-
var XStack = styled(View, {
|
|
11
|
-
flexDirection: "row",
|
|
12
|
-
variants
|
|
13
|
-
});
|
|
5
|
+
var XStack = styled(View, { flexDirection: "row" });
|
|
14
6
|
XStack["displayName"] = "XStack";
|
|
15
7
|
var ZStack = styled(YStack, { position: "relative" }, {
|
|
16
8
|
neverFlatten: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stacks.native.js","names":[],"sources":["esm/Stacks.native.js"],"sourcesContent":["import { View, styled } from \"@tamagui/core\";\
|
|
1
|
+
{"version":3,"file":"Stacks.native.js","names":[],"sources":["esm/Stacks.native.js"],"sourcesContent":["import { View, styled } from \"@tamagui/core\";\nvar YStack = styled(View, {\n flexDirection: \"column\"\n});\nYStack[\"displayName\"] = \"YStack\";\nvar XStack = styled(View, {\n flexDirection: \"row\"\n});\nXStack[\"displayName\"] = \"XStack\";\nvar ZStack = styled(YStack, {\n position: \"relative\"\n}, {\n neverFlatten: true,\n isZStack: true\n});\nZStack[\"displayName\"] = \"ZStack\";\nexport {\n XStack,\n YStack,\n ZStack\n};\n//# sourceMappingURL=Stacks.js.map\n"],"mappings":";;;AACA,IAAI,SAAS,OAAO,MAAM,EACxB,eAAe,SACjB,CAAC;AACD,OAAO,iBAAiB;AACxB,IAAI,SAAS,OAAO,MAAM,EACxB,eAAe,MACjB,CAAC;AACD,OAAO,iBAAiB;AACxB,IAAI,SAAS,OAAO,QAAQ,EAC1B,UAAU,WACZ,GAAG;CACD,cAAc;CACd,UAAU;AACZ,CAAC;AACD,OAAO,iBAAiB"}
|
package/dist/esm/index.js
CHANGED
package/dist/esm/index.mjs
CHANGED
package/dist/esm/index.native.js
CHANGED
package/dist/jsx/Stacks.mjs
CHANGED
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import { View, styled } from "@tamagui/core";
|
|
2
|
-
import { getElevation } from "./getElevation.mjs";
|
|
3
2
|
|
|
4
|
-
const
|
|
5
|
-
const YStack = styled(View, {
|
|
6
|
-
flexDirection: "column",
|
|
7
|
-
variants
|
|
8
|
-
});
|
|
3
|
+
const YStack = styled(View, { flexDirection: "column" });
|
|
9
4
|
YStack["displayName"] = "YStack";
|
|
10
|
-
const XStack = styled(View, {
|
|
11
|
-
flexDirection: "row",
|
|
12
|
-
variants
|
|
13
|
-
});
|
|
5
|
+
const XStack = styled(View, { flexDirection: "row" });
|
|
14
6
|
XStack["displayName"] = "XStack";
|
|
15
7
|
const ZStack = styled(YStack, { position: "relative" }, {
|
|
16
8
|
neverFlatten: true,
|
package/dist/jsx/Stacks.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stacks.js","names":[],"sources":["jsx/Stacks.js"],"sourcesContent":["import { View, styled } from \"@tamagui/core\";\
|
|
1
|
+
{"version":3,"file":"Stacks.js","names":[],"sources":["jsx/Stacks.js"],"sourcesContent":["import { View, styled } from \"@tamagui/core\";\nconst YStack = styled(View, {\n flexDirection: \"column\"\n});\nYStack[\"displayName\"] = \"YStack\";\nconst XStack = styled(View, {\n flexDirection: \"row\"\n});\nXStack[\"displayName\"] = \"XStack\";\nconst ZStack = styled(\n YStack,\n {\n position: \"relative\"\n },\n {\n neverFlatten: true,\n isZStack: true\n }\n);\nZStack[\"displayName\"] = \"ZStack\";\nexport {\n XStack,\n YStack,\n ZStack\n};\n//# sourceMappingURL=Stacks.js.map\n"],"mappings":";;;AACA,MAAM,SAAS,OAAO,MAAM,EAC1B,eAAe,SACjB,CAAC;AACD,OAAO,iBAAiB;AACxB,MAAM,SAAS,OAAO,MAAM,EAC1B,eAAe,MACjB,CAAC;AACD,OAAO,iBAAiB;AACxB,MAAM,SAAS,OACb,QACA,EACE,UAAU,WACZ,GACA;CACE,cAAc;CACd,UAAU;AACZ,CACF;AACA,OAAO,iBAAiB"}
|
|
@@ -28,17 +28,9 @@ __export(Stacks_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(Stacks_exports);
|
|
30
30
|
var import_core = require("@tamagui/core");
|
|
31
|
-
var
|
|
32
|
-
var variants = { elevation: import_getElevation.getElevation };
|
|
33
|
-
var YStack = (0, import_core.styled)(import_core.View, {
|
|
34
|
-
flexDirection: "column",
|
|
35
|
-
variants
|
|
36
|
-
});
|
|
31
|
+
var YStack = (0, import_core.styled)(import_core.View, { flexDirection: "column" });
|
|
37
32
|
YStack["displayName"] = "YStack";
|
|
38
|
-
var XStack = (0, import_core.styled)(import_core.View, {
|
|
39
|
-
flexDirection: "row",
|
|
40
|
-
variants
|
|
41
|
-
});
|
|
33
|
+
var XStack = (0, import_core.styled)(import_core.View, { flexDirection: "row" });
|
|
42
34
|
XStack["displayName"] = "XStack";
|
|
43
35
|
var ZStack = (0, import_core.styled)(YStack, { position: "relative" }, {
|
|
44
36
|
neverFlatten: true,
|
|
@@ -28,17 +28,9 @@ __export(Stacks_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(Stacks_exports);
|
|
30
30
|
var import_core = require("@tamagui/core");
|
|
31
|
-
var
|
|
32
|
-
var variants = { elevation: import_getElevation.getElevation };
|
|
33
|
-
var YStack = (0, import_core.styled)(import_core.View, {
|
|
34
|
-
flexDirection: "column",
|
|
35
|
-
variants
|
|
36
|
-
});
|
|
31
|
+
var YStack = (0, import_core.styled)(import_core.View, { flexDirection: "column" });
|
|
37
32
|
YStack["displayName"] = "YStack";
|
|
38
|
-
var XStack = (0, import_core.styled)(import_core.View, {
|
|
39
|
-
flexDirection: "row",
|
|
40
|
-
variants
|
|
41
|
-
});
|
|
33
|
+
var XStack = (0, import_core.styled)(import_core.View, { flexDirection: "row" });
|
|
42
34
|
XStack["displayName"] = "XStack";
|
|
43
35
|
var ZStack = (0, import_core.styled)(YStack, { position: "relative" }, {
|
|
44
36
|
neverFlatten: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stacks.native.js","names":[],"sources":["jsx/Stacks.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Stacks_exports = {};\n__export(Stacks_exports, {\n XStack: () => XStack,\n YStack: () => YStack,\n ZStack: () => ZStack\n});\nmodule.exports = __toCommonJS(Stacks_exports);\nvar import_core = require(\"@tamagui/core\");\nvar
|
|
1
|
+
{"version":3,"file":"Stacks.native.js","names":[],"sources":["jsx/Stacks.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Stacks_exports = {};\n__export(Stacks_exports, {\n XStack: () => XStack,\n YStack: () => YStack,\n ZStack: () => ZStack\n});\nmodule.exports = __toCommonJS(Stacks_exports);\nvar import_core = require(\"@tamagui/core\");\nvar YStack = (0, import_core.styled)(import_core.View, {\n flexDirection: \"column\"\n});\nYStack[\"displayName\"] = \"YStack\";\nvar XStack = (0, import_core.styled)(import_core.View, {\n flexDirection: \"row\"\n});\nXStack[\"displayName\"] = \"XStack\";\nvar ZStack = (0, import_core.styled)(YStack, {\n position: \"relative\"\n}, {\n neverFlatten: true,\n isZStack: true\n});\nZStack[\"displayName\"] = \"ZStack\";\n//# sourceMappingURL=Stacks.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,iBAAiB,CAAC;AACtB,SAAS,gBAAgB;CACvB,cAAc;CACd,cAAc;CACd,cAAc;AAChB,CAAC;AACD,OAAO,UAAU,aAAa,cAAc;AAC5C,IAAI,cAAc,QAAQ,eAAe;AACzC,IAAI,UAAU,GAAG,YAAY,OAAM,CAAE,YAAY,MAAM,EACrD,eAAe,SACjB,CAAC;AACD,OAAO,iBAAiB;AACxB,IAAI,UAAU,GAAG,YAAY,OAAM,CAAE,YAAY,MAAM,EACrD,eAAe,MACjB,CAAC;AACD,OAAO,iBAAiB;AACxB,IAAI,UAAU,GAAG,YAAY,OAAM,CAAE,QAAQ,EAC3C,UAAU,WACZ,GAAG;CACD,cAAc;CACd,UAAU;AACZ,CAAC;AACD,OAAO,iBAAiB"}
|
package/dist/jsx/index.js
CHANGED
package/dist/jsx/index.mjs
CHANGED
|
@@ -19,4 +19,3 @@ var index_exports = {};
|
|
|
19
19
|
module.exports = __toCommonJS(index_exports);
|
|
20
20
|
__reExport(index_exports, require("./Stacks.native.js"), module.exports);
|
|
21
21
|
__reExport(index_exports, require("./NestingContext.native.js"), module.exports);
|
|
22
|
-
__reExport(index_exports, require("./getElevation.native.js"), module.exports);
|
package/dist/jsx/index.native.js
CHANGED
|
@@ -19,6 +19,5 @@ var index_exports = {};
|
|
|
19
19
|
module.exports = __toCommonJS(index_exports);
|
|
20
20
|
__reExport(index_exports, require("./Stacks.native.js"), module.exports);
|
|
21
21
|
__reExport(index_exports, require("./NestingContext.native.js"), module.exports);
|
|
22
|
-
__reExport(index_exports, require("./getElevation.native.js"), module.exports);
|
|
23
22
|
|
|
24
23
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":[],"sources":["jsx/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./Stacks\"), module.exports);\n__reExport(index_exports, require(\"./NestingContext\"), module.exports);\
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["jsx/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./Stacks\"), module.exports);\n__reExport(index_exports, require(\"./NestingContext\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,oBAAU,GAAG,OAAO,OAAO;AAC7D,WAAW,eAAe,QAAQ,4BAAkB,GAAG,OAAO,OAAO"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/stacks",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.1310.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"clean:build": "tamagui-build clean:build"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@tamagui/core": "3.0.0-beta.
|
|
40
|
-
"@tamagui/web": "3.0.0-beta.
|
|
39
|
+
"@tamagui/core": "3.0.0-beta.1310.1",
|
|
40
|
+
"@tamagui/web": "3.0.0-beta.1310.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@tamagui/build": "3.0.0-beta.
|
|
43
|
+
"@tamagui/build": "3.0.0-beta.1310.1",
|
|
44
44
|
"react": "19.2.3"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
package/src/Stacks.tsx
CHANGED
|
@@ -1,29 +1,18 @@
|
|
|
1
|
-
import type { GetProps
|
|
1
|
+
import type { GetProps } from '@tamagui/core'
|
|
2
2
|
import { View, styled } from '@tamagui/core'
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export interface StackVariants {
|
|
7
|
-
elevation?: number | SizeTokens
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type YStackProps = Omit<GetProps<typeof YStack>, keyof StackVariants> &
|
|
11
|
-
StackVariants
|
|
4
|
+
export interface StackVariants {}
|
|
12
5
|
|
|
6
|
+
export type YStackProps = GetProps<typeof YStack>
|
|
13
7
|
export type XStackProps = YStackProps
|
|
14
8
|
export type ZStackProps = YStackProps
|
|
15
9
|
|
|
16
|
-
const variants = {
|
|
17
|
-
elevation: getElevation,
|
|
18
|
-
} as const
|
|
19
|
-
|
|
20
10
|
/**
|
|
21
11
|
* @summary A view that arranges its children in a vertical line.
|
|
22
12
|
* @see — Docs https://tamagui.dev/ui/stacks#xstack-ystack-zstack
|
|
23
13
|
*/
|
|
24
14
|
export const YStack = styled(View, {
|
|
25
15
|
flexDirection: 'column',
|
|
26
|
-
variants,
|
|
27
16
|
})
|
|
28
17
|
|
|
29
18
|
YStack['displayName'] = 'YStack'
|
|
@@ -34,7 +23,6 @@ YStack['displayName'] = 'YStack'
|
|
|
34
23
|
*/
|
|
35
24
|
export const XStack = styled(View, {
|
|
36
25
|
flexDirection: 'row',
|
|
37
|
-
variants,
|
|
38
26
|
})
|
|
39
27
|
|
|
40
28
|
XStack['displayName'] = 'XStack'
|
package/src/index.ts
CHANGED
package/types/Stacks.d.ts
CHANGED
|
@@ -1,60 +1,41 @@
|
|
|
1
|
-
import type { GetProps
|
|
1
|
+
import type { GetProps } from '@tamagui/core';
|
|
2
2
|
export interface StackVariants {
|
|
3
|
-
elevation?: number | SizeTokens;
|
|
4
3
|
}
|
|
5
|
-
export type YStackProps =
|
|
4
|
+
export type YStackProps = GetProps<typeof YStack>;
|
|
6
5
|
export type XStackProps = YStackProps;
|
|
7
6
|
export type ZStackProps = YStackProps;
|
|
8
7
|
/**
|
|
9
8
|
* @summary A view that arranges its children in a vertical line.
|
|
10
9
|
* @see — Docs https://tamagui.dev/ui/stacks#xstack-ystack-zstack
|
|
11
10
|
*/
|
|
12
|
-
export declare const YStack: import("react").FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps,
|
|
13
|
-
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
14
|
-
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
11
|
+
export declare const YStack: import("react").FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
15
12
|
ref?: import("react").Ref<import("@tamagui/core").TamaguiElement> | undefined;
|
|
16
|
-
}> & import("@tamagui/core").StaticComponentObject<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
17
|
-
|
|
18
|
-
}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
|
|
19
|
-
__tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
20
|
-
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
21
|
-
}, import("@tamagui/core").StaticConfigPublic];
|
|
13
|
+
}> & import("@tamagui/core").StaticComponentObject<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
|
|
14
|
+
__tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic];
|
|
22
15
|
};
|
|
23
16
|
/**
|
|
24
17
|
* @summary A view that arranges its children in a horizontal line.
|
|
25
18
|
* @see — Docs https://tamagui.dev/ui/stacks#xstack-ystack-zstack
|
|
26
19
|
*/
|
|
27
|
-
export declare const XStack: import("react").FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps,
|
|
28
|
-
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
29
|
-
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
20
|
+
export declare const XStack: import("react").FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
30
21
|
ref?: import("react").Ref<import("@tamagui/core").TamaguiElement> | undefined;
|
|
31
|
-
}> & import("@tamagui/core").StaticComponentObject<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
32
|
-
|
|
33
|
-
}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
|
|
34
|
-
__tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
35
|
-
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
36
|
-
}, import("@tamagui/core").StaticConfigPublic];
|
|
22
|
+
}> & import("@tamagui/core").StaticComponentObject<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
|
|
23
|
+
__tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic];
|
|
37
24
|
};
|
|
38
25
|
/**
|
|
39
26
|
* @summary A view that stacks its children on top of each other.
|
|
40
27
|
* @see — Docs https://tamagui.dev/ui/stacks#xstack-ystack-zstack
|
|
41
28
|
*/
|
|
42
|
-
export declare const ZStack: import("react").FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps,
|
|
43
|
-
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
44
|
-
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
29
|
+
export declare const ZStack: import("react").FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
45
30
|
ref?: import("react").Ref<import("@tamagui/core").TamaguiElement> | undefined;
|
|
46
|
-
}> & import("@tamagui/core").StaticComponentObject<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
47
|
-
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
48
|
-
}, import("@tamagui/core").StaticConfigPublic & {
|
|
31
|
+
}> & import("@tamagui/core").StaticComponentObject<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic & {
|
|
49
32
|
neverFlatten: true;
|
|
50
33
|
isZStack: true;
|
|
51
34
|
}> & Omit<import("@tamagui/core").StaticConfigPublic & {
|
|
52
35
|
neverFlatten: true;
|
|
53
36
|
isZStack: true;
|
|
54
37
|
}, "staticConfig"> & {
|
|
55
|
-
__tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
56
|
-
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
57
|
-
}, import("@tamagui/core").StaticConfigPublic & {
|
|
38
|
+
__tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic & {
|
|
58
39
|
neverFlatten: true;
|
|
59
40
|
isZStack: true;
|
|
60
41
|
}];
|
package/types/Stacks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stacks.d.ts","sourceRoot":"","sources":["../src/Stacks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"Stacks.d.ts","sourceRoot":"","sources":["../src/Stacks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAG7C,MAAM,WAAW,aAAa;CAAG;AAEjC,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AACjD,MAAM,MAAM,WAAW,GAAG,WAAW,CAAA;AACrC,MAAM,MAAM,WAAW,GAAG,WAAW,CAAA;AAErC;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;CAEjB,CAAA;AAIF;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;CAEjB,CAAA;AAIF;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;CASlB,CAAA"}
|
package/types/index.d.ts
CHANGED
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
|
|
@@ -1,55 +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) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
-
var getElevation_exports = {};
|
|
22
|
-
__export(getElevation_exports, {
|
|
23
|
-
getElevation: () => getElevation,
|
|
24
|
-
getSizedElevation: () => getSizedElevation
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(getElevation_exports);
|
|
27
|
-
var import_core = require("@tamagui/core");
|
|
28
|
-
const getElevation = import_core.styled.dynamic((size, env) => {
|
|
29
|
-
if (!size) return;
|
|
30
|
-
if (typeof size === "number") return getSizedElevation(size, env);
|
|
31
|
-
return getSizedElevation((0, import_core.resolveSize)(size, env).controlHeight, env);
|
|
32
|
-
});
|
|
33
|
-
const getSizedElevation = import_core.styled.dynamic((val, env) => {
|
|
34
|
-
const { theme } = env;
|
|
35
|
-
let num = 0;
|
|
36
|
-
if (typeof val === "number") {
|
|
37
|
-
num = val;
|
|
38
|
-
} else if (val) {
|
|
39
|
-
num = (0, import_core.resolveSize)(val, env).controlHeight || 10;
|
|
40
|
-
}
|
|
41
|
-
if (num === 0) {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
const [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)];
|
|
45
|
-
const shadowColor = theme["shadow-color"] ?? theme.shadowColor;
|
|
46
|
-
return {
|
|
47
|
-
shadowColor,
|
|
48
|
-
shadowRadius,
|
|
49
|
-
shadowOffset: {
|
|
50
|
-
height,
|
|
51
|
-
width: 0
|
|
52
|
-
},
|
|
53
|
-
elevationAndroid: import_core.isAndroid ? 2 * height : void 0
|
|
54
|
-
};
|
|
55
|
-
});
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
-
var getElevation_exports = {};
|
|
24
|
-
__export(getElevation_exports, {
|
|
25
|
-
getElevation: () => getElevation,
|
|
26
|
-
getSizedElevation: () => getSizedElevation
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(getElevation_exports);
|
|
29
|
-
var import_core = require("@tamagui/core");
|
|
30
|
-
var getElevation = import_core.styled.dynamic(function(size, env) {
|
|
31
|
-
if (!size) return;
|
|
32
|
-
if (typeof size === "number") return getSizedElevation(size, env);
|
|
33
|
-
return getSizedElevation((0, import_core.resolveSize)(size, env).controlHeight, env);
|
|
34
|
-
});
|
|
35
|
-
var getSizedElevation = import_core.styled.dynamic(function(val, env) {
|
|
36
|
-
var { theme } = env;
|
|
37
|
-
var num = 0;
|
|
38
|
-
if (typeof val === "number") {
|
|
39
|
-
num = val;
|
|
40
|
-
} else if (val) {
|
|
41
|
-
num = (0, import_core.resolveSize)(val, env).controlHeight || 10;
|
|
42
|
-
}
|
|
43
|
-
if (num === 0) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
var [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)];
|
|
47
|
-
var _theme_shadowcolor;
|
|
48
|
-
var shadowColor = (_theme_shadowcolor = theme["shadow-color"]) !== null && _theme_shadowcolor !== void 0 ? _theme_shadowcolor : theme.shadowColor;
|
|
49
|
-
return {
|
|
50
|
-
shadowColor,
|
|
51
|
-
shadowRadius,
|
|
52
|
-
shadowOffset: {
|
|
53
|
-
height,
|
|
54
|
-
width: 0
|
|
55
|
-
},
|
|
56
|
-
elevationAndroid: import_core.isAndroid ? 2 * height : void 0
|
|
57
|
-
};
|
|
58
|
-
});
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
-
var getElevation_exports = {};
|
|
24
|
-
__export(getElevation_exports, {
|
|
25
|
-
getElevation: () => getElevation,
|
|
26
|
-
getSizedElevation: () => getSizedElevation
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(getElevation_exports);
|
|
29
|
-
var import_core = require("@tamagui/core");
|
|
30
|
-
var getElevation = import_core.styled.dynamic(function(size, env) {
|
|
31
|
-
if (!size) return;
|
|
32
|
-
if (typeof size === "number") return getSizedElevation(size, env);
|
|
33
|
-
return getSizedElevation((0, import_core.resolveSize)(size, env).controlHeight, env);
|
|
34
|
-
});
|
|
35
|
-
var getSizedElevation = import_core.styled.dynamic(function(val, env) {
|
|
36
|
-
var { theme } = env;
|
|
37
|
-
var num = 0;
|
|
38
|
-
if (typeof val === "number") {
|
|
39
|
-
num = val;
|
|
40
|
-
} else if (val) {
|
|
41
|
-
num = (0, import_core.resolveSize)(val, env).controlHeight || 10;
|
|
42
|
-
}
|
|
43
|
-
if (num === 0) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
var [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)];
|
|
47
|
-
var _theme_shadowcolor;
|
|
48
|
-
var shadowColor = (_theme_shadowcolor = theme["shadow-color"]) !== null && _theme_shadowcolor !== void 0 ? _theme_shadowcolor : theme.shadowColor;
|
|
49
|
-
return {
|
|
50
|
-
shadowColor,
|
|
51
|
-
shadowRadius,
|
|
52
|
-
shadowOffset: {
|
|
53
|
-
height,
|
|
54
|
-
width: 0
|
|
55
|
-
},
|
|
56
|
-
elevationAndroid: import_core.isAndroid ? 2 * height : void 0
|
|
57
|
-
};
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
//# sourceMappingURL=getElevation.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getElevation.native.js","names":[],"sources":["cjs/getElevation.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar getElevation_exports = {};\n__export(getElevation_exports, {\n getElevation: () => getElevation,\n getSizedElevation: () => getSizedElevation\n});\nmodule.exports = __toCommonJS(getElevation_exports);\nvar import_core = require(\"@tamagui/core\");\nvar getElevation = import_core.styled.dynamic(function(size, env) {\n if (!size) return;\n if (typeof size === \"number\") return getSizedElevation(size, env);\n return getSizedElevation((0, import_core.resolveSize)(size, env).controlHeight, env);\n});\nvar getSizedElevation = import_core.styled.dynamic(function(val, env) {\n var { theme } = env;\n var num = 0;\n if (typeof val === \"number\") {\n num = val;\n } else if (val) {\n num = (0, import_core.resolveSize)(val, env).controlHeight || 10;\n }\n if (num === 0) {\n return;\n }\n var [height, shadowRadius] = [\n Math.round(num / 4 + 1),\n Math.round(num / 2 + 2)\n ];\n var _theme_shadowcolor;\n var shadowColor = (_theme_shadowcolor = theme[\"shadow-color\"]) !== null && _theme_shadowcolor !== void 0 ? _theme_shadowcolor : theme.shadowColor;\n return {\n shadowColor,\n shadowRadius,\n shadowOffset: {\n height,\n width: 0\n },\n elevationAndroid: import_core.isAndroid ? 2 * height : void 0\n };\n});\n//# sourceMappingURL=getElevation.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,uBAAuB,CAAC;AAC5B,SAAS,sBAAsB;CAC7B,oBAAoB;CACpB,yBAAyB;AAC3B,CAAC;AACD,OAAO,UAAU,aAAa,oBAAoB;AAClD,IAAI,cAAc,QAAQ,eAAe;AACzC,IAAI,eAAe,YAAY,OAAO,QAAQ,SAAS,MAAM,KAAK;CAChE,IAAI,CAAC,MAAM;CACX,IAAI,OAAO,SAAS,UAAU,OAAO,kBAAkB,MAAM,GAAG;CAChE,OAAO,mBAAmB,GAAG,YAAY,YAAW,CAAE,MAAM,GAAG,CAAC,CAAC,eAAe,GAAG;AACrF,CAAC;AACD,IAAI,oBAAoB,YAAY,OAAO,QAAQ,SAAS,KAAK,KAAK;CACpE,IAAI,EAAE,UAAU;CAChB,IAAI,MAAM;CACV,IAAI,OAAO,QAAQ,UAAU;EAC3B,MAAM;CACR,OAAO,IAAI,KAAK;EACd,OAAO,GAAG,YAAY,YAAW,CAAE,KAAK,GAAG,CAAC,CAAC,iBAAiB;CAChE;CACA,IAAI,QAAQ,GAAG;EACb;CACF;CACA,IAAI,CAAC,QAAQ,gBAAgB,CAC3B,KAAK,MAAM,MAAM,IAAI,CAAC,GACtB,KAAK,MAAM,MAAM,IAAI,CAAC,CACxB;CACA,IAAI;CACJ,IAAI,eAAe,qBAAqB,MAAM,qBAAqB,QAAQ,uBAAuB,KAAK,IAAI,qBAAqB,MAAM;CACtI,OAAO;EACL;EACA;EACA,cAAc;GACZ;GACA,OAAO;EACT;EACA,kBAAkB,YAAY,YAAY,IAAI,SAAS,KAAK;CAC9D;AACF,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { isAndroid, resolveSize, styled } from "@tamagui/core";
|
|
2
|
-
|
|
3
|
-
const getElevation = styled.dynamic((size, env) => {
|
|
4
|
-
if (!size) return;
|
|
5
|
-
if (typeof size === "number") return getSizedElevation(size, env);
|
|
6
|
-
return getSizedElevation(resolveSize(size, env).controlHeight, env);
|
|
7
|
-
});
|
|
8
|
-
const getSizedElevation = styled.dynamic((val, env) => {
|
|
9
|
-
const { theme } = env;
|
|
10
|
-
let num = 0;
|
|
11
|
-
if (typeof val === "number") {
|
|
12
|
-
num = val;
|
|
13
|
-
} else if (val) {
|
|
14
|
-
num = resolveSize(val, env).controlHeight || 10;
|
|
15
|
-
}
|
|
16
|
-
if (num === 0) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
const [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)];
|
|
20
|
-
const shadowColor = theme["shadow-color"] ?? theme.shadowColor;
|
|
21
|
-
return {
|
|
22
|
-
shadowColor,
|
|
23
|
-
shadowRadius,
|
|
24
|
-
shadowOffset: {
|
|
25
|
-
height,
|
|
26
|
-
width: 0
|
|
27
|
-
},
|
|
28
|
-
elevationAndroid: isAndroid ? 2 * height : void 0
|
|
29
|
-
};
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
export { getElevation, getSizedElevation };
|
|
33
|
-
//# sourceMappingURL=getElevation.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getElevation.js","names":[],"sources":["esm/getElevation.js"],"sourcesContent":["import { isAndroid, resolveSize, styled } from \"@tamagui/core\";\nconst getElevation = styled.dynamic((size, env) => {\n if (!size) return;\n if (typeof size === \"number\") return getSizedElevation(size, env);\n return getSizedElevation(resolveSize(size, env).controlHeight, env);\n});\nconst getSizedElevation = styled.dynamic(\n (val, env) => {\n const { theme } = env;\n let num = 0;\n if (typeof val === \"number\") {\n num = val;\n } else if (val) {\n num = resolveSize(val, env).controlHeight || 10;\n }\n if (num === 0) {\n return;\n }\n const [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)];\n const shadowColor = theme[\"shadow-color\"] ?? theme.shadowColor;\n return {\n shadowColor,\n shadowRadius,\n shadowOffset: { height, width: 0 },\n elevationAndroid: isAndroid ? 2 * height : void 0\n };\n }\n);\nexport {\n getElevation,\n getSizedElevation\n};\n//# sourceMappingURL=getElevation.js.map\n"],"mappings":";;;AACA,MAAM,eAAe,OAAO,SAAS,MAAM,QAAQ;CACjD,IAAI,CAAC,MAAM;CACX,IAAI,OAAO,SAAS,UAAU,OAAO,kBAAkB,MAAM,GAAG;CAChE,OAAO,kBAAkB,YAAY,MAAM,GAAG,CAAC,CAAC,eAAe,GAAG;AACpE,CAAC;AACD,MAAM,oBAAoB,OAAO,SAC9B,KAAK,QAAQ;CACZ,MAAM,EAAE,UAAU;CAClB,IAAI,MAAM;CACV,IAAI,OAAO,QAAQ,UAAU;EAC3B,MAAM;CACR,OAAO,IAAI,KAAK;EACd,MAAM,YAAY,KAAK,GAAG,CAAC,CAAC,iBAAiB;CAC/C;CACA,IAAI,QAAQ,GAAG;EACb;CACF;CACA,MAAM,CAAC,QAAQ,gBAAgB,CAAC,KAAK,MAAM,MAAM,IAAI,CAAC,GAAG,KAAK,MAAM,MAAM,IAAI,CAAC,CAAC;CAChF,MAAM,cAAc,MAAM,mBAAmB,MAAM;CACnD,OAAO;EACL;EACA;EACA,cAAc;GAAE;GAAQ,OAAO;EAAE;EACjC,kBAAkB,YAAY,IAAI,SAAS,KAAK;CAClD;AACF,CACF"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { isAndroid, resolveSize, styled } from "@tamagui/core";
|
|
2
|
-
|
|
3
|
-
var getElevation = styled.dynamic(function(size, env) {
|
|
4
|
-
if (!size) return;
|
|
5
|
-
if (typeof size === "number") return getSizedElevation(size, env);
|
|
6
|
-
return getSizedElevation(resolveSize(size, env).controlHeight, env);
|
|
7
|
-
});
|
|
8
|
-
var getSizedElevation = styled.dynamic(function(val, env) {
|
|
9
|
-
var { theme } = env;
|
|
10
|
-
var num = 0;
|
|
11
|
-
if (typeof val === "number") {
|
|
12
|
-
num = val;
|
|
13
|
-
} else if (val) {
|
|
14
|
-
num = resolveSize(val, env).controlHeight || 10;
|
|
15
|
-
}
|
|
16
|
-
if (num === 0) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
var [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)];
|
|
20
|
-
var _theme_shadowcolor;
|
|
21
|
-
var shadowColor = (_theme_shadowcolor = theme["shadow-color"]) !== null && _theme_shadowcolor !== void 0 ? _theme_shadowcolor : theme.shadowColor;
|
|
22
|
-
return {
|
|
23
|
-
shadowColor,
|
|
24
|
-
shadowRadius,
|
|
25
|
-
shadowOffset: {
|
|
26
|
-
height,
|
|
27
|
-
width: 0
|
|
28
|
-
},
|
|
29
|
-
elevationAndroid: isAndroid ? 2 * height : void 0
|
|
30
|
-
};
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export { getElevation, getSizedElevation };
|
|
34
|
-
//# sourceMappingURL=getElevation.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getElevation.native.js","names":[],"sources":["esm/getElevation.native.js"],"sourcesContent":["import { isAndroid, resolveSize, styled } from \"@tamagui/core\";\nvar getElevation = styled.dynamic(function(size, env) {\n if (!size) return;\n if (typeof size === \"number\") return getSizedElevation(size, env);\n return getSizedElevation(resolveSize(size, env).controlHeight, env);\n});\nvar getSizedElevation = styled.dynamic(function(val, env) {\n var { theme } = env;\n var num = 0;\n if (typeof val === \"number\") {\n num = val;\n } else if (val) {\n num = resolveSize(val, env).controlHeight || 10;\n }\n if (num === 0) {\n return;\n }\n var [height, shadowRadius] = [\n Math.round(num / 4 + 1),\n Math.round(num / 2 + 2)\n ];\n var _theme_shadowcolor;\n var shadowColor = (_theme_shadowcolor = theme[\"shadow-color\"]) !== null && _theme_shadowcolor !== void 0 ? _theme_shadowcolor : theme.shadowColor;\n return {\n shadowColor,\n shadowRadius,\n shadowOffset: {\n height,\n width: 0\n },\n elevationAndroid: isAndroid ? 2 * height : void 0\n };\n});\nexport {\n getElevation,\n getSizedElevation\n};\n//# sourceMappingURL=getElevation.js.map\n"],"mappings":";;;AACA,IAAI,eAAe,OAAO,QAAQ,SAAS,MAAM,KAAK;CACpD,IAAI,CAAC,MAAM;CACX,IAAI,OAAO,SAAS,UAAU,OAAO,kBAAkB,MAAM,GAAG;CAChE,OAAO,kBAAkB,YAAY,MAAM,GAAG,CAAC,CAAC,eAAe,GAAG;AACpE,CAAC;AACD,IAAI,oBAAoB,OAAO,QAAQ,SAAS,KAAK,KAAK;CACxD,IAAI,EAAE,UAAU;CAChB,IAAI,MAAM;CACV,IAAI,OAAO,QAAQ,UAAU;EAC3B,MAAM;CACR,OAAO,IAAI,KAAK;EACd,MAAM,YAAY,KAAK,GAAG,CAAC,CAAC,iBAAiB;CAC/C;CACA,IAAI,QAAQ,GAAG;EACb;CACF;CACA,IAAI,CAAC,QAAQ,gBAAgB,CAC3B,KAAK,MAAM,MAAM,IAAI,CAAC,GACtB,KAAK,MAAM,MAAM,IAAI,CAAC,CACxB;CACA,IAAI;CACJ,IAAI,eAAe,qBAAqB,MAAM,qBAAqB,QAAQ,uBAAuB,KAAK,IAAI,qBAAqB,MAAM;CACtI,OAAO;EACL;EACA;EACA,cAAc;GACZ;GACA,OAAO;EACT;EACA,kBAAkB,YAAY,IAAI,SAAS,KAAK;CAClD;AACF,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { isAndroid, resolveSize, styled } from "@tamagui/core";
|
|
2
|
-
|
|
3
|
-
const getElevation = styled.dynamic((size, env) => {
|
|
4
|
-
if (!size) return;
|
|
5
|
-
if (typeof size === "number") return getSizedElevation(size, env);
|
|
6
|
-
return getSizedElevation(resolveSize(size, env).controlHeight, env);
|
|
7
|
-
});
|
|
8
|
-
const getSizedElevation = styled.dynamic((val, env) => {
|
|
9
|
-
const { theme } = env;
|
|
10
|
-
let num = 0;
|
|
11
|
-
if (typeof val === "number") {
|
|
12
|
-
num = val;
|
|
13
|
-
} else if (val) {
|
|
14
|
-
num = resolveSize(val, env).controlHeight || 10;
|
|
15
|
-
}
|
|
16
|
-
if (num === 0) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
const [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)];
|
|
20
|
-
const shadowColor = theme["shadow-color"] ?? theme.shadowColor;
|
|
21
|
-
return {
|
|
22
|
-
shadowColor,
|
|
23
|
-
shadowRadius,
|
|
24
|
-
shadowOffset: {
|
|
25
|
-
height,
|
|
26
|
-
width: 0
|
|
27
|
-
},
|
|
28
|
-
elevationAndroid: isAndroid ? 2 * height : void 0
|
|
29
|
-
};
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
export { getElevation, getSizedElevation };
|
|
33
|
-
//# sourceMappingURL=getElevation.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getElevation.js","names":[],"sources":["jsx/getElevation.js"],"sourcesContent":["import { isAndroid, resolveSize, styled } from \"@tamagui/core\";\nconst getElevation = styled.dynamic((size, env) => {\n if (!size) return;\n if (typeof size === \"number\") return getSizedElevation(size, env);\n return getSizedElevation(resolveSize(size, env).controlHeight, env);\n});\nconst getSizedElevation = styled.dynamic(\n (val, env) => {\n const { theme } = env;\n let num = 0;\n if (typeof val === \"number\") {\n num = val;\n } else if (val) {\n num = resolveSize(val, env).controlHeight || 10;\n }\n if (num === 0) {\n return;\n }\n const [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)];\n const shadowColor = theme[\"shadow-color\"] ?? theme.shadowColor;\n return {\n shadowColor,\n shadowRadius,\n shadowOffset: { height, width: 0 },\n elevationAndroid: isAndroid ? 2 * height : void 0\n };\n }\n);\nexport {\n getElevation,\n getSizedElevation\n};\n//# sourceMappingURL=getElevation.js.map\n"],"mappings":";;;AACA,MAAM,eAAe,OAAO,SAAS,MAAM,QAAQ;CACjD,IAAI,CAAC,MAAM;CACX,IAAI,OAAO,SAAS,UAAU,OAAO,kBAAkB,MAAM,GAAG;CAChE,OAAO,kBAAkB,YAAY,MAAM,GAAG,CAAC,CAAC,eAAe,GAAG;AACpE,CAAC;AACD,MAAM,oBAAoB,OAAO,SAC9B,KAAK,QAAQ;CACZ,MAAM,EAAE,UAAU;CAClB,IAAI,MAAM;CACV,IAAI,OAAO,QAAQ,UAAU;EAC3B,MAAM;CACR,OAAO,IAAI,KAAK;EACd,MAAM,YAAY,KAAK,GAAG,CAAC,CAAC,iBAAiB;CAC/C;CACA,IAAI,QAAQ,GAAG;EACb;CACF;CACA,MAAM,CAAC,QAAQ,gBAAgB,CAAC,KAAK,MAAM,MAAM,IAAI,CAAC,GAAG,KAAK,MAAM,MAAM,IAAI,CAAC,CAAC;CAChF,MAAM,cAAc,MAAM,mBAAmB,MAAM;CACnD,OAAO;EACL;EACA;EACA,cAAc;GAAE;GAAQ,OAAO;EAAE;EACjC,kBAAkB,YAAY,IAAI,SAAS,KAAK;CAClD;AACF,CACF"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
-
var getElevation_exports = {};
|
|
24
|
-
__export(getElevation_exports, {
|
|
25
|
-
getElevation: () => getElevation,
|
|
26
|
-
getSizedElevation: () => getSizedElevation
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(getElevation_exports);
|
|
29
|
-
var import_core = require("@tamagui/core");
|
|
30
|
-
var getElevation = import_core.styled.dynamic(function(size, env) {
|
|
31
|
-
if (!size) return;
|
|
32
|
-
if (typeof size === "number") return getSizedElevation(size, env);
|
|
33
|
-
return getSizedElevation((0, import_core.resolveSize)(size, env).controlHeight, env);
|
|
34
|
-
});
|
|
35
|
-
var getSizedElevation = import_core.styled.dynamic(function(val, env) {
|
|
36
|
-
var { theme } = env;
|
|
37
|
-
var num = 0;
|
|
38
|
-
if (typeof val === "number") {
|
|
39
|
-
num = val;
|
|
40
|
-
} else if (val) {
|
|
41
|
-
num = (0, import_core.resolveSize)(val, env).controlHeight || 10;
|
|
42
|
-
}
|
|
43
|
-
if (num === 0) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
var [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)];
|
|
47
|
-
var _theme_shadowcolor;
|
|
48
|
-
var shadowColor = (_theme_shadowcolor = theme["shadow-color"]) !== null && _theme_shadowcolor !== void 0 ? _theme_shadowcolor : theme.shadowColor;
|
|
49
|
-
return {
|
|
50
|
-
shadowColor,
|
|
51
|
-
shadowRadius,
|
|
52
|
-
shadowOffset: {
|
|
53
|
-
height,
|
|
54
|
-
width: 0
|
|
55
|
-
},
|
|
56
|
-
elevationAndroid: import_core.isAndroid ? 2 * height : void 0
|
|
57
|
-
};
|
|
58
|
-
});
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
-
var getElevation_exports = {};
|
|
24
|
-
__export(getElevation_exports, {
|
|
25
|
-
getElevation: () => getElevation,
|
|
26
|
-
getSizedElevation: () => getSizedElevation
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(getElevation_exports);
|
|
29
|
-
var import_core = require("@tamagui/core");
|
|
30
|
-
var getElevation = import_core.styled.dynamic(function(size, env) {
|
|
31
|
-
if (!size) return;
|
|
32
|
-
if (typeof size === "number") return getSizedElevation(size, env);
|
|
33
|
-
return getSizedElevation((0, import_core.resolveSize)(size, env).controlHeight, env);
|
|
34
|
-
});
|
|
35
|
-
var getSizedElevation = import_core.styled.dynamic(function(val, env) {
|
|
36
|
-
var { theme } = env;
|
|
37
|
-
var num = 0;
|
|
38
|
-
if (typeof val === "number") {
|
|
39
|
-
num = val;
|
|
40
|
-
} else if (val) {
|
|
41
|
-
num = (0, import_core.resolveSize)(val, env).controlHeight || 10;
|
|
42
|
-
}
|
|
43
|
-
if (num === 0) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
var [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)];
|
|
47
|
-
var _theme_shadowcolor;
|
|
48
|
-
var shadowColor = (_theme_shadowcolor = theme["shadow-color"]) !== null && _theme_shadowcolor !== void 0 ? _theme_shadowcolor : theme.shadowColor;
|
|
49
|
-
return {
|
|
50
|
-
shadowColor,
|
|
51
|
-
shadowRadius,
|
|
52
|
-
shadowOffset: {
|
|
53
|
-
height,
|
|
54
|
-
width: 0
|
|
55
|
-
},
|
|
56
|
-
elevationAndroid: import_core.isAndroid ? 2 * height : void 0
|
|
57
|
-
};
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
//# sourceMappingURL=getElevation.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getElevation.native.js","names":[],"sources":["jsx/getElevation.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar getElevation_exports = {};\n__export(getElevation_exports, {\n getElevation: () => getElevation,\n getSizedElevation: () => getSizedElevation\n});\nmodule.exports = __toCommonJS(getElevation_exports);\nvar import_core = require(\"@tamagui/core\");\nvar getElevation = import_core.styled.dynamic(function(size, env) {\n if (!size) return;\n if (typeof size === \"number\") return getSizedElevation(size, env);\n return getSizedElevation((0, import_core.resolveSize)(size, env).controlHeight, env);\n});\nvar getSizedElevation = import_core.styled.dynamic(function(val, env) {\n var { theme } = env;\n var num = 0;\n if (typeof val === \"number\") {\n num = val;\n } else if (val) {\n num = (0, import_core.resolveSize)(val, env).controlHeight || 10;\n }\n if (num === 0) {\n return;\n }\n var [height, shadowRadius] = [\n Math.round(num / 4 + 1),\n Math.round(num / 2 + 2)\n ];\n var _theme_shadowcolor;\n var shadowColor = (_theme_shadowcolor = theme[\"shadow-color\"]) !== null && _theme_shadowcolor !== void 0 ? _theme_shadowcolor : theme.shadowColor;\n return {\n shadowColor,\n shadowRadius,\n shadowOffset: {\n height,\n width: 0\n },\n elevationAndroid: import_core.isAndroid ? 2 * height : void 0\n };\n});\n//# sourceMappingURL=getElevation.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,uBAAuB,CAAC;AAC5B,SAAS,sBAAsB;CAC7B,oBAAoB;CACpB,yBAAyB;AAC3B,CAAC;AACD,OAAO,UAAU,aAAa,oBAAoB;AAClD,IAAI,cAAc,QAAQ,eAAe;AACzC,IAAI,eAAe,YAAY,OAAO,QAAQ,SAAS,MAAM,KAAK;CAChE,IAAI,CAAC,MAAM;CACX,IAAI,OAAO,SAAS,UAAU,OAAO,kBAAkB,MAAM,GAAG;CAChE,OAAO,mBAAmB,GAAG,YAAY,YAAW,CAAE,MAAM,GAAG,CAAC,CAAC,eAAe,GAAG;AACrF,CAAC;AACD,IAAI,oBAAoB,YAAY,OAAO,QAAQ,SAAS,KAAK,KAAK;CACpE,IAAI,EAAE,UAAU;CAChB,IAAI,MAAM;CACV,IAAI,OAAO,QAAQ,UAAU;EAC3B,MAAM;CACR,OAAO,IAAI,KAAK;EACd,OAAO,GAAG,YAAY,YAAW,CAAE,KAAK,GAAG,CAAC,CAAC,iBAAiB;CAChE;CACA,IAAI,QAAQ,GAAG;EACb;CACF;CACA,IAAI,CAAC,QAAQ,gBAAgB,CAC3B,KAAK,MAAM,MAAM,IAAI,CAAC,GACtB,KAAK,MAAM,MAAM,IAAI,CAAC,CACxB;CACA,IAAI;CACJ,IAAI,eAAe,qBAAqB,MAAM,qBAAqB,QAAQ,uBAAuB,KAAK,IAAI,qBAAqB,MAAM;CACtI,OAAO;EACL;EACA;EACA,cAAc;GACZ;GACA,OAAO;EACT;EACA,kBAAkB,YAAY,YAAY,IAAI,SAAS,KAAK;CAC9D;AACF,CAAC"}
|
package/src/getElevation.tsx
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { SizeTokens } from '@tamagui/core'
|
|
2
|
-
import { isAndroid, resolveSize, styled } from '@tamagui/core'
|
|
3
|
-
|
|
4
|
-
export const getElevation = styled.dynamic<SizeTokens | number | boolean>((size, env) => {
|
|
5
|
-
if (!size) return
|
|
6
|
-
// elevation={10} means 10px, not size token '10'. the size scale is keyed by
|
|
7
|
-
// numeric-looking strings, so only a non-numeric token may be looked up.
|
|
8
|
-
if (typeof size === 'number') return getSizedElevation(size, env)
|
|
9
|
-
return getSizedElevation(resolveSize(size, env).controlHeight, env)
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
export const getSizedElevation = styled.dynamic<SizeTokens | number | boolean>(
|
|
13
|
-
(val, env) => {
|
|
14
|
-
const { theme } = env
|
|
15
|
-
let num = 0
|
|
16
|
-
if (typeof val === 'number') {
|
|
17
|
-
num = val
|
|
18
|
-
} else if (val) {
|
|
19
|
-
num = resolveSize(val, env).controlHeight || 10
|
|
20
|
-
}
|
|
21
|
-
if (num === 0) {
|
|
22
|
-
return
|
|
23
|
-
}
|
|
24
|
-
const [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)]
|
|
25
|
-
const shadowColor = (theme as any)['shadow-color'] ?? (theme as any).shadowColor
|
|
26
|
-
return {
|
|
27
|
-
shadowColor,
|
|
28
|
-
shadowRadius,
|
|
29
|
-
shadowOffset: { height, width: 0 },
|
|
30
|
-
elevationAndroid: isAndroid ? 2 * height : undefined,
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
)
|
package/types/getElevation.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const getElevation: import("@tamagui/web/types/types").StyledDynamicFn<number | false | import("@tamagui/core").Size, Record<string, any>>;
|
|
2
|
-
export declare const getSizedElevation: import("@tamagui/web/types/types").StyledDynamicFn<number | false | import("@tamagui/core").Size, Record<string, any>>;
|
|
3
|
-
//# sourceMappingURL=getElevation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getElevation.d.ts","sourceRoot":"","sources":["../src/getElevation.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,wHAMvB,CAAA;AAEF,eAAO,MAAM,iBAAiB,wHAqB7B,CAAA"}
|