@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.
Files changed (111) hide show
  1. package/dist/cjs/NestingContext.cjs +25 -23
  2. package/dist/cjs/NestingContext.native.js +26 -24
  3. package/dist/cjs/NestingContext.native.js.map +1 -1
  4. package/dist/cjs/SizableStack.cjs +21 -17
  5. package/dist/cjs/SizableStack.native.js +35 -33
  6. package/dist/cjs/SizableStack.native.js.map +1 -1
  7. package/dist/cjs/Stacks.cjs +34 -32
  8. package/dist/cjs/Stacks.native.js +35 -33
  9. package/dist/cjs/Stacks.native.js.map +1 -1
  10. package/dist/cjs/ThemeableStack.cjs +43 -41
  11. package/dist/cjs/ThemeableStack.native.js +44 -42
  12. package/dist/cjs/ThemeableStack.native.js.map +1 -1
  13. package/dist/cjs/getElevation.cjs +51 -40
  14. package/dist/cjs/getElevation.native.js +53 -45
  15. package/dist/cjs/getElevation.native.js.map +1 -1
  16. package/dist/cjs/index.cjs +7 -5
  17. package/dist/cjs/index.native.js +7 -5
  18. package/dist/cjs/index.native.js.map +1 -1
  19. package/dist/cjs/variants.cjs +46 -38
  20. package/dist/cjs/variants.native.js +49 -45
  21. package/dist/cjs/variants.native.js.map +1 -1
  22. package/dist/esm/NestingContext.mjs +1 -1
  23. package/dist/esm/NestingContext.mjs.map +1 -1
  24. package/dist/esm/NestingContext.native.js +1 -1
  25. package/dist/esm/SizableStack.mjs +5 -3
  26. package/dist/esm/SizableStack.mjs.map +1 -1
  27. package/dist/esm/SizableStack.native.js +2 -2
  28. package/dist/esm/SizableStack.native.js.map +1 -1
  29. package/dist/esm/Stacks.mjs +20 -20
  30. package/dist/esm/Stacks.mjs.map +1 -1
  31. package/dist/esm/Stacks.native.js +20 -20
  32. package/dist/esm/Stacks.native.js.map +1 -1
  33. package/dist/esm/ThemeableStack.mjs +28 -28
  34. package/dist/esm/ThemeableStack.mjs.map +1 -1
  35. package/dist/esm/ThemeableStack.native.js +28 -28
  36. package/dist/esm/ThemeableStack.native.js.map +1 -1
  37. package/dist/esm/getElevation.mjs +38 -29
  38. package/dist/esm/getElevation.mjs.map +1 -1
  39. package/dist/esm/getElevation.native.js +39 -33
  40. package/dist/esm/getElevation.native.js.map +1 -1
  41. package/dist/esm/index.js +5 -5
  42. package/dist/esm/index.js.map +1 -6
  43. package/dist/esm/variants.mjs +34 -28
  44. package/dist/esm/variants.mjs.map +1 -1
  45. package/dist/esm/variants.native.js +35 -33
  46. package/dist/esm/variants.native.js.map +1 -1
  47. package/dist/jsx/NestingContext.mjs +1 -1
  48. package/dist/jsx/NestingContext.mjs.map +1 -1
  49. package/dist/jsx/NestingContext.native.js +26 -24
  50. package/dist/jsx/SizableStack.mjs +5 -3
  51. package/dist/jsx/SizableStack.mjs.map +1 -1
  52. package/dist/jsx/SizableStack.native.js +35 -33
  53. package/dist/jsx/SizableStack.native.js.map +1 -1
  54. package/dist/jsx/Stacks.mjs +20 -20
  55. package/dist/jsx/Stacks.mjs.map +1 -1
  56. package/dist/jsx/Stacks.native.js +35 -33
  57. package/dist/jsx/Stacks.native.js.map +1 -1
  58. package/dist/jsx/ThemeableStack.mjs +28 -28
  59. package/dist/jsx/ThemeableStack.mjs.map +1 -1
  60. package/dist/jsx/ThemeableStack.native.js +44 -42
  61. package/dist/jsx/ThemeableStack.native.js.map +1 -1
  62. package/dist/jsx/getElevation.mjs +38 -29
  63. package/dist/jsx/getElevation.mjs.map +1 -1
  64. package/dist/jsx/getElevation.native.js +53 -45
  65. package/dist/jsx/getElevation.native.js.map +1 -1
  66. package/dist/jsx/index.js +5 -5
  67. package/dist/jsx/index.js.map +1 -6
  68. package/dist/jsx/index.native.js +7 -5
  69. package/dist/jsx/variants.mjs +34 -28
  70. package/dist/jsx/variants.mjs.map +1 -1
  71. package/dist/jsx/variants.native.js +49 -45
  72. package/dist/jsx/variants.native.js.map +1 -1
  73. package/package.json +8 -11
  74. package/dist/cjs/NestingContext.js +0 -30
  75. package/dist/cjs/NestingContext.js.map +0 -6
  76. package/dist/cjs/SizableStack.js +0 -40
  77. package/dist/cjs/SizableStack.js.map +0 -6
  78. package/dist/cjs/Stacks.js +0 -56
  79. package/dist/cjs/Stacks.js.map +0 -6
  80. package/dist/cjs/ThemeableStack.js +0 -52
  81. package/dist/cjs/ThemeableStack.js.map +0 -6
  82. package/dist/cjs/getElevation.js +0 -45
  83. package/dist/cjs/getElevation.js.map +0 -6
  84. package/dist/cjs/index.js +0 -19
  85. package/dist/cjs/index.js.map +0 -6
  86. package/dist/cjs/variants.js +0 -48
  87. package/dist/cjs/variants.js.map +0 -6
  88. package/dist/esm/NestingContext.js +0 -6
  89. package/dist/esm/NestingContext.js.map +0 -6
  90. package/dist/esm/SizableStack.js +0 -27
  91. package/dist/esm/SizableStack.js.map +0 -6
  92. package/dist/esm/Stacks.js +0 -41
  93. package/dist/esm/Stacks.js.map +0 -6
  94. package/dist/esm/ThemeableStack.js +0 -38
  95. package/dist/esm/ThemeableStack.js.map +0 -6
  96. package/dist/esm/getElevation.js +0 -29
  97. package/dist/esm/getElevation.js.map +0 -6
  98. package/dist/esm/variants.js +0 -32
  99. package/dist/esm/variants.js.map +0 -6
  100. package/dist/jsx/NestingContext.js +0 -6
  101. package/dist/jsx/NestingContext.js.map +0 -6
  102. package/dist/jsx/SizableStack.js +0 -27
  103. package/dist/jsx/SizableStack.js.map +0 -6
  104. package/dist/jsx/Stacks.js +0 -41
  105. package/dist/jsx/Stacks.js.map +0 -6
  106. package/dist/jsx/ThemeableStack.js +0 -38
  107. package/dist/jsx/ThemeableStack.js.map +0 -6
  108. package/dist/jsx/getElevation.js +0 -29
  109. package/dist/jsx/getElevation.js.map +0 -6
  110. package/dist/jsx/variants.js +0 -32
  111. 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
