@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
|
@@ -5,24 +5,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var validStyleProps_exports = {};
|
|
24
26
|
__export(validStyleProps_exports, {
|
|
25
27
|
cssShorthandLonghands: () => cssShorthandLonghands,
|
|
28
|
+
nonAnimatableStyleProps: () => nonAnimatableStyleProps,
|
|
26
29
|
stylePropsAll: () => stylePropsAll,
|
|
27
30
|
stylePropsText: () => stylePropsText,
|
|
28
31
|
stylePropsTextOnly: () => stylePropsTextOnly,
|
|
@@ -34,290 +37,297 @@ __export(validStyleProps_exports, {
|
|
|
34
37
|
validStyles: () => validStyles
|
|
35
38
|
});
|
|
36
39
|
module.exports = __toCommonJS(validStyleProps_exports);
|
|
37
|
-
var import_constants = require("@tamagui/constants")
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
borderStartEndRadius: !0,
|
|
77
|
-
borderEndStartRadius: !0,
|
|
78
|
-
borderEndEndRadius: !0
|
|
79
|
-
},
|
|
80
|
-
size: {
|
|
81
|
-
width: !0,
|
|
82
|
-
height: !0,
|
|
83
|
-
minWidth: !0,
|
|
84
|
-
minHeight: !0,
|
|
85
|
-
maxWidth: !0,
|
|
86
|
-
maxHeight: !0,
|
|
87
|
-
blockSize: !0,
|
|
88
|
-
minBlockSize: !0,
|
|
89
|
-
maxBlockSize: !0,
|
|
90
|
-
inlineSize: !0,
|
|
91
|
-
minInlineSize: !0,
|
|
92
|
-
maxInlineSize: !0
|
|
93
|
-
},
|
|
94
|
-
zIndex: {
|
|
95
|
-
zIndex: !0
|
|
96
|
-
},
|
|
97
|
-
color: {
|
|
98
|
-
backgroundColor: !0,
|
|
99
|
-
borderColor: !0,
|
|
100
|
-
borderBlockStartColor: !0,
|
|
101
|
-
borderBlockEndColor: !0,
|
|
102
|
-
borderBlockColor: !0,
|
|
103
|
-
borderBottomColor: !0,
|
|
104
|
-
borderInlineColor: !0,
|
|
105
|
-
borderInlineStartColor: !0,
|
|
106
|
-
borderInlineEndColor: !0,
|
|
107
|
-
borderTopColor: !0,
|
|
108
|
-
borderLeftColor: !0,
|
|
109
|
-
borderRightColor: !0,
|
|
110
|
-
borderEndColor: !0,
|
|
111
|
-
borderStartColor: !0,
|
|
112
|
-
shadowColor: !0,
|
|
113
|
-
...textColors,
|
|
114
|
-
// outlineColor is supported on RN 0.77+ (New Architecture)
|
|
115
|
-
outlineColor: !0
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
stylePropsUnitless = {
|
|
119
|
-
WebkitLineClamp: !0,
|
|
120
|
-
animationIterationCount: !0,
|
|
121
|
-
aspectRatio: !0,
|
|
122
|
-
borderImageOutset: !0,
|
|
123
|
-
borderImageSlice: !0,
|
|
124
|
-
borderImageWidth: !0,
|
|
125
|
-
columnCount: !0,
|
|
126
|
-
flex: !0,
|
|
127
|
-
flexGrow: !0,
|
|
128
|
-
flexOrder: !0,
|
|
129
|
-
flexPositive: !0,
|
|
130
|
-
flexShrink: !0,
|
|
131
|
-
flexNegative: !0,
|
|
132
|
-
fontWeight: !0,
|
|
133
|
-
gridRow: !0,
|
|
134
|
-
gridRowEnd: !0,
|
|
135
|
-
gridRowGap: !0,
|
|
136
|
-
gridRowStart: !0,
|
|
137
|
-
gridColumn: !0,
|
|
138
|
-
gridColumnEnd: !0,
|
|
139
|
-
gridColumnGap: !0,
|
|
140
|
-
gridColumnStart: !0,
|
|
141
|
-
gridTemplateColumns: !0,
|
|
142
|
-
gridTemplateAreas: !0,
|
|
143
|
-
lineClamp: !0,
|
|
144
|
-
opacity: !0,
|
|
145
|
-
order: !0,
|
|
146
|
-
orphans: !0,
|
|
147
|
-
tabSize: !0,
|
|
148
|
-
widows: !0,
|
|
149
|
-
zIndex: !0,
|
|
150
|
-
zoom: !0,
|
|
151
|
-
scale: !0,
|
|
152
|
-
scaleX: !0,
|
|
153
|
-
scaleY: !0,
|
|
154
|
-
scaleZ: !0,
|
|
155
|
-
shadowOpacity: !0
|
|
40
|
+
var import_constants = require("@tamagui/constants");
|
|
41
|
+
require("./webOnlyStyleProps.native.js");
|
|
42
|
+
var cssShorthandLonghands = {
|
|
43
|
+
borderWidth: true,
|
|
44
|
+
borderStyle: true,
|
|
45
|
+
borderColor: true,
|
|
46
|
+
borderTopWidth: true,
|
|
47
|
+
borderTopStyle: true,
|
|
48
|
+
borderTopColor: true,
|
|
49
|
+
borderRightWidth: true,
|
|
50
|
+
borderRightStyle: true,
|
|
51
|
+
borderRightColor: true,
|
|
52
|
+
borderBottomWidth: true,
|
|
53
|
+
borderBottomStyle: true,
|
|
54
|
+
borderBottomColor: true,
|
|
55
|
+
borderLeftWidth: true,
|
|
56
|
+
borderLeftStyle: true,
|
|
57
|
+
borderLeftColor: true,
|
|
58
|
+
outlineWidth: true,
|
|
59
|
+
outlineStyle: true,
|
|
60
|
+
outlineColor: true,
|
|
61
|
+
outlineOffset: true
|
|
62
|
+
};
|
|
63
|
+
var textColors = {
|
|
64
|
+
color: true,
|
|
65
|
+
textDecorationColor: true,
|
|
66
|
+
textShadowColor: true
|
|
67
|
+
};
|
|
68
|
+
var tokenCategories = {
|
|
69
|
+
radius: {
|
|
70
|
+
borderRadius: true,
|
|
71
|
+
borderTopLeftRadius: true,
|
|
72
|
+
borderTopRightRadius: true,
|
|
73
|
+
borderBottomLeftRadius: true,
|
|
74
|
+
borderBottomRightRadius: true,
|
|
75
|
+
borderStartStartRadius: true,
|
|
76
|
+
borderStartEndRadius: true,
|
|
77
|
+
borderEndStartRadius: true,
|
|
78
|
+
borderEndEndRadius: true
|
|
156
79
|
},
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
rotateZ: !0
|
|
80
|
+
size: {
|
|
81
|
+
width: true,
|
|
82
|
+
height: true,
|
|
83
|
+
minWidth: true,
|
|
84
|
+
minHeight: true,
|
|
85
|
+
maxWidth: true,
|
|
86
|
+
maxHeight: true,
|
|
87
|
+
blockSize: true,
|
|
88
|
+
minBlockSize: true,
|
|
89
|
+
maxBlockSize: true,
|
|
90
|
+
inlineSize: true,
|
|
91
|
+
minInlineSize: true,
|
|
92
|
+
maxInlineSize: true
|
|
171
93
|
},
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
borderCurve: !0,
|
|
175
|
-
cursor: !0,
|
|
176
|
-
borderBottomEndRadius: !0,
|
|
177
|
-
borderBottomStartRadius: !0,
|
|
178
|
-
borderBottomWidth: !0,
|
|
179
|
-
borderLeftWidth: !0,
|
|
180
|
-
borderRightWidth: !0,
|
|
181
|
-
borderBlockWidth: !0,
|
|
182
|
-
borderBlockEndWidth: !0,
|
|
183
|
-
borderBlockStartWidth: !0,
|
|
184
|
-
borderInlineWidth: !0,
|
|
185
|
-
borderInlineEndWidth: !0,
|
|
186
|
-
borderInlineStartWidth: !0,
|
|
187
|
-
borderStyle: !0,
|
|
188
|
-
borderBlockStyle: !0,
|
|
189
|
-
borderBlockEndStyle: !0,
|
|
190
|
-
borderBlockStartStyle: !0,
|
|
191
|
-
borderInlineStyle: !0,
|
|
192
|
-
borderInlineEndStyle: !0,
|
|
193
|
-
borderInlineStartStyle: !0,
|
|
194
|
-
borderTopEndRadius: !0,
|
|
195
|
-
borderTopStartRadius: !0,
|
|
196
|
-
borderTopWidth: !0,
|
|
197
|
-
borderWidth: !0,
|
|
198
|
-
transform: !0,
|
|
199
|
-
transformOrigin: !0,
|
|
200
|
-
alignContent: !0,
|
|
201
|
-
alignItems: !0,
|
|
202
|
-
alignSelf: !0,
|
|
203
|
-
borderEndWidth: !0,
|
|
204
|
-
borderStartWidth: !0,
|
|
205
|
-
bottom: !0,
|
|
206
|
-
display: !0,
|
|
207
|
-
end: !0,
|
|
208
|
-
flexBasis: !0,
|
|
209
|
-
flexDirection: !0,
|
|
210
|
-
flexWrap: !0,
|
|
211
|
-
gap: !0,
|
|
212
|
-
columnGap: !0,
|
|
213
|
-
rowGap: !0,
|
|
214
|
-
justifyContent: !0,
|
|
215
|
-
left: !0,
|
|
216
|
-
margin: !0,
|
|
217
|
-
marginBlock: !0,
|
|
218
|
-
marginBlockEnd: !0,
|
|
219
|
-
marginBlockStart: !0,
|
|
220
|
-
marginInline: !0,
|
|
221
|
-
marginInlineStart: !0,
|
|
222
|
-
marginInlineEnd: !0,
|
|
223
|
-
marginBottom: !0,
|
|
224
|
-
marginEnd: !0,
|
|
225
|
-
marginHorizontal: !0,
|
|
226
|
-
marginLeft: !0,
|
|
227
|
-
marginRight: !0,
|
|
228
|
-
marginStart: !0,
|
|
229
|
-
marginTop: !0,
|
|
230
|
-
marginVertical: !0,
|
|
231
|
-
overflow: !0,
|
|
232
|
-
padding: !0,
|
|
233
|
-
paddingBottom: !0,
|
|
234
|
-
paddingInline: !0,
|
|
235
|
-
paddingBlock: !0,
|
|
236
|
-
paddingBlockStart: !0,
|
|
237
|
-
paddingInlineEnd: !0,
|
|
238
|
-
paddingInlineStart: !0,
|
|
239
|
-
paddingEnd: !0,
|
|
240
|
-
paddingHorizontal: !0,
|
|
241
|
-
paddingLeft: !0,
|
|
242
|
-
paddingRight: !0,
|
|
243
|
-
paddingStart: !0,
|
|
244
|
-
paddingTop: !0,
|
|
245
|
-
paddingVertical: !0,
|
|
246
|
-
position: !0,
|
|
247
|
-
right: !0,
|
|
248
|
-
start: !0,
|
|
249
|
-
top: !0,
|
|
250
|
-
inset: !0,
|
|
251
|
-
insetBlock: !0,
|
|
252
|
-
insetBlockEnd: !0,
|
|
253
|
-
insetBlockStart: !0,
|
|
254
|
-
insetInline: !0,
|
|
255
|
-
insetInlineEnd: !0,
|
|
256
|
-
insetInlineStart: !0,
|
|
257
|
-
direction: !0,
|
|
258
|
-
shadowOffset: !0,
|
|
259
|
-
shadowRadius: !0,
|
|
260
|
-
...tokenCategories.color,
|
|
261
|
-
...tokenCategories.radius,
|
|
262
|
-
...tokenCategories.size,
|
|
263
|
-
...tokenCategories.radius,
|
|
264
|
-
...stylePropsTransform,
|
|
265
|
-
...stylePropsUnitless,
|
|
266
|
-
...(import_constants.isAndroid ? {
|
|
267
|
-
elevationAndroid: !0
|
|
268
|
-
} : {}),
|
|
269
|
-
boxShadow: !0,
|
|
270
|
-
border: !0,
|
|
271
|
-
filter: !0,
|
|
272
|
-
// RN 0.76+ supports linear-gradient via backgroundImage
|
|
273
|
-
backgroundImage: !0,
|
|
274
|
-
// the actual RN 0.76+ prop name (backgroundImage expands to this on native)
|
|
275
|
-
experimental_backgroundImage: !0,
|
|
276
|
-
// RN 0.76/0.77+ style props (New Architecture)
|
|
277
|
-
boxSizing: !0,
|
|
278
|
-
mixBlendMode: !0,
|
|
279
|
-
isolation: !0,
|
|
280
|
-
outline: !0,
|
|
281
|
-
outlineColor: !0,
|
|
282
|
-
outlineOffset: !0,
|
|
283
|
-
outlineStyle: !0,
|
|
284
|
-
outlineWidth: !0
|
|
94
|
+
zIndex: {
|
|
95
|
+
zIndex: true
|
|
285
96
|
},
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
97
|
+
color: {
|
|
98
|
+
backgroundColor: true,
|
|
99
|
+
borderColor: true,
|
|
100
|
+
borderBlockStartColor: true,
|
|
101
|
+
borderBlockEndColor: true,
|
|
102
|
+
borderBlockColor: true,
|
|
103
|
+
borderBottomColor: true,
|
|
104
|
+
borderInlineColor: true,
|
|
105
|
+
borderInlineStartColor: true,
|
|
106
|
+
borderInlineEndColor: true,
|
|
107
|
+
borderTopColor: true,
|
|
108
|
+
borderLeftColor: true,
|
|
109
|
+
borderRightColor: true,
|
|
110
|
+
borderEndColor: true,
|
|
111
|
+
borderStartColor: true,
|
|
112
|
+
shadowColor: true,
|
|
301
113
|
...textColors,
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
114
|
+
outlineColor: true
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
var nonAnimatableViewProps = {
|
|
118
|
+
alignContent: true,
|
|
119
|
+
alignItems: true,
|
|
120
|
+
alignSelf: true,
|
|
121
|
+
backfaceVisibility: true,
|
|
122
|
+
borderCurve: true,
|
|
123
|
+
borderStyle: true,
|
|
124
|
+
borderBlockStyle: true,
|
|
125
|
+
borderBlockEndStyle: true,
|
|
126
|
+
borderBlockStartStyle: true,
|
|
127
|
+
borderInlineStyle: true,
|
|
128
|
+
borderInlineEndStyle: true,
|
|
129
|
+
borderInlineStartStyle: true,
|
|
130
|
+
boxSizing: true,
|
|
131
|
+
cursor: true,
|
|
132
|
+
direction: true,
|
|
133
|
+
display: true,
|
|
134
|
+
flexDirection: true,
|
|
135
|
+
flexWrap: true,
|
|
136
|
+
isolation: true,
|
|
137
|
+
justifyContent: true,
|
|
138
|
+
mixBlendMode: true,
|
|
139
|
+
outlineStyle: true,
|
|
140
|
+
overflow: true,
|
|
141
|
+
position: true
|
|
142
|
+
};
|
|
143
|
+
var nonAnimatableFontProps = {
|
|
144
|
+
fontFamily: true,
|
|
145
|
+
fontStyle: true,
|
|
146
|
+
fontVariant: true,
|
|
147
|
+
textTransform: true
|
|
148
|
+
};
|
|
149
|
+
var nonAnimatableTextOnlyProps = {
|
|
150
|
+
textAlign: true,
|
|
151
|
+
textDecorationLine: true,
|
|
152
|
+
textDecorationStyle: true,
|
|
153
|
+
userSelect: true
|
|
154
|
+
};
|
|
155
|
+
var nonAnimatableUnitlessProps = {
|
|
156
|
+
WebkitLineClamp: true,
|
|
157
|
+
lineClamp: true,
|
|
158
|
+
gridTemplateColumns: true,
|
|
159
|
+
gridTemplateAreas: true
|
|
160
|
+
};
|
|
161
|
+
var nonAnimatableStyleProps = {
|
|
162
|
+
...nonAnimatableViewProps,
|
|
163
|
+
...nonAnimatableFontProps,
|
|
164
|
+
...nonAnimatableTextOnlyProps,
|
|
165
|
+
...nonAnimatableUnitlessProps
|
|
166
|
+
};
|
|
167
|
+
var stylePropsUnitless = {
|
|
168
|
+
...nonAnimatableUnitlessProps,
|
|
169
|
+
animationIterationCount: true,
|
|
170
|
+
aspectRatio: true,
|
|
171
|
+
borderImageOutset: true,
|
|
172
|
+
borderImageSlice: true,
|
|
173
|
+
borderImageWidth: true,
|
|
174
|
+
columnCount: true,
|
|
175
|
+
flex: true,
|
|
176
|
+
flexGrow: true,
|
|
177
|
+
flexOrder: true,
|
|
178
|
+
flexPositive: true,
|
|
179
|
+
flexShrink: true,
|
|
180
|
+
flexNegative: true,
|
|
181
|
+
fontWeight: true,
|
|
182
|
+
gridRow: true,
|
|
183
|
+
gridRowEnd: true,
|
|
184
|
+
gridRowGap: true,
|
|
185
|
+
gridRowStart: true,
|
|
186
|
+
gridColumn: true,
|
|
187
|
+
gridColumnEnd: true,
|
|
188
|
+
gridColumnGap: true,
|
|
189
|
+
gridColumnStart: true,
|
|
190
|
+
opacity: true,
|
|
191
|
+
order: true,
|
|
192
|
+
orphans: true,
|
|
193
|
+
tabSize: true,
|
|
194
|
+
widows: true,
|
|
195
|
+
zIndex: true,
|
|
196
|
+
zoom: true,
|
|
197
|
+
scale: true,
|
|
198
|
+
scaleX: true,
|
|
199
|
+
scaleY: true,
|
|
200
|
+
scaleZ: true,
|
|
201
|
+
shadowOpacity: true
|
|
202
|
+
};
|
|
203
|
+
var stylePropsTransform = {
|
|
204
|
+
x: true,
|
|
205
|
+
y: true,
|
|
206
|
+
scale: true,
|
|
207
|
+
perspective: true,
|
|
208
|
+
scaleX: true,
|
|
209
|
+
scaleY: true,
|
|
210
|
+
skewX: true,
|
|
211
|
+
skewY: true,
|
|
212
|
+
matrix: true,
|
|
213
|
+
rotate: true,
|
|
214
|
+
rotateY: true,
|
|
215
|
+
rotateX: true,
|
|
216
|
+
rotateZ: true
|
|
217
|
+
};
|
|
218
|
+
var stylePropsView = {
|
|
219
|
+
...nonAnimatableViewProps,
|
|
220
|
+
borderBottomEndRadius: true,
|
|
221
|
+
borderBottomStartRadius: true,
|
|
222
|
+
borderBottomWidth: true,
|
|
223
|
+
borderLeftWidth: true,
|
|
224
|
+
borderRightWidth: true,
|
|
225
|
+
borderBlockWidth: true,
|
|
226
|
+
borderBlockEndWidth: true,
|
|
227
|
+
borderBlockStartWidth: true,
|
|
228
|
+
borderInlineWidth: true,
|
|
229
|
+
borderInlineEndWidth: true,
|
|
230
|
+
borderInlineStartWidth: true,
|
|
231
|
+
borderTopEndRadius: true,
|
|
232
|
+
borderTopStartRadius: true,
|
|
233
|
+
borderTopWidth: true,
|
|
234
|
+
borderWidth: true,
|
|
235
|
+
transform: true,
|
|
236
|
+
transformOrigin: true,
|
|
237
|
+
borderEndWidth: true,
|
|
238
|
+
borderStartWidth: true,
|
|
239
|
+
bottom: true,
|
|
240
|
+
end: true,
|
|
241
|
+
flexBasis: true,
|
|
242
|
+
gap: true,
|
|
243
|
+
columnGap: true,
|
|
244
|
+
rowGap: true,
|
|
245
|
+
left: true,
|
|
246
|
+
margin: true,
|
|
247
|
+
marginBlock: true,
|
|
248
|
+
marginBlockEnd: true,
|
|
249
|
+
marginBlockStart: true,
|
|
250
|
+
marginInline: true,
|
|
251
|
+
marginInlineStart: true,
|
|
252
|
+
marginInlineEnd: true,
|
|
253
|
+
marginBottom: true,
|
|
254
|
+
marginEnd: true,
|
|
255
|
+
marginHorizontal: true,
|
|
256
|
+
marginLeft: true,
|
|
257
|
+
marginRight: true,
|
|
258
|
+
marginStart: true,
|
|
259
|
+
marginTop: true,
|
|
260
|
+
marginVertical: true,
|
|
261
|
+
padding: true,
|
|
262
|
+
paddingBottom: true,
|
|
263
|
+
paddingInline: true,
|
|
264
|
+
paddingBlock: true,
|
|
265
|
+
paddingBlockStart: true,
|
|
266
|
+
paddingInlineEnd: true,
|
|
267
|
+
paddingInlineStart: true,
|
|
268
|
+
paddingEnd: true,
|
|
269
|
+
paddingHorizontal: true,
|
|
270
|
+
paddingLeft: true,
|
|
271
|
+
paddingRight: true,
|
|
272
|
+
paddingStart: true,
|
|
273
|
+
paddingTop: true,
|
|
274
|
+
paddingVertical: true,
|
|
275
|
+
right: true,
|
|
276
|
+
start: true,
|
|
277
|
+
top: true,
|
|
278
|
+
inset: true,
|
|
279
|
+
insetBlock: true,
|
|
280
|
+
insetBlockEnd: true,
|
|
281
|
+
insetBlockStart: true,
|
|
282
|
+
insetInline: true,
|
|
283
|
+
insetInlineEnd: true,
|
|
284
|
+
insetInlineStart: true,
|
|
285
|
+
shadowOffset: true,
|
|
286
|
+
shadowRadius: true,
|
|
287
|
+
...tokenCategories.color,
|
|
288
|
+
...tokenCategories.radius,
|
|
289
|
+
...tokenCategories.size,
|
|
290
|
+
...stylePropsTransform,
|
|
291
|
+
...stylePropsUnitless,
|
|
292
|
+
...(import_constants.isAndroid ? {
|
|
293
|
+
elevationAndroid: true
|
|
294
|
+
} : {}),
|
|
295
|
+
boxShadow: true,
|
|
296
|
+
border: true,
|
|
297
|
+
filter: true,
|
|
298
|
+
backgroundImage: true,
|
|
299
|
+
experimental_backgroundImage: true,
|
|
300
|
+
outline: true,
|
|
301
|
+
outlineColor: true,
|
|
302
|
+
outlineOffset: true,
|
|
303
|
+
outlineWidth: true
|
|
304
|
+
};
|
|
305
|
+
var stylePropsTextOnly = {
|
|
306
|
+
...nonAnimatableFontProps,
|
|
307
|
+
fontSize: true,
|
|
308
|
+
fontWeight: true,
|
|
309
|
+
letterSpacing: true,
|
|
310
|
+
lineHeight: true,
|
|
311
|
+
...nonAnimatableTextOnlyProps,
|
|
312
|
+
...textColors,
|
|
313
|
+
textShadow: true,
|
|
314
|
+
textShadowOffset: true,
|
|
315
|
+
textShadowRadius: true,
|
|
316
|
+
verticalAlign: true
|
|
317
|
+
};
|
|
318
|
+
var stylePropsText = {
|
|
319
|
+
...stylePropsView,
|
|
320
|
+
...stylePropsTextOnly
|
|
321
|
+
};
|
|
322
|
+
var stylePropsAll = stylePropsText;
|
|
323
|
+
var validPseudoKeys = {
|
|
324
|
+
enterStyle: true,
|
|
325
|
+
exitStyle: true,
|
|
326
|
+
hoverStyle: true,
|
|
327
|
+
pressStyle: true,
|
|
328
|
+
focusStyle: true,
|
|
329
|
+
disabledStyle: true,
|
|
330
|
+
focusWithinStyle: true
|
|
331
|
+
};
|
|
332
|
+
var validStyles = stylePropsView;
|
|
323
333
|
//# sourceMappingURL=validStyleProps.native.js.map
|