@tamagui/helpers 2.0.0-rc.4 → 2.0.0-rc.40
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/clamp.cjs +12 -10
- package/dist/cjs/clamp.native.js +12 -10
- package/dist/cjs/clamp.native.js.map +1 -1
- package/dist/cjs/composeEventHandlers.cjs +22 -14
- package/dist/cjs/composeEventHandlers.native.js +23 -15
- package/dist/cjs/composeEventHandlers.native.js.map +1 -1
- package/dist/cjs/index.cjs +7 -5
- package/dist/cjs/index.native.js +7 -5
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/shouldRenderNativePlatform.cjs +28 -15
- package/dist/cjs/shouldRenderNativePlatform.native.js +44 -28
- package/dist/cjs/shouldRenderNativePlatform.native.js.map +1 -1
- package/dist/cjs/types.cjs +17 -15
- package/dist/cjs/types.native.js +17 -15
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/validStyleProps.cjs +308 -273
- package/dist/cjs/validStyleProps.native.js +303 -268
- package/dist/cjs/validStyleProps.native.js.map +1 -1
- package/dist/cjs/webOnlyStyleProps.cjs +88 -78
- package/dist/cjs/webOnlyStyleProps.native.js +88 -78
- package/dist/cjs/webOnlyStyleProps.native.js.map +1 -1
- package/dist/cjs/withStaticProperties.cjs +18 -12
- package/dist/cjs/withStaticProperties.native.js +18 -14
- package/dist/cjs/withStaticProperties.native.js.map +1 -1
- package/dist/esm/composeEventHandlers.mjs +10 -4
- package/dist/esm/composeEventHandlers.mjs.map +1 -1
- package/dist/esm/composeEventHandlers.native.js +11 -5
- package/dist/esm/composeEventHandlers.native.js.map +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/index.js.map +1 -6
- package/dist/esm/shouldRenderNativePlatform.mjs +16 -5
- package/dist/esm/shouldRenderNativePlatform.mjs.map +1 -1
- package/dist/esm/shouldRenderNativePlatform.native.js +30 -16
- package/dist/esm/shouldRenderNativePlatform.native.js.map +1 -1
- package/dist/esm/types.mjs +5 -5
- package/dist/esm/types.mjs.map +1 -1
- package/dist/esm/types.native.js +5 -5
- package/dist/esm/types.native.js.map +1 -1
- package/dist/esm/validStyleProps.mjs +294 -263
- package/dist/esm/validStyleProps.mjs.map +1 -1
- package/dist/esm/validStyleProps.native.js +288 -257
- package/dist/esm/validStyleProps.native.js.map +1 -1
- package/dist/esm/webOnlyStyleProps.mjs +75 -69
- package/dist/esm/webOnlyStyleProps.mjs.map +1 -1
- package/dist/esm/webOnlyStyleProps.native.js +75 -69
- package/dist/esm/webOnlyStyleProps.native.js.map +1 -1
- package/dist/esm/withStaticProperties.mjs +6 -2
- package/dist/esm/withStaticProperties.mjs.map +1 -1
- package/dist/esm/withStaticProperties.native.js +6 -4
- package/dist/esm/withStaticProperties.native.js.map +1 -1
- package/package.json +7 -10
- package/src/validStyleProps.ts +104 -38
- package/src/webOnlyStyleProps.ts +40 -29
- package/types/validStyleProps.d.ts +337 -238
- package/types/validStyleProps.d.ts.map +1 -1
- package/types/webOnlyStyleProps.d.ts +60 -20
- package/types/webOnlyStyleProps.d.ts.map +1 -1
- package/dist/cjs/clamp.js +0 -23
- package/dist/cjs/clamp.js.map +0 -6
- package/dist/cjs/composeEventHandlers.js +0 -27
- package/dist/cjs/composeEventHandlers.js.map +0 -6
- package/dist/cjs/index.js +0 -22
- package/dist/cjs/index.js.map +0 -6
- package/dist/cjs/shouldRenderNativePlatform.js +0 -35
- package/dist/cjs/shouldRenderNativePlatform.js.map +0 -6
- package/dist/cjs/types.js +0 -25
- package/dist/cjs/types.js.map +0 -6
- package/dist/cjs/validStyleProps.js +0 -283
- package/dist/cjs/validStyleProps.js.map +0 -6
- package/dist/cjs/webOnlyStyleProps.js +0 -89
- package/dist/cjs/webOnlyStyleProps.js.map +0 -6
- package/dist/cjs/withStaticProperties.js +0 -21
- package/dist/cjs/withStaticProperties.js.map +0 -6
- package/dist/esm/clamp.js +0 -7
- package/dist/esm/clamp.js.map +0 -6
- package/dist/esm/composeEventHandlers.js +0 -11
- package/dist/esm/composeEventHandlers.js.map +0 -6
- package/dist/esm/shouldRenderNativePlatform.js +0 -19
- package/dist/esm/shouldRenderNativePlatform.js.map +0 -6
- package/dist/esm/types.js +0 -9
- package/dist/esm/types.js.map +0 -6
- package/dist/esm/validStyleProps.js +0 -268
- package/dist/esm/validStyleProps.js.map +0 -6
- package/dist/esm/webOnlyStyleProps.js +0 -73
- package/dist/esm/webOnlyStyleProps.js.map +0 -6
- package/dist/esm/withStaticProperties.js +0 -5
- package/dist/esm/withStaticProperties.js.map +0 -6
|
@@ -1,35 +1,49 @@
|
|
|
1
1
|
import { currentPlatform } from "@tamagui/constants";
|
|
2
2
|
var ALL_PLATFORMS = ["web", "android", "ios"];
|
|
3
3
|
function shouldRenderNativePlatform(nativeProp) {
|
|
4
|
-
if (!nativeProp)
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
if (!nativeProp) {
|
|
5
|
+
return null;
|
|
6
|
+
}
|
|
7
|
+
var userRequestedPlatforms = resolvePlatformNames(nativeProp);
|
|
8
|
+
var _iteratorNormalCompletion = true,
|
|
9
|
+
_didIteratorError = false,
|
|
8
10
|
_iteratorError = void 0;
|
|
9
11
|
try {
|
|
10
|
-
for (var _iterator = ALL_PLATFORMS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion =
|
|
12
|
+
for (var _iterator = ALL_PLATFORMS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
11
13
|
var platform = _step.value;
|
|
12
|
-
if (platform === currentPlatform && userRequestedPlatforms.has(platform))
|
|
14
|
+
if (platform === currentPlatform && userRequestedPlatforms.has(platform)) {
|
|
15
|
+
return platform;
|
|
16
|
+
}
|
|
13
17
|
}
|
|
14
18
|
} catch (err) {
|
|
15
|
-
_didIteratorError =
|
|
19
|
+
_didIteratorError = true;
|
|
20
|
+
_iteratorError = err;
|
|
16
21
|
} finally {
|
|
17
22
|
try {
|
|
18
|
-
!_iteratorNormalCompletion && _iterator.return != null
|
|
23
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
24
|
+
_iterator.return();
|
|
25
|
+
}
|
|
19
26
|
} finally {
|
|
20
|
-
if (_didIteratorError)
|
|
27
|
+
if (_didIteratorError) {
|
|
28
|
+
throw _iteratorError;
|
|
29
|
+
}
|
|
21
30
|
}
|
|
22
31
|
}
|
|
23
32
|
return null;
|
|
24
33
|
}
|
|
25
34
|
function resolvePlatformNames(nativeProp) {
|
|
26
|
-
var platforms = nativeProp ===
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
var platforms = nativeProp === true ?
|
|
36
|
+
// all native platforms
|
|
37
|
+
ALL_PLATFORMS : nativeProp === false ?
|
|
38
|
+
// no native platform
|
|
39
|
+
[] : Array.isArray(nativeProp) ? nativeProp : [nativeProp];
|
|
40
|
+
var set = new Set(platforms);
|
|
41
|
+
if (set.has("mobile")) {
|
|
42
|
+
set.add("android");
|
|
43
|
+
set.add("ios");
|
|
44
|
+
set.delete("mobile");
|
|
45
|
+
}
|
|
46
|
+
return set;
|
|
33
47
|
}
|
|
34
48
|
export { shouldRenderNativePlatform };
|
|
35
49
|
//# sourceMappingURL=shouldRenderNativePlatform.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["currentPlatform","ALL_PLATFORMS","shouldRenderNativePlatform","nativeProp","userRequestedPlatforms","resolvePlatformNames","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","Symbol","iterator","_step","next","done","platform","value","has"],"sources":["../../src/shouldRenderNativePlatform.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,eAAA,QAAuB;AAuBhC,IAAAC,aAAM,IAaC,OACL,SAAK,EACH,
|
|
1
|
+
{"version":3,"names":["currentPlatform","ALL_PLATFORMS","shouldRenderNativePlatform","nativeProp","userRequestedPlatforms","resolvePlatformNames","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","Symbol","iterator","_step","next","done","platform","value","has","err"],"sources":["../../src/shouldRenderNativePlatform.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,eAAA,QAAuB;AAuBhC,IAAAC,aAAM,IAaC,OACL,SAAK,EACH,MAAO;AAET,SAAMC,0BAAyBA,CAAAC,UAAA;EAE/B,KAAAA,UAAW;IACT,OAAI;EACF;EAAO,IACTC,sBAAA,GAAAC,oBAAA,CAAAF,UAAA;EACF,IAAAG,yBAAA;IAAAC,iBAAA;IAAAC,cAAA;EAEA;IACF,SAAAC,SAAA,GAAAR,aAAA,CAAAS,MAAA,CAAAC,QAAA,KAAAC,KAAA,IAAAN,yBAAA,IAAAM,KAAA,GAAAH,SAAA,CAAAI,IAAA,IAAAC,IAAA,GAAAR,yBAAA;MAEA,IAASS,QAAA,GAAAH,KAAA,CAAAI,KAAqB;MAC5B,IAAMD,QAAA,KACJf,eAAe,IACXI,sBACA,CAAAa,GAAA,CAAAF,QAAe;QAKf,OAAMA,QAAQ;MAEhB;IAEF;EACA,SAAIG,GAAI;IACRX,iBAAW,GAAQ;IACrBC,cAAA,GAAAU,GAAA;EACA,UAAO;IACT","ignoreList":[]}
|
package/dist/esm/types.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const StyleObjectProperty = 0
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const StyleObjectProperty = 0;
|
|
2
|
+
const StyleObjectValue = 1;
|
|
3
|
+
const StyleObjectIdentifier = 2;
|
|
4
|
+
const StyleObjectPseudo = 3;
|
|
5
|
+
const StyleObjectRules = 4;
|
|
6
6
|
export { StyleObjectIdentifier, StyleObjectProperty, StyleObjectPseudo, StyleObjectRules, StyleObjectValue };
|
|
7
7
|
//# sourceMappingURL=types.mjs.map
|
package/dist/esm/types.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleObjectProperty","StyleObjectValue","StyleObjectIdentifier","StyleObjectPseudo","StyleObjectRules"],"sources":["../../src/types.ts"],"sourcesContent":[null],"mappings":"AAQO,MAAMA,mBAAA,GAAsB;
|
|
1
|
+
{"version":3,"names":["StyleObjectProperty","StyleObjectValue","StyleObjectIdentifier","StyleObjectPseudo","StyleObjectRules"],"sources":["../../src/types.ts"],"sourcesContent":[null],"mappings":"AAQO,MAAMA,mBAAA,GAAsB;AAC5B,MAAMC,gBAAA,GAAmB;AACzB,MAAMC,qBAAA,GAAwB;AAC9B,MAAMC,iBAAA,GAAoB;AAC1B,MAAMC,gBAAA,GAAmB","ignoreList":[]}
|
package/dist/esm/types.native.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var StyleObjectProperty = 0
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var StyleObjectProperty = 0;
|
|
2
|
+
var StyleObjectValue = 1;
|
|
3
|
+
var StyleObjectIdentifier = 2;
|
|
4
|
+
var StyleObjectPseudo = 3;
|
|
5
|
+
var StyleObjectRules = 4;
|
|
6
6
|
export { StyleObjectIdentifier, StyleObjectProperty, StyleObjectPseudo, StyleObjectRules, StyleObjectValue };
|
|
7
7
|
//# sourceMappingURL=types.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleObjectProperty","StyleObjectValue","StyleObjectIdentifier","StyleObjectPseudo","StyleObjectRules"],"sources":["../../src/types.ts"],"sourcesContent":[null],"mappings":"AAQO,IAAAA,mBAAM;
|
|
1
|
+
{"version":3,"names":["StyleObjectProperty","StyleObjectValue","StyleObjectIdentifier","StyleObjectPseudo","StyleObjectRules"],"sources":["../../src/types.ts"],"sourcesContent":[null],"mappings":"AAQO,IAAAA,mBAAM;AACN,IAAAC,gBAAM;AACN,IAAAC,qBAAM;AACN,IAAAC,iBAAM;AACN,IAAAC,gBAAM","ignoreList":[]}
|
|
@@ -1,270 +1,301 @@
|
|
|
1
1
|
import { isAndroid } from "@tamagui/constants";
|
|
2
|
-
import { webOnlyStylePropsText, webOnlyStylePropsView } from "./webOnlyStyleProps.mjs";
|
|
2
|
+
import { nonAnimatableWebTextProps, nonAnimatableWebViewProps, webOnlyStylePropsText, webOnlyStylePropsView } from "./webOnlyStyleProps.mjs";
|
|
3
|
+
const cssShorthandLonghands = {
|
|
4
|
+
borderWidth: true,
|
|
5
|
+
borderStyle: true,
|
|
6
|
+
borderColor: true,
|
|
7
|
+
borderTopWidth: true,
|
|
8
|
+
borderTopStyle: true,
|
|
9
|
+
borderTopColor: true,
|
|
10
|
+
borderRightWidth: true,
|
|
11
|
+
borderRightStyle: true,
|
|
12
|
+
borderRightColor: true,
|
|
13
|
+
borderBottomWidth: true,
|
|
14
|
+
borderBottomStyle: true,
|
|
15
|
+
borderBottomColor: true,
|
|
16
|
+
borderLeftWidth: true,
|
|
17
|
+
borderLeftStyle: true,
|
|
18
|
+
borderLeftColor: true,
|
|
19
|
+
outlineWidth: true,
|
|
20
|
+
outlineStyle: true,
|
|
21
|
+
outlineColor: true,
|
|
22
|
+
outlineOffset: true
|
|
23
|
+
};
|
|
3
24
|
const textColors = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
25
|
+
color: true,
|
|
26
|
+
textDecorationColor: true,
|
|
27
|
+
textShadowColor: true
|
|
28
|
+
};
|
|
29
|
+
const tokenCategories = {
|
|
30
|
+
radius: {
|
|
31
|
+
borderRadius: true,
|
|
32
|
+
borderTopLeftRadius: true,
|
|
33
|
+
borderTopRightRadius: true,
|
|
34
|
+
borderBottomLeftRadius: true,
|
|
35
|
+
borderBottomRightRadius: true,
|
|
36
|
+
borderStartStartRadius: true,
|
|
37
|
+
borderStartEndRadius: true,
|
|
38
|
+
borderEndStartRadius: true,
|
|
39
|
+
borderEndEndRadius: true
|
|
7
40
|
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
size: {
|
|
22
|
-
width: !0,
|
|
23
|
-
height: !0,
|
|
24
|
-
minWidth: !0,
|
|
25
|
-
minHeight: !0,
|
|
26
|
-
maxWidth: !0,
|
|
27
|
-
maxHeight: !0,
|
|
28
|
-
blockSize: !0,
|
|
29
|
-
minBlockSize: !0,
|
|
30
|
-
maxBlockSize: !0,
|
|
31
|
-
inlineSize: !0,
|
|
32
|
-
minInlineSize: !0,
|
|
33
|
-
maxInlineSize: !0
|
|
34
|
-
},
|
|
35
|
-
zIndex: {
|
|
36
|
-
zIndex: !0
|
|
37
|
-
},
|
|
38
|
-
color: {
|
|
39
|
-
backgroundColor: !0,
|
|
40
|
-
borderColor: !0,
|
|
41
|
-
borderBlockStartColor: !0,
|
|
42
|
-
borderBlockEndColor: !0,
|
|
43
|
-
borderBlockColor: !0,
|
|
44
|
-
borderBottomColor: !0,
|
|
45
|
-
borderInlineColor: !0,
|
|
46
|
-
borderInlineStartColor: !0,
|
|
47
|
-
borderInlineEndColor: !0,
|
|
48
|
-
borderTopColor: !0,
|
|
49
|
-
borderLeftColor: !0,
|
|
50
|
-
borderRightColor: !0,
|
|
51
|
-
borderEndColor: !0,
|
|
52
|
-
borderStartColor: !0,
|
|
53
|
-
shadowColor: !0,
|
|
54
|
-
...textColors,
|
|
55
|
-
// outlineColor is supported on RN 0.77+ (New Architecture)
|
|
56
|
-
outlineColor: !0,
|
|
57
|
-
caretColor: !0
|
|
58
|
-
}
|
|
41
|
+
size: {
|
|
42
|
+
width: true,
|
|
43
|
+
height: true,
|
|
44
|
+
minWidth: true,
|
|
45
|
+
minHeight: true,
|
|
46
|
+
maxWidth: true,
|
|
47
|
+
maxHeight: true,
|
|
48
|
+
blockSize: true,
|
|
49
|
+
minBlockSize: true,
|
|
50
|
+
maxBlockSize: true,
|
|
51
|
+
inlineSize: true,
|
|
52
|
+
minInlineSize: true,
|
|
53
|
+
maxInlineSize: true
|
|
59
54
|
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
animationIterationCount: !0,
|
|
63
|
-
aspectRatio: !0,
|
|
64
|
-
borderImageOutset: !0,
|
|
65
|
-
borderImageSlice: !0,
|
|
66
|
-
borderImageWidth: !0,
|
|
67
|
-
columnCount: !0,
|
|
68
|
-
flex: !0,
|
|
69
|
-
flexGrow: !0,
|
|
70
|
-
flexOrder: !0,
|
|
71
|
-
flexPositive: !0,
|
|
72
|
-
flexShrink: !0,
|
|
73
|
-
flexNegative: !0,
|
|
74
|
-
fontWeight: !0,
|
|
75
|
-
gridRow: !0,
|
|
76
|
-
gridRowEnd: !0,
|
|
77
|
-
gridRowGap: !0,
|
|
78
|
-
gridRowStart: !0,
|
|
79
|
-
gridColumn: !0,
|
|
80
|
-
gridColumnEnd: !0,
|
|
81
|
-
gridColumnGap: !0,
|
|
82
|
-
gridColumnStart: !0,
|
|
83
|
-
gridTemplateColumns: !0,
|
|
84
|
-
gridTemplateAreas: !0,
|
|
85
|
-
lineClamp: !0,
|
|
86
|
-
opacity: !0,
|
|
87
|
-
order: !0,
|
|
88
|
-
orphans: !0,
|
|
89
|
-
tabSize: !0,
|
|
90
|
-
widows: !0,
|
|
91
|
-
zIndex: !0,
|
|
92
|
-
zoom: !0,
|
|
93
|
-
scale: !0,
|
|
94
|
-
scaleX: !0,
|
|
95
|
-
scaleY: !0,
|
|
96
|
-
scaleZ: !0,
|
|
97
|
-
shadowOpacity: !0
|
|
55
|
+
zIndex: {
|
|
56
|
+
zIndex: true
|
|
98
57
|
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
backfaceVisibility: !0,
|
|
116
|
-
borderCurve: !0,
|
|
117
|
-
cursor: !0,
|
|
118
|
-
borderBottomEndRadius: !0,
|
|
119
|
-
borderBottomStartRadius: !0,
|
|
120
|
-
borderBottomWidth: !0,
|
|
121
|
-
borderLeftWidth: !0,
|
|
122
|
-
borderRightWidth: !0,
|
|
123
|
-
borderBlockWidth: !0,
|
|
124
|
-
borderBlockEndWidth: !0,
|
|
125
|
-
borderBlockStartWidth: !0,
|
|
126
|
-
borderInlineWidth: !0,
|
|
127
|
-
borderInlineEndWidth: !0,
|
|
128
|
-
borderInlineStartWidth: !0,
|
|
129
|
-
borderStyle: !0,
|
|
130
|
-
borderBlockStyle: !0,
|
|
131
|
-
borderBlockEndStyle: !0,
|
|
132
|
-
borderBlockStartStyle: !0,
|
|
133
|
-
borderInlineStyle: !0,
|
|
134
|
-
borderInlineEndStyle: !0,
|
|
135
|
-
borderInlineStartStyle: !0,
|
|
136
|
-
borderTopEndRadius: !0,
|
|
137
|
-
borderTopStartRadius: !0,
|
|
138
|
-
borderTopWidth: !0,
|
|
139
|
-
borderWidth: !0,
|
|
140
|
-
transform: !0,
|
|
141
|
-
transformOrigin: !0,
|
|
142
|
-
alignContent: !0,
|
|
143
|
-
alignItems: !0,
|
|
144
|
-
alignSelf: !0,
|
|
145
|
-
borderEndWidth: !0,
|
|
146
|
-
borderStartWidth: !0,
|
|
147
|
-
bottom: !0,
|
|
148
|
-
display: !0,
|
|
149
|
-
end: !0,
|
|
150
|
-
flexBasis: !0,
|
|
151
|
-
flexDirection: !0,
|
|
152
|
-
flexWrap: !0,
|
|
153
|
-
gap: !0,
|
|
154
|
-
columnGap: !0,
|
|
155
|
-
rowGap: !0,
|
|
156
|
-
justifyContent: !0,
|
|
157
|
-
left: !0,
|
|
158
|
-
margin: !0,
|
|
159
|
-
marginBlock: !0,
|
|
160
|
-
marginBlockEnd: !0,
|
|
161
|
-
marginBlockStart: !0,
|
|
162
|
-
marginInline: !0,
|
|
163
|
-
marginInlineStart: !0,
|
|
164
|
-
marginInlineEnd: !0,
|
|
165
|
-
marginBottom: !0,
|
|
166
|
-
marginEnd: !0,
|
|
167
|
-
marginHorizontal: !0,
|
|
168
|
-
marginLeft: !0,
|
|
169
|
-
marginRight: !0,
|
|
170
|
-
marginStart: !0,
|
|
171
|
-
marginTop: !0,
|
|
172
|
-
marginVertical: !0,
|
|
173
|
-
overflow: !0,
|
|
174
|
-
padding: !0,
|
|
175
|
-
paddingBottom: !0,
|
|
176
|
-
paddingInline: !0,
|
|
177
|
-
paddingBlock: !0,
|
|
178
|
-
paddingBlockStart: !0,
|
|
179
|
-
paddingInlineEnd: !0,
|
|
180
|
-
paddingInlineStart: !0,
|
|
181
|
-
paddingEnd: !0,
|
|
182
|
-
paddingHorizontal: !0,
|
|
183
|
-
paddingLeft: !0,
|
|
184
|
-
paddingRight: !0,
|
|
185
|
-
paddingStart: !0,
|
|
186
|
-
paddingTop: !0,
|
|
187
|
-
paddingVertical: !0,
|
|
188
|
-
position: !0,
|
|
189
|
-
right: !0,
|
|
190
|
-
start: !0,
|
|
191
|
-
top: !0,
|
|
192
|
-
inset: !0,
|
|
193
|
-
insetBlock: !0,
|
|
194
|
-
insetBlockEnd: !0,
|
|
195
|
-
insetBlockStart: !0,
|
|
196
|
-
insetInline: !0,
|
|
197
|
-
insetInlineEnd: !0,
|
|
198
|
-
insetInlineStart: !0,
|
|
199
|
-
direction: !0,
|
|
200
|
-
shadowOffset: !0,
|
|
201
|
-
shadowRadius: !0,
|
|
202
|
-
...tokenCategories.color,
|
|
203
|
-
...tokenCategories.radius,
|
|
204
|
-
...tokenCategories.size,
|
|
205
|
-
...tokenCategories.radius,
|
|
206
|
-
...stylePropsTransform,
|
|
207
|
-
...stylePropsUnitless,
|
|
208
|
-
...(isAndroid ? {
|
|
209
|
-
elevationAndroid: !0
|
|
210
|
-
} : {}),
|
|
211
|
-
boxShadow: !0,
|
|
212
|
-
border: !0,
|
|
213
|
-
filter: !0,
|
|
214
|
-
// RN 0.76+ supports linear-gradient via backgroundImage
|
|
215
|
-
backgroundImage: !0,
|
|
216
|
-
// the actual RN 0.76+ prop name (backgroundImage expands to this on native)
|
|
217
|
-
experimental_backgroundImage: !0,
|
|
218
|
-
// RN 0.76/0.77+ style props (New Architecture)
|
|
219
|
-
boxSizing: !0,
|
|
220
|
-
mixBlendMode: !0,
|
|
221
|
-
isolation: !0,
|
|
222
|
-
outlineColor: !0,
|
|
223
|
-
outlineOffset: !0,
|
|
224
|
-
outlineStyle: !0,
|
|
225
|
-
outlineWidth: !0,
|
|
226
|
-
// web-only for convenience - tree-shaken on native
|
|
227
|
-
...webOnlyStylePropsView
|
|
228
|
-
},
|
|
229
|
-
stylePropsFont = {
|
|
230
|
-
fontFamily: !0,
|
|
231
|
-
fontSize: !0,
|
|
232
|
-
fontStyle: !0,
|
|
233
|
-
fontWeight: !0,
|
|
234
|
-
fontVariant: !0,
|
|
235
|
-
letterSpacing: !0,
|
|
236
|
-
lineHeight: !0,
|
|
237
|
-
textTransform: !0
|
|
238
|
-
},
|
|
239
|
-
stylePropsTextOnly = {
|
|
240
|
-
...stylePropsFont,
|
|
241
|
-
textAlign: !0,
|
|
242
|
-
textDecorationLine: !0,
|
|
243
|
-
textDecorationStyle: !0,
|
|
58
|
+
color: {
|
|
59
|
+
backgroundColor: true,
|
|
60
|
+
borderColor: true,
|
|
61
|
+
borderBlockStartColor: true,
|
|
62
|
+
borderBlockEndColor: true,
|
|
63
|
+
borderBlockColor: true,
|
|
64
|
+
borderBottomColor: true,
|
|
65
|
+
borderInlineColor: true,
|
|
66
|
+
borderInlineStartColor: true,
|
|
67
|
+
borderInlineEndColor: true,
|
|
68
|
+
borderTopColor: true,
|
|
69
|
+
borderLeftColor: true,
|
|
70
|
+
borderRightColor: true,
|
|
71
|
+
borderEndColor: true,
|
|
72
|
+
borderStartColor: true,
|
|
73
|
+
shadowColor: true,
|
|
244
74
|
...textColors,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
75
|
+
outlineColor: true,
|
|
76
|
+
caretColor: true
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const nonAnimatableViewProps = {
|
|
80
|
+
alignContent: true,
|
|
81
|
+
alignItems: true,
|
|
82
|
+
alignSelf: true,
|
|
83
|
+
backfaceVisibility: true,
|
|
84
|
+
borderCurve: true,
|
|
85
|
+
borderStyle: true,
|
|
86
|
+
borderBlockStyle: true,
|
|
87
|
+
borderBlockEndStyle: true,
|
|
88
|
+
borderBlockStartStyle: true,
|
|
89
|
+
borderInlineStyle: true,
|
|
90
|
+
borderInlineEndStyle: true,
|
|
91
|
+
borderInlineStartStyle: true,
|
|
92
|
+
boxSizing: true,
|
|
93
|
+
cursor: true,
|
|
94
|
+
direction: true,
|
|
95
|
+
display: true,
|
|
96
|
+
flexDirection: true,
|
|
97
|
+
flexWrap: true,
|
|
98
|
+
isolation: true,
|
|
99
|
+
justifyContent: true,
|
|
100
|
+
mixBlendMode: true,
|
|
101
|
+
outlineStyle: true,
|
|
102
|
+
overflow: true,
|
|
103
|
+
position: true
|
|
104
|
+
};
|
|
105
|
+
const nonAnimatableFontProps = {
|
|
106
|
+
fontFamily: true,
|
|
107
|
+
fontStyle: true,
|
|
108
|
+
fontVariant: true,
|
|
109
|
+
textTransform: true
|
|
110
|
+
};
|
|
111
|
+
const nonAnimatableTextOnlyProps = {
|
|
112
|
+
textAlign: true,
|
|
113
|
+
textDecorationLine: true,
|
|
114
|
+
textDecorationStyle: true,
|
|
115
|
+
userSelect: true
|
|
116
|
+
};
|
|
117
|
+
const nonAnimatableUnitlessProps = {
|
|
118
|
+
WebkitLineClamp: true,
|
|
119
|
+
lineClamp: true,
|
|
120
|
+
gridTemplateColumns: true,
|
|
121
|
+
gridTemplateAreas: true
|
|
122
|
+
};
|
|
123
|
+
const nonAnimatableStyleProps = {
|
|
124
|
+
...nonAnimatableViewProps,
|
|
125
|
+
...nonAnimatableFontProps,
|
|
126
|
+
...nonAnimatableTextOnlyProps,
|
|
127
|
+
...nonAnimatableUnitlessProps,
|
|
128
|
+
...nonAnimatableWebViewProps,
|
|
129
|
+
...nonAnimatableWebTextProps
|
|
130
|
+
};
|
|
131
|
+
const stylePropsUnitless = {
|
|
132
|
+
...nonAnimatableUnitlessProps,
|
|
133
|
+
animationIterationCount: true,
|
|
134
|
+
aspectRatio: true,
|
|
135
|
+
borderImageOutset: true,
|
|
136
|
+
borderImageSlice: true,
|
|
137
|
+
borderImageWidth: true,
|
|
138
|
+
columnCount: true,
|
|
139
|
+
flex: true,
|
|
140
|
+
flexGrow: true,
|
|
141
|
+
flexOrder: true,
|
|
142
|
+
flexPositive: true,
|
|
143
|
+
flexShrink: true,
|
|
144
|
+
flexNegative: true,
|
|
145
|
+
fontWeight: true,
|
|
146
|
+
gridRow: true,
|
|
147
|
+
gridRowEnd: true,
|
|
148
|
+
gridRowGap: true,
|
|
149
|
+
gridRowStart: true,
|
|
150
|
+
gridColumn: true,
|
|
151
|
+
gridColumnEnd: true,
|
|
152
|
+
gridColumnGap: true,
|
|
153
|
+
gridColumnStart: true,
|
|
154
|
+
opacity: true,
|
|
155
|
+
order: true,
|
|
156
|
+
orphans: true,
|
|
157
|
+
tabSize: true,
|
|
158
|
+
widows: true,
|
|
159
|
+
zIndex: true,
|
|
160
|
+
zoom: true,
|
|
161
|
+
scale: true,
|
|
162
|
+
scaleX: true,
|
|
163
|
+
scaleY: true,
|
|
164
|
+
scaleZ: true,
|
|
165
|
+
shadowOpacity: true
|
|
166
|
+
};
|
|
167
|
+
const stylePropsTransform = {
|
|
168
|
+
x: true,
|
|
169
|
+
y: true,
|
|
170
|
+
scale: true,
|
|
171
|
+
perspective: true,
|
|
172
|
+
scaleX: true,
|
|
173
|
+
scaleY: true,
|
|
174
|
+
skewX: true,
|
|
175
|
+
skewY: true,
|
|
176
|
+
matrix: true,
|
|
177
|
+
rotate: true,
|
|
178
|
+
rotateY: true,
|
|
179
|
+
rotateX: true,
|
|
180
|
+
rotateZ: true
|
|
181
|
+
};
|
|
182
|
+
const stylePropsView = {
|
|
183
|
+
...nonAnimatableViewProps,
|
|
184
|
+
borderBottomEndRadius: true,
|
|
185
|
+
borderBottomStartRadius: true,
|
|
186
|
+
borderBottomWidth: true,
|
|
187
|
+
borderLeftWidth: true,
|
|
188
|
+
borderRightWidth: true,
|
|
189
|
+
borderBlockWidth: true,
|
|
190
|
+
borderBlockEndWidth: true,
|
|
191
|
+
borderBlockStartWidth: true,
|
|
192
|
+
borderInlineWidth: true,
|
|
193
|
+
borderInlineEndWidth: true,
|
|
194
|
+
borderInlineStartWidth: true,
|
|
195
|
+
borderTopEndRadius: true,
|
|
196
|
+
borderTopStartRadius: true,
|
|
197
|
+
borderTopWidth: true,
|
|
198
|
+
borderWidth: true,
|
|
199
|
+
transform: true,
|
|
200
|
+
transformOrigin: true,
|
|
201
|
+
borderEndWidth: true,
|
|
202
|
+
borderStartWidth: true,
|
|
203
|
+
bottom: true,
|
|
204
|
+
end: true,
|
|
205
|
+
flexBasis: true,
|
|
206
|
+
gap: true,
|
|
207
|
+
columnGap: true,
|
|
208
|
+
rowGap: true,
|
|
209
|
+
left: true,
|
|
210
|
+
margin: true,
|
|
211
|
+
marginBlock: true,
|
|
212
|
+
marginBlockEnd: true,
|
|
213
|
+
marginBlockStart: true,
|
|
214
|
+
marginInline: true,
|
|
215
|
+
marginInlineStart: true,
|
|
216
|
+
marginInlineEnd: true,
|
|
217
|
+
marginBottom: true,
|
|
218
|
+
marginEnd: true,
|
|
219
|
+
marginHorizontal: true,
|
|
220
|
+
marginLeft: true,
|
|
221
|
+
marginRight: true,
|
|
222
|
+
marginStart: true,
|
|
223
|
+
marginTop: true,
|
|
224
|
+
marginVertical: true,
|
|
225
|
+
padding: true,
|
|
226
|
+
paddingBottom: true,
|
|
227
|
+
paddingInline: true,
|
|
228
|
+
paddingBlock: true,
|
|
229
|
+
paddingBlockStart: true,
|
|
230
|
+
paddingInlineEnd: true,
|
|
231
|
+
paddingInlineStart: true,
|
|
232
|
+
paddingEnd: true,
|
|
233
|
+
paddingHorizontal: true,
|
|
234
|
+
paddingLeft: true,
|
|
235
|
+
paddingRight: true,
|
|
236
|
+
paddingStart: true,
|
|
237
|
+
paddingTop: true,
|
|
238
|
+
paddingVertical: true,
|
|
239
|
+
right: true,
|
|
240
|
+
start: true,
|
|
241
|
+
top: true,
|
|
242
|
+
inset: true,
|
|
243
|
+
insetBlock: true,
|
|
244
|
+
insetBlockEnd: true,
|
|
245
|
+
insetBlockStart: true,
|
|
246
|
+
insetInline: true,
|
|
247
|
+
insetInlineEnd: true,
|
|
248
|
+
insetInlineStart: true,
|
|
249
|
+
shadowOffset: true,
|
|
250
|
+
shadowRadius: true,
|
|
251
|
+
...tokenCategories.color,
|
|
252
|
+
...tokenCategories.radius,
|
|
253
|
+
...tokenCategories.size,
|
|
254
|
+
...stylePropsTransform,
|
|
255
|
+
...stylePropsUnitless,
|
|
256
|
+
...(isAndroid ? {
|
|
257
|
+
elevationAndroid: true
|
|
258
|
+
} : {}),
|
|
259
|
+
boxShadow: true,
|
|
260
|
+
border: true,
|
|
261
|
+
filter: true,
|
|
262
|
+
backgroundImage: true,
|
|
263
|
+
experimental_backgroundImage: true,
|
|
264
|
+
outline: true,
|
|
265
|
+
outlineColor: true,
|
|
266
|
+
outlineOffset: true,
|
|
267
|
+
outlineWidth: true,
|
|
268
|
+
...webOnlyStylePropsView
|
|
269
|
+
};
|
|
270
|
+
const stylePropsTextOnly = {
|
|
271
|
+
...nonAnimatableFontProps,
|
|
272
|
+
fontSize: true,
|
|
273
|
+
fontWeight: true,
|
|
274
|
+
letterSpacing: true,
|
|
275
|
+
lineHeight: true,
|
|
276
|
+
...nonAnimatableTextOnlyProps,
|
|
277
|
+
...textColors,
|
|
278
|
+
textShadow: true,
|
|
279
|
+
textShadowOffset: true,
|
|
280
|
+
textShadowRadius: true,
|
|
281
|
+
verticalAlign: true,
|
|
282
|
+
...webOnlyStylePropsText
|
|
283
|
+
};
|
|
284
|
+
const stylePropsText = {
|
|
285
|
+
...stylePropsView,
|
|
286
|
+
...stylePropsTextOnly
|
|
287
|
+
};
|
|
288
|
+
const stylePropsAll = stylePropsText;
|
|
289
|
+
const validPseudoKeys = {
|
|
290
|
+
enterStyle: true,
|
|
291
|
+
exitStyle: true,
|
|
292
|
+
hoverStyle: true,
|
|
293
|
+
pressStyle: true,
|
|
294
|
+
focusStyle: true,
|
|
295
|
+
disabledStyle: true,
|
|
296
|
+
focusWithinStyle: true,
|
|
297
|
+
focusVisibleStyle: true
|
|
298
|
+
};
|
|
299
|
+
const validStyles = stylePropsView;
|
|
300
|
+
export { cssShorthandLonghands, nonAnimatableStyleProps, stylePropsAll, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, tokenCategories, validPseudoKeys, validStyles };
|
|
270
301
|
//# sourceMappingURL=validStyleProps.mjs.map
|