@tamagui/helpers 2.0.0-rc.8 → 2.0.0
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 +307 -297
- package/dist/cjs/validStyleProps.native.js +302 -292
- 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 -287
- package/dist/esm/validStyleProps.mjs.map +1 -1
- package/dist/esm/validStyleProps.native.js +288 -281
- 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 +77 -38
- package/src/webOnlyStyleProps.ts +40 -29
- package/types/validStyleProps.d.ts +312 -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 -307
- 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 -292
- 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,288 +1,295 @@
|
|
|
1
1
|
import { isAndroid } from "@tamagui/constants";
|
|
2
|
-
import "./webOnlyStyleProps.native.js";
|
|
2
|
+
import { nonAnimatableWebTextProps, nonAnimatableWebViewProps, webOnlyStylePropsText, webOnlyStylePropsView } from "./webOnlyStyleProps.native.js";
|
|
3
3
|
var cssShorthandLonghands = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
+
};
|
|
24
|
+
var textColors = {
|
|
25
|
+
color: true,
|
|
26
|
+
textDecorationColor: true,
|
|
27
|
+
textShadowColor: true
|
|
28
|
+
};
|
|
29
|
+
var 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
|
|
25
40
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
|
30
54
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
borderRadius: !0,
|
|
34
|
-
borderTopLeftRadius: !0,
|
|
35
|
-
borderTopRightRadius: !0,
|
|
36
|
-
borderBottomLeftRadius: !0,
|
|
37
|
-
borderBottomRightRadius: !0,
|
|
38
|
-
// logical
|
|
39
|
-
borderStartStartRadius: !0,
|
|
40
|
-
borderStartEndRadius: !0,
|
|
41
|
-
borderEndStartRadius: !0,
|
|
42
|
-
borderEndEndRadius: !0
|
|
43
|
-
},
|
|
44
|
-
size: {
|
|
45
|
-
width: !0,
|
|
46
|
-
height: !0,
|
|
47
|
-
minWidth: !0,
|
|
48
|
-
minHeight: !0,
|
|
49
|
-
maxWidth: !0,
|
|
50
|
-
maxHeight: !0,
|
|
51
|
-
blockSize: !0,
|
|
52
|
-
minBlockSize: !0,
|
|
53
|
-
maxBlockSize: !0,
|
|
54
|
-
inlineSize: !0,
|
|
55
|
-
minInlineSize: !0,
|
|
56
|
-
maxInlineSize: !0
|
|
57
|
-
},
|
|
58
|
-
zIndex: {
|
|
59
|
-
zIndex: !0
|
|
60
|
-
},
|
|
61
|
-
color: {
|
|
62
|
-
backgroundColor: !0,
|
|
63
|
-
borderColor: !0,
|
|
64
|
-
borderBlockStartColor: !0,
|
|
65
|
-
borderBlockEndColor: !0,
|
|
66
|
-
borderBlockColor: !0,
|
|
67
|
-
borderBottomColor: !0,
|
|
68
|
-
borderInlineColor: !0,
|
|
69
|
-
borderInlineStartColor: !0,
|
|
70
|
-
borderInlineEndColor: !0,
|
|
71
|
-
borderTopColor: !0,
|
|
72
|
-
borderLeftColor: !0,
|
|
73
|
-
borderRightColor: !0,
|
|
74
|
-
borderEndColor: !0,
|
|
75
|
-
borderStartColor: !0,
|
|
76
|
-
shadowColor: !0,
|
|
77
|
-
...textColors,
|
|
78
|
-
// outlineColor is supported on RN 0.77+ (New Architecture)
|
|
79
|
-
outlineColor: !0
|
|
80
|
-
}
|
|
55
|
+
zIndex: {
|
|
56
|
+
zIndex: true
|
|
81
57
|
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
gridRowEnd: !0,
|
|
99
|
-
gridRowGap: !0,
|
|
100
|
-
gridRowStart: !0,
|
|
101
|
-
gridColumn: !0,
|
|
102
|
-
gridColumnEnd: !0,
|
|
103
|
-
gridColumnGap: !0,
|
|
104
|
-
gridColumnStart: !0,
|
|
105
|
-
gridTemplateColumns: !0,
|
|
106
|
-
gridTemplateAreas: !0,
|
|
107
|
-
lineClamp: !0,
|
|
108
|
-
opacity: !0,
|
|
109
|
-
order: !0,
|
|
110
|
-
orphans: !0,
|
|
111
|
-
tabSize: !0,
|
|
112
|
-
widows: !0,
|
|
113
|
-
zIndex: !0,
|
|
114
|
-
zoom: !0,
|
|
115
|
-
scale: !0,
|
|
116
|
-
scaleX: !0,
|
|
117
|
-
scaleY: !0,
|
|
118
|
-
scaleZ: !0,
|
|
119
|
-
shadowOpacity: !0
|
|
120
|
-
},
|
|
121
|
-
stylePropsTransform = {
|
|
122
|
-
x: !0,
|
|
123
|
-
y: !0,
|
|
124
|
-
scale: !0,
|
|
125
|
-
perspective: !0,
|
|
126
|
-
scaleX: !0,
|
|
127
|
-
scaleY: !0,
|
|
128
|
-
skewX: !0,
|
|
129
|
-
skewY: !0,
|
|
130
|
-
matrix: !0,
|
|
131
|
-
rotate: !0,
|
|
132
|
-
rotateY: !0,
|
|
133
|
-
rotateX: !0,
|
|
134
|
-
rotateZ: !0
|
|
135
|
-
},
|
|
136
|
-
stylePropsView = {
|
|
137
|
-
backfaceVisibility: !0,
|
|
138
|
-
borderCurve: !0,
|
|
139
|
-
cursor: !0,
|
|
140
|
-
borderBottomEndRadius: !0,
|
|
141
|
-
borderBottomStartRadius: !0,
|
|
142
|
-
borderBottomWidth: !0,
|
|
143
|
-
borderLeftWidth: !0,
|
|
144
|
-
borderRightWidth: !0,
|
|
145
|
-
borderBlockWidth: !0,
|
|
146
|
-
borderBlockEndWidth: !0,
|
|
147
|
-
borderBlockStartWidth: !0,
|
|
148
|
-
borderInlineWidth: !0,
|
|
149
|
-
borderInlineEndWidth: !0,
|
|
150
|
-
borderInlineStartWidth: !0,
|
|
151
|
-
borderStyle: !0,
|
|
152
|
-
borderBlockStyle: !0,
|
|
153
|
-
borderBlockEndStyle: !0,
|
|
154
|
-
borderBlockStartStyle: !0,
|
|
155
|
-
borderInlineStyle: !0,
|
|
156
|
-
borderInlineEndStyle: !0,
|
|
157
|
-
borderInlineStartStyle: !0,
|
|
158
|
-
borderTopEndRadius: !0,
|
|
159
|
-
borderTopStartRadius: !0,
|
|
160
|
-
borderTopWidth: !0,
|
|
161
|
-
borderWidth: !0,
|
|
162
|
-
transform: !0,
|
|
163
|
-
transformOrigin: !0,
|
|
164
|
-
alignContent: !0,
|
|
165
|
-
alignItems: !0,
|
|
166
|
-
alignSelf: !0,
|
|
167
|
-
borderEndWidth: !0,
|
|
168
|
-
borderStartWidth: !0,
|
|
169
|
-
bottom: !0,
|
|
170
|
-
display: !0,
|
|
171
|
-
end: !0,
|
|
172
|
-
flexBasis: !0,
|
|
173
|
-
flexDirection: !0,
|
|
174
|
-
flexWrap: !0,
|
|
175
|
-
gap: !0,
|
|
176
|
-
columnGap: !0,
|
|
177
|
-
rowGap: !0,
|
|
178
|
-
justifyContent: !0,
|
|
179
|
-
left: !0,
|
|
180
|
-
margin: !0,
|
|
181
|
-
marginBlock: !0,
|
|
182
|
-
marginBlockEnd: !0,
|
|
183
|
-
marginBlockStart: !0,
|
|
184
|
-
marginInline: !0,
|
|
185
|
-
marginInlineStart: !0,
|
|
186
|
-
marginInlineEnd: !0,
|
|
187
|
-
marginBottom: !0,
|
|
188
|
-
marginEnd: !0,
|
|
189
|
-
marginHorizontal: !0,
|
|
190
|
-
marginLeft: !0,
|
|
191
|
-
marginRight: !0,
|
|
192
|
-
marginStart: !0,
|
|
193
|
-
marginTop: !0,
|
|
194
|
-
marginVertical: !0,
|
|
195
|
-
overflow: !0,
|
|
196
|
-
padding: !0,
|
|
197
|
-
paddingBottom: !0,
|
|
198
|
-
paddingInline: !0,
|
|
199
|
-
paddingBlock: !0,
|
|
200
|
-
paddingBlockStart: !0,
|
|
201
|
-
paddingInlineEnd: !0,
|
|
202
|
-
paddingInlineStart: !0,
|
|
203
|
-
paddingEnd: !0,
|
|
204
|
-
paddingHorizontal: !0,
|
|
205
|
-
paddingLeft: !0,
|
|
206
|
-
paddingRight: !0,
|
|
207
|
-
paddingStart: !0,
|
|
208
|
-
paddingTop: !0,
|
|
209
|
-
paddingVertical: !0,
|
|
210
|
-
position: !0,
|
|
211
|
-
right: !0,
|
|
212
|
-
start: !0,
|
|
213
|
-
top: !0,
|
|
214
|
-
inset: !0,
|
|
215
|
-
insetBlock: !0,
|
|
216
|
-
insetBlockEnd: !0,
|
|
217
|
-
insetBlockStart: !0,
|
|
218
|
-
insetInline: !0,
|
|
219
|
-
insetInlineEnd: !0,
|
|
220
|
-
insetInlineStart: !0,
|
|
221
|
-
direction: !0,
|
|
222
|
-
shadowOffset: !0,
|
|
223
|
-
shadowRadius: !0,
|
|
224
|
-
...tokenCategories.color,
|
|
225
|
-
...tokenCategories.radius,
|
|
226
|
-
...tokenCategories.size,
|
|
227
|
-
...tokenCategories.radius,
|
|
228
|
-
...stylePropsTransform,
|
|
229
|
-
...stylePropsUnitless,
|
|
230
|
-
...(isAndroid ? {
|
|
231
|
-
elevationAndroid: !0
|
|
232
|
-
} : {}),
|
|
233
|
-
boxShadow: !0,
|
|
234
|
-
border: !0,
|
|
235
|
-
filter: !0,
|
|
236
|
-
// RN 0.76+ supports linear-gradient via backgroundImage
|
|
237
|
-
backgroundImage: !0,
|
|
238
|
-
// the actual RN 0.76+ prop name (backgroundImage expands to this on native)
|
|
239
|
-
experimental_backgroundImage: !0,
|
|
240
|
-
// RN 0.76/0.77+ style props (New Architecture)
|
|
241
|
-
boxSizing: !0,
|
|
242
|
-
mixBlendMode: !0,
|
|
243
|
-
isolation: !0,
|
|
244
|
-
outline: !0,
|
|
245
|
-
outlineColor: !0,
|
|
246
|
-
outlineOffset: !0,
|
|
247
|
-
outlineStyle: !0,
|
|
248
|
-
outlineWidth: !0
|
|
249
|
-
},
|
|
250
|
-
stylePropsFont = {
|
|
251
|
-
fontFamily: !0,
|
|
252
|
-
fontSize: !0,
|
|
253
|
-
fontStyle: !0,
|
|
254
|
-
fontWeight: !0,
|
|
255
|
-
fontVariant: !0,
|
|
256
|
-
letterSpacing: !0,
|
|
257
|
-
lineHeight: !0,
|
|
258
|
-
textTransform: !0
|
|
259
|
-
},
|
|
260
|
-
stylePropsTextOnly = {
|
|
261
|
-
...stylePropsFont,
|
|
262
|
-
textAlign: !0,
|
|
263
|
-
textDecorationLine: !0,
|
|
264
|
-
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,
|
|
265
74
|
...textColors,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
75
|
+
outlineColor: true
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
var nonAnimatableViewProps = {
|
|
79
|
+
alignContent: true,
|
|
80
|
+
alignItems: true,
|
|
81
|
+
alignSelf: true,
|
|
82
|
+
backfaceVisibility: true,
|
|
83
|
+
borderCurve: true,
|
|
84
|
+
borderStyle: true,
|
|
85
|
+
borderBlockStyle: true,
|
|
86
|
+
borderBlockEndStyle: true,
|
|
87
|
+
borderBlockStartStyle: true,
|
|
88
|
+
borderInlineStyle: true,
|
|
89
|
+
borderInlineEndStyle: true,
|
|
90
|
+
borderInlineStartStyle: true,
|
|
91
|
+
boxSizing: true,
|
|
92
|
+
cursor: true,
|
|
93
|
+
direction: true,
|
|
94
|
+
display: true,
|
|
95
|
+
flexDirection: true,
|
|
96
|
+
flexWrap: true,
|
|
97
|
+
isolation: true,
|
|
98
|
+
justifyContent: true,
|
|
99
|
+
mixBlendMode: true,
|
|
100
|
+
outlineStyle: true,
|
|
101
|
+
overflow: true,
|
|
102
|
+
position: true
|
|
103
|
+
};
|
|
104
|
+
var nonAnimatableFontProps = {
|
|
105
|
+
fontFamily: true,
|
|
106
|
+
fontStyle: true,
|
|
107
|
+
fontVariant: true,
|
|
108
|
+
textTransform: true
|
|
109
|
+
};
|
|
110
|
+
var nonAnimatableTextOnlyProps = {
|
|
111
|
+
textAlign: true,
|
|
112
|
+
textDecorationLine: true,
|
|
113
|
+
textDecorationStyle: true,
|
|
114
|
+
userSelect: true
|
|
115
|
+
};
|
|
116
|
+
var nonAnimatableUnitlessProps = {
|
|
117
|
+
WebkitLineClamp: true,
|
|
118
|
+
lineClamp: true,
|
|
119
|
+
gridTemplateColumns: true,
|
|
120
|
+
gridTemplateAreas: true
|
|
121
|
+
};
|
|
122
|
+
var nonAnimatableStyleProps = {
|
|
123
|
+
...nonAnimatableViewProps,
|
|
124
|
+
...nonAnimatableFontProps,
|
|
125
|
+
...nonAnimatableTextOnlyProps,
|
|
126
|
+
...nonAnimatableUnitlessProps
|
|
127
|
+
};
|
|
128
|
+
var stylePropsUnitless = {
|
|
129
|
+
...nonAnimatableUnitlessProps,
|
|
130
|
+
animationIterationCount: true,
|
|
131
|
+
aspectRatio: true,
|
|
132
|
+
borderImageOutset: true,
|
|
133
|
+
borderImageSlice: true,
|
|
134
|
+
borderImageWidth: true,
|
|
135
|
+
columnCount: true,
|
|
136
|
+
flex: true,
|
|
137
|
+
flexGrow: true,
|
|
138
|
+
flexOrder: true,
|
|
139
|
+
flexPositive: true,
|
|
140
|
+
flexShrink: true,
|
|
141
|
+
flexNegative: true,
|
|
142
|
+
fontWeight: true,
|
|
143
|
+
gridRow: true,
|
|
144
|
+
gridRowEnd: true,
|
|
145
|
+
gridRowGap: true,
|
|
146
|
+
gridRowStart: true,
|
|
147
|
+
gridColumn: true,
|
|
148
|
+
gridColumnEnd: true,
|
|
149
|
+
gridColumnGap: true,
|
|
150
|
+
gridColumnStart: true,
|
|
151
|
+
opacity: true,
|
|
152
|
+
order: true,
|
|
153
|
+
orphans: true,
|
|
154
|
+
tabSize: true,
|
|
155
|
+
widows: true,
|
|
156
|
+
zIndex: true,
|
|
157
|
+
zoom: true,
|
|
158
|
+
scale: true,
|
|
159
|
+
scaleX: true,
|
|
160
|
+
scaleY: true,
|
|
161
|
+
scaleZ: true,
|
|
162
|
+
shadowOpacity: true
|
|
163
|
+
};
|
|
164
|
+
var stylePropsTransform = {
|
|
165
|
+
x: true,
|
|
166
|
+
y: true,
|
|
167
|
+
scale: true,
|
|
168
|
+
perspective: true,
|
|
169
|
+
scaleX: true,
|
|
170
|
+
scaleY: true,
|
|
171
|
+
skewX: true,
|
|
172
|
+
skewY: true,
|
|
173
|
+
matrix: true,
|
|
174
|
+
rotate: true,
|
|
175
|
+
rotateY: true,
|
|
176
|
+
rotateX: true,
|
|
177
|
+
rotateZ: true
|
|
178
|
+
};
|
|
179
|
+
var stylePropsView = {
|
|
180
|
+
...nonAnimatableViewProps,
|
|
181
|
+
borderBottomEndRadius: true,
|
|
182
|
+
borderBottomStartRadius: true,
|
|
183
|
+
borderBottomWidth: true,
|
|
184
|
+
borderLeftWidth: true,
|
|
185
|
+
borderRightWidth: true,
|
|
186
|
+
borderBlockWidth: true,
|
|
187
|
+
borderBlockEndWidth: true,
|
|
188
|
+
borderBlockStartWidth: true,
|
|
189
|
+
borderInlineWidth: true,
|
|
190
|
+
borderInlineEndWidth: true,
|
|
191
|
+
borderInlineStartWidth: true,
|
|
192
|
+
borderTopEndRadius: true,
|
|
193
|
+
borderTopStartRadius: true,
|
|
194
|
+
borderTopWidth: true,
|
|
195
|
+
borderWidth: true,
|
|
196
|
+
transform: true,
|
|
197
|
+
transformOrigin: true,
|
|
198
|
+
borderEndWidth: true,
|
|
199
|
+
borderStartWidth: true,
|
|
200
|
+
bottom: true,
|
|
201
|
+
end: true,
|
|
202
|
+
flexBasis: true,
|
|
203
|
+
gap: true,
|
|
204
|
+
columnGap: true,
|
|
205
|
+
rowGap: true,
|
|
206
|
+
left: true,
|
|
207
|
+
margin: true,
|
|
208
|
+
marginBlock: true,
|
|
209
|
+
marginBlockEnd: true,
|
|
210
|
+
marginBlockStart: true,
|
|
211
|
+
marginInline: true,
|
|
212
|
+
marginInlineStart: true,
|
|
213
|
+
marginInlineEnd: true,
|
|
214
|
+
marginBottom: true,
|
|
215
|
+
marginEnd: true,
|
|
216
|
+
marginHorizontal: true,
|
|
217
|
+
marginLeft: true,
|
|
218
|
+
marginRight: true,
|
|
219
|
+
marginStart: true,
|
|
220
|
+
marginTop: true,
|
|
221
|
+
marginVertical: true,
|
|
222
|
+
padding: true,
|
|
223
|
+
paddingBottom: true,
|
|
224
|
+
paddingInline: true,
|
|
225
|
+
paddingBlock: true,
|
|
226
|
+
paddingBlockStart: true,
|
|
227
|
+
paddingInlineEnd: true,
|
|
228
|
+
paddingInlineStart: true,
|
|
229
|
+
paddingEnd: true,
|
|
230
|
+
paddingHorizontal: true,
|
|
231
|
+
paddingLeft: true,
|
|
232
|
+
paddingRight: true,
|
|
233
|
+
paddingStart: true,
|
|
234
|
+
paddingTop: true,
|
|
235
|
+
paddingVertical: true,
|
|
236
|
+
right: true,
|
|
237
|
+
start: true,
|
|
238
|
+
top: true,
|
|
239
|
+
inset: true,
|
|
240
|
+
insetBlock: true,
|
|
241
|
+
insetBlockEnd: true,
|
|
242
|
+
insetBlockStart: true,
|
|
243
|
+
insetInline: true,
|
|
244
|
+
insetInlineEnd: true,
|
|
245
|
+
insetInlineStart: true,
|
|
246
|
+
shadowOffset: true,
|
|
247
|
+
shadowRadius: true,
|
|
248
|
+
...tokenCategories.color,
|
|
249
|
+
...tokenCategories.radius,
|
|
250
|
+
...tokenCategories.size,
|
|
251
|
+
...stylePropsTransform,
|
|
252
|
+
...stylePropsUnitless,
|
|
253
|
+
...(isAndroid ? {
|
|
254
|
+
elevationAndroid: true
|
|
255
|
+
} : {}),
|
|
256
|
+
boxShadow: true,
|
|
257
|
+
border: true,
|
|
258
|
+
filter: true,
|
|
259
|
+
backgroundImage: true,
|
|
260
|
+
experimental_backgroundImage: true,
|
|
261
|
+
outline: true,
|
|
262
|
+
outlineColor: true,
|
|
263
|
+
outlineOffset: true,
|
|
264
|
+
outlineWidth: true
|
|
265
|
+
};
|
|
266
|
+
var stylePropsTextOnly = {
|
|
267
|
+
...nonAnimatableFontProps,
|
|
268
|
+
fontSize: true,
|
|
269
|
+
fontWeight: true,
|
|
270
|
+
letterSpacing: true,
|
|
271
|
+
lineHeight: true,
|
|
272
|
+
...nonAnimatableTextOnlyProps,
|
|
273
|
+
...textColors,
|
|
274
|
+
textShadow: true,
|
|
275
|
+
textShadowOffset: true,
|
|
276
|
+
textShadowRadius: true,
|
|
277
|
+
verticalAlign: true
|
|
278
|
+
};
|
|
279
|
+
var stylePropsText = {
|
|
280
|
+
...stylePropsView,
|
|
281
|
+
...stylePropsTextOnly
|
|
282
|
+
};
|
|
283
|
+
var stylePropsAll = stylePropsText;
|
|
284
|
+
var validPseudoKeys = {
|
|
285
|
+
enterStyle: true,
|
|
286
|
+
exitStyle: true,
|
|
287
|
+
hoverStyle: true,
|
|
288
|
+
pressStyle: true,
|
|
289
|
+
focusStyle: true,
|
|
290
|
+
disabledStyle: true,
|
|
291
|
+
focusWithinStyle: true
|
|
292
|
+
};
|
|
293
|
+
var validStyles = stylePropsView;
|
|
294
|
+
export { cssShorthandLonghands, nonAnimatableStyleProps, stylePropsAll, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, tokenCategories, validPseudoKeys, validStyles };
|
|
288
295
|
//# sourceMappingURL=validStyleProps.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isAndroid","cssShorthandLonghands","borderWidth","borderStyle","borderColor","borderTopWidth","borderTopStyle","borderTopColor","borderRightWidth","borderRightStyle","borderRightColor","borderBottomWidth","borderBottomStyle","borderBottomColor","borderLeftWidth","borderLeftStyle","borderLeftColor","outlineWidth","outlineStyle","outlineColor","outlineOffset","textColors","color","textDecorationColor","textShadowColor","tokenCategories","radius","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderStartStartRadius","borderStartEndRadius","borderEndStartRadius","borderEndEndRadius","size","width","height","minWidth","minHeight","maxWidth","maxHeight","blockSize","minBlockSize","maxBlockSize","inlineSize","minInlineSize","maxInlineSize","zIndex","backgroundColor","borderBlockStartColor","borderBlockEndColor","borderBlockColor","borderInlineColor","borderInlineStartColor","borderInlineEndColor","borderEndColor","borderStartColor","shadowColor","
|
|
1
|
+
{"version":3,"names":["isAndroid","nonAnimatableWebTextProps","nonAnimatableWebViewProps","webOnlyStylePropsText","webOnlyStylePropsView","cssShorthandLonghands","borderWidth","borderStyle","borderColor","borderTopWidth","borderTopStyle","borderTopColor","borderRightWidth","borderRightStyle","borderRightColor","borderBottomWidth","borderBottomStyle","borderBottomColor","borderLeftWidth","borderLeftStyle","borderLeftColor","outlineWidth","outlineStyle","outlineColor","outlineOffset","textColors","color","textDecorationColor","textShadowColor","tokenCategories","radius","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderStartStartRadius","borderStartEndRadius","borderEndStartRadius","borderEndEndRadius","size","width","height","minWidth","minHeight","maxWidth","maxHeight","blockSize","minBlockSize","maxBlockSize","inlineSize","minInlineSize","maxInlineSize","zIndex","backgroundColor","borderBlockStartColor","borderBlockEndColor","borderBlockColor","borderInlineColor","borderInlineStartColor","borderInlineEndColor","borderEndColor","borderStartColor","shadowColor","nonAnimatableViewProps","alignContent","alignItems","alignSelf","backfaceVisibility","borderCurve","borderBlockStyle","borderBlockEndStyle","borderBlockStartStyle","borderInlineStyle","borderInlineEndStyle","borderInlineStartStyle","boxSizing","cursor","direction","display","flexDirection","flexWrap","isolation","justifyContent","mixBlendMode","overflow","position","nonAnimatableFontProps","fontFamily","fontStyle","fontVariant","textTransform","nonAnimatableTextOnlyProps","textAlign","textDecorationLine","textDecorationStyle","userSelect","nonAnimatableUnitlessProps","WebkitLineClamp","lineClamp","gridTemplateColumns","gridTemplateAreas","nonAnimatableStyleProps","stylePropsUnitless","animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","flex","flexGrow","flexOrder","flexPositive","flexShrink","flexNegative","fontWeight","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","opacity","order","orphans","tabSize","widows","zoom","scale","scaleX","scaleY","scaleZ","shadowOpacity","stylePropsTransform","x","y","perspective","skewX","skewY","matrix","rotate","rotateY","rotateX","rotateZ","stylePropsView","borderBottomEndRadius","borderBottomStartRadius","borderBlockWidth","borderBlockEndWidth","borderBlockStartWidth","borderInlineWidth","borderInlineEndWidth","borderInlineStartWidth","borderTopEndRadius","borderTopStartRadius","transform","transformOrigin","borderEndWidth","borderStartWidth","bottom","end","flexBasis","gap","columnGap","rowGap","left","margin","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineStart","marginInlineEnd","marginBottom","marginEnd","marginHorizontal","marginLeft","marginRight","marginStart","marginTop","marginVertical","padding","paddingBottom","paddingInline","paddingBlock","paddingBlockStart","paddingInlineEnd","paddingInlineStart","paddingEnd","paddingHorizontal","paddingLeft","paddingRight","paddingStart","paddingTop","paddingVertical","right","start","top","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","shadowOffset","shadowRadius","elevationAndroid","boxShadow","border","filter","backgroundImage","experimental_backgroundImage","outline","stylePropsTextOnly","fontSize","letterSpacing","lineHeight","textShadow","textShadowOffset","textShadowRadius","verticalAlign","stylePropsText","stylePropsAll","validPseudoKeys","enterStyle","exitStyle","hoverStyle","pressStyle","focusStyle","disabledStyle","focusWithinStyle","validStyles"],"sources":["../../src/validStyleProps.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,QAAiB;AAC1B,SAAAC,yBAAA,EAAAC,yBAAA,EAAAC,qBAAA,EAAAC,qBAAA;AAAA,IACEC,qBAAA;EAAAC,WACA;EAAAC,WACA;EAAAC,WACA;EAAAC,cACK;EAMAC,cAAM;EAAwBC,cAAA;EAAAC,gBAEtB;EAAAC,gBACA;EAAAC,gBACA;EAAAC,iBACG;EAAAC,iBACA;EAAAC,iBACA;EAAAC,eAChB,MAAkB;EAAAC,eAClB,MAAkB;EAAAC,eAClB,MAAkB;EAAAC,YAClB;EAAmBC,YACnB;EAAmBC,YACnB;EAAmBC,aACnB;AAAiB;AACA,IACjBC,UAAA;EAAiBC,KAAA;EAAAC,mBAEH;EAAAC,eACA;AAAA;AACA,IACdC,eAAe;EACjBC,MAAA;IAEAC,YAAM,MAAa;IACjBC,mBAAO;IACPC,oBAAA,EAAqB;IACrBC,sBAAiB;IACnBC,uBAAA;IAIOC,sBAAwB;IAC7BC,oBAAQ;IAAAC,oBACQ;IAAAC,kBACd;EAAqB;EACCC,IACtB;IAAwBC,KACxB;IAAyBC,MAAA;IAAAC,QAGzB;IAAwBC,SACxB;IAAsBC,QACtB;IAAsBC,SACtB;IACFC,SAAA;IACAC,YAAM;IAAAC,YACG;IAAAC,UACC;IAAAC,aACE;IAAAC,aACC;EAAA;EACDC,MACV;IAAAA,MAAW;EAAA;EAAA3B,KACX;IAAW4B,eACX,EAAc;IAAA9C,WACd,MAAc;IAAA+C,qBACF;IAAAC,mBACG;IAAAC,gBACf,EAAe;IACjBxC,iBAAA;IACAyC,iBAAQ;IAAAC,sBACE;IACVC,oBAAA;IACAjD,cAAO;IAAAS,eACL,MAAiB;IAAAN,gBACJ;IAAA+C,cACb;IAAuBC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