@tamagui/stacks 2.0.0-rc.4 → 2.0.0-rc.40
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/NestingContext.cjs +25 -23
- package/dist/cjs/NestingContext.native.js +26 -24
- package/dist/cjs/NestingContext.native.js.map +1 -1
- package/dist/cjs/SizableStack.cjs +21 -17
- package/dist/cjs/SizableStack.native.js +35 -33
- package/dist/cjs/SizableStack.native.js.map +1 -1
- package/dist/cjs/Stacks.cjs +34 -32
- package/dist/cjs/Stacks.native.js +35 -33
- package/dist/cjs/Stacks.native.js.map +1 -1
- package/dist/cjs/ThemeableStack.cjs +43 -41
- package/dist/cjs/ThemeableStack.native.js +44 -42
- package/dist/cjs/ThemeableStack.native.js.map +1 -1
- package/dist/cjs/getElevation.cjs +51 -40
- package/dist/cjs/getElevation.native.js +53 -45
- package/dist/cjs/getElevation.native.js.map +1 -1
- package/dist/cjs/index.cjs +7 -5
- package/dist/cjs/index.native.js +7 -5
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/variants.cjs +46 -38
- package/dist/cjs/variants.native.js +49 -45
- package/dist/cjs/variants.native.js.map +1 -1
- package/dist/esm/NestingContext.mjs +1 -1
- package/dist/esm/NestingContext.mjs.map +1 -1
- package/dist/esm/NestingContext.native.js +1 -1
- package/dist/esm/SizableStack.mjs +5 -3
- package/dist/esm/SizableStack.mjs.map +1 -1
- package/dist/esm/SizableStack.native.js +2 -2
- package/dist/esm/SizableStack.native.js.map +1 -1
- package/dist/esm/Stacks.mjs +20 -20
- package/dist/esm/Stacks.mjs.map +1 -1
- package/dist/esm/Stacks.native.js +20 -20
- package/dist/esm/Stacks.native.js.map +1 -1
- package/dist/esm/ThemeableStack.mjs +28 -28
- package/dist/esm/ThemeableStack.mjs.map +1 -1
- package/dist/esm/ThemeableStack.native.js +28 -28
- package/dist/esm/ThemeableStack.native.js.map +1 -1
- package/dist/esm/getElevation.mjs +38 -29
- package/dist/esm/getElevation.mjs.map +1 -1
- package/dist/esm/getElevation.native.js +39 -33
- package/dist/esm/getElevation.native.js.map +1 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -6
- package/dist/esm/variants.mjs +34 -28
- package/dist/esm/variants.mjs.map +1 -1
- package/dist/esm/variants.native.js +35 -33
- package/dist/esm/variants.native.js.map +1 -1
- package/dist/jsx/NestingContext.mjs +1 -1
- package/dist/jsx/NestingContext.mjs.map +1 -1
- package/dist/jsx/NestingContext.native.js +26 -24
- package/dist/jsx/SizableStack.mjs +5 -3
- package/dist/jsx/SizableStack.mjs.map +1 -1
- package/dist/jsx/SizableStack.native.js +35 -33
- package/dist/jsx/SizableStack.native.js.map +1 -1
- package/dist/jsx/Stacks.mjs +20 -20
- package/dist/jsx/Stacks.mjs.map +1 -1
- package/dist/jsx/Stacks.native.js +35 -33
- package/dist/jsx/Stacks.native.js.map +1 -1
- package/dist/jsx/ThemeableStack.mjs +28 -28
- package/dist/jsx/ThemeableStack.mjs.map +1 -1
- package/dist/jsx/ThemeableStack.native.js +44 -42
- package/dist/jsx/ThemeableStack.native.js.map +1 -1
- package/dist/jsx/getElevation.mjs +38 -29
- package/dist/jsx/getElevation.mjs.map +1 -1
- package/dist/jsx/getElevation.native.js +53 -45
- package/dist/jsx/getElevation.native.js.map +1 -1
- package/dist/jsx/index.js +5 -5
- package/dist/jsx/index.js.map +1 -6
- package/dist/jsx/index.native.js +7 -5
- package/dist/jsx/variants.mjs +34 -28
- package/dist/jsx/variants.mjs.map +1 -1
- package/dist/jsx/variants.native.js +49 -45
- package/dist/jsx/variants.native.js.map +1 -1
- package/package.json +8 -11
- package/dist/cjs/NestingContext.js +0 -30
- package/dist/cjs/NestingContext.js.map +0 -6
- package/dist/cjs/SizableStack.js +0 -40
- package/dist/cjs/SizableStack.js.map +0 -6
- package/dist/cjs/Stacks.js +0 -56
- package/dist/cjs/Stacks.js.map +0 -6
- package/dist/cjs/ThemeableStack.js +0 -52
- package/dist/cjs/ThemeableStack.js.map +0 -6
- package/dist/cjs/getElevation.js +0 -45
- package/dist/cjs/getElevation.js.map +0 -6
- package/dist/cjs/index.js +0 -19
- package/dist/cjs/index.js.map +0 -6
- package/dist/cjs/variants.js +0 -48
- package/dist/cjs/variants.js.map +0 -6
- package/dist/esm/NestingContext.js +0 -6
- package/dist/esm/NestingContext.js.map +0 -6
- package/dist/esm/SizableStack.js +0 -27
- package/dist/esm/SizableStack.js.map +0 -6
- package/dist/esm/Stacks.js +0 -41
- package/dist/esm/Stacks.js.map +0 -6
- package/dist/esm/ThemeableStack.js +0 -38
- package/dist/esm/ThemeableStack.js.map +0 -6
- package/dist/esm/getElevation.js +0 -29
- package/dist/esm/getElevation.js.map +0 -6
- package/dist/esm/variants.js +0 -32
- package/dist/esm/variants.js.map +0 -6
- package/dist/jsx/NestingContext.js +0 -6
- package/dist/jsx/NestingContext.js.map +0 -6
- package/dist/jsx/SizableStack.js +0 -27
- package/dist/jsx/SizableStack.js.map +0 -6
- package/dist/jsx/Stacks.js +0 -41
- package/dist/jsx/Stacks.js.map +0 -6
- package/dist/jsx/ThemeableStack.js +0 -38
- package/dist/jsx/ThemeableStack.js.map +0 -6
- package/dist/jsx/getElevation.js +0 -29
- package/dist/jsx/getElevation.js.map +0 -6
- package/dist/jsx/variants.js +0 -32
- package/dist/jsx/variants.js.map +0 -6
|
@@ -2,37 +2,39 @@ var __create = Object.create;
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf
|
|
6
|
-
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
value: mod,
|
|
29
|
+
enumerable: true
|
|
30
|
+
}) : target, mod));
|
|
31
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
+
value: true
|
|
33
|
+
}), mod);
|
|
32
34
|
var NestingContext_exports = {};
|
|
33
35
|
__export(NestingContext_exports, {
|
|
34
36
|
ButtonNestingContext: () => ButtonNestingContext
|
|
35
37
|
});
|
|
36
38
|
module.exports = __toCommonJS(NestingContext_exports);
|
|
37
39
|
var import_react = __toESM(require("react"), 1);
|
|
38
|
-
const ButtonNestingContext = import_react.default.createContext(
|
|
40
|
+
const ButtonNestingContext = import_react.default.createContext(false);
|
|
@@ -4,38 +4,40 @@ var __create = Object.create;
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf
|
|
8
|
-
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __export = (target, all) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: true
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
18
|
get: () => from[key],
|
|
18
19
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
20
|
});
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
22
24
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
30
|
+
value: mod,
|
|
31
|
+
enumerable: true
|
|
32
|
+
}) : target, mod));
|
|
33
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
34
|
+
value: true
|
|
35
|
+
}), mod);
|
|
34
36
|
var NestingContext_exports = {};
|
|
35
37
|
__export(NestingContext_exports, {
|
|
36
38
|
ButtonNestingContext: () => ButtonNestingContext
|
|
37
39
|
});
|
|
38
40
|
module.exports = __toCommonJS(NestingContext_exports);
|
|
39
|
-
var import_react = __toESM(require("react"), 1)
|
|
40
|
-
|
|
41
|
+
var import_react = __toESM(require("react"), 1);
|
|
42
|
+
var ButtonNestingContext = /* @__PURE__ */import_react.default.createContext(false);
|
|
41
43
|
//# sourceMappingURL=NestingContext.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","NestingContext_exports","__export","ButtonNestingContext","module","exports","import_react","__toESM","require"
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","NestingContext_exports","__export","ButtonNestingContext","module","exports","import_react","__toESM","require"],"sources":["../../src/NestingContext.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,sBAAA;AAAAC,QAAA,CAAAD,sBAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAkB,CAAAK,sBAAA;AAEX,IAAAK,YAAM,GAAAC,OAAA,CAAAC,OAAuB","ignoreList":[]}
|
|
@@ -3,37 +3,39 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var SizableStack_exports = {};
|
|
22
24
|
__export(SizableStack_exports, {
|
|
23
25
|
SizableStack: () => SizableStack
|
|
24
26
|
});
|
|
25
27
|
module.exports = __toCommonJS(SizableStack_exports);
|
|
26
|
-
var import_core = require("@tamagui/core")
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
var import_core = require("@tamagui/core");
|
|
29
|
+
var import_get_button_sized = require("@tamagui/get-button-sized");
|
|
30
|
+
var import_ThemeableStack = require("./ThemeableStack.cjs");
|
|
31
|
+
var import_variants = require("./variants.cjs");
|
|
30
32
|
const SizableStack = (0, import_core.styled)(import_ThemeableStack.ThemeableStack, {
|
|
31
33
|
name: "SizableStack",
|
|
32
34
|
variants: {
|
|
33
35
|
unstyled: {
|
|
34
36
|
true: {
|
|
35
|
-
elevate:
|
|
36
|
-
bordered:
|
|
37
|
+
elevate: false,
|
|
38
|
+
bordered: false
|
|
37
39
|
}
|
|
38
40
|
},
|
|
39
41
|
circular: import_variants.circular,
|
|
@@ -42,7 +44,9 @@ const SizableStack = (0, import_core.styled)(import_ThemeableStack.ThemeableStac
|
|
|
42
44
|
true: import_variants.bordered
|
|
43
45
|
},
|
|
44
46
|
size: {
|
|
45
|
-
"...size": (val, extras) =>
|
|
47
|
+
"...size": (val, extras) => {
|
|
48
|
+
return (0, import_get_button_sized.getButtonSized)(val, extras);
|
|
49
|
+
}
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
});
|
|
@@ -5,49 +5,51 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var SizableStack_exports = {};
|
|
24
26
|
__export(SizableStack_exports, {
|
|
25
27
|
SizableStack: () => SizableStack
|
|
26
28
|
});
|
|
27
29
|
module.exports = __toCommonJS(SizableStack_exports);
|
|
28
|
-
var import_core = require("@tamagui/core")
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
30
|
+
var import_core = require("@tamagui/core");
|
|
31
|
+
var import_get_button_sized = require("@tamagui/get-button-sized");
|
|
32
|
+
var import_ThemeableStack = require("./ThemeableStack.native.js");
|
|
33
|
+
var import_variants = require("./variants.native.js");
|
|
34
|
+
var SizableStack = (0, import_core.styled)(import_ThemeableStack.ThemeableStack, {
|
|
35
|
+
name: "SizableStack",
|
|
36
|
+
variants: {
|
|
37
|
+
unstyled: {
|
|
38
|
+
true: {
|
|
39
|
+
elevate: false,
|
|
40
|
+
bordered: false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
circular: import_variants.circular,
|
|
44
|
+
elevate: import_variants.elevate,
|
|
45
|
+
bordered: {
|
|
46
|
+
true: import_variants.bordered
|
|
47
|
+
},
|
|
48
|
+
size: {
|
|
49
|
+
"...size": function (val, extras) {
|
|
50
|
+
return (0, import_get_button_sized.getButtonSized)(val, extras);
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
|
-
}
|
|
53
|
+
}
|
|
54
|
+
});
|
|
53
55
|
//# sourceMappingURL=SizableStack.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","SizableStack_exports","__export","SizableStack","module","exports","import_core","require","import_get_button_sized","import_ThemeableStack","import_variants","styled","ThemeableStack","name","variants","unstyled","true","elevate","bordered","circular","size","...size","val","extras","getButtonSized"],"sources":["../../src/SizableStack.tsx"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","SizableStack_exports","__export","SizableStack","module","exports","import_core","require","import_get_button_sized","import_ThemeableStack","import_variants","styled","ThemeableStack","name","variants","unstyled","true","elevate","bordered","circular","size","...size","val","extras","getButtonSized"],"sources":["../../src/SizableStack.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAuB,CAAAK,oBAAA;AACvB,IAAAK,WAAA,GAAAC,OAAA,gBAA+B;AAE/B,IAAAC,uBAAA,GAA+BD,OAAA;AAC/B,IAAAE,qBAA4C,GAAAF,OAAA;AAErC,IAAAG,eAAM,GAAAH,OAAe;AAAuB,IACjDJ,YAAM,OAAAG,WAAA,CAAAK,MAAA,EAAAF,qBAAA,CAAAG,cAAA;EAENC,IAAA,gBAAU;EAAAC,QACR;IAAUC,QACF;MAAAC,IACJ;QACAC,OAAA,OAAU;QACZC,QAAA;MACF;IAEA;IACAC,QAAA,EAAAT,eAAA,CAAAS,QAAA;IAEAF,OAAA,EAAAP,eAAU,CAAAO,OAAA;IAAAC,QACF;MACRF,IAAA,EAAAN,eAAA,CAAAQ;IAEA;IAAME,IACJ;MACE,oBAAAC,CAAOC,GAAA,EAAAC,MAAA;QACT,WAAAf,uBAAA,CAAAgB,cAAA,EAAAF,GAAA,EAAAC,MAAA;MACF;IACF;EACD","ignoreList":[]}
|
package/dist/cjs/Stacks.cjs
CHANGED
|
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var Stacks_exports = {};
|
|
22
24
|
__export(Stacks_exports, {
|
|
@@ -26,35 +28,35 @@ __export(Stacks_exports, {
|
|
|
26
28
|
fullscreenStyle: () => fullscreenStyle
|
|
27
29
|
});
|
|
28
30
|
module.exports = __toCommonJS(Stacks_exports);
|
|
29
|
-
var import_core = require("@tamagui/core")
|
|
30
|
-
|
|
31
|
+
var import_core = require("@tamagui/core");
|
|
32
|
+
var import_getElevation = require("./getElevation.cjs");
|
|
31
33
|
const fullscreenStyle = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
elevation: {
|
|
40
|
-
"...size": import_getElevation.getElevation,
|
|
41
|
-
":number": import_getElevation.getElevation
|
|
42
|
-
}
|
|
34
|
+
position: "absolute",
|
|
35
|
+
inset: 0
|
|
36
|
+
};
|
|
37
|
+
const variants = {
|
|
38
|
+
fullscreen: {
|
|
39
|
+
true: fullscreenStyle
|
|
43
40
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
41
|
+
elevation: {
|
|
42
|
+
"...size": import_getElevation.getElevation,
|
|
43
|
+
":number": import_getElevation.getElevation
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const YStack = (0, import_core.styled)(import_core.View, {
|
|
47
|
+
flexDirection: "column",
|
|
48
|
+
variants
|
|
49
|
+
});
|
|
50
|
+
YStack["displayName"] = "YStack";
|
|
49
51
|
const XStack = (0, import_core.styled)(import_core.View, {
|
|
50
52
|
flexDirection: "row",
|
|
51
53
|
variants
|
|
52
54
|
});
|
|
53
|
-
XStack
|
|
55
|
+
XStack["displayName"] = "XStack";
|
|
54
56
|
const ZStack = (0, import_core.styled)(YStack, {
|
|
55
57
|
position: "relative"
|
|
56
58
|
}, {
|
|
57
|
-
neverFlatten:
|
|
58
|
-
isZStack:
|
|
59
|
+
neverFlatten: true,
|
|
60
|
+
isZStack: true
|
|
59
61
|
});
|
|
60
|
-
ZStack
|
|
62
|
+
ZStack["displayName"] = "ZStack";
|
|
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var Stacks_exports = {};
|
|
24
26
|
__export(Stacks_exports, {
|
|
@@ -28,36 +30,36 @@ __export(Stacks_exports, {
|
|
|
28
30
|
fullscreenStyle: () => fullscreenStyle
|
|
29
31
|
});
|
|
30
32
|
module.exports = __toCommonJS(Stacks_exports);
|
|
31
|
-
var import_core = require("@tamagui/core")
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
elevation: {
|
|
42
|
-
"...size": import_getElevation.getElevation,
|
|
43
|
-
":number": import_getElevation.getElevation
|
|
44
|
-
}
|
|
33
|
+
var import_core = require("@tamagui/core");
|
|
34
|
+
var import_getElevation = require("./getElevation.native.js");
|
|
35
|
+
var fullscreenStyle = {
|
|
36
|
+
position: "absolute",
|
|
37
|
+
inset: 0
|
|
38
|
+
};
|
|
39
|
+
var variants = {
|
|
40
|
+
fullscreen: {
|
|
41
|
+
true: fullscreenStyle
|
|
45
42
|
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
43
|
+
elevation: {
|
|
44
|
+
"...size": import_getElevation.getElevation,
|
|
45
|
+
":number": import_getElevation.getElevation
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
var YStack = (0, import_core.styled)(import_core.View, {
|
|
49
|
+
flexDirection: "column",
|
|
50
|
+
variants
|
|
51
|
+
});
|
|
52
|
+
YStack["displayName"] = "YStack";
|
|
51
53
|
var XStack = (0, import_core.styled)(import_core.View, {
|
|
52
54
|
flexDirection: "row",
|
|
53
55
|
variants
|
|
54
56
|
});
|
|
55
|
-
XStack
|
|
57
|
+
XStack["displayName"] = "XStack";
|
|
56
58
|
var ZStack = (0, import_core.styled)(YStack, {
|
|
57
59
|
position: "relative"
|
|
58
60
|
}, {
|
|
59
|
-
neverFlatten:
|
|
60
|
-
isZStack:
|
|
61
|
+
neverFlatten: true,
|
|
62
|
+
isZStack: true
|
|
61
63
|
});
|
|
62
|
-
ZStack
|
|
64
|
+
ZStack["displayName"] = "ZStack";
|
|
63
65
|
//# sourceMappingURL=Stacks.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Stacks_exports","__export","XStack","YStack","ZStack","fullscreenStyle","module","exports","import_core","require","import_getElevation","position","inset","variants","fullscreen","true","elevation","getElevation","styled","View","flexDirection","
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Stacks_exports","__export","XStack","YStack","ZStack","fullscreenStyle","module","exports","import_core","require","import_getElevation","position","inset","variants","fullscreen","true","elevation","getElevation","styled","View","flexDirection","neverFlatten","isZStack"],"sources":["../../src/Stacks.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,cAAA;AAAAC,QAAA,CAAAD,cAAA;EAAAE,MAAA,EAAAA,CAAA,KAAAA,MAAA;EAAAC,MAAA,EAAAA,CAAA,KAAAA,MAAA;EAAAC,MAAA,EAAAA,CAAA,KAAAA,MAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAZ,YAA6B,CAAAK,cAAA;AAE7B,IAAAQ,WAAA,GAAAC,OAAA,CAA6B;AAiBtB,IAAAC,mBAAM,GAAkBD,OAAA;AAAA,IAC7BJ,eAAU;EACVM,QAAO;EACTC,KAAA;AAEA;AAAiB,IACfC,QAAA,GAAY;EAAAC,UACJ;IACRC,IAAA,EAAAV;EAEA;EAAWW,SACT;IACA,WAAWN,mBAAA,CAAAO,YAAA;IACb,WAAAP,mBAAA,CAAAO;EACF;AAMO;AAA4B,IACjCd,MAAA,OAAeK,WAAA,CAAAU,MAAA,EAAAV,WAAA,CAAAW,IAAA;EACfC,aAAA;EACDP;AAED;AAMOV,MAAM,cAAS;AAAa,IACjCD,MAAA,OAAeM,WAAA,CAAAU,MAAA,EAAAV,WAAA,CAAAW,IAAA;EACfC,aAAA;EACDP;AAED;AAMOX,MAAM,cAAS;AAAA,IACpBE,MAAA,OAAAI,WAAA,CAAAU,MAAA,EAAAf,MAAA;EACAQ,QAAA;AAAA;EAEAU,YAAA;EACAC,QAAA;AAAA;AACgBlB,MACd,cAAU","ignoreList":[]}
|
|
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var ThemeableStack_exports = {};
|
|
22
24
|
__export(ThemeableStack_exports, {
|
|
@@ -24,38 +26,38 @@ __export(ThemeableStack_exports, {
|
|
|
24
26
|
themeableVariants: () => themeableVariants
|
|
25
27
|
});
|
|
26
28
|
module.exports = __toCommonJS(ThemeableStack_exports);
|
|
27
|
-
var import_core = require("@tamagui/core")
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
var import_core = require("@tamagui/core");
|
|
30
|
+
var import_Stacks = require("./Stacks.cjs");
|
|
31
|
+
var import_variants = require("./variants.cjs");
|
|
30
32
|
const chromelessStyle = {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
backgroundColor: "transparent",
|
|
34
|
+
borderColor: "transparent",
|
|
35
|
+
shadowColor: "transparent",
|
|
36
|
+
hoverStyle: {
|
|
37
|
+
borderColor: "transparent"
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const themeableVariants = {
|
|
41
|
+
circular: import_variants.circular,
|
|
42
|
+
elevate: import_variants.elevate,
|
|
43
|
+
bordered: {
|
|
44
|
+
true: import_variants.bordered
|
|
37
45
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
bordered: {
|
|
42
|
-
true: import_variants.bordered
|
|
43
|
-
},
|
|
44
|
-
transparent: {
|
|
45
|
-
true: {
|
|
46
|
-
backgroundColor: "transparent"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
chromeless: {
|
|
50
|
-
true: chromelessStyle,
|
|
51
|
-
all: {
|
|
52
|
-
...chromelessStyle,
|
|
53
|
-
hoverStyle: chromelessStyle,
|
|
54
|
-
pressStyle: chromelessStyle,
|
|
55
|
-
focusStyle: chromelessStyle
|
|
56
|
-
}
|
|
46
|
+
transparent: {
|
|
47
|
+
true: {
|
|
48
|
+
backgroundColor: "transparent"
|
|
57
49
|
}
|
|
58
50
|
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
51
|
+
chromeless: {
|
|
52
|
+
true: chromelessStyle,
|
|
53
|
+
all: {
|
|
54
|
+
...chromelessStyle,
|
|
55
|
+
hoverStyle: chromelessStyle,
|
|
56
|
+
pressStyle: chromelessStyle,
|
|
57
|
+
focusStyle: chromelessStyle
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const ThemeableStack = (0, import_core.styled)(import_Stacks.YStack, {
|
|
62
|
+
variants: themeableVariants
|
|
63
|
+
});
|