@tamagui/helpers 2.7.7 → 3.0.0-beta.1097.1
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 +15 -19
- package/dist/cjs/clamp.native.cjs +29 -0
- package/dist/cjs/clamp.native.js +16 -19
- package/dist/cjs/clamp.native.js.map +1 -1
- package/dist/cjs/composeEventHandlers.cjs +25 -32
- package/dist/cjs/composeEventHandlers.native.cjs +38 -0
- package/dist/cjs/composeEventHandlers.native.js +25 -36
- package/dist/cjs/composeEventHandlers.native.js.map +1 -1
- package/dist/cjs/index.cjs +12 -11
- package/dist/cjs/index.native.cjs +30 -0
- package/dist/cjs/index.native.js +12 -10
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/reservedThemeProps.cjs +40 -0
- package/dist/cjs/reservedThemeProps.native.cjs +42 -0
- package/dist/cjs/reservedThemeProps.native.js +44 -0
- package/dist/cjs/reservedThemeProps.native.js.map +1 -0
- package/dist/cjs/shouldRenderNativePlatform.cjs +37 -37
- package/dist/cjs/shouldRenderNativePlatform.native.cjs +70 -0
- package/dist/cjs/shouldRenderNativePlatform.native.js +54 -59
- package/dist/cjs/shouldRenderNativePlatform.native.js.map +1 -1
- package/dist/cjs/themeClassNames.cjs +44 -0
- package/dist/cjs/themeClassNames.native.cjs +64 -0
- package/dist/cjs/themeClassNames.native.js +66 -0
- package/dist/cjs/themeClassNames.native.js.map +1 -0
- package/dist/cjs/toStylePropsObject.cjs +33 -0
- package/dist/cjs/toStylePropsObject.native.cjs +72 -0
- package/dist/cjs/toStylePropsObject.native.js +74 -0
- package/dist/cjs/toStylePropsObject.native.js.map +1 -0
- package/dist/cjs/tokenCategories.cjs +47 -0
- package/dist/cjs/tokenCategories.native.cjs +51 -0
- package/dist/cjs/tokenCategories.native.js +53 -0
- package/dist/cjs/tokenCategories.native.js.map +1 -0
- package/dist/cjs/types.cjs +18 -20
- package/dist/cjs/types.native.cjs +36 -0
- package/dist/cjs/types.native.js +18 -19
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/validStyleProps.cjs +44 -323
- package/dist/cjs/validStyleProps.native.cjs +60 -0
- package/dist/cjs/validStyleProps.native.js +45 -316
- package/dist/cjs/validStyleProps.native.js.map +1 -1
- package/dist/cjs/webOnlyStyleProps.cjs +21 -93
- package/dist/cjs/webOnlyStyleProps.native.cjs +35 -0
- package/dist/cjs/webOnlyStyleProps.native.js +22 -93
- package/dist/cjs/webOnlyStyleProps.native.js.map +1 -1
- package/dist/cjs/withStaticProperties.cjs +24 -30
- package/dist/cjs/withStaticProperties.native.cjs +37 -0
- package/dist/cjs/withStaticProperties.native.js +25 -30
- package/dist/cjs/withStaticProperties.native.js.map +1 -1
- package/dist/esm/clamp.mjs +2 -1
- package/dist/esm/clamp.mjs.map +1 -1
- package/dist/esm/clamp.native.js +3 -2
- package/dist/esm/clamp.native.js.map +1 -1
- package/dist/esm/composeEventHandlers.mjs +12 -14
- package/dist/esm/composeEventHandlers.mjs.map +1 -1
- package/dist/esm/composeEventHandlers.native.js +12 -19
- package/dist/esm/composeEventHandlers.native.js.map +1 -1
- package/dist/esm/index.js +21 -9
- package/dist/esm/index.mjs +21 -9
- package/dist/esm/index.native.js +21 -9
- package/dist/esm/reservedThemeProps.mjs +20 -0
- package/dist/esm/reservedThemeProps.mjs.map +1 -0
- package/dist/esm/reservedThemeProps.native.js +20 -0
- package/dist/esm/reservedThemeProps.native.js.map +1 -0
- package/dist/esm/shouldRenderNativePlatform.mjs +25 -19
- package/dist/esm/shouldRenderNativePlatform.mjs.map +1 -1
- package/dist/esm/shouldRenderNativePlatform.native.js +42 -42
- package/dist/esm/shouldRenderNativePlatform.native.js.map +1 -1
- package/dist/esm/themeClassNames.mjs +21 -0
- package/dist/esm/themeClassNames.mjs.map +1 -0
- package/dist/esm/themeClassNames.native.js +39 -0
- package/dist/esm/themeClassNames.native.js.map +1 -0
- package/dist/esm/toStylePropsObject.mjs +13 -0
- package/dist/esm/toStylePropsObject.mjs.map +1 -0
- package/dist/esm/toStylePropsObject.native.js +50 -0
- package/dist/esm/toStylePropsObject.native.js.map +1 -0
- package/dist/esm/tokenCategories.mjs +28 -0
- package/dist/esm/tokenCategories.mjs.map +1 -0
- package/dist/esm/tokenCategories.native.js +30 -0
- package/dist/esm/tokenCategories.native.js.map +1 -0
- package/dist/esm/types.mjs +1 -0
- package/dist/esm/types.mjs.map +1 -1
- package/dist/esm/types.native.js +1 -0
- package/dist/esm/types.native.js.map +1 -1
- package/dist/esm/validStyleProps.mjs +21 -297
- package/dist/esm/validStyleProps.mjs.map +1 -1
- package/dist/esm/validStyleProps.native.js +22 -291
- package/dist/esm/validStyleProps.native.js.map +1 -1
- package/dist/esm/webOnlyStyleProps.mjs +7 -75
- package/dist/esm/webOnlyStyleProps.mjs.map +1 -1
- package/dist/esm/webOnlyStyleProps.native.js +7 -75
- package/dist/esm/webOnlyStyleProps.native.js.map +1 -1
- package/dist/esm/withStaticProperties.mjs +11 -12
- package/dist/esm/withStaticProperties.mjs.map +1 -1
- package/dist/esm/withStaticProperties.native.js +12 -13
- package/dist/esm/withStaticProperties.native.js.map +1 -1
- package/package.json +16 -5
- package/src/composeEventHandlers.ts +6 -10
- package/src/index.ts +3 -0
- package/src/reservedThemeProps.ts +26 -0
- package/src/themeClassNames.ts +26 -0
- package/src/toStylePropsObject.ts +29 -0
- package/src/tokenCategories.ts +29 -0
- package/src/validStyleProps.ts +89 -349
- package/src/webOnlyStyleProps.ts +16 -80
- package/types/composeEventHandlers.d.ts.map +1 -1
- package/types/index.d.ts +3 -0
- package/types/index.d.ts.map +1 -1
- package/types/reservedThemeProps.d.ts +11 -0
- package/types/reservedThemeProps.d.ts.map +1 -0
- package/types/themeClassNames.d.ts +3 -0
- package/types/themeClassNames.d.ts.map +1 -0
- package/types/toStylePropsObject.d.ts +6 -0
- package/types/toStylePropsObject.d.ts.map +1 -0
- package/types/tokenCategories.d.ts +4 -0
- package/types/tokenCategories.d.ts.map +1 -0
- package/types/validStyleProps.d.ts +1533 -1242
- package/types/validStyleProps.d.ts.map +1 -1
- package/types/webOnlyStyleProps.d.ts +106 -99
- package/types/webOnlyStyleProps.d.ts.map +1 -1
- package/types/withStaticProperties.d.ts.map +1 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
|
@@ -1,294 +1,25 @@
|
|
|
1
1
|
import { isAndroid } from "@tamagui/constants";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
var textColors = {
|
|
24
|
-
color: true,
|
|
25
|
-
textDecorationColor: true,
|
|
26
|
-
textShadowColor: true
|
|
27
|
-
};
|
|
28
|
-
var tokenCategories = {
|
|
29
|
-
radius: {
|
|
30
|
-
borderRadius: true,
|
|
31
|
-
borderTopLeftRadius: true,
|
|
32
|
-
borderTopRightRadius: true,
|
|
33
|
-
borderBottomLeftRadius: true,
|
|
34
|
-
borderBottomRightRadius: true,
|
|
35
|
-
borderStartStartRadius: true,
|
|
36
|
-
borderStartEndRadius: true,
|
|
37
|
-
borderEndStartRadius: true,
|
|
38
|
-
borderEndEndRadius: true
|
|
39
|
-
},
|
|
40
|
-
size: {
|
|
41
|
-
width: true,
|
|
42
|
-
height: true,
|
|
43
|
-
minWidth: true,
|
|
44
|
-
minHeight: true,
|
|
45
|
-
maxWidth: true,
|
|
46
|
-
maxHeight: true,
|
|
47
|
-
blockSize: true,
|
|
48
|
-
minBlockSize: true,
|
|
49
|
-
maxBlockSize: true,
|
|
50
|
-
inlineSize: true,
|
|
51
|
-
minInlineSize: true,
|
|
52
|
-
maxInlineSize: true
|
|
53
|
-
},
|
|
54
|
-
zIndex: {
|
|
55
|
-
zIndex: true
|
|
56
|
-
},
|
|
57
|
-
color: {
|
|
58
|
-
backgroundColor: true,
|
|
59
|
-
borderColor: true,
|
|
60
|
-
borderBlockStartColor: true,
|
|
61
|
-
borderBlockEndColor: true,
|
|
62
|
-
borderBlockColor: true,
|
|
63
|
-
borderBottomColor: true,
|
|
64
|
-
borderInlineColor: true,
|
|
65
|
-
borderInlineStartColor: true,
|
|
66
|
-
borderInlineEndColor: true,
|
|
67
|
-
borderTopColor: true,
|
|
68
|
-
borderLeftColor: true,
|
|
69
|
-
borderRightColor: true,
|
|
70
|
-
borderEndColor: true,
|
|
71
|
-
borderStartColor: true,
|
|
72
|
-
shadowColor: true,
|
|
73
|
-
...textColors,
|
|
74
|
-
outlineColor: true
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
var nonAnimatableViewProps = {
|
|
78
|
-
alignContent: true,
|
|
79
|
-
alignItems: true,
|
|
80
|
-
alignSelf: true,
|
|
81
|
-
backfaceVisibility: true,
|
|
82
|
-
borderCurve: true,
|
|
83
|
-
borderStyle: true,
|
|
84
|
-
borderBlockStyle: true,
|
|
85
|
-
borderBlockEndStyle: true,
|
|
86
|
-
borderBlockStartStyle: true,
|
|
87
|
-
borderInlineStyle: true,
|
|
88
|
-
borderInlineEndStyle: true,
|
|
89
|
-
borderInlineStartStyle: true,
|
|
90
|
-
boxSizing: true,
|
|
91
|
-
cursor: true,
|
|
92
|
-
direction: true,
|
|
93
|
-
display: true,
|
|
94
|
-
flexDirection: true,
|
|
95
|
-
flexWrap: true,
|
|
96
|
-
isolation: true,
|
|
97
|
-
justifyContent: true,
|
|
98
|
-
mixBlendMode: true,
|
|
99
|
-
outlineStyle: true,
|
|
100
|
-
overflow: true,
|
|
101
|
-
position: true
|
|
102
|
-
};
|
|
103
|
-
var nonAnimatableFontProps = {
|
|
104
|
-
fontFamily: true,
|
|
105
|
-
fontStyle: true,
|
|
106
|
-
fontVariant: true,
|
|
107
|
-
textTransform: true
|
|
108
|
-
};
|
|
109
|
-
var nonAnimatableTextOnlyProps = {
|
|
110
|
-
textAlign: true,
|
|
111
|
-
textDecorationLine: true,
|
|
112
|
-
textDecorationStyle: true,
|
|
113
|
-
userSelect: true
|
|
114
|
-
};
|
|
115
|
-
var nonAnimatableUnitlessProps = {
|
|
116
|
-
WebkitLineClamp: true,
|
|
117
|
-
lineClamp: true,
|
|
118
|
-
gridTemplateColumns: true,
|
|
119
|
-
gridTemplateAreas: true
|
|
120
|
-
};
|
|
121
|
-
var nonAnimatableStyleProps = {
|
|
122
|
-
...nonAnimatableViewProps,
|
|
123
|
-
...nonAnimatableFontProps,
|
|
124
|
-
...nonAnimatableTextOnlyProps,
|
|
125
|
-
...nonAnimatableUnitlessProps
|
|
126
|
-
};
|
|
127
|
-
var stylePropsUnitless = {
|
|
128
|
-
...nonAnimatableUnitlessProps,
|
|
129
|
-
animationIterationCount: true,
|
|
130
|
-
aspectRatio: true,
|
|
131
|
-
borderImageOutset: true,
|
|
132
|
-
borderImageSlice: true,
|
|
133
|
-
borderImageWidth: true,
|
|
134
|
-
columnCount: true,
|
|
135
|
-
flex: true,
|
|
136
|
-
flexGrow: true,
|
|
137
|
-
flexOrder: true,
|
|
138
|
-
flexPositive: true,
|
|
139
|
-
flexShrink: true,
|
|
140
|
-
flexNegative: true,
|
|
141
|
-
fontWeight: true,
|
|
142
|
-
gridRow: true,
|
|
143
|
-
gridRowEnd: true,
|
|
144
|
-
gridRowGap: true,
|
|
145
|
-
gridRowStart: true,
|
|
146
|
-
gridColumn: true,
|
|
147
|
-
gridColumnEnd: true,
|
|
148
|
-
gridColumnGap: true,
|
|
149
|
-
gridColumnStart: true,
|
|
150
|
-
opacity: true,
|
|
151
|
-
order: true,
|
|
152
|
-
orphans: true,
|
|
153
|
-
tabSize: true,
|
|
154
|
-
widows: true,
|
|
155
|
-
zIndex: true,
|
|
156
|
-
zoom: true,
|
|
157
|
-
scale: true,
|
|
158
|
-
scaleX: true,
|
|
159
|
-
scaleY: true,
|
|
160
|
-
scaleZ: true,
|
|
161
|
-
shadowOpacity: true
|
|
162
|
-
};
|
|
163
|
-
var stylePropsTransform = {
|
|
164
|
-
x: true,
|
|
165
|
-
y: true,
|
|
166
|
-
scale: true,
|
|
167
|
-
perspective: true,
|
|
168
|
-
scaleX: true,
|
|
169
|
-
scaleY: true,
|
|
170
|
-
skewX: true,
|
|
171
|
-
skewY: true,
|
|
172
|
-
matrix: true,
|
|
173
|
-
rotate: true,
|
|
174
|
-
rotateY: true,
|
|
175
|
-
rotateX: true,
|
|
176
|
-
rotateZ: true
|
|
177
|
-
};
|
|
178
|
-
var stylePropsView = {
|
|
179
|
-
...nonAnimatableViewProps,
|
|
180
|
-
borderBottomEndRadius: true,
|
|
181
|
-
borderBottomStartRadius: true,
|
|
182
|
-
borderBottomWidth: true,
|
|
183
|
-
borderLeftWidth: true,
|
|
184
|
-
borderRightWidth: true,
|
|
185
|
-
borderBlockWidth: true,
|
|
186
|
-
borderBlockEndWidth: true,
|
|
187
|
-
borderBlockStartWidth: true,
|
|
188
|
-
borderInlineWidth: true,
|
|
189
|
-
borderInlineEndWidth: true,
|
|
190
|
-
borderInlineStartWidth: true,
|
|
191
|
-
borderTopEndRadius: true,
|
|
192
|
-
borderTopStartRadius: true,
|
|
193
|
-
borderTopWidth: true,
|
|
194
|
-
borderWidth: true,
|
|
195
|
-
transform: true,
|
|
196
|
-
transformOrigin: true,
|
|
197
|
-
borderEndWidth: true,
|
|
198
|
-
borderStartWidth: true,
|
|
199
|
-
bottom: true,
|
|
200
|
-
end: true,
|
|
201
|
-
flexBasis: true,
|
|
202
|
-
gap: true,
|
|
203
|
-
columnGap: true,
|
|
204
|
-
rowGap: true,
|
|
205
|
-
left: true,
|
|
206
|
-
margin: true,
|
|
207
|
-
marginBlock: true,
|
|
208
|
-
marginBlockEnd: true,
|
|
209
|
-
marginBlockStart: true,
|
|
210
|
-
marginInline: true,
|
|
211
|
-
marginInlineStart: true,
|
|
212
|
-
marginInlineEnd: true,
|
|
213
|
-
marginBottom: true,
|
|
214
|
-
marginEnd: true,
|
|
215
|
-
marginHorizontal: true,
|
|
216
|
-
marginLeft: true,
|
|
217
|
-
marginRight: true,
|
|
218
|
-
marginStart: true,
|
|
219
|
-
marginTop: true,
|
|
220
|
-
marginVertical: true,
|
|
221
|
-
padding: true,
|
|
222
|
-
paddingBottom: true,
|
|
223
|
-
paddingInline: true,
|
|
224
|
-
paddingBlock: true,
|
|
225
|
-
paddingBlockStart: true,
|
|
226
|
-
paddingInlineEnd: true,
|
|
227
|
-
paddingInlineStart: true,
|
|
228
|
-
paddingEnd: true,
|
|
229
|
-
paddingHorizontal: true,
|
|
230
|
-
paddingLeft: true,
|
|
231
|
-
paddingRight: true,
|
|
232
|
-
paddingStart: true,
|
|
233
|
-
paddingTop: true,
|
|
234
|
-
paddingVertical: true,
|
|
235
|
-
right: true,
|
|
236
|
-
start: true,
|
|
237
|
-
top: true,
|
|
238
|
-
inset: true,
|
|
239
|
-
insetBlock: true,
|
|
240
|
-
insetBlockEnd: true,
|
|
241
|
-
insetBlockStart: true,
|
|
242
|
-
insetInline: true,
|
|
243
|
-
insetInlineEnd: true,
|
|
244
|
-
insetInlineStart: true,
|
|
245
|
-
shadowOffset: true,
|
|
246
|
-
shadowRadius: true,
|
|
247
|
-
...tokenCategories.color,
|
|
248
|
-
...tokenCategories.radius,
|
|
249
|
-
...tokenCategories.size,
|
|
250
|
-
...stylePropsTransform,
|
|
251
|
-
...stylePropsUnitless,
|
|
252
|
-
...(isAndroid ? {
|
|
253
|
-
elevationAndroid: true
|
|
254
|
-
} : {}),
|
|
255
|
-
boxShadow: true,
|
|
256
|
-
border: true,
|
|
257
|
-
filter: true,
|
|
258
|
-
backgroundImage: true,
|
|
259
|
-
experimental_backgroundImage: true,
|
|
260
|
-
outline: true,
|
|
261
|
-
outlineColor: true,
|
|
262
|
-
outlineOffset: true,
|
|
263
|
-
outlineWidth: true
|
|
264
|
-
};
|
|
265
|
-
var stylePropsTextOnly = {
|
|
266
|
-
...nonAnimatableFontProps,
|
|
267
|
-
fontSize: true,
|
|
268
|
-
fontWeight: true,
|
|
269
|
-
letterSpacing: true,
|
|
270
|
-
lineHeight: true,
|
|
271
|
-
...nonAnimatableTextOnlyProps,
|
|
272
|
-
...textColors,
|
|
273
|
-
textShadow: true,
|
|
274
|
-
textShadowOffset: true,
|
|
275
|
-
textShadowRadius: true,
|
|
276
|
-
verticalAlign: true
|
|
277
|
-
};
|
|
278
|
-
var stylePropsText = {
|
|
279
|
-
...stylePropsView,
|
|
280
|
-
...stylePropsTextOnly
|
|
281
|
-
};
|
|
282
|
-
var stylePropsAll = stylePropsText;
|
|
283
|
-
var validPseudoKeys = {
|
|
284
|
-
enterStyle: true,
|
|
285
|
-
exitStyle: true,
|
|
286
|
-
hoverStyle: true,
|
|
287
|
-
pressStyle: true,
|
|
288
|
-
focusStyle: true,
|
|
289
|
-
disabledStyle: true,
|
|
290
|
-
focusWithinStyle: true
|
|
291
|
-
};
|
|
2
|
+
import { toStylePropsObject } from "./toStylePropsObject.native.js";
|
|
3
|
+
import { tokenCategories } from "./tokenCategories.native.js";
|
|
4
|
+
|
|
5
|
+
var cssShorthandLonghands = toStylePropsObject("borderWidth borderStyle borderColor borderTopWidth borderTopStyle borderTopColor borderRightWidth borderRightStyle borderRightColor borderBottomWidth borderBottomStyle borderBottomColor borderLeftWidth borderLeftStyle borderLeftColor outlineWidth outlineStyle outlineColor outlineOffset");
|
|
6
|
+
var textColors = toStylePropsObject("color textDecorationColor textShadowColor");
|
|
7
|
+
var inputColors = toStylePropsObject("placeholderTextColor selectionColor cursorColor selectionHandleColor");
|
|
8
|
+
var nonAnimatableViewProps = toStylePropsObject("alignContent alignItems alignSelf backfaceVisibility borderCurve borderStyle borderBlockStyle borderBlockEndStyle borderBlockStartStyle borderInlineStyle borderInlineEndStyle borderInlineStartStyle boxSizing cursor direction display flexDirection flexWrap isolation justifyContent mixBlendMode outlineStyle overflow pointerEvents position visibility");
|
|
9
|
+
var nonAnimatableFontProps = toStylePropsObject("fontFamily fontStyle fontVariant textTransform");
|
|
10
|
+
var nonAnimatableTextOnlyProps = toStylePropsObject("textAlign textDecorationLine textDecorationStyle userSelect writingDirection");
|
|
11
|
+
var nonAnimatableUnitlessProps = toStylePropsObject("WebkitLineClamp lineClamp");
|
|
12
|
+
var cssGridProps = toStylePropsObject("gridTemplateColumns gridTemplateAreas gridRow gridRowEnd gridRowGap gridRowStart gridColumn gridColumnEnd gridColumnGap gridColumnStart");
|
|
13
|
+
var enableCSSGrid = process.env.TAMAGUI_CSS_GRID === "1";
|
|
14
|
+
var nonAnimatableStyleProps = toStylePropsObject(nonAnimatableViewProps, nonAnimatableFontProps, nonAnimatableTextOnlyProps, nonAnimatableUnitlessProps, enableCSSGrid ? cssGridProps : void 0, void 0, void 0);
|
|
15
|
+
var stylePropsUnitless = toStylePropsObject(nonAnimatableUnitlessProps, enableCSSGrid ? cssGridProps : void 0, "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth columnCount flex flexGrow flexOrder flexPositive flexShrink flexNegative fontWeight opacity order orphans tabSize widows zIndex zoom scale scaleX scaleY scaleZ shadowOpacity");
|
|
16
|
+
var stylePropsTransform = toStylePropsObject("x y scale perspective scaleX scaleY skewX skewY matrix rotate rotateY rotateX rotateZ");
|
|
17
|
+
var stylePropsView = toStylePropsObject(nonAnimatableViewProps, "borderBottomWidth borderLeftWidth borderRightWidth borderBlockWidth borderBlockEndWidth borderBlockStartWidth borderInlineWidth borderInlineEndWidth borderInlineStartWidth borderTopWidth borderWidth 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 paddingBlockEnd paddingBlockStart paddingInlineEnd paddingInlineStart paddingEnd paddingHorizontal paddingLeft paddingRight paddingStart paddingTop paddingVertical right start top inset insetBlock insetBlockEnd insetBlockStart insetInline insetInlineEnd insetInlineStart shadowOffset backgroundColor borderColor borderBlockStartColor borderBlockEndColor borderBlockColor borderBottomColor borderInlineColor borderInlineStartColor borderInlineEndColor borderTopColor borderLeftColor borderRightColor borderEndColor borderStartColor shadowColor outlineColor", void 0, "borderRadius borderTopLeftRadius borderTopRightRadius borderBottomLeftRadius borderBottomRightRadius borderTopStartRadius borderTopEndRadius borderBottomStartRadius borderBottomEndRadius borderStartStartRadius borderStartEndRadius borderEndStartRadius borderEndEndRadius width height minWidth minHeight maxWidth maxHeight blockSize minBlockSize maxBlockSize inlineSize minInlineSize maxInlineSize shadowRadius", stylePropsTransform, stylePropsUnitless, isAndroid ? { elevationAndroid: true } : void 0, "boxShadow border borderBlock borderInline filter background backgroundImage experimental_backgroundImage outline outlineOffset outlineWidth", void 0);
|
|
18
|
+
var stylePropsTextOnly = toStylePropsObject(toStylePropsObject(nonAnimatableFontProps, "fontSize fontWeight letterSpacing lineHeight"), nonAnimatableTextOnlyProps, textColors, "textShadow textShadowOffset textShadowRadius textDecoration font verticalAlign", void 0);
|
|
19
|
+
var stylePropsText = toStylePropsObject(stylePropsView, stylePropsTextOnly);
|
|
20
|
+
var stylePropsInput = toStylePropsObject(stylePropsText, inputColors);
|
|
21
|
+
var stylePropsAll = stylePropsInput;
|
|
292
22
|
var validStyles = stylePropsView;
|
|
293
|
-
|
|
23
|
+
|
|
24
|
+
export { cssShorthandLonghands, nonAnimatableStyleProps, stylePropsAll, stylePropsInput, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, tokenCategories, validStyles };
|
|
294
25
|
//# 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","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":["validStyleProps.native.js"],"sourcesContent":["import { isAndroid } from \"@tamagui/constants\";\n\nvar cssShorthandLonghands = {\n\tborderWidth: true,\n\tborderStyle: true,\n\tborderColor: true,\n\tborderTopWidth: true,\n\tborderTopStyle: true,\n\tborderTopColor: true,\n\tborderRightWidth: true,\n\tborderRightStyle: true,\n\tborderRightColor: true,\n\tborderBottomWidth: true,\n\tborderBottomStyle: true,\n\tborderBottomColor: true,\n\tborderLeftWidth: true,\n\tborderLeftStyle: true,\n\tborderLeftColor: true,\n\toutlineWidth: true,\n\toutlineStyle: true,\n\toutlineColor: true,\n\toutlineOffset: true\n};\nvar textColors = {\n\tcolor: true,\n\ttextDecorationColor: true,\n\ttextShadowColor: true\n};\nvar tokenCategories = {\n\tradius: {\n\t\tborderRadius: true,\n\t\tborderTopLeftRadius: true,\n\t\tborderTopRightRadius: true,\n\t\tborderBottomLeftRadius: true,\n\t\tborderBottomRightRadius: true,\n\t\tborderStartStartRadius: true,\n\t\tborderStartEndRadius: true,\n\t\tborderEndStartRadius: true,\n\t\tborderEndEndRadius: true\n\t},\n\tsize: {\n\t\twidth: true,\n\t\theight: true,\n\t\tminWidth: true,\n\t\tminHeight: true,\n\t\tmaxWidth: true,\n\t\tmaxHeight: true,\n\t\tblockSize: true,\n\t\tminBlockSize: true,\n\t\tmaxBlockSize: true,\n\t\tinlineSize: true,\n\t\tminInlineSize: true,\n\t\tmaxInlineSize: true\n\t},\n\tzIndex: { zIndex: true },\n\tcolor: {\n\t\tbackgroundColor: true,\n\t\tborderColor: true,\n\t\tborderBlockStartColor: true,\n\t\tborderBlockEndColor: true,\n\t\tborderBlockColor: true,\n\t\tborderBottomColor: true,\n\t\tborderInlineColor: true,\n\t\tborderInlineStartColor: true,\n\t\tborderInlineEndColor: true,\n\t\tborderTopColor: true,\n\t\tborderLeftColor: true,\n\t\tborderRightColor: true,\n\t\tborderEndColor: true,\n\t\tborderStartColor: true,\n\t\tshadowColor: true,\n\t\t...textColors,\n\t\toutlineColor: true\n\t}\n};\nvar nonAnimatableViewProps = {\n\talignContent: true,\n\talignItems: true,\n\talignSelf: true,\n\tbackfaceVisibility: true,\n\tborderCurve: true,\n\tborderStyle: true,\n\tborderBlockStyle: true,\n\tborderBlockEndStyle: true,\n\tborderBlockStartStyle: true,\n\tborderInlineStyle: true,\n\tborderInlineEndStyle: true,\n\tborderInlineStartStyle: true,\n\tboxSizing: true,\n\tcursor: true,\n\tdirection: true,\n\tdisplay: true,\n\tflexDirection: true,\n\tflexWrap: true,\n\tisolation: true,\n\tjustifyContent: true,\n\tmixBlendMode: true,\n\toutlineStyle: true,\n\toverflow: true,\n\tposition: true\n};\nvar nonAnimatableFontProps = {\n\tfontFamily: true,\n\tfontStyle: true,\n\tfontVariant: true,\n\ttextTransform: true\n};\nvar nonAnimatableTextOnlyProps = {\n\ttextAlign: true,\n\ttextDecorationLine: true,\n\ttextDecorationStyle: true,\n\tuserSelect: true\n};\nvar nonAnimatableUnitlessProps = {\n\tWebkitLineClamp: true,\n\tlineClamp: true,\n\tgridTemplateColumns: true,\n\tgridTemplateAreas: true\n};\nvar nonAnimatableStyleProps = {\n\t...nonAnimatableViewProps,\n\t...nonAnimatableFontProps,\n\t...nonAnimatableTextOnlyProps,\n\t...nonAnimatableUnitlessProps\n};\nvar stylePropsUnitless = {\n\t...nonAnimatableUnitlessProps,\n\tanimationIterationCount: true,\n\taspectRatio: true,\n\tborderImageOutset: true,\n\tborderImageSlice: true,\n\tborderImageWidth: true,\n\tcolumnCount: true,\n\tflex: true,\n\tflexGrow: true,\n\tflexOrder: true,\n\tflexPositive: true,\n\tflexShrink: true,\n\tflexNegative: true,\n\tfontWeight: true,\n\tgridRow: true,\n\tgridRowEnd: true,\n\tgridRowGap: true,\n\tgridRowStart: true,\n\tgridColumn: true,\n\tgridColumnEnd: true,\n\tgridColumnGap: true,\n\tgridColumnStart: true,\n\topacity: true,\n\torder: true,\n\torphans: true,\n\ttabSize: true,\n\twidows: true,\n\tzIndex: true,\n\tzoom: true,\n\tscale: true,\n\tscaleX: true,\n\tscaleY: true,\n\tscaleZ: true,\n\tshadowOpacity: true\n};\nvar stylePropsTransform = {\n\tx: true,\n\ty: true,\n\tscale: true,\n\tperspective: true,\n\tscaleX: true,\n\tscaleY: true,\n\tskewX: true,\n\tskewY: true,\n\tmatrix: true,\n\trotate: true,\n\trotateY: true,\n\trotateX: true,\n\trotateZ: true\n};\nvar stylePropsView = {\n\t...nonAnimatableViewProps,\n\tborderBottomEndRadius: true,\n\tborderBottomStartRadius: true,\n\tborderBottomWidth: true,\n\tborderLeftWidth: true,\n\tborderRightWidth: true,\n\tborderBlockWidth: true,\n\tborderBlockEndWidth: true,\n\tborderBlockStartWidth: true,\n\tborderInlineWidth: true,\n\tborderInlineEndWidth: true,\n\tborderInlineStartWidth: true,\n\tborderTopEndRadius: true,\n\tborderTopStartRadius: true,\n\tborderTopWidth: true,\n\tborderWidth: true,\n\ttransform: true,\n\ttransformOrigin: true,\n\tborderEndWidth: true,\n\tborderStartWidth: true,\n\tbottom: true,\n\tend: true,\n\tflexBasis: true,\n\tgap: true,\n\tcolumnGap: true,\n\trowGap: true,\n\tleft: true,\n\tmargin: true,\n\tmarginBlock: true,\n\tmarginBlockEnd: true,\n\tmarginBlockStart: true,\n\tmarginInline: true,\n\tmarginInlineStart: true,\n\tmarginInlineEnd: true,\n\tmarginBottom: true,\n\tmarginEnd: true,\n\tmarginHorizontal: true,\n\tmarginLeft: true,\n\tmarginRight: true,\n\tmarginStart: true,\n\tmarginTop: true,\n\tmarginVertical: true,\n\tpadding: true,\n\tpaddingBottom: true,\n\tpaddingInline: true,\n\tpaddingBlock: true,\n\tpaddingBlockStart: true,\n\tpaddingInlineEnd: true,\n\tpaddingInlineStart: true,\n\tpaddingEnd: true,\n\tpaddingHorizontal: true,\n\tpaddingLeft: true,\n\tpaddingRight: true,\n\tpaddingStart: true,\n\tpaddingTop: true,\n\tpaddingVertical: true,\n\tright: true,\n\tstart: true,\n\ttop: true,\n\tinset: true,\n\tinsetBlock: true,\n\tinsetBlockEnd: true,\n\tinsetBlockStart: true,\n\tinsetInline: true,\n\tinsetInlineEnd: true,\n\tinsetInlineStart: true,\n\tshadowOffset: true,\n\tshadowRadius: true,\n\t...tokenCategories.color,\n\t...tokenCategories.radius,\n\t...tokenCategories.size,\n\t...stylePropsTransform,\n\t...stylePropsUnitless,\n\t...isAndroid ? { elevationAndroid: true } : {},\n\tboxShadow: true,\n\tborder: true,\n\tfilter: true,\n\tbackgroundImage: true,\n\texperimental_backgroundImage: true,\n\toutline: true,\n\toutlineColor: true,\n\toutlineOffset: true,\n\toutlineWidth: true\n};\nvar stylePropsTextOnly = {\n\t...nonAnimatableFontProps,\n\tfontSize: true,\n\tfontWeight: true,\n\tletterSpacing: true,\n\tlineHeight: true,\n\t...nonAnimatableTextOnlyProps,\n\t...textColors,\n\ttextShadow: true,\n\ttextShadowOffset: true,\n\ttextShadowRadius: true,\n\tverticalAlign: true\n};\nvar stylePropsText = {\n\t...stylePropsView,\n\t...stylePropsTextOnly\n};\nvar stylePropsAll = stylePropsText;\nvar validPseudoKeys = {\n\tenterStyle: true,\n\texitStyle: true,\n\thoverStyle: true,\n\tpressStyle: true,\n\tfocusStyle: true,\n\tdisabledStyle: true,\n\tfocusWithinStyle: true\n};\nvar validStyles = stylePropsView;\n\nexport { cssShorthandLonghands, nonAnimatableStyleProps, stylePropsAll, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, tokenCategories, validPseudoKeys, validStyles };"],"mappings":"AAAA,SAASA,SAAS,QAAQ,oBAAoB;AAE9C,IAAIC,qBAAqB,GAAG;EAC3BC,WAAW,EAAE,IAAI;EACjBC,WAAW,EAAE,IAAI;EACjBC,WAAW,EAAE,IAAI;EACjBC,cAAc,EAAE,IAAI;EACpBC,cAAc,EAAE,IAAI;EACpBC,cAAc,EAAE,IAAI;EACpBC,gBAAgB,EAAE,IAAI;EACtBC,gBAAgB,EAAE,IAAI;EACtBC,gBAAgB,EAAE,IAAI;EACtBC,iBAAiB,EAAE,IAAI;EACvBC,iBAAiB,EAAE,IAAI;EACvBC,iBAAiB,EAAE,IAAI;EACvBC,eAAe,EAAE,IAAI;EACrBC,eAAe,EAAE,IAAI;EACrBC,eAAe,EAAE,IAAI;EACrBC,YAAY,EAAE,IAAI;EAClBC,YAAY,EAAE,IAAI;EAClBC,YAAY,EAAE,IAAI;EAClBC,aAAa,EAAE;AAChB,CAAC;AACD,IAAIC,UAAU,GAAG;EAChBC,KAAK,EAAE,IAAI;EACXC,mBAAmB,EAAE,IAAI;EACzBC,eAAe,EAAE;AAClB,CAAC;AACD,IAAIC,eAAe,GAAG;EACrBC,MAAM,EAAE;IACPC,YAAY,EAAE,IAAI;IAClBC,mBAAmB,EAAE,IAAI;IACzBC,oBAAoB,EAAE,IAAI;IAC1BC,sBAAsB,EAAE,IAAI;IAC5BC,uBAAuB,EAAE,IAAI;IAC7BC,sBAAsB,EAAE,IAAI;IAC5BC,oBAAoB,EAAE,IAAI;IAC1BC,oBAAoB,EAAE,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,EAAE;AACnB,CAAC;AACD,IAAIC,WAAW,GAAGxF,cAAc;AAEhC,SAAS9I,qBAAqB,EAAEiG,uBAAuB,EAAE4H,aAAa,EAAED,cAAc,EAAER,kBAAkB,EAAEjF,mBAAmB,EAAEjC,kBAAkB,EAAE4C,cAAc,EAAEtH,eAAe,EAAEsM,eAAe,EAAEQ,WAAW","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"validStyleProps.native.js","names":[],"sources":["esm/validStyleProps.native.js"],"sourcesContent":["import { isAndroid } from \"@tamagui/constants\";\nimport { toStylePropsObject } from \"./toStylePropsObject\";\nimport { tokenCategories } from \"./tokenCategories\";\n\nvar cssShorthandLonghands = toStylePropsObject(\"borderWidth borderStyle borderColor borderTopWidth borderTopStyle borderTopColor borderRightWidth borderRightStyle borderRightColor borderBottomWidth borderBottomStyle borderBottomColor borderLeftWidth borderLeftStyle borderLeftColor outlineWidth outlineStyle outlineColor outlineOffset\");\nvar textColors = toStylePropsObject(\"color textDecorationColor textShadowColor\");\nvar inputColors = toStylePropsObject(\"placeholderTextColor selectionColor cursorColor selectionHandleColor\");\nvar nonAnimatableViewProps = toStylePropsObject(\"alignContent alignItems alignSelf backfaceVisibility borderCurve borderStyle borderBlockStyle borderBlockEndStyle borderBlockStartStyle borderInlineStyle borderInlineEndStyle borderInlineStartStyle boxSizing cursor direction display flexDirection flexWrap isolation justifyContent mixBlendMode outlineStyle overflow pointerEvents position visibility\");\nvar nonAnimatableFontProps = toStylePropsObject(\"fontFamily fontStyle fontVariant textTransform\");\nvar nonAnimatableTextOnlyProps = toStylePropsObject(\"textAlign textDecorationLine textDecorationStyle userSelect writingDirection\");\nvar nonAnimatableUnitlessProps = toStylePropsObject(\"WebkitLineClamp lineClamp\");\nvar cssGridProps = toStylePropsObject(\"gridTemplateColumns gridTemplateAreas gridRow gridRowEnd gridRowGap gridRowStart gridColumn gridColumnEnd gridColumnGap gridColumnStart\");\nvar enableCSSGrid = process.env.TAMAGUI_CSS_GRID === \"1\";\nvar nonAnimatableStyleProps = toStylePropsObject(nonAnimatableViewProps, nonAnimatableFontProps, nonAnimatableTextOnlyProps, nonAnimatableUnitlessProps, enableCSSGrid ? cssGridProps : void 0, void 0, void 0);\nvar stylePropsUnitless = toStylePropsObject(nonAnimatableUnitlessProps, enableCSSGrid ? cssGridProps : void 0, \"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth columnCount flex flexGrow flexOrder flexPositive flexShrink flexNegative fontWeight opacity order orphans tabSize widows zIndex zoom scale scaleX scaleY scaleZ shadowOpacity\");\nvar stylePropsTransform = toStylePropsObject(\"x y scale perspective scaleX scaleY skewX skewY matrix rotate rotateY rotateX rotateZ\");\nvar stylePropsView = toStylePropsObject(nonAnimatableViewProps, \"borderBottomWidth borderLeftWidth borderRightWidth borderBlockWidth borderBlockEndWidth borderBlockStartWidth borderInlineWidth borderInlineEndWidth borderInlineStartWidth borderTopWidth borderWidth 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 paddingBlockEnd paddingBlockStart paddingInlineEnd paddingInlineStart paddingEnd paddingHorizontal paddingLeft paddingRight paddingStart paddingTop paddingVertical right start top inset insetBlock insetBlockEnd insetBlockStart insetInline insetInlineEnd insetInlineStart shadowOffset backgroundColor borderColor borderBlockStartColor borderBlockEndColor borderBlockColor borderBottomColor borderInlineColor borderInlineStartColor borderInlineEndColor borderTopColor borderLeftColor borderRightColor borderEndColor borderStartColor shadowColor outlineColor\", void 0, \"borderRadius borderTopLeftRadius borderTopRightRadius borderBottomLeftRadius borderBottomRightRadius borderTopStartRadius borderTopEndRadius borderBottomStartRadius borderBottomEndRadius borderStartStartRadius borderStartEndRadius borderEndStartRadius borderEndEndRadius width height minWidth minHeight maxWidth maxHeight blockSize minBlockSize maxBlockSize inlineSize minInlineSize maxInlineSize shadowRadius\", stylePropsTransform, stylePropsUnitless, isAndroid ? { elevationAndroid: true } : void 0, \"boxShadow border borderBlock borderInline filter background backgroundImage experimental_backgroundImage outline outlineOffset outlineWidth\", void 0);\nvar stylePropsTextOnly = toStylePropsObject(toStylePropsObject(nonAnimatableFontProps, \"fontSize fontWeight letterSpacing lineHeight\"), nonAnimatableTextOnlyProps, textColors, \"textShadow textShadowOffset textShadowRadius textDecoration font verticalAlign\", void 0);\nvar stylePropsText = toStylePropsObject(stylePropsView, stylePropsTextOnly);\nvar stylePropsInput = toStylePropsObject(stylePropsText, inputColors);\nvar stylePropsAll = stylePropsInput;\nvar validStyles = stylePropsView;\n\nexport { cssShorthandLonghands, nonAnimatableStyleProps, stylePropsAll, stylePropsInput, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, tokenCategories, validStyles };"],"mappings":";;;;;AAIA,IAAI,wBAAwB,mBAAmB,gSAAgS;AAC/U,IAAI,aAAa,mBAAmB,2CAA2C;AAC/E,IAAI,cAAc,mBAAmB,sEAAsE;AAC3G,IAAI,yBAAyB,mBAAmB,+VAA+V;AAC/Y,IAAI,yBAAyB,mBAAmB,gDAAgD;AAChG,IAAI,6BAA6B,mBAAmB,8EAA8E;AAClI,IAAI,6BAA6B,mBAAmB,2BAA2B;AAC/E,IAAI,eAAe,mBAAmB,yIAAyI;AAC/K,IAAI,gBAAgB,QAAQ,IAAI,qBAAqB;AACrD,IAAI,0BAA0B,mBAAmB,wBAAwB,wBAAwB,4BAA4B,4BAA4B,gBAAgB,eAAe,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAC9M,IAAI,qBAAqB,mBAAmB,4BAA4B,gBAAgB,eAAe,KAAK,GAAG,uQAAuQ;AACtX,IAAI,sBAAsB,mBAAmB,uFAAuF;AACpI,IAAI,iBAAiB,mBAAmB,wBAAwB,slCAAslC,KAAK,GAAG,6ZAA6Z,qBAAqB,oBAAoB,YAAY,EAAE,kBAAkB,KAAK,IAAI,KAAK,GAAG,+IAA+I,KAAK,CAAC;AAC1yD,IAAI,qBAAqB,mBAAmB,mBAAmB,wBAAwB,8CAA8C,GAAG,4BAA4B,YAAY,kFAAkF,KAAK,CAAC;AACxQ,IAAI,iBAAiB,mBAAmB,gBAAgB,kBAAkB;AAC1E,IAAI,kBAAkB,mBAAmB,gBAAgB,WAAW;AACpE,IAAI,gBAAgB;AACpB,IAAI,cAAc"}
|
|
@@ -1,77 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
borderLeftStyle: true,
|
|
9
|
-
borderRightStyle: true,
|
|
10
|
-
borderTopStyle: true,
|
|
11
|
-
contain: true,
|
|
12
|
-
containerType: true,
|
|
13
|
-
content: true,
|
|
14
|
-
float: true,
|
|
15
|
-
maskBorderMode: true,
|
|
16
|
-
maskBorderRepeat: true,
|
|
17
|
-
maskClip: true,
|
|
18
|
-
maskComposite: true,
|
|
19
|
-
maskMode: true,
|
|
20
|
-
maskOrigin: true,
|
|
21
|
-
maskRepeat: true,
|
|
22
|
-
maskType: true,
|
|
23
|
-
objectFit: true,
|
|
24
|
-
overflowBlock: true,
|
|
25
|
-
overflowInline: true,
|
|
26
|
-
overflowX: true,
|
|
27
|
-
overflowY: true,
|
|
28
|
-
// NOTE: pointerEvents is NOT web-only - it's a core React Native View prop (not a style)
|
|
29
|
-
pointerEvents: true,
|
|
30
|
-
scrollbarWidth: true,
|
|
31
|
-
textWrap: true,
|
|
32
|
-
touchAction: true,
|
|
33
|
-
transformStyle: true,
|
|
34
|
-
willChange: true
|
|
35
|
-
};
|
|
36
|
-
const nonAnimatableWebTextProps = {
|
|
37
|
-
whiteSpace: true,
|
|
38
|
-
wordWrap: true,
|
|
39
|
-
textOverflow: true,
|
|
40
|
-
WebkitBoxOrient: true
|
|
41
|
-
};
|
|
42
|
-
const webOnlyStylePropsView = {
|
|
43
|
-
...nonAnimatableWebViewProps,
|
|
44
|
-
transition: true,
|
|
45
|
-
backdropFilter: true,
|
|
46
|
-
WebkitBackdropFilter: true,
|
|
47
|
-
background: true,
|
|
48
|
-
borderTop: true,
|
|
49
|
-
borderRight: true,
|
|
50
|
-
borderBottom: true,
|
|
51
|
-
borderLeft: true,
|
|
52
|
-
backgroundPosition: true,
|
|
53
|
-
backgroundSize: true,
|
|
54
|
-
borderImage: true,
|
|
55
|
-
caretColor: true,
|
|
56
|
-
clipPath: true,
|
|
57
|
-
mask: true,
|
|
58
|
-
maskBorder: true,
|
|
59
|
-
maskBorderOutset: true,
|
|
60
|
-
maskBorderSlice: true,
|
|
61
|
-
maskBorderSource: true,
|
|
62
|
-
maskBorderWidth: true,
|
|
63
|
-
maskImage: true,
|
|
64
|
-
maskPosition: true,
|
|
65
|
-
maskSize: true,
|
|
66
|
-
objectPosition: true,
|
|
67
|
-
textEmphasis: true,
|
|
68
|
-
userSelect: true
|
|
69
|
-
};
|
|
70
|
-
const webOnlyStylePropsText = {
|
|
71
|
-
...nonAnimatableWebTextProps,
|
|
72
|
-
textDecorationDistance: true,
|
|
73
|
-
// cursor: now cross-platform - in stylePropsView
|
|
74
|
-
WebkitLineClamp: true
|
|
75
|
-
};
|
|
1
|
+
import { toStylePropsObject } from "./toStylePropsObject.mjs";
|
|
2
|
+
|
|
3
|
+
const nonAnimatableWebViewProps = toStylePropsObject("backgroundAttachment backgroundBlendMode backgroundClip backgroundOrigin backgroundRepeat borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle contain containerType containerName content float maskBorderMode maskBorderRepeat maskClip maskComposite maskMode maskOrigin maskRepeat maskType objectFit overflowBlock overflowInline overflowX overflowY scrollbarWidth textWrap touchAction transformStyle willChange");
|
|
4
|
+
const nonAnimatableWebTextProps = toStylePropsObject("whiteSpace wordWrap textOverflow WebkitBoxOrient");
|
|
5
|
+
const webOnlyStylePropsView = toStylePropsObject(nonAnimatableWebViewProps, "transition transitionProperty transitionDuration transitionTimingFunction transitionDelay transitionBehavior backdropFilter WebkitBackdropFilter borderTop borderRight borderBottom borderLeft backgroundPosition backgroundSize borderImage caretColor clipPath mask maskBorder maskBorderOutset maskBorderSlice maskBorderSource maskBorderWidth maskImage maskPosition maskSize objectPosition textEmphasis userSelect overflowWrap wordWrap resize");
|
|
6
|
+
const webOnlyStylePropsText = toStylePropsObject(nonAnimatableWebTextProps, "textDecorationDistance WebkitLineClamp");
|
|
7
|
+
|
|
76
8
|
export { nonAnimatableWebTextProps, nonAnimatableWebViewProps, webOnlyStylePropsText, webOnlyStylePropsView };
|
|
77
9
|
//# sourceMappingURL=webOnlyStyleProps.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"webOnlyStyleProps.js","names":["toObj"],"sources":["esm/webOnlyStyleProps.js"],"sourcesContent":["import { toStylePropsObject as toObj } from \"./toStylePropsObject\";\nconst nonAnimatableWebViewProps = toObj(\n \"backgroundAttachment backgroundBlendMode backgroundClip backgroundOrigin backgroundRepeat borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle contain containerType containerName content float maskBorderMode maskBorderRepeat maskClip maskComposite maskMode maskOrigin maskRepeat maskType objectFit overflowBlock overflowInline overflowX overflowY scrollbarWidth textWrap touchAction transformStyle willChange\"\n);\nconst nonAnimatableWebTextProps = toObj(\n \"whiteSpace wordWrap textOverflow WebkitBoxOrient\"\n);\nconst webOnlyStylePropsView = toObj(\n nonAnimatableWebViewProps,\n \"transition transitionProperty transitionDuration transitionTimingFunction transitionDelay transitionBehavior backdropFilter WebkitBackdropFilter borderTop borderRight borderBottom borderLeft backgroundPosition backgroundSize borderImage caretColor clipPath mask maskBorder maskBorderOutset maskBorderSlice maskBorderSource maskBorderWidth maskImage maskPosition maskSize objectPosition textEmphasis userSelect overflowWrap wordWrap resize\"\n);\nconst webOnlyStylePropsText = toObj(\n nonAnimatableWebTextProps,\n \"textDecorationDistance WebkitLineClamp\"\n);\nexport {\n nonAnimatableWebTextProps,\n nonAnimatableWebViewProps,\n webOnlyStylePropsText,\n webOnlyStylePropsView\n};\n//# sourceMappingURL=webOnlyStyleProps.js.map\n"],"mappings":";;;AACA,MAAM,4BAA4BA,mBAChC,uaACF;AACA,MAAM,4BAA4BA,mBAChC,kDACF;AACA,MAAM,wBAAwBA,mBAC5B,2BACA,wbACF;AACA,MAAM,wBAAwBA,mBAC5B,2BACA,wCACF"}
|
|
@@ -1,77 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
borderLeftStyle: true,
|
|
9
|
-
borderRightStyle: true,
|
|
10
|
-
borderTopStyle: true,
|
|
11
|
-
contain: true,
|
|
12
|
-
containerType: true,
|
|
13
|
-
content: true,
|
|
14
|
-
float: true,
|
|
15
|
-
maskBorderMode: true,
|
|
16
|
-
maskBorderRepeat: true,
|
|
17
|
-
maskClip: true,
|
|
18
|
-
maskComposite: true,
|
|
19
|
-
maskMode: true,
|
|
20
|
-
maskOrigin: true,
|
|
21
|
-
maskRepeat: true,
|
|
22
|
-
maskType: true,
|
|
23
|
-
objectFit: true,
|
|
24
|
-
overflowBlock: true,
|
|
25
|
-
overflowInline: true,
|
|
26
|
-
overflowX: true,
|
|
27
|
-
overflowY: true,
|
|
28
|
-
// NOTE: pointerEvents is NOT web-only - it's a core React Native View prop (not a style)
|
|
29
|
-
pointerEvents: true,
|
|
30
|
-
scrollbarWidth: true,
|
|
31
|
-
textWrap: true,
|
|
32
|
-
touchAction: true,
|
|
33
|
-
transformStyle: true,
|
|
34
|
-
willChange: true
|
|
35
|
-
};
|
|
36
|
-
var nonAnimatableWebTextProps = {
|
|
37
|
-
whiteSpace: true,
|
|
38
|
-
wordWrap: true,
|
|
39
|
-
textOverflow: true,
|
|
40
|
-
WebkitBoxOrient: true
|
|
41
|
-
};
|
|
42
|
-
var webOnlyStylePropsView = {
|
|
43
|
-
...nonAnimatableWebViewProps,
|
|
44
|
-
transition: true,
|
|
45
|
-
backdropFilter: true,
|
|
46
|
-
WebkitBackdropFilter: true,
|
|
47
|
-
background: true,
|
|
48
|
-
borderTop: true,
|
|
49
|
-
borderRight: true,
|
|
50
|
-
borderBottom: true,
|
|
51
|
-
borderLeft: true,
|
|
52
|
-
backgroundPosition: true,
|
|
53
|
-
backgroundSize: true,
|
|
54
|
-
borderImage: true,
|
|
55
|
-
caretColor: true,
|
|
56
|
-
clipPath: true,
|
|
57
|
-
mask: true,
|
|
58
|
-
maskBorder: true,
|
|
59
|
-
maskBorderOutset: true,
|
|
60
|
-
maskBorderSlice: true,
|
|
61
|
-
maskBorderSource: true,
|
|
62
|
-
maskBorderWidth: true,
|
|
63
|
-
maskImage: true,
|
|
64
|
-
maskPosition: true,
|
|
65
|
-
maskSize: true,
|
|
66
|
-
objectPosition: true,
|
|
67
|
-
textEmphasis: true,
|
|
68
|
-
userSelect: true
|
|
69
|
-
};
|
|
70
|
-
var webOnlyStylePropsText = {
|
|
71
|
-
...nonAnimatableWebTextProps,
|
|
72
|
-
textDecorationDistance: true,
|
|
73
|
-
// cursor: now cross-platform - in stylePropsView
|
|
74
|
-
WebkitLineClamp: true
|
|
75
|
-
};
|
|
1
|
+
import { toStylePropsObject } from "./toStylePropsObject.native.js";
|
|
2
|
+
|
|
3
|
+
var nonAnimatableWebViewProps = toStylePropsObject("backgroundAttachment backgroundBlendMode backgroundClip backgroundOrigin backgroundRepeat borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle contain containerType containerName content float maskBorderMode maskBorderRepeat maskClip maskComposite maskMode maskOrigin maskRepeat maskType objectFit overflowBlock overflowInline overflowX overflowY scrollbarWidth textWrap touchAction transformStyle willChange");
|
|
4
|
+
var nonAnimatableWebTextProps = toStylePropsObject("whiteSpace wordWrap textOverflow WebkitBoxOrient");
|
|
5
|
+
var webOnlyStylePropsView = toStylePropsObject(nonAnimatableWebViewProps, "transition transitionProperty transitionDuration transitionTimingFunction transitionDelay transitionBehavior backdropFilter WebkitBackdropFilter borderTop borderRight borderBottom borderLeft backgroundPosition backgroundSize borderImage caretColor clipPath mask maskBorder maskBorderOutset maskBorderSlice maskBorderSource maskBorderWidth maskImage maskPosition maskSize objectPosition textEmphasis userSelect overflowWrap wordWrap resize");
|
|
6
|
+
var webOnlyStylePropsText = toStylePropsObject(nonAnimatableWebTextProps, "textDecorationDistance WebkitLineClamp");
|
|
7
|
+
|
|
76
8
|
export { nonAnimatableWebTextProps, nonAnimatableWebViewProps, webOnlyStylePropsText, webOnlyStylePropsView };
|
|
77
9
|
//# sourceMappingURL=webOnlyStyleProps.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"webOnlyStyleProps.native.js","names":["toObj"],"sources":["esm/webOnlyStyleProps.native.js"],"sourcesContent":["import { toStylePropsObject as toObj } from \"./toStylePropsObject\";\nvar nonAnimatableWebViewProps = toObj(\"backgroundAttachment backgroundBlendMode backgroundClip backgroundOrigin backgroundRepeat borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle contain containerType containerName content float maskBorderMode maskBorderRepeat maskClip maskComposite maskMode maskOrigin maskRepeat maskType objectFit overflowBlock overflowInline overflowX overflowY scrollbarWidth textWrap touchAction transformStyle willChange\");\nvar nonAnimatableWebTextProps = toObj(\"whiteSpace wordWrap textOverflow WebkitBoxOrient\");\nvar webOnlyStylePropsView = toObj(nonAnimatableWebViewProps, \"transition transitionProperty transitionDuration transitionTimingFunction transitionDelay transitionBehavior backdropFilter WebkitBackdropFilter borderTop borderRight borderBottom borderLeft backgroundPosition backgroundSize borderImage caretColor clipPath mask maskBorder maskBorderOutset maskBorderSlice maskBorderSource maskBorderWidth maskImage maskPosition maskSize objectPosition textEmphasis userSelect overflowWrap wordWrap resize\");\nvar webOnlyStylePropsText = toObj(nonAnimatableWebTextProps, \"textDecorationDistance WebkitLineClamp\");\nexport {\n nonAnimatableWebTextProps,\n nonAnimatableWebViewProps,\n webOnlyStylePropsText,\n webOnlyStylePropsView\n};\n//# sourceMappingURL=webOnlyStyleProps.js.map\n"],"mappings":";;;AACA,IAAI,4BAA4BA,mBAAM,uaAAua;AAC7c,IAAI,4BAA4BA,mBAAM,kDAAkD;AACxF,IAAI,wBAAwBA,mBAAM,2BAA2B,wbAAwb;AACrf,IAAI,wBAAwBA,mBAAM,2BAA2B,wCAAwC"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
const Decorated = /* @__PURE__ */Symbol();
|
|
1
|
+
const Decorated = /* @__PURE__ */ Symbol();
|
|
2
2
|
const withStaticProperties = (component, staticProps) => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
out[Decorated] = true;
|
|
13
|
-
return out;
|
|
3
|
+
const out = (() => {
|
|
4
|
+
if (component[Decorated]) {
|
|
5
|
+
return typeof component === "function" ? Object.assign(component.bind(null), component) : { ...component };
|
|
6
|
+
}
|
|
7
|
+
return component;
|
|
8
|
+
})();
|
|
9
|
+
Object.assign(out, staticProps);
|
|
10
|
+
out[Decorated] = true;
|
|
11
|
+
return out;
|
|
14
12
|
};
|
|
13
|
+
|
|
15
14
|
export { withStaticProperties };
|
|
16
15
|
//# sourceMappingURL=withStaticProperties.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"withStaticProperties.js","names":[],"sources":["esm/withStaticProperties.js"],"sourcesContent":["const Decorated = /* @__PURE__ */ Symbol();\nconst withStaticProperties = (component, staticProps) => {\n const out = (() => {\n if (component[Decorated]) {\n return typeof component === \"function\" ? Object.assign(component.bind(null), component) : { ...component };\n }\n return component;\n })();\n Object.assign(out, staticProps);\n out[Decorated] = true;\n return out;\n};\nexport {\n withStaticProperties\n};\n//# sourceMappingURL=withStaticProperties.js.map\n"],"mappings":";AAAA,MAAM,YAA4B,uBAAO;AACzC,MAAM,wBAAwB,WAAW,gBAAgB;CACvD,MAAM,aAAa;EACjB,IAAI,UAAU,YAAY;GACxB,OAAO,OAAO,cAAc,aAAa,OAAO,OAAO,UAAU,KAAK,IAAI,GAAG,SAAS,IAAI,EAAE,GAAG,UAAU;EAC3G;EACA,OAAO;CACT,EAAC,CAAE;CACH,OAAO,OAAO,KAAK,WAAW;CAC9B,IAAI,aAAa;CACjB,OAAO;AACT"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
var Decorated = /* @__PURE__ */Symbol();
|
|
2
|
-
var withStaticProperties = function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
out[Decorated] = true;
|
|
13
|
-
return out;
|
|
1
|
+
var Decorated = /* @__PURE__ */ Symbol();
|
|
2
|
+
var withStaticProperties = function(component, staticProps) {
|
|
3
|
+
var out = (function() {
|
|
4
|
+
if (component[Decorated]) {
|
|
5
|
+
return typeof component === "function" ? Object.assign(component.bind(null), component) : { ...component };
|
|
6
|
+
}
|
|
7
|
+
return component;
|
|
8
|
+
})();
|
|
9
|
+
Object.assign(out, staticProps);
|
|
10
|
+
out[Decorated] = true;
|
|
11
|
+
return out;
|
|
14
12
|
};
|
|
13
|
+
|
|
15
14
|
export { withStaticProperties };
|
|
16
15
|
//# sourceMappingURL=withStaticProperties.native.js.map
|