@tamagui/helpers 1.0.0-alpha.16 → 1.0.0-alpha.23
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/package.json +4 -4
- package/src/allRules.d.ts +0 -2
- package/src/allRules.d.ts.map +0 -1
- package/src/allRules.js +0 -2
- package/src/allRules.ts +0 -5
- package/src/concatClassName.d.ts +0 -1
- package/src/concatClassName.d.ts.map +0 -1
- package/src/concatClassName.js +0 -65
- package/src/concatClassName.ts +0 -101
- package/src/index.d.ts +0 -4
- package/src/index.d.ts.map +0 -1
- package/src/index.js +0 -4
- package/src/index.ts +0 -4
- package/src/simpleHash.ts +0 -9
- package/src/types.d.ts +0 -7
- package/src/types.d.ts.map +0 -1
- package/src/types.js +0 -1
- package/src/types.ts +0 -7
- package/src/validStyleProps.d.ts +0 -474
- package/src/validStyleProps.d.ts.map +0 -1
- package/src/validStyleProps.js +0 -140
- package/src/validStyleProps.ts +0 -152
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/helpers",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.23",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"typings": "types",
|
|
6
6
|
"main": "dist/cjs",
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
"module:jsx": "dist/jsx",
|
|
9
9
|
"files": [
|
|
10
10
|
"types",
|
|
11
|
-
"src",
|
|
12
11
|
"dist"
|
|
13
12
|
],
|
|
14
13
|
"scripts": {
|
|
@@ -16,7 +15,8 @@
|
|
|
16
15
|
"watch": "tamagui-build --watch"
|
|
17
16
|
},
|
|
18
17
|
"devDependencies": {
|
|
19
|
-
"@tamagui/build": "^1.0.0-alpha.
|
|
18
|
+
"@tamagui/build": "^1.0.0-alpha.22",
|
|
19
|
+
"react-native": "*"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"react-native": "*"
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "69fb1d82868a6525fee6b0750cb2113d88ffea79"
|
|
28
28
|
}
|
package/src/allRules.d.ts
DELETED
package/src/allRules.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allRules.d.ts","sourceRoot":"","sources":["allRules.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,cAAY,CAAA;AAEjC,eAAO,MAAM,aAAa,oBAAiB,CAAA"}
|
package/src/allRules.js
DELETED
package/src/allRules.ts
DELETED
package/src/concatClassName.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function concatClassName(_cn: any): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"concatClassName.d.ts","sourceRoot":"","sources":["concatClassName.ts"],"names":[],"mappings":"AAUA,wBAAgB,eAAe,CAAC,GAAG,EAAE,GAAG,UAoFvC"}
|
package/src/concatClassName.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
export function concatClassName(_cn) {
|
|
2
|
-
const classNamesOrPropObjects = arguments;
|
|
3
|
-
const usedPrefixes = [];
|
|
4
|
-
let final = '';
|
|
5
|
-
const len = classNamesOrPropObjects.length;
|
|
6
|
-
let propObjects = null;
|
|
7
|
-
for (let x = len; x >= 0; x--) {
|
|
8
|
-
const cns = classNamesOrPropObjects[x];
|
|
9
|
-
if (!cns)
|
|
10
|
-
continue;
|
|
11
|
-
if (!Array.isArray(cns) && typeof cns !== 'string') {
|
|
12
|
-
propObjects = propObjects || [];
|
|
13
|
-
propObjects.push(cns);
|
|
14
|
-
continue;
|
|
15
|
-
}
|
|
16
|
-
const names = Array.isArray(cns) ? cns : cns.split(' ');
|
|
17
|
-
const numNames = names.length;
|
|
18
|
-
for (let i = numNames - 1; i >= 0; i--) {
|
|
19
|
-
const name = names[i];
|
|
20
|
-
if (!name || name === ' ')
|
|
21
|
-
continue;
|
|
22
|
-
if (name[0] !== '_') {
|
|
23
|
-
final = name + ' ' + final;
|
|
24
|
-
continue;
|
|
25
|
-
}
|
|
26
|
-
const splitIndex = name.indexOf('-');
|
|
27
|
-
if (splitIndex < 1) {
|
|
28
|
-
final = name + ' ' + final;
|
|
29
|
-
continue;
|
|
30
|
-
}
|
|
31
|
-
const nextChar = name[splitIndex + 1];
|
|
32
|
-
const isMediaQuery = nextChar === '_';
|
|
33
|
-
const isPsuedoQuery = nextChar === '-';
|
|
34
|
-
const styleKey = name.slice(1, splitIndex);
|
|
35
|
-
const mediaKey = isMediaQuery || isPsuedoQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null;
|
|
36
|
-
const uid = mediaKey ? styleKey + mediaKey : styleKey;
|
|
37
|
-
if (!isMediaQuery && !isPsuedoQuery) {
|
|
38
|
-
if (usedPrefixes.indexOf(uid) > -1) {
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
usedPrefixes.push(uid);
|
|
42
|
-
}
|
|
43
|
-
const propName = styleKey;
|
|
44
|
-
if (propName && propObjects) {
|
|
45
|
-
if (propObjects.some((po) => {
|
|
46
|
-
if (mediaKey) {
|
|
47
|
-
const propKey = pseudoInvert[mediaKey];
|
|
48
|
-
return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
|
|
49
|
-
}
|
|
50
|
-
const res = po && propName in po && po[propName] !== null;
|
|
51
|
-
return res;
|
|
52
|
-
})) {
|
|
53
|
-
continue;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
final = name + ' ' + final;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return final;
|
|
60
|
-
}
|
|
61
|
-
const pseudoInvert = {
|
|
62
|
-
hover: 'hoverStyle',
|
|
63
|
-
focus: 'focusStyle',
|
|
64
|
-
press: 'pressStyle',
|
|
65
|
-
};
|
package/src/concatClassName.ts
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
// perf sensitive so doing some weird stuff
|
|
2
|
-
|
|
3
|
-
// testing caching
|
|
4
|
-
// because we can hit these recent ones a ton of times in common cases
|
|
5
|
-
// we're caching the simple case, this shouldn't be bad on memory either
|
|
6
|
-
// const recently = new Map()
|
|
7
|
-
// setInterval(() => {
|
|
8
|
-
// recently.clear()
|
|
9
|
-
// }, 1000)
|
|
10
|
-
|
|
11
|
-
export function concatClassName(_cn: any) {
|
|
12
|
-
// if (arguments.length === 1) {
|
|
13
|
-
// if (recently.has(arguments[0])) {
|
|
14
|
-
// return recently.get(arguments[0])
|
|
15
|
-
// }
|
|
16
|
-
// }
|
|
17
|
-
|
|
18
|
-
const classNamesOrPropObjects = arguments
|
|
19
|
-
const usedPrefixes: string[] = []
|
|
20
|
-
let final = ''
|
|
21
|
-
|
|
22
|
-
const len = classNamesOrPropObjects.length
|
|
23
|
-
let propObjects: any = null
|
|
24
|
-
for (let x = len; x >= 0; x--) {
|
|
25
|
-
const cns = classNamesOrPropObjects[x]
|
|
26
|
-
if (!cns) continue
|
|
27
|
-
if (!Array.isArray(cns) && typeof cns !== 'string') {
|
|
28
|
-
// is prop object
|
|
29
|
-
propObjects = propObjects || []
|
|
30
|
-
propObjects.push(cns)
|
|
31
|
-
continue
|
|
32
|
-
}
|
|
33
|
-
const names = Array.isArray(cns) ? cns : cns.split(' ')
|
|
34
|
-
|
|
35
|
-
const numNames = names.length
|
|
36
|
-
for (let i = numNames - 1; i >= 0; i--) {
|
|
37
|
-
const name = names[i]
|
|
38
|
-
if (!name || name === ' ') continue
|
|
39
|
-
if (name[0] !== '_') {
|
|
40
|
-
// not snack style (todo slightly stronger heuristic)
|
|
41
|
-
final = name + ' ' + final
|
|
42
|
-
continue
|
|
43
|
-
}
|
|
44
|
-
const splitIndex = name.indexOf('-')
|
|
45
|
-
|
|
46
|
-
if (splitIndex < 1) {
|
|
47
|
-
final = name + ' ' + final
|
|
48
|
-
continue
|
|
49
|
-
}
|
|
50
|
-
const nextChar = name[splitIndex + 1]
|
|
51
|
-
// synced to static-ui constants
|
|
52
|
-
// MEDIA_SEP
|
|
53
|
-
const isMediaQuery = nextChar === '_'
|
|
54
|
-
// PSEUDO_SEP
|
|
55
|
-
const isPsuedoQuery = nextChar === '-'
|
|
56
|
-
|
|
57
|
-
const styleKey = name.slice(1, splitIndex)
|
|
58
|
-
const mediaKey =
|
|
59
|
-
isMediaQuery || isPsuedoQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null
|
|
60
|
-
const uid = mediaKey ? styleKey + mediaKey : styleKey
|
|
61
|
-
|
|
62
|
-
if (!isMediaQuery && !isPsuedoQuery) {
|
|
63
|
-
if (usedPrefixes.indexOf(uid) > -1) {
|
|
64
|
-
continue
|
|
65
|
-
}
|
|
66
|
-
usedPrefixes.push(uid)
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// overrides for full safety
|
|
70
|
-
const propName = styleKey
|
|
71
|
-
if (propName && propObjects) {
|
|
72
|
-
if (
|
|
73
|
-
propObjects.some((po) => {
|
|
74
|
-
if (mediaKey) {
|
|
75
|
-
const propKey = pseudoInvert[mediaKey]
|
|
76
|
-
return po && po[propKey] && propName in po[propKey] && po[propKey] !== null
|
|
77
|
-
}
|
|
78
|
-
const res = po && propName in po && po[propName] !== null
|
|
79
|
-
return res
|
|
80
|
-
})
|
|
81
|
-
) {
|
|
82
|
-
continue
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
final = name + ' ' + final
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// if (arguments.length === 1) {
|
|
91
|
-
// recently.set(arguments[0], final)
|
|
92
|
-
// }
|
|
93
|
-
|
|
94
|
-
return final
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
const pseudoInvert = {
|
|
98
|
-
hover: 'hoverStyle',
|
|
99
|
-
focus: 'focusStyle',
|
|
100
|
-
press: 'pressStyle',
|
|
101
|
-
}
|
package/src/index.d.ts
DELETED
package/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA"}
|
package/src/index.js
DELETED
package/src/index.ts
DELETED
package/src/simpleHash.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export const simpleHash = (str: string) => {
|
|
2
|
-
let hash = 0
|
|
3
|
-
for (let i = 0; i < str.length; i++) {
|
|
4
|
-
const char = str.charCodeAt(i)
|
|
5
|
-
hash = (hash << 5) - hash + char
|
|
6
|
-
hash &= hash // Convert to 32bit integer
|
|
7
|
-
}
|
|
8
|
-
return new Uint32Array([hash])[0].toString(36)
|
|
9
|
-
}
|
package/src/types.d.ts
DELETED
package/src/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,EAAE,CAAA;CAChB,CAAA"}
|
package/src/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/src/types.ts
DELETED
package/src/validStyleProps.d.ts
DELETED
|
@@ -1,474 +0,0 @@
|
|
|
1
|
-
export declare const stylePropsTransform: {
|
|
2
|
-
x: boolean;
|
|
3
|
-
y: boolean;
|
|
4
|
-
scale: boolean;
|
|
5
|
-
perspective: boolean;
|
|
6
|
-
scaleX: boolean;
|
|
7
|
-
scaleY: boolean;
|
|
8
|
-
skewX: boolean;
|
|
9
|
-
skewY: boolean;
|
|
10
|
-
matrix: boolean;
|
|
11
|
-
rotate: boolean;
|
|
12
|
-
rotateY: boolean;
|
|
13
|
-
rotateX: boolean;
|
|
14
|
-
rotateZ: boolean;
|
|
15
|
-
};
|
|
16
|
-
export declare const stylePropsView: Readonly<{
|
|
17
|
-
userSelect?: boolean | undefined;
|
|
18
|
-
cursor?: boolean | undefined;
|
|
19
|
-
contain?: boolean | undefined;
|
|
20
|
-
pointerEvents?: boolean | undefined;
|
|
21
|
-
boxSizing?: boolean | undefined;
|
|
22
|
-
x: boolean;
|
|
23
|
-
y: boolean;
|
|
24
|
-
scale: boolean;
|
|
25
|
-
perspective: boolean;
|
|
26
|
-
scaleX: boolean;
|
|
27
|
-
scaleY: boolean;
|
|
28
|
-
skewX: boolean;
|
|
29
|
-
skewY: boolean;
|
|
30
|
-
matrix: boolean;
|
|
31
|
-
rotate: boolean;
|
|
32
|
-
rotateY: boolean;
|
|
33
|
-
rotateX: boolean;
|
|
34
|
-
rotateZ: boolean;
|
|
35
|
-
backfaceVisibility: boolean;
|
|
36
|
-
backgroundColor: boolean;
|
|
37
|
-
borderBottomColor: boolean;
|
|
38
|
-
borderBottomEndRadius: boolean;
|
|
39
|
-
borderBottomLeftRadius: boolean;
|
|
40
|
-
borderBottomRightRadius: boolean;
|
|
41
|
-
borderBottomStartRadius: boolean;
|
|
42
|
-
borderBottomWidth: boolean;
|
|
43
|
-
borderColor: boolean;
|
|
44
|
-
borderEndColor: boolean;
|
|
45
|
-
borderLeftColor: boolean;
|
|
46
|
-
borderLeftWidth: boolean;
|
|
47
|
-
borderRadius: boolean;
|
|
48
|
-
borderRightColor: boolean;
|
|
49
|
-
borderRightWidth: boolean;
|
|
50
|
-
borderStartColor: boolean;
|
|
51
|
-
borderStyle: boolean;
|
|
52
|
-
borderTopColor: boolean;
|
|
53
|
-
borderTopEndRadius: boolean;
|
|
54
|
-
borderTopLeftRadius: boolean;
|
|
55
|
-
borderTopRightRadius: boolean;
|
|
56
|
-
borderTopStartRadius: boolean;
|
|
57
|
-
borderTopWidth: boolean;
|
|
58
|
-
borderWidth: boolean;
|
|
59
|
-
opacity: boolean;
|
|
60
|
-
transform: boolean;
|
|
61
|
-
alignContent: boolean;
|
|
62
|
-
alignItems: boolean;
|
|
63
|
-
alignSelf: boolean;
|
|
64
|
-
aspectRatio: boolean;
|
|
65
|
-
borderEndWidth: boolean;
|
|
66
|
-
borderStartWidth: boolean;
|
|
67
|
-
bottom: boolean;
|
|
68
|
-
display: boolean;
|
|
69
|
-
end: boolean;
|
|
70
|
-
flex: boolean;
|
|
71
|
-
flexBasis: boolean;
|
|
72
|
-
flexDirection: boolean;
|
|
73
|
-
flexGrow: boolean;
|
|
74
|
-
flexShrink: boolean;
|
|
75
|
-
flexWrap: boolean;
|
|
76
|
-
height: boolean;
|
|
77
|
-
justifyContent: boolean;
|
|
78
|
-
left: boolean;
|
|
79
|
-
margin: boolean;
|
|
80
|
-
marginBottom: boolean;
|
|
81
|
-
marginEnd: boolean;
|
|
82
|
-
marginHorizontal: boolean;
|
|
83
|
-
marginLeft: boolean;
|
|
84
|
-
marginRight: boolean;
|
|
85
|
-
marginStart: boolean;
|
|
86
|
-
marginTop: boolean;
|
|
87
|
-
marginVertical: boolean;
|
|
88
|
-
maxHeight: boolean;
|
|
89
|
-
maxWidth: boolean;
|
|
90
|
-
minHeight: boolean;
|
|
91
|
-
minWidth: boolean;
|
|
92
|
-
overflow: boolean;
|
|
93
|
-
padding: boolean;
|
|
94
|
-
paddingBottom: boolean;
|
|
95
|
-
paddingEnd: boolean;
|
|
96
|
-
paddingHorizontal: boolean;
|
|
97
|
-
paddingLeft: boolean;
|
|
98
|
-
paddingRight: boolean;
|
|
99
|
-
paddingStart: boolean;
|
|
100
|
-
paddingTop: boolean;
|
|
101
|
-
paddingVertical: boolean;
|
|
102
|
-
position: boolean;
|
|
103
|
-
right: boolean;
|
|
104
|
-
start: boolean;
|
|
105
|
-
top: boolean;
|
|
106
|
-
width: boolean;
|
|
107
|
-
zIndex: boolean;
|
|
108
|
-
direction: boolean;
|
|
109
|
-
shadowColor: boolean;
|
|
110
|
-
shadowOffset: boolean;
|
|
111
|
-
shadowOpacity: boolean;
|
|
112
|
-
shadowRadius: boolean;
|
|
113
|
-
}>;
|
|
114
|
-
export declare const stylePropsTextOnly: Readonly<{
|
|
115
|
-
whiteSpace?: boolean | undefined;
|
|
116
|
-
wordWrap?: boolean | undefined;
|
|
117
|
-
textOverflow?: boolean | undefined;
|
|
118
|
-
textDecorationDistance?: boolean | undefined;
|
|
119
|
-
color: boolean;
|
|
120
|
-
fontFamily: boolean;
|
|
121
|
-
fontSize: boolean;
|
|
122
|
-
fontStyle: boolean;
|
|
123
|
-
fontWeight: boolean;
|
|
124
|
-
letterSpacing: boolean;
|
|
125
|
-
lineHeight: boolean;
|
|
126
|
-
textAlign: boolean;
|
|
127
|
-
textDecorationLine: boolean;
|
|
128
|
-
textDecorationStyle: boolean;
|
|
129
|
-
textDecorationColor: boolean;
|
|
130
|
-
textShadowColor: boolean;
|
|
131
|
-
textShadowOffset: boolean;
|
|
132
|
-
textShadowRadius: boolean;
|
|
133
|
-
textTransform: boolean;
|
|
134
|
-
}>;
|
|
135
|
-
export declare const stylePropsText: Readonly<{
|
|
136
|
-
whiteSpace?: boolean | undefined;
|
|
137
|
-
wordWrap?: boolean | undefined;
|
|
138
|
-
textOverflow?: boolean | undefined;
|
|
139
|
-
textDecorationDistance?: boolean | undefined;
|
|
140
|
-
color: boolean;
|
|
141
|
-
fontFamily: boolean;
|
|
142
|
-
fontSize: boolean;
|
|
143
|
-
fontStyle: boolean;
|
|
144
|
-
fontWeight: boolean;
|
|
145
|
-
letterSpacing: boolean;
|
|
146
|
-
lineHeight: boolean;
|
|
147
|
-
textAlign: boolean;
|
|
148
|
-
textDecorationLine: boolean;
|
|
149
|
-
textDecorationStyle: boolean;
|
|
150
|
-
textDecorationColor: boolean;
|
|
151
|
-
textShadowColor: boolean;
|
|
152
|
-
textShadowOffset: boolean;
|
|
153
|
-
textShadowRadius: boolean;
|
|
154
|
-
textTransform: boolean;
|
|
155
|
-
userSelect?: boolean | undefined;
|
|
156
|
-
cursor?: boolean | undefined;
|
|
157
|
-
contain?: boolean | undefined;
|
|
158
|
-
pointerEvents?: boolean | undefined;
|
|
159
|
-
boxSizing?: boolean | undefined;
|
|
160
|
-
x: boolean;
|
|
161
|
-
y: boolean;
|
|
162
|
-
scale: boolean;
|
|
163
|
-
perspective: boolean;
|
|
164
|
-
scaleX: boolean;
|
|
165
|
-
scaleY: boolean;
|
|
166
|
-
skewX: boolean;
|
|
167
|
-
skewY: boolean;
|
|
168
|
-
matrix: boolean;
|
|
169
|
-
rotate: boolean;
|
|
170
|
-
rotateY: boolean;
|
|
171
|
-
rotateX: boolean;
|
|
172
|
-
rotateZ: boolean;
|
|
173
|
-
backfaceVisibility: boolean;
|
|
174
|
-
backgroundColor: boolean;
|
|
175
|
-
borderBottomColor: boolean;
|
|
176
|
-
borderBottomEndRadius: boolean;
|
|
177
|
-
borderBottomLeftRadius: boolean;
|
|
178
|
-
borderBottomRightRadius: boolean;
|
|
179
|
-
borderBottomStartRadius: boolean;
|
|
180
|
-
borderBottomWidth: boolean;
|
|
181
|
-
borderColor: boolean;
|
|
182
|
-
borderEndColor: boolean;
|
|
183
|
-
borderLeftColor: boolean;
|
|
184
|
-
borderLeftWidth: boolean;
|
|
185
|
-
borderRadius: boolean;
|
|
186
|
-
borderRightColor: boolean;
|
|
187
|
-
borderRightWidth: boolean;
|
|
188
|
-
borderStartColor: boolean;
|
|
189
|
-
borderStyle: boolean;
|
|
190
|
-
borderTopColor: boolean;
|
|
191
|
-
borderTopEndRadius: boolean;
|
|
192
|
-
borderTopLeftRadius: boolean;
|
|
193
|
-
borderTopRightRadius: boolean;
|
|
194
|
-
borderTopStartRadius: boolean;
|
|
195
|
-
borderTopWidth: boolean;
|
|
196
|
-
borderWidth: boolean;
|
|
197
|
-
opacity: boolean;
|
|
198
|
-
transform: boolean;
|
|
199
|
-
alignContent: boolean;
|
|
200
|
-
alignItems: boolean;
|
|
201
|
-
alignSelf: boolean;
|
|
202
|
-
aspectRatio: boolean;
|
|
203
|
-
borderEndWidth: boolean;
|
|
204
|
-
borderStartWidth: boolean;
|
|
205
|
-
bottom: boolean;
|
|
206
|
-
display: boolean;
|
|
207
|
-
end: boolean;
|
|
208
|
-
flex: boolean;
|
|
209
|
-
flexBasis: boolean;
|
|
210
|
-
flexDirection: boolean;
|
|
211
|
-
flexGrow: boolean;
|
|
212
|
-
flexShrink: boolean;
|
|
213
|
-
flexWrap: boolean;
|
|
214
|
-
height: boolean;
|
|
215
|
-
justifyContent: boolean;
|
|
216
|
-
left: boolean;
|
|
217
|
-
margin: boolean;
|
|
218
|
-
marginBottom: boolean;
|
|
219
|
-
marginEnd: boolean;
|
|
220
|
-
marginHorizontal: boolean;
|
|
221
|
-
marginLeft: boolean;
|
|
222
|
-
marginRight: boolean;
|
|
223
|
-
marginStart: boolean;
|
|
224
|
-
marginTop: boolean;
|
|
225
|
-
marginVertical: boolean;
|
|
226
|
-
maxHeight: boolean;
|
|
227
|
-
maxWidth: boolean;
|
|
228
|
-
minHeight: boolean;
|
|
229
|
-
minWidth: boolean;
|
|
230
|
-
overflow: boolean;
|
|
231
|
-
padding: boolean;
|
|
232
|
-
paddingBottom: boolean;
|
|
233
|
-
paddingEnd: boolean;
|
|
234
|
-
paddingHorizontal: boolean;
|
|
235
|
-
paddingLeft: boolean;
|
|
236
|
-
paddingRight: boolean;
|
|
237
|
-
paddingStart: boolean;
|
|
238
|
-
paddingTop: boolean;
|
|
239
|
-
paddingVertical: boolean;
|
|
240
|
-
position: boolean;
|
|
241
|
-
right: boolean;
|
|
242
|
-
start: boolean;
|
|
243
|
-
top: boolean;
|
|
244
|
-
width: boolean;
|
|
245
|
-
zIndex: boolean;
|
|
246
|
-
direction: boolean;
|
|
247
|
-
shadowColor: boolean;
|
|
248
|
-
shadowOffset: boolean;
|
|
249
|
-
shadowOpacity: boolean;
|
|
250
|
-
shadowRadius: boolean;
|
|
251
|
-
}>;
|
|
252
|
-
export declare const stylePropsAll: Readonly<{
|
|
253
|
-
whiteSpace?: boolean | undefined;
|
|
254
|
-
wordWrap?: boolean | undefined;
|
|
255
|
-
textOverflow?: boolean | undefined;
|
|
256
|
-
textDecorationDistance?: boolean | undefined;
|
|
257
|
-
color: boolean;
|
|
258
|
-
fontFamily: boolean;
|
|
259
|
-
fontSize: boolean;
|
|
260
|
-
fontStyle: boolean;
|
|
261
|
-
fontWeight: boolean;
|
|
262
|
-
letterSpacing: boolean;
|
|
263
|
-
lineHeight: boolean;
|
|
264
|
-
textAlign: boolean;
|
|
265
|
-
textDecorationLine: boolean;
|
|
266
|
-
textDecorationStyle: boolean;
|
|
267
|
-
textDecorationColor: boolean;
|
|
268
|
-
textShadowColor: boolean;
|
|
269
|
-
textShadowOffset: boolean;
|
|
270
|
-
textShadowRadius: boolean;
|
|
271
|
-
textTransform: boolean;
|
|
272
|
-
userSelect?: boolean | undefined;
|
|
273
|
-
cursor?: boolean | undefined;
|
|
274
|
-
contain?: boolean | undefined;
|
|
275
|
-
pointerEvents?: boolean | undefined;
|
|
276
|
-
boxSizing?: boolean | undefined;
|
|
277
|
-
x: boolean;
|
|
278
|
-
y: boolean;
|
|
279
|
-
scale: boolean;
|
|
280
|
-
perspective: boolean;
|
|
281
|
-
scaleX: boolean;
|
|
282
|
-
scaleY: boolean;
|
|
283
|
-
skewX: boolean;
|
|
284
|
-
skewY: boolean;
|
|
285
|
-
matrix: boolean;
|
|
286
|
-
rotate: boolean;
|
|
287
|
-
rotateY: boolean;
|
|
288
|
-
rotateX: boolean;
|
|
289
|
-
rotateZ: boolean;
|
|
290
|
-
backfaceVisibility: boolean;
|
|
291
|
-
backgroundColor: boolean;
|
|
292
|
-
borderBottomColor: boolean;
|
|
293
|
-
borderBottomEndRadius: boolean;
|
|
294
|
-
borderBottomLeftRadius: boolean;
|
|
295
|
-
borderBottomRightRadius: boolean;
|
|
296
|
-
borderBottomStartRadius: boolean;
|
|
297
|
-
borderBottomWidth: boolean;
|
|
298
|
-
borderColor: boolean;
|
|
299
|
-
borderEndColor: boolean;
|
|
300
|
-
borderLeftColor: boolean;
|
|
301
|
-
borderLeftWidth: boolean;
|
|
302
|
-
borderRadius: boolean;
|
|
303
|
-
borderRightColor: boolean;
|
|
304
|
-
borderRightWidth: boolean;
|
|
305
|
-
borderStartColor: boolean;
|
|
306
|
-
borderStyle: boolean;
|
|
307
|
-
borderTopColor: boolean;
|
|
308
|
-
borderTopEndRadius: boolean;
|
|
309
|
-
borderTopLeftRadius: boolean;
|
|
310
|
-
borderTopRightRadius: boolean;
|
|
311
|
-
borderTopStartRadius: boolean;
|
|
312
|
-
borderTopWidth: boolean;
|
|
313
|
-
borderWidth: boolean;
|
|
314
|
-
opacity: boolean;
|
|
315
|
-
transform: boolean;
|
|
316
|
-
alignContent: boolean;
|
|
317
|
-
alignItems: boolean;
|
|
318
|
-
alignSelf: boolean;
|
|
319
|
-
aspectRatio: boolean;
|
|
320
|
-
borderEndWidth: boolean;
|
|
321
|
-
borderStartWidth: boolean;
|
|
322
|
-
bottom: boolean;
|
|
323
|
-
display: boolean;
|
|
324
|
-
end: boolean;
|
|
325
|
-
flex: boolean;
|
|
326
|
-
flexBasis: boolean;
|
|
327
|
-
flexDirection: boolean;
|
|
328
|
-
flexGrow: boolean;
|
|
329
|
-
flexShrink: boolean;
|
|
330
|
-
flexWrap: boolean;
|
|
331
|
-
height: boolean;
|
|
332
|
-
justifyContent: boolean;
|
|
333
|
-
left: boolean;
|
|
334
|
-
margin: boolean;
|
|
335
|
-
marginBottom: boolean;
|
|
336
|
-
marginEnd: boolean;
|
|
337
|
-
marginHorizontal: boolean;
|
|
338
|
-
marginLeft: boolean;
|
|
339
|
-
marginRight: boolean;
|
|
340
|
-
marginStart: boolean;
|
|
341
|
-
marginTop: boolean;
|
|
342
|
-
marginVertical: boolean;
|
|
343
|
-
maxHeight: boolean;
|
|
344
|
-
maxWidth: boolean;
|
|
345
|
-
minHeight: boolean;
|
|
346
|
-
minWidth: boolean;
|
|
347
|
-
overflow: boolean;
|
|
348
|
-
padding: boolean;
|
|
349
|
-
paddingBottom: boolean;
|
|
350
|
-
paddingEnd: boolean;
|
|
351
|
-
paddingHorizontal: boolean;
|
|
352
|
-
paddingLeft: boolean;
|
|
353
|
-
paddingRight: boolean;
|
|
354
|
-
paddingStart: boolean;
|
|
355
|
-
paddingTop: boolean;
|
|
356
|
-
paddingVertical: boolean;
|
|
357
|
-
position: boolean;
|
|
358
|
-
right: boolean;
|
|
359
|
-
start: boolean;
|
|
360
|
-
top: boolean;
|
|
361
|
-
width: boolean;
|
|
362
|
-
zIndex: boolean;
|
|
363
|
-
direction: boolean;
|
|
364
|
-
shadowColor: boolean;
|
|
365
|
-
shadowOffset: boolean;
|
|
366
|
-
shadowOpacity: boolean;
|
|
367
|
-
shadowRadius: boolean;
|
|
368
|
-
}>;
|
|
369
|
-
export declare const validStylesPseudo: {
|
|
370
|
-
hoverStyle: boolean;
|
|
371
|
-
pressStyle: boolean;
|
|
372
|
-
focusStyle: boolean;
|
|
373
|
-
};
|
|
374
|
-
export declare const validStyles: {
|
|
375
|
-
userSelect?: boolean | undefined;
|
|
376
|
-
cursor?: boolean | undefined;
|
|
377
|
-
contain?: boolean | undefined;
|
|
378
|
-
pointerEvents?: boolean | undefined;
|
|
379
|
-
boxSizing?: boolean | undefined;
|
|
380
|
-
x: boolean;
|
|
381
|
-
y: boolean;
|
|
382
|
-
scale: boolean;
|
|
383
|
-
perspective: boolean;
|
|
384
|
-
scaleX: boolean;
|
|
385
|
-
scaleY: boolean;
|
|
386
|
-
skewX: boolean;
|
|
387
|
-
skewY: boolean;
|
|
388
|
-
matrix: boolean;
|
|
389
|
-
rotate: boolean;
|
|
390
|
-
rotateY: boolean;
|
|
391
|
-
rotateX: boolean;
|
|
392
|
-
rotateZ: boolean;
|
|
393
|
-
backfaceVisibility: boolean;
|
|
394
|
-
backgroundColor: boolean;
|
|
395
|
-
borderBottomColor: boolean;
|
|
396
|
-
borderBottomEndRadius: boolean;
|
|
397
|
-
borderBottomLeftRadius: boolean;
|
|
398
|
-
borderBottomRightRadius: boolean;
|
|
399
|
-
borderBottomStartRadius: boolean;
|
|
400
|
-
borderBottomWidth: boolean;
|
|
401
|
-
borderColor: boolean;
|
|
402
|
-
borderEndColor: boolean;
|
|
403
|
-
borderLeftColor: boolean;
|
|
404
|
-
borderLeftWidth: boolean;
|
|
405
|
-
borderRadius: boolean;
|
|
406
|
-
borderRightColor: boolean;
|
|
407
|
-
borderRightWidth: boolean;
|
|
408
|
-
borderStartColor: boolean;
|
|
409
|
-
borderStyle: boolean;
|
|
410
|
-
borderTopColor: boolean;
|
|
411
|
-
borderTopEndRadius: boolean;
|
|
412
|
-
borderTopLeftRadius: boolean;
|
|
413
|
-
borderTopRightRadius: boolean;
|
|
414
|
-
borderTopStartRadius: boolean;
|
|
415
|
-
borderTopWidth: boolean;
|
|
416
|
-
borderWidth: boolean;
|
|
417
|
-
opacity: boolean;
|
|
418
|
-
transform: boolean;
|
|
419
|
-
alignContent: boolean;
|
|
420
|
-
alignItems: boolean;
|
|
421
|
-
alignSelf: boolean;
|
|
422
|
-
aspectRatio: boolean;
|
|
423
|
-
borderEndWidth: boolean;
|
|
424
|
-
borderStartWidth: boolean;
|
|
425
|
-
bottom: boolean;
|
|
426
|
-
display: boolean;
|
|
427
|
-
end: boolean;
|
|
428
|
-
flex: boolean;
|
|
429
|
-
flexBasis: boolean;
|
|
430
|
-
flexDirection: boolean;
|
|
431
|
-
flexGrow: boolean;
|
|
432
|
-
flexShrink: boolean;
|
|
433
|
-
flexWrap: boolean;
|
|
434
|
-
height: boolean;
|
|
435
|
-
justifyContent: boolean;
|
|
436
|
-
left: boolean;
|
|
437
|
-
margin: boolean;
|
|
438
|
-
marginBottom: boolean;
|
|
439
|
-
marginEnd: boolean;
|
|
440
|
-
marginHorizontal: boolean;
|
|
441
|
-
marginLeft: boolean;
|
|
442
|
-
marginRight: boolean;
|
|
443
|
-
marginStart: boolean;
|
|
444
|
-
marginTop: boolean;
|
|
445
|
-
marginVertical: boolean;
|
|
446
|
-
maxHeight: boolean;
|
|
447
|
-
maxWidth: boolean;
|
|
448
|
-
minHeight: boolean;
|
|
449
|
-
minWidth: boolean;
|
|
450
|
-
overflow: boolean;
|
|
451
|
-
padding: boolean;
|
|
452
|
-
paddingBottom: boolean;
|
|
453
|
-
paddingEnd: boolean;
|
|
454
|
-
paddingHorizontal: boolean;
|
|
455
|
-
paddingLeft: boolean;
|
|
456
|
-
paddingRight: boolean;
|
|
457
|
-
paddingStart: boolean;
|
|
458
|
-
paddingTop: boolean;
|
|
459
|
-
paddingVertical: boolean;
|
|
460
|
-
position: boolean;
|
|
461
|
-
right: boolean;
|
|
462
|
-
start: boolean;
|
|
463
|
-
top: boolean;
|
|
464
|
-
width: boolean;
|
|
465
|
-
zIndex: boolean;
|
|
466
|
-
direction: boolean;
|
|
467
|
-
shadowColor: boolean;
|
|
468
|
-
shadowOffset: boolean;
|
|
469
|
-
shadowOpacity: boolean;
|
|
470
|
-
shadowRadius: boolean;
|
|
471
|
-
hoverStyle: boolean;
|
|
472
|
-
pressStyle: boolean;
|
|
473
|
-
focusStyle: boolean;
|
|
474
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validStyleProps.d.ts","sourceRoot":"","sources":["validStyleProps.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;CAc/B,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyFzB,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;EAyB7B,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGzB,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiB,CAAA;AAE3C,eAAO,MAAM,iBAAiB;;;;CAI7B,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAA"}
|
package/src/validStyleProps.js
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
export const stylePropsTransform = {
|
|
2
|
-
x: true,
|
|
3
|
-
y: true,
|
|
4
|
-
scale: true,
|
|
5
|
-
perspective: true,
|
|
6
|
-
scaleX: true,
|
|
7
|
-
scaleY: true,
|
|
8
|
-
skewX: true,
|
|
9
|
-
skewY: true,
|
|
10
|
-
matrix: true,
|
|
11
|
-
rotate: true,
|
|
12
|
-
rotateY: true,
|
|
13
|
-
rotateX: true,
|
|
14
|
-
rotateZ: true,
|
|
15
|
-
};
|
|
16
|
-
export const stylePropsView = Object.freeze({
|
|
17
|
-
backfaceVisibility: true,
|
|
18
|
-
backgroundColor: true,
|
|
19
|
-
borderBottomColor: true,
|
|
20
|
-
borderBottomEndRadius: true,
|
|
21
|
-
borderBottomLeftRadius: true,
|
|
22
|
-
borderBottomRightRadius: true,
|
|
23
|
-
borderBottomStartRadius: true,
|
|
24
|
-
borderBottomWidth: true,
|
|
25
|
-
borderColor: true,
|
|
26
|
-
borderEndColor: true,
|
|
27
|
-
borderLeftColor: true,
|
|
28
|
-
borderLeftWidth: true,
|
|
29
|
-
borderRadius: true,
|
|
30
|
-
borderRightColor: true,
|
|
31
|
-
borderRightWidth: true,
|
|
32
|
-
borderStartColor: true,
|
|
33
|
-
borderStyle: true,
|
|
34
|
-
borderTopColor: true,
|
|
35
|
-
borderTopEndRadius: true,
|
|
36
|
-
borderTopLeftRadius: true,
|
|
37
|
-
borderTopRightRadius: true,
|
|
38
|
-
borderTopStartRadius: true,
|
|
39
|
-
borderTopWidth: true,
|
|
40
|
-
borderWidth: true,
|
|
41
|
-
opacity: true,
|
|
42
|
-
transform: true,
|
|
43
|
-
alignContent: true,
|
|
44
|
-
alignItems: true,
|
|
45
|
-
alignSelf: true,
|
|
46
|
-
aspectRatio: true,
|
|
47
|
-
borderEndWidth: true,
|
|
48
|
-
borderStartWidth: true,
|
|
49
|
-
bottom: true,
|
|
50
|
-
display: true,
|
|
51
|
-
end: true,
|
|
52
|
-
flex: true,
|
|
53
|
-
flexBasis: true,
|
|
54
|
-
flexDirection: true,
|
|
55
|
-
flexGrow: true,
|
|
56
|
-
flexShrink: true,
|
|
57
|
-
flexWrap: true,
|
|
58
|
-
height: true,
|
|
59
|
-
justifyContent: true,
|
|
60
|
-
left: true,
|
|
61
|
-
margin: true,
|
|
62
|
-
marginBottom: true,
|
|
63
|
-
marginEnd: true,
|
|
64
|
-
marginHorizontal: true,
|
|
65
|
-
marginLeft: true,
|
|
66
|
-
marginRight: true,
|
|
67
|
-
marginStart: true,
|
|
68
|
-
marginTop: true,
|
|
69
|
-
marginVertical: true,
|
|
70
|
-
maxHeight: true,
|
|
71
|
-
maxWidth: true,
|
|
72
|
-
minHeight: true,
|
|
73
|
-
minWidth: true,
|
|
74
|
-
overflow: true,
|
|
75
|
-
padding: true,
|
|
76
|
-
paddingBottom: true,
|
|
77
|
-
paddingEnd: true,
|
|
78
|
-
paddingHorizontal: true,
|
|
79
|
-
paddingLeft: true,
|
|
80
|
-
paddingRight: true,
|
|
81
|
-
paddingStart: true,
|
|
82
|
-
paddingTop: true,
|
|
83
|
-
paddingVertical: true,
|
|
84
|
-
position: true,
|
|
85
|
-
right: true,
|
|
86
|
-
start: true,
|
|
87
|
-
top: true,
|
|
88
|
-
width: true,
|
|
89
|
-
zIndex: true,
|
|
90
|
-
direction: true,
|
|
91
|
-
shadowColor: true,
|
|
92
|
-
shadowOffset: true,
|
|
93
|
-
shadowOpacity: true,
|
|
94
|
-
shadowRadius: true,
|
|
95
|
-
...stylePropsTransform,
|
|
96
|
-
...(process.env.TAMAGUI_TARGET === 'web' && {
|
|
97
|
-
userSelect: true,
|
|
98
|
-
cursor: true,
|
|
99
|
-
contain: true,
|
|
100
|
-
pointerEvents: true,
|
|
101
|
-
boxSizing: true,
|
|
102
|
-
}),
|
|
103
|
-
});
|
|
104
|
-
export const stylePropsTextOnly = Object.freeze({
|
|
105
|
-
color: true,
|
|
106
|
-
fontFamily: true,
|
|
107
|
-
fontSize: true,
|
|
108
|
-
fontStyle: true,
|
|
109
|
-
fontWeight: true,
|
|
110
|
-
letterSpacing: true,
|
|
111
|
-
lineHeight: true,
|
|
112
|
-
textAlign: true,
|
|
113
|
-
textDecorationLine: true,
|
|
114
|
-
textDecorationStyle: true,
|
|
115
|
-
textDecorationColor: true,
|
|
116
|
-
textShadowColor: true,
|
|
117
|
-
textShadowOffset: true,
|
|
118
|
-
textShadowRadius: true,
|
|
119
|
-
textTransform: true,
|
|
120
|
-
...(process.env.TAMAGUI_TARGET === 'web' && {
|
|
121
|
-
whiteSpace: true,
|
|
122
|
-
wordWrap: true,
|
|
123
|
-
textOverflow: true,
|
|
124
|
-
textDecorationDistance: true,
|
|
125
|
-
}),
|
|
126
|
-
});
|
|
127
|
-
export const stylePropsText = Object.freeze({
|
|
128
|
-
...stylePropsView,
|
|
129
|
-
...stylePropsTextOnly,
|
|
130
|
-
});
|
|
131
|
-
export const stylePropsAll = stylePropsText;
|
|
132
|
-
export const validStylesPseudo = {
|
|
133
|
-
hoverStyle: true,
|
|
134
|
-
pressStyle: true,
|
|
135
|
-
focusStyle: true,
|
|
136
|
-
};
|
|
137
|
-
export const validStyles = {
|
|
138
|
-
...validStylesPseudo,
|
|
139
|
-
...stylePropsView,
|
|
140
|
-
};
|
package/src/validStyleProps.ts
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
// flat transform props
|
|
2
|
-
export const stylePropsTransform = {
|
|
3
|
-
x: true,
|
|
4
|
-
y: true,
|
|
5
|
-
scale: true,
|
|
6
|
-
perspective: true,
|
|
7
|
-
scaleX: true,
|
|
8
|
-
scaleY: true,
|
|
9
|
-
skewX: true,
|
|
10
|
-
skewY: true,
|
|
11
|
-
matrix: true,
|
|
12
|
-
rotate: true,
|
|
13
|
-
rotateY: true,
|
|
14
|
-
rotateX: true,
|
|
15
|
-
rotateZ: true,
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const stylePropsView = Object.freeze({
|
|
19
|
-
backfaceVisibility: true,
|
|
20
|
-
backgroundColor: true,
|
|
21
|
-
borderBottomColor: true,
|
|
22
|
-
borderBottomEndRadius: true,
|
|
23
|
-
borderBottomLeftRadius: true,
|
|
24
|
-
borderBottomRightRadius: true,
|
|
25
|
-
borderBottomStartRadius: true,
|
|
26
|
-
borderBottomWidth: true,
|
|
27
|
-
borderColor: true,
|
|
28
|
-
borderEndColor: true,
|
|
29
|
-
borderLeftColor: true,
|
|
30
|
-
borderLeftWidth: true,
|
|
31
|
-
borderRadius: true,
|
|
32
|
-
borderRightColor: true,
|
|
33
|
-
borderRightWidth: true,
|
|
34
|
-
borderStartColor: true,
|
|
35
|
-
borderStyle: true,
|
|
36
|
-
borderTopColor: true,
|
|
37
|
-
borderTopEndRadius: true,
|
|
38
|
-
borderTopLeftRadius: true,
|
|
39
|
-
borderTopRightRadius: true,
|
|
40
|
-
borderTopStartRadius: true,
|
|
41
|
-
borderTopWidth: true,
|
|
42
|
-
borderWidth: true,
|
|
43
|
-
opacity: true,
|
|
44
|
-
transform: true,
|
|
45
|
-
alignContent: true,
|
|
46
|
-
alignItems: true,
|
|
47
|
-
alignSelf: true,
|
|
48
|
-
aspectRatio: true,
|
|
49
|
-
borderEndWidth: true,
|
|
50
|
-
borderStartWidth: true,
|
|
51
|
-
bottom: true,
|
|
52
|
-
display: true,
|
|
53
|
-
end: true,
|
|
54
|
-
flex: true,
|
|
55
|
-
flexBasis: true,
|
|
56
|
-
flexDirection: true,
|
|
57
|
-
flexGrow: true,
|
|
58
|
-
flexShrink: true,
|
|
59
|
-
flexWrap: true,
|
|
60
|
-
height: true,
|
|
61
|
-
justifyContent: true,
|
|
62
|
-
left: true,
|
|
63
|
-
margin: true,
|
|
64
|
-
marginBottom: true,
|
|
65
|
-
marginEnd: true,
|
|
66
|
-
marginHorizontal: true,
|
|
67
|
-
marginLeft: true,
|
|
68
|
-
marginRight: true,
|
|
69
|
-
marginStart: true,
|
|
70
|
-
marginTop: true,
|
|
71
|
-
marginVertical: true,
|
|
72
|
-
maxHeight: true,
|
|
73
|
-
maxWidth: true,
|
|
74
|
-
minHeight: true,
|
|
75
|
-
minWidth: true,
|
|
76
|
-
overflow: true,
|
|
77
|
-
padding: true,
|
|
78
|
-
paddingBottom: true,
|
|
79
|
-
paddingEnd: true,
|
|
80
|
-
paddingHorizontal: true,
|
|
81
|
-
paddingLeft: true,
|
|
82
|
-
paddingRight: true,
|
|
83
|
-
paddingStart: true,
|
|
84
|
-
paddingTop: true,
|
|
85
|
-
paddingVertical: true,
|
|
86
|
-
position: true,
|
|
87
|
-
right: true,
|
|
88
|
-
start: true,
|
|
89
|
-
top: true,
|
|
90
|
-
width: true,
|
|
91
|
-
zIndex: true,
|
|
92
|
-
direction: true,
|
|
93
|
-
shadowColor: true,
|
|
94
|
-
shadowOffset: true,
|
|
95
|
-
shadowOpacity: true,
|
|
96
|
-
shadowRadius: true,
|
|
97
|
-
...stylePropsTransform,
|
|
98
|
-
|
|
99
|
-
// allow a few web only ones
|
|
100
|
-
...(process.env.TAMAGUI_TARGET === 'web' && {
|
|
101
|
-
userSelect: true,
|
|
102
|
-
cursor: true,
|
|
103
|
-
contain: true,
|
|
104
|
-
pointerEvents: true,
|
|
105
|
-
boxSizing: true,
|
|
106
|
-
}),
|
|
107
|
-
})
|
|
108
|
-
|
|
109
|
-
export const stylePropsTextOnly = Object.freeze({
|
|
110
|
-
color: true,
|
|
111
|
-
fontFamily: true,
|
|
112
|
-
fontSize: true,
|
|
113
|
-
fontStyle: true,
|
|
114
|
-
fontWeight: true,
|
|
115
|
-
letterSpacing: true,
|
|
116
|
-
lineHeight: true,
|
|
117
|
-
textAlign: true,
|
|
118
|
-
textDecorationLine: true,
|
|
119
|
-
textDecorationStyle: true,
|
|
120
|
-
textDecorationColor: true,
|
|
121
|
-
textShadowColor: true,
|
|
122
|
-
textShadowOffset: true,
|
|
123
|
-
textShadowRadius: true,
|
|
124
|
-
textTransform: true,
|
|
125
|
-
|
|
126
|
-
// allow a few web only ones
|
|
127
|
-
// TODO
|
|
128
|
-
...(process.env.TAMAGUI_TARGET === 'web' && {
|
|
129
|
-
whiteSpace: true,
|
|
130
|
-
wordWrap: true,
|
|
131
|
-
textOverflow: true,
|
|
132
|
-
textDecorationDistance: true,
|
|
133
|
-
}),
|
|
134
|
-
})
|
|
135
|
-
|
|
136
|
-
export const stylePropsText = Object.freeze({
|
|
137
|
-
...stylePropsView,
|
|
138
|
-
...stylePropsTextOnly,
|
|
139
|
-
})
|
|
140
|
-
|
|
141
|
-
export const stylePropsAll = stylePropsText
|
|
142
|
-
|
|
143
|
-
export const validStylesPseudo = {
|
|
144
|
-
hoverStyle: true,
|
|
145
|
-
pressStyle: true,
|
|
146
|
-
focusStyle: true,
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export const validStyles = {
|
|
150
|
-
...validStylesPseudo,
|
|
151
|
-
...stylePropsView,
|
|
152
|
-
}
|