@tamagui/stacks 1.135.4 → 1.135.5

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 (33) hide show
  1. package/dist/cjs/NestingContext.cjs +1 -1
  2. package/dist/cjs/NestingContext.js +1 -1
  3. package/dist/cjs/NestingContext.native.js +25 -18
  4. package/dist/cjs/NestingContext.native.js.map +1 -6
  5. package/dist/cjs/SizableStack.native.js +44 -37
  6. package/dist/cjs/SizableStack.native.js.map +1 -6
  7. package/dist/cjs/Stacks.native.js +51 -41
  8. package/dist/cjs/Stacks.native.js.map +1 -6
  9. package/dist/cjs/ThemeableStack.native.js +56 -49
  10. package/dist/cjs/ThemeableStack.native.js.map +1 -6
  11. package/dist/cjs/getElevation.native.js +54 -45
  12. package/dist/cjs/getElevation.native.js.map +1 -6
  13. package/dist/cjs/index.native.js +16 -18
  14. package/dist/cjs/index.native.js.map +1 -6
  15. package/dist/cjs/variants.native.js +109 -94
  16. package/dist/cjs/variants.native.js.map +1 -6
  17. package/dist/esm/Stacks.native.js +6 -1
  18. package/dist/esm/Stacks.native.js.map +1 -1
  19. package/dist/jsx/NestingContext.native.js +41 -6
  20. package/dist/jsx/NestingContext.native.js.map +1 -6
  21. package/dist/jsx/SizableStack.native.js +55 -31
  22. package/dist/jsx/SizableStack.native.js.map +1 -6
  23. package/dist/jsx/Stacks.native.js +66 -34
  24. package/dist/jsx/Stacks.native.js.map +1 -6
  25. package/dist/jsx/ThemeableStack.native.js +68 -42
  26. package/dist/jsx/ThemeableStack.native.js.map +1 -6
  27. package/dist/jsx/getElevation.native.js +66 -36
  28. package/dist/jsx/getElevation.native.js.map +1 -6
  29. package/dist/jsx/index.native.js +24 -5
  30. package/dist/jsx/index.native.js.map +1 -6
  31. package/dist/jsx/variants.native.js +127 -85
  32. package/dist/jsx/variants.native.js.map +1 -6
  33. package/package.json +5 -4
@@ -34,5 +34,5 @@ __export(NestingContext_exports, {
34
34
  ButtonNestingContext: () => ButtonNestingContext
35
35
  });
36
36
  module.exports = __toCommonJS(NestingContext_exports);
37
- var import_react = __toESM(require("react"));
37
+ var import_react = __toESM(require("react"), 1);
38
38
  const ButtonNestingContext = import_react.default.createContext(!1);
@@ -25,6 +25,6 @@ __export(NestingContext_exports, {
25
25
  ButtonNestingContext: () => ButtonNestingContext
26
26
  });
27
27
  module.exports = __toCommonJS(NestingContext_exports);
28
- var import_react = __toESM(require("react"));
28
+ var import_react = __toESM(require("react"), 1);
29
29
  const ButtonNestingContext = import_react.default.createContext(!1);
30
30
  //# sourceMappingURL=NestingContext.js.map
@@ -1,34 +1,41 @@
1
1
  "use strict";
2
+
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
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, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ return to;
21
+ };
16
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
23
  // If the importer is in node compatibility mode or this is not an ESM
18
24
  // file that has been converted to a CommonJS file using a Babel-
19
25
  // compatible transform (i.e. "__esModule" has not been set), then set
20
26
  // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
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);
24
34
  var NestingContext_exports = {};
25
35
  __export(NestingContext_exports, {
26
36
  ButtonNestingContext: () => ButtonNestingContext
27
37
  });
28
38
  module.exports = __toCommonJS(NestingContext_exports);
