@tamagui/shapes 1.0.1-beta.47
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.js +33 -0
- package/dist/cjs/Circle.js.map +7 -0
- package/dist/cjs/Square.js +47 -0
- package/dist/cjs/Square.js.map +7 -0
- package/dist/cjs/getShapeSize.js +40 -0
- package/dist/cjs/getShapeSize.js.map +7 -0
- package/dist/cjs/index.js +20 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/esm/Circle.js +10 -0
- package/dist/esm/Circle.js.map +7 -0
- package/dist/esm/Square.js +24 -0
- package/dist/esm/Square.js.map +7 -0
- package/dist/esm/getShapeSize.js +19 -0
- package/dist/esm/getShapeSize.js.map +7 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/jsx/Circle.js +9 -0
- package/dist/jsx/Square.js +23 -0
- package/dist/jsx/getShapeSize.js +18 -0
- package/dist/jsx/index.js +3 -0
- package/package.json +34 -0
- package/types/Circle.d.ts +145 -0
- package/types/Circle.d.ts.map +1 -0
- package/types/Square.d.ts +80 -0
- package/types/Square.d.ts.map +1 -0
- package/types/getShapeSize.d.ts +4 -0
- package/types/getShapeSize.d.ts.map +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.d.ts.map +1 -0
|
@@ -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,47 @@
|
|
|
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
|
+
overflow: "hidden",
|
|
31
|
+
backgrounded: true,
|
|
32
|
+
variants: {
|
|
33
|
+
circular: {
|
|
34
|
+
true: {
|
|
35
|
+
borderRadius: 1e5
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
size: {
|
|
39
|
+
"...size": import_getShapeSize.getShapeSize
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
Square
|
|
46
|
+
});
|
|
47
|
+
//# 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 overflow: 'hidden',\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,UAAU;AAAA,EACV,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,40 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var getShapeSize_exports = {};
|
|
20
|
+
__export(getShapeSize_exports, {
|
|
21
|
+
getShapeSize: () => getShapeSize
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(getShapeSize_exports);
|
|
24
|
+
const getShapeSize = /* @__PURE__ */ __name((size, { tokens }) => {
|
|
25
|
+
const width = tokens.size[size] ?? size;
|
|
26
|
+
const height = tokens.size[size] ?? size;
|
|
27
|
+
return {
|
|
28
|
+
width,
|
|
29
|
+
height,
|
|
30
|
+
minWidth: width,
|
|
31
|
+
maxWidth: width,
|
|
32
|
+
maxHeight: height,
|
|
33
|
+
minHeight: height
|
|
34
|
+
};
|
|
35
|
+
}, "getShapeSize");
|
|
36
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
+
0 && (module.exports = {
|
|
38
|
+
getShapeSize
|
|
39
|
+
});
|
|
40
|
+
//# 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,wBAAC,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,GAX0E;",
|
|
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,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,24 @@
|
|
|
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
|
+
overflow: "hidden",
|
|
9
|
+
backgrounded: true,
|
|
10
|
+
variants: {
|
|
11
|
+
circular: {
|
|
12
|
+
true: {
|
|
13
|
+
borderRadius: 1e5
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
"...size": getShapeSize
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
Square
|
|
23
|
+
};
|
|
24
|
+
//# 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 overflow: 'hidden',\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,UAAU;AAAA,EACV,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,19 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
const getShapeSize = /* @__PURE__ */ __name((size, { tokens }) => {
|
|
4
|
+
var _a, _b;
|
|
5
|
+
const width = (_a = tokens.size[size]) != null ? _a : size;
|
|
6
|
+
const height = (_b = tokens.size[size]) != null ? _b : size;
|
|
7
|
+
return {
|
|
8
|
+
width,
|
|
9
|
+
height,
|
|
10
|
+
minWidth: width,
|
|
11
|
+
maxWidth: width,
|
|
12
|
+
maxHeight: height,
|
|
13
|
+
minHeight: height
|
|
14
|
+
};
|
|
15
|
+
}, "getShapeSize");
|
|
16
|
+
export {
|
|
17
|
+
getShapeSize
|
|
18
|
+
};
|
|
19
|
+
//# 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,wBAAC,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,GAX0E;",
|
|
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
|
+
overflow: "hidden",
|
|
9
|
+
backgrounded: true,
|
|
10
|
+
variants: {
|
|
11
|
+
circular: {
|
|
12
|
+
true: {
|
|
13
|
+
borderRadius: 1e5
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
"...size": getShapeSize
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
Square
|
|
23
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
const getShapeSize = /* @__PURE__ */ __name((size, { tokens }) => {
|
|
4
|
+
var _a, _b;
|
|
5
|
+
const width = (_a = tokens.size[size]) != null ? _a : size;
|
|
6
|
+
const height = (_b = tokens.size[size]) != null ? _b : size;
|
|
7
|
+
return {
|
|
8
|
+
width,
|
|
9
|
+
height,
|
|
10
|
+
minWidth: width,
|
|
11
|
+
maxWidth: width,
|
|
12
|
+
maxHeight: height,
|
|
13
|
+
minHeight: height
|
|
14
|
+
};
|
|
15
|
+
}, "getShapeSize");
|
|
16
|
+
export {
|
|
17
|
+
getShapeSize
|
|
18
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tamagui/shapes",
|
|
3
|
+
"version": "1.0.1-beta.47",
|
|
4
|
+
"sideEffects": true,
|
|
5
|
+
"source": "src/index.ts",
|
|
6
|
+
"types": "./types/index.d.ts",
|
|
7
|
+
"main": "dist/cjs",
|
|
8
|
+
"module": "dist/esm",
|
|
9
|
+
"module:jsx": "dist/jsx",
|
|
10
|
+
"files": [
|
|
11
|
+
"types",
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tamagui-build",
|
|
16
|
+
"watch": "tamagui-build --watch",
|
|
17
|
+
"clean": "tamagui-build clean",
|
|
18
|
+
"clean:build": "tamagui-build clean:build"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@tamagui/core": "^1.0.1-beta.47",
|
|
22
|
+
"@tamagui/stacks": "^1.0.1-beta.47"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": "*"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@tamagui/build": "^1.0.1-beta.47",
|
|
29
|
+
"react": "*"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -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
|
+
hoverable?: boolean | undefined;
|
|
10
|
+
pressable?: boolean | undefined;
|
|
11
|
+
focusable?: 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
|
+
hoverable?: boolean | undefined;
|
|
29
|
+
pressable?: boolean | undefined;
|
|
30
|
+
focusable?: 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
|
+
hoverable?: boolean | undefined;
|
|
48
|
+
pressable?: boolean | undefined;
|
|
49
|
+
focusable?: 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
|
+
hoverable?: boolean | undefined;
|
|
67
|
+
pressable?: boolean | undefined;
|
|
68
|
+
focusable?: 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
|
+
hoverable?: boolean | undefined;
|
|
88
|
+
pressable?: boolean | undefined;
|
|
89
|
+
focusable?: 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
|
+
hoverable?: boolean | undefined;
|
|
109
|
+
pressable?: boolean | undefined;
|
|
110
|
+
focusable?: 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
|
+
hoverable?: boolean | undefined;
|
|
130
|
+
pressable?: boolean | undefined;
|
|
131
|
+
focusable?: 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
|
+
hoverable?: boolean | undefined;
|
|
10
|
+
pressable?: boolean | undefined;
|
|
11
|
+
focusable?: 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
|
+
hoverable?: boolean | undefined;
|
|
29
|
+
pressable?: boolean | undefined;
|
|
30
|
+
focusable?: 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
|
+
hoverable?: boolean | undefined;
|
|
48
|
+
pressable?: boolean | undefined;
|
|
49
|
+
focusable?: 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
|
+
hoverable?: boolean | undefined;
|
|
67
|
+
pressable?: boolean | undefined;
|
|
68
|
+
focusable?: 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBjB,CAAA;AAEF,oBAAY,WAAW,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA"}
|
|
@@ -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"}
|
package/types/index.d.ts
ADDED
|
@@ -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"}
|