@tamagui/shapes 1.74.3 → 1.74.4

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.
@@ -0,0 +1,10 @@
1
+ import { styled } from "@tamagui/web";
2
+ import { Square } from "./Square";
3
+ const Circle = styled(Square, {
4
+ name: "Circle",
5
+ circular: !0
6
+ });
7
+ export {
8
+ Circle
9
+ };
10
+ //# sourceMappingURL=Circle.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Circle.tsx"],
4
+ "mappings": "AAAA,SAAmB,cAAc;AAEjC,SAAS,cAAc;AAEhB,MAAM,SAAS,OAAO,QAAQ;AAAA,EACnC,MAAM;AAAA,EACN,UAAU;AACZ,CAAC;",
5
+ "names": []
6
+ }
@@ -0,0 +1,18 @@
1
+ import { ThemeableStack } from "@tamagui/stacks";
2
+ import { styled } from "@tamagui/web";
3
+ import { getShapeSize } from "./getShapeSize";
4
+ const Square = styled(ThemeableStack, {
5
+ name: "Square",
6
+ alignItems: "center",
7
+ justifyContent: "center",
8
+ variants: {
9
+ size: {
10
+ "...size": getShapeSize,
11
+ ":number": getShapeSize
12
+ }
13
+ }
14
+ });
15
+ export {
16
+ Square
17
+ };
18
+ //# sourceMappingURL=Square.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Square.tsx"],
4
+ "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,MAAM;AAAA,MACJ,WAAW;AAAA,MACX,WAAW;AAAA,IACb;AAAA,EACF;AACF,CAAC;",
5
+ "names": []
6
+ }
@@ -0,0 +1,15 @@
1
+ const getShapeSize = (size, { tokens }) => {
2
+ const width = tokens.size[size] ?? size, height = tokens.size[size] ?? size;
3
+ return {
4
+ width,
5
+ height,
6
+ minWidth: width,
7
+ maxWidth: width,
8
+ maxHeight: height,
9
+ minHeight: height
10
+ };
11
+ };
12
+ export {
13
+ getShapeSize
14
+ };
15
+ //# sourceMappingURL=getShapeSize.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/getShapeSize.tsx"],
4
+ "mappings": "AAGO,MAAM,eAA6D,CACxE,MACA,EAAE,OAAO,MACN;AACH,QAAM,QAAQ,OAAO,KAAK,IAAI,KAAK,MAC7B,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;",
5
+ "names": []
6
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./Square";
2
+ export * from "./Circle";
3
+ export * from "./getShapeSize";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;",
5
+ "names": []
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/shapes",
3
- "version": "1.74.3",
3
+ "version": "1.74.4",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -31,14 +31,14 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@tamagui/stacks": "1.74.3",
35
- "@tamagui/web": "1.74.3"
34
+ "@tamagui/stacks": "1.74.4",
35
+ "@tamagui/web": "1.74.4"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "react": "*"
39
39
  },
40
40
  "devDependencies": {
41
- "@tamagui/build": "1.74.3",
41
+ "@tamagui/build": "1.74.4",
42
42
  "react": "^18.2.0"
43
43
  },
44
44
  "publishConfig": {