@tamagui/shapes 2.0.0-rc.9 → 2.0.0

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 (52) hide show
  1. package/dist/cjs/Circle.cjs +14 -12
  2. package/dist/cjs/Circle.native.js +18 -16
  3. package/dist/cjs/Circle.native.js.map +1 -1
  4. package/dist/cjs/Square.cjs +16 -14
  5. package/dist/cjs/Square.native.js +27 -25
  6. package/dist/cjs/Square.native.js.map +1 -1
  7. package/dist/cjs/getShapeSize.cjs +14 -12
  8. package/dist/cjs/getShapeSize.native.js +18 -16
  9. package/dist/cjs/getShapeSize.native.js.map +1 -1
  10. package/dist/cjs/index.cjs +7 -5
  11. package/dist/cjs/index.native.js +7 -5
  12. package/dist/cjs/index.native.js.map +1 -1
  13. package/dist/esm/Square.mjs +1 -1
  14. package/dist/esm/Square.native.js +1 -1
  15. package/dist/esm/getShapeSize.mjs +2 -2
  16. package/dist/esm/getShapeSize.mjs.map +1 -1
  17. package/dist/esm/getShapeSize.native.js +6 -6
  18. package/dist/esm/getShapeSize.native.js.map +1 -1
  19. package/dist/esm/index.js +3 -3
  20. package/dist/esm/index.js.map +1 -6
  21. package/dist/jsx/Circle.native.js +18 -16
  22. package/dist/jsx/Square.mjs +1 -1
  23. package/dist/jsx/Square.native.js +27 -25
  24. package/dist/jsx/Square.native.js.map +1 -1
  25. package/dist/jsx/getShapeSize.mjs +2 -2
  26. package/dist/jsx/getShapeSize.mjs.map +1 -1
  27. package/dist/jsx/getShapeSize.native.js +18 -16
  28. package/dist/jsx/getShapeSize.native.js.map +1 -1
  29. package/dist/jsx/index.js +3 -3
  30. package/dist/jsx/index.js.map +1 -6
  31. package/dist/jsx/index.native.js +7 -5
  32. package/package.json +6 -5
  33. package/dist/cjs/Circle.js +0 -25
  34. package/dist/cjs/Circle.js.map +0 -6
  35. package/dist/cjs/Square.js +0 -38
  36. package/dist/cjs/Square.js.map +0 -6
  37. package/dist/cjs/getShapeSize.js +0 -31
  38. package/dist/cjs/getShapeSize.js.map +0 -6
  39. package/dist/cjs/index.js +0 -17
  40. package/dist/cjs/index.js.map +0 -6
  41. package/dist/esm/Circle.js +0 -10
  42. package/dist/esm/Circle.js.map +0 -6
  43. package/dist/esm/Square.js +0 -24
  44. package/dist/esm/Square.js.map +0 -6
  45. package/dist/esm/getShapeSize.js +0 -15
  46. package/dist/esm/getShapeSize.js.map +0 -6
  47. package/dist/jsx/Circle.js +0 -10
  48. package/dist/jsx/Circle.js.map +0 -6
  49. package/dist/jsx/Square.js +0 -24
  50. package/dist/jsx/Square.js.map +0 -6
  51. package/dist/jsx/getShapeSize.js +0 -15
  52. package/dist/jsx/getShapeSize.js.map +0 -6
@@ -3,28 +3,30 @@ 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 Circle_exports = {};
22
24
  __export(Circle_exports, {
23
25
  Circle: () => Circle
24
26
  });
25
27
  module.exports = __toCommonJS(Circle_exports);
