@tamagui/shapes 1.0.1-beta.70 → 1.0.1-beta.73

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.
@@ -2,7 +2,6 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name in all)
8
7
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -21,7 +20,7 @@ __export(getShapeSize_exports, {
21
20
  getShapeSize: () => getShapeSize
22
21
  });
23
22
  module.exports = __toCommonJS(getShapeSize_exports);
24
- const getShapeSize = /* @__PURE__ */ __name((size, { tokens }) => {
23
+ const getShapeSize = (size, { tokens }) => {
25
24
  const width = tokens.size[size] ?? size;
26
25
  const height = tokens.size[size] ?? size;
27
26
  return {
@@ -32,7 +31,7 @@ const getShapeSize = /* @__PURE__ */ __name((size, { tokens }) => {
32
31
  maxHeight: height,
33
32
  minHeight: height
34
33
  };
35
- }, "getShapeSize");
34
+ };
36
35
  // Annotate the CommonJS export names for ESM import in node:
37
36
  0 && (module.exports = {
38
37
  getShapeSize
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/getShapeSize.tsx"],
4
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": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,eAA6D,wBAAC,MAAM,EAAE,aAAa;AAC9F,QAAM,QAAQ,OAAO,KAAK,SAAS;AACnC,QAAM,SAAS,OAAO,KAAK,SAAS;AACpC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AACF,GAX0E;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,eAA6D,CAAC,MAAM,EAAE,aAAa;AAC9F,QAAM,QAAQ,OAAO,KAAK,SAAS;AACnC,QAAM,SAAS,OAAO,KAAK,SAAS;AACpC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,4 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- const getShapeSize = /* @__PURE__ */ __name((size, { tokens }) => {
1
+ const getShapeSize = (size, { tokens }) => {
4
2
  var _a, _b;
5
3
  const width = (_a = tokens.size[size]) != null ? _a : size;
6
4
  const height = (_b = tokens.size[size]) != null ? _b : size;
@@ -12,7 +10,7 @@ const getShapeSize = /* @__PURE__ */ __name((size, { tokens }) => {
12
10
  maxHeight: height,
13
11
  minHeight: height
14
12
  };
15
- }, "getShapeSize");
13
+ };
16
14
  export {
17
15
  getShapeSize
18
16
  };
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/getShapeSize.tsx"],
4
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,wBAAC,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,GAX0E;",
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
6
  "names": []
7
7
  }
@@ -1,6 +1,4 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- const getShapeSize = /* @__PURE__ */ __name((size, { tokens }) => {
1
+ const getShapeSize = (size, { tokens }) => {
4
2
  var _a, _b;
5
3
  const width = (_a = tokens.size[size]) != null ? _a : size;
6
4
  const height = (_b = tokens.size[size]) != null ? _b : size;
@@ -12,7 +10,7 @@ const getShapeSize = /* @__PURE__ */ __name((size, { tokens }) => {
12
10
  maxHeight: height,
13
11
  minHeight: height
14
12
  };
15
- }, "getShapeSize");
13
+ };
16
14
  export {
17
15
  getShapeSize
18
16
  };
package/package.json CHANGED
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "name": "@tamagui/shapes",
3
- "version": "1.0.1-beta.70",
4
- "sideEffects": true,
3
+ "version": "1.0.1-beta.73",
4
+ "sideEffects": [
5
+ "*.css"
6
+ ],
5
7
  "source": "src/index.ts",
6
8
  "types": "./types/index.d.ts",
7
9
  "main": "dist/cjs",
@@ -19,14 +21,14 @@
19
21
  "clean:build": "tamagui-build clean:build"
20
22
  },
21
23
  "dependencies": {
22
- "@tamagui/core": "^1.0.1-beta.70",
23
- "@tamagui/stacks": "^1.0.1-beta.70"
24
+ "@tamagui/core": "^1.0.1-beta.73",
25
+ "@tamagui/stacks": "^1.0.1-beta.73"
24
26
  },
25
27
  "peerDependencies": {
26
28
  "react": "*"
27
29
  },
28
30
  "devDependencies": {
29
- "@tamagui/build": "^1.0.1-beta.70",
31
+ "@tamagui/build": "^1.0.1-beta.73",
30
32
  "react": "*"
31
33
  },
32
34
  "publishConfig": {
package/types/Circle.d.ts CHANGED
@@ -6,9 +6,9 @@ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<impo
6
6
  fontFamily?: unknown;
7
7
  backgrounded?: boolean | undefined;
8
8
  radiused?: boolean | undefined;
9
- hoverable?: boolean | undefined;
10
- pressable?: boolean | undefined;
11
- focusable?: boolean | undefined;
9
+ hoverTheme?: boolean | undefined;
10
+ pressTheme?: boolean | undefined;
11
+ focusTheme?: boolean | undefined;
12
12
  circular?: boolean | undefined;
13
13
  padded?: boolean | undefined;
14
14
  elevate?: boolean | undefined;
@@ -25,9 +25,9 @@ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<impo
25
25
  fontFamily?: unknown;
26
26
  backgrounded?: boolean | undefined;
27
27
  radiused?: boolean | undefined;
28
- hoverable?: boolean | undefined;
29
- pressable?: boolean | undefined;
30
- focusable?: boolean | undefined;
28
+ hoverTheme?: boolean | undefined;
29
+ pressTheme?: boolean | undefined;
30
+ focusTheme?: boolean | undefined;
31
31
  circular?: boolean | undefined;
32
32
  padded?: boolean | undefined;
33
33
  elevate?: boolean | undefined;
@@ -44,9 +44,9 @@ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<impo
44
44
  fontFamily?: unknown;
45
45
  backgrounded?: boolean | undefined;
46
46
  radiused?: boolean | undefined;
47
- hoverable?: boolean | undefined;
48
- pressable?: boolean | undefined;
49
- focusable?: boolean | undefined;
47
+ hoverTheme?: boolean | undefined;
48
+ pressTheme?: boolean | undefined;
49
+ focusTheme?: boolean | undefined;
50
50
  circular?: boolean | undefined;
51
51
  padded?: boolean | undefined;
52
52
  elevate?: boolean | undefined;
@@ -63,9 +63,9 @@ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<impo
63
63
  fontFamily?: unknown;
64
64
  backgrounded?: boolean | undefined;
65
65
  radiused?: boolean | undefined;
66
- hoverable?: boolean | undefined;
67
- pressable?: boolean | undefined;
68
- focusable?: boolean | undefined;
66
+ hoverTheme?: boolean | undefined;
67
+ pressTheme?: boolean | undefined;
68
+ focusTheme?: boolean | undefined;
69
69
  circular?: boolean | undefined;
70
70
  padded?: boolean | undefined;
71
71
  elevate?: boolean | undefined;
@@ -84,9 +84,9 @@ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<impo
84
84
  fontFamily?: unknown;
85
85
  backgrounded?: boolean | undefined;
86
86
  radiused?: boolean | undefined;
87
- hoverable?: boolean | undefined;
88
- pressable?: boolean | undefined;
89
- focusable?: boolean | undefined;
87
+ hoverTheme?: boolean | undefined;
88
+ pressTheme?: boolean | undefined;
89
+ focusTheme?: boolean | undefined;
90
90
  circular?: boolean | undefined;
91
91
  padded?: boolean | undefined;
92
92
  elevate?: boolean | undefined;
@@ -105,9 +105,9 @@ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<impo
105
105
  fontFamily?: unknown;
106
106
  backgrounded?: boolean | undefined;
107
107
  radiused?: boolean | undefined;
108
- hoverable?: boolean | undefined;
109
- pressable?: boolean | undefined;
110
- focusable?: boolean | undefined;
108
+ hoverTheme?: boolean | undefined;
109
+ pressTheme?: boolean | undefined;
110
+ focusTheme?: boolean | undefined;
111
111
  circular?: boolean | undefined;
112
112
  padded?: boolean | undefined;
113
113
  elevate?: boolean | undefined;
@@ -126,9 +126,9 @@ export declare const Circle: import("@tamagui/core").TamaguiComponent<(Omit<impo
126
126
  fontFamily?: unknown;
127
127
  backgrounded?: boolean | undefined;
128
128
  radiused?: boolean | undefined;
129
- hoverable?: boolean | undefined;
130
- pressable?: boolean | undefined;
131
- focusable?: boolean | undefined;
129
+ hoverTheme?: boolean | undefined;
130
+ pressTheme?: boolean | undefined;
131
+ focusTheme?: boolean | undefined;
132
132
  circular?: boolean | undefined;
133
133
  padded?: boolean | undefined;
134
134
  elevate?: boolean | undefined;
File without changes
package/types/Square.d.ts CHANGED
@@ -6,9 +6,9 @@ export declare const Square: import("@tamagui/core").TamaguiComponent<Omit<impor
6
6
  fontFamily?: unknown;
7
7
  backgrounded?: boolean | undefined;
8
8
  radiused?: boolean | undefined;
9
- hoverable?: boolean | undefined;
10
- pressable?: boolean | undefined;
11
- focusable?: boolean | undefined;
9
+ hoverTheme?: boolean | undefined;
10
+ pressTheme?: boolean | undefined;
11
+ focusTheme?: boolean | undefined;
12
12
  circular?: boolean | undefined;
13
13
  padded?: boolean | undefined;
14
14
  elevate?: boolean | undefined;
@@ -25,9 +25,9 @@ export declare const Square: import("@tamagui/core").TamaguiComponent<Omit<impor
25
25
  fontFamily?: unknown;
26
26
  backgrounded?: boolean | undefined;
27
27
  radiused?: boolean | undefined;
28
- hoverable?: boolean | undefined;
29
- pressable?: boolean | undefined;
30
- focusable?: boolean | undefined;
28
+ hoverTheme?: boolean | undefined;
29
+ pressTheme?: boolean | undefined;
30
+ focusTheme?: boolean | undefined;
31
31
  circular?: boolean | undefined;
32
32
  padded?: boolean | undefined;
33
33
  elevate?: boolean | undefined;
@@ -44,9 +44,9 @@ export declare const Square: import("@tamagui/core").TamaguiComponent<Omit<impor
44
44
  fontFamily?: unknown;
45
45
  backgrounded?: boolean | undefined;
46
46
  radiused?: boolean | undefined;
47
- hoverable?: boolean | undefined;
48
- pressable?: boolean | undefined;
49
- focusable?: boolean | undefined;
47
+ hoverTheme?: boolean | undefined;
48
+ pressTheme?: boolean | undefined;
49
+ focusTheme?: boolean | undefined;
50
50
  circular?: boolean | undefined;
51
51
  padded?: boolean | undefined;
52
52
  elevate?: boolean | undefined;
@@ -63,9 +63,9 @@ export declare const Square: import("@tamagui/core").TamaguiComponent<Omit<impor
63
63
  fontFamily?: unknown;
64
64
  backgrounded?: boolean | undefined;
65
65
  radiused?: boolean | undefined;
66
- hoverable?: boolean | undefined;
67
- pressable?: boolean | undefined;
68
- focusable?: boolean | undefined;
66
+ hoverTheme?: boolean | undefined;
67
+ pressTheme?: boolean | undefined;
68
+ focusTheme?: boolean | undefined;
69
69
  circular?: boolean | undefined;
70
70
  padded?: boolean | undefined;
71
71
  elevate?: boolean | undefined;
File without changes
File without changes
File without changes
package/types/index.d.ts CHANGED
File without changes
File without changes