@tamagui/shapes 1.0.1-beta.78 → 1.0.1-beta.79
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/jsx/Circle.js +1 -0
- package/dist/jsx/Circle.js.map +7 -0
- package/dist/jsx/Square.js +1 -0
- package/dist/jsx/Square.js.map +7 -0
- package/dist/jsx/getShapeSize.js +1 -0
- package/dist/jsx/getShapeSize.js.map +7 -0
- package/dist/jsx/index.js +1 -0
- package/dist/jsx/index.js.map +7 -0
- package/package.json +4 -4
- package/types/Circle.d.ts +3 -3
- package/types/Square.d.ts +3 -3
package/dist/jsx/Circle.js
CHANGED
|
@@ -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
|
+
}
|
package/dist/jsx/Square.js
CHANGED
|
@@ -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
|
+
}
|
package/dist/jsx/getShapeSize.js
CHANGED
|
@@ -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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/shapes",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.79",
|
|
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.
|
|
25
|
-
"@tamagui/stacks": "^1.0.1-beta.
|
|
24
|
+
"@tamagui/core": "^1.0.1-beta.79",
|
|
25
|
+
"@tamagui/stacks": "^1.0.1-beta.79"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "*"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@tamagui/build": "^1.0.1-beta.
|
|
31
|
+
"@tamagui/build": "^1.0.1-beta.79",
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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<{
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
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
|
-
}, "
|
|
56
|
+
}, "circular" | "size"> & {
|
|
57
57
|
circular?: boolean | undefined;
|
|
58
58
|
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
59
59
|
}>>, any, import("@tamagui/core").StackPropsBase, {
|