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