29
- var import_react = __toESM(require("react")), ButtonNestingContext = /* @__PURE__ */ import_react.default.createContext(!1);
30
- // Annotate the CommonJS export names for ESM import in node:
31
- 0 && (module.exports = {
32
- ButtonNestingContext
33
- });
34
- //# sourceMappingURL=NestingContext.js.map
39
+ var import_react = __toESM(require("react"), 1),
40
+ ButtonNestingContext = /* @__PURE__ */import_react.default.createContext(!1);
41
+ //# sourceMappingURL=NestingContext.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/NestingContext.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,2BACP,uBAAqC,6BAAAA,QAAM,cAAc,EAAK;",
5
- "names": ["React"]
6
- }
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,50 +1,57 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
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, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
16
23
  var SizableStack_exports = {};
17
24
  __export(SizableStack_exports, {
18
25
  SizableStack: () => SizableStack
19
26
  });
20
27
  module.exports = __toCommonJS(SizableStack_exports);
21
- var import_core = require("@tamagui/core"), import_get_button_sized = require("@tamagui/get-button-sized"), import_Stacks = require("./Stacks"), import_variants = require("./variants"), SizableStack = (0, import_core.styled)(import_Stacks.XStack, {
22
- name: "SizableStack",
23
- variants: {
24
- unstyled: {
25
- true: {
26
- hoverTheme: !1,
27
- pressTheme: !1,
28
- focusTheme: !1,
29
- elevate: !1,
30
- bordered: !1
31
- }
32
- },
33
- hoverTheme: import_variants.hoverTheme,
34
- pressTheme: import_variants.pressTheme,
35
- focusTheme: import_variants.focusTheme,
36
- circular: import_variants.circular,
37
- elevate: import_variants.elevate,
38
- bordered: import_variants.bordered,
39
- size: {
40
- "...size": function(val, extras) {
41
- return (0, import_get_button_sized.getButtonSized)(val, extras);
28
+ var import_core = require("@tamagui/core"),
29
+ import_get_button_sized = require("@tamagui/get-button-sized"),
30
+ import_Stacks = require("./Stacks.native.js"),
31
+ import_variants = require("./variants.native.js"),
32
+ SizableStack = (0, import_core.styled)(import_Stacks.XStack, {
33
+ name: "SizableStack",
34
+ variants: {
35
+ unstyled: {
36
+ true: {
37
+ hoverTheme: !1,
38
+ pressTheme: !1,
39
+ focusTheme: !1,
40
+ elevate: !1,
41
+ bordered: !1
42
+ }
43
+ },
44
+ hoverTheme: import_variants.hoverTheme,
45
+ pressTheme: import_variants.pressTheme,
46
+ focusTheme: import_variants.focusTheme,
47
+ circular: import_variants.circular,
48
+ elevate: import_variants.elevate,
49
+ bordered: import_variants.bordered,
50
+ size: {
51
+ "...size": function (val, extras) {
52
+ return (0, import_get_button_sized.getButtonSized)(val, extras);
53
+ }
42
54
  }
43
55
  }
44
- }
45
- });
46
- // Annotate the CommonJS export names for ESM import in node:
47
- 0 && (module.exports = {
48
- SizableStack
49
- });
50
- //# sourceMappingURL=SizableStack.js.map
56
+ });
57
+ //# sourceMappingURL=SizableStack.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/SizableStack.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuB,0BACvB,0BAA+B,sCAC/B,gBAAuB,qBACvB,kBAAgF,uBACrE,mBAAe,oBAAO,sBAAQ;AAAA,EACrC,MAAM;AAAA,EACN,UAAU;AAAA,IACN,UAAU;AAAA,MACN,MAAM;AAAA,QACF,YAAY;AAAA,QACZ,YAAY;AAAA,QACZ,YAAY;AAAA,QACZ,SAAS;AAAA,QACT,UAAU;AAAA,MACd;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,MAAM;AAAA,MACF,WAAW,SAAS,KAAK,QAAQ;AAC7B,mBAAO,wCAAe,KAAK,MAAM;AAAA,MACrC;AAAA,IACJ;AAAA,EACJ;AACJ,CAAC;",
5
- "names": []
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","SizableStack_exports","__export","SizableStack","module","exports","import_core","require","import_get_button_sized","import_Stacks","import_variants","styled","XStack","name","variants","unstyled","true","hoverTheme","pressTheme","focusTheme","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;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAAuB,CAAAK,oBACvB;AAYO,IAAAK,WAAM,GAAAC,OAAe;EAAAC,uBAAe,GAAAD,OAAA;EAAAE,aAAA,GAAAF,OAAA;EAAAG,eAAA,GAAAH,OAAA;EAAAJ,YAAA,OAAAG,WAAA,CAAAK,MAAA,EAAAF,aAAA,CAAAG,MAAA;IACzCC,IAAA,EAAM;IAENC,QAAA,EAAU;MACRC,QAAA,EAAU;QACRC,IAAA,EAAM;UACJC,UAAA,EAAY;UACZC,UAAA,EAAY;UACZC,UAAA,EAAY;UACZC,OAAA,EAAS;UACTC,QAAA,EAAU;QACZ;MACF;MAEAJ,UAAA,EAAAP,eAAA,CAAAO,UAAA;MACAC,UAAA,EAAAR,eAAA,CAAAQ,UAAA;MACAC,UAAA,EAAAT,eAAA,CAAAS,UAAA;MACAG,QAAA,EAAAZ,eAAA,CAAAY,QAAA;MACAF,OAAA,EAAAV,eAAA,CAAAU,OAAA;MACAC,QAAA,EAAAX,eAAA,CAAAW,QAAA;MAEAE,IAAA,EAAM;QACJ,WAAW,SAAAC,CAAMC,GAAA,EAAAC,MAAA,EACR;UAEX,WAAAlB,uBAAA,CAAAmB,cAAA,EAAAF,GAAA,EAAAC,MAAA;QACF;MACD","ignoreList":[]}
@@ -1,18 +1,25 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
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, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
16
23
  var Stacks_exports = {};
17
24
  __export(Stacks_exports, {
18
25
  XStack: () => XStack,
@@ -21,32 +28,42 @@ __export(Stacks_exports, {
21
28
  fullscreenStyle: () => fullscreenStyle
22
29
  });
23
30
  module.exports = __toCommonJS(Stacks_exports);
24
- var import_core = require("@tamagui/core"), import_getElevation = require("./getElevation"), fullscreenStyle = {
25
- position: "absolute",
26
- top: 0,
27
- left: 0,
28
- right: 0,
29
- bottom: 0
30
- }, getInset = function(val) {
31
- return val && typeof val == "object" ? val : {
32
- top: val,
33
- left: val,
34
- bottom: val,
35
- right: val
36
- };
37
- }, variants = {
38
- fullscreen: {
39
- true: fullscreenStyle
31
+ var import_core = require("@tamagui/core"),
32
+ import_getElevation = require("./getElevation.native.js");
33
+ function _type_of(obj) {
34
+ "@swc/helpers - typeof";
35
+
36
+ return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
37
+ }
38
+ var fullscreenStyle = {
39
+ position: "absolute",
40
+ top: 0,
41
+ left: 0,
42
+ right: 0,
43
+ bottom: 0
40
44
  },
41
- elevation: {
42
- "...size": import_getElevation.getElevation,
43
- ":number": import_getElevation.getElevation
45
+ getInset = function (val) {
46
+ return val && (typeof val > "u" ? "undefined" : _type_of(val)) === "object" ? val : {
47
+ top: val,
48
+ left: val,
49
+ bottom: val,
50
+ right: val
51
+ };
44
52
  },
45
- inset: getInset
46
- }, YStack = (0, import_core.styled)(import_core.View, {
47
- flexDirection: "column",
48
- variants
49
- });
53
+ variants = {
54
+ fullscreen: {
55
+ true: fullscreenStyle
56
+ },
57
+ elevation: {
58
+ "...size": import_getElevation.getElevation,
59
+ ":number": import_getElevation.getElevation
60
+ },
61
+ inset: getInset
62
+ },
63
+ YStack = (0, import_core.styled)(import_core.View, {
64
+ flexDirection: "column",
65
+ variants
66
+ });
50
67
  YStack.displayName = "YStack";
51
68
  var XStack = (0, import_core.styled)(import_core.View, {
52
69
  flexDirection: "row",
@@ -60,11 +77,4 @@ var ZStack = (0, import_core.styled)(YStack, {
60
77
  isZStack: !0
61
78
  });
62
79
  ZStack.displayName = "ZStack";
63
- // Annotate the CommonJS export names for ESM import in node:
64
- 0 && (module.exports = {
65
- XStack,
66
- YStack,
67
- ZStack,
68
- fullscreenStyle
69
- });
70
- //# sourceMappingURL=Stacks.js.map
80
+ //# sourceMappingURL=Stacks.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Stacks.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA6B,0BAC7B,sBAA6B,2BAClB,kBAAkB;AAAA,EACzB,UAAU;AAAA,EACV,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AACZ,GACI,WAAW,SAAS,KAAK;AACzB,SAAO,OAAO,OAAO,OAAQ,WAAW,MAAM;AAAA,IAC1C,KAAK;AAAA,IACL,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,OAAO;AAAA,EACX;AACJ,GACI,WAAW;AAAA,EACX,YAAY;AAAA,IACR,MAAM;AAAA,EACV;AAAA,EACA,WAAW;AAAA,IACP,WAAW;AAAA,IACX,WAAW;AAAA,EACf;AAAA,EACA,OAAO;AACX,GAIe,aAAS,oBAAO,kBAAM;AAAA,EACjC,eAAe;AAAA,EACf;AACJ,CAAC;AACD,OAAO,cAAiB;AAIb,IAAI,aAAS,oBAAO,kBAAM;AAAA,EACjC,eAAe;AAAA,EACf;AACJ,CAAC;AACD,OAAO,cAAiB;AAIb,IAAI,aAAS,oBAAO,QAAQ;AAAA,EACnC,UAAU;AACd,GAAG;AAAA,EACC,cAAc;AAAA,EACd,UAAU;AACd,CAAC;AACD,OAAO,cAAiB;",
5
- "names": []
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Stacks_exports","__export","XStack","YStack","ZStack","fullscreenStyle","module","exports","import_core","require","import_getElevation","_type_of","obj","Symbol","constructor","position","top","left","right","bottom","getInset","val","variants","fullscreen","true","elevation","getElevation","inset","styled","View","flexDirection","displayName","neverFlatten"],"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;AAOO,IAAAQ,WAAM,GAAAC,OAAkB;EAAAC,mBAAA,GAAAD,OAAA;AAAA,SAC7BE,QAAUA,CAAAC,GAAA;EACV,uBAAK;;EACL,OAAMA,GAAA,WAAAC,MAAA,UAAAD,GAAA,CAAAE,WAAA,KAAAD,MAAA,qBAAAD,GAAA;AAAA;AACC,IACPP,eAAQ;IACVU,QASM,YAAY;IAIVC,GAAA,EAAK;IACLC,IAAA,EAAM;IACNC,KAAA,GAAQ;IACRC,MAAA,EAAO;EACT;EAEAC,QAAA,GAAW,SAAAA,CAAAC,GAAA;IACf,OAAAA,GAAA,IAAY,QAAAA,GAAA,uBAAAV,QAAA,CAAAU,GAAA,kBAAAA,GAAA;MACVL,GAAA,EAAAK,GAAM;MACRJ,IAAA,EAAAI,GAAA;MAEAF,MAAA,EAAAE,GAAW;MACTH,KAAA,EAAAG;IAAW;EACA;EACbC,QAAA;IAEAC,UAAO;MAOIC,IAAA,EAAAnB;IACX;IACAoB,SAAA;MACD,WAAAf,mBAAA,CAAAgB,YAAA;MAED,SAAO,EAAAhB,mBAAiB,CAAAgB;IAMjB;IACLC,KAAA,EAAAP;EAAe;EACfjB,MAAA,OAAAK,WAAA,CAAAoB,MAAA,EAAApB,WAAA,CAAAqB,IAAA;IACDC,aAAA;IAEDR;EAMO;AAAenB,MACpB,CAAA4B,WAAA;AAAA,IACA7B,MAAA,OAAAM,WAAA,CAAAoB,MAAA,EAAApB,WAAA,CAAAqB,IAAA;EAAAC,aACY;EACZR;AAAA,EACA;AAAApB,MACE,CAAA6B,WAAc;AAAA,IACd3B,MAAA,IAAU,GAAAI,WAAA,CAAAoB,MAAA,EAAAzB,MAAA;EACZY,QAAA;AACF;EAEAiB,YAAO","ignoreList":[]}
@@ -1,65 +1,72 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
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, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
16
23
  var ThemeableStack_exports = {};
17
24
  __export(ThemeableStack_exports, {
18
25
  ThemeableStack: () => ThemeableStack,
19
26
  themeableVariants: () => themeableVariants
20
27
  });
21
28
  module.exports = __toCommonJS(ThemeableStack_exports);
22
- var import_core = require("@tamagui/core"), import_Stacks = require("./Stacks"), import_variants = require("./variants"), chromelessStyle = {
23
- backgroundColor: "transparent",
24
- borderColor: "transparent",
25
- shadowColor: "transparent",
26
- hoverStyle: {
27
- borderColor: "transparent"
28
- }
29
- }, themeableVariants = {
30
- backgrounded: {
31
- true: {
32
- backgroundColor: "$background"
29
+ var import_core = require("@tamagui/core"),
30
+ import_Stacks = require("./Stacks.native.js"),
31
+ import_variants = require("./variants.native.js"),
32
+ chromelessStyle = {
33
+ backgroundColor: "transparent",
34
+ borderColor: "transparent",
35
+ shadowColor: "transparent",
36
+ hoverStyle: {
37
+ borderColor: "transparent"
33
38
  }
34
39
  },
35
- radiused: import_variants.radiused,
36
- hoverTheme: import_variants.hoverTheme,
37
- pressTheme: import_variants.pressTheme,
38
- focusTheme: import_variants.focusTheme,
39
- circular: import_variants.circular,
40
- padded: import_variants.padded,
41
- elevate: import_variants.elevate,
42
- bordered: import_variants.bordered,
43
- transparent: {
44
- true: {
45
- backgroundColor: "transparent"
40
+ themeableVariants = {
41
+ backgrounded: {
42
+ true: {
43
+ backgroundColor: "$background"
44
+ }
45
+ },
46
+ radiused: import_variants.radiused,
47
+ hoverTheme: import_variants.hoverTheme,
48
+ pressTheme: import_variants.pressTheme,
49
+ focusTheme: import_variants.focusTheme,
50
+ circular: import_variants.circular,
51
+ padded: import_variants.padded,
52
+ elevate: import_variants.elevate,
53
+ bordered: import_variants.bordered,
54
+ transparent: {
55
+ true: {
56
+ backgroundColor: "transparent"
57
+ }
58
+ },
59
+ chromeless: {
60
+ true: chromelessStyle,
61
+ all: {
62
+ ...chromelessStyle,
63
+ hoverStyle: chromelessStyle,
64
+ pressStyle: chromelessStyle,
65
+ focusStyle: chromelessStyle
66
+ }
46
67
  }
47
68
  },
48
- chromeless: {
49
- true: chromelessStyle,
50
- all: {
51
- ...chromelessStyle,
52
- hoverStyle: chromelessStyle,
53
- pressStyle: chromelessStyle,
54
- focusStyle: chromelessStyle
55
- }
56
- }
57
- }, ThemeableStack = (0, import_core.styled)(import_Stacks.YStack, {
58
- variants: themeableVariants
59
- });
60
- // Annotate the CommonJS export names for ESM import in node:
61
- 0 && (module.exports = {
62
- ThemeableStack,
63
- themeableVariants
64
- });
65
- //# sourceMappingURL=ThemeableStack.js.map
69
+ ThemeableStack = (0, import_core.styled)(import_Stacks.YStack, {
70
+ variants: themeableVariants
71
+ });
72
+ //# sourceMappingURL=ThemeableStack.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/ThemeableStack.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuB,0BACvB,gBAAuB,qBACvB,kBAAkG,uBAC9F,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,aAAa;AAAA,EACb,YAAY;AAAA,IACR,aAAa;AAAA,EACjB;AACJ,GACW,oBAAoB;AAAA,EAC3B,cAAc;AAAA,IACV,MAAM;AAAA,MACF,iBAAiB;AAAA,IACrB;AAAA,EACJ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,aAAa;AAAA,IACT,MAAM;AAAA,MACF,iBAAiB;AAAA,IACrB;AAAA,EACJ;AAAA,EACA,YAAY;AAAA,IACR,MAAM;AAAA,IACN,KAAK;AAAA,MACD,GAAG;AAAA,MACH,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,YAAY;AAAA,IAChB;AAAA,EACJ;AACJ,GACW,qBAAiB,oBAAO,sBAAQ;AAAA,EACvC,UAAU;AACd,CAAC;",
5
- "names": []
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","ThemeableStack_exports","__export","ThemeableStack","themeableVariants","module","exports","import_core","require","import_Stacks","import_variants","chromelessStyle","backgroundColor","borderColor","shadowColor","hoverStyle","backgrounded","true","radiused","hoverTheme","pressTheme","focusTheme","circular","padded","elevate","bordered","transparent","chromeless","all","pressStyle","focusStyle","styled","YStack","variants"],"sources":["../../src/ThemeableStack.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,cAAA,EAAAA,CAAA,KAAAA,cAAA;EAAAC,iBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAV,YAAuB,CAAAK,sBAEvB;AAaA,IAAAM,WAAM,GAAAC,OAAkB;EAAAC,aAAA,GAAAD,OAAA;EAAAE,eAAA,GAAAF,OAAA;EAAAG,eAAA;IACtBC,eAAA,EAAiB;IACjBC,WAAA,EAAa;IACbC,WAAA,EAAa;IAEbC,UAAA,EAAY;MACVF,WAAA,EAAa;IACf;EACF;EAEaT,iBAAA,GAAoB;IAC/BY,YAAA,EAAc;MACZC,IAAA,EAAM;QACJL,eAAA,EAAiB;MACnB;IACF;IAEAM,QAAA,EAAAR,eAAA,CAAAQ,QAAA;IACAC,UAAA,EAAAT,eAAA,CAAAS,UAAA;IACAC,UAAA,EAAAV,eAAA,CAAAU,UAAA;IACAC,UAAA,EAAAX,eAAA,CAAAW,UAAA;IACAC,QAAA,EAAAZ,eAAA,CAAAY,QAAA;IACAC,MAAA,EAAAb,eAAA,CAAAa,MAAA;IACAC,OAAA,EAAAd,eAAA,CAAAc,OAAA;IACAC,QAAA,EAAAf,eAAA,CAAAe,QAAA;IAEAC,WAAA,EAAa;MACXT,IAAA,EAAM;QACJL,eAAA,EAAiB;MACnB;IACF;IAEAe,UAAA,EAAY;MACVV,IAAA,EAAMN,eAAA;MACNiB,GAAA,EAAK;QACH,GAAGjB,eAAA;QACHI,UAAA,EAAYJ,eAAA;QACZkB,UAAA,EAAYlB,eAAA;QACZmB,UAAA,EAAYnB;MACd;IACF;EACF;EAEaR,cAAA,OAAiBI,WAAA,CAAAwB,MAAA,EAAOtB,aAAA,CAAAuB,MAAA,EAAQ;IAC3CC,QAAA,EAAU7B;EACZ,CAAC","ignoreList":[]}
@@ -1,57 +1,66 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
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, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
16
23
  var getElevation_exports = {};
17
24
  __export(getElevation_exports, {
18
25
  getElevation: () => getElevation,
19
26
  getSizedElevation: () => getSizedElevation
20
27
  });
21
28
  module.exports = __toCommonJS(getElevation_exports);
22
- var import_core = require("@tamagui/core"), getElevation = function(size, extras) {
23
- if (size) {
24
- var { tokens } = extras, token = tokens.size[size], sizeNum = (0, import_core.isVariable)(token) ? +token.val : size;
25
- return getSizedElevation(sizeNum, extras);
26
- }
27
- }, getSizedElevation = function(val, param) {
28
- var { theme, tokens } = param, num = 0;
29
- if (val === !0) {
30
- var _$val = (0, import_core.getVariableValue)(tokens.size.true);
31
- typeof _$val == "number" ? num = _$val : num = 10;
32
- } else
33
- num = +val;
34
- if (num !== 0) {
35
- var [height, shadowRadius] = [
36
- Math.round(num / 4 + 1),
37
- Math.round(num / 2 + 2)
38
- ], shadow = {
39
- shadowColor: theme.shadowColor,
40
- shadowRadius,
41
- shadowOffset: {
42
- height,
43
- width: 0
44
- },
45
- ...import_core.isAndroid ? {
46
- elevationAndroid: 2 * height
47
- } : {}
48
- };
49
- return shadow;
50
- }
51
- };
52
- // Annotate the CommonJS export names for ESM import in node:
53
- 0 && (module.exports = {
54
- getElevation,
55
- getSizedElevation
56
- });
57
- //# sourceMappingURL=getElevation.js.map
29
+ var import_core = require("@tamagui/core"),
30
+ getElevation = function (size, extras) {
31
+ if (size) {
32
+ var {
33
+ tokens
34
+ } = extras,
35
+ token = tokens.size[size],
36
+ sizeNum = (0, import_core.isVariable)(token) ? +token.val : size;
37
+ return getSizedElevation(sizeNum, extras);
38
+ }
39
+ },
40
+ getSizedElevation = function (val, param) {
41
+ var {
42
+ theme,
43
+ tokens
44
+ } = param,
45
+ num = 0;
46
+ if (val === !0) {
47
+ var _$val = (0, import_core.getVariableValue)(tokens.size.true);
48
+ typeof _$val == "number" ? num = _$val : num = 10;
49
+ } else num = +val;
50
+ if (num !== 0) {
51
+ var [height, shadowRadius] = [Math.round(num / 4 + 1), Math.round(num / 2 + 2)],
52
+ shadow = {
53
+ shadowColor: theme.shadowColor,
54
+ shadowRadius,
55
+ shadowOffset: {
56
+ height,
57
+ width: 0
58
+ },
59
+ ...(import_core.isAndroid ? {
60
+ elevationAndroid: 2 * height
61
+ } : {})
62
+ };
63
+ return shadow;
64
+ }
65
+ };
66
+ //# sourceMappingURL=getElevation.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/getElevation.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAwD,0BAC7C,eAAe,SAAS,MAAM,QAAQ;AAC7C,MAAK,MACL;AAAA,QAAI,EAAE,OAAO,IAAI,QACb,QAAQ,OAAO,KAAK,IAAI,GACxB,cAAU,wBAAW,KAAK,IAAI,CAAC,MAAM,MAAM;AAC/C,WAAO,kBAAkB,SAAS,MAAM;AAAA;AAC5C,GACW,oBAAoB,SAAS,KAAK,OAAO;AAChD,MAAI,EAAE,OAAO,OAAO,IAAI,OACpB,MAAM;AACV,MAAI,QAAQ,IAAM;AACd,QAAI,YAAQ,8BAAiB,OAAO,KAAK,IAAO;AAChD,IAAI,OAAO,SAAU,WACjB,MAAM,QAEN,MAAM;AAAA,EAEd;AACI,UAAM,CAAC;AAEX,MAAI,QAAQ,GAGZ;AAAA,QAAI,CAAC,QAAQ,YAAY,IAAI;AAAA,MACzB,KAAK,MAAM,MAAM,IAAI,CAAC;AAAA,MACtB,KAAK,MAAM,MAAM,IAAI,CAAC;AAAA,IAC1B,GACI,SAAS;AAAA,MACT,aAAa,MAAM;AAAA,MACnB;AAAA,MACA,cAAc;AAAA,QACV;AAAA,QACA,OAAO;AAAA,MACX;AAAA,MACA,GAAG,wBAAY;AAAA,QACX,kBAAkB,IAAI;AAAA,MAC1B,IAAI,CAAC;AAAA,IACT;AACA,WAAO;AAAA;AACX;",
5
- "names": []
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","getElevation_exports","__export","getElevation","getSizedElevation","module","exports","import_core","require","size","extras","tokens","token","sizeNum","isVariable","val","param","theme","num","_$val","getVariableValue","true","height","shadowRadius","Math","round","shadow","shadowColor","shadowOffset","width"],"sources":["../../src/getElevation.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,YAAA;EAAAC,iBAAA,EAAAA,CAAA,KAAAA;AAAA;AAMAC,MAAA,CAAAC,OAAA,GAAAV,YAAwD,CAAAK,oBAAA;AAEjD,IAAAM,WAAM,GAAAC,OAAuD,gBAAiB;EAAAL,YAAA,YAAAA,CAAAM,IAAA,EAAAC,MAAA;IACnF,IAAID,IAAC,EAAM;MACX,IAAM;UAAEE;QAAO,IAAID,MAAA;QACbE,KAAA,GAAQD,MAAA,CAAOF,IAAA,CAAKA,IAAI;QACxBI,OAAA,OAAWN,WAAA,CAAAO,UAAA,EAAWF,KAAK,IAAI,CAACA,KAAA,CAAMG,GAAA,GAAMN,IAAA;MAClD,OAAOL,iBAAkB,CAAAS,OAAS,EAAAH,MAAM;IAC1C;EAME;EAAAN,iBAAU,YAAAA,CAAAW,GAAA,EAAAC,KAAA;IACV,IAAI;QAAAC,KAAA;QAAQN;MAAM,IAAAK,KAAA;MAAAE,GAAA;IAChB,IAAAH,GAAA,KAAM;MACF,IAAAI,KAAO,OAAQZ,WACjB,CAAAa,gBAEA,EAAMT,MAAA,CAAAF,IAAA,CAAAY,IAAA;MAEV,OAAAF,KAAA,eAAAD,GAAA,GAAAC,KAAA,GAAAD,GAAA;IACE,OAEFA,GAAI,IAAAH,GAAQ;IACV,IAAAG,GAAA;MAEF,IAAM,CAACI,MAAA,EAAQC,YAAY,IAAI,CAW/BC,IAVe,CAAAC,KAAA,CAAAP,GAAA,WACbM,IAAA,CAAAC,KAAA,CAAaP,GAAA,GAAM,OACnB;QAAAQ,MAAA;UACAC,WAAA,EAAcV,KAAE,CAAAU,WAAe;UAC/BJ,YAAI;UAEEK,YAAA;YAEFN,MAAC;YACPO,KAAA;UAEF","ignoreList":[]}
@@ -1,26 +1,24 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from == "object" || typeof from == "function")
8
- for (let key of __getOwnPropNames(from))
9
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- return to;
11
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
12
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
8
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
+ get: () => from[key],
10
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
+ });
12
+ return to;
13
+ },
14
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
+ value: !0
17
+ }), mod);
13
18
  var index_exports = {};
14
19
  module.exports = __toCommonJS(index_exports);
15
- __reExport(index_exports, require("./Stacks"), module.exports);
16
- __reExport(index_exports, require("./SizableStack"), module.exports);
17
- __reExport(index_exports, require("./ThemeableStack"), module.exports);
18
- __reExport(index_exports, require("./NestingContext"), module.exports);
19
- // Annotate the CommonJS export names for ESM import in node:
20
- 0 && (module.exports = {
21
- ...require("./Stacks"),
22
- ...require("./SizableStack"),
23
- ...require("./ThemeableStack"),
24
- ...require("./NestingContext")
25
- });
26
- //# sourceMappingURL=index.js.map
20
+ __reExport(index_exports, require("./Stacks.native.js"), module.exports);
21
+ __reExport(index_exports, require("./SizableStack.native.js"), module.exports);
22
+ __reExport(index_exports, require("./ThemeableStack.native.js"), module.exports);
23
+ __reExport(index_exports, require("./NestingContext.native.js"), module.exports);
24
+ //# sourceMappingURL=index.native.js.map