@tamagui/helpers 2.7.7 → 3.0.0-beta.643.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 +16 -19
- package/dist/cjs/clamp.native.cjs +30 -0
- package/dist/cjs/clamp.native.js +17 -19
- package/dist/cjs/clamp.native.js.map +1 -1
- package/dist/cjs/composeEventHandlers.cjs +26 -32
- package/dist/cjs/composeEventHandlers.native.cjs +43 -0
- package/dist/cjs/composeEventHandlers.native.js +28 -34
- package/dist/cjs/composeEventHandlers.native.js.map +1 -1
- package/dist/cjs/index.cjs +13 -11
- package/dist/cjs/index.native.cjs +31 -0
- package/dist/cjs/index.native.js +13 -10
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/reservedThemeProps.cjs +43 -0
- package/dist/cjs/reservedThemeProps.native.cjs +45 -0
- package/dist/cjs/reservedThemeProps.native.js +47 -0
- package/dist/cjs/reservedThemeProps.native.js.map +1 -0
- package/dist/cjs/shouldRenderNativePlatform.cjs +38 -37
- package/dist/cjs/shouldRenderNativePlatform.native.cjs +71 -0
- package/dist/cjs/shouldRenderNativePlatform.native.js +55 -59
- package/dist/cjs/shouldRenderNativePlatform.native.js.map +1 -1
- package/dist/cjs/themeClassNames.cjs +39 -0
- package/dist/cjs/themeClassNames.native.cjs +42 -0
- package/dist/cjs/themeClassNames.native.js +44 -0
- package/dist/cjs/themeClassNames.native.js.map +1 -0
- package/dist/cjs/tokenCategories.cjs +79 -0
- package/dist/cjs/tokenCategories.native.cjs +80 -0
- package/dist/cjs/tokenCategories.native.js +82 -0
- package/dist/cjs/tokenCategories.native.js.map +1 -0
- package/dist/cjs/types.cjs +19 -20
- package/dist/cjs/types.native.cjs +37 -0
- package/dist/cjs/types.native.js +19 -19
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/validStyleProps.cjs +240 -297
- package/dist/cjs/validStyleProps.native.cjs +277 -0
- package/dist/cjs/validStyleProps.native.js +236 -290
- package/dist/cjs/validStyleProps.native.js.map +1 -1
- package/dist/cjs/webOnlyStyleProps.cjs +85 -86
- package/dist/cjs/webOnlyStyleProps.native.cjs +106 -0
- package/dist/cjs/webOnlyStyleProps.native.js +85 -85
- package/dist/cjs/webOnlyStyleProps.native.js.map +1 -1
- package/dist/cjs/withStaticProperties.cjs +25 -30
- package/dist/cjs/withStaticProperties.native.cjs +38 -0
- package/dist/cjs/withStaticProperties.native.js +26 -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 +14 -17
- 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 +22 -0
- package/dist/esm/reservedThemeProps.mjs.map +1 -0
- package/dist/esm/reservedThemeProps.native.js +22 -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 +18 -0
- package/dist/esm/themeClassNames.mjs.map +1 -0
- package/dist/esm/themeClassNames.native.js +19 -0
- package/dist/esm/themeClassNames.native.js.map +1 -0
- package/dist/esm/tokenCategories.mjs +58 -0
- package/dist/esm/tokenCategories.mjs.map +1 -0
- package/dist/esm/tokenCategories.native.js +57 -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 +218 -272
- package/dist/esm/validStyleProps.mjs.map +1 -1
- package/dist/esm/validStyleProps.native.js +214 -266
- package/dist/esm/validStyleProps.native.js.map +1 -1
- package/dist/esm/webOnlyStyleProps.mjs +68 -67
- package/dist/esm/webOnlyStyleProps.mjs.map +1 -1
- package/dist/esm/webOnlyStyleProps.native.js +68 -67
- 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 +13 -4
- package/src/composeEventHandlers.ts +6 -10
- package/src/index.ts +3 -0
- package/src/reservedThemeProps.ts +29 -0
- package/src/themeClassNames.ts +28 -0
- package/src/tokenCategories.ts +67 -0
- package/src/validStyleProps.ts +37 -79
- package/src/webOnlyStyleProps.ts +6 -3
- 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 +12 -0
- package/types/reservedThemeProps.d.ts.map +1 -0
- package/types/themeClassNames.d.ts +11 -0
- package/types/themeClassNames.d.ts.map +1 -0
- package/types/tokenCategories.d.ts +58 -0
- package/types/tokenCategories.d.ts.map +1 -0
- package/types/validStyleProps.d.ts +535 -560
- package/types/validStyleProps.d.ts.map +1 -1
- package/types/webOnlyStyleProps.d.ts +31 -29
- 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
package/src/validStyleProps.ts
CHANGED
|
@@ -5,6 +5,9 @@ import {
|
|
|
5
5
|
webOnlyStylePropsText,
|
|
6
6
|
webOnlyStylePropsView,
|
|
7
7
|
} from './webOnlyStyleProps'
|
|
8
|
+
import { tokenCategories } from './tokenCategories'
|
|
9
|
+
|
|
10
|
+
export { tokenCategories } from './tokenCategories'
|
|
8
11
|
|
|
9
12
|
// generally organizing this so we don't duplicate things so its a bit weird
|
|
10
13
|
|
|
@@ -40,64 +43,16 @@ const textColors = {
|
|
|
40
43
|
textShadowColor: true,
|
|
41
44
|
}
|
|
42
45
|
|
|
43
|
-
//
|
|
44
|
-
//
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
// logical
|
|
54
|
-
borderStartStartRadius: true,
|
|
55
|
-
borderStartEndRadius: true,
|
|
56
|
-
borderEndStartRadius: true,
|
|
57
|
-
borderEndEndRadius: true,
|
|
58
|
-
},
|
|
59
|
-
size: {
|
|
60
|
-
width: true,
|
|
61
|
-
height: true,
|
|
62
|
-
minWidth: true,
|
|
63
|
-
minHeight: true,
|
|
64
|
-
maxWidth: true,
|
|
65
|
-
maxHeight: true,
|
|
66
|
-
blockSize: true,
|
|
67
|
-
minBlockSize: true,
|
|
68
|
-
maxBlockSize: true,
|
|
69
|
-
inlineSize: true,
|
|
70
|
-
minInlineSize: true,
|
|
71
|
-
maxInlineSize: true,
|
|
72
|
-
},
|
|
73
|
-
zIndex: {
|
|
74
|
-
zIndex: true,
|
|
75
|
-
},
|
|
76
|
-
color: {
|
|
77
|
-
backgroundColor: true,
|
|
78
|
-
borderColor: true,
|
|
79
|
-
borderBlockStartColor: true,
|
|
80
|
-
borderBlockEndColor: true,
|
|
81
|
-
borderBlockColor: true,
|
|
82
|
-
borderBottomColor: true,
|
|
83
|
-
borderInlineColor: true,
|
|
84
|
-
borderInlineStartColor: true,
|
|
85
|
-
borderInlineEndColor: true,
|
|
86
|
-
borderTopColor: true,
|
|
87
|
-
borderLeftColor: true,
|
|
88
|
-
borderRightColor: true,
|
|
89
|
-
borderEndColor: true,
|
|
90
|
-
borderStartColor: true,
|
|
91
|
-
shadowColor: true,
|
|
92
|
-
...textColors,
|
|
93
|
-
// outlineColor is supported on RN 0.77+ (New Architecture)
|
|
94
|
-
outlineColor: true,
|
|
95
|
-
// caretColor is web-only
|
|
96
|
-
...(process.env.TAMAGUI_TARGET === 'web' && {
|
|
97
|
-
caretColor: true,
|
|
98
|
-
}),
|
|
99
|
-
},
|
|
100
|
-
}
|
|
46
|
+
// tokenCategories.color is a VALUE-binding table (which props resolve color
|
|
47
|
+
// tokens); three of its members are text-only PROPS, so the View host's
|
|
48
|
+
// validity table must not inherit them — `color` on a View resolves on
|
|
49
|
+
// neither platform (RN has no View color; a web div would only inherit it)
|
|
50
|
+
const {
|
|
51
|
+
color: _textOnlyColor,
|
|
52
|
+
textDecorationColor: _textOnlyDecoration,
|
|
53
|
+
textShadowColor: _textOnlyShadow,
|
|
54
|
+
...viewColorCategoryProps
|
|
55
|
+
} = tokenCategories.color
|
|
101
56
|
|
|
102
57
|
// discrete (non-animatable) view style properties - keyword-based, no interpolation
|
|
103
58
|
// defined above stylePropsView so it can be spread in without duplication
|
|
@@ -125,7 +80,14 @@ const nonAnimatableViewProps = {
|
|
|
125
80
|
mixBlendMode: true,
|
|
126
81
|
outlineStyle: true,
|
|
127
82
|
overflow: true,
|
|
83
|
+
// a style on both platforms: CSS pointer-events on web, style.pointerEvents
|
|
84
|
+
// on RN (>= 0.71) — the deprecated View prop spelling is
|
|
85
|
+
// not used, so flat clause values evaluate through the program engine
|
|
86
|
+
pointerEvents: true,
|
|
128
87
|
position: true,
|
|
88
|
+
// visibility: native maps "hidden" -> opacity:0 + pointerEvents:none via expandStyle;
|
|
89
|
+
// on web passes through as CSS visibility (visible | hidden | collapse).
|
|
90
|
+
visibility: true,
|
|
129
91
|
}
|
|
130
92
|
|
|
131
93
|
// discrete (non-animatable) font properties
|
|
@@ -142,6 +104,9 @@ const nonAnimatableTextOnlyProps = {
|
|
|
142
104
|
textDecorationLine: true,
|
|
143
105
|
textDecorationStyle: true,
|
|
144
106
|
userSelect: true,
|
|
107
|
+
// react native carries text direction as a style, and it inherits: the DOM
|
|
108
|
+
// `dir` attribute lowers to it (expandStyle maps it to `direction` on web)
|
|
109
|
+
writingDirection: true,
|
|
145
110
|
}
|
|
146
111
|
|
|
147
112
|
// discrete (non-animatable) unitless properties
|
|
@@ -221,8 +186,6 @@ export const stylePropsTransform = {
|
|
|
221
186
|
|
|
222
187
|
export const stylePropsView = {
|
|
223
188
|
...nonAnimatableViewProps,
|
|
224
|
-
borderBottomEndRadius: true,
|
|
225
|
-
borderBottomStartRadius: true,
|
|
226
189
|
borderBottomWidth: true,
|
|
227
190
|
borderLeftWidth: true,
|
|
228
191
|
borderRightWidth: true,
|
|
@@ -232,8 +195,6 @@ export const stylePropsView = {
|
|
|
232
195
|
borderInlineWidth: true,
|
|
233
196
|
borderInlineEndWidth: true,
|
|
234
197
|
borderInlineStartWidth: true,
|
|
235
|
-
borderTopEndRadius: true,
|
|
236
|
-
borderTopStartRadius: true,
|
|
237
198
|
borderTopWidth: true,
|
|
238
199
|
borderWidth: true,
|
|
239
200
|
transform: true,
|
|
@@ -266,6 +227,7 @@ export const stylePropsView = {
|
|
|
266
227
|
paddingBottom: true,
|
|
267
228
|
paddingInline: true,
|
|
268
229
|
paddingBlock: true,
|
|
230
|
+
paddingBlockEnd: true,
|
|
269
231
|
paddingBlockStart: true,
|
|
270
232
|
paddingInlineEnd: true,
|
|
271
233
|
paddingInlineStart: true,
|
|
@@ -287,8 +249,7 @@ export const stylePropsView = {
|
|
|
287
249
|
insetInlineEnd: true,
|
|
288
250
|
insetInlineStart: true,
|
|
289
251
|
shadowOffset: true,
|
|
290
|
-
|
|
291
|
-
...tokenCategories.color,
|
|
252
|
+
...viewColorCategoryProps,
|
|
292
253
|
...tokenCategories.radius,
|
|
293
254
|
...tokenCategories.size,
|
|
294
255
|
...stylePropsTransform,
|
|
@@ -297,7 +258,15 @@ export const stylePropsView = {
|
|
|
297
258
|
|
|
298
259
|
boxShadow: true,
|
|
299
260
|
border: true,
|
|
261
|
+
// logical shorthands: the border family splits them into CSS logical
|
|
262
|
+
// longhands on web; native evaluation diagnoses and drops them (RN has no
|
|
263
|
+
// logical border properties)
|
|
264
|
+
borderBlock: true,
|
|
265
|
+
borderInline: true,
|
|
300
266
|
filter: true,
|
|
267
|
+
// the v6 bg shorthand maps here; native lowers single color values to
|
|
268
|
+
// backgroundColor and drops url()/gradient/multi-part values it can't express
|
|
269
|
+
background: true,
|
|
301
270
|
// RN 0.76+ supports linear-gradient via backgroundImage
|
|
302
271
|
backgroundImage: true,
|
|
303
272
|
// the actual RN 0.76+ prop name (backgroundImage expands to this on native)
|
|
@@ -327,6 +296,10 @@ export const stylePropsTextOnly = {
|
|
|
327
296
|
textShadow: true,
|
|
328
297
|
textShadowOffset: true,
|
|
329
298
|
textShadowRadius: true,
|
|
299
|
+
// resetting composites: the family splits turn these into per-longhand
|
|
300
|
+
// programs, which RN supports individually
|
|
301
|
+
textDecoration: true,
|
|
302
|
+
font: true,
|
|
330
303
|
verticalAlign: true,
|
|
331
304
|
|
|
332
305
|
// web-only text props - tree-shaken on native
|
|
@@ -340,19 +313,4 @@ export const stylePropsText = {
|
|
|
340
313
|
|
|
341
314
|
export const stylePropsAll = stylePropsText
|
|
342
315
|
|
|
343
|
-
export const validPseudoKeys = {
|
|
344
|
-
enterStyle: true,
|
|
345
|
-
exitStyle: true,
|
|
346
|
-
hoverStyle: true,
|
|
347
|
-
pressStyle: true,
|
|
348
|
-
focusStyle: true,
|
|
349
|
-
disabledStyle: true,
|
|
350
|
-
focusWithinStyle: true,
|
|
351
|
-
|
|
352
|
-
// allow some web only ones
|
|
353
|
-
...(process.env.TAMAGUI_TARGET === 'web' && {
|
|
354
|
-
focusVisibleStyle: true,
|
|
355
|
-
}),
|
|
356
|
-
}
|
|
357
|
-
|
|
358
316
|
export const validStyles = stylePropsView
|
package/src/webOnlyStyleProps.ts
CHANGED
|
@@ -16,6 +16,7 @@ export const nonAnimatableWebViewProps = {
|
|
|
16
16
|
borderTopStyle: true,
|
|
17
17
|
contain: true,
|
|
18
18
|
containerType: true,
|
|
19
|
+
containerName: true,
|
|
19
20
|
content: true,
|
|
20
21
|
float: true,
|
|
21
22
|
maskBorderMode: true,
|
|
@@ -31,8 +32,6 @@ export const nonAnimatableWebViewProps = {
|
|
|
31
32
|
overflowInline: true,
|
|
32
33
|
overflowX: true,
|
|
33
34
|
overflowY: true,
|
|
34
|
-
// NOTE: pointerEvents is NOT web-only - it's a core React Native View prop (not a style)
|
|
35
|
-
pointerEvents: true,
|
|
36
35
|
scrollbarWidth: true,
|
|
37
36
|
textWrap: true,
|
|
38
37
|
touchAction: true,
|
|
@@ -53,7 +52,6 @@ export const webOnlyStylePropsView = {
|
|
|
53
52
|
transition: true,
|
|
54
53
|
backdropFilter: true,
|
|
55
54
|
WebkitBackdropFilter: true,
|
|
56
|
-
background: true,
|
|
57
55
|
borderTop: true,
|
|
58
56
|
borderRight: true,
|
|
59
57
|
borderBottom: true,
|
|
@@ -75,6 +73,11 @@ export const webOnlyStylePropsView = {
|
|
|
75
73
|
objectPosition: true,
|
|
76
74
|
textEmphasis: true,
|
|
77
75
|
userSelect: true,
|
|
76
|
+
// real style keys, not DOM attributes: without these an authored value falls
|
|
77
|
+
// through to viewProps and reaches the element as an unknown attribute
|
|
78
|
+
overflowWrap: true,
|
|
79
|
+
wordWrap: true,
|
|
80
|
+
resize: true,
|
|
78
81
|
}
|
|
79
82
|
|
|
80
83
|
export const webOnlyStylePropsText = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeEventHandlers.d.ts","sourceRoot":"","sources":["../src/composeEventHandlers.ts"],"names":[],"mappings":"AAAA,KAAK,MAAM,GAAG,MAAM,CAAA;AAEpB,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;AAE/D,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,EACnD,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,EAC3B,IAAI,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,EAC7B,EAAE,qBAA4B,EAAE;;CAAK,+
|
|
1
|
+
{"version":3,"file":"composeEventHandlers.d.ts","sourceRoot":"","sources":["../src/composeEventHandlers.ts"],"names":[],"mappings":"AAAA,KAAK,MAAM,GAAG,MAAM,CAAA;AAEpB,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;AAE/D,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,EACnD,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,EAC3B,IAAI,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,EAC7B,EAAE,qBAA4B,EAAE;;CAAK,+BAgBtC"}
|
package/types/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export * from '@tamagui/simple-hash';
|
|
2
2
|
export * from './clamp';
|
|
3
|
+
export * from './reservedThemeProps';
|
|
4
|
+
export * from './themeClassNames';
|
|
3
5
|
export * from './composeEventHandlers';
|
|
4
6
|
export * from './types';
|
|
5
7
|
export * from './shouldRenderNativePlatform';
|
|
8
|
+
export * from './tokenCategories';
|
|
6
9
|
export * from './validStyleProps';
|
|
7
10
|
export * from './withStaticProperties';
|
|
8
11
|
export * from './webOnlyStyleProps';
|
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;AACtC,cAAc,qBAAqB,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,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,SAAS,CAAA;AACvB,cAAc,8BAA8B,CAAA;AAC5C,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The props `<Theme>` owns. Every other prop on it is read as a theme key, so
|
|
3
|
+
* these names can't be used as theme keys or config variables. development
|
|
4
|
+
* builds report a collision instead of silently dropping the value.
|
|
5
|
+
*
|
|
6
|
+
* It lives here, in a side-effect-free package, because the compiler classifies
|
|
7
|
+
* static `<Theme>` props with the same table the runtime uses. One table, so a
|
|
8
|
+
* new reserved prop can never mean one thing at build time and another at
|
|
9
|
+
* runtime.
|
|
10
|
+
*/
|
|
11
|
+
export declare const reservedThemeProps: Record<string, true>;
|
|
12
|
+
//# sourceMappingURL=reservedThemeProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reservedThemeProps.d.ts","sourceRoot":"","sources":["../src/reservedThemeProps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAkBnD,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The theme classes a `<Theme>` span carries for a resolved theme name.
|
|
3
|
+
*
|
|
4
|
+
* Every level of a compound name gets its own class so CSS variables inherit
|
|
5
|
+
* through the whole chain ("red_surface1" is `t_red t_red_surface1`). The zero
|
|
6
|
+
* compiler emits these directly, so this has to be the only implementation:
|
|
7
|
+
* a compiled span that spells its classes differently would resolve different
|
|
8
|
+
* variables than the runtime does for the same authored tree.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getThemeClassNames(name: string, isRoot?: boolean): string;
|
|
11
|
+
//# sourceMappingURL=themeClassNames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themeClassNames.d.ts","sourceRoot":"","sources":["../src/themeClassNames.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,MAAM,CAgBvE"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare const tokenCategories: {
|
|
2
|
+
radius: {
|
|
3
|
+
borderRadius: boolean;
|
|
4
|
+
borderTopLeftRadius: boolean;
|
|
5
|
+
borderTopRightRadius: boolean;
|
|
6
|
+
borderBottomLeftRadius: boolean;
|
|
7
|
+
borderBottomRightRadius: boolean;
|
|
8
|
+
borderTopStartRadius: boolean;
|
|
9
|
+
borderTopEndRadius: boolean;
|
|
10
|
+
borderBottomStartRadius: boolean;
|
|
11
|
+
borderBottomEndRadius: boolean;
|
|
12
|
+
borderStartStartRadius: boolean;
|
|
13
|
+
borderStartEndRadius: boolean;
|
|
14
|
+
borderEndStartRadius: boolean;
|
|
15
|
+
borderEndEndRadius: boolean;
|
|
16
|
+
};
|
|
17
|
+
size: {
|
|
18
|
+
width: boolean;
|
|
19
|
+
height: boolean;
|
|
20
|
+
minWidth: boolean;
|
|
21
|
+
minHeight: boolean;
|
|
22
|
+
maxWidth: boolean;
|
|
23
|
+
maxHeight: boolean;
|
|
24
|
+
blockSize: boolean;
|
|
25
|
+
minBlockSize: boolean;
|
|
26
|
+
maxBlockSize: boolean;
|
|
27
|
+
inlineSize: boolean;
|
|
28
|
+
minInlineSize: boolean;
|
|
29
|
+
maxInlineSize: boolean;
|
|
30
|
+
shadowRadius: boolean;
|
|
31
|
+
};
|
|
32
|
+
zIndex: {
|
|
33
|
+
zIndex: boolean;
|
|
34
|
+
};
|
|
35
|
+
color: {
|
|
36
|
+
backgroundColor: boolean;
|
|
37
|
+
borderColor: boolean;
|
|
38
|
+
borderBlockStartColor: boolean;
|
|
39
|
+
borderBlockEndColor: boolean;
|
|
40
|
+
borderBlockColor: boolean;
|
|
41
|
+
borderBottomColor: boolean;
|
|
42
|
+
borderInlineColor: boolean;
|
|
43
|
+
borderInlineStartColor: boolean;
|
|
44
|
+
borderInlineEndColor: boolean;
|
|
45
|
+
borderTopColor: boolean;
|
|
46
|
+
borderLeftColor: boolean;
|
|
47
|
+
borderRightColor: boolean;
|
|
48
|
+
borderEndColor: boolean;
|
|
49
|
+
borderStartColor: boolean;
|
|
50
|
+
shadowColor: boolean;
|
|
51
|
+
color: boolean;
|
|
52
|
+
textDecorationColor: boolean;
|
|
53
|
+
textShadowColor: boolean;
|
|
54
|
+
outlineColor: boolean;
|
|
55
|
+
caretColor?: boolean | undefined;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=tokenCategories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokenCategories.d.ts","sourceRoot":"","sources":["../src/tokenCategories.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;;QAExB,YAAY;QACZ,mBAAmB;QACnB,oBAAoB;QACpB,sBAAsB;QACtB,uBAAuB;QACvB,oBAAoB;QACpB,kBAAkB;QAClB,uBAAuB;QACvB,qBAAqB;QAGrB,sBAAsB;QACtB,oBAAoB;QACpB,oBAAoB;QACpB,kBAAkB;;;QAGlB,KAAK;QACL,MAAM;QACN,QAAQ;QACR,SAAS;QACT,QAAQ;QACR,SAAS;QACT,SAAS;QACT,YAAY;QACZ,YAAY;QACZ,UAAU;QACV,aAAa;QACb,aAAa;QACb,YAAY;;;QAGZ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;CA4BT,CAAA"}
|