@tamagui/helpers 2.7.7 → 3.0.0-beta.1093.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,301 +1,25 @@
|
|
|
1
1
|
import { isAndroid } from "@tamagui/constants";
|
|
2
2
|
import { nonAnimatableWebTextProps, nonAnimatableWebViewProps, webOnlyStylePropsText, webOnlyStylePropsView } from "./webOnlyStyleProps.mjs";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
|
40
|
-
},
|
|
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
|
|
54
|
-
},
|
|
55
|
-
zIndex: {
|
|
56
|
-
zIndex: true
|
|
57
|
-
},
|
|
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,
|
|
74
|
-
...textColors,
|
|
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
|
-
};
|
|
3
|
+
import { toStylePropsObject } from "./toStylePropsObject.mjs";
|
|
4
|
+
import { tokenCategories } from "./tokenCategories.mjs";
|
|
5
|
+
|
|
6
|
+
const cssShorthandLonghands = toStylePropsObject("borderWidth borderStyle borderColor borderTopWidth borderTopStyle borderTopColor borderRightWidth borderRightStyle borderRightColor borderBottomWidth borderBottomStyle borderBottomColor borderLeftWidth borderLeftStyle borderLeftColor outlineWidth outlineStyle outlineColor outlineOffset");
|
|
7
|
+
const textColors = toStylePropsObject("color textDecorationColor textShadowColor");
|
|
8
|
+
const inputColors = toStylePropsObject("placeholderTextColor selectionColor cursorColor selectionHandleColor");
|
|
9
|
+
const 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");
|
|
10
|
+
const nonAnimatableFontProps = toStylePropsObject("fontFamily fontStyle fontVariant textTransform");
|
|
11
|
+
const nonAnimatableTextOnlyProps = toStylePropsObject("textAlign textDecorationLine textDecorationStyle userSelect writingDirection");
|
|
12
|
+
const nonAnimatableUnitlessProps = toStylePropsObject("WebkitLineClamp lineClamp");
|
|
13
|
+
const cssGridProps = toStylePropsObject("gridTemplateColumns gridTemplateAreas gridRow gridRowEnd gridRowGap gridRowStart gridColumn gridColumnEnd gridColumnGap gridColumnStart");
|
|
14
|
+
const nonAnimatableStyleProps = toStylePropsObject(nonAnimatableViewProps, nonAnimatableFontProps, nonAnimatableTextOnlyProps, nonAnimatableUnitlessProps, cssGridProps, nonAnimatableWebViewProps, nonAnimatableWebTextProps);
|
|
15
|
+
const stylePropsUnitless = toStylePropsObject(nonAnimatableUnitlessProps, cssGridProps, "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
|
+
const stylePropsTransform = toStylePropsObject("x y scale perspective scaleX scaleY skewX skewY matrix rotate rotateY rotateX rotateZ");
|
|
17
|
+
const 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", "caretColor", "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", webOnlyStylePropsView);
|
|
18
|
+
const stylePropsTextOnly = toStylePropsObject(toStylePropsObject(nonAnimatableFontProps, "fontSize fontWeight letterSpacing lineHeight"), nonAnimatableTextOnlyProps, textColors, "textShadow textShadowOffset textShadowRadius textDecoration font verticalAlign", webOnlyStylePropsText);
|
|
19
|
+
const stylePropsText = toStylePropsObject(stylePropsView, stylePropsTextOnly);
|
|
20
|
+
const stylePropsInput = toStylePropsObject(stylePropsText, inputColors);
|
|
21
|
+
const stylePropsAll = stylePropsInput;
|
|
299
22
|
const validStyles = stylePropsView;
|
|
300
|
-
|
|
23
|
+
|
|
24
|
+
export { cssShorthandLonghands, nonAnimatableStyleProps, stylePropsAll, stylePropsInput, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, tokenCategories, validStyles };
|
|
301
25
|
//# sourceMappingURL=validStyleProps.mjs.map
|
|
@@ -1 +1 @@
|
|
|
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":["validStyleProps.mjs"],"sourcesContent":["import { isAndroid } from \"@tamagui/constants\";\nimport { nonAnimatableWebTextProps, nonAnimatableWebViewProps, webOnlyStylePropsText, webOnlyStylePropsView } from \"./webOnlyStyleProps\";\n\nconst 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};\nconst textColors = {\n\tcolor: true,\n\ttextDecorationColor: true,\n\ttextShadowColor: true\n};\nconst 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\tcaretColor: true\n\t}\n};\nconst 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};\nconst nonAnimatableFontProps = {\n\tfontFamily: true,\n\tfontStyle: true,\n\tfontVariant: true,\n\ttextTransform: true\n};\nconst nonAnimatableTextOnlyProps = {\n\ttextAlign: true,\n\ttextDecorationLine: true,\n\ttextDecorationStyle: true,\n\tuserSelect: true\n};\nconst nonAnimatableUnitlessProps = {\n\tWebkitLineClamp: true,\n\tlineClamp: true,\n\tgridTemplateColumns: true,\n\tgridTemplateAreas: true\n};\nconst nonAnimatableStyleProps = {\n\t...nonAnimatableViewProps,\n\t...nonAnimatableFontProps,\n\t...nonAnimatableTextOnlyProps,\n\t...nonAnimatableUnitlessProps,\n\t...nonAnimatableWebViewProps,\n\t...nonAnimatableWebTextProps\n};\nconst 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};\nconst 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};\nconst 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\t...webOnlyStylePropsView\n};\nconst 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\t...webOnlyStylePropsText\n};\nconst stylePropsText = {\n\t...stylePropsView,\n\t...stylePropsTextOnly\n};\nconst stylePropsAll = stylePropsText;\nconst validPseudoKeys = {\n\tenterStyle: true,\n\texitStyle: true,\n\thoverStyle: true,\n\tpressStyle: true,\n\tfocusStyle: true,\n\tdisabledStyle: true,\n\tfocusWithinStyle: true,\n\tfocusVisibleStyle: true\n};\nconst validStyles = stylePropsView;\n\nexport { cssShorthandLonghands, nonAnimatableStyleProps, stylePropsAll, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, tokenCategories, validPseudoKeys, validStyles };"],"mappings":"AAAA,SAASA,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,yBAAyB,EAAEC,yBAAyB,EAAEC,qBAAqB,EAAEC,qBAAqB,QAAQ,yBAAqB;AAExI,MAAMC,qBAAqB,GAAG;EAC7BC,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,EAA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AAI;EACblM,YAAY,EAAE,IAAI;EAClBC,aAAa,EAAE,IAAI;EACnBH,YAAY,EAAE,IAAI;EAClB,GAAGjB;AACJ,CAAC;AACD,MAAMsN,kBAAkB,GAAG;EAC1B,GAAGlI,sBAAsB;EACzBmI,QAAQ,EAAE,IAAI;EACdtG,UAAU,EAAE,IAAI;EAChBuG,aAAa,EAAE,IAAI;EACnBC,UAAU,EAAE,IAAI;EAChB,GAAGhI,0BAA0B;EAC7B,GAAGpE,UAAU;EACbqM,UAAU,EAAE,IAAI;EAChBC,gBAAgB,EAAE,IAAI;EACtBC,gBAAgB,EAAE,IAAI;EACtBC,aAAa,EAAE,IAAI;EACnB,GAAG9N;AACJ,CAAC;AACD,MAAM+N,cAAc,GAAG;EACtB,GAAG9E,cAAc;EACjB,GAAGsE;AACJ,CAAC;AACD,MAAMS,aAAa,GAAGD,cAAc;AACpC,MAAME,eAAe,GAAG;EACvBC,UAAU,EAAE,IAAI;EAChBC,SAAS,EAAE,IAAI;EACfC,UAAU,EAAE,IAAI;EAChBC,UAAU,EAAE,IAAI;EAChBC,UAAU,EAAE,IAAI;EAChBC,aAAa,EAAE,IAAI;EACnBC,gBAAgB,EAAE,IAAI;EACtBC,iBAAiB,EAAE;AACpB,CAAC;AACD,MAAMC,WAAW,GAAGzF,cAAc;AAElC,SAAS/I,qBAAqB,EAAEkG,uBAAuB,EAAE4H,aAAa,EAAED,cAAc,EAAER,kBAAkB,EAAEjF,mBAAmB,EAAEjC,kBAAkB,EAAE4C,cAAc,EAAEvH,eAAe,EAAEuM,eAAe,EAAES,WAAW","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"validStyleProps.js","names":[],"sources":["esm/validStyleProps.js"],"sourcesContent":["import { isAndroid } from \"@tamagui/constants\";\nimport { nonAnimatableWebTextProps, nonAnimatableWebViewProps, webOnlyStylePropsText, webOnlyStylePropsView } from \"./webOnlyStyleProps\";\nimport { toStylePropsObject } from \"./toStylePropsObject\";\nimport { tokenCategories } from \"./tokenCategories\";\n\nconst cssShorthandLonghands = toStylePropsObject(\"borderWidth borderStyle borderColor borderTopWidth borderTopStyle borderTopColor borderRightWidth borderRightStyle borderRightColor borderBottomWidth borderBottomStyle borderBottomColor borderLeftWidth borderLeftStyle borderLeftColor outlineWidth outlineStyle outlineColor outlineOffset\");\nconst textColors = toStylePropsObject(\"color textDecorationColor textShadowColor\");\nconst inputColors = toStylePropsObject(\"placeholderTextColor selectionColor cursorColor selectionHandleColor\");\nconst 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\");\nconst nonAnimatableFontProps = toStylePropsObject(\"fontFamily fontStyle fontVariant textTransform\");\nconst nonAnimatableTextOnlyProps = toStylePropsObject(\"textAlign textDecorationLine textDecorationStyle userSelect writingDirection\");\nconst nonAnimatableUnitlessProps = toStylePropsObject(\"WebkitLineClamp lineClamp\");\nconst cssGridProps = toStylePropsObject(\"gridTemplateColumns gridTemplateAreas gridRow gridRowEnd gridRowGap gridRowStart gridColumn gridColumnEnd gridColumnGap gridColumnStart\");\nconst nonAnimatableStyleProps = toStylePropsObject(nonAnimatableViewProps, nonAnimatableFontProps, nonAnimatableTextOnlyProps, nonAnimatableUnitlessProps, cssGridProps, nonAnimatableWebViewProps, nonAnimatableWebTextProps);\nconst stylePropsUnitless = toStylePropsObject(nonAnimatableUnitlessProps, cssGridProps, \"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\");\nconst stylePropsTransform = toStylePropsObject(\"x y scale perspective scaleX scaleY skewX skewY matrix rotate rotateY rotateX rotateZ\");\nconst 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\", \"caretColor\", \"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\", webOnlyStylePropsView);\nconst stylePropsTextOnly = toStylePropsObject(toStylePropsObject(nonAnimatableFontProps, \"fontSize fontWeight letterSpacing lineHeight\"), nonAnimatableTextOnlyProps, textColors, \"textShadow textShadowOffset textShadowRadius textDecoration font verticalAlign\", webOnlyStylePropsText);\nconst stylePropsText = toStylePropsObject(stylePropsView, stylePropsTextOnly);\nconst stylePropsInput = toStylePropsObject(stylePropsText, inputColors);\nconst stylePropsAll = stylePropsInput;\nconst validStyles = stylePropsView;\n\nexport { cssShorthandLonghands, nonAnimatableStyleProps, stylePropsAll, stylePropsInput, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, tokenCategories, validStyles };"],"mappings":";;;;;;AAKA,MAAM,wBAAwB,mBAAmB,gSAAgS;AACjV,MAAM,aAAa,mBAAmB,2CAA2C;AACjF,MAAM,cAAc,mBAAmB,sEAAsE;AAC7G,MAAM,yBAAyB,mBAAmB,+VAA+V;AACjZ,MAAM,yBAAyB,mBAAmB,gDAAgD;AAClG,MAAM,6BAA6B,mBAAmB,8EAA8E;AACpI,MAAM,6BAA6B,mBAAmB,2BAA2B;AACjF,MAAM,eAAe,mBAAmB,yIAAyI;AACjL,MAAM,0BAA0B,mBAAmB,wBAAwB,wBAAwB,4BAA4B,4BAA4B,cAAc,2BAA2B,yBAAyB;AAC7N,MAAM,qBAAqB,mBAAmB,4BAA4B,cAAc,uQAAuQ;AAC/V,MAAM,sBAAsB,mBAAmB,uFAAuF;AACtI,MAAM,iBAAiB,mBAAmB,wBAAwB,slCAAslC,cAAc,6ZAA6Z,qBAAqB,oBAAoB,YAAY,EAAE,kBAAkB,KAAK,IAAI,KAAK,GAAG,+IAA+I,qBAAqB;AACj0D,MAAM,qBAAqB,mBAAmB,mBAAmB,wBAAwB,8CAA8C,GAAG,4BAA4B,YAAY,kFAAkF,qBAAqB;AACzR,MAAM,iBAAiB,mBAAmB,gBAAgB,kBAAkB;AAC5E,MAAM,kBAAkB,mBAAmB,gBAAgB,WAAW;AACtE,MAAM,gBAAgB;AACtB,MAAM,cAAc"}
|