@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.
- package/dist/cjs/Circle.cjs +14 -12
- package/dist/cjs/Circle.native.js +18 -16
- package/dist/cjs/Circle.native.js.map +1 -1
- package/dist/cjs/Square.cjs +16 -14
- package/dist/cjs/Square.native.js +27 -25
- package/dist/cjs/Square.native.js.map +1 -1
- package/dist/cjs/getShapeSize.cjs +14 -12
- package/dist/cjs/getShapeSize.native.js +18 -16
- package/dist/cjs/getShapeSize.native.js.map +1 -1
- package/dist/cjs/index.cjs +7 -5
- package/dist/cjs/index.native.js +7 -5
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/Square.mjs +1 -1
- package/dist/esm/Square.native.js +1 -1
- package/dist/esm/getShapeSize.mjs +2 -2
- package/dist/esm/getShapeSize.mjs.map +1 -1
- package/dist/esm/getShapeSize.native.js +6 -6
- package/dist/esm/getShapeSize.native.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -6
- package/dist/jsx/Circle.native.js +18 -16
- package/dist/jsx/Square.mjs +1 -1
- package/dist/jsx/Square.native.js +27 -25
- package/dist/jsx/Square.native.js.map +1 -1
- package/dist/jsx/getShapeSize.mjs +2 -2
- package/dist/jsx/getShapeSize.mjs.map +1 -1
- package/dist/jsx/getShapeSize.native.js +18 -16
- package/dist/jsx/getShapeSize.native.js.map +1 -1
- package/dist/jsx/index.js +3 -3
- package/dist/jsx/index.js.map +1 -6
- package/dist/jsx/index.native.js +7 -5
- package/package.json +6 -5
- package/dist/cjs/Circle.js +0 -25
- package/dist/cjs/Circle.js.map +0 -6
- package/dist/cjs/Square.js +0 -38
- package/dist/cjs/Square.js.map +0 -6
- package/dist/cjs/getShapeSize.js +0 -31
- package/dist/cjs/getShapeSize.js.map +0 -6
- package/dist/cjs/index.js +0 -17
- package/dist/cjs/index.js.map +0 -6
- package/dist/esm/Circle.js +0 -10
- package/dist/esm/Circle.js.map +0 -6
- package/dist/esm/Square.js +0 -24
- package/dist/esm/Square.js.map +0 -6
- package/dist/esm/getShapeSize.js +0 -15
- package/dist/esm/getShapeSize.js.map +0 -6
- package/dist/jsx/Circle.js +0 -10
- package/dist/jsx/Circle.js.map +0 -6
- package/dist/jsx/Square.js +0 -24
- package/dist/jsx/Square.js.map +0 -6
- package/dist/jsx/getShapeSize.js +0 -15
- package/dist/jsx/getShapeSize.js.map +0 -6
package/dist/cjs/Circle.cjs
CHANGED
|
@@ -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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var 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
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var 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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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":"
|
|
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":[]}
|
package/dist/cjs/Square.cjs
CHANGED
|
@@ -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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var 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
|
-
|
|
28
|
-
|
|
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:
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var 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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
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":"
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var 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
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var 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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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"
|
|
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":[]}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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:
|
|
16
|
+
value: true
|
|
15
17
|
}), mod);
|
|
16
18
|
var index_exports = {};
|
|
17
19
|
module.exports = __toCommonJS(index_exports);
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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:
|
|
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":"
|
|
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":[]}
|
package/dist/esm/Square.mjs
CHANGED
|
@@ -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;
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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"
|
|
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
|
package/dist/esm/index.js.map
CHANGED
|
@@ -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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var 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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
package/dist/jsx/Square.mjs
CHANGED
|
@@ -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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var 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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
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"
|
|
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 +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;
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var 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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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;
|
|
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
|
package/dist/jsx/index.js.map
CHANGED
package/dist/jsx/index.native.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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:
|
|
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
|
|
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/
|
|
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
|
|
39
|
-
"@tamagui/web": "2.0.0
|
|
39
|
+
"@tamagui/stacks": "2.0.0",
|
|
40
|
+
"@tamagui/web": "2.0.0"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
|
-
"@tamagui/build": "2.0.0
|
|
43
|
+
"@tamagui/build": "2.0.0",
|
|
43
44
|
"react": ">=19"
|
|
44
45
|
},
|
|
45
46
|
"peerDependencies": {
|
package/dist/cjs/Circle.js
DELETED
|
@@ -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
|
package/dist/cjs/Circle.js.map
DELETED
package/dist/cjs/Square.js
DELETED
|
@@ -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
|
package/dist/cjs/Square.js.map
DELETED
|
@@ -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
|
-
}
|
package/dist/cjs/getShapeSize.js
DELETED
|
@@ -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
|
package/dist/cjs/index.js.map
DELETED
package/dist/esm/Circle.js
DELETED
package/dist/esm/Circle.js.map
DELETED
package/dist/esm/Square.js
DELETED
|
@@ -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
|
package/dist/esm/Square.js.map
DELETED
|
@@ -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
|
-
}
|
package/dist/esm/getShapeSize.js
DELETED
|
@@ -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
|
-
}
|
package/dist/jsx/Circle.js
DELETED
package/dist/jsx/Circle.js.map
DELETED
package/dist/jsx/Square.js
DELETED
|
@@ -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
|
package/dist/jsx/Square.js.map
DELETED
|
@@ -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
|
-
}
|
package/dist/jsx/getShapeSize.js
DELETED
|
@@ -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
|
-
}
|