@tamagui/shapes 1.0.1-beta.77 → 1.0.1-beta.80

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.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/cjs/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/esm/index.js CHANGED
File without changes
File without changes
@@ -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.77",
3
+ "version": "1.0.1-beta.80",
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.77",
25
- "@tamagui/stacks": "^1.0.1-beta.77"
24
+ "@tamagui/core": "^1.0.1-beta.80",
25
+ "@tamagui/stacks": "^1.0.1-beta.80"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "*"
29
29
  },
30
30
  "devDependencies": {
31
- "@tamagui/build": "^1.0.1-beta.77",
31
+ "@tamagui/build": "^1.0.1-beta.80",
32
32
  "react": "*"
33
33
  },
34
34
  "publishConfig": {
package/types/Circle.d.ts CHANGED
@@ -15,7 +15,7 @@ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<impo
15
15
  bordered?: number | boolean | undefined;
16
16
  transparent?: boolean | undefined;
17
17
  chromeless?: boolean | undefined;
18
- }, "size" | "circular"> & {
18
+ }, "circular" | "size"> & {
19
19
  circular?: boolean | undefined;
20
20
  size?: import("@tamagui/core").SizeTokens | undefined;
21
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<{
@@ -34,7 +34,7 @@ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<impo
34
34
  bordered?: number | boolean | undefined;
35
35
  transparent?: boolean | undefined;
36
36
  chromeless?: boolean | undefined;
37
- }, "size" | "circular"> & {
37
+ }, "circular" | "size"> & {
38
38
  circular?: boolean | undefined;
39
39
  size?: import("@tamagui/core").SizeTokens | undefined;
40
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<{
@@ -53,7 +53,7 @@ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<impo
53
53
  bordered?: number | boolean | undefined;
54
54
  transparent?: boolean | undefined;
55
55
  chromeless?: boolean | undefined;
56
- }, "size" | "circular"> & {
56
+ }, "circular" | "size"> & {
57
57
  circular?: boolean | undefined;
58
58
  size?: import("@tamagui/core").SizeTokens | undefined;
59
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<{
File without changes
package/types/Square.d.ts CHANGED
@@ -15,7 +15,7 @@ export declare const Square: import("@tamagui/core").TamaguiComponent<Omit<impor
15
15
  bordered?: number | boolean | undefined;
16
16
  transparent?: boolean | undefined;
17
17
  chromeless?: boolean | undefined;
18
- }, "size" | "circular"> & {
18
+ }, "circular" | "size"> & {
19
19
  circular?: boolean | undefined;
20
20
  size?: import("@tamagui/core").SizeTokens | undefined;
21
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<{
@@ -34,7 +34,7 @@ export declare const Square: import("@tamagui/core").TamaguiComponent<Omit<impor
34
34
  bordered?: number | boolean | undefined;
35
35
  transparent?: boolean | undefined;
36
36
  chromeless?: boolean | undefined;
37
- }, "size" | "circular"> & {
37
+ }, "circular" | "size"> & {
38
38
  circular?: boolean | undefined;
39
39
  size?: import("@tamagui/core").SizeTokens | undefined;
40
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<{
@@ -53,7 +53,7 @@ export declare const Square: import("@tamagui/core").TamaguiComponent<Omit<impor
53
53
  bordered?: number | boolean | undefined;
54
54
  transparent?: boolean | undefined;
55
55
  chromeless?: boolean | undefined;
56
- }, "size" | "circular"> & {
56
+ }, "circular" | "size"> & {
57
57
  circular?: boolean | undefined;
58
58
  size?: import("@tamagui/core").SizeTokens | undefined;
59
59
  }>>, any, import("@tamagui/core").StackPropsBase, {
File without changes
File without changes
File without changes
package/types/index.d.ts CHANGED
File without changes
File without changes