@tamagui/shapes 1.0.1-beta.100

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.
@@ -0,0 +1,33 @@
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: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var Circle_exports = {};
19
+ __export(Circle_exports, {
20
+ Circle: () => Circle
21
+ });
22
+ module.exports = __toCommonJS(Circle_exports);
23
+ var import_core = require("@tamagui/core");
24
+ var import_Square = require("./Square");
25
+ const Circle = (0, import_core.styled)(import_Square.Square, {
26
+ name: "Circle",
27
+ circular: true
28
+ });
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ Circle
32
+ });
33
+ //# sourceMappingURL=Circle.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Circle.tsx"],
4
+ "sourcesContent": ["import { GetProps, styled } from '@tamagui/core'\n\nimport { Square } from './Square'\n\nexport const Circle = styled(Square, {\n name: 'Circle',\n circular: true,\n})\n\nexport type CircleProps = GetProps<typeof Circle>\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiC;AAEjC,oBAAuB;AAEhB,MAAM,SAAS,wBAAO,sBAAQ;AAAA,EACnC,MAAM;AAAA,EACN,UAAU;AACZ,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,46 @@
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: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var Square_exports = {};
19
+ __export(Square_exports, {
20
+ Square: () => Square
21
+ });
22
+ module.exports = __toCommonJS(Square_exports);
23
+ var import_core = require("@tamagui/core");
24
+ var import_stacks = require("@tamagui/stacks");
25
+ var import_getShapeSize = require("./getShapeSize");
26
+ const Square = (0, import_core.styled)(import_stacks.ThemeableStack, {
27
+ name: "Square",
28
+ alignItems: "center",
29
+ justifyContent: "center",
30
+ backgrounded: true,
31
+ variants: {
32
+ circular: {
33
+ true: {
34
+ borderRadius: 1e5
35
+ }
36
+ },
37
+ size: {
38
+ "...size": import_getShapeSize.getShapeSize
39
+ }
40
+ }
41
+ });
42
+ // Annotate the CommonJS export names for ESM import in node:
43
+ 0 && (module.exports = {
44
+ Square
45
+ });
46
+ //# sourceMappingURL=Square.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Square.tsx"],
4
+ "sourcesContent": ["import { GetProps, styled } from '@tamagui/core'\nimport { ThemeableStack } from '@tamagui/stacks'\n\nimport { getShapeSize } from './getShapeSize'\n\nexport const Square = styled(ThemeableStack, {\n name: 'Square',\n alignItems: 'center',\n justifyContent: 'center',\n backgrounded: true,\n\n variants: {\n circular: {\n true: {\n borderRadius: 100_000,\n },\n },\n\n size: {\n '...size': getShapeSize,\n },\n },\n})\n\nexport type SquareProps = GetProps<typeof Square>\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiC;AACjC,oBAA+B;AAE/B,0BAA6B;AAEtB,MAAM,SAAS,wBAAO,8BAAgB;AAAA,EAC3C,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,cAAc;AAAA,EAEd,UAAU;AAAA,IACR,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,cAAc;AAAA,MAChB;AAAA,IACF;AAAA,IAEA,MAAM;AAAA,MACJ,WAAW;AAAA,IACb;AAAA,EACF;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,39 @@
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: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var getShapeSize_exports = {};
19
+ __export(getShapeSize_exports, {
20
+ getShapeSize: () => getShapeSize
21
+ });
22
+ module.exports = __toCommonJS(getShapeSize_exports);
23
+ const getShapeSize = (size, { tokens }) => {
24
+ const width = tokens.size[size] ?? size;
25
+ const height = tokens.size[size] ?? size;
26
+ return {
27
+ width,
28
+ height,
29
+ minWidth: width,
30
+ maxWidth: width,
31
+ maxHeight: height,
32
+ minHeight: height
33
+ };
34
+ };
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ getShapeSize
38
+ });
39
+ //# sourceMappingURL=getShapeSize.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/getShapeSize.tsx"],
4
+ "sourcesContent": ["import { SizeVariantSpreadFunction } from '@tamagui/core'\nimport { SizableStackProps } from '@tamagui/stacks'\n\nexport const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (size, { tokens }) => {\n const width = tokens.size[size] ?? size\n const height = tokens.size[size] ?? size\n return {\n width,\n height,\n minWidth: width,\n maxWidth: width,\n maxHeight: height,\n minHeight: height,\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,eAA6D,CAAC,MAAM,EAAE,aAAa;AAC9F,QAAM,QAAQ,OAAO,KAAK,SAAS;AACnC,QAAM,SAAS,OAAO,KAAK,SAAS;AACpC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,20 @@
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
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var src_exports = {};
16
+ module.exports = __toCommonJS(src_exports);
17
+ __reExport(src_exports, require("./Square"), module.exports);
18
+ __reExport(src_exports, require("./Circle"), module.exports);
19
+ __reExport(src_exports, require("./getShapeSize"), module.exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["export * from './Square'\nexport * from './Circle'\nexport * from './getShapeSize'\n"],
5
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,qBAAd;AACA,wBAAc,qBADd;AAEA,wBAAc,2BAFd;",
6
+ "names": []
7
+ }
@@ -0,0 +1,10 @@
1
+ import { styled } from "@tamagui/core";
2
+ import { Square } from "./Square";
3
+ const Circle = styled(Square, {
4
+ name: "Circle",
5
+ circular: true
6
+ });
7
+ export {
8
+ Circle
9
+ };
10
+ //# sourceMappingURL=Circle.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Circle.tsx"],
4
+ "sourcesContent": ["import { GetProps, styled } from '@tamagui/core'\n\nimport { Square } from './Square'\n\nexport const Circle = styled(Square, {\n name: 'Circle',\n circular: true,\n})\n\nexport type CircleProps = GetProps<typeof Circle>\n"],
5
+ "mappings": "AAAA;AAEA;AAEO,MAAM,SAAS,OAAO,QAAQ;AAAA,EACnC,MAAM;AAAA,EACN,UAAU;AACZ,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,23 @@
1
+ import { styled } from "@tamagui/core";
2
+ import { ThemeableStack } from "@tamagui/stacks";
3
+ import { getShapeSize } from "./getShapeSize";
4
+ const Square = styled(ThemeableStack, {
5
+ name: "Square",
6
+ alignItems: "center",
7
+ justifyContent: "center",
8
+ backgrounded: true,
9
+ variants: {
10
+ circular: {
11
+ true: {
12
+ borderRadius: 1e5
13
+ }
14
+ },
15
+ size: {
16
+ "...size": getShapeSize
17
+ }
18
+ }
19
+ });
20
+ export {
21
+ Square
22
+ };
23
+ //# sourceMappingURL=Square.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Square.tsx"],
4
+ "sourcesContent": ["import { GetProps, styled } from '@tamagui/core'\nimport { ThemeableStack } from '@tamagui/stacks'\n\nimport { getShapeSize } from './getShapeSize'\n\nexport const Square = styled(ThemeableStack, {\n name: 'Square',\n alignItems: 'center',\n justifyContent: 'center',\n backgrounded: true,\n\n variants: {\n circular: {\n true: {\n borderRadius: 100_000,\n },\n },\n\n size: {\n '...size': getShapeSize,\n },\n },\n})\n\nexport type SquareProps = GetProps<typeof Square>\n"],
5
+ "mappings": "AAAA;AACA;AAEA;AAEO,MAAM,SAAS,OAAO,gBAAgB;AAAA,EAC3C,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,cAAc;AAAA,EAEd,UAAU;AAAA,IACR,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,cAAc;AAAA,MAChB;AAAA,IACF;AAAA,IAEA,MAAM;AAAA,MACJ,WAAW;AAAA,IACb;AAAA,EACF;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,16 @@
1
+ const getShapeSize = (size, { tokens }) => {
2
+ const width = tokens.size[size] ?? size;
3
+ const height = tokens.size[size] ?? size;
4
+ return {
5
+ width,
6
+ height,
7
+ minWidth: width,
8
+ maxWidth: width,
9
+ maxHeight: height,
10
+ minHeight: height
11
+ };
12
+ };
13
+ export {
14
+ getShapeSize
15
+ };
16
+ //# sourceMappingURL=getShapeSize.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/getShapeSize.tsx"],
4
+ "sourcesContent": ["import { SizeVariantSpreadFunction } from '@tamagui/core'\nimport { SizableStackProps } from '@tamagui/stacks'\n\nexport const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (size, { tokens }) => {\n const width = tokens.size[size] ?? size\n const height = tokens.size[size] ?? size\n return {\n width,\n height,\n minWidth: width,\n maxWidth: width,\n maxHeight: height,\n minHeight: height,\n }\n}\n"],
5
+ "mappings": "AAGO,MAAM,eAA6D,CAAC,MAAM,EAAE,aAAa;AAC9F,QAAM,QAAQ,OAAO,KAAK,SAAS;AACnC,QAAM,SAAS,OAAO,KAAK,SAAS;AACpC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./Square";
2
+ export * from "./Circle";
3
+ export * from "./getShapeSize";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["export * from './Square'\nexport * from './Circle'\nexport * from './getShapeSize'\n"],
5
+ "mappings": "AAAA;AACA;AACA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,10 @@
1
+ import { styled } from "@tamagui/core";
2
+ import { Square } from "./Square";
3
+ const Circle = styled(Square, {
4
+ name: "Circle",
5
+ circular: true
6
+ });
7
+ export {
8
+ Circle
9
+ };
10
+ //# sourceMappingURL=Circle.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Circle.tsx"],
4
+ "sourcesContent": ["import { GetProps, styled } from '@tamagui/core'\n\nimport { Square } from './Square'\n\nexport const Circle = styled(Square, {\n name: 'Circle',\n circular: true,\n})\n\nexport type CircleProps = GetProps<typeof Circle>\n"],
5
+ "mappings": "AAAA;AAEA;AAEO,MAAM,SAAS,OAAO,QAAQ;AAAA,EACnC,MAAM;AAAA,EACN,UAAU;AACZ,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,23 @@
1
+ import { styled } from "@tamagui/core";
2
+ import { ThemeableStack } from "@tamagui/stacks";
3
+ import { getShapeSize } from "./getShapeSize";
4
+ const Square = styled(ThemeableStack, {
5
+ name: "Square",
6
+ alignItems: "center",
7
+ justifyContent: "center",
8
+ backgrounded: true,
9
+ variants: {
10
+ circular: {
11
+ true: {
12
+ borderRadius: 1e5
13
+ }
14
+ },
15
+ size: {
16
+ "...size": getShapeSize
17
+ }
18
+ }
19
+ });
20
+ export {
21
+ Square
22
+ };
23
+ //# sourceMappingURL=Square.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Square.tsx"],
4
+ "sourcesContent": ["import { GetProps, styled } from '@tamagui/core'\nimport { ThemeableStack } from '@tamagui/stacks'\n\nimport { getShapeSize } from './getShapeSize'\n\nexport const Square = styled(ThemeableStack, {\n name: 'Square',\n alignItems: 'center',\n justifyContent: 'center',\n backgrounded: true,\n\n variants: {\n circular: {\n true: {\n borderRadius: 100_000,\n },\n },\n\n size: {\n '...size': getShapeSize,\n },\n },\n})\n\nexport type SquareProps = GetProps<typeof Square>\n"],
5
+ "mappings": "AAAA;AACA;AAEA;AAEO,MAAM,SAAS,OAAO,gBAAgB;AAAA,EAC3C,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,cAAc;AAAA,EAEd,UAAU;AAAA,IACR,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,cAAc;AAAA,MAChB;AAAA,IACF;AAAA,IAEA,MAAM;AAAA,MACJ,WAAW;AAAA,IACb;AAAA,EACF;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,17 @@
1
+ const getShapeSize = (size, { tokens }) => {
2
+ var _a, _b;
3
+ const width = (_a = tokens.size[size]) != null ? _a : size;
4
+ const height = (_b = tokens.size[size]) != null ? _b : size;
5
+ return {
6
+ width,
7
+ height,
8
+ minWidth: width,
9
+ maxWidth: width,
10
+ maxHeight: height,
11
+ minHeight: height
12
+ };
13
+ };
14
+ export {
15
+ getShapeSize
16
+ };
17
+ //# sourceMappingURL=getShapeSize.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/getShapeSize.tsx"],
4
+ "sourcesContent": ["import { SizeVariantSpreadFunction } from '@tamagui/core'\nimport { SizableStackProps } from '@tamagui/stacks'\n\nexport const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (size, { tokens }) => {\n const width = tokens.size[size] ?? size\n const height = tokens.size[size] ?? size\n return {\n width,\n height,\n minWidth: width,\n maxWidth: width,\n maxHeight: height,\n minHeight: height,\n }\n}\n"],
5
+ "mappings": "AAGO,MAAM,eAA6D,CAAC,MAAM,EAAE,aAAa;AAHhG;AAIE,QAAM,QAAQ,aAAO,KAAK,UAAZ,YAAqB;AACnC,QAAM,SAAS,aAAO,KAAK,UAAZ,YAAqB;AACpC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./Square";
2
+ export * from "./Circle";
3
+ export * from "./getShapeSize";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["export * from './Square'\nexport * from './Circle'\nexport * from './getShapeSize'\n"],
5
+ "mappings": "AAAA;AACA;AACA;",
6
+ "names": []
7
+ }
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@tamagui/shapes",
3
+ "version": "1.0.1-beta.100",
4
+ "sideEffects": [
5
+ "*.css"
6
+ ],
7
+ "source": "src/index.ts",
8
+ "types": "./types/index.d.ts",
9
+ "main": "dist/cjs",
10
+ "module": "dist/esm",
11
+ "module:jsx": "dist/jsx",
12
+ "files": [
13
+ "src",
14
+ "types",
15
+ "dist"
16
+ ],
17
+ "scripts": {
18
+ "build": "tamagui-build",
19
+ "watch": "tamagui-build --watch",
20
+ "clean": "tamagui-build clean",
21
+ "clean:build": "tamagui-build clean:build"
22
+ },
23
+ "dependencies": {
24
+ "@tamagui/core": "^1.0.1-beta.100",
25
+ "@tamagui/stacks": "^1.0.1-beta.100"
26
+ },
27
+ "peerDependencies": {
28
+ "react": "*"
29
+ },
30
+ "devDependencies": {
31
+ "@tamagui/build": "^1.0.1-beta.100",
32
+ "react": "*"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public"
36
+ }
37
+ }
package/src/Circle.tsx ADDED
@@ -0,0 +1,10 @@
1
+ import { GetProps, styled } from '@tamagui/core'
2
+
3
+ import { Square } from './Square'
4
+
5
+ export const Circle = styled(Square, {
6
+ name: 'Circle',
7
+ circular: true,
8
+ })
9
+
10
+ export type CircleProps = GetProps<typeof Circle>
package/src/Square.tsx ADDED
@@ -0,0 +1,25 @@
1
+ import { GetProps, styled } from '@tamagui/core'
2
+ import { ThemeableStack } from '@tamagui/stacks'
3
+
4
+ import { getShapeSize } from './getShapeSize'
5
+
6
+ export const Square = styled(ThemeableStack, {
7
+ name: 'Square',
8
+ alignItems: 'center',
9
+ justifyContent: 'center',
10
+ backgrounded: true,
11
+
12
+ variants: {
13
+ circular: {
14
+ true: {
15
+ borderRadius: 100_000,
16
+ },
17
+ },
18
+
19
+ size: {
20
+ '...size': getShapeSize,
21
+ },
22
+ },
23
+ })
24
+
25
+ export type SquareProps = GetProps<typeof Square>
@@ -0,0 +1,15 @@
1
+ import { SizeVariantSpreadFunction } from '@tamagui/core'
2
+ import { SizableStackProps } from '@tamagui/stacks'
3
+
4
+ export const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (size, { tokens }) => {
5
+ const width = tokens.size[size] ?? size
6
+ const height = tokens.size[size] ?? size
7
+ return {
8
+ width,
9
+ height,
10
+ minWidth: width,
11
+ maxWidth: width,
12
+ maxHeight: height,
13
+ minHeight: height,
14
+ }
15
+ }
package/src/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from './Square'
2
+ export * from './Circle'
3
+ export * from './getShapeSize'
@@ -0,0 +1,145 @@
1
+ import { GetProps } from '@tamagui/core';
2
+ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
3
+ readonly fullscreen?: boolean | undefined;
4
+ readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
5
+ } & {
6
+ fontFamily?: unknown;
7
+ backgrounded?: boolean | undefined;
8
+ radiused?: boolean | undefined;
9
+ hoverTheme?: boolean | undefined;
10
+ pressTheme?: boolean | undefined;
11
+ focusTheme?: boolean | undefined;
12
+ circular?: boolean | undefined;
13
+ padded?: boolean | undefined;
14
+ elevate?: boolean | undefined;
15
+ bordered?: number | boolean | undefined;
16
+ transparent?: boolean | undefined;
17
+ chromeless?: boolean | undefined;
18
+ }, "size" | "circular"> & {
19
+ circular?: boolean | undefined;
20
+ size?: import("@tamagui/core").SizeTokens | undefined;
21
+ } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
22
+ readonly fullscreen?: boolean | undefined;
23
+ readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
24
+ } & {
25
+ fontFamily?: unknown;
26
+ backgrounded?: boolean | undefined;
27
+ radiused?: boolean | undefined;
28
+ hoverTheme?: boolean | undefined;
29
+ pressTheme?: boolean | undefined;
30
+ focusTheme?: boolean | undefined;
31
+ circular?: boolean | undefined;
32
+ padded?: boolean | undefined;
33
+ elevate?: boolean | undefined;
34
+ bordered?: number | boolean | undefined;
35
+ transparent?: boolean | undefined;
36
+ chromeless?: boolean | undefined;
37
+ }, "size" | "circular"> & {
38
+ circular?: boolean | undefined;
39
+ size?: import("@tamagui/core").SizeTokens | undefined;
40
+ }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
41
+ readonly fullscreen?: boolean | undefined;
42
+ readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
43
+ } & {
44
+ fontFamily?: unknown;
45
+ backgrounded?: boolean | undefined;
46
+ radiused?: boolean | undefined;
47
+ hoverTheme?: boolean | undefined;
48
+ pressTheme?: boolean | undefined;
49
+ focusTheme?: boolean | undefined;
50
+ circular?: boolean | undefined;
51
+ padded?: boolean | undefined;
52
+ elevate?: boolean | undefined;
53
+ bordered?: number | boolean | undefined;
54
+ transparent?: boolean | undefined;
55
+ chromeless?: boolean | undefined;
56
+ }, "size" | "circular"> & {
57
+ circular?: boolean | undefined;
58
+ size?: import("@tamagui/core").SizeTokens | undefined;
59
+ }>>) | (Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
60
+ readonly fullscreen?: boolean | undefined;
61
+ readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
62
+ } & {
63
+ fontFamily?: unknown;
64
+ backgrounded?: boolean | undefined;
65
+ radiused?: boolean | undefined;
66
+ hoverTheme?: boolean | undefined;
67
+ pressTheme?: boolean | undefined;
68
+ focusTheme?: boolean | undefined;
69
+ circular?: boolean | undefined;
70
+ padded?: boolean | undefined;
71
+ elevate?: boolean | undefined;
72
+ bordered?: number | boolean | undefined;
73
+ transparent?: boolean | undefined;
74
+ chromeless?: boolean | undefined;
75
+ } & {
76
+ circular?: boolean | undefined;
77
+ size?: import("@tamagui/core").SizeTokens | undefined;
78
+ }, string | number> & {
79
+ [x: string]: undefined;
80
+ } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
81
+ readonly fullscreen?: boolean | undefined;
82
+ readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
83
+ } & {
84
+ fontFamily?: unknown;
85
+ backgrounded?: boolean | undefined;
86
+ radiused?: boolean | undefined;
87
+ hoverTheme?: boolean | undefined;
88
+ pressTheme?: boolean | undefined;
89
+ focusTheme?: boolean | undefined;
90
+ circular?: boolean | undefined;
91
+ padded?: boolean | undefined;
92
+ elevate?: boolean | undefined;
93
+ bordered?: number | boolean | undefined;
94
+ transparent?: boolean | undefined;
95
+ chromeless?: boolean | undefined;
96
+ } & {
97
+ circular?: boolean | undefined;
98
+ size?: import("@tamagui/core").SizeTokens | undefined;
99
+ }, string | number> & {
100
+ [x: string]: undefined;
101
+ }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
102
+ readonly fullscreen?: boolean | undefined;
103
+ readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
104
+ } & {
105
+ fontFamily?: unknown;
106
+ backgrounded?: boolean | undefined;
107
+ radiused?: boolean | undefined;
108
+ hoverTheme?: boolean | undefined;
109
+ pressTheme?: boolean | undefined;
110
+ focusTheme?: boolean | undefined;
111
+ circular?: boolean | undefined;
112
+ padded?: boolean | undefined;
113
+ elevate?: boolean | undefined;
114
+ bordered?: number | boolean | undefined;
115
+ transparent?: boolean | undefined;
116
+ chromeless?: boolean | undefined;
117
+ } & {
118
+ circular?: boolean | undefined;
119
+ size?: import("@tamagui/core").SizeTokens | undefined;
120
+ }, string | number> & {
121
+ [x: string]: undefined;
122
+ }>>), any, import("@tamagui/core").StackPropsBase, {
123
+ readonly fullscreen?: boolean | undefined;
124
+ readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
125
+ } & {
126
+ fontFamily?: unknown;
127
+ backgrounded?: boolean | undefined;
128
+ radiused?: boolean | undefined;
129
+ hoverTheme?: boolean | undefined;
130
+ pressTheme?: boolean | undefined;
131
+ focusTheme?: boolean | undefined;
132
+ circular?: boolean | undefined;
133
+ padded?: boolean | undefined;
134
+ elevate?: boolean | undefined;
135
+ bordered?: number | boolean | undefined;
136
+ transparent?: boolean | undefined;
137
+ chromeless?: boolean | undefined;
138
+ } & {
139
+ circular?: boolean | undefined;
140
+ size?: import("@tamagui/core").SizeTokens | undefined;
141
+ } & ({} | {
142
+ [x: string]: undefined;
143
+ })>;
144
+ export declare type CircleProps = GetProps<typeof Circle>;
145
+ //# sourceMappingURL=Circle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Circle.d.ts","sourceRoot":"","sources":["../src/Circle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAU,MAAM,eAAe,CAAA;AAIhD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGjB,CAAA;AAEF,oBAAY,WAAW,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA"}
@@ -0,0 +1,80 @@
1
+ import { GetProps } from '@tamagui/core';
2
+ export declare const Square: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
3
+ readonly fullscreen?: boolean | undefined;
4
+ readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
5
+ } & {
6
+ fontFamily?: unknown;
7
+ backgrounded?: boolean | undefined;
8
+ radiused?: boolean | undefined;
9
+ hoverTheme?: boolean | undefined;
10
+ pressTheme?: boolean | undefined;
11
+ focusTheme?: boolean | undefined;
12
+ circular?: boolean | undefined;
13
+ padded?: boolean | undefined;
14
+ elevate?: boolean | undefined;
15
+ bordered?: number | boolean | undefined;
16
+ transparent?: boolean | undefined;
17
+ chromeless?: boolean | undefined;
18
+ }, "size" | "circular"> & {
19
+ circular?: boolean | undefined;
20
+ size?: import("@tamagui/core").SizeTokens | undefined;
21
+ } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
22
+ readonly fullscreen?: boolean | undefined;
23
+ readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
24
+ } & {
25
+ fontFamily?: unknown;
26
+ backgrounded?: boolean | undefined;
27
+ radiused?: boolean | undefined;
28
+ hoverTheme?: boolean | undefined;
29
+ pressTheme?: boolean | undefined;
30
+ focusTheme?: boolean | undefined;
31
+ circular?: boolean | undefined;
32
+ padded?: boolean | undefined;
33
+ elevate?: boolean | undefined;
34
+ bordered?: number | boolean | undefined;
35
+ transparent?: boolean | undefined;
36
+ chromeless?: boolean | undefined;
37
+ }, "size" | "circular"> & {
38
+ circular?: boolean | undefined;
39
+ size?: import("@tamagui/core").SizeTokens | undefined;
40
+ }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
41
+ readonly fullscreen?: boolean | undefined;
42
+ readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
43
+ } & {
44
+ fontFamily?: unknown;
45
+ backgrounded?: boolean | undefined;
46
+ radiused?: boolean | undefined;
47
+ hoverTheme?: boolean | undefined;
48
+ pressTheme?: boolean | undefined;
49
+ focusTheme?: boolean | undefined;
50
+ circular?: boolean | undefined;
51
+ padded?: boolean | undefined;
52
+ elevate?: boolean | undefined;
53
+ bordered?: number | boolean | undefined;
54
+ transparent?: boolean | undefined;
55
+ chromeless?: boolean | undefined;
56
+ }, "size" | "circular"> & {
57
+ circular?: boolean | undefined;
58
+ size?: import("@tamagui/core").SizeTokens | undefined;
59
+ }>>, any, import("@tamagui/core").StackPropsBase, {
60
+ readonly fullscreen?: boolean | undefined;
61
+ readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
62
+ } & {
63
+ fontFamily?: unknown;
64
+ backgrounded?: boolean | undefined;
65
+ radiused?: boolean | undefined;
66
+ hoverTheme?: boolean | undefined;
67
+ pressTheme?: boolean | undefined;
68
+ focusTheme?: boolean | undefined;
69
+ circular?: boolean | undefined;
70
+ padded?: boolean | undefined;
71
+ elevate?: boolean | undefined;
72
+ bordered?: number | boolean | undefined;
73
+ transparent?: boolean | undefined;
74
+ chromeless?: boolean | undefined;
75
+ } & {
76
+ circular?: boolean | undefined;
77
+ size?: import("@tamagui/core").SizeTokens | undefined;
78
+ }>;
79
+ export declare type SquareProps = GetProps<typeof Square>;
80
+ //# sourceMappingURL=Square.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Square.d.ts","sourceRoot":"","sources":["../src/Square.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAU,MAAM,eAAe,CAAA;AAKhD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBjB,CAAA;AAEF,oBAAY,WAAW,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { SizeVariantSpreadFunction } from '@tamagui/core';
2
+ import { SizableStackProps } from '@tamagui/stacks';
3
+ export declare const getShapeSize: SizeVariantSpreadFunction<SizableStackProps>;
4
+ //# sourceMappingURL=getShapeSize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getShapeSize.d.ts","sourceRoot":"","sources":["../src/getShapeSize.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEnD,eAAO,MAAM,YAAY,EAAE,yBAAyB,CAAC,iBAAiB,CAWrE,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './Square';
2
+ export * from './Circle';
3
+ export * from './getShapeSize';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA"}