- __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
- value: mod,
27
- enumerable: !0
28
- }) : target, mod)),
29
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
- value: !0
31
- }), mod);
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(!1);
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
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: !0
13
- });
14
- },
15
- __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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
- return to;
21
- };
21
+ }
22
+ return to;
23
+ };
22
24
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
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: !0
30
- }) : target, mod)),
31
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: !0
33
- }), mod);
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
- ButtonNestingContext = /* @__PURE__ */import_react.default.createContext(!1);
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","default","createContext"],"sources":["../../src/NestingContext.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,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;EAAAL,oBAAyB,kBAAAG,YAAA,CAAAG,OAAA,CAAAC,aAAA","ignoreList":[]}
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
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
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
- import_get_button_sized = require("@tamagui/get-button-sized"),
28
- import_ThemeableStack = require("./ThemeableStack.cjs"),
29
- import_variants = require("./variants.cjs");
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: !1,
36
- bordered: !1
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) => (0, import_get_button_sized.getButtonSized)(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
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
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
- import_get_button_sized = require("@tamagui/get-button-sized"),
30
- import_ThemeableStack = require("./ThemeableStack.native.js"),
31
- import_variants = require("./variants.native.js"),
32
- SizableStack = (0, import_core.styled)(import_ThemeableStack.ThemeableStack, {
33
- name: "SizableStack",
34
- variants: {
35
- unstyled: {
36
- true: {
37
- elevate: !1,
38
- bordered: !1
39
- }
40
- },
41
- circular: import_variants.circular,
42
- elevate: import_variants.elevate,
43
- bordered: {
44
- true: import_variants.bordered
45
- },
46
- size: {
47
- "...size": function (val, extras) {
48
- return (0, import_get_button_sized.getButtonSized)(val, extras);
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":";;;;;;;;;;;;;;;;;;;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,oBACvB;AAKO,IAAAK,WAAM,GAAAC,OAAe;EAAAC,uBAAO,GAAAD,OAAA,4BAAgB;EAAAE,qBAAA,GAAAF,OAAA;EAAAG,eAAA,GAAAH,OAAA;EAAAJ,YAAA,OAAAG,WAAA,CAAAK,MAAA,EAAAF,qBAAA,CAAAG,cAAA;IACjDC,IAAA,EAAM;IAENC,QAAA,EAAU;MACRC,QAAA,EAAU;QACRC,IAAA,EAAM;UACJC,OAAA,EAAS;UACTC,QAAA,EAAU;QACZ;MACF;MAEAC,QAAA,EAAAT,eAAA,CAAAS,QAAA;MACAF,OAAA,EAAAP,eAAA,CAAAO,OAAA;MAEAC,QAAA,EAAU;QACRF,IAAA,EAAMN,eAAA,CAAAQ;MACR;MAEAE,IAAA,EAAM;QACJ,WAAW,SAAAC,CAAMC,GAAA,EAAAC,MAAA,EACR;UAEX,WAAAf,uBAAA,CAAAgB,cAAA,EAAAF,GAAA,EAAAC,MAAA;QACF;MACD","ignoreList":[]}
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":[]}
@@ -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
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
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
- import_getElevation = require("./getElevation.cjs");
31
+ var import_core = require("@tamagui/core");
32
+ var import_getElevation = require("./getElevation.cjs");
31
33
  const fullscreenStyle = {
32
- position: "absolute",
33
- inset: 0
34
- },
35
- variants = {
36
- fullscreen: {
37
- true: fullscreenStyle
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
- YStack = (0, import_core.styled)(import_core.View, {
45
- flexDirection: "column",
46
- variants
47
- });
48
- YStack.displayName = "YStack";
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.displayName = "XStack";
55
+ XStack["displayName"] = "XStack";
54
56
  const ZStack = (0, import_core.styled)(YStack, {
55
57
  position: "relative"
56
58
  }, {
57
- neverFlatten: !0,
58
- isZStack: !0
59
+ neverFlatten: true,
60
+ isZStack: true
59
61
  });
60
- ZStack.displayName = "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
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
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
- import_getElevation = require("./getElevation.native.js"),
33
- fullscreenStyle = {
34
- position: "absolute",
35
- inset: 0
36
- },
37
- variants = {
38
- fullscreen: {
39
- true: fullscreenStyle
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
- YStack = (0, import_core.styled)(import_core.View, {
47
- flexDirection: "column",
48
- variants
49
- });
50
- YStack.displayName = "YStack";
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.displayName = "XStack";
57
+ XStack["displayName"] = "XStack";
56
58
  var ZStack = (0, import_core.styled)(YStack, {
57
59
  position: "relative"
58
60
  }, {
59
- neverFlatten: !0,
60
- isZStack: !0
61
+ neverFlatten: true,
62
+ isZStack: true
61
63
  });
62
- ZStack.displayName = "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","displayName","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,cAE7B;AAiBO,IAAAQ,WAAM,GAAAC,OAAkB;EAAAC,mBAAA,GAAAD,OAAA;EAAAJ,eAAA;IAC7BM,QAAA,EAAU;IACVC,KAAA,EAAO;EACT;EAEMC,QAAA,GAAW;IACfC,UAAA,EAAY;MACVC,IAAA,EAAMV;IACR;IAEAW,SAAA,EAAW;MACT,WAAWN,mBAAA,CAAAO,YAAA;MACX,WAAWP,mBAAA,CAAAO;IACb;EACF;EAMad,MAAA,OAASK,WAAA,CAAAU,MAAA,EAAOV,WAAA,CAAAW,IAAA,EAAM;IACjCC,aAAA,EAAe;IACfP;EACF,CAAC;AAEDV,MAAA,CAAOkB,WAAA,GAAiB;AAMjB,IAAAnB,MAAM,OAAAM,WAAS,CAAAU,MAAA,EAAAV,WAAO,CAAAW,IAAA;EAC3BC,aAAA,EAAe;EACfP;AACF,CAAC;AAEDX,MAAA,CAAOmB,WAAA,GAAiB;AAMjB,IAAAjB,MAAM,OAAAI,WAAS,CAAAU,MAAA,EAAAf,MAAA;EACpBQ,QAAA;AAAA,GACA;EAAAW,YACY;EACZC,QAAA;AAAA,EACA;AAAAnB,MACE,CAAAiB,WAAc","ignoreList":[]}
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
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
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
- import_Stacks = require("./Stacks.cjs"),
29
- import_variants = require("./variants.cjs");
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
- backgroundColor: "transparent",
32
- borderColor: "transparent",
33
- shadowColor: "transparent",
34
- hoverStyle: {
35
- borderColor: "transparent"
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
- themeableVariants = {
39
- circular: import_variants.circular,
40
- elevate: import_variants.elevate,
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
- ThemeableStack = (0, import_core.styled)(import_Stacks.YStack, {
60
- variants: themeableVariants
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
+ });