@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,294 +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
3
|
const 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
|
+
const textColors = {
|
|
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
|
|
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
|
-
caretColor: !0
|
|
81
|
-
}
|
|
55
|
+
zIndex: {
|
|
56
|
+
zIndex: true
|
|
82
57
|
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
gridRowEnd: !0,
|
|
100
|
-
gridRowGap: !0,
|
|
101
|
-
gridRowStart: !0,
|
|
102
|
-
gridColumn: !0,
|
|
103
|
-
gridColumnEnd: !0,
|
|
104
|
-
gridColumnGap: !0,
|
|
105
|
-
gridColumnStart: !0,
|
|
106
|
-
gridTemplateColumns: !0,
|
|
107
|
-
gridTemplateAreas: !0,
|
|
108
|
-
lineClamp: !0,
|
|
109
|
-
opacity: !0,
|
|
110
|
-
order: !0,
|
|
111
|
-
orphans: !0,
|
|
112
|
-
tabSize: !0,
|
|
113
|
-
widows: !0,
|
|
114
|
-
zIndex: !0,
|
|
115
|
-
zoom: !0,
|
|
116
|
-
scale: !0,
|
|
117
|
-
scaleX: !0,
|
|
118
|
-
scaleY: !0,
|
|
119
|
-
scaleZ: !0,
|
|
120
|
-
shadowOpacity: !0
|
|
121
|
-
},
|
|
122
|
-
stylePropsTransform = {
|
|
123
|
-
x: !0,
|
|
124
|
-
y: !0,
|
|
125
|
-
scale: !0,
|
|
126
|
-
perspective: !0,
|
|
127
|
-
scaleX: !0,
|
|
128
|
-
scaleY: !0,
|
|
129
|
-
skewX: !0,
|
|
130
|
-
skewY: !0,
|
|
131
|
-
matrix: !0,
|
|
132
|
-
rotate: !0,
|
|
133
|
-
rotateY: !0,
|
|
134
|
-
rotateX: !0,
|
|
135
|
-
rotateZ: !0
|
|
136
|
-
},
|
|
137
|
-
stylePropsView = {
|
|
138
|
-
backfaceVisibility: !0,
|
|
139
|
-
borderCurve: !0,
|
|
140
|
-
cursor: !0,
|
|
141
|
-
borderBottomEndRadius: !0,
|
|
142
|
-
borderBottomStartRadius: !0,
|
|
143
|
-
borderBottomWidth: !0,
|
|
144
|
-
borderLeftWidth: !0,
|
|
145
|
-
borderRightWidth: !0,
|
|
146
|
-
borderBlockWidth: !0,
|
|
147
|
-
borderBlockEndWidth: !0,
|
|
148
|
-
borderBlockStartWidth: !0,
|
|
149
|
-
borderInlineWidth: !0,
|
|
150
|
-
borderInlineEndWidth: !0,
|
|
151
|
-
borderInlineStartWidth: !0,
|
|
152
|
-
borderStyle: !0,
|
|
153
|
-
borderBlockStyle: !0,
|
|
154
|
-
borderBlockEndStyle: !0,
|
|
155
|
-
borderBlockStartStyle: !0,
|
|
156
|
-
borderInlineStyle: !0,
|
|
157
|
-
borderInlineEndStyle: !0,
|
|
158
|
-
borderInlineStartStyle: !0,
|
|
159
|
-
borderTopEndRadius: !0,
|
|
160
|
-
borderTopStartRadius: !0,
|
|
161
|
-
borderTopWidth: !0,
|
|
162
|
-
borderWidth: !0,
|
|
163
|
-
transform: !0,
|
|
164
|
-
transformOrigin: !0,
|
|
165
|
-
alignContent: !0,
|
|
166
|
-
alignItems: !0,
|
|
167
|
-
alignSelf: !0,
|
|
168
|
-
borderEndWidth: !0,
|
|
169
|
-
borderStartWidth: !0,
|
|
170
|
-
bottom: !0,
|
|
171
|
-
display: !0,
|
|
172
|
-
end: !0,
|
|
173
|
-
flexBasis: !0,
|
|
174
|
-
flexDirection: !0,
|
|
175
|
-
flexWrap: !0,
|
|
176
|
-
gap: !0,
|
|
177
|
-
columnGap: !0,
|
|
178
|
-
rowGap: !0,
|
|
179
|
-
justifyContent: !0,
|
|
180
|
-
left: !0,
|
|
181
|
-
margin: !0,
|
|
182
|
-
marginBlock: !0,
|
|
183
|
-
marginBlockEnd: !0,
|
|
184
|
-
marginBlockStart: !0,
|
|
185
|
-
marginInline: !0,
|
|
186
|
-
marginInlineStart: !0,
|
|
187
|
-
marginInlineEnd: !0,
|
|
188
|
-
marginBottom: !0,
|
|
189
|
-
marginEnd: !0,
|
|
190
|
-
marginHorizontal: !0,
|
|
191
|
-
marginLeft: !0,
|
|
192
|
-
marginRight: !0,
|
|
193
|
-
marginStart: !0,
|
|
194
|
-
marginTop: !0,
|
|
195
|
-
marginVertical: !0,
|
|
196
|
-
overflow: !0,
|
|
197
|
-
padding: !0,
|
|
198
|
-
paddingBottom: !0,
|
|
199
|
-
paddingInline: !0,
|
|
200
|
-
paddingBlock: !0,
|
|
201
|
-
paddingBlockStart: !0,
|
|
202
|
-
paddingInlineEnd: !0,
|
|
203
|
-
paddingInlineStart: !0,
|
|
204
|
-
paddingEnd: !0,
|
|
205
|
-
paddingHorizontal: !0,
|
|
206
|
-
paddingLeft: !0,
|
|
207
|
-
paddingRight: !0,
|
|
208
|
-
paddingStart: !0,
|
|
209
|
-
paddingTop: !0,
|
|
210
|
-
paddingVertical: !0,
|
|
211
|
-
position: !0,
|
|
212
|
-
right: !0,
|
|
213
|
-
start: !0,
|
|
214
|
-
top: !0,
|
|
215
|
-
inset: !0,
|
|
216
|
-
insetBlock: !0,
|
|
217
|
-
insetBlockEnd: !0,
|
|
218
|
-
insetBlockStart: !0,
|
|
219
|
-
insetInline: !0,
|
|
220
|
-
insetInlineEnd: !0,
|
|
221
|
-
insetInlineStart: !0,
|
|
222
|
-
direction: !0,
|
|
223
|
-
shadowOffset: !0,
|
|
224
|
-
shadowRadius: !0,
|
|
225
|
-
...tokenCategories.color,
|
|
226
|
-
...tokenCategories.radius,
|
|
227
|
-
...tokenCategories.size,
|
|
228
|
-
...tokenCategories.radius,
|
|
229
|
-
...stylePropsTransform,
|
|
230
|
-
...stylePropsUnitless,
|
|
231
|
-
...(isAndroid ? {
|
|
232
|
-
elevationAndroid: !0
|
|
233
|
-
} : {}),
|
|
234
|
-
boxShadow: !0,
|
|
235
|
-
border: !0,
|
|
236
|
-
filter: !0,
|
|
237
|
-
// RN 0.76+ supports linear-gradient via backgroundImage
|
|
238
|
-
backgroundImage: !0,
|
|
239
|
-
// the actual RN 0.76+ prop name (backgroundImage expands to this on native)
|
|
240
|
-
experimental_backgroundImage: !0,
|
|
241
|
-
// RN 0.76/0.77+ style props (New Architecture)
|
|
242
|
-
boxSizing: !0,
|
|
243
|
-
mixBlendMode: !0,
|
|
244
|
-
isolation: !0,
|
|
245
|
-
outline: !0,
|
|
246
|
-
outlineColor: !0,
|
|
247
|
-
outlineOffset: !0,
|
|
248
|
-
outlineStyle: !0,
|
|
249
|
-
outlineWidth: !0,
|
|
250
|
-
// web-only for convenience - tree-shaken on native
|
|
251
|
-
...webOnlyStylePropsView
|
|
252
|
-
},
|
|
253
|
-
stylePropsFont = {
|
|
254
|
-
fontFamily: !0,
|
|
255
|
-
fontSize: !0,
|
|
256
|
-
fontStyle: !0,
|
|
257
|
-
fontWeight: !0,
|
|
258
|
-
fontVariant: !0,
|
|
259
|
-
letterSpacing: !0,
|
|
260
|
-
lineHeight: !0,
|
|
261
|
-
textTransform: !0
|
|
262
|
-
},
|
|
263
|
-
stylePropsTextOnly = {
|
|
264
|
-
...stylePropsFont,
|
|
265
|
-
textAlign: !0,
|
|
266
|
-
textDecorationLine: !0,
|
|
267
|
-
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,
|
|
268
74
|
...textColors,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
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 };
|
|
294
301
|
//# sourceMappingURL=validStyleProps.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isAndroid","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","caretColor","
|
|
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","caretColor","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","focusVisibleStyle","validStyles"],"sources":["../../src/validStyleProps.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,QAAiB;AAC1B,SAAAC,yBAAA,EAAAC,yBAAA,EAAAC,qBAAA,EAAAC,qBAAA;AAAA,MACEC,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,MACjBC,UAAA,GAAiB;EAAAC,KAAA;EAAAC,mBAEH;EAAAC,eACA;AAAA;AACA,MACdC,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,Q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