@tamagui/shapes 1.5.24 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Circle.js +2 -2
- package/dist/cjs/Circle.js.map +2 -2
- package/dist/cjs/Square.js +2 -2
- package/dist/cjs/Square.js.map +2 -2
- package/dist/cjs/getShapeSize.js.map +1 -1
- package/dist/esm/Circle.js +1 -1
- package/dist/esm/Circle.js.map +1 -1
- package/dist/esm/Circle.mjs +1 -1
- package/dist/esm/Circle.mjs.map +1 -1
- package/dist/esm/Square.js +1 -1
- package/dist/esm/Square.js.map +2 -2
- package/dist/esm/Square.mjs +1 -1
- package/dist/esm/Square.mjs.map +2 -2
- package/dist/esm/getShapeSize.js.map +1 -1
- package/dist/esm/getShapeSize.mjs.map +1 -1
- package/dist/jsx/Circle.js +1 -1
- package/dist/jsx/Circle.js.map +1 -1
- package/dist/jsx/Circle.mjs +1 -1
- package/dist/jsx/Circle.mjs.map +1 -1
- package/dist/jsx/Square.js +1 -1
- package/dist/jsx/Square.js.map +2 -2
- package/dist/jsx/Square.mjs +1 -1
- package/dist/jsx/Square.mjs.map +2 -2
- package/dist/jsx/getShapeSize.js.map +1 -1
- package/dist/jsx/getShapeSize.mjs.map +1 -1
- package/package.json +4 -4
- package/src/Circle.tsx +1 -1
- package/src/Square.tsx +1 -1
- package/src/getShapeSize.tsx +2 -2
- package/types/Circle.d.ts +22 -22
- package/types/Circle.d.ts.map +1 -1
- package/types/Square.d.ts +13 -13
- package/types/Square.d.ts.map +1 -1
- package/types/getShapeSize.d.ts +1 -1
- package/types/getShapeSize.d.ts.map +1 -1
package/dist/cjs/Circle.js
CHANGED
|
@@ -21,9 +21,9 @@ __export(Circle_exports, {
|
|
|
21
21
|
Circle: () => Circle
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(Circle_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_web = require("@tamagui/web");
|
|
25
25
|
var import_Square = require("./Square");
|
|
26
|
-
const Circle = (0,
|
|
26
|
+
const Circle = (0, import_web.styled)(import_Square.Square, {
|
|
27
27
|
name: "Circle",
|
|
28
28
|
circular: true
|
|
29
29
|
});
|
package/dist/cjs/Circle.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Circle.tsx"],
|
|
4
|
-
"sourcesContent": ["import { GetProps, styled } from '@tamagui/
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,
|
|
4
|
+
"sourcesContent": ["import { GetProps, styled } from '@tamagui/web'\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,iBAAiC;AAEjC,oBAAuB;AAEhB,MAAM,aAAS,mBAAO,sBAAQ;AAAA,EACnC,MAAM;AAAA,EACN,UAAU;AACZ,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/Square.js
CHANGED
|
@@ -21,10 +21,10 @@ __export(Square_exports, {
|
|
|
21
21
|
Square: () => Square
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(Square_exports);
|
|
24
|
-
var import_core = require("@tamagui/core");
|
|
25
24
|
var import_stacks = require("@tamagui/stacks");
|
|
25
|
+
var import_web = require("@tamagui/web");
|
|
26
26
|
var import_getShapeSize = require("./getShapeSize");
|
|
27
|
-
const Square = (0,
|
|
27
|
+
const Square = (0, import_web.styled)(import_stacks.ThemeableStack, {
|
|
28
28
|
name: "Square",
|
|
29
29
|
alignItems: "center",
|
|
30
30
|
justifyContent: "center",
|
package/dist/cjs/Square.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Square.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,
|
|
4
|
+
"sourcesContent": ["import { ThemeableStack } from '@tamagui/stacks'\nimport { GetProps, styled } from '@tamagui/web'\n\nimport { getShapeSize } from './getShapeSize'\n\nexport const Square = styled(ThemeableStack, {\n name: 'Square',\n alignItems: 'center',\n justifyContent: 'center',\n\n variants: {\n circular: {\n true: {\n borderRadius: 100_000,\n },\n },\n\n size: {\n '...size': getShapeSize,\n },\n } as const,\n})\n\nexport type SquareProps = GetProps<typeof Square>\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA+B;AAC/B,iBAAiC;AAEjC,0BAA6B;AAEtB,MAAM,aAAS,mBAAO,8BAAgB;AAAA,EAC3C,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAEhB,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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/getShapeSize.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
4
|
+
"sourcesContent": ["import { SizableStackProps } from '@tamagui/stacks'\nimport { SizeVariantSpreadFunction } from '@tamagui/web'\n\nexport const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (\n size,\n { tokens }\n) => {\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
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,eAA6D,CACxE,MACA,EAAE,OAAO,MACN;AACH,QAAM,QAAQ,OAAO,KAAK,IAAI,KAAK;AACnC,QAAM,SAAS,OAAO,KAAK,IAAI,KAAK;AACpC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/Circle.js
CHANGED
package/dist/esm/Circle.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Circle.tsx"],
|
|
4
|
-
"sourcesContent": ["import { GetProps, styled } from '@tamagui/
|
|
4
|
+
"sourcesContent": ["import { GetProps, styled } from '@tamagui/web'\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
5
|
"mappings": "AAAA,SAAmB,cAAc;AAEjC,SAAS,cAAc;AAEhB,MAAM,SAAS,OAAO,QAAQ;AAAA,EACnC,MAAM;AAAA,EACN,UAAU;AACZ,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/Circle.mjs
CHANGED
package/dist/esm/Circle.mjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Circle.tsx"],
|
|
4
|
-
"sourcesContent": ["import { GetProps, styled } from '@tamagui/
|
|
4
|
+
"sourcesContent": ["import { GetProps, styled } from '@tamagui/web'\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
5
|
"mappings": "AAAA,SAAmB,cAAc;AAEjC,SAAS,cAAc;AAEhB,MAAM,SAAS,OAAO,QAAQ;AAAA,EACnC,MAAM;AAAA,EACN,UAAU;AACZ,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/Square.js
CHANGED
package/dist/esm/Square.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Square.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { ThemeableStack } from '@tamagui/stacks'\nimport { GetProps, styled } from '@tamagui/web'\n\nimport { getShapeSize } from './getShapeSize'\n\nexport const Square = styled(ThemeableStack, {\n name: 'Square',\n alignItems: 'center',\n justifyContent: 'center',\n\n variants: {\n circular: {\n true: {\n borderRadius: 100_000,\n },\n },\n\n size: {\n '...size': getShapeSize,\n },\n } as const,\n})\n\nexport type SquareProps = GetProps<typeof Square>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,sBAAsB;AAC/B,SAAmB,cAAc;AAEjC,SAAS,oBAAoB;AAEtB,MAAM,SAAS,OAAO,gBAAgB;AAAA,EAC3C,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAEhB,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
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/Square.mjs
CHANGED
package/dist/esm/Square.mjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Square.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { ThemeableStack } from '@tamagui/stacks'\nimport { GetProps, styled } from '@tamagui/web'\n\nimport { getShapeSize } from './getShapeSize'\n\nexport const Square = styled(ThemeableStack, {\n name: 'Square',\n alignItems: 'center',\n justifyContent: 'center',\n\n variants: {\n circular: {\n true: {\n borderRadius: 100_000,\n },\n },\n\n size: {\n '...size': getShapeSize,\n },\n } as const,\n})\n\nexport type SquareProps = GetProps<typeof Square>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,sBAAsB;AAC/B,SAAmB,cAAc;AAEjC,SAAS,oBAAoB;AAEtB,MAAM,SAAS,OAAO,gBAAgB;AAAA,EAC3C,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAEhB,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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/getShapeSize.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
4
|
+
"sourcesContent": ["import { SizableStackProps } from '@tamagui/stacks'\nimport { SizeVariantSpreadFunction } from '@tamagui/web'\n\nexport const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (\n size,\n { tokens }\n) => {\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
5
|
"mappings": "AAGO,MAAM,eAA6D,CACxE,MACA,EAAE,OAAO,MACN;AACH,QAAM,QAAQ,OAAO,KAAK,IAAI,KAAK;AACnC,QAAM,SAAS,OAAO,KAAK,IAAI,KAAK;AACpC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/getShapeSize.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
4
|
+
"sourcesContent": ["import { SizableStackProps } from '@tamagui/stacks'\nimport { SizeVariantSpreadFunction } from '@tamagui/web'\n\nexport const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (\n size,\n { tokens }\n) => {\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
5
|
"mappings": "AAGO,MAAM,eAA6D,CACxE,MACA,EAAE,OAAO,MACN;AACH,QAAM,QAAQ,OAAO,KAAK,IAAI,KAAK;AACnC,QAAM,SAAS,OAAO,KAAK,IAAI,KAAK;AACpC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/jsx/Circle.js
CHANGED
package/dist/jsx/Circle.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Circle.tsx"],
|
|
4
|
-
"sourcesContent": ["import { GetProps, styled } from '@tamagui/
|
|
4
|
+
"sourcesContent": ["import { GetProps, styled } from '@tamagui/web'\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
5
|
"mappings": "AAAA,SAAmB,cAAc;AAEjC,SAAS,cAAc;AAEhB,MAAM,SAAS,OAAO,QAAQ;AAAA,EACnC,MAAM;AAAA,EACN,UAAU;AACZ,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/jsx/Circle.mjs
CHANGED
package/dist/jsx/Circle.mjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Circle.tsx"],
|
|
4
|
-
"sourcesContent": ["import { GetProps, styled } from '@tamagui/
|
|
4
|
+
"sourcesContent": ["import { GetProps, styled } from '@tamagui/web'\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
5
|
"mappings": "AAAA,SAAmB,cAAc;AAEjC,SAAS,cAAc;AAEhB,MAAM,SAAS,OAAO,QAAQ;AAAA,EACnC,MAAM;AAAA,EACN,UAAU;AACZ,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/jsx/Square.js
CHANGED
package/dist/jsx/Square.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Square.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { ThemeableStack } from '@tamagui/stacks'\nimport { GetProps, styled } from '@tamagui/web'\n\nimport { getShapeSize } from './getShapeSize'\n\nexport const Square = styled(ThemeableStack, {\n name: 'Square',\n alignItems: 'center',\n justifyContent: 'center',\n\n variants: {\n circular: {\n true: {\n borderRadius: 100_000,\n },\n },\n\n size: {\n '...size': getShapeSize,\n },\n } as const,\n})\n\nexport type SquareProps = GetProps<typeof Square>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,sBAAsB;AAC/B,SAAmB,cAAc;AAEjC,SAAS,oBAAoB;AAEtB,MAAM,SAAS,OAAO,gBAAgB;AAAA,EAC3C,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAEhB,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
6
|
"names": []
|
|
7
7
|
}
|
package/dist/jsx/Square.mjs
CHANGED
package/dist/jsx/Square.mjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Square.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { ThemeableStack } from '@tamagui/stacks'\nimport { GetProps, styled } from '@tamagui/web'\n\nimport { getShapeSize } from './getShapeSize'\n\nexport const Square = styled(ThemeableStack, {\n name: 'Square',\n alignItems: 'center',\n justifyContent: 'center',\n\n variants: {\n circular: {\n true: {\n borderRadius: 100_000,\n },\n },\n\n size: {\n '...size': getShapeSize,\n },\n } as const,\n})\n\nexport type SquareProps = GetProps<typeof Square>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,sBAAsB;AAC/B,SAAmB,cAAc;AAEjC,SAAS,oBAAoB;AAEtB,MAAM,SAAS,OAAO,gBAAgB;AAAA,EAC3C,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAEhB,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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/getShapeSize.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
4
|
+
"sourcesContent": ["import { SizableStackProps } from '@tamagui/stacks'\nimport { SizeVariantSpreadFunction } from '@tamagui/web'\n\nexport const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (\n size,\n { tokens }\n) => {\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
5
|
"mappings": "AAGO,MAAM,eAA6D,CACxE,MACA,EAAE,OAAO,MACN;AACH,QAAM,QAAQ,OAAO,KAAK,IAAI,KAAK;AACnC,QAAM,SAAS,OAAO,KAAK,IAAI,KAAK;AACpC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/getShapeSize.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
4
|
+
"sourcesContent": ["import { SizableStackProps } from '@tamagui/stacks'\nimport { SizeVariantSpreadFunction } from '@tamagui/web'\n\nexport const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (\n size,\n { tokens }\n) => {\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
5
|
"mappings": "AAGO,MAAM,eAA6D,CACxE,MACA,EAAE,OAAO,MACN;AACH,QAAM,QAAQ,OAAO,KAAK,IAAI,KAAK;AACnC,QAAM,SAAS,OAAO,KAAK,IAAI,KAAK;AACpC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/shapes",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"clean:build": "tamagui-build clean:build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@tamagui/
|
|
27
|
-
"@tamagui/
|
|
26
|
+
"@tamagui/stacks": "1.6.0",
|
|
27
|
+
"@tamagui/web": "1.6.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": "*"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@tamagui/build": "
|
|
33
|
+
"@tamagui/build": "1.6.0",
|
|
34
34
|
"react": "^18.2.0"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
package/src/Circle.tsx
CHANGED
package/src/Square.tsx
CHANGED
package/src/getShapeSize.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SizeVariantSpreadFunction } from '@tamagui/core'
|
|
2
1
|
import { SizableStackProps } from '@tamagui/stacks'
|
|
2
|
+
import { SizeVariantSpreadFunction } from '@tamagui/web'
|
|
3
3
|
|
|
4
4
|
export const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (
|
|
5
5
|
size,
|
|
6
|
-
{ tokens }
|
|
6
|
+
{ tokens }
|
|
7
7
|
) => {
|
|
8
8
|
const width = tokens.size[size] ?? size
|
|
9
9
|
const height = tokens.size[size] ?? size
|
package/types/Circle.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GetProps } from '@tamagui/
|
|
2
|
-
export declare const Circle: import("@tamagui/
|
|
1
|
+
import { GetProps } from '@tamagui/web';
|
|
2
|
+
export declare const Circle: import("@tamagui/web").TamaguiComponent<(Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
3
3
|
readonly fullscreen?: boolean | undefined;
|
|
4
|
-
readonly elevation?: import("@tamagui/
|
|
4
|
+
readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
readonly backgrounded?: boolean | undefined;
|
|
7
7
|
readonly radiused?: boolean | undefined;
|
|
@@ -16,10 +16,10 @@ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<impo
|
|
|
16
16
|
readonly chromeless?: boolean | "all" | undefined;
|
|
17
17
|
}, "size" | "circular"> & {
|
|
18
18
|
readonly circular?: boolean | undefined;
|
|
19
|
-
readonly size?: import("@tamagui/
|
|
20
|
-
} & import("@tamagui/
|
|
19
|
+
readonly size?: import("@tamagui/web").SizeTokens | undefined;
|
|
20
|
+
} & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
21
21
|
readonly fullscreen?: boolean | undefined;
|
|
22
|
-
readonly elevation?: import("@tamagui/
|
|
22
|
+
readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
|
|
23
23
|
} & {
|
|
24
24
|
readonly backgrounded?: boolean | undefined;
|
|
25
25
|
readonly radiused?: boolean | undefined;
|
|
@@ -34,10 +34,10 @@ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<impo
|
|
|
34
34
|
readonly chromeless?: boolean | "all" | undefined;
|
|
35
35
|
}, "size" | "circular"> & {
|
|
36
36
|
readonly circular?: boolean | undefined;
|
|
37
|
-
readonly size?: import("@tamagui/
|
|
38
|
-
}>> & import("@tamagui/
|
|
37
|
+
readonly size?: import("@tamagui/web").SizeTokens | undefined;
|
|
38
|
+
}>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
39
39
|
readonly fullscreen?: boolean | undefined;
|
|
40
|
-
readonly elevation?: import("@tamagui/
|
|
40
|
+
readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
|
|
41
41
|
} & {
|
|
42
42
|
readonly backgrounded?: boolean | undefined;
|
|
43
43
|
readonly radiused?: boolean | undefined;
|
|
@@ -52,10 +52,10 @@ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<impo
|
|
|
52
52
|
readonly chromeless?: boolean | "all" | undefined;
|
|
53
53
|
}, "size" | "circular"> & {
|
|
54
54
|
readonly circular?: boolean | undefined;
|
|
55
|
-
readonly size?: import("@tamagui/
|
|
56
|
-
}>>) | (Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/
|
|
55
|
+
readonly size?: import("@tamagui/web").SizeTokens | undefined;
|
|
56
|
+
}>>) | (Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
57
57
|
readonly fullscreen?: boolean | undefined;
|
|
58
|
-
readonly elevation?: import("@tamagui/
|
|
58
|
+
readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
|
|
59
59
|
} & {
|
|
60
60
|
readonly backgrounded?: boolean | undefined;
|
|
61
61
|
readonly radiused?: boolean | undefined;
|
|
@@ -70,12 +70,12 @@ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<impo
|
|
|
70
70
|
readonly chromeless?: boolean | "all" | undefined;
|
|
71
71
|
} & {
|
|
72
72
|
readonly circular?: boolean | undefined;
|
|
73
|
-
readonly size?: import("@tamagui/
|
|
73
|
+
readonly size?: import("@tamagui/web").SizeTokens | undefined;
|
|
74
74
|
}, string | number> & {
|
|
75
75
|
[x: string]: undefined;
|
|
76
|
-
} & import("@tamagui/
|
|
76
|
+
} & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
77
77
|
readonly fullscreen?: boolean | undefined;
|
|
78
|
-
readonly elevation?: import("@tamagui/
|
|
78
|
+
readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
|
|
79
79
|
} & {
|
|
80
80
|
readonly backgrounded?: boolean | undefined;
|
|
81
81
|
readonly radiused?: boolean | undefined;
|
|
@@ -90,12 +90,12 @@ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<impo
|
|
|
90
90
|
readonly chromeless?: boolean | "all" | undefined;
|
|
91
91
|
} & {
|
|
92
92
|
readonly circular?: boolean | undefined;
|
|
93
|
-
readonly size?: import("@tamagui/
|
|
93
|
+
readonly size?: import("@tamagui/web").SizeTokens | undefined;
|
|
94
94
|
}, string | number> & {
|
|
95
95
|
[x: string]: undefined;
|
|
96
|
-
}>> & import("@tamagui/
|
|
96
|
+
}>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
97
97
|
readonly fullscreen?: boolean | undefined;
|
|
98
|
-
readonly elevation?: import("@tamagui/
|
|
98
|
+
readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
|
|
99
99
|
} & {
|
|
100
100
|
readonly backgrounded?: boolean | undefined;
|
|
101
101
|
readonly radiused?: boolean | undefined;
|
|
@@ -110,12 +110,12 @@ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<impo
|
|
|
110
110
|
readonly chromeless?: boolean | "all" | undefined;
|
|
111
111
|
} & {
|
|
112
112
|
readonly circular?: boolean | undefined;
|
|
113
|
-
readonly size?: import("@tamagui/
|
|
113
|
+
readonly size?: import("@tamagui/web").SizeTokens | undefined;
|
|
114
114
|
}, string | number> & {
|
|
115
115
|
[x: string]: undefined;
|
|
116
|
-
}>>), import("@tamagui/
|
|
116
|
+
}>>), import("@tamagui/web").TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps, {
|
|
117
117
|
readonly fullscreen?: boolean | undefined;
|
|
118
|
-
readonly elevation?: import("@tamagui/
|
|
118
|
+
readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
|
|
119
119
|
} & {
|
|
120
120
|
readonly backgrounded?: boolean | undefined;
|
|
121
121
|
readonly radiused?: boolean | undefined;
|
|
@@ -130,7 +130,7 @@ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<impo
|
|
|
130
130
|
readonly chromeless?: boolean | "all" | undefined;
|
|
131
131
|
} & {
|
|
132
132
|
readonly circular?: boolean | undefined;
|
|
133
|
-
readonly size?: import("@tamagui/
|
|
133
|
+
readonly size?: import("@tamagui/web").SizeTokens | undefined;
|
|
134
134
|
} & ({} | {
|
|
135
135
|
[x: string]: undefined;
|
|
136
136
|
})>;
|
package/types/Circle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Circle.d.ts","sourceRoot":"","sources":["../src/Circle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAU,MAAM,
|
|
1
|
+
{"version":3,"file":"Circle.d.ts","sourceRoot":"","sources":["../src/Circle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAU,MAAM,cAAc,CAAA;AAI/C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGjB,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA"}
|
package/types/Square.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GetProps } from '@tamagui/
|
|
2
|
-
export declare const Square: import("@tamagui/
|
|
1
|
+
import { GetProps } from '@tamagui/web';
|
|
2
|
+
export declare const Square: import("@tamagui/web").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
3
3
|
readonly fullscreen?: boolean | undefined;
|
|
4
|
-
readonly elevation?: import("@tamagui/
|
|
4
|
+
readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
readonly backgrounded?: boolean | undefined;
|
|
7
7
|
readonly radiused?: boolean | undefined;
|
|
@@ -16,10 +16,10 @@ export declare const Square: import("@tamagui/core").TamaguiComponent<Omit<impor
|
|
|
16
16
|
readonly chromeless?: boolean | "all" | undefined;
|
|
17
17
|
}, "size" | "circular"> & {
|
|
18
18
|
readonly circular?: boolean | undefined;
|
|
19
|
-
readonly size?: import("@tamagui/
|
|
20
|
-
} & import("@tamagui/
|
|
19
|
+
readonly size?: import("@tamagui/web").SizeTokens | undefined;
|
|
20
|
+
} & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
21
21
|
readonly fullscreen?: boolean | undefined;
|
|
22
|
-
readonly elevation?: import("@tamagui/
|
|
22
|
+
readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
|
|
23
23
|
} & {
|
|
24
24
|
readonly backgrounded?: boolean | undefined;
|
|
25
25
|
readonly radiused?: boolean | undefined;
|
|
@@ -34,10 +34,10 @@ export declare const Square: import("@tamagui/core").TamaguiComponent<Omit<impor
|
|
|
34
34
|
readonly chromeless?: boolean | "all" | undefined;
|
|
35
35
|
}, "size" | "circular"> & {
|
|
36
36
|
readonly circular?: boolean | undefined;
|
|
37
|
-
readonly size?: import("@tamagui/
|
|
38
|
-
}>> & import("@tamagui/
|
|
37
|
+
readonly size?: import("@tamagui/web").SizeTokens | undefined;
|
|
38
|
+
}>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
39
39
|
readonly fullscreen?: boolean | undefined;
|
|
40
|
-
readonly elevation?: import("@tamagui/
|
|
40
|
+
readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
|
|
41
41
|
} & {
|
|
42
42
|
readonly backgrounded?: boolean | undefined;
|
|
43
43
|
readonly radiused?: boolean | undefined;
|
|
@@ -52,10 +52,10 @@ export declare const Square: import("@tamagui/core").TamaguiComponent<Omit<impor
|
|
|
52
52
|
readonly chromeless?: boolean | "all" | undefined;
|
|
53
53
|
}, "size" | "circular"> & {
|
|
54
54
|
readonly circular?: boolean | undefined;
|
|
55
|
-
readonly size?: import("@tamagui/
|
|
56
|
-
}>>, import("@tamagui/
|
|
55
|
+
readonly size?: import("@tamagui/web").SizeTokens | undefined;
|
|
56
|
+
}>>, import("@tamagui/web").TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps, {
|
|
57
57
|
readonly fullscreen?: boolean | undefined;
|
|
58
|
-
readonly elevation?: import("@tamagui/
|
|
58
|
+
readonly elevation?: import("@tamagui/web").SizeTokens | undefined;
|
|
59
59
|
} & {
|
|
60
60
|
readonly backgrounded?: boolean | undefined;
|
|
61
61
|
readonly radiused?: boolean | undefined;
|
|
@@ -70,7 +70,7 @@ export declare const Square: import("@tamagui/core").TamaguiComponent<Omit<impor
|
|
|
70
70
|
readonly chromeless?: boolean | "all" | undefined;
|
|
71
71
|
} & {
|
|
72
72
|
readonly circular?: boolean | undefined;
|
|
73
|
-
readonly size?: import("@tamagui/
|
|
73
|
+
readonly size?: import("@tamagui/web").SizeTokens | undefined;
|
|
74
74
|
}>;
|
|
75
75
|
export type SquareProps = GetProps<typeof Square>;
|
|
76
76
|
//# sourceMappingURL=Square.d.ts.map
|
package/types/Square.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Square.d.ts","sourceRoot":"","sources":["../src/Square.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Square.d.ts","sourceRoot":"","sources":["../src/Square.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAU,MAAM,cAAc,CAAA;AAI/C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBjB,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA"}
|
package/types/getShapeSize.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SizeVariantSpreadFunction } from '@tamagui/core';
|
|
2
1
|
import { SizableStackProps } from '@tamagui/stacks';
|
|
2
|
+
import { SizeVariantSpreadFunction } from '@tamagui/web';
|
|
3
3
|
export declare const getShapeSize: SizeVariantSpreadFunction<SizableStackProps>;
|
|
4
4
|
//# sourceMappingURL=getShapeSize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getShapeSize.d.ts","sourceRoot":"","sources":["../src/getShapeSize.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getShapeSize.d.ts","sourceRoot":"","sources":["../src/getShapeSize.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAA;AAExD,eAAO,MAAM,YAAY,EAAE,yBAAyB,CAAC,iBAAiB,CAcrE,CAAA"}
|