@tamagui/shapes 1.46.2 → 1.47.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/shapes",
3
- "version": "1.46.2",
3
+ "version": "1.47.0",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -31,14 +31,14 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@tamagui/stacks": "1.46.2",
35
- "@tamagui/web": "1.46.2"
34
+ "@tamagui/stacks": "1.47.0",
35
+ "@tamagui/web": "1.47.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "react": "*"
39
39
  },
40
40
  "devDependencies": {
41
- "@tamagui/build": "1.46.2",
41
+ "@tamagui/build": "1.47.0",
42
42
  "react": "^18.2.0"
43
43
  },
44
44
  "publishConfig": {
@@ -1,10 +0,0 @@
1
- import { styled } from "@tamagui/web";
2
- import { Square } from "./Square";
3
- const Circle = styled(Square, {
4
- name: "Circle",
5
- circular: true
6
- });
7
- export {
8
- Circle
9
- };
10
- //# sourceMappingURL=Circle.mjs.map
@@ -1,6 +0,0 @@
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
- }
@@ -1,17 +0,0 @@
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
- }
12
- }
13
- });
14
- export {
15
- Square
16
- };
17
- //# sourceMappingURL=Square.mjs.map
@@ -1,6 +0,0 @@
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,IACb;AAAA,EACF;AACF,CAAC;",
5
- "names": []
6
- }
@@ -1,16 +0,0 @@
1
- const getShapeSize = (size, { tokens }) => {
2
- const width = tokens.size[size] ?? size;
3
- const height = tokens.size[size] ?? size;
4
- return {
5
- width,
6
- height,
7
- minWidth: width,
8
- maxWidth: width,
9
- maxHeight: height,
10
- minHeight: height
11
- };
12
- };
13
- export {
14
- getShapeSize
15
- };
16
- //# sourceMappingURL=getShapeSize.mjs.map
@@ -1,6 +0,0 @@
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;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;",
5
- "names": []
6
- }
@@ -1,4 +0,0 @@
1
- export * from "./Square";
2
- export * from "./Circle";
3
- export * from "./getShapeSize";
4
- //# sourceMappingURL=index.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;",
5
- "names": []
6
- }