@tamagui/shapes 1.0.1-beta.75 → 1.0.1-beta.78

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.
@@ -1,7 +1,6 @@
1
1
  const getShapeSize = (size, { tokens }) => {
2
- var _a, _b;
3
- const width = (_a = tokens.size[size]) != null ? _a : size;
4
- const height = (_b = tokens.size[size]) != null ? _b : size;
2
+ const width = tokens.size[size] ?? size;
3
+ const height = tokens.size[size] ?? size;
5
4
  return {
6
5
  width,
7
6
  height,
@@ -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,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;",
5
+ "mappings": "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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/shapes",
3
- "version": "1.0.1-beta.75",
3
+ "version": "1.0.1-beta.78",
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.75",
25
- "@tamagui/stacks": "^1.0.1-beta.75"
24
+ "@tamagui/core": "^1.0.1-beta.78",
25
+ "@tamagui/stacks": "^1.0.1-beta.78"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "*"
29
29
  },
30
30
  "devDependencies": {
31
- "@tamagui/build": "^1.0.1-beta.75",
31
+ "@tamagui/build": "^1.0.1-beta.78",
32
32
  "react": "*"
33
33
  },
34
34
  "publishConfig": {