@tamagui/stacks 1.0.0-beta.203

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Nate Wienert
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,95 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var Stacks_exports = {};
20
+ __export(Stacks_exports, {
21
+ XStack: () => XStack,
22
+ YStack: () => YStack,
23
+ ZStack: () => ZStack,
24
+ getSizedElevation: () => getSizedElevation
25
+ });
26
+ module.exports = __toCommonJS(Stacks_exports);
27
+ var import_core = require("@tamagui/core");
28
+ const getElevation = /* @__PURE__ */ __name((size, extras) => {
29
+ const { tokens } = extras;
30
+ const token = tokens.size[size];
31
+ const sizeNum = (0, import_core.isVariable)(token) ? +token.val : size;
32
+ return getSizedElevation(sizeNum, extras);
33
+ }, "getElevation");
34
+ const fullscreenStyle = {
35
+ position: "absolute",
36
+ top: 0,
37
+ left: 0,
38
+ right: 0,
39
+ bottom: 0
40
+ };
41
+ const YStack = (0, import_core.styled)(import_core.Stack, {
42
+ flexDirection: "column",
43
+ name: "YStack",
44
+ variants: {
45
+ fullscreen: {
46
+ true: fullscreenStyle
47
+ },
48
+ elevation: {
49
+ "...size": getElevation
50
+ }
51
+ }
52
+ });
53
+ const XStack = (0, import_core.styled)(import_core.Stack, {
54
+ flexDirection: "row",
55
+ name: "XStack",
56
+ variants: {
57
+ fullscreen: {
58
+ true: fullscreenStyle
59
+ },
60
+ elevation: {
61
+ "...size": getElevation
62
+ }
63
+ }
64
+ });
65
+ const ZStack = (0, import_core.styled)(YStack, {
66
+ name: "ZStack",
67
+ position: "relative"
68
+ }, {
69
+ neverFlatten: true,
70
+ isZStack: true
71
+ });
72
+ const getSizedElevation = /* @__PURE__ */ __name((val, { theme, tokens }) => {
73
+ const num = val === false ? 0 : val === true ? (() => {
74
+ const val2 = (0, import_core.getVariableValue)(tokens.size["true"]);
75
+ if (typeof val2 === "number") {
76
+ return val2;
77
+ }
78
+ return 10;
79
+ })() : +val;
80
+ const [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)];
81
+ const shadow = {
82
+ shadowColor: theme.shadowColor,
83
+ shadowRadius,
84
+ shadowOffset: { height, width: 0 }
85
+ };
86
+ return shadow;
87
+ }, "getSizedElevation");
88
+ // Annotate the CommonJS export names for ESM import in node:
89
+ 0 && (module.exports = {
90
+ XStack,
91
+ YStack,
92
+ ZStack,
93
+ getSizedElevation
94
+ });
95
+ //# sourceMappingURL=Stacks.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Stacks.tsx"],
4
+ "sourcesContent": ["import {\n GetProps,\n SizeTokens,\n SizeVariantSpreadFunction,\n Stack,\n StackProps,\n VariantSpreadExtras,\n getVariableValue,\n isVariable,\n styled,\n} from '@tamagui/core'\n\nexport type YStackProps = GetProps<typeof YStack>\nexport type XStackProps = GetProps<typeof YStack>\nexport type ZStackProps = GetProps<typeof ZStack>\n\nconst getElevation: SizeVariantSpreadFunction<StackProps> = (size, extras) => {\n const { tokens } = extras\n const token = tokens.size[size]\n const sizeNum = (isVariable(token) ? +token.val : size) as number\n // TODO this could be configurable with require('tamagui').configure({ elevation: () => {} })\n return getSizedElevation(sizeNum, extras)\n}\n\nconst fullscreenStyle = {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n} as const\n\nexport const YStack = styled(Stack, {\n flexDirection: 'column',\n name: 'YStack',\n variants: {\n fullscreen: {\n true: fullscreenStyle,\n },\n elevation: {\n '...size': getElevation,\n },\n },\n})\n\nexport const XStack = styled(Stack, {\n flexDirection: 'row',\n name: 'XStack',\n variants: {\n fullscreen: {\n true: fullscreenStyle,\n },\n elevation: {\n '...size': getElevation,\n },\n },\n})\n\nexport const ZStack = styled(\n YStack,\n {\n name: 'ZStack',\n position: 'relative',\n },\n {\n neverFlatten: true,\n isZStack: true,\n }\n)\n\nexport const getSizedElevation = (\n val: SizeTokens | number | boolean,\n { theme, tokens }: VariantSpreadExtras<any>\n) => {\n const num =\n val === false\n ? 0\n : val === true\n ? // handles true\n (() => {\n const val = getVariableValue(tokens.size['true'])\n if (typeof val === 'number') {\n return val\n }\n return 10\n })()\n : +val\n const [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)]\n const shadow = {\n shadowColor: theme.shadowColor,\n shadowRadius,\n shadowOffset: { height, width: 0 },\n }\n return shadow\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAUO;AAMP,MAAM,eAAsD,wBAAC,MAAM,WAAW;AAC5E,QAAM,EAAE,WAAW;AACnB,QAAM,QAAQ,OAAO,KAAK;AAC1B,QAAM,UAAW,4BAAW,KAAK,IAAI,CAAC,MAAM,MAAM;AAElD,SAAO,kBAAkB,SAAS,MAAM;AAC1C,GAN4D;AAQ5D,MAAM,kBAAkB;AAAA,EACtB,UAAU;AAAA,EACV,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AACV;AAEO,MAAM,SAAS,wBAAO,mBAAO;AAAA,EAClC,eAAe;AAAA,EACf,MAAM;AAAA,EACN,UAAU;AAAA,IACR,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,WAAW;AAAA,IACb;AAAA,EACF;AACF,CAAC;AAEM,MAAM,SAAS,wBAAO,mBAAO;AAAA,EAClC,eAAe;AAAA,EACf,MAAM;AAAA,EACN,UAAU;AAAA,IACR,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,WAAW;AAAA,IACb;AAAA,EACF;AACF,CAAC;AAEM,MAAM,SAAS,wBACpB,QACA;AAAA,EACE,MAAM;AAAA,EACN,UAAU;AACZ,GACA;AAAA,EACE,cAAc;AAAA,EACd,UAAU;AACZ,CACF;AAEO,MAAM,oBAAoB,wBAC/B,KACA,EAAE,OAAO,aACN;AACH,QAAM,MACJ,QAAQ,QACJ,IACA,QAAQ,OAEP,OAAM;AACL,UAAM,OAAM,kCAAiB,OAAO,KAAK,OAAO;AAChD,QAAI,OAAO,SAAQ,UAAU;AAC3B,aAAO;AAAA,IACT;AACA,WAAO;AAAA,EACT,GAAG,IACH,CAAC;AACP,QAAM,CAAC,QAAQ,gBAAgB,CAAC,KAAK,MAAM,MAAM,IAAI,CAAC,GAAG,KAAK,MAAM,MAAM,IAAI,CAAC,CAAC;AAChF,QAAM,SAAS;AAAA,IACb,aAAa,MAAM;AAAA,IACnB;AAAA,IACA,cAAc,EAAE,QAAQ,OAAO,EAAE;AAAA,EACnC;AACA,SAAO;AACT,GAxBiC;",
6
+ "names": []
7
+ }
@@ -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") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var src_exports = {};
16
+ module.exports = __toCommonJS(src_exports);
17
+ __reExport(src_exports, require("./Stacks"), module.exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["export * from './Stacks'\n"],
5
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,qBAAd;",
6
+ "names": []
7
+ }
@@ -0,0 +1,75 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import {
4
+ Stack,
5
+ getVariableValue,
6
+ isVariable,
7
+ styled
8
+ } from "@tamagui/core";
9
+ const getElevation = /* @__PURE__ */ __name((size, extras) => {
10
+ const { tokens } = extras;
11
+ const token = tokens.size[size];
12
+ const sizeNum = isVariable(token) ? +token.val : size;
13
+ return getSizedElevation(sizeNum, extras);
14
+ }, "getElevation");
15
+ const fullscreenStyle = {
16
+ position: "absolute",
17
+ top: 0,
18
+ left: 0,
19
+ right: 0,
20
+ bottom: 0
21
+ };
22
+ const YStack = styled(Stack, {
23
+ flexDirection: "column",
24
+ name: "YStack",
25
+ variants: {
26
+ fullscreen: {
27
+ true: fullscreenStyle
28
+ },
29
+ elevation: {
30
+ "...size": getElevation
31
+ }
32
+ }
33
+ });
34
+ const XStack = styled(Stack, {
35
+ flexDirection: "row",
36
+ name: "XStack",
37
+ variants: {
38
+ fullscreen: {
39
+ true: fullscreenStyle
40
+ },
41
+ elevation: {
42
+ "...size": getElevation
43
+ }
44
+ }
45
+ });
46
+ const ZStack = styled(YStack, {
47
+ name: "ZStack",
48
+ position: "relative"
49
+ }, {
50
+ neverFlatten: true,
51
+ isZStack: true
52
+ });
53
+ const getSizedElevation = /* @__PURE__ */ __name((val, { theme, tokens }) => {
54
+ const num = val === false ? 0 : val === true ? (() => {
55
+ const val2 = getVariableValue(tokens.size["true"]);
56
+ if (typeof val2 === "number") {
57
+ return val2;
58
+ }
59
+ return 10;
60
+ })() : +val;
61
+ const [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)];
62
+ const shadow = {
63
+ shadowColor: theme.shadowColor,
64
+ shadowRadius,
65
+ shadowOffset: { height, width: 0 }
66
+ };
67
+ return shadow;
68
+ }, "getSizedElevation");
69
+ export {
70
+ XStack,
71
+ YStack,
72
+ ZStack,
73
+ getSizedElevation
74
+ };
75
+ //# sourceMappingURL=Stacks.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Stacks.tsx"],
4
+ "sourcesContent": ["import {\n GetProps,\n SizeTokens,\n SizeVariantSpreadFunction,\n Stack,\n StackProps,\n VariantSpreadExtras,\n getVariableValue,\n isVariable,\n styled,\n} from '@tamagui/core'\n\nexport type YStackProps = GetProps<typeof YStack>\nexport type XStackProps = GetProps<typeof YStack>\nexport type ZStackProps = GetProps<typeof ZStack>\n\nconst getElevation: SizeVariantSpreadFunction<StackProps> = (size, extras) => {\n const { tokens } = extras\n const token = tokens.size[size]\n const sizeNum = (isVariable(token) ? +token.val : size) as number\n // TODO this could be configurable with require('tamagui').configure({ elevation: () => {} })\n return getSizedElevation(sizeNum, extras)\n}\n\nconst fullscreenStyle = {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n} as const\n\nexport const YStack = styled(Stack, {\n flexDirection: 'column',\n name: 'YStack',\n variants: {\n fullscreen: {\n true: fullscreenStyle,\n },\n elevation: {\n '...size': getElevation,\n },\n },\n})\n\nexport const XStack = styled(Stack, {\n flexDirection: 'row',\n name: 'XStack',\n variants: {\n fullscreen: {\n true: fullscreenStyle,\n },\n elevation: {\n '...size': getElevation,\n },\n },\n})\n\nexport const ZStack = styled(\n YStack,\n {\n name: 'ZStack',\n position: 'relative',\n },\n {\n neverFlatten: true,\n isZStack: true,\n }\n)\n\nexport const getSizedElevation = (\n val: SizeTokens | number | boolean,\n { theme, tokens }: VariantSpreadExtras<any>\n) => {\n const num =\n val === false\n ? 0\n : val === true\n ? // handles true\n (() => {\n const val = getVariableValue(tokens.size['true'])\n if (typeof val === 'number') {\n return val\n }\n return 10\n })()\n : +val\n const [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)]\n const shadow = {\n shadowColor: theme.shadowColor,\n shadowRadius,\n shadowOffset: { height, width: 0 },\n }\n return shadow\n}\n"],
5
+ "mappings": ";;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBA,MAAM,eAAsD,wBAAC,MAAM,WAAW;AAC5E,QAAM,EAAE,WAAW;AACnB,QAAM,QAAQ,OAAO,KAAK;AAC1B,QAAM,UAAW,WAAW,KAAK,IAAI,CAAC,MAAM,MAAM;AAElD,SAAO,kBAAkB,SAAS,MAAM;AAC1C,GAN4D;AAQ5D,MAAM,kBAAkB;AAAA,EACtB,UAAU;AAAA,EACV,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AACV;AAEO,MAAM,SAAS,OAAO,OAAO;AAAA,EAClC,eAAe;AAAA,EACf,MAAM;AAAA,EACN,UAAU;AAAA,IACR,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,WAAW;AAAA,IACb;AAAA,EACF;AACF,CAAC;AAEM,MAAM,SAAS,OAAO,OAAO;AAAA,EAClC,eAAe;AAAA,EACf,MAAM;AAAA,EACN,UAAU;AAAA,IACR,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,WAAW;AAAA,IACb;AAAA,EACF;AACF,CAAC;AAEM,MAAM,SAAS,OACpB,QACA;AAAA,EACE,MAAM;AAAA,EACN,UAAU;AACZ,GACA;AAAA,EACE,cAAc;AAAA,EACd,UAAU;AACZ,CACF;AAEO,MAAM,oBAAoB,wBAC/B,KACA,EAAE,OAAO,aACN;AACH,QAAM,MACJ,QAAQ,QACJ,IACA,QAAQ,OAEP,OAAM;AACL,UAAM,OAAM,iBAAiB,OAAO,KAAK,OAAO;AAChD,QAAI,OAAO,SAAQ,UAAU;AAC3B,aAAO;AAAA,IACT;AACA,WAAO;AAAA,EACT,GAAG,IACH,CAAC;AACP,QAAM,CAAC,QAAQ,gBAAgB,CAAC,KAAK,MAAM,MAAM,IAAI,CAAC,GAAG,KAAK,MAAM,MAAM,IAAI,CAAC,CAAC;AAChF,QAAM,SAAS;AAAA,IACb,aAAa,MAAM;AAAA,IACnB;AAAA,IACA,cAAc,EAAE,QAAQ,OAAO,EAAE;AAAA,EACnC;AACA,SAAO;AACT,GAxBiC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./Stacks";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["export * from './Stacks'\n"],
5
+ "mappings": "AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,74 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import {
4
+ Stack,
5
+ getVariableValue,
6
+ isVariable,
7
+ styled
8
+ } from "@tamagui/core";
9
+ const getElevation = /* @__PURE__ */ __name((size, extras) => {
10
+ const { tokens } = extras;
11
+ const token = tokens.size[size];
12
+ const sizeNum = isVariable(token) ? +token.val : size;
13
+ return getSizedElevation(sizeNum, extras);
14
+ }, "getElevation");
15
+ const fullscreenStyle = {
16
+ position: "absolute",
17
+ top: 0,
18
+ left: 0,
19
+ right: 0,
20
+ bottom: 0
21
+ };
22
+ const YStack = styled(Stack, {
23
+ flexDirection: "column",
24
+ name: "YStack",
25
+ variants: {
26
+ fullscreen: {
27
+ true: fullscreenStyle
28
+ },
29
+ elevation: {
30
+ "...size": getElevation
31
+ }
32
+ }
33
+ });
34
+ const XStack = styled(Stack, {
35
+ flexDirection: "row",
36
+ name: "XStack",
37
+ variants: {
38
+ fullscreen: {
39
+ true: fullscreenStyle
40
+ },
41
+ elevation: {
42
+ "...size": getElevation
43
+ }
44
+ }
45
+ });
46
+ const ZStack = styled(YStack, {
47
+ name: "ZStack",
48
+ position: "relative"
49
+ }, {
50
+ neverFlatten: true,
51
+ isZStack: true
52
+ });
53
+ const getSizedElevation = /* @__PURE__ */ __name((val, { theme, tokens }) => {
54
+ const num = val === false ? 0 : val === true ? (() => {
55
+ const val2 = getVariableValue(tokens.size["true"]);
56
+ if (typeof val2 === "number") {
57
+ return val2;
58
+ }
59
+ return 10;
60
+ })() : +val;
61
+ const [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)];
62
+ const shadow = {
63
+ shadowColor: theme.shadowColor,
64
+ shadowRadius,
65
+ shadowOffset: { height, width: 0 }
66
+ };
67
+ return shadow;
68
+ }, "getSizedElevation");
69
+ export {
70
+ XStack,
71
+ YStack,
72
+ ZStack,
73
+ getSizedElevation
74
+ };
@@ -0,0 +1 @@
1
+ export * from "./Stacks";
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@tamagui/stacks",
3
+ "version": "1.0.0-beta.203+bdbb1f11",
4
+ "sideEffects": false,
5
+ "source": "src/index.ts",
6
+ "typings": "types",
7
+ "main": "dist/cjs",
8
+ "module": "dist/esm",
9
+ "module:jsx": "dist/jsx",
10
+ "files": [
11
+ "types",
12
+ "dist"
13
+ ],
14
+ "scripts": {
15
+ "build": "tamagui-build",
16
+ "watch": "tamagui-build --watch"
17
+ },
18
+ "dependencies": {
19
+ "@tamagui/core": "^1.0.0-beta.203+bdbb1f11"
20
+ },
21
+ "peerDependencies": {
22
+ "react": "*",
23
+ "react-dom": "*"
24
+ },
25
+ "devDependencies": {
26
+ "@tamagui/build": "^1.0.0-beta.203+bdbb1f11",
27
+ "react": "*",
28
+ "react-dom": "*"
29
+ },
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "gitHead": "bdbb1f11fae44e3a78133373ef108adccaa68924"
34
+ }
@@ -0,0 +1,69 @@
1
+ import { GetProps, SizeTokens, VariantSpreadExtras } from '@tamagui/core';
2
+ export declare type YStackProps = GetProps<typeof YStack>;
3
+ export declare type XStackProps = GetProps<typeof YStack>;
4
+ export declare type ZStackProps = GetProps<typeof ZStack>;
5
+ export declare const YStack: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
6
+ fullscreen?: boolean | undefined;
7
+ elevation?: SizeTokens | undefined;
8
+ } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
9
+ fullscreen?: boolean | undefined;
10
+ elevation?: SizeTokens | undefined;
11
+ }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
12
+ fullscreen?: boolean | undefined;
13
+ elevation?: SizeTokens | undefined;
14
+ }>>, any, import("@tamagui/core").StackPropsBase, {
15
+ fullscreen?: boolean | undefined;
16
+ elevation?: SizeTokens | undefined;
17
+ }>;
18
+ export declare const XStack: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
19
+ fullscreen?: boolean | undefined;
20
+ elevation?: SizeTokens | undefined;
21
+ } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
22
+ fullscreen?: boolean | undefined;
23
+ elevation?: SizeTokens | undefined;
24
+ }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
25
+ fullscreen?: boolean | undefined;
26
+ elevation?: SizeTokens | undefined;
27
+ }>>, any, import("@tamagui/core").StackPropsBase, {
28
+ fullscreen?: boolean | undefined;
29
+ elevation?: SizeTokens | undefined;
30
+ }>;
31
+ export declare const ZStack: import("@tamagui/core").TamaguiComponent<(Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
32
+ fullscreen?: boolean | undefined;
33
+ elevation?: SizeTokens | undefined;
34
+ } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
35
+ fullscreen?: boolean | undefined;
36
+ elevation?: SizeTokens | undefined;
37
+ }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
38
+ fullscreen?: boolean | undefined;
39
+ elevation?: SizeTokens | undefined;
40
+ }>>) | (Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
41
+ fullscreen?: boolean | undefined;
42
+ elevation?: SizeTokens | undefined;
43
+ }, string | number> & {
44
+ [x: string]: undefined;
45
+ } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
46
+ fullscreen?: boolean | undefined;
47
+ elevation?: SizeTokens | undefined;
48
+ }, string | number> & {
49
+ [x: string]: undefined;
50
+ }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
51
+ fullscreen?: boolean | undefined;
52
+ elevation?: SizeTokens | undefined;
53
+ }, string | number> & {
54
+ [x: string]: undefined;
55
+ }>>), any, import("@tamagui/core").StackPropsBase, {
56
+ fullscreen?: boolean | undefined;
57
+ elevation?: SizeTokens | undefined;
58
+ } & ({} | {
59
+ [x: string]: undefined;
60
+ })>;
61
+ export declare const getSizedElevation: (val: SizeTokens | number | boolean, { theme, tokens }: VariantSpreadExtras<any>) => {
62
+ shadowColor: import("@tamagui/core").VariableColorVal | undefined;
63
+ shadowRadius: number;
64
+ shadowOffset: {
65
+ height: number;
66
+ width: number;
67
+ };
68
+ };
69
+ //# sourceMappingURL=Stacks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stacks.d.ts","sourceRoot":"","sources":["../src/Stacks.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,UAAU,EAIV,mBAAmB,EAIpB,MAAM,eAAe,CAAA;AAEtB,oBAAY,WAAW,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AACjD,oBAAY,WAAW,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AACjD,oBAAY,WAAW,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AAkBjD,eAAO,MAAM,MAAM;;;;;;;;;;;;EAWjB,CAAA;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;EAWjB,CAAA;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUlB,CAAA;AAED,eAAO,MAAM,iBAAiB,QACvB,UAAU,GAAG,MAAM,GAAG,OAAO,qBACf,oBAAoB,GAAG,CAAC;;;;;;;CAsB5C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './Stacks';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}