@tamagui/shapes 1.0.1-rc.5 → 1.0.1-rc.6
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,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/getShapeSize.tsx"],
|
|
4
|
-
"sourcesContent": ["import { SizeVariantSpreadFunction } from '@tamagui/core'\nimport { SizableStackProps } from '@tamagui/stacks'\n\nexport const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (size
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,eAA6D,
|
|
4
|
+
"sourcesContent": ["import { SizeVariantSpreadFunction } from '@tamagui/core'\nimport { SizableStackProps } from '@tamagui/stacks'\n\nexport const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (\n size,\n { tokens },\n) => {\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,CACxE,MACA,EAAE,OAAO,MACN;AACH,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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/getShapeSize.tsx"],
|
|
4
|
-
"sourcesContent": ["import { SizeVariantSpreadFunction } from '@tamagui/core'\nimport { SizableStackProps } from '@tamagui/stacks'\n\nexport const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (size
|
|
5
|
-
"mappings": "AAGO,MAAM,eAA6D,
|
|
4
|
+
"sourcesContent": ["import { SizeVariantSpreadFunction } from '@tamagui/core'\nimport { SizableStackProps } from '@tamagui/stacks'\n\nexport const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (\n size,\n { tokens },\n) => {\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,CACxE,MACA,EAAE,OAAO,MACN;AACH,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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/getShapeSize.tsx"],
|
|
4
|
-
"sourcesContent": ["import { SizeVariantSpreadFunction } from '@tamagui/core'\nimport { SizableStackProps } from '@tamagui/stacks'\n\nexport const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (size
|
|
5
|
-
"mappings": "AAGO,MAAM,eAA6D,
|
|
4
|
+
"sourcesContent": ["import { SizeVariantSpreadFunction } from '@tamagui/core'\nimport { SizableStackProps } from '@tamagui/stacks'\n\nexport const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (\n size,\n { tokens },\n) => {\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,CACxE,MACA,EAAE,OAAO,MACN;AACH,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-rc.
|
|
3
|
+
"version": "1.0.1-rc.6",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -17,20 +17,20 @@
|
|
|
17
17
|
"scripts": {
|
|
18
18
|
"build": "tamagui-build",
|
|
19
19
|
"watch": "tamagui-build --watch",
|
|
20
|
-
"lint": "
|
|
21
|
-
"lint:fix": "
|
|
20
|
+
"lint": "../../node_modules/.bin/rome check src",
|
|
21
|
+
"lint:fix": "../../node_modules/.bin/rome check --apply-suggested src",
|
|
22
22
|
"clean": "tamagui-build clean",
|
|
23
23
|
"clean:build": "tamagui-build clean:build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@tamagui/core": "^1.0.1-rc.
|
|
27
|
-
"@tamagui/stacks": "^1.0.1-rc.
|
|
26
|
+
"@tamagui/core": "^1.0.1-rc.6",
|
|
27
|
+
"@tamagui/stacks": "^1.0.1-rc.6"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": "^18.2.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@tamagui/build": "^1.0.1-rc.
|
|
33
|
+
"@tamagui/build": "^1.0.1-rc.6",
|
|
34
34
|
"react": "^18.2.0"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
package/src/getShapeSize.tsx
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { SizeVariantSpreadFunction } from '@tamagui/core'
|
|
2
2
|
import { SizableStackProps } from '@tamagui/stacks'
|
|
3
3
|
|
|
4
|
-
export const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (
|
|
4
|
+
export const getShapeSize: SizeVariantSpreadFunction<SizableStackProps> = (
|
|
5
|
+
size,
|
|
6
|
+
{ tokens },
|
|
7
|
+
) => {
|
|
5
8
|
const width = tokens.size[size] ?? size
|
|
6
9
|
const height = tokens.size[size] ?? size
|
|
7
10
|
return {
|