@tamagui/static 1.0.1-beta.88 → 1.0.1-beta.91
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/dist/cjs/extractor/createExtractor.js +7 -7
- package/dist/cjs/extractor/createExtractor.js.map +2 -2
- package/dist/esm/extractor/createExtractor.js +7 -7
- package/dist/esm/extractor/createExtractor.js.map +2 -2
- package/dist/jsx/extractor/createExtractor.js +7 -7
- package/dist/jsx/extractor/createExtractor.js.map +2 -2
- package/package.json +9 -9
- package/src/extractor/createExtractor.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/static",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.91",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"types": "./types/index.d.ts",
|
|
6
6
|
"main": "dist/cjs",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"@babel/parser": "^7.15.7",
|
|
39
39
|
"@babel/traverse": "^7.15.4",
|
|
40
40
|
"@expo/match-media": "^0.3.0",
|
|
41
|
-
"@tamagui/build": "^1.0.1-beta.
|
|
42
|
-
"@tamagui/core-node": "^1.0.1-beta.
|
|
43
|
-
"@tamagui/fake-react-native": "^1.0.1-beta.
|
|
44
|
-
"@tamagui/helpers": "^1.0.1-beta.
|
|
45
|
-
"@tamagui/patch-rnw": "^1.0.1-beta.
|
|
46
|
-
"@tamagui/proxy-worm": "^1.0.1-beta.
|
|
41
|
+
"@tamagui/build": "^1.0.1-beta.91",
|
|
42
|
+
"@tamagui/core-node": "^1.0.1-beta.91",
|
|
43
|
+
"@tamagui/fake-react-native": "^1.0.1-beta.91",
|
|
44
|
+
"@tamagui/helpers": "^1.0.1-beta.91",
|
|
45
|
+
"@tamagui/patch-rnw": "^1.0.1-beta.91",
|
|
46
|
+
"@tamagui/proxy-worm": "^1.0.1-beta.91",
|
|
47
47
|
"babel-literal-to-ast": "^2.1.0",
|
|
48
48
|
"esbuild": "^0.14.36",
|
|
49
49
|
"esbuild-register": "^3.3.2",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"fs-extra": "^10.1.0",
|
|
52
52
|
"invariant": "^2.2.4",
|
|
53
53
|
"lodash": "^4.17.21",
|
|
54
|
-
"tamagui": "^1.0.1-beta.
|
|
54
|
+
"tamagui": "^1.0.1-beta.91"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@babel/plugin-syntax-typescript": "^7.14.5",
|
|
58
58
|
"@babel/types": "^7.15.6",
|
|
59
59
|
"@dish/babel-preset": "^0.0.6",
|
|
60
|
-
"@tamagui/config-base": "^1.0.1-beta.
|
|
60
|
+
"@tamagui/config-base": "^1.0.1-beta.91",
|
|
61
61
|
"@testing-library/jest-dom": "^5.16.4",
|
|
62
62
|
"@testing-library/react": "^13.3.0",
|
|
63
63
|
"@types/jest": "*",
|
|
@@ -509,7 +509,7 @@ export function createExtractor() {
|
|
|
509
509
|
const validStyles = staticConfig?.validStyles ?? {}
|
|
510
510
|
|
|
511
511
|
// find tag="a" tag="main" etc dom indicators
|
|
512
|
-
let tagName = staticConfig.defaultProps
|
|
512
|
+
let tagName = staticConfig.defaultProps.tag ?? (isTextView ? 'span' : 'div')
|
|
513
513
|
traversePath
|
|
514
514
|
.get('openingElement')
|
|
515
515
|
.get('attributes')
|
|
@@ -1353,7 +1353,7 @@ export function createExtractor() {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
|
|
1355
1355
|
// only if we flatten, ensure the default styles are there
|
|
1356
|
-
if (shouldFlatten
|
|
1356
|
+
if (shouldFlatten) {
|
|
1357
1357
|
const defaultStyleAttrs = Object.keys(staticConfig.defaultProps).flatMap((key) => {
|
|
1358
1358
|
if (!isValidStyleKey(key, staticConfig)) {
|
|
1359
1359
|
return []
|