@tamagui/shapes 1.0.1-beta.72 → 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/shapes",
3
- "version": "1.0.1-beta.72",
3
+ "version": "1.0.1-beta.73",
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.72",
25
- "@tamagui/stacks": "^1.0.1-beta.72"
24
+ "@tamagui/core": "^1.0.1-beta.73",
25
+ "@tamagui/stacks": "^1.0.1-beta.73"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "*"
29
29
  },
30
30
  "devDependencies": {
31
- "@tamagui/build": "^1.0.1-beta.72",
31
+ "@tamagui/build": "^1.0.1-beta.73",
32
32
  "react": "*"
33
33
  },
34
34
  "publishConfig": {