@tamagui/helpers 3.0.0-beta.924.1 → 3.0.0

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.
Files changed (50) hide show
  1. package/dist/cjs/composeEventHandlers.native.cjs +1 -5
  2. package/dist/cjs/composeEventHandlers.native.js +1 -5
  3. package/dist/cjs/composeEventHandlers.native.js.map +1 -1
  4. package/dist/cjs/cssStyleProps.cjs +396 -0
  5. package/dist/cjs/cssStyleProps.native.cjs +398 -0
  6. package/dist/cjs/cssStyleProps.native.js +400 -0
  7. package/dist/cjs/cssStyleProps.native.js.map +1 -0
  8. package/dist/cjs/themeClassNames.cjs +19 -13
  9. package/dist/cjs/themeClassNames.native.cjs +37 -14
  10. package/dist/cjs/themeClassNames.native.js +37 -14
  11. package/dist/cjs/themeClassNames.native.js.map +1 -1
  12. package/dist/cjs/validStyleProps.cjs +14 -9
  13. package/dist/cjs/validStyleProps.native.cjs +16 -10
  14. package/dist/cjs/validStyleProps.native.js +16 -10
  15. package/dist/cjs/validStyleProps.native.js.map +1 -1
  16. package/dist/cjs/webOnlyStyleProps.cjs +4 -4
  17. package/dist/cjs/webOnlyStyleProps.native.cjs +4 -4
  18. package/dist/cjs/webOnlyStyleProps.native.js +4 -4
  19. package/dist/cjs/webOnlyStyleProps.native.js.map +1 -1
  20. package/dist/esm/composeEventHandlers.native.js +1 -5
  21. package/dist/esm/composeEventHandlers.native.js.map +1 -1
  22. package/dist/esm/cssStyleProps.mjs +373 -0
  23. package/dist/esm/cssStyleProps.mjs.map +1 -0
  24. package/dist/esm/cssStyleProps.native.js +373 -0
  25. package/dist/esm/cssStyleProps.native.js.map +1 -0
  26. package/dist/esm/themeClassNames.mjs +16 -13
  27. package/dist/esm/themeClassNames.mjs.map +1 -1
  28. package/dist/esm/themeClassNames.native.js +34 -14
  29. package/dist/esm/themeClassNames.native.js.map +1 -1
  30. package/dist/esm/validStyleProps.mjs +15 -9
  31. package/dist/esm/validStyleProps.mjs.map +1 -1
  32. package/dist/esm/validStyleProps.native.js +14 -9
  33. package/dist/esm/validStyleProps.native.js.map +1 -1
  34. package/dist/esm/webOnlyStyleProps.mjs +4 -4
  35. package/dist/esm/webOnlyStyleProps.mjs.map +1 -1
  36. package/dist/esm/webOnlyStyleProps.native.js +4 -4
  37. package/dist/esm/webOnlyStyleProps.native.js.map +1 -1
  38. package/package.json +8 -6
  39. package/src/cssStyleProps.ts +373 -0
  40. package/src/themeClassNames.ts +22 -24
  41. package/src/validStyleProps.ts +70 -23
  42. package/src/webOnlyStyleProps.ts +5 -5
  43. package/types/cssStyleProps.d.ts +371 -0
  44. package/types/cssStyleProps.d.ts.map +1 -0
  45. package/types/themeClassNames.d.ts +2 -10
  46. package/types/themeClassNames.d.ts.map +1 -1
  47. package/types/validStyleProps.d.ts +1766 -30
  48. package/types/validStyleProps.d.ts.map +1 -1
  49. package/types/webOnlyStyleProps.d.ts +12 -0
  50. package/types/webOnlyStyleProps.d.ts.map +1 -1
@@ -1,4 +1,5 @@
1
1
  import { isAndroid } from '@tamagui/constants'
