@tamagui/shapes 1.0.1-beta.78 → 1.0.1-beta.81

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.
@@ -7,3 +7,4 @@ const Circle = styled(Square, {
7
7
  export {
8
8
  Circle
9
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
+ }
@@ -21,3 +21,4 @@ const Square = styled(ThemeableStack, {
21
21
  export {
22
22
  Square
23
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
+ }
@@ -14,3 +14,4 @@ const getShapeSize = (size, { tokens }) => {
14
14
  export {
15
15
  getShapeSize
16
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
+ }
package/dist/jsx/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "./Square";
2
2
  export * from "./Circle";
3
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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/shapes",
3
- "version": "1.0.1-beta.78",
3
+ "version": "1.0.1-beta.81",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -21,14 +21,14 @@
21
21
  "clean:build": "tamagui-build clean:build"
22
22
  },
23
23
  "dependencies": {
24
- "@tamagui/core": "^1.0.1-beta.78",
25
- "@tamagui/stacks": "^1.0.1-beta.78"
24
+ "@tamagui/core": "^1.0.1-beta.81",
25
+ "@tamagui/stacks": "^1.0.1-beta.81"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "*"
29
29
  },
30
30
  "devDependencies": {
31
- "@tamagui/build": "^1.0.1-beta.78",
31
+ "@tamagui/build": "^1.0.1-beta.81",
32
32
  "react": "*"
33
33
  },
34
34
  "publishConfig": {