@tamagui/shapes 2.7.7 → 3.0.0-beta.637.1
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 +17 -20
- package/dist/cjs/Circle.native.cjs +32 -0
- package/dist/cjs/Circle.native.js +17 -19
- package/dist/cjs/Circle.native.js.map +1 -1
- package/dist/cjs/Square.cjs +27 -30
- package/dist/cjs/Square.native.cjs +42 -0
- package/dist/cjs/Square.native.js +28 -30
- package/dist/cjs/Square.native.js.map +1 -1
- package/dist/cjs/getShapeSize.cjs +29 -31
- package/dist/cjs/getShapeSize.native.cjs +43 -0
- package/dist/cjs/getShapeSize.native.js +31 -33
- package/dist/cjs/getShapeSize.native.js.map +1 -1
- package/dist/cjs/index.cjs +10 -11
- package/dist/cjs/index.native.cjs +23 -0
- package/dist/cjs/index.native.js +10 -10
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/Circle.mjs +4 -2
- package/dist/esm/Circle.mjs.map +1 -1
- package/dist/esm/Circle.native.js +4 -2
- package/dist/esm/Circle.native.js.map +1 -1
- package/dist/esm/Square.mjs +16 -14
- package/dist/esm/Square.mjs.map +1 -1
- package/dist/esm/Square.native.js +16 -14
- package/dist/esm/Square.native.js.map +1 -1
- package/dist/esm/getShapeSize.mjs +16 -13
- package/dist/esm/getShapeSize.mjs.map +1 -1
- package/dist/esm/getShapeSize.native.js +18 -16
- package/dist/esm/getShapeSize.native.js.map +1 -1
- package/dist/esm/index.js +5 -4
- package/dist/esm/index.mjs +5 -4
- package/dist/esm/index.native.js +5 -4
- package/dist/jsx/Circle.mjs +4 -2
- package/dist/jsx/Circle.mjs.map +1 -1
- package/dist/jsx/Circle.native.cjs +32 -0
- package/dist/jsx/Circle.native.js +17 -19
- package/dist/jsx/Circle.native.js.map +1 -1
- package/dist/jsx/Square.mjs +16 -14
- package/dist/jsx/Square.mjs.map +1 -1
- package/dist/jsx/Square.native.cjs +42 -0
- package/dist/jsx/Square.native.js +28 -30
- package/dist/jsx/Square.native.js.map +1 -1
- package/dist/jsx/getShapeSize.mjs +16 -13
- package/dist/jsx/getShapeSize.mjs.map +1 -1
- package/dist/jsx/getShapeSize.native.cjs +43 -0
- package/dist/jsx/getShapeSize.native.js +31 -33
- package/dist/jsx/getShapeSize.native.js.map +1 -1
- package/dist/jsx/index.js +5 -4
- package/dist/jsx/index.mjs +5 -4
- package/dist/jsx/index.native.cjs +23 -0
- package/dist/jsx/index.native.js +10 -10
- package/dist/jsx/index.native.js.map +1 -1
- package/package.json +5 -4
- package/src/Circle.tsx +1 -1
- package/src/Square.tsx +18 -5
- package/src/getShapeSize.tsx +12 -4
- package/types/Circle.d.ts +22 -8
- package/types/Circle.d.ts.map +1 -1
- package/types/Square.d.ts +22 -8
- package/types/Square.d.ts.map +1 -1
- package/types/getShapeSize.d.ts +2 -2
- package/types/getShapeSize.d.ts.map +1 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs.map +0 -1
package/dist/cjs/index.native.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
8
|
var __copyProps = (to, from, except, desc) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
11
|
+
get: () => from[key],
|
|
12
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
15
16
|
};
|
|
16
17
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
18
|
-
value: true
|
|
19
|
-
}), mod);
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
19
|
var index_exports = {};
|
|
21
20
|
module.exports = __toCommonJS(index_exports);
|
|
22
21
|
__reExport(index_exports, require("./Square.native.js"), module.exports);
|
|
23
22
|
__reExport(index_exports, require("./Circle.native.js"), module.exports);
|
|
24
23
|
__reExport(index_exports, require("./getShapeSize.native.js"), module.exports);
|
|
24
|
+
|
|
25
25
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./Square\"), module.exports);\n__reExport(index_exports, require(\"./Circle\"), module.exports);\n__reExport(index_exports, require(\"./getShapeSize\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,oBAAU,GAAG,OAAO,OAAO;AAC7D,WAAW,eAAe,QAAQ,oBAAU,GAAG,OAAO,OAAO;AAC7D,WAAW,eAAe,QAAQ,0BAAgB,GAAG,OAAO,OAAO"}
|
package/dist/esm/Circle.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { styled } from "@tamagui/web";
|
|
2
2
|
import { Square } from "./Square.mjs";
|
|
3
|
+
|
|
3
4
|
const Circle = styled(Square, {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
displayName: "Circle",
|
|
6
|
+
borderRadius: 1e8
|
|
6
7
|
});
|
|
8
|
+
|
|
7
9
|
export { Circle };
|
|
8
10
|
//# sourceMappingURL=Circle.mjs.map
|
package/dist/esm/Circle.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Circle.js","names":[],"sources":["esm/Circle.js"],"sourcesContent":["import { styled } from \"@tamagui/web\";\nimport { Square } from \"./Square\";\nconst Circle = styled(Square, {\n displayName: \"Circle\",\n borderRadius: 1e8\n});\nexport {\n Circle\n};\n//# sourceMappingURL=Circle.js.map\n"],"mappings":";;;;AAEA,MAAM,SAAS,OAAO,QAAQ;CAC5B,aAAa;CACb,cAAc;AAChB,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { styled } from "@tamagui/web";
|
|
2
2
|
import { Square } from "./Square.native.js";
|
|
3
|
+
|
|
3
4
|
var Circle = styled(Square, {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
displayName: "Circle",
|
|
6
|
+
borderRadius: 1e8
|
|
6
7
|
});
|
|
8
|
+
|
|
7
9
|
export { Circle };
|
|
8
10
|
//# sourceMappingURL=Circle.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Circle.native.js","names":[],"sources":["esm/Circle.native.js"],"sourcesContent":["import { styled } from \"@tamagui/web\";\nimport { Square } from \"./Square\";\nvar Circle = styled(Square, {\n displayName: \"Circle\",\n borderRadius: 1e8\n});\nexport {\n Circle\n};\n//# sourceMappingURL=Circle.js.map\n"],"mappings":";;;;AAEA,IAAI,SAAS,OAAO,QAAQ;CAC1B,aAAa;CACb,cAAc;AAChB,CAAC"}
|
package/dist/esm/Square.mjs
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { YStack } from "@tamagui/stacks";
|
|
2
2
|
import { styled } from "@tamagui/web";
|
|
3
3
|
import { getShapeSize } from "./getShapeSize.mjs";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
}
|
|
4
|
+
|
|
5
|
+
const Square = styled(YStack, {
|
|
6
|
+
displayName: "Square",
|
|
7
|
+
alignItems: "center",
|
|
8
|
+
justifyContent: "center",
|
|
9
|
+
variants: {
|
|
10
|
+
size: {
|
|
11
|
+
number: getShapeSize,
|
|
12
|
+
Size: getShapeSize
|
|
13
|
+
},
|
|
14
|
+
circular: { true: { borderRadius: 1e5 } },
|
|
15
|
+
transparent: { true: { backgroundColor: "transparent" } }
|
|
16
|
+
}
|
|
17
|
+
}, { memo: true });
|
|
18
|
+
|
|
17
19
|
export { Square };
|
|
18
20
|
//# sourceMappingURL=Square.mjs.map
|
package/dist/esm/Square.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Square.js","names":[],"sources":["esm/Square.js"],"sourcesContent":["import { YStack } from \"@tamagui/stacks\";\nimport { styled } from \"@tamagui/web\";\nimport { getShapeSize } from \"./getShapeSize\";\nconst Square = styled(\n YStack,\n {\n displayName: \"Square\",\n alignItems: \"center\",\n justifyContent: \"center\",\n variants: {\n size: {\n number: getShapeSize,\n Size: getShapeSize\n },\n // shape modifiers formerly inherited from ThemeableStack (now removed).\n circular: {\n true: {\n borderRadius: 1e5\n }\n },\n transparent: {\n true: {\n backgroundColor: \"transparent\"\n }\n }\n }\n },\n {\n memo: true\n }\n);\nexport {\n Square\n};\n//# sourceMappingURL=Square.js.map\n"],"mappings":";;;;;AAGA,MAAM,SAAS,OACb,QACA;CACE,aAAa;CACb,YAAY;CACZ,gBAAgB;CAChB,UAAU;EACR,MAAM;GACJ,QAAQ;GACR,MAAM;EACR;EAEA,UAAU,EACR,MAAM,EACJ,cAAc,IAChB,EACF;EACA,aAAa,EACX,MAAM,EACJ,iBAAiB,cACnB,EACF;CACF;AACF,GACA,EACE,MAAM,KACR,CACF"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { YStack } from "@tamagui/stacks";
|
|
2
2
|
import { styled } from "@tamagui/web";
|
|
3
3
|
import { getShapeSize } from "./getShapeSize.native.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
}
|
|
4
|
+
|
|
5
|
+
var Square = styled(YStack, {
|
|
6
|
+
displayName: "Square",
|
|
7
|
+
alignItems: "center",
|
|
8
|
+
justifyContent: "center",
|
|
9
|
+
variants: {
|
|
10
|
+
size: {
|
|
11
|
+
number: getShapeSize,
|
|
12
|
+
Size: getShapeSize
|
|
13
|
+
},
|
|
14
|
+
circular: { true: { borderRadius: 1e5 } },
|
|
15
|
+
transparent: { true: { backgroundColor: "transparent" } }
|
|
16
|
+
}
|
|
17
|
+
}, { memo: true });
|
|
18
|
+
|
|
17
19
|
export { Square };
|
|
18
20
|
//# sourceMappingURL=Square.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Square.native.js","names":[],"sources":["esm/Square.native.js"],"sourcesContent":["import { YStack } from \"@tamagui/stacks\";\nimport { styled } from \"@tamagui/web\";\nimport { getShapeSize } from \"./getShapeSize\";\nvar Square = styled(YStack, {\n displayName: \"Square\",\n alignItems: \"center\",\n justifyContent: \"center\",\n variants: {\n size: {\n number: getShapeSize,\n Size: getShapeSize\n },\n // shape modifiers formerly inherited from ThemeableStack (now removed).\n circular: {\n true: {\n borderRadius: 1e5\n }\n },\n transparent: {\n true: {\n backgroundColor: \"transparent\"\n }\n }\n }\n}, {\n memo: true\n});\nexport {\n Square\n};\n//# sourceMappingURL=Square.js.map\n"],"mappings":";;;;;AAGA,IAAI,SAAS,OAAO,QAAQ;CAC1B,aAAa;CACb,YAAY;CACZ,gBAAgB;CAChB,UAAU;EACR,MAAM;GACJ,QAAQ;GACR,MAAM;EACR;EAEA,UAAU,EACR,MAAM,EACJ,cAAc,IAChB,EACF;EACA,aAAa,EACX,MAAM,EACJ,iBAAiB,cACnB,EACF;CACF;AACF,GAAG,EACD,MAAM,KACR,CAAC"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}) => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { resolveSizeToken } from "@tamagui/size";
|
|
2
|
+
|
|
3
|
+
const getShapeSize = (size, { tokens }) => {
|
|
4
|
+
const sizeToken = resolveSizeToken(size, "size");
|
|
5
|
+
const resolved = typeof sizeToken === "number" ? sizeToken : tokens.size[sizeToken] ?? sizeToken;
|
|
6
|
+
const width = resolved;
|
|
7
|
+
const height = resolved;
|
|
8
|
+
return {
|
|
9
|
+
width,
|
|
10
|
+
height,
|
|
11
|
+
minWidth: width,
|
|
12
|
+
maxWidth: width,
|
|
13
|
+
maxHeight: height,
|
|
14
|
+
minHeight: height
|
|
15
|
+
};
|
|
14
16
|
};
|
|
17
|
+
|
|
15
18
|
export { getShapeSize };
|
|
16
19
|
//# sourceMappingURL=getShapeSize.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"getShapeSize.js","names":[],"sources":["esm/getShapeSize.js"],"sourcesContent":["import { resolveSizeToken } from \"@tamagui/size\";\nconst getShapeSize = (size, { tokens }) => {\n const sizeToken = resolveSizeToken(size, \"size\");\n const resolved = typeof sizeToken === \"number\" ? sizeToken : tokens.size[sizeToken] ?? sizeToken;\n const width = resolved;\n const height = resolved;\n return {\n width,\n height,\n minWidth: width,\n maxWidth: width,\n maxHeight: height,\n minHeight: height\n };\n};\nexport {\n getShapeSize\n};\n//# sourceMappingURL=getShapeSize.js.map\n"],"mappings":";;;AACA,MAAM,gBAAgB,MAAM,EAAE,aAAa;CACzC,MAAM,YAAY,iBAAiB,MAAM,MAAM;CAC/C,MAAM,WAAW,OAAO,cAAc,WAAW,YAAY,OAAO,KAAK,cAAc;CACvF,MAAM,QAAQ;CACd,MAAM,SAAS;CACf,OAAO;EACL;EACA;EACA,UAAU;EACV,UAAU;EACV,WAAW;EACX,WAAW;CACb;AACF"}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { resolveSizeToken } from "@tamagui/size";
|
|
2
|
+
|
|
3
|
+
var getShapeSize = function(size, param) {
|
|
4
|
+
var { tokens } = param;
|
|
5
|
+
var sizeToken = resolveSizeToken(size, "size");
|
|
6
|
+
var _tokens_size_sizeToken;
|
|
7
|
+
var resolved = typeof sizeToken === "number" ? sizeToken : (_tokens_size_sizeToken = tokens.size[sizeToken]) !== null && _tokens_size_sizeToken !== void 0 ? _tokens_size_sizeToken : sizeToken;
|
|
8
|
+
var width = resolved;
|
|
9
|
+
var height = resolved;
|
|
10
|
+
return {
|
|
11
|
+
width,
|
|
12
|
+
height,
|
|
13
|
+
minWidth: width,
|
|
14
|
+
maxWidth: width,
|
|
15
|
+
maxHeight: height,
|
|
16
|
+
minHeight: height
|
|
17
|
+
};
|
|
17
18
|
};
|
|
19
|
+
|
|
18
20
|
export { getShapeSize };
|
|
19
21
|
//# sourceMappingURL=getShapeSize.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"getShapeSize.native.js","names":[],"sources":["esm/getShapeSize.native.js"],"sourcesContent":["import { resolveSizeToken } from \"@tamagui/size\";\nvar getShapeSize = function(size, param) {\n var { tokens } = param;\n var sizeToken = resolveSizeToken(size, \"size\");\n var _tokens_size_sizeToken;\n var resolved = typeof sizeToken === \"number\" ? sizeToken : (_tokens_size_sizeToken = tokens.size[sizeToken]) !== null && _tokens_size_sizeToken !== void 0 ? _tokens_size_sizeToken : sizeToken;\n var width = resolved;\n var height = resolved;\n return {\n width,\n height,\n minWidth: width,\n maxWidth: width,\n maxHeight: height,\n minHeight: height\n };\n};\nexport {\n getShapeSize\n};\n//# sourceMappingURL=getShapeSize.js.map\n"],"mappings":";;;AACA,IAAI,eAAe,SAAS,MAAM,OAAO;CACvC,IAAI,EAAE,WAAW;CACjB,IAAI,YAAY,iBAAiB,MAAM,MAAM;CAC7C,IAAI;CACJ,IAAI,WAAW,OAAO,cAAc,WAAW,aAAa,yBAAyB,OAAO,KAAK,gBAAgB,QAAQ,2BAA2B,KAAK,IAAI,yBAAyB;CACtL,IAAI,QAAQ;CACZ,IAAI,SAAS;CACb,OAAO;EACL;EACA;EACA,UAAU;EACV,UAAU;EACV,WAAW;EACX,WAAW;CACb;AACF"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * from "./Square.mjs"
|
|
2
|
-
|
|
3
|
-
export * from "./
|
|
4
|
-
|
|
1
|
+
export * from "./Square.mjs"
|
|
2
|
+
|
|
3
|
+
export * from "./Circle.mjs"
|
|
4
|
+
|
|
5
|
+
export * from "./getShapeSize.mjs"
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * from "./Square.mjs"
|
|
2
|
-
|
|
3
|
-
export * from "./
|
|
4
|
-
|
|
1
|
+
export * from "./Square.mjs"
|
|
2
|
+
|
|
3
|
+
export * from "./Circle.mjs"
|
|
4
|
+
|
|
5
|
+
export * from "./getShapeSize.mjs"
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * from "./Square.native.js"
|
|
2
|
-
|
|
3
|
-
export * from "./
|
|
4
|
-
|
|
1
|
+
export * from "./Square.native.js"
|
|
2
|
+
|
|
3
|
+
export * from "./Circle.native.js"
|
|
4
|
+
|
|
5
|
+
export * from "./getShapeSize.native.js"
|
package/dist/jsx/Circle.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { styled } from "@tamagui/web";
|
|
2
2
|
import { Square } from "./Square.mjs";
|
|
3
|
+
|
|
3
4
|
const Circle = styled(Square, {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
displayName: "Circle",
|
|
6
|
+
borderRadius: 1e8
|
|
6
7
|
});
|
|
8
|
+
|
|
7
9
|
export { Circle };
|
|
8
10
|
//# sourceMappingURL=Circle.mjs.map
|
package/dist/jsx/Circle.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Circle.js","names":[],"sources":["jsx/Circle.js"],"sourcesContent":["import { styled } from \"@tamagui/web\";\nimport { Square } from \"./Square\";\nconst Circle = styled(Square, {\n displayName: \"Circle\",\n borderRadius: 1e8\n});\nexport {\n Circle\n};\n//# sourceMappingURL=Circle.js.map\n"],"mappings":";;;;AAEA,MAAM,SAAS,OAAO,QAAQ;CAC5B,aAAa;CACb,cAAc;AAChB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var Circle_exports = {};
|
|
25
|
+
__export(Circle_exports, { Circle: () => Circle });
|
|
26
|
+
module.exports = __toCommonJS(Circle_exports);
|
|
27
|
+
var import_web = require("@tamagui/web");
|
|
28
|
+
var import_Square = require("./Square.native.js");
|
|
29
|
+
var Circle = (0, import_web.styled)(import_Square.Square, {
|
|
30
|
+
displayName: "Circle",
|
|
31
|
+
borderRadius: 1e8
|
|
32
|
+
});
|
|
@@ -1,36 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
8
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
12
13
|
};
|
|
13
14
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
21
22
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
24
|
var Circle_exports = {};
|
|
26
|
-
__export(Circle_exports, {
|
|
27
|
-
Circle: () => Circle
|
|
28
|
-
});
|
|
25
|
+
__export(Circle_exports, { Circle: () => Circle });
|
|
29
26
|
module.exports = __toCommonJS(Circle_exports);
|
|
30
27
|
var import_web = require("@tamagui/web");
|
|
31
28
|
var import_Square = require("./Square.native.js");
|
|
32
29
|
var Circle = (0, import_web.styled)(import_Square.Square, {
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
displayName: "Circle",
|
|
31
|
+
borderRadius: 1e8
|
|
35
32
|
});
|
|
33
|
+
|
|
36
34
|
//# sourceMappingURL=Circle.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Circle.native.js","names":[],"sources":["jsx/Circle.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Circle_exports = {};\n__export(Circle_exports, {\n Circle: () => Circle\n});\nmodule.exports = __toCommonJS(Circle_exports);\nvar import_web = require(\"@tamagui/web\");\nvar import_Square = require(\"./Square\");\nvar Circle = (0, import_web.styled)(import_Square.Square, {\n displayName: \"Circle\",\n borderRadius: 1e8\n});\n//# sourceMappingURL=Circle.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,iBAAiB,CAAC;AACtB,SAAS,gBAAgB,EACvB,cAAc,OAChB,CAAC;AACD,OAAO,UAAU,aAAa,cAAc;AAC5C,IAAI,aAAa,QAAQ,cAAc;AACvC,IAAI,gBAAgB,QAAQ,oBAAU;AACtC,IAAI,UAAU,GAAG,WAAW,QAAQ,cAAc,QAAQ;CACxD,aAAa;CACb,cAAc;AAChB,CAAC"}
|
package/dist/jsx/Square.mjs
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { YStack } from "@tamagui/stacks";
|
|
2
2
|
import { styled } from "@tamagui/web";
|
|
3
3
|
import { getShapeSize } from "./getShapeSize.mjs";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
}
|
|
4
|
+
|
|
5
|
+
const Square = styled(YStack, {
|
|
6
|
+
displayName: "Square",
|
|
7
|
+
alignItems: "center",
|
|
8
|
+
justifyContent: "center",
|
|
9
|
+
variants: {
|
|
10
|
+
size: {
|
|
11
|
+
number: getShapeSize,
|
|
12
|
+
Size: getShapeSize
|
|
13
|
+
},
|
|
14
|
+
circular: { true: { borderRadius: 1e5 } },
|
|
15
|
+
transparent: { true: { backgroundColor: "transparent" } }
|
|
16
|
+
}
|
|
17
|
+
}, { memo: true });
|
|
18
|
+
|
|
17
19
|
export { Square };
|
|
18
20
|
//# sourceMappingURL=Square.mjs.map
|
package/dist/jsx/Square.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Square.js","names":[],"sources":["jsx/Square.js"],"sourcesContent":["import { YStack } from \"@tamagui/stacks\";\nimport { styled } from \"@tamagui/web\";\nimport { getShapeSize } from \"./getShapeSize\";\nconst Square = styled(\n YStack,\n {\n displayName: \"Square\",\n alignItems: \"center\",\n justifyContent: \"center\",\n variants: {\n size: {\n number: getShapeSize,\n Size: getShapeSize\n },\n // shape modifiers formerly inherited from ThemeableStack (now removed).\n circular: {\n true: {\n borderRadius: 1e5\n }\n },\n transparent: {\n true: {\n backgroundColor: \"transparent\"\n }\n }\n }\n },\n {\n memo: true\n }\n);\nexport {\n Square\n};\n//# sourceMappingURL=Square.js.map\n"],"mappings":";;;;;AAGA,MAAM,SAAS,OACb,QACA;CACE,aAAa;CACb,YAAY;CACZ,gBAAgB;CAChB,UAAU;EACR,MAAM;GACJ,QAAQ;GACR,MAAM;EACR;EAEA,UAAU,EACR,MAAM,EACJ,cAAc,IAChB,EACF;EACA,aAAa,EACX,MAAM,EACJ,iBAAiB,cACnB,EACF;CACF;AACF,GACA,EACE,MAAM,KACR,CACF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var Square_exports = {};
|
|
25
|
+
__export(Square_exports, { Square: () => Square });
|
|
26
|
+
module.exports = __toCommonJS(Square_exports);
|
|
27
|
+
var import_stacks = require("@tamagui/stacks");
|
|
28
|
+
var import_web = require("@tamagui/web");
|
|
29
|
+
var import_getShapeSize = require("./getShapeSize.native.js");
|
|
30
|
+
var Square = (0, import_web.styled)(import_stacks.YStack, {
|
|
31
|
+
displayName: "Square",
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
justifyContent: "center",
|
|
34
|
+
variants: {
|
|
35
|
+
size: {
|
|
36
|
+
number: import_getShapeSize.getShapeSize,
|
|
37
|
+
Size: import_getShapeSize.getShapeSize
|
|
38
|
+
},
|
|
39
|
+
circular: { true: { borderRadius: 1e5 } },
|
|
40
|
+
transparent: { true: { backgroundColor: "transparent" } }
|
|
41
|
+
}
|
|
42
|
+
}, { memo: true });
|
|
@@ -1,46 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
8
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
12
13
|
};
|
|
13
14
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
21
22
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
24
|
var Square_exports = {};
|
|
26
|
-
__export(Square_exports, {
|
|
27
|
-
Square: () => Square
|
|
28
|
-
});
|
|
25
|
+
__export(Square_exports, { Square: () => Square });
|
|
29
26
|
module.exports = __toCommonJS(Square_exports);
|
|
30
27
|
var import_stacks = require("@tamagui/stacks");
|
|
31
28
|
var import_web = require("@tamagui/web");
|
|
32
29
|
var import_getShapeSize = require("./getShapeSize.native.js");
|
|
33
|
-
var Square = (0, import_web.styled)(import_stacks.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
});
|
|
30
|
+
var Square = (0, import_web.styled)(import_stacks.YStack, {
|
|
31
|
+
displayName: "Square",
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
justifyContent: "center",
|
|
34
|
+
variants: {
|
|
35
|
+
size: {
|
|
36
|
+
number: import_getShapeSize.getShapeSize,
|
|
37
|
+
Size: import_getShapeSize.getShapeSize
|
|
38
|
+
},
|
|
39
|
+
circular: { true: { borderRadius: 1e5 } },
|
|
40
|
+
transparent: { true: { backgroundColor: "transparent" } }
|
|
41
|
+
}
|
|
42
|
+
}, { memo: true });
|
|
43
|
+
|
|
46
44
|
//# sourceMappingURL=Square.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Square.native.js","names":[],"sources":["jsx/Square.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Square_exports = {};\n__export(Square_exports, {\n Square: () => Square\n});\nmodule.exports = __toCommonJS(Square_exports);\nvar import_stacks = require(\"@tamagui/stacks\");\nvar import_web = require(\"@tamagui/web\");\nvar import_getShapeSize = require(\"./getShapeSize\");\nvar Square = (0, import_web.styled)(import_stacks.YStack, {\n displayName: \"Square\",\n alignItems: \"center\",\n justifyContent: \"center\",\n variants: {\n size: {\n number: import_getShapeSize.getShapeSize,\n Size: import_getShapeSize.getShapeSize\n },\n // shape modifiers formerly inherited from ThemeableStack (now removed).\n circular: {\n true: {\n borderRadius: 1e5\n }\n },\n transparent: {\n true: {\n backgroundColor: \"transparent\"\n }\n }\n }\n}, {\n memo: true\n});\n//# sourceMappingURL=Square.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,iBAAiB,CAAC;AACtB,SAAS,gBAAgB,EACvB,cAAc,OAChB,CAAC;AACD,OAAO,UAAU,aAAa,cAAc;AAC5C,IAAI,gBAAgB,QAAQ,iBAAiB;AAC7C,IAAI,aAAa,QAAQ,cAAc;AACvC,IAAI,sBAAsB,QAAQ,0BAAgB;AAClD,IAAI,UAAU,GAAG,WAAW,QAAQ,cAAc,QAAQ;CACxD,aAAa;CACb,YAAY;CACZ,gBAAgB;CAChB,UAAU;EACR,MAAM;GACJ,QAAQ,oBAAoB;GAC5B,MAAM,oBAAoB;EAC5B;EAEA,UAAU,EACR,MAAM,EACJ,cAAc,IAChB,EACF;EACA,aAAa,EACX,MAAM,EACJ,iBAAiB,cACnB,EACF;CACF;AACF,GAAG,EACD,MAAM,KACR,CAAC"}
|