2
+ import { cssStyleProps, cssStylePropsUnitless } from './cssStyleProps'
2
3
  import {
3
4
  nonAnimatableWebTextProps,
4
5
  nonAnimatableWebViewProps,
@@ -12,56 +13,67 @@ export const cssShorthandLonghands = toObj(
12
13
  'borderWidth borderStyle borderColor borderTopWidth borderTopStyle borderTopColor borderRightWidth borderRightStyle borderRightColor borderBottomWidth borderBottomStyle borderBottomColor borderLeftWidth borderLeftStyle borderLeftColor outlineWidth outlineStyle outlineColor outlineOffset'
13
14
  )
14
15
 
15
- const textColors = toObj('color textDecorationColor textShadowColor')
16
+ const cssTextColors = toObj('color textDecorationColor')
17
+ const textColors = toObj(cssTextColors, 'textShadowColor')
16
18
 
17
19
  const inputColors = toObj(
18
20
  'placeholderTextColor selectionColor cursorColor selectionHandleColor'
19
21
  )
20
22
 
21
23
  const nonAnimatableViewProps = toObj(
22
- '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'
24
+ 'alignContent alignItems alignSelf backfaceVisibility borderCurve borderStyle boxSizing cursor direction display flexDirection flexWrap isolation justifyContent mixBlendMode outlineStyle overflow pointerEvents position visibility'
23
25
  )
24
26
 
25
27
  const nonAnimatableFontProps = toObj('fontFamily fontStyle fontVariant textTransform')
26
28
 
27
- const nonAnimatableTextOnlyProps = toObj(
28
- 'textAlign textDecorationLine textDecorationStyle userSelect writingDirection'
29
+ const cssTextAlignmentProps = toObj(
30
+ 'textAlign textDecorationLine textDecorationStyle userSelect'
29
31
  )
30
32
 
31
- const nonAnimatableUnitlessProps = toObj(
32
- 'WebkitLineClamp lineClamp gridTemplateColumns gridTemplateAreas'
33
+ const nonAnimatableTextOnlyProps = toObj(cssTextAlignmentProps, 'writingDirection')
34
+
35
+ const nonAnimatableUnitlessProps = toObj('WebkitLineClamp lineClamp')
36
+
37
+ const webOnlyUnitlessProps = toObj(
38
+ 'animationIterationCount borderImageOutset borderImageSlice borderImageWidth columnCount flexOrder flexPositive flexNegative order orphans tabSize widows zoom scaleZ'
33
39
  )
34
40
 
41
+ /**
42
+ * CSS Grid layout props. Web-only by default — Yoga (React Native's layout
43
+ * engine) has no stable CSS Grid support (see facebook/yoga#1865).
44
+ *
45
+ * To enable on native with an experimental Yoga build, set the
46
+ * `TAMAGUI_CSS_GRID` environment variable to `"1"`.
47
+ */
48
+ const cssGridProps = toObj(
49
+ 'gridTemplateColumns gridTemplateAreas gridRow gridRowEnd gridRowGap gridRowStart gridColumn gridColumnEnd gridColumnGap gridColumnStart'
50
+ )
51
+
52
+ const enableCSSGrid =
53
+ process.env.TAMAGUI_TARGET === 'web' || process.env.TAMAGUI_CSS_GRID === '1'
54
+
35
55
  export const nonAnimatableStyleProps = toObj(
36
56
  nonAnimatableViewProps,
37
57
  nonAnimatableFontProps,
38
58
  nonAnimatableTextOnlyProps,
39
- nonAnimatableUnitlessProps,
59
+ process.env.TAMAGUI_TARGET === 'web' ? nonAnimatableUnitlessProps : undefined,
60
+ enableCSSGrid ? cssGridProps : undefined,
40
61
  process.env.TAMAGUI_TARGET === 'web' ? nonAnimatableWebViewProps : undefined,
41
62
  process.env.TAMAGUI_TARGET === 'web' ? nonAnimatableWebTextProps : undefined
42
63
  )
43
64
 
44
65
  export const stylePropsUnitless = toObj(
45
- nonAnimatableUnitlessProps,
46
- '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 zIndex zoom scale scaleX scaleY scaleZ shadowOpacity'
66
+ process.env.TAMAGUI_TARGET === 'web' ? cssStylePropsUnitless : undefined,
67
+ process.env.TAMAGUI_TARGET === 'web' ? nonAnimatableUnitlessProps : undefined,
68
+ process.env.TAMAGUI_TARGET === 'web' ? webOnlyUnitlessProps : undefined,
69
+ enableCSSGrid ? cssGridProps : undefined,
70
+ 'aspectRatio flex flexGrow flexShrink fontWeight opacity zIndex scale scaleX scaleY shadowOpacity'
47
71
  )
48
72
 
49
73
  export const stylePropsTransform = toObj(
50
74
  'x y scale perspective scaleX scaleY skewX skewY matrix rotate rotateY rotateX rotateZ'
51
75
  )
52
76
 
53
- export const stylePropsView = toObj(
54
- nonAnimatableViewProps,
55
- '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',
56
- process.env.TAMAGUI_TARGET === 'web' ? 'caretColor' : undefined,
57
- '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',
58
- stylePropsTransform,
59
- stylePropsUnitless,
60
- isAndroid ? { elevationAndroid: true } : undefined,
61
- 'boxShadow border borderBlock borderInline filter background backgroundImage experimental_backgroundImage outline outlineOffset outlineWidth',
62
- process.env.TAMAGUI_TARGET === 'web' ? webOnlyStylePropsView : undefined
63
- )
64
-
65
77
  const stylePropsFont = toObj(
66
78
  nonAnimatableFontProps,
67
79
  'fontSize fontWeight letterSpacing lineHeight'
@@ -71,14 +83,49 @@ export const stylePropsTextOnly = toObj(
71
83
  stylePropsFont,
72
84
  nonAnimatableTextOnlyProps,
73
85
  textColors,
74
- 'textShadow textShadowOffset textShadowRadius textDecoration font verticalAlign',
86
+ 'textShadow textShadowOffset textShadowRadius textDecoration verticalAlign',
87
+ process.env.TAMAGUI_TARGET === 'web' ? 'font' : undefined,
75
88
  process.env.TAMAGUI_TARGET === 'web' ? webOnlyStylePropsText : undefined
76
89
  )
77
90
 
91
+ export const stylePropsView = toObj(
92
+ nonAnimatableViewProps,
93
+ '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',
94
+ process.env.TAMAGUI_TARGET === 'web' ? 'caretColor' : undefined,
95
+ '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',
96
+ stylePropsTransform,
97
+ stylePropsUnitless,
98
+ isAndroid ? { elevationAndroid: true } : undefined,
99
+ 'boxShadow border borderBlock borderInline filter background backgroundImage experimental_backgroundImage outline outlineOffset outlineWidth',
100
+ // svg paint: react-native-svg reads these from style, as css does
101
+ 'fill stroke strokeWidth',
102
+ process.env.TAMAGUI_TARGET === 'web' ? webOnlyStylePropsView : undefined,
103
+ process.env.TAMAGUI_TARGET === 'web' ? cssStyleProps : undefined,
104
+ process.env.TAMAGUI_TARGET === 'web'
105
+ ? toObj(
106
+ stylePropsFont,
107
+ cssTextColors,
108
+ cssTextAlignmentProps,
109
+ nonAnimatableWebTextProps,
110
+ 'textShadow textDecoration verticalAlign font'
111
+ )
112
+ : undefined
113
+ )
114
+
78
115
  export const stylePropsText = toObj(stylePropsView, stylePropsTextOnly)
79
116
 
80
117
  export const stylePropsInput = toObj(stylePropsText, inputColors)
81
118
 
82
- export const stylePropsAll = stylePropsInput
119
+ // native recognizes css names so unsupported styles cannot become host props.
120
+ export const stylePropsAll = toObj(
121
+ stylePropsInput,
122
+ cssStyleProps,
123
+ cssGridProps,
124
+ webOnlyStylePropsView,
125
+ nonAnimatableWebTextProps,
126
+ 'font',
127
+ nonAnimatableUnitlessProps,
128
+ webOnlyUnitlessProps
129
+ )
83
130
 
84
131
  export const validStyles = stylePropsView
@@ -2,20 +2,20 @@
2
2
 
3
3
  import { toStylePropsObject as toObj } from './toStylePropsObject'
4
4
 
5
- export const nonAnimatableWebViewProps = toObj(
6
- 'backgroundAttachment backgroundBlendMode backgroundClip backgroundOrigin backgroundRepeat borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle contain containerType containerName content float maskBorderMode maskBorderRepeat maskClip maskComposite maskMode maskOrigin maskRepeat maskType objectFit overflowBlock overflowInline overflowX overflowY scrollbarWidth textWrap touchAction transformStyle willChange'
5
+ export const nonAnimatableWebViewProps = /* @__PURE__ */ toObj(
6
+ 'backgroundAttachment backgroundBlendMode backgroundClip backgroundOrigin backgroundRepeat borderBlockStyle borderBlockEndStyle borderBlockStartStyle borderInlineStyle borderInlineEndStyle borderInlineStartStyle borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle contain containerType containerName content float maskBorderMode maskBorderRepeat maskClip maskComposite maskMode maskOrigin maskRepeat maskType objectFit overflowBlock overflowInline overflowX overflowY scrollbarWidth textWrap touchAction transformStyle willChange'
7
7
  )
8
8
 
9
- export const nonAnimatableWebTextProps = toObj(
9
+ export const nonAnimatableWebTextProps = /* @__PURE__ */ toObj(
10
10
  'whiteSpace wordWrap textOverflow WebkitBoxOrient'
11
11
  )
12
12
 
13
- export const webOnlyStylePropsView = toObj(
13
+ export const webOnlyStylePropsView = /* @__PURE__ */ toObj(
14
14
  nonAnimatableWebViewProps,
15
15
  'transition transitionProperty transitionDuration transitionTimingFunction transitionDelay transitionBehavior backdropFilter WebkitBackdropFilter borderTop borderRight borderBottom borderLeft backgroundPosition backgroundSize borderImage caretColor clipPath mask maskBorder maskBorderOutset maskBorderSlice maskBorderSource maskBorderWidth maskImage maskPosition maskSize objectPosition textEmphasis userSelect overflowWrap wordWrap resize'
16
16
  )
17
17
 
18
- export const webOnlyStylePropsText = toObj(
18
+ export const webOnlyStylePropsText = /* @__PURE__ */ toObj(
19
19
  nonAnimatableWebTextProps,
20
20
  'textDecorationDistance WebkitLineClamp'
21
21
  )
@@ -0,0 +1,371 @@
1
+ export declare const cssStyleProps: {
2
+ readonly accentColor: true;
3
+ readonly alignmentBaseline: true;
4
+ readonly alignTracks: true;
5
+ readonly all: true;
6
+ readonly anchorName: true;
7
+ readonly anchorScope: true;
8
+ readonly animation: true;
9
+ readonly animationComposition: true;
10
+ readonly animationDelay: true;
11
+ readonly animationDirection: true;
12
+ readonly animationDuration: true;
13
+ readonly animationFillMode: true;
14
+ readonly animationName: true;
15
+ readonly animationPlayState: true;
16
+ readonly animationRange: true;
17
+ readonly animationRangeEnd: true;
18
+ readonly animationRangeStart: true;
19
+ readonly animationTimeline: true;
20
+ readonly animationTimingFunction: true;
21
+ readonly appearance: true;
22
+ readonly backgroundPositionX: true;
23
+ readonly backgroundPositionY: true;
24
+ readonly baselineShift: true;
25
+ readonly borderBlockEnd: true;
26
+ readonly borderBlockStart: true;
27
+ readonly borderCollapse: true;
28
+ readonly borderImageRepeat: true;
29
+ readonly borderImageSource: true;
30
+ readonly borderInlineEnd: true;
31
+ readonly borderInlineStart: true;
32
+ readonly borderSpacing: true;
33
+ readonly boxAlign: true;
34
+ readonly boxDecorationBreak: true;
35
+ readonly boxDirection: true;
36
+ readonly boxFlex: true;
37
+ readonly boxFlexGroup: true;
38
+ readonly boxLines: true;
39
+ readonly boxOrdinalGroup: true;
40
+ readonly boxOrient: true;
41
+ readonly boxPack: true;
42
+ readonly breakAfter: true;
43
+ readonly breakBefore: true;
44
+ readonly breakInside: true;
45
+ readonly captionSide: true;
46
+ readonly caret: true;
47
+ readonly caretShape: true;
48
+ readonly clear: true;
49
+ readonly clip: true;
50
+ readonly clipRule: true;
51
+ readonly colorAdjust: true;
52
+ readonly colorInterpolation: true;
53
+ readonly colorInterpolationFilters: true;
54
+ readonly colorRendering: true;
55
+ readonly colorScheme: true;
56
+ readonly columnFill: true;
57
+ readonly columnRule: true;
58
+ readonly columnRuleColor: true;
59
+ readonly columnRuleStyle: true;
60
+ readonly columnRuleWidth: true;
61
+ readonly columns: true;
62
+ readonly columnSpan: true;
63
+ readonly columnWidth: true;
64
+ readonly container: true;
65
+ readonly containIntrinsicBlockSize: true;
66
+ readonly containIntrinsicHeight: true;
67
+ readonly containIntrinsicInlineSize: true;
68
+ readonly containIntrinsicSize: true;
69
+ readonly containIntrinsicWidth: true;
70
+ readonly contentVisibility: true;
71
+ readonly counterIncrement: true;
72
+ readonly counterReset: true;
73
+ readonly counterSet: true;
74
+ readonly cx: true;
75
+ readonly cy: true;
76
+ readonly d: true;
77
+ readonly dominantBaseline: true;
78
+ readonly emptyCells: true;
79
+ readonly fieldSizing: true;
80
+ readonly fill: true;
81
+ readonly fillOpacity: true;
82
+ readonly fillRule: true;
83
+ readonly flexFlow: true;
84
+ readonly floodColor: true;
85
+ readonly floodOpacity: true;
86
+ readonly fontFeatureSettings: true;
87
+ readonly fontKerning: true;
88
+ readonly fontLanguageOverride: true;
89
+ readonly fontOpticalSizing: true;
90
+ readonly fontPalette: true;
91
+ readonly fontSizeAdjust: true;
92
+ readonly fontSmooth: true;
93
+ readonly fontStretch: true;
94
+ readonly fontSynthesis: true;
95
+ readonly fontSynthesisPosition: true;
96
+ readonly fontSynthesisSmallCaps: true;
97
+ readonly fontSynthesisStyle: true;
98
+ readonly fontSynthesisWeight: true;
99
+ readonly fontVariantAlternates: true;
100
+ readonly fontVariantCaps: true;
101
+ readonly fontVariantEastAsian: true;
102
+ readonly fontVariantEmoji: true;
103
+ readonly fontVariantLigatures: true;
104
+ readonly fontVariantNumeric: true;
105
+ readonly fontVariantPosition: true;
106
+ readonly fontVariationSettings: true;
107
+ readonly fontWidth: true;
108
+ readonly forcedColorAdjust: true;
109
+ readonly glyphOrientationVertical: true;
110
+ readonly grid: true;
111
+ readonly gridArea: true;
112
+ readonly gridAutoColumns: true;
113
+ readonly gridAutoFlow: true;
114
+ readonly gridAutoRows: true;
115
+ readonly gridGap: true;
116
+ readonly gridTemplate: true;
117
+ readonly gridTemplateRows: true;
118
+ readonly hangingPunctuation: true;
119
+ readonly hyphenateCharacter: true;
120
+ readonly hyphenateLimitChars: true;
121
+ readonly hyphens: true;
122
+ readonly imageOrientation: true;
123
+ readonly imageRendering: true;
124
+ readonly imageResolution: true;
125
+ readonly imeMode: true;
126
+ readonly initialLetter: true;
127
+ readonly initialLetterAlign: true;
128
+ readonly insetArea: true;
129
+ readonly interpolateSize: true;
130
+ readonly justifyItems: true;
131
+ readonly justifySelf: true;
132
+ readonly justifyTracks: true;
133
+ readonly KhtmlBoxAlign: true;
134
+ readonly KhtmlBoxDirection: true;
135
+ readonly KhtmlBoxFlex: true;
136
+ readonly KhtmlBoxFlexGroup: true;
137
+ readonly KhtmlBoxLines: true;
138
+ readonly KhtmlBoxOrdinalGroup: true;
139
+ readonly KhtmlBoxOrient: true;
140
+ readonly KhtmlBoxPack: true;
141
+ readonly KhtmlLineBreak: true;
142
+ readonly KhtmlOpacity: true;
143
+ readonly KhtmlUserSelect: true;
144
+ readonly lightingColor: true;
145
+ readonly lineBreak: true;
146
+ readonly lineHeightStep: true;
147
+ readonly listStyle: true;
148
+ readonly listStyleImage: true;
149
+ readonly listStylePosition: true;
150
+ readonly listStyleType: true;
151
+ readonly marginTrim: true;
152
+ readonly marker: true;
153
+ readonly markerEnd: true;
154
+ readonly markerMid: true;
155
+ readonly markerStart: true;
156
+ readonly masonryAutoFlow: true;
157
+ readonly mathDepth: true;
158
+ readonly mathShift: true;
159
+ readonly mathStyle: true;
160
+ readonly maxLines: true;
161
+ readonly motion: true;
162
+ readonly motionDistance: true;
163
+ readonly motionPath: true;
164
+ readonly motionRotation: true;
165
+ readonly OAnimation: true;
166
+ readonly OAnimationDelay: true;
167
+ readonly OAnimationDirection: true;
168
+ readonly OAnimationDuration: true;
169
+ readonly OAnimationFillMode: true;
170
+ readonly OAnimationIterationCount: true;
171
+ readonly OAnimationName: true;
172
+ readonly OAnimationPlayState: true;
173
+ readonly OAnimationTimingFunction: true;
174
+ readonly OBackgroundSize: true;
175
+ readonly objectViewBox: true;
176
+ readonly OBorderImage: true;
177
+ readonly offset: true;
178
+ readonly offsetAnchor: true;
179
+ readonly offsetBlock: true;
180
+ readonly offsetBlockEnd: true;
181
+ readonly offsetBlockStart: true;
182
+ readonly offsetDistance: true;
183
+ readonly offsetInline: true;
184
+ readonly offsetInlineEnd: true;
185
+ readonly offsetInlineStart: true;
186
+ readonly offsetPath: true;
187
+ readonly offsetPosition: true;
188
+ readonly offsetRotate: true;
189
+ readonly offsetRotation: true;
190
+ readonly OObjectFit: true;
191
+ readonly OObjectPosition: true;
192
+ readonly OTabSize: true;
193
+ readonly OTextOverflow: true;
194
+ readonly OTransform: true;
195
+ readonly OTransformOrigin: true;
196
+ readonly OTransition: true;
197
+ readonly OTransitionDelay: true;
198
+ readonly OTransitionDuration: true;
199
+ readonly OTransitionProperty: true;
200
+ readonly OTransitionTimingFunction: true;
201
+ readonly overflowAnchor: true;
202
+ readonly overflowClipBox: true;
203
+ readonly overflowClipMargin: true;
204
+ readonly overlay: true;
205
+ readonly overscrollBehavior: true;
206
+ readonly overscrollBehaviorBlock: true;
207
+ readonly overscrollBehaviorInline: true;
208
+ readonly overscrollBehaviorX: true;
209
+ readonly overscrollBehaviorY: true;
210
+ readonly page: true;
211
+ readonly pageBreakAfter: true;
212
+ readonly pageBreakBefore: true;
213
+ readonly pageBreakInside: true;
214
+ readonly paintOrder: true;
215
+ readonly perspectiveOrigin: true;
216
+ readonly placeContent: true;
217
+ readonly placeItems: true;
218
+ readonly placeSelf: true;
219
+ readonly positionAnchor: true;
220
+ readonly positionArea: true;
221
+ readonly positionTry: true;
222
+ readonly positionTryFallbacks: true;
223
+ readonly positionTryOptions: true;
224
+ readonly positionTryOrder: true;
225
+ readonly positionVisibility: true;
226
+ readonly printColorAdjust: true;
227
+ readonly quotes: true;
228
+ readonly r: true;
229
+ readonly rubyAlign: true;
230
+ readonly rubyMerge: true;
231
+ readonly rubyOverhang: true;
232
+ readonly rubyPosition: true;
233
+ readonly rx: true;
234
+ readonly ry: true;
235
+ readonly scrollbarColor: true;
236
+ readonly scrollbarGutter: true;
237
+ readonly scrollBehavior: true;
238
+ readonly scrollInitialTarget: true;
239
+ readonly scrollMargin: true;
240
+ readonly scrollMarginBlock: true;
241
+ readonly scrollMarginBlockEnd: true;
242
+ readonly scrollMarginBlockStart: true;
243
+ readonly scrollMarginBottom: true;
244
+ readonly scrollMarginInline: true;
245
+ readonly scrollMarginInlineEnd: true;
246
+ readonly scrollMarginInlineStart: true;
247
+ readonly scrollMarginLeft: true;
248
+ readonly scrollMarginRight: true;
249
+ readonly scrollMarginTop: true;
250
+ readonly scrollPadding: true;
251
+ readonly scrollPaddingBlock: true;
252
+ readonly scrollPaddingBlockEnd: true;
253
+ readonly scrollPaddingBlockStart: true;
254
+ readonly scrollPaddingBottom: true;
255
+ readonly scrollPaddingInline: true;
256
+ readonly scrollPaddingInlineEnd: true;
257
+ readonly scrollPaddingInlineStart: true;
258
+ readonly scrollPaddingLeft: true;
259
+ readonly scrollPaddingRight: true;
260
+ readonly scrollPaddingTop: true;
261
+ readonly scrollSnapAlign: true;
262
+ readonly scrollSnapCoordinate: true;
263
+ readonly scrollSnapDestination: true;
264
+ readonly scrollSnapMargin: true;
265
+ readonly scrollSnapMarginBottom: true;
266
+ readonly scrollSnapMarginLeft: true;
267
+ readonly scrollSnapMarginRight: true;
268
+ readonly scrollSnapMarginTop: true;
269
+ readonly scrollSnapPointsX: true;
270
+ readonly scrollSnapPointsY: true;
271
+ readonly scrollSnapStop: true;
272
+ readonly scrollSnapType: true;
273
+ readonly scrollSnapTypeX: true;
274
+ readonly scrollSnapTypeY: true;
275
+ readonly scrollTimeline: true;
276
+ readonly scrollTimelineAxis: true;
277
+ readonly scrollTimelineName: true;
278
+ readonly shapeImageThreshold: true;
279
+ readonly shapeMargin: true;
280
+ readonly shapeOutside: true;
281
+ readonly shapeRendering: true;
282
+ readonly speakAs: true;
283
+ readonly stopColor: true;
284
+ readonly stopOpacity: true;
285
+ readonly stroke: true;
286
+ readonly strokeColor: true;
287
+ readonly strokeDasharray: true;
288
+ readonly strokeDashoffset: true;
289
+ readonly strokeLinecap: true;
290
+ readonly strokeLinejoin: true;
291
+ readonly strokeMiterlimit: true;
292
+ readonly strokeOpacity: true;
293
+ readonly strokeWidth: true;
294
+ readonly tableLayout: true;
295
+ readonly textAlignLast: true;
296
+ readonly textAnchor: true;
297
+ readonly textAutospace: true;
298
+ readonly textBox: true;
299
+ readonly textBoxEdge: true;
300
+ readonly textBoxTrim: true;
301
+ readonly textCombineUpright: true;
302
+ readonly textDecorationSkip: true;
303
+ readonly textDecorationSkipInk: true;
304
+ readonly textDecorationThickness: true;
305
+ readonly textEmphasisColor: true;
306
+ readonly textEmphasisPosition: true;
307
+ readonly textEmphasisStyle: true;
308
+ readonly textIndent: true;
309
+ readonly textJustify: true;
310
+ readonly textOrientation: true;
311
+ readonly textRendering: true;
312
+ readonly textSizeAdjust: true;
313
+ readonly textSpacingTrim: true;
314
+ readonly textUnderlineOffset: true;
315
+ readonly textUnderlinePosition: true;
316
+ readonly textWrapMode: true;
317
+ readonly textWrapStyle: true;
318
+ readonly timelineScope: true;
319
+ readonly transformBox: true;
320
+ readonly translate: true;
321
+ readonly unicodeBidi: true;
322
+ readonly vectorEffect: true;
323
+ readonly viewTimeline: true;
324
+ readonly viewTimelineAxis: true;
325
+ readonly viewTimelineInset: true;
326
+ readonly viewTimelineName: true;
327
+ readonly viewTransitionClass: true;
328
+ readonly viewTransitionName: true;
329
+ readonly whiteSpaceCollapse: true;
330
+ readonly wordBreak: true;
331
+ readonly wordSpacing: true;
332
+ readonly writingMode: true;
333
+ };
334
+ export declare const cssStylePropsUnitless: {
335
+ readonly animation: true;
336
+ readonly borderImage: true;
337
+ readonly boxFlex: true;
338
+ readonly boxFlexGroup: true;
339
+ readonly boxOrdinalGroup: true;
340
+ readonly columns: true;
341
+ readonly fillOpacity: true;
342
+ readonly floodOpacity: true;
343
+ readonly fontSizeAdjust: true;
344
+ readonly glyphOrientationVertical: true;
345
+ readonly gridArea: true;
346
+ readonly hyphenateLimitChars: true;
347
+ readonly initialLetter: true;
348
+ readonly KhtmlBoxFlex: true;
349
+ readonly KhtmlBoxFlexGroup: true;
350
+ readonly KhtmlBoxOrdinalGroup: true;
351
+ readonly KhtmlOpacity: true;
352
+ readonly lineHeight: true;
353
+ readonly maskBorder: true;
354
+ readonly maskBorderOutset: true;
355
+ readonly maskBorderSlice: true;
356
+ readonly maskBorderWidth: true;
357
+ readonly mathDepth: true;
358
+ readonly maxLines: true;
359
+ readonly OAnimation: true;
360
+ readonly OAnimationIterationCount: true;
361
+ readonly OBorderImage: true;
362
+ readonly OTabSize: true;
363
+ readonly shapeImageThreshold: true;
364
+ readonly stopOpacity: true;
365
+ readonly strokeDasharray: true;
366
+ readonly strokeDashoffset: true;
367
+ readonly strokeMiterlimit: true;
368
+ readonly strokeOpacity: true;
369
+ readonly strokeWidth: true;
370
+ };
371
+ //# sourceMappingURL=cssStyleProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cssStyleProps.d.ts","sourceRoot":"","sources":["../src/cssStyleProps.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;aACxB,WAAW;aACX,iBAAiB;aACjB,WAAW;aACX,GAAG;aACH,UAAU;aACV,WAAW;aACX,SAAS;aACT,oBAAoB;aACpB,cAAc;aACd,kBAAkB;aAClB,iBAAiB;aAC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,cAAc;aACd,eAAe;aACf,mBAAmB;aACnB,qBAAqB;aACrB,YAAY;aACZ,aAAa;aACb,aAAa;aACb,YAAY;aACZ,SAAS;aACT,WAAW;aACX,YAAY;aACZ,YAAY;aACZ,gBAAgB;aAChB,iBAAiB;aACjB,gBAAgB;aAChB,mBAAmB;aACnB,kBAAkB;aAClB,kBAAkB;aAClB,SAAS;aACT,WAAW;aACX,WAAW;CACH,CAAA;AAEV,eAAO,MAAM,qBAAqB;aAChC,SAAS;aACT,WAAW;aACX,OAAO;aACP,YAAY;aACZ,eAAe;aACf,OAAO;aACP,WAAW;aACX,YAAY;aACZ,cAAc;aACd,wBAAwB;aACxB,QAAQ;aACR,mBAAmB;aACnB,aAAa;aACb,YAAY;aACZ,iBAAiB;aACjB,oBAAoB;aACpB,YAAY;aACZ,UAAU;aACV,UAAU;aACV,gBAAgB;aAChB,eAAe;aACf,eAAe;aACf,SAAS;aACT,QAAQ;aACR,UAAU;aACV,wBAAwB;aACxB,YAAY;aACZ,QAAQ;aACR,mBAAmB;aACnB,WAAW;aACX,eAAe;aACf,gBAAgB;aAChB,gBAAgB;aAChB,aAAa;aACb,WAAW;CACH,CAAA"}
@@ -1,11 +1,3 @@
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;
1
+ export declare function getThemeScheme(name: string): 'light' | 'dark' | undefined;
2
+ export declare function getThemeClassNames(name: string, isRoot?: boolean, schemeAuthored?: boolean): string;
11
3
  //# sourceMappingURL=themeClassNames.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"themeClassNames.d.ts","sourceRoot":"","sources":["../src/themeClassNames.ts"],"names":[],"mappings":"AAEA,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAEzE;AAID,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,OAAO,EAChB,cAAc,CAAC,EAAE,OAAO,GACvB,MAAM,CAaR"}