26
- var import_web = require("@tamagui/web"),
27
- import_Square = require("./Square.cjs");
28
+ var import_web = require("@tamagui/web");
29
+ var import_Square = require("./Square.cjs");
28
30
  const Circle = (0, import_web.styled)(import_Square.Square, {
29
31
  name: "Circle",
30
32
  borderRadius: 1e8
@@ -5,30 +5,32 @@ 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 Circle_exports = {};
24
26
  __export(Circle_exports, {
25
27
  Circle: () => Circle
26
28
  });
27
29
  module.exports = __toCommonJS(Circle_exports);
28
- var import_web = require("@tamagui/web"),
29
- import_Square = require("./Square.native.js"),
30
- Circle = (0, import_web.styled)(import_Square.Square, {
31
- name: "Circle",
32
- borderRadius: 1e8
33
- });
30
+ var import_web = require("@tamagui/web");
31
+ var import_Square = require("./Square.native.js");
32
+ var Circle = (0, import_web.styled)(import_Square.Square, {
33
+ name: "Circle",
34
+ borderRadius: 1e8
35
+ });
34
36
  //# sourceMappingURL=Circle.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Circle_exports","__export","Circle","module","exports","import_web","require","import_Square","styled","Square","name","borderRadius"],"sources":["../../src/Circle.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;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAuBT,YAAA,CAAAK,cAEvB;AAEO,IAAAK,UAAM,GAAAC,OAAS,eAAO;EAAAC,aAAA,GAAAD,OAAQ;EAAAJ,MAAA,OAAAG,UAAA,CAAAG,MAAA,EAAAD,aAAA,CAAAE,MAAA;IACnCC,IAAA,EAAM;IACNC,YAAA,EAAc;EAChB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Circle_exports","__export","Circle","module","exports","import_web","require","import_Square","styled","Square","name","borderRadius"],"sources":["../../src/Circle.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;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAuBT,YAAA,CAAAK,cAAA;AAEvB,IAAAK,UAAA,GAAAC,OAAuB;AAEhB,IAAAC,aAAM,GAASD,OAAA,qBAAO;AAAQ,IACnCJ,MAAM,OAAAG,UAAA,CAAAG,MAAA,EAAAD,aAAA,CAAAE,MAAA;EACNC,IAAA,UAAc;EACfC,YAAA","ignoreList":[]}
@@ -3,29 +3,31 @@ 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 Square_exports = {};
22
24
  __export(Square_exports, {
23
25
  Square: () => Square
24
26
  });
25
27
  module.exports = __toCommonJS(Square_exports);
26
- var import_stacks = require("@tamagui/stacks"),
27
- import_web = require("@tamagui/web"),
28
- import_getShapeSize = require("./getShapeSize.cjs");
28
+ var import_stacks = require("@tamagui/stacks");
29
+ var import_web = require("@tamagui/web");
30
+ var import_getShapeSize = require("./getShapeSize.cjs");
29
31
  const Square = (0, import_web.styled)(import_stacks.ThemeableStack, {
30
32
  name: "Square",
31
33
  alignItems: "center",
@@ -37,5 +39,5 @@ const Square = (0, import_web.styled)(import_stacks.ThemeableStack, {
37
39
  }
38
40
  }
39
41
  }, {
40
- memo: !0
42
+ memo: true
41
43
  });
@@ -5,40 +5,42 @@ 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 Square_exports = {};
24
26
  __export(Square_exports, {
25
27
  Square: () => Square
26
28
  });
27
29
  module.exports = __toCommonJS(Square_exports);
28
- var import_stacks = require("@tamagui/stacks"),
29
- import_web = require("@tamagui/web"),
30
- import_getShapeSize = require("./getShapeSize.native.js"),
31
- Square = (0, import_web.styled)(import_stacks.ThemeableStack, {
32
- name: "Square",
33
- alignItems: "center",
34
- justifyContent: "center",
35
- variants: {
36
- size: {
37
- "...size": import_getShapeSize.getShapeSize,
38
- ":number": import_getShapeSize.getShapeSize
39
- }
30
+ var import_stacks = require("@tamagui/stacks");
31
+ var import_web = require("@tamagui/web");
32
+ var import_getShapeSize = require("./getShapeSize.native.js");
33
+ var Square = (0, import_web.styled)(import_stacks.ThemeableStack, {
34
+ name: "Square",
35
+ alignItems: "center",
36
+ justifyContent: "center",
37
+ variants: {
38
+ size: {
39
+ "...size": import_getShapeSize.getShapeSize,
40
+ ":number": import_getShapeSize.getShapeSize
40
41
  }
41
- }, {
42
- memo: !0
43
- });
42
+ }
43
+ }, {
44
+ memo: true
45
+ });
44
46
  //# sourceMappingURL=Square.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Square_exports","__export","Square","module","exports","import_stacks","require","import_web","import_getShapeSize","styled","ThemeableStack","name","alignItems","justifyContent","variants","size","getShapeSize","memo"],"sources":["../../src/Square.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;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA+B,CAAAK,cAAA;AAMxB,IAAAK,aAAM,GAASC,OAAA;EAAAC,UAAA,GAAAD,OAAA;EAAAE,mBAAA,GAAAF,OAAA;EAAAJ,MAAA,OAAAK,UAAA,CAAAE,MAAA,EAAAJ,aAAA,CAAAK,cAAA;IACpBC,IAAA;IACAC,UAAA;IAAAC,cACQ;IAAAC,QACN;MACAC,IAAA;QAEA,SAAU,EAAAP,mBAAA,CAAAQ,YAAA;QACR,SAAM,EAAAR,mBAAA,CAAAQ;MAAA;IACO;EACA;IACbC,IACF;EAAA,EACF","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Square_exports","__export","Square","module","exports","import_stacks","require","import_web","import_getShapeSize","styled","ThemeableStack","name","alignItems","justifyContent","variants","size","getShapeSize","memo"],"sources":["../../src/Square.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;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA+B,CAAAK,cAAA;AAE/B,IAAAK,aAAuB,GAAAC,OAAA;AAEvB,IAAAC,UAAA,GAAAD,OAAA,eAA6B;AAEtB,IAAAE,mBAAe,GAAAF,OAAA;AAAA,IACpBJ,MAAA,OAAAK,UAAA,CAAAE,MAAA,EAAAJ,aAAA,CAAAK,cAAA;EACAC,IAAA;EAAAC,UACQ;EAAAC,cACM;EAAAC,QACZ;IAEAC,IAAA;MACE,SAAM,EAAAP,mBAAA,CAAAQ,YAAA;MAAA,SACJ,EAAAR,mBAAW,CAAAQ;IAAA;EACA;AACb;EAEJC,IAAA;AAAA,EACA","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 getShapeSize_exports = {};
22
24
  __export(getShapeSize_exports, {
@@ -26,8 +28,8 @@ module.exports = __toCommonJS(getShapeSize_exports);
26
28
  const getShapeSize = (size, {
27
29
  tokens
28
30
  }) => {
29
- const width = tokens.size[size] ?? size,
30
- height = tokens.size[size] ?? size;
31
+ const width = tokens.size[size] ?? size;
32
+ const height = tokens.size[size] ?? size;
31
33
  return {
32
34
  width,
33
35
  height,
@@ -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 getShapeSize_exports = {};
24
26
  __export(getShapeSize_exports, {
@@ -27,12 +29,12 @@ __export(getShapeSize_exports, {
27
29
  module.exports = __toCommonJS(getShapeSize_exports);
28
30
  var getShapeSize = function (size, param) {
29
31
  var {
30
- tokens
31
- } = param,
32
- _tokens_size_size,
33
- width = (_tokens_size_size = tokens.size[size]) !== null && _tokens_size_size !== void 0 ? _tokens_size_size : size,
34
- _tokens_size_size1,
35
- height = (_tokens_size_size1 = tokens.size[size]) !== null && _tokens_size_size1 !== void 0 ? _tokens_size_size1 : size;
32
+ tokens
33
+ } = param;
34
+ var _tokens_size_size;
35
+ var width = (_tokens_size_size = tokens.size[size]) !== null && _tokens_size_size !== void 0 ? _tokens_size_size : size;
36
+ var _tokens_size_size1;
37
+ var height = (_tokens_size_size1 = tokens.size[size]) !== null && _tokens_size_size1 !== void 0 ? _tokens_size_size1 : size;
36
38
  return {
37
39
  width,
38
40
  height,
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","getShapeSize_exports","__export","getShapeSize","module","exports","size","param","tokens","_tokens_size_size","width","_tokens_size_size1","height","minWidth","maxWidth","maxHeight","minHeight"],"sources":["../../src/getShapeSize.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;AAGOC,MAAM,CAAAC,OAAA,GAAAT,YAEX,CAAEK,oBACC;AACH,IAAAE,YAAc,YAAAA,CAAYG,IAAI,EAAAC,KAAK;EAEnC;MAAAC;IAAO,IAAAD,KAAA;IAAAE,iBAAA;IAAAC,KAAA,IAAAD,iBAAA,GAAAD,MAAA,CAAAF,IAAA,CAAAA,IAAA,eAAAG,iBAAA,cAAAA,iBAAA,GAAAH,IAAA;IAAAK,kBAAA;IAAAC,MAAA,IAAAD,kBAAA,GAAAH,MAAA,CAAAF,IAAA,CAAAA,IAAA,eAAAK,kBAAA,cAAAA,kBAAA,GAAAL,IAAA;EAAA,OACL;IACAI,KAAA;IACAE,MAAA;IACAC,QAAA,EAAUH,KAAA;IACVI,QAAA,EAAAJ,KAAW;IACXK,SAAA,EAAWH,MAAA;IACbI,SAAA,EAAAJ;EACF","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","getShapeSize_exports","__export","getShapeSize","module","exports","size","param","tokens","_tokens_size_size","width","_tokens_size_size1","height","minWidth","maxWidth"],"sources":["../../src/getShapeSize.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;AAGOC,MAAM,CAAAC,OAAA,GAAAT,YAEX,CAAEK,oBACC;AACH,IAAAE,YAAc,YAAAA,CAAYG,IAAI,EAAAC,KAAK;EACnC;IAAMC;EAAA,IAASD,KAAO;EACtB,IAAAE,iBAAO;EAAA,IACLC,KAAA,IAAAD,iBAAA,GAAAD,MAAA,CAAAF,IAAA,CAAAA,IAAA,eAAAG,iBAAA,cAAAA,iBAAA,GAAAH,IAAA;EAAA,IACAK,kBAAA;EAAA,IACAC,MAAA,GAAU,CAAAD,kBAAA,GAAAH,MAAA,CAAAF,IAAA,CAAAA,IAAA,eAAAK,kBAAA,cAAAA,kBAAA,GAAAL,IAAA;EAAA,OACV;IACAI,KAAA;IACAE,MAAA;IACFC,QAAA,EAAAH,KAAA;IACFI,QAAA,EAAAJ,KAAA","ignoreList":[]}
@@ -3,15 +3,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
7
8
  get: () => from[key],
8
9
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
10
  });
10
- return to;
11
- },
12
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
15
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
14
- value: !0
16
+ value: true
15
17
  }), mod);
16
18
  var index_exports = {};
17
19
  module.exports = __toCommonJS(index_exports);
@@ -5,15 +5,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
9
10
  get: () => from[key],
10
11
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
12
  });
12
- return to;
13
- },
14
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
+ }
14
+ return to;
15
+ };
16
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
17
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: !0
18
+ value: true
17
19
  }), mod);
18
20
  var index_exports = {};
19
21
  module.exports = __toCommonJS(index_exports);
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports","__reExport","require"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA;AACdG,UAAA,CAAAH,aAAA,EAAcI,OAAA,wBADdH,MAAA,CAAAC,OAAA;AAEAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,wBAAAH,MAFd,CAAAC,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports","__reExport","require"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA;AACdG,UAAA,CAAAH,aAAA,EAAcI,OAAA,wBADdH,MAAA,CAAAC,OAAA;AAEAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,wBAAAH,MAFd,CAAAC,OAAA","ignoreList":[]}
@@ -12,7 +12,7 @@ const Square = styled(ThemeableStack, {
12
12
  }
13
13
  }
14
14
  }, {
15
- memo: !0
15
+ memo: true
16
16
  });
17
17
  export { Square };
18
18
  //# sourceMappingURL=Square.mjs.map
@@ -12,7 +12,7 @@ var Square = styled(ThemeableStack, {
12
12
  }
13
13
  }
14
14
  }, {
15
- memo: !0
15
+ memo: true
16
16
  });
17
17
  export { Square };
18
18
  //# sourceMappingURL=Square.native.js.map
@@ -1,8 +1,8 @@
1
1
  const getShapeSize = (size, {
2
2
  tokens
3
3
  }) => {
4
- const width = tokens.size[size] ?? size,
5
- height = tokens.size[size] ?? size;
4
+ const width = tokens.size[size] ?? size;
5
+ const height = tokens.size[size] ?? size;
6
6
  return {
7
7
  width,
8
8
  height,
@@ -1 +1 @@
1
- {"version":3,"names":["getShapeSize","size","tokens","width","height","minWidth","maxWidth","maxHeight","minHeight"],"sources":["../../src/getShapeSize.tsx"],"sourcesContent":[null],"mappings":"AAGO,MAAMA,YAAA,GAA6DA,CACxEC,IAAA,EACA;EAAEC;AAAO,MACN;EACH,MAAMC,KAAA,GAAQD,MAAA,CAAOD,IAAA,CAAKA,IAAI,KAAKA,IAAA;IAC7BG,MAAA,GAASF,MAAA,CAAOD,IAAA,CAAKA,IAAI,KAAKA,IAAA;EACpC,OAAO;IACLE,KAAA;IACAC,MAAA;IACAC,QAAA,EAAUF,KAAA;IACVG,QAAA,EAAUH,KAAA;IACVI,SAAA,EAAWH,MAAA;IACXI,SAAA,EAAWJ;EACb;AACF","ignoreList":[]}
1
+ {"version":3,"names":["getShapeSize","size","tokens","width","height","minWidth","maxWidth","maxHeight","minHeight"],"sources":["../../src/getShapeSize.tsx"],"sourcesContent":[null],"mappings":"AAGO,MAAMA,YAAA,GAA6DA,CACxEC,IAAA,EACA;EAAEC;AAAO,MACN;EACH,MAAMC,KAAA,GAAQD,MAAA,CAAOD,IAAA,CAAKA,IAAI,KAAKA,IAAA;EACnC,MAAMG,MAAA,GAASF,MAAA,CAAOD,IAAA,CAAKA,IAAI,KAAKA,IAAA;EACpC,OAAO;IACLE,KAAA;IACAC,MAAA;IACAC,QAAA,EAAUF,KAAA;IACVG,QAAA,EAAUH,KAAA;IACVI,SAAA,EAAWH,MAAA;IACXI,SAAA,EAAWJ;EACb;AACF","ignoreList":[]}
@@ -1,11 +1,11 @@
1
1
  var getShapeSize = function (size, param) {
2
2
  var {
3
- tokens
4
- } = param,
5
- _tokens_size_size,
6
- width = (_tokens_size_size = tokens.size[size]) !== null && _tokens_size_size !== void 0 ? _tokens_size_size : size,
7
- _tokens_size_size1,
8
- height = (_tokens_size_size1 = tokens.size[size]) !== null && _tokens_size_size1 !== void 0 ? _tokens_size_size1 : size;
3
+ tokens
4
+ } = param;
5
+ var _tokens_size_size;
6
+ var width = (_tokens_size_size = tokens.size[size]) !== null && _tokens_size_size !== void 0 ? _tokens_size_size : size;
7
+ var _tokens_size_size1;
8
+ var height = (_tokens_size_size1 = tokens.size[size]) !== null && _tokens_size_size1 !== void 0 ? _tokens_size_size1 : size;
9
9
  return {
10
10
  width,
11
11
  height,
@@ -1 +1 @@
1
- {"version":3,"names":["getShapeSize","size","param","tokens","_tokens_size_size","width","_tokens_size_size1","height","minWidth","maxWidth","maxHeight","minHeight"],"sources":["../../src/getShapeSize.tsx"],"sourcesContent":[null],"mappings":"AAGO,IAAAA,YAAM,YAAAA,CAEXC,IAAE,EAAAC,KAAO;EAET;MAAMC;IAAA,CAAQ,GAAAD,KAAO;IAAAE,iBACf;IAAAC,KAAA,GAAS,CAAAD,iBAAgB,GAAKD,MAAA,CAAAF,IAAA,CAAAA,IAAA,eAAAG,iBAAA,cAAAA,iBAAA,GAAAH,IAAA;IAAAK,kBAAA;IAAAC,MAAA,IAAAD,kBAAA,GAAAH,MAAA,CAAAF,IAAA,CAAAA,IAAA,eAAAK,kBAAA,cAAAA,kBAAA,GAAAL,IAAA;EACpC,OAAO;IACLI,KAAA;IACAE,MAAA;IACAC,QAAA,EAAUH,KAAA;IACVI,QAAA,EAAUJ,KAAA;IACVK,SAAA,EAAWH,MAAA;IACXI,SAAA,EAAWJ;EACb;AACF","ignoreList":[]}
1
+ {"version":3,"names":["getShapeSize","size","param","tokens","_tokens_size_size","width","_tokens_size_size1","height","minWidth","maxWidth","maxHeight"],"sources":["../../src/getShapeSize.tsx"],"sourcesContent":[null],"mappings":"AAGO,IAAAA,YAAM,YAAAA,CAEXC,IAAE,EAAAC,KAAO;EAET;IAAMC;EAAA,CAAQ,GAAAD,KAAO;EACrB,IAAAE,iBAAe;EACf,IAAAC,KAAO,IAAAD,iBAAA,GAAAD,MAAA,CAAAF,IAAA,CAAAA,IAAA,eAAAG,iBAAA,cAAAA,iBAAA,GAAAH,IAAA;EAAA,IACLK,kBAAA;EAAA,IACAC,MAAA,IAAAD,kBAAA,GAAAH,MAAA,CAAAF,IAAA,CAAAA,IAAA,eAAAK,kBAAA,cAAAA,kBAAA,GAAAL,IAAA;EAAA,OACA;IACAI,KAAA;IACAE,MAAA;IACAC,QAAA,EAAAH,KAAW;IACbI,QAAA,EAAAJ,KAAA;IACFK,SAAA,EAAAH,MAAA","ignoreList":[]}
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export * from "./Square";
2
- export * from "./Circle";
3
- export * from "./getShapeSize";
1
+ export * from "./Square.mjs";
2
+ export * from "./Circle.mjs";
3
+ export * from "./getShapeSize.mjs";
4
4
  //# sourceMappingURL=index.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;",
5
- "names": []
6
- }
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc","ignoreList":[]}
@@ -5,30 +5,32 @@ 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 Circle_exports = {};
24
26
  __export(Circle_exports, {
25
27
  Circle: () => Circle
26
28
  });
27
29
  module.exports = __toCommonJS(Circle_exports);
28
- var import_web = require("@tamagui/web"),
29
- import_Square = require("./Square.native.js"),
30
- Circle = (0, import_web.styled)(import_Square.Square, {
31
- name: "Circle",
32
- borderRadius: 1e8
33
- });
30
+ var import_web = require("@tamagui/web");
31
+ var import_Square = require("./Square.native.js");
32
+ var Circle = (0, import_web.styled)(import_Square.Square, {
33
+ name: "Circle",
34
+ borderRadius: 1e8
35
+ });
34
36
  //# sourceMappingURL=Circle.native.js.map
@@ -12,7 +12,7 @@ const Square = styled(ThemeableStack, {
12
12
  }
13
13
  }
14
14
  }, {
15
- memo: !0
15
+ memo: true
16
16
  });
17
17
  export { Square };
18
18
  //# sourceMappingURL=Square.mjs.map
@@ -5,40 +5,42 @@ 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 Square_exports = {};
24
26
  __export(Square_exports, {
25
27
  Square: () => Square
26
28
  });
27
29
  module.exports = __toCommonJS(Square_exports);
28
- var import_stacks = require("@tamagui/stacks"),
29
- import_web = require("@tamagui/web"),
30
- import_getShapeSize = require("./getShapeSize.native.js"),
31
- Square = (0, import_web.styled)(import_stacks.ThemeableStack, {
32
- name: "Square",
33
- alignItems: "center",
34
- justifyContent: "center",
35
- variants: {
36
- size: {
37
- "...size": import_getShapeSize.getShapeSize,
38
- ":number": import_getShapeSize.getShapeSize
39
- }
30
+ var import_stacks = require("@tamagui/stacks");
31
+ var import_web = require("@tamagui/web");
32
+ var import_getShapeSize = require("./getShapeSize.native.js");
33
+ var Square = (0, import_web.styled)(import_stacks.ThemeableStack, {
34
+ name: "Square",
35
+ alignItems: "center",
36
+ justifyContent: "center",
37
+ variants: {
38
+ size: {
39
+ "...size": import_getShapeSize.getShapeSize,
40
+ ":number": import_getShapeSize.getShapeSize
40
41
  }
41
- }, {
42
- memo: !0
43
- });
42
+ }
43
+ }, {
44
+ memo: true
45
+ });
44
46
  //# sourceMappingURL=Square.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","Square_exports","Square","module","exports"],"sources":["../../src/Square.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAS;;AAET,IAAAA,SAAS,GAAAC,MAAA,CAAcC,cAAA;AAEvB,IAAAC,gBAAS,GAAAF,MAAoB,CAAAG,wBAAA;AAEtB,IAAAC,iBAAe,GAAAJ,MAAA,CAAAK,mBAAA;AAAA,IACpBC,YAAA,GAAAN,MAAA,CAAAO,SAAA,CAAAC,cAAA;AAAA,IACAC,QAAA,GAAAA,CAAAC,MAAA,EAAAC,GAAA;IAAA,KACE,IAAMC,IAAA,IAAAD,GAAA,EACNZ,SAAA,CAAAW,MAAY,EAAAE,IAAA;MAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;MAAAE,UAAA;IAAA;EAAA;EAAAC,WACZ,GAAAA,CAAAC,EAAgB,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;IAAA,IAEhBF,IAAA,IAAU,OAAAA,IAAA,uBAAAA,IAAA,qBACR,IAAMG,GAAA,IAAAhB,iBAAA,CAAAa,IAAA,IAAAX,YACO,CAAAe,IAAA,CAAAL,EAAA,EAAAI,GAAA,KAAAA,GAAA,KAAAF,MAAA,IAAAnB,SAAA,CAAAiB,EAAA,EAAAI,GAAA;MAAAP,GAAA,EAAAA,CAAA,KAAAI,IAAA,CAAAG,GAAA;MAAAN,UAAA,IAAAK,IAAA,GAAAjB,gBAAA,CAAAe,IAAA,EAAAG,GAAA,MAAAD,IAAA,CAAAL;IAAA;IAAA,OACXE,EAAA;EAAW;AACb,IACFM,YAAA,GAAAC,GAAA,IAAAR,WAAA,CAAAhB,SAAA;EAAAyB,KAAA;AAAA,IAAAD,GAAA;AAAA,IACFE,cAAA;AAAAhB,QACA,CAAAgB,cAAA;EAAAC,MACE,EAAMA,CAAA,KAAAA;AAAA,EACR;AACFC,MAAA,CAAAC,OAAA,GAAAN,YAAA,CAAAG,cAAA","ignoreList":[]}
1
+ {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","Square_exports"],"sources":["../../src/Square.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAS;;AAET,IAAAA,SAAS,GAAAC,MAAA,CAAcC,cAAA;AAEvB,IAAAC,gBAAS,GAAAF,MAAoB,CAAAG,wBAAA;AAEtB,IAAAC,iBAAe,GAAAJ,MAAA,CAAAK,mBAAA;AAAA,IACpBC,YAAA,GAAAN,MAAA,CAAAO,SAAA,CAAAC,cAAA;AAAA,IACAC,QAAA,GAAAA,CAAAC,MAAA,EAAAC,GAAA;EAAA,KACE,IAAMC,IAAA,IAAAD,GAAA,EACNZ,SAAA,CAAAW,MAAY,EAAAE,IAAA;IAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;IAAAE,UAAA;EAAA;AAAA;AACI,IAEhBC,WAAU,GAAAA,CAAAC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;EAAA,IACRF,IAAA,IAAM,OAAAA,IAAA,wBAAAA,IAAA;IAAA,KACJ,IAAAG,GAAA,IAAWhB,iBAAA,CAAAa,IAAA,OACX,CAAAX,YAAW,CAAAe,IAAA,CAAAL,EAAA,EAAAI,GAAA,KAAAA,GAAA,KAAAF,MAAA,EACbnB,SAAA,CAAAiB,EAAA,EAAAI,GAAA;MAAAP,GAAA,EAAAA,CAAA,KAAAI,IAAA,CAAAG,GAAA;MAAAN,UAAA,IAAAK,IAAA,GAAAjB,gBAAA,CAAAe,IAAA,EAAAG,GAAA,MAAAD,IAAA,CAAAL;IAAA;EAAA;EAEJ,OAAAE,EAAA;AAAA;AACA,IACEM,YAAM,GAAAC,GAAA,IAAAR,WAAA,CAAAhB,SAAA;EAAAyB,KAAA;AAAA,IAAAD,GAAA;AAAA,IACRE,cAAA;AACFhB,QAAA,CAAAgB,cAAA","ignoreList":[]}
@@ -1,8 +1,8 @@
1
1
  const getShapeSize = (size, {
2
2
  tokens
3
3
  }) => {
4
- const width = tokens.size[size] ?? size,
5
- height = tokens.size[size] ?? size;
4
+ const width = tokens.size[size] ?? size;
5
+ const height = tokens.size[size] ?? size;
6
6
  return {
7
7
  width,
8
8
  height,
@@ -1 +1 @@
1
- {"version":3,"names":["getShapeSize","size","tokens","width","height","minWidth","maxWidth","maxHeight","minHeight"],"sources":["../../src/getShapeSize.tsx"],"sourcesContent":[null],"mappings":"AAGO,MAAMA,YAAA,GAA6DA,CACxEC,IAAA,EACA;EAAEC;AAAO,MACN;EACH,MAAMC,KAAA,GAAQD,MAAA,CAAOD,IAAA,CAAKA,IAAI,KAAKA,IAAA;IAC7BG,MAAA,GAASF,MAAA,CAAOD,IAAA,CAAKA,IAAI,KAAKA,IAAA;EACpC,OAAO;IACLE,KAAA;IACAC,MAAA;IACAC,QAAA,EAAUF,KAAA;IACVG,QAAA,EAAUH,KAAA;IACVI,SAAA,EAAWH,MAAA;IACXI,SAAA,EAAWJ;EACb;AACF","ignoreList":[]}
1
+ {"version":3,"names":["getShapeSize","size","tokens","width","height","minWidth","maxWidth","maxHeight","minHeight"],"sources":["../../src/getShapeSize.tsx"],"sourcesContent":[null],"mappings":"AAGO,MAAMA,YAAA,GAA6DA,CACxEC,IAAA,EACA;EAAEC;AAAO,MACN;EACH,MAAMC,KAAA,GAAQD,MAAA,CAAOD,IAAA,CAAKA,IAAI,KAAKA,IAAA;EACnC,MAAMG,MAAA,GAASF,MAAA,CAAOD,IAAA,CAAKA,IAAI,KAAKA,IAAA;EACpC,OAAO;IACLE,KAAA;IACAC,MAAA;IACAC,QAAA,EAAUF,KAAA;IACVG,QAAA,EAAUH,KAAA;IACVI,SAAA,EAAWH,MAAA;IACXI,SAAA,EAAWJ;EACb;AACF","ignoreList":[]}
@@ -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 getShapeSize_exports = {};
24
26
  __export(getShapeSize_exports, {
@@ -27,12 +29,12 @@ __export(getShapeSize_exports, {
27
29
  module.exports = __toCommonJS(getShapeSize_exports);
28
30
  var getShapeSize = function (size, param) {
29
31
  var {
30
- tokens
31
- } = param,
32
- _tokens_size_size,
33
- width = (_tokens_size_size = tokens.size[size]) !== null && _tokens_size_size !== void 0 ? _tokens_size_size : size,
34
- _tokens_size_size1,
35
- height = (_tokens_size_size1 = tokens.size[size]) !== null && _tokens_size_size1 !== void 0 ? _tokens_size_size1 : size;
32
+ tokens
33
+ } = param;
34
+ var _tokens_size_size;
35
+ var width = (_tokens_size_size = tokens.size[size]) !== null && _tokens_size_size !== void 0 ? _tokens_size_size : size;
36
+ var _tokens_size_size1;
37
+ var height = (_tokens_size_size1 = tokens.size[size]) !== null && _tokens_size_size1 !== void 0 ? _tokens_size_size1 : size;
36
38
  return {
37
39
  width,
38
40
  height,
@@ -1 +1 @@
1
- {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key"],"sources":["../../src/getShapeSize.tsx"],"sourcesContent":[null],"mappings":"AAGO,YAAM;;AAIX,IAAAA,SAAM,GAAQC,MAAA,CAAOC,cAAc;AAEnC,IAAAC,gBAAO,GAAAF,MAAA,CAAAG,wBAAA;AAAA,IACLC,iBAAA,GAAAJ,MAAA,CAAAK,mBAAA;AAAA,IACAC,YAAA,GAAAN,MAAA,CAAAO,SAAA,CAAAC,cAAA;AAAA,IACAC,QAAA,GAAUA,CAAAC,MAAA,EAAAC,GAAA;IAAA,KACV,IAAAC,IAAU,IAAAD,GAAA,EACVZ,SAAA,CAAAW,MAAW,EAAAE,IAAA;MAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;MAAAE,UAAA;IAAA;EAAA;EAAAC,WACX,GAAWA,CAAAC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;IACb,IAAAF,IAAA,WAAAA,IAAA,uBAAAA,IAAA,gBACF,SAAAG,GAAA,IAAAhB,iBAAA,CAAAa,IAAA,G","ignoreList":[]}
1
+ {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key"],"sources":["../../src/getShapeSize.tsx"],"sourcesContent":[null],"mappings":"AAGO,YAAM;;AAIX,IAAAA,SAAM,GAAQC,MAAA,CAAOC,cAAc;AACnC,IAAAC,gBAAe,GAAAF,MAAY,CAAAG,wBAAS;AACpC,IAAAC,iBAAO,GAAAJ,MAAA,CAAAK,mBAAA;AAAA,IACLC,YAAA,GAAAN,MAAA,CAAAO,SAAA,CAAAC,cAAA;AAAA,IACAC,QAAA,GAAAA,CAAAC,MAAA,EAAAC,GAAA;EAAA,KACA,IAAAC,IAAU,IAAAD,GAAA,EACVZ,SAAA,CAAUW,MAAA,EAAAE,IAAA;IAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;IAAAE,UAAA;EAAA;AAAA;AACC,IACXC,WAAW,GAAAA,CAAAC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;EACb,IAAAF,IAAA,WAAAA,IAAA,wBAAAA,IAAA;IACF,SAAAG,GAAA,IAAAhB,iBAAA,CAAAa,IAAA,G","ignoreList":[]}
package/dist/jsx/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export * from "./Square";
2
- export * from "./Circle";
3
- export * from "./getShapeSize";
1
+ export * from "./Square.mjs";
2
+ export * from "./Circle.mjs";
3
+ export * from "./getShapeSize.mjs";
4
4
  //# sourceMappingURL=index.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;",
5
- "names": []
6
- }
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc","ignoreList":[]}
@@ -5,15 +5,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
9
10
  get: () => from[key],
10
11
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
12
  });
12
- return to;
13
- },
14
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
+ }
14
+ return to;
15
+ };
16
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
17
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: !0
18
+ value: true
17
19
  }), mod);
18
20
  var index_exports = {};
19
21
  module.exports = __toCommonJS(index_exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/shapes",
3
- "version": "2.0.0-rc.9",
3
+ "version": "2.0.0",
4
4
  "source": "src/index.ts",
5
5
  "files": [
6
6
  "src",
@@ -19,10 +19,11 @@
19
19
  ".": {
20
20
  "types": "./types/index.d.ts",
21
21
  "react-native": "./dist/esm/index.native.js",
22
+ "browser": "./dist/esm/index.mjs",
22
23
  "module": "./dist/esm/index.mjs",
23
24
  "import": "./dist/esm/index.mjs",
24
25
  "require": "./dist/cjs/index.cjs",
25
- "default": "./dist/cjs/index.native.js"
26
+ "default": "./dist/esm/index.mjs"
26
27
  }
27
28
  },
28
29
  "publishConfig": {
@@ -35,11 +36,11 @@
35
36
  "clean:build": "tamagui-build clean:build"
36
37
  },
37
38
  "dependencies": {
38
- "@tamagui/stacks": "2.0.0-rc.9",
39
- "@tamagui/web": "2.0.0-rc.9"
39
+ "@tamagui/stacks": "2.0.0",
40
+ "@tamagui/web": "2.0.0"
40
41
  },
41
42
  "devDependencies": {
42
- "@tamagui/build": "2.0.0-rc.9",
43
+ "@tamagui/build": "2.0.0",
43
44
  "react": ">=19"
44
45
  },
45
46
  "peerDependencies": {
@@ -1,25 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var Circle_exports = {};
16
- __export(Circle_exports, {
17
- Circle: () => Circle
18
- });
19
- module.exports = __toCommonJS(Circle_exports);
20
- var import_web = require("@tamagui/web"), import_Square = require("./Square");
21
- const Circle = (0, import_web.styled)(import_Square.Square, {
22
- name: "Circle",
23
- borderRadius: 1e8
24
- });
25
- //# sourceMappingURL=Circle.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Circle.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,iBAAuB,yBAEvB,gBAAuB;AAEhB,MAAM,aAAS,mBAAO,sBAAQ;AAAA,EACnC,MAAM;AAAA,EACN,cAAc;AAChB,CAAC;",
5
- "names": []
6
- }
@@ -1,38 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var Square_exports = {};
16
- __export(Square_exports, {
17
- Square: () => Square
18
- });
19
- module.exports = __toCommonJS(Square_exports);
20
- var import_stacks = require("@tamagui/stacks"), import_web = require("@tamagui/web"), import_getShapeSize = require("./getShapeSize");
21
- const Square = (0, import_web.styled)(
22
- import_stacks.ThemeableStack,
23
- {
24
- name: "Square",
25
- alignItems: "center",
26
- justifyContent: "center",
27
- variants: {
28
- size: {
29
- "...size": import_getShapeSize.getShapeSize,
30
- ":number": import_getShapeSize.getShapeSize
31
- }
32
- }
33
- },
34
- {
35
- memo: !0
36
- }
37
- );
38
- //# sourceMappingURL=Square.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Square.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA+B,4BAE/B,aAAuB,yBAEvB,sBAA6B;AAEtB,MAAM,aAAS;AAAA,EACpB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAEhB,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,WAAW;AAAA,QACX,WAAW;AAAA,MACb;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,MAAM;AAAA,EACR;AACF;",
5
- "names": []
6
- }
@@ -1,31 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var getShapeSize_exports = {};
16
- __export(getShapeSize_exports, {
17
- getShapeSize: () => getShapeSize
18
- });
19
- module.exports = __toCommonJS(getShapeSize_exports);
20
- const getShapeSize = (size, { tokens }) => {
21
- const width = tokens.size[size] ?? size, height = tokens.size[size] ?? size;
22
- return {
23
- width,
24
- height,
25
- minWidth: width,
26
- maxWidth: width,
27
- maxHeight: height,
28
- minHeight: height
29
- };
30
- };
31
- //# sourceMappingURL=getShapeSize.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/getShapeSize.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,eAA6D,CACxE,MACA,EAAE,OAAO,MACN;AACH,QAAM,QAAQ,OAAO,KAAK,IAAI,KAAK,MAC7B,SAAS,OAAO,KAAK,IAAI,KAAK;AACpC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AACF;",
5
- "names": []
6
- }
package/dist/cjs/index.js DELETED
@@ -1,17 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from == "object" || typeof from == "function")
7
- for (let key of __getOwnPropNames(from))
8
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
9
- return to;
10
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
12
- var index_exports = {};
13
- module.exports = __toCommonJS(index_exports);
14
- __reExport(index_exports, require("./Square"), module.exports);
15
- __reExport(index_exports, require("./Circle"), module.exports);
16
- __reExport(index_exports, require("./getShapeSize"), module.exports);
17
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,qBAAd;AACA,0BAAc,qBADd;AAEA,0BAAc,2BAFd;",
5
- "names": []
6
- }
@@ -1,10 +0,0 @@
1
- import { styled } from "@tamagui/web";
2
- import { Square } from "./Square";
3
- const Circle = styled(Square, {
4
- name: "Circle",
5
- borderRadius: 1e8
6
- });
7
- export {
8
- Circle
9
- };
10
- //# sourceMappingURL=Circle.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Circle.tsx"],
4
- "mappings": "AACA,SAAS,cAAc;AAEvB,SAAS,cAAc;AAEhB,MAAM,SAAS,OAAO,QAAQ;AAAA,EACnC,MAAM;AAAA,EACN,cAAc;AAChB,CAAC;",
5
- "names": []
6
- }
@@ -1,24 +0,0 @@
1
- import { ThemeableStack } from "@tamagui/stacks";
2
- import { styled } from "@tamagui/web";
3
- import { getShapeSize } from "./getShapeSize";
4
- const Square = styled(
5
- ThemeableStack,
6
- {
7
- name: "Square",
8
- alignItems: "center",
9
- justifyContent: "center",
10
- variants: {
11
- size: {
12
- "...size": getShapeSize,
13
- ":number": getShapeSize
14
- }
15
- }
16
- },
17
- {
18
- memo: !0
19
- }
20
- );
21
- export {
22
- Square
23
- };
24
- //# sourceMappingURL=Square.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Square.tsx"],
4
- "mappings": "AAAA,SAAS,sBAAsB;AAE/B,SAAS,cAAc;AAEvB,SAAS,oBAAoB;AAEtB,MAAM,SAAS;AAAA,EACpB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAEhB,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,WAAW;AAAA,QACX,WAAW;AAAA,MACb;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,MAAM;AAAA,EACR;AACF;",
5
- "names": []
6
- }
@@ -1,15 +0,0 @@
1
- const getShapeSize = (size, { tokens }) => {
2
- const width = tokens.size[size] ?? size, height = tokens.size[size] ?? size;
3
- return {
4
- width,
5
- height,
6
- minWidth: width,
7
- maxWidth: width,
8
- maxHeight: height,
9
- minHeight: height
10
- };
11
- };
12
- export {
13
- getShapeSize
14
- };
15
- //# sourceMappingURL=getShapeSize.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/getShapeSize.tsx"],
4
- "mappings": "AAGO,MAAM,eAA6D,CACxE,MACA,EAAE,OAAO,MACN;AACH,QAAM,QAAQ,OAAO,KAAK,IAAI,KAAK,MAC7B,SAAS,OAAO,KAAK,IAAI,KAAK;AACpC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AACF;",
5
- "names": []
6
- }
@@ -1,10 +0,0 @@
1
- import { styled } from "@tamagui/web";
2
- import { Square } from "./Square";
3
- const Circle = styled(Square, {
4
- name: "Circle",
5
- borderRadius: 1e8
6
- });
7
- export {
8
- Circle
9
- };
10
- //# sourceMappingURL=Circle.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Circle.tsx"],
4
- "mappings": "AACA,SAAS,cAAc;AAEvB,SAAS,cAAc;AAEhB,MAAM,SAAS,OAAO,QAAQ;AAAA,EACnC,MAAM;AAAA,EACN,cAAc;AAChB,CAAC;",
5
- "names": []
6
- }
@@ -1,24 +0,0 @@
1
- import { ThemeableStack } from "@tamagui/stacks";
2
- import { styled } from "@tamagui/web";
3
- import { getShapeSize } from "./getShapeSize";
4
- const Square = styled(
5
- ThemeableStack,
6
- {
7
- name: "Square",
8
- alignItems: "center",
9
- justifyContent: "center",
10
- variants: {
11
- size: {
12
- "...size": getShapeSize,
13
- ":number": getShapeSize
14
- }
15
- }
16
- },
17
- {
18
- memo: !0
19
- }
20
- );
21
- export {
22
- Square
23
- };
24
- //# sourceMappingURL=Square.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Square.tsx"],
4
- "mappings": "AAAA,SAAS,sBAAsB;AAE/B,SAAS,cAAc;AAEvB,SAAS,oBAAoB;AAEtB,MAAM,SAAS;AAAA,EACpB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAEhB,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,WAAW;AAAA,QACX,WAAW;AAAA,MACb;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,MAAM;AAAA,EACR;AACF;",
5
- "names": []
6
- }
@@ -1,15 +0,0 @@
1
- const getShapeSize = (size, { tokens }) => {
2
- const width = tokens.size[size] ?? size, height = tokens.size[size] ?? size;
3
- return {
4
- width,
5
- height,
6
- minWidth: width,
7
- maxWidth: width,
8
- maxHeight: height,
9
- minHeight: height
10
- };
11
- };
12
- export {
13
- getShapeSize
14
- };
15
- //# sourceMappingURL=getShapeSize.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/getShapeSize.tsx"],
4
- "mappings": "AAGO,MAAM,eAA6D,CACxE,MACA,EAAE,OAAO,MACN;AACH,QAAM,QAAQ,OAAO,KAAK,IAAI,KAAK,MAC7B,SAAS,OAAO,KAAK,IAAI,KAAK;AACpC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AACF;",
5
- "names": []
6
- }