@tamagui/helpers 1.143.1 → 2.0.0-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/index.cjs +2 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +1 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/validStyleProps.cjs +9 -70
- package/dist/cjs/validStyleProps.js +6 -68
- package/dist/cjs/validStyleProps.js.map +1 -1
- package/dist/cjs/validStyleProps.native.js +5 -5
- package/dist/cjs/validStyleProps.native.js.map +1 -1
- package/dist/cjs/webOnlyStyleProps.cjs +100 -0
- package/dist/cjs/webOnlyStyleProps.js +94 -0
- package/dist/cjs/webOnlyStyleProps.js.map +6 -0
- package/dist/cjs/webOnlyStyleProps.native.js +103 -0
- package/dist/cjs/webOnlyStyleProps.native.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +1 -0
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/validStyleProps.js +6 -67
- package/dist/esm/validStyleProps.js.map +1 -1
- package/dist/esm/validStyleProps.mjs +8 -69
- package/dist/esm/validStyleProps.mjs.map +1 -1
- package/dist/esm/validStyleProps.native.js +5 -5
- package/dist/esm/validStyleProps.native.js.map +1 -1
- package/dist/esm/webOnlyStyleProps.js +78 -0
- package/dist/esm/webOnlyStyleProps.js.map +6 -0
- package/dist/esm/webOnlyStyleProps.mjs +76 -0
- package/dist/esm/webOnlyStyleProps.mjs.map +1 -0
- package/dist/esm/webOnlyStyleProps.native.js +76 -0
- package/dist/esm/webOnlyStyleProps.native.js.map +1 -0
- package/package.json +4 -4
- package/src/index.ts +1 -0
- package/src/validStyleProps.ts +6 -75
- package/src/webOnlyStyleProps.ts +77 -0
- package/src/withStaticProperties.tsx +2 -2
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
- package/types/validStyleProps.d.ts +28 -31
- package/types/validStyleProps.d.ts.map +1 -1
- package/types/webOnlyStyleProps.d.ts +73 -0
- package/types/webOnlyStyleProps.d.ts.map +1 -0
- package/types/withStaticProperties.d.ts +1 -1
- package/types/withStaticProperties.d.ts.map +1 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
var webOnlyStylePropsView = {
|
|
2
|
+
transition: !0,
|
|
3
|
+
textWrap: !0,
|
|
4
|
+
backdropFilter: !0,
|
|
5
|
+
WebkitBackdropFilter: !0,
|
|
6
|
+
// These background-* props are web-only CSS, but NOT backgroundColor
|
|
7
|
+
background: !0,
|
|
8
|
+
backgroundAttachment: !0,
|
|
9
|
+
backgroundBlendMode: !0,
|
|
10
|
+
backgroundClip: !0,
|
|
11
|
+
backgroundImage: !0,
|
|
12
|
+
backgroundOrigin: !0,
|
|
13
|
+
backgroundPosition: !0,
|
|
14
|
+
backgroundRepeat: !0,
|
|
15
|
+
backgroundSize: !0,
|
|
16
|
+
borderBottomStyle: !0,
|
|
17
|
+
borderImage: !0,
|
|
18
|
+
borderLeftStyle: !0,
|
|
19
|
+
borderRightStyle: !0,
|
|
20
|
+
borderTopStyle: !0,
|
|
21
|
+
boxSizing: !0,
|
|
22
|
+
caretColor: !0,
|
|
23
|
+
clipPath: !0,
|
|
24
|
+
contain: !0,
|
|
25
|
+
containerType: !0,
|
|
26
|
+
content: !0,
|
|
27
|
+
cursor: !0,
|
|
28
|
+
float: !0,
|
|
29
|
+
mask: !0,
|
|
30
|
+
maskBorder: !0,
|
|
31
|
+
maskBorderMode: !0,
|
|
32
|
+
maskBorderOutset: !0,
|
|
33
|
+
maskBorderRepeat: !0,
|
|
34
|
+
maskBorderSlice: !0,
|
|
35
|
+
maskBorderSource: !0,
|
|
36
|
+
maskBorderWidth: !0,
|
|
37
|
+
maskClip: !0,
|
|
38
|
+
maskComposite: !0,
|
|
39
|
+
maskImage: !0,
|
|
40
|
+
maskMode: !0,
|
|
41
|
+
maskOrigin: !0,
|
|
42
|
+
maskPosition: !0,
|
|
43
|
+
maskRepeat: !0,
|
|
44
|
+
maskSize: !0,
|
|
45
|
+
maskType: !0,
|
|
46
|
+
mixBlendMode: !0,
|
|
47
|
+
objectFit: !0,
|
|
48
|
+
objectPosition: !0,
|
|
49
|
+
outlineOffset: !0,
|
|
50
|
+
outlineStyle: !0,
|
|
51
|
+
outlineWidth: !0,
|
|
52
|
+
outlineColor: !0,
|
|
53
|
+
overflowBlock: !0,
|
|
54
|
+
overflowInline: !0,
|
|
55
|
+
overflowX: !0,
|
|
56
|
+
overflowY: !0,
|
|
57
|
+
// NOTE: pointerEvents is NOT web-only - it's a core React Native View prop (not a style)
|
|
58
|
+
pointerEvents: !0,
|
|
59
|
+
scrollbarWidth: !0,
|
|
60
|
+
textEmphasis: !0,
|
|
61
|
+
touchAction: !0,
|
|
62
|
+
transformStyle: !0,
|
|
63
|
+
userSelect: !0,
|
|
64
|
+
willChange: !0
|
|
65
|
+
},
|
|
66
|
+
webOnlyStylePropsText = {
|
|
67
|
+
whiteSpace: !0,
|
|
68
|
+
wordWrap: !0,
|
|
69
|
+
textOverflow: !0,
|
|
70
|
+
textDecorationDistance: !0,
|
|
71
|
+
cursor: !0,
|
|
72
|
+
WebkitLineClamp: !0,
|
|
73
|
+
WebkitBoxOrient: !0
|
|
74
|
+
};
|
|
75
|
+
export { webOnlyStylePropsText, webOnlyStylePropsView };
|
|
76
|
+
//# sourceMappingURL=webOnlyStyleProps.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["webOnlyStylePropsView","transition","textWrap","backdropFilter","WebkitBackdropFilter","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundImage","backgroundOrigin","backgroundPosition","backgroundRepeat","backgroundSize","borderBottomStyle","borderImage","borderLeftStyle","borderRightStyle","borderTopStyle","boxSizing","caretColor","clipPath","contain","containerType","content","cursor","float","mask","maskBorder","maskBorderMode","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","mixBlendMode","objectFit","objectPosition","outlineOffset","outlineStyle","outlineWidth","outlineColor","overflowBlock","overflowInline","overflowX","overflowY","pointerEvents","scrollbarWidth","textEmphasis","touchAction","transformStyle","userSelect","willChange","webOnlyStylePropsText","whiteSpace","wordWrap","textOverflow","textDecorationDistance","WebkitLineClamp","WebkitBoxOrient"],"sources":["../../src/webOnlyStyleProps.ts"],"sourcesContent":[null],"mappings":"AAEO,IAAAA,qBAAM;IACXC,UAAA,EAAY;IACZC,QAAA,EAAU;IACVC,cAAA,EAAgB;IAChBC,oBAAA,EAAsB;IAAA;IAEtBC,UAAA,EAAY;IACZC,oBAAA,EAAsB;IACtBC,mBAAA,EAAqB;IACrBC,cAAA,EAAgB;IAChBC,eAAA,EAAiB;IACjBC,gBAAA,EAAkB;IAClBC,kBAAA,EAAoB;IACpBC,gBAAA,EAAkB;IAClBC,cAAA,EAAgB;IAChBC,iBAAA,EAAmB;IACnBC,WAAA,EAAa;IACbC,eAAA,EAAiB;IACjBC,gBAAA,EAAkB;IAClBC,cAAA,EAAgB;IAChBC,SAAA,EAAW;IACXC,UAAA,EAAY;IACZC,QAAA,EAAU;IACVC,OAAA,EAAS;IACTC,aAAA,EAAe;IACfC,OAAA,EAAS;IACTC,MAAA,EAAQ;IACRC,KAAA,EAAO;IACPC,IAAA,EAAM;IACNC,UAAA,EAAY;IACZC,cAAA,EAAgB;IAChBC,gBAAA,EAAkB;IAClBC,gBAAA,EAAkB;IAClBC,eAAA,EAAiB;IACjBC,gBAAA,EAAkB;IAClBC,eAAA,EAAiB;IACjBC,QAAA,EAAU;IACVC,aAAA,EAAe;IACfC,SAAA,EAAW;IACXC,QAAA,EAAU;IACVC,UAAA,EAAY;IACZC,YAAA,EAAc;IACdC,UAAA,EAAY;IACZC,QAAA,EAAU;IACVC,QAAA,EAAU;IACVC,YAAA,EAAc;IACdC,SAAA,EAAW;IACXC,cAAA,EAAgB;IAChBC,aAAA,EAAe;IACfC,YAAA,EAAc;IACdC,YAAA,EAAc;IACdC,YAAA,EAAc;IACdC,aAAA,EAAe;IACfC,cAAA,EAAgB;IAChBC,SAAA,EAAW;IACXC,SAAA,EAAW;IAAA;IAEXC,aAAA,EAAe;IACfC,cAAA,EAAgB;IAChBC,YAAA,EAAc;IACdC,WAAA,EAAa;IACbC,cAAA,EAAgB;IAChBC,UAAA,EAAY;IACZC,UAAA,EAAY;EACd;EAEaC,qBAAA,GAAwB;IACnCC,UAAA,EAAY;IACZC,QAAA,EAAU;IACVC,YAAA,EAAc;IACdC,sBAAA,EAAwB;IACxBzC,MAAA,EAAQ;IACR0C,eAAA,EAAiB;IACjBC,eAAA,EAAiB;EACnB","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/helpers",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-001",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"clean:build": "tamagui-build clean:build"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tamagui/constants": "
|
|
25
|
-
"@tamagui/simple-hash": "
|
|
24
|
+
"@tamagui/constants": "2.0.0-001",
|
|
25
|
+
"@tamagui/simple-hash": "2.0.0-001"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@tamagui/build": "
|
|
28
|
+
"@tamagui/build": "2.0.0-001",
|
|
29
29
|
"react": "*"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
package/src/index.ts
CHANGED
package/src/validStyleProps.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isAndroid } from '@tamagui/constants'
|
|
2
|
+
import { webOnlyStylePropsText, webOnlyStylePropsView } from './webOnlyStyleProps'
|
|
2
3
|
|
|
3
4
|
// generally organizing this so we don't duplicate things so its a bit weird
|
|
4
5
|
|
|
@@ -213,10 +214,10 @@ export const stylePropsView = {
|
|
|
213
214
|
...tokenCategories.radius,
|
|
214
215
|
...stylePropsTransform,
|
|
215
216
|
...stylePropsUnitless,
|
|
217
|
+
...(isAndroid ? { elevationAndroid: true } : {}),
|
|
216
218
|
|
|
217
219
|
boxShadow: true,
|
|
218
220
|
filter: true,
|
|
219
|
-
|
|
220
221
|
// RN 0.77+ style props (set REACT_NATIVE_PRE_77=1 for older RN)
|
|
221
222
|
...(!process.env.REACT_NATIVE_PRE_77 && {
|
|
222
223
|
boxSizing: true,
|
|
@@ -227,69 +228,8 @@ export const stylePropsView = {
|
|
|
227
228
|
outlineWidth: true,
|
|
228
229
|
}),
|
|
229
230
|
|
|
230
|
-
//
|
|
231
|
-
|
|
232
|
-
...(process.env.TAMAGUI_TARGET === 'web' && {
|
|
233
|
-
// RN doesn't support specific border styles per-edge
|
|
234
|
-
transition: true,
|
|
235
|
-
textWrap: true,
|
|
236
|
-
backdropFilter: true,
|
|
237
|
-
WebkitBackdropFilter: true,
|
|
238
|
-
background: true,
|
|
239
|
-
backgroundAttachment: true,
|
|
240
|
-
backgroundBlendMode: true,
|
|
241
|
-
backgroundClip: true,
|
|
242
|
-
backgroundColor: true,
|
|
243
|
-
backgroundImage: true,
|
|
244
|
-
backgroundOrigin: true,
|
|
245
|
-
backgroundPosition: true,
|
|
246
|
-
backgroundRepeat: true,
|
|
247
|
-
backgroundSize: true,
|
|
248
|
-
borderBottomStyle: true,
|
|
249
|
-
borderImage: true,
|
|
250
|
-
borderLeftStyle: true,
|
|
251
|
-
borderRightStyle: true,
|
|
252
|
-
borderTopStyle: true,
|
|
253
|
-
caretColor: true,
|
|
254
|
-
clipPath: true,
|
|
255
|
-
contain: true,
|
|
256
|
-
containerType: true,
|
|
257
|
-
content: true,
|
|
258
|
-
cursor: true,
|
|
259
|
-
float: true,
|
|
260
|
-
mask: true,
|
|
261
|
-
maskBorder: true,
|
|
262
|
-
maskBorderMode: true,
|
|
263
|
-
maskBorderOutset: true,
|
|
264
|
-
maskBorderRepeat: true,
|
|
265
|
-
maskBorderSlice: true,
|
|
266
|
-
maskBorderSource: true,
|
|
267
|
-
maskBorderWidth: true,
|
|
268
|
-
maskClip: true,
|
|
269
|
-
maskComposite: true,
|
|
270
|
-
maskImage: true,
|
|
271
|
-
maskMode: true,
|
|
272
|
-
maskOrigin: true,
|
|
273
|
-
maskPosition: true,
|
|
274
|
-
maskRepeat: true,
|
|
275
|
-
maskSize: true,
|
|
276
|
-
maskType: true,
|
|
277
|
-
objectFit: true,
|
|
278
|
-
objectPosition: true,
|
|
279
|
-
outlineOffset: true,
|
|
280
|
-
overflowBlock: true,
|
|
281
|
-
overflowInline: true,
|
|
282
|
-
overflowX: true,
|
|
283
|
-
overflowY: true,
|
|
284
|
-
pointerEvents: true,
|
|
285
|
-
scrollbarWidth: true,
|
|
286
|
-
textEmphasis: true,
|
|
287
|
-
touchAction: true,
|
|
288
|
-
transformStyle: true,
|
|
289
|
-
userSelect: true,
|
|
290
|
-
willChange: true,
|
|
291
|
-
}),
|
|
292
|
-
...(isAndroid ? { elevationAndroid: true } : {}),
|
|
231
|
+
// web-only for convenience - tree-shaken on native
|
|
232
|
+
...(process.env.TAMAGUI_TARGET === 'web' ? webOnlyStylePropsView : {}),
|
|
293
233
|
}
|
|
294
234
|
|
|
295
235
|
const stylePropsFont = {
|
|
@@ -312,19 +252,10 @@ export const stylePropsTextOnly = {
|
|
|
312
252
|
textShadowOffset: true,
|
|
313
253
|
textShadowRadius: true,
|
|
314
254
|
userSelect: true,
|
|
315
|
-
selectable: true,
|
|
316
255
|
verticalAlign: true,
|
|
317
256
|
|
|
318
|
-
//
|
|
319
|
-
...(process.env.TAMAGUI_TARGET === 'web'
|
|
320
|
-
whiteSpace: true,
|
|
321
|
-
wordWrap: true,
|
|
322
|
-
textOverflow: true,
|
|
323
|
-
textDecorationDistance: true,
|
|
324
|
-
cursor: true,
|
|
325
|
-
WebkitLineClamp: true,
|
|
326
|
-
WebkitBoxOrient: true,
|
|
327
|
-
}),
|
|
257
|
+
// web-only text props - tree-shaken on native
|
|
258
|
+
...(process.env.TAMAGUI_TARGET === 'web' ? webOnlyStylePropsText : {}),
|
|
328
259
|
}
|
|
329
260
|
|
|
330
261
|
export const stylePropsText = {
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// Web-only style props that need to be skipped on native
|
|
2
|
+
// NOTE: backgroundColor is NOT web-only - it works on React Native too!
|
|
3
|
+
export const webOnlyStylePropsView = {
|
|
4
|
+
transition: true,
|
|
5
|
+
textWrap: true,
|
|
6
|
+
backdropFilter: true,
|
|
7
|
+
WebkitBackdropFilter: true,
|
|
8
|
+
// These background-* props are web-only CSS, but NOT backgroundColor
|
|
9
|
+
background: true,
|
|
10
|
+
backgroundAttachment: true,
|
|
11
|
+
backgroundBlendMode: true,
|
|
12
|
+
backgroundClip: true,
|
|
13
|
+
backgroundImage: true,
|
|
14
|
+
backgroundOrigin: true,
|
|
15
|
+
backgroundPosition: true,
|
|
16
|
+
backgroundRepeat: true,
|
|
17
|
+
backgroundSize: true,
|
|
18
|
+
borderBottomStyle: true,
|
|
19
|
+
borderImage: true,
|
|
20
|
+
borderLeftStyle: true,
|
|
21
|
+
borderRightStyle: true,
|
|
22
|
+
borderTopStyle: true,
|
|
23
|
+
boxSizing: true,
|
|
24
|
+
caretColor: true,
|
|
25
|
+
clipPath: true,
|
|
26
|
+
contain: true,
|
|
27
|
+
containerType: true,
|
|
28
|
+
content: true,
|
|
29
|
+
cursor: true,
|
|
30
|
+
float: true,
|
|
31
|
+
mask: true,
|
|
32
|
+
maskBorder: true,
|
|
33
|
+
maskBorderMode: true,
|
|
34
|
+
maskBorderOutset: true,
|
|
35
|
+
maskBorderRepeat: true,
|
|
36
|
+
maskBorderSlice: true,
|
|
37
|
+
maskBorderSource: true,
|
|
38
|
+
maskBorderWidth: true,
|
|
39
|
+
maskClip: true,
|
|
40
|
+
maskComposite: true,
|
|
41
|
+
maskImage: true,
|
|
42
|
+
maskMode: true,
|
|
43
|
+
maskOrigin: true,
|
|
44
|
+
maskPosition: true,
|
|
45
|
+
maskRepeat: true,
|
|
46
|
+
maskSize: true,
|
|
47
|
+
maskType: true,
|
|
48
|
+
mixBlendMode: true,
|
|
49
|
+
objectFit: true,
|
|
50
|
+
objectPosition: true,
|
|
51
|
+
outlineOffset: true,
|
|
52
|
+
outlineStyle: true,
|
|
53
|
+
outlineWidth: true,
|
|
54
|
+
outlineColor: true,
|
|
55
|
+
overflowBlock: true,
|
|
56
|
+
overflowInline: true,
|
|
57
|
+
overflowX: true,
|
|
58
|
+
overflowY: true,
|
|
59
|
+
// NOTE: pointerEvents is NOT web-only - it's a core React Native View prop (not a style)
|
|
60
|
+
pointerEvents: true,
|
|
61
|
+
scrollbarWidth: true,
|
|
62
|
+
textEmphasis: true,
|
|
63
|
+
touchAction: true,
|
|
64
|
+
transformStyle: true,
|
|
65
|
+
userSelect: true,
|
|
66
|
+
willChange: true,
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export const webOnlyStylePropsText = {
|
|
70
|
+
whiteSpace: true,
|
|
71
|
+
wordWrap: true,
|
|
72
|
+
textOverflow: true,
|
|
73
|
+
textDecorationDistance: true,
|
|
74
|
+
cursor: true,
|
|
75
|
+
WebkitLineClamp: true,
|
|
76
|
+
WebkitBoxOrient: true,
|
|
77
|
+
}
|
|
@@ -4,7 +4,7 @@ const Decorated = Symbol()
|
|
|
4
4
|
|
|
5
5
|
type Combined<A, B> = A & B
|
|
6
6
|
|
|
7
|
-
export const withStaticProperties = <A extends Function, B
|
|
7
|
+
export const withStaticProperties = <A extends Function, B extends Record<string, any>>(
|
|
8
8
|
component: A,
|
|
9
9
|
staticProps: B
|
|
10
10
|
): Combined<A, B> => {
|
|
@@ -28,5 +28,5 @@ export const withStaticProperties = <A extends Function, B>(
|
|
|
28
28
|
Object.assign(next, staticProps)
|
|
29
29
|
next[Decorated] = true
|
|
30
30
|
|
|
31
|
-
return next as any
|
|
31
|
+
return next as any
|
|
32
32
|
}
|
package/types/index.d.ts
CHANGED
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,SAAS,CAAA;AACvB,cAAc,wBAAwB,CAAA;AACtC,cAAc,SAAS,CAAA;AACvB,cAAc,8BAA8B,CAAA;AAC5C,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,SAAS,CAAA;AACvB,cAAc,wBAAwB,CAAA;AACtC,cAAc,SAAS,CAAA;AACvB,cAAc,8BAA8B,CAAA;AAC5C,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA"}
|
|
@@ -105,7 +105,6 @@ export declare const stylePropsTransform: {
|
|
|
105
105
|
rotateZ: boolean;
|
|
106
106
|
};
|
|
107
107
|
export declare const stylePropsView: {
|
|
108
|
-
elevationAndroid?: boolean | undefined;
|
|
109
108
|
transition?: boolean | undefined;
|
|
110
109
|
textWrap?: boolean | undefined;
|
|
111
110
|
backdropFilter?: boolean | undefined;
|
|
@@ -114,7 +113,6 @@ export declare const stylePropsView: {
|
|
|
114
113
|
backgroundAttachment?: boolean | undefined;
|
|
115
114
|
backgroundBlendMode?: boolean | undefined;
|
|
116
115
|
backgroundClip?: boolean | undefined;
|
|
117
|
-
backgroundColor: boolean;
|
|
118
116
|
backgroundImage?: boolean | undefined;
|
|
119
117
|
backgroundOrigin?: boolean | undefined;
|
|
120
118
|
backgroundPosition?: boolean | undefined;
|
|
@@ -125,6 +123,7 @@ export declare const stylePropsView: {
|
|
|
125
123
|
borderLeftStyle?: boolean | undefined;
|
|
126
124
|
borderRightStyle?: boolean | undefined;
|
|
127
125
|
borderTopStyle?: boolean | undefined;
|
|
126
|
+
boxSizing?: boolean | undefined;
|
|
128
127
|
caretColor?: boolean | undefined;
|
|
129
128
|
clipPath?: boolean | undefined;
|
|
130
129
|
contain?: boolean | undefined;
|
|
@@ -149,9 +148,13 @@ export declare const stylePropsView: {
|
|
|
149
148
|
maskRepeat?: boolean | undefined;
|
|
150
149
|
maskSize?: boolean | undefined;
|
|
151
150
|
maskType?: boolean | undefined;
|
|
151
|
+
mixBlendMode?: boolean | undefined;
|
|
152
152
|
objectFit?: boolean | undefined;
|
|
153
153
|
objectPosition?: boolean | undefined;
|
|
154
154
|
outlineOffset?: boolean | undefined;
|
|
155
|
+
outlineStyle?: boolean | undefined;
|
|
156
|
+
outlineWidth?: boolean | undefined;
|
|
157
|
+
outlineColor?: boolean | undefined;
|
|
155
158
|
overflowBlock?: boolean | undefined;
|
|
156
159
|
overflowInline?: boolean | undefined;
|
|
157
160
|
overflowX?: boolean | undefined;
|
|
@@ -163,14 +166,10 @@ export declare const stylePropsView: {
|
|
|
163
166
|
transformStyle?: boolean | undefined;
|
|
164
167
|
userSelect?: boolean | undefined;
|
|
165
168
|
willChange?: boolean | undefined;
|
|
166
|
-
boxSizing?: boolean | undefined;
|
|
167
|
-
mixBlendMode?: boolean | undefined;
|
|
168
|
-
outlineColor?: boolean | undefined;
|
|
169
169
|
outlineSpread?: boolean | undefined;
|
|
170
|
-
outlineStyle?: boolean | undefined;
|
|
171
|
-
outlineWidth?: boolean | undefined;
|
|
172
170
|
boxShadow: boolean;
|
|
173
171
|
filter: boolean;
|
|
172
|
+
elevationAndroid?: boolean | undefined;
|
|
174
173
|
WebkitLineClamp: boolean;
|
|
175
174
|
animationIterationCount: boolean;
|
|
176
175
|
aspectRatio: boolean;
|
|
@@ -242,6 +241,7 @@ export declare const stylePropsView: {
|
|
|
242
241
|
color: boolean;
|
|
243
242
|
textDecorationColor: boolean;
|
|
244
243
|
textShadowColor: boolean;
|
|
244
|
+
backgroundColor: boolean;
|
|
245
245
|
borderColor: boolean;
|
|
246
246
|
borderBlockStartColor: boolean;
|
|
247
247
|
borderBlockEndColor: boolean;
|
|
@@ -353,7 +353,6 @@ export declare const stylePropsTextOnly: {
|
|
|
353
353
|
textShadowOffset: boolean;
|
|
354
354
|
textShadowRadius: boolean;
|
|
355
355
|
userSelect: boolean;
|
|
356
|
-
selectable: boolean;
|
|
357
356
|
verticalAlign: boolean;
|
|
358
357
|
color: boolean;
|
|
359
358
|
textDecorationColor: boolean;
|
|
@@ -381,7 +380,6 @@ export declare const stylePropsText: {
|
|
|
381
380
|
textShadowOffset: boolean;
|
|
382
381
|
textShadowRadius: boolean;
|
|
383
382
|
userSelect: boolean;
|
|
384
|
-
selectable: boolean;
|
|
385
383
|
verticalAlign: boolean;
|
|
386
384
|
color: boolean;
|
|
387
385
|
textDecorationColor: boolean;
|
|
@@ -397,7 +395,6 @@ export declare const stylePropsText: {
|
|
|
397
395
|
letterSpacing: boolean;
|
|
398
396
|
lineHeight: boolean;
|
|
399
397
|
textTransform: boolean;
|
|
400
|
-
elevationAndroid?: boolean | undefined;
|
|
401
398
|
transition?: boolean | undefined;
|
|
402
399
|
textWrap?: boolean | undefined;
|
|
403
400
|
backdropFilter?: boolean | undefined;
|
|
@@ -406,7 +403,6 @@ export declare const stylePropsText: {
|
|
|
406
403
|
backgroundAttachment?: boolean | undefined;
|
|
407
404
|
backgroundBlendMode?: boolean | undefined;
|
|
408
405
|
backgroundClip?: boolean | undefined;
|
|
409
|
-
backgroundColor: boolean;
|
|
410
406
|
backgroundImage?: boolean | undefined;
|
|
411
407
|
backgroundOrigin?: boolean | undefined;
|
|
412
408
|
backgroundPosition?: boolean | undefined;
|
|
@@ -417,6 +413,7 @@ export declare const stylePropsText: {
|
|
|
417
413
|
borderLeftStyle?: boolean | undefined;
|
|
418
414
|
borderRightStyle?: boolean | undefined;
|
|
419
415
|
borderTopStyle?: boolean | undefined;
|
|
416
|
+
boxSizing?: boolean | undefined;
|
|
420
417
|
caretColor?: boolean | undefined;
|
|
421
418
|
clipPath?: boolean | undefined;
|
|
422
419
|
contain?: boolean | undefined;
|
|
@@ -440,9 +437,13 @@ export declare const stylePropsText: {
|
|
|
440
437
|
maskRepeat?: boolean | undefined;
|
|
441
438
|
maskSize?: boolean | undefined;
|
|
442
439
|
maskType?: boolean | undefined;
|
|
440
|
+
mixBlendMode?: boolean | undefined;
|
|
443
441
|
objectFit?: boolean | undefined;
|
|
444
442
|
objectPosition?: boolean | undefined;
|
|
445
443
|
outlineOffset?: boolean | undefined;
|
|
444
|
+
outlineStyle?: boolean | undefined;
|
|
445
|
+
outlineWidth?: boolean | undefined;
|
|
446
|
+
outlineColor?: boolean | undefined;
|
|
446
447
|
overflowBlock?: boolean | undefined;
|
|
447
448
|
overflowInline?: boolean | undefined;
|
|
448
449
|
overflowX?: boolean | undefined;
|
|
@@ -453,14 +454,10 @@ export declare const stylePropsText: {
|
|
|
453
454
|
touchAction?: boolean | undefined;
|
|
454
455
|
transformStyle?: boolean | undefined;
|
|
455
456
|
willChange?: boolean | undefined;
|
|
456
|
-
boxSizing?: boolean | undefined;
|
|
457
|
-
mixBlendMode?: boolean | undefined;
|
|
458
|
-
outlineColor?: boolean | undefined;
|
|
459
457
|
outlineSpread?: boolean | undefined;
|
|
460
|
-
outlineStyle?: boolean | undefined;
|
|
461
|
-
outlineWidth?: boolean | undefined;
|
|
462
458
|
boxShadow: boolean;
|
|
463
459
|
filter: boolean;
|
|
460
|
+
elevationAndroid?: boolean | undefined;
|
|
464
461
|
animationIterationCount: boolean;
|
|
465
462
|
aspectRatio: boolean;
|
|
466
463
|
borderImageOutset: boolean;
|
|
@@ -527,6 +524,7 @@ export declare const stylePropsText: {
|
|
|
527
524
|
inlineSize: boolean;
|
|
528
525
|
minInlineSize: boolean;
|
|
529
526
|
maxInlineSize: boolean;
|
|
527
|
+
backgroundColor: boolean;
|
|
530
528
|
borderColor: boolean;
|
|
531
529
|
borderBlockStartColor: boolean;
|
|
532
530
|
borderBlockEndColor: boolean;
|
|
@@ -638,7 +636,6 @@ export declare const stylePropsAll: {
|
|
|
638
636
|
textShadowOffset: boolean;
|
|
639
637
|
textShadowRadius: boolean;
|
|
640
638
|
userSelect: boolean;
|
|
641
|
-
selectable: boolean;
|
|
642
639
|
verticalAlign: boolean;
|
|
643
640
|
color: boolean;
|
|
644
641
|
textDecorationColor: boolean;
|
|
@@ -654,7 +651,6 @@ export declare const stylePropsAll: {
|
|
|
654
651
|
letterSpacing: boolean;
|
|
655
652
|
lineHeight: boolean;
|
|
656
653
|
textTransform: boolean;
|
|
657
|
-
elevationAndroid?: boolean | undefined;
|
|
658
654
|
transition?: boolean | undefined;
|
|
659
655
|
textWrap?: boolean | undefined;
|
|
660
656
|
backdropFilter?: boolean | undefined;
|
|
@@ -663,7 +659,6 @@ export declare const stylePropsAll: {
|
|
|
663
659
|
backgroundAttachment?: boolean | undefined;
|
|
664
660
|
backgroundBlendMode?: boolean | undefined;
|
|
665
661
|
backgroundClip?: boolean | undefined;
|
|
666
|
-
backgroundColor: boolean;
|
|
667
662
|
backgroundImage?: boolean | undefined;
|
|
668
663
|
backgroundOrigin?: boolean | undefined;
|
|
669
664
|
backgroundPosition?: boolean | undefined;
|
|
@@ -674,6 +669,7 @@ export declare const stylePropsAll: {
|
|
|
674
669
|
borderLeftStyle?: boolean | undefined;
|
|
675
670
|
borderRightStyle?: boolean | undefined;
|
|
676
671
|
borderTopStyle?: boolean | undefined;
|
|
672
|
+
boxSizing?: boolean | undefined;
|
|
677
673
|
caretColor?: boolean | undefined;
|
|
678
674
|
clipPath?: boolean | undefined;
|
|
679
675
|
contain?: boolean | undefined;
|
|
@@ -697,9 +693,13 @@ export declare const stylePropsAll: {
|
|
|
697
693
|
maskRepeat?: boolean | undefined;
|
|
698
694
|
maskSize?: boolean | undefined;
|
|
699
695
|
maskType?: boolean | undefined;
|
|
696
|
+
mixBlendMode?: boolean | undefined;
|
|
700
697
|
objectFit?: boolean | undefined;
|
|
701
698
|
objectPosition?: boolean | undefined;
|
|
702
699
|
outlineOffset?: boolean | undefined;
|
|
700
|
+
outlineStyle?: boolean | undefined;
|
|
701
|
+
outlineWidth?: boolean | undefined;
|
|
702
|
+
outlineColor?: boolean | undefined;
|
|
703
703
|
overflowBlock?: boolean | undefined;
|
|
704
704
|
overflowInline?: boolean | undefined;
|
|
705
705
|
overflowX?: boolean | undefined;
|
|
@@ -710,14 +710,10 @@ export declare const stylePropsAll: {
|
|
|
710
710
|
touchAction?: boolean | undefined;
|
|
711
711
|
transformStyle?: boolean | undefined;
|
|
712
712
|
willChange?: boolean | undefined;
|
|
713
|
-
boxSizing?: boolean | undefined;
|
|
714
|
-
mixBlendMode?: boolean | undefined;
|
|
715
|
-
outlineColor?: boolean | undefined;
|
|
716
713
|
outlineSpread?: boolean | undefined;
|
|
717
|
-
outlineStyle?: boolean | undefined;
|
|
718
|
-
outlineWidth?: boolean | undefined;
|
|
719
714
|
boxShadow: boolean;
|
|
720
715
|
filter: boolean;
|
|
716
|
+
elevationAndroid?: boolean | undefined;
|
|
721
717
|
animationIterationCount: boolean;
|
|
722
718
|
aspectRatio: boolean;
|
|
723
719
|
borderImageOutset: boolean;
|
|
@@ -784,6 +780,7 @@ export declare const stylePropsAll: {
|
|
|
784
780
|
inlineSize: boolean;
|
|
785
781
|
minInlineSize: boolean;
|
|
786
782
|
maxInlineSize: boolean;
|
|
783
|
+
backgroundColor: boolean;
|
|
787
784
|
borderColor: boolean;
|
|
788
785
|
borderBlockStartColor: boolean;
|
|
789
786
|
borderBlockEndColor: boolean;
|
|
@@ -895,7 +892,6 @@ export declare const validPseudoKeys: {
|
|
|
895
892
|
focusWithinStyle: boolean;
|
|
896
893
|
};
|
|
897
894
|
export declare const validStyles: {
|
|
898
|
-
elevationAndroid?: boolean | undefined;
|
|
899
895
|
transition?: boolean | undefined;
|
|
900
896
|
textWrap?: boolean | undefined;
|
|
901
897
|
backdropFilter?: boolean | undefined;
|
|
@@ -904,7 +900,6 @@ export declare const validStyles: {
|
|
|
904
900
|
backgroundAttachment?: boolean | undefined;
|
|
905
901
|
backgroundBlendMode?: boolean | undefined;
|
|
906
902
|
backgroundClip?: boolean | undefined;
|
|
907
|
-
backgroundColor: boolean;
|
|
908
903
|
backgroundImage?: boolean | undefined;
|
|
909
904
|
backgroundOrigin?: boolean | undefined;
|
|
910
905
|
backgroundPosition?: boolean | undefined;
|
|
@@ -915,6 +910,7 @@ export declare const validStyles: {
|
|
|
915
910
|
borderLeftStyle?: boolean | undefined;
|
|
916
911
|
borderRightStyle?: boolean | undefined;
|
|
917
912
|
borderTopStyle?: boolean | undefined;
|
|
913
|
+
boxSizing?: boolean | undefined;
|
|
918
914
|
caretColor?: boolean | undefined;
|
|
919
915
|
clipPath?: boolean | undefined;
|
|
920
916
|
contain?: boolean | undefined;
|
|
@@ -939,9 +935,13 @@ export declare const validStyles: {
|
|
|
939
935
|
maskRepeat?: boolean | undefined;
|
|
940
936
|
maskSize?: boolean | undefined;
|
|
941
937
|
maskType?: boolean | undefined;
|
|
938
|
+
mixBlendMode?: boolean | undefined;
|
|
942
939
|
objectFit?: boolean | undefined;
|
|
943
940
|
objectPosition?: boolean | undefined;
|
|
944
941
|
outlineOffset?: boolean | undefined;
|
|
942
|
+
outlineStyle?: boolean | undefined;
|
|
943
|
+
outlineWidth?: boolean | undefined;
|
|
944
|
+
outlineColor?: boolean | undefined;
|
|
945
945
|
overflowBlock?: boolean | undefined;
|
|
946
946
|
overflowInline?: boolean | undefined;
|
|
947
947
|
overflowX?: boolean | undefined;
|
|
@@ -953,14 +953,10 @@ export declare const validStyles: {
|
|
|
953
953
|
transformStyle?: boolean | undefined;
|
|
954
954
|
userSelect?: boolean | undefined;
|
|
955
955
|
willChange?: boolean | undefined;
|
|
956
|
-
boxSizing?: boolean | undefined;
|
|
957
|
-
mixBlendMode?: boolean | undefined;
|
|
958
|
-
outlineColor?: boolean | undefined;
|
|
959
956
|
outlineSpread?: boolean | undefined;
|
|
960
|
-
outlineStyle?: boolean | undefined;
|
|
961
|
-
outlineWidth?: boolean | undefined;
|
|
962
957
|
boxShadow: boolean;
|
|
963
958
|
filter: boolean;
|
|
959
|
+
elevationAndroid?: boolean | undefined;
|
|
964
960
|
WebkitLineClamp: boolean;
|
|
965
961
|
animationIterationCount: boolean;
|
|
966
962
|
aspectRatio: boolean;
|
|
@@ -1032,6 +1028,7 @@ export declare const validStyles: {
|
|
|
1032
1028
|
color: boolean;
|
|
1033
1029
|
textDecorationColor: boolean;
|
|
1034
1030
|
textShadowColor: boolean;
|
|
1031
|
+
backgroundColor: boolean;
|
|
1035
1032
|
borderColor: boolean;
|
|
1036
1033
|
borderBlockStartColor: boolean;
|
|
1037
1034
|
borderBlockEndColor: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validStyleProps.d.ts","sourceRoot":"","sources":["../src/validStyleProps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validStyleProps.d.ts","sourceRoot":"","sources":["../src/validStyleProps.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqD3B,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsC9B,CAAA;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;CAc/B,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4G1B,CAAA;AAaD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;CAa9B,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG1B,CAAA;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA;AAE3C,eAAO,MAAM,eAAe;;;;;;;;;CAa3B,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export declare const webOnlyStylePropsView: {
|
|
2
|
+
transition: boolean;
|
|
3
|
+
textWrap: boolean;
|
|
4
|
+
backdropFilter: boolean;
|
|
5
|
+
WebkitBackdropFilter: boolean;
|
|
6
|
+
background: boolean;
|
|
7
|
+
backgroundAttachment: boolean;
|
|
8
|
+
backgroundBlendMode: boolean;
|
|
9
|
+
backgroundClip: boolean;
|
|
10
|
+
backgroundImage: boolean;
|
|
11
|
+
backgroundOrigin: boolean;
|
|
12
|
+
backgroundPosition: boolean;
|
|
13
|
+
backgroundRepeat: boolean;
|
|
14
|
+
backgroundSize: boolean;
|
|
15
|
+
borderBottomStyle: boolean;
|
|
16
|
+
borderImage: boolean;
|
|
17
|
+
borderLeftStyle: boolean;
|
|
18
|
+
borderRightStyle: boolean;
|
|
19
|
+
borderTopStyle: boolean;
|
|
20
|
+
boxSizing: boolean;
|
|
21
|
+
caretColor: boolean;
|
|
22
|
+
clipPath: boolean;
|
|
23
|
+
contain: boolean;
|
|
24
|
+
containerType: boolean;
|
|
25
|
+
content: boolean;
|
|
26
|
+
cursor: boolean;
|
|
27
|
+
float: boolean;
|
|
28
|
+
mask: boolean;
|
|
29
|
+
maskBorder: boolean;
|
|
30
|
+
maskBorderMode: boolean;
|
|
31
|
+
maskBorderOutset: boolean;
|
|
32
|
+
maskBorderRepeat: boolean;
|
|
33
|
+
maskBorderSlice: boolean;
|
|
34
|
+
maskBorderSource: boolean;
|
|
35
|
+
maskBorderWidth: boolean;
|
|
36
|
+
maskClip: boolean;
|
|
37
|
+
maskComposite: boolean;
|
|
38
|
+
maskImage: boolean;
|
|
39
|
+
maskMode: boolean;
|
|
40
|
+
maskOrigin: boolean;
|
|
41
|
+
maskPosition: boolean;
|
|
42
|
+
maskRepeat: boolean;
|
|
43
|
+
maskSize: boolean;
|
|
44
|
+
maskType: boolean;
|
|
45
|
+
mixBlendMode: boolean;
|
|
46
|
+
objectFit: boolean;
|
|
47
|
+
objectPosition: boolean;
|
|
48
|
+
outlineOffset: boolean;
|
|
49
|
+
outlineStyle: boolean;
|
|
50
|
+
outlineWidth: boolean;
|
|
51
|
+
outlineColor: boolean;
|
|
52
|
+
overflowBlock: boolean;
|
|
53
|
+
overflowInline: boolean;
|
|
54
|
+
overflowX: boolean;
|
|
55
|
+
overflowY: boolean;
|
|
56
|
+
pointerEvents: boolean;
|
|
57
|
+
scrollbarWidth: boolean;
|
|
58
|
+
textEmphasis: boolean;
|
|
59
|
+
touchAction: boolean;
|
|
60
|
+
transformStyle: boolean;
|
|
61
|
+
userSelect: boolean;
|
|
62
|
+
willChange: boolean;
|
|
63
|
+
};
|
|
64
|
+
export declare const webOnlyStylePropsText: {
|
|
65
|
+
whiteSpace: boolean;
|
|
66
|
+
wordWrap: boolean;
|
|
67
|
+
textOverflow: boolean;
|
|
68
|
+
textDecorationDistance: boolean;
|
|
69
|
+
cursor: boolean;
|
|
70
|
+
WebkitLineClamp: boolean;
|
|
71
|
+
WebkitBoxOrient: boolean;
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=webOnlyStyleProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webOnlyStyleProps.d.ts","sourceRoot":"","sources":["../src/webOnlyStyleProps.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEjC,CAAA;AAED,eAAO,MAAM,qBAAqB;;;;;;;;CAQjC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
type Combined<A, B> = A & B;
|
|
2
|
-
export declare const withStaticProperties: <A extends Function, B
|
|
2
|
+
export declare const withStaticProperties: <A extends Function, B extends Record<string, any>>(component: A, staticProps: B) => Combined<A, B>;
|
|
3
3
|
export {};
|
|
4
4
|
//# sourceMappingURL=withStaticProperties.d.ts.map
|