@stylexjs/stylex 0.2.0-beta.20 → 0.2.0-beta.22

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 (34) hide show
  1. package/README.md +80 -43
  2. package/lib/StyleXCSSTypes.d.ts +396 -9
  3. package/lib/StyleXCSSTypes.js +1 -1
  4. package/lib/StyleXCSSTypes.js.flow +397 -391
  5. package/lib/StyleXSheet.js +18 -19
  6. package/lib/StyleXTypes.d.ts +134 -146
  7. package/lib/StyleXTypes.js +1 -1
  8. package/lib/StyleXTypes.js.flow +134 -101
  9. package/lib/native/CSSCustomPropertyValue.d.ts +14 -2
  10. package/lib/native/CSSCustomPropertyValue.js +12 -10
  11. package/lib/native/CSSCustomPropertyValue.js.flow +14 -2
  12. package/lib/native/CSSLengthUnitValue.d.ts +2 -6
  13. package/lib/native/CSSLengthUnitValue.js +14 -8
  14. package/lib/native/CSSLengthUnitValue.js.flow +3 -6
  15. package/lib/native/CSSMediaQuery.js +4 -4
  16. package/lib/native/SpreadOptions.d.ts +19 -0
  17. package/lib/native/SpreadOptions.js +1 -0
  18. package/lib/native/SpreadOptions.js.flow +19 -0
  19. package/lib/native/__tests__/__snapshots__/stylex-css-var-test.js.snap +48 -0
  20. package/lib/native/__tests__/__snapshots__/stylex-test.js.snap +27 -0
  21. package/lib/native/__tests__/parseTimeValue-test.js +3 -3
  22. package/lib/native/__tests__/stylex-css-var-test.js +148 -0
  23. package/lib/native/__tests__/stylex-test.js +311 -286
  24. package/lib/native/fixContentBox.js +10 -6
  25. package/lib/native/flattenStyle.js +1 -1
  26. package/lib/native/parseShadow.js +4 -4
  27. package/lib/native/parseTimeValue.js +4 -4
  28. package/lib/native/stylex.d.ts +18 -18
  29. package/lib/native/stylex.js +149 -112
  30. package/lib/native/stylex.js.flow +23 -16
  31. package/lib/stylex.d.ts +31 -22
  32. package/lib/stylex.js +81 -59
  33. package/lib/stylex.js.flow +32 -27
  34. package/package.json +2 -2
package/README.md CHANGED
@@ -1,10 +1,12 @@
1
1
  # @stylexjs/stylex
2
2
 
3
- StyleX is a JavaScript library for defining styles for optimized user interfaces.
3
+ StyleX is a JavaScript library for defining styles for optimized user
4
+ interfaces.
4
5
 
5
6
  ## Installation
6
7
 
7
- To start playing with StyleX without having to set up any build settings you can install just two packages:
8
+ To start playing with StyleX without having to set up any build settings you can
9
+ install just two packages:
8
10
 
9
11
  ```sh
10
12
  npm install --save @stylexjs/stylex
@@ -12,13 +14,17 @@ npm install --save @stylexjs/stylex
12
14
 
13
15
  ### Compiler
14
16
 
15
- StyleX is designed to extract styles to a static CSS style sheet during an app's build process. StyleX provides a Babel plugin along with plugin integrations for Webpack, Rollup and NextJS.
17
+ StyleX is designed to extract styles to a static CSS style sheet during an app's
18
+ build process. StyleX provides a Babel plugin along with plugin integrations for
19
+ Webpack, Rollup and NextJS.
16
20
 
17
21
  ```sh
18
22
  npm install --save-dev @stylexjs/babel-plugin
19
23
  ```
20
24
 
21
- For more information on working with the compiler, please see the documentation for [`@stylexjs/babel-plugin`](https://www.npmjs.com/package/@stylexjs/babel-plugin).
25
+ For more information on working with the compiler, please see the documentation
26
+ for
27
+ [`@stylexjs/babel-plugin`](https://www.npmjs.com/package/@stylexjs/babel-plugin).
22
28
 
23
29
  ### Runtime compiler
24
30
 
@@ -43,13 +49,17 @@ if (process.env.NODE_ENV !== 'production') {
43
49
  }
44
50
  ```
45
51
 
46
- For more information on working with the compiler, please see the documentation for [`@stylexjs/dev-runtime`](https://www.npmjs.com/package/@stylexjs/dev-runtime).
52
+ For more information on working with the compiler, please see the documentation
53
+ for
54
+ [`@stylexjs/dev-runtime`](https://www.npmjs.com/package/@stylexjs/dev-runtime).
47
55
 
48
56
  ## API
49
57
 
50
58
  ### stylex.create()
51
59
 
52
- Styles are defined as a map of CSS rules using `stylex.create()`. In the example below, there are 2 different CSS rules. The names "root" and "highlighted" are arbitrary names given to the rules.
60
+ Styles are defined as a map of CSS rules using `stylex.create()`. In the example
61
+ below, there are 2 different CSS rules. The names "root" and "highlighted" are
62
+ arbitrary names given to the rules.
53
63
 
54
64
  ```tsx
55
65
  import stylex from '@stylexjs/stylex';
@@ -61,7 +71,7 @@ const styles = stylex.create({
61
71
  },
62
72
  highlighted: {
63
73
  color: 'yellow',
64
- }
74
+ },
65
75
  });
66
76
  ```
67
77
 
@@ -82,63 +92,74 @@ const styles = stylex.create({
82
92
  color: 'yellow',
83
93
  ':hover': {
84
94
  opacity: '0.9',
85
- }
86
- }
95
+ },
96
+ },
87
97
  });
88
98
  ```
89
99
 
90
- The compiler will extract the rules to CSS and replace the rules in the source code with a "compiled style" object.
100
+ The compiler will extract the rules to CSS and replace the rules in the source
101
+ code with a "compiled style" object.
91
102
 
92
- ### stylex.spread()
103
+ ### stylex.props()
93
104
 
94
- Applying style rules to specific elements is done using `stylex.spread`. Each argument to this function must be a reference to a compiled style object, or an array of compiled style objects. The function merges styles from left to right.
105
+ Applying style rules to specific elements is done using `stylex.props`. Each
106
+ argument to this function must be a reference to a compiled style object, or an
107
+ array of compiled style objects. The function merges styles from left to right.
95
108
 
96
109
  ```tsx
97
- <div {...stylex.spread(styles.root, styles.highlighted)} />
110
+ <div {...stylex.props(styles.root, styles.highlighted)} />
98
111
  ```
99
112
 
100
- The `stylex.spread` function returns React props as required to render an element. StyleX styles can still be passed to other components via props, but only the components rendering host platform elements will use `stylex.spread()`. For example:
113
+ The `stylex.props` function returns React props as required to render an
114
+ element. StyleX styles can still be passed to other components via props, but
115
+ only the components rendering host platform elements will use `stylex.props()`.
116
+ For example:
101
117
 
102
118
  ```tsx
103
119
  const styles = stylex.create({
104
120
  internalRoot: {
105
- padding: 10
121
+ padding: 10,
106
122
  },
107
123
  exportedRoot: {
108
- position: 'relative'
109
- }
124
+ position: 'relative',
125
+ },
110
126
  });
111
127
 
112
128
  function InternalComponent(props) {
113
- return <div {...props} {...stylex.spread([ styles.internalRoot, props.style ])} />
129
+ return (
130
+ <div {...props} {...stylex.props([styles.internalRoot, props.style])} />
131
+ );
114
132
  }
115
133
 
116
134
  export function ExportedComponent(props) {
117
- return <InternalComponent style={[ styles.exportedRoot, props.style ]} />
135
+ return <InternalComponent style={[styles.exportedRoot, props.style]} />;
118
136
  }
119
137
  ```
120
138
 
121
139
  Styles can be conditionally included using standard JavaScript.
122
140
 
123
141
  ```tsx
124
- <div {...stylex.spread(styles.root, isHighlighted && styles.highlighted)} />
142
+ <div {...stylex.props(styles.root, isHighlighted && styles.highlighted)} />
125
143
  ```
126
144
 
127
- And the local merging of styles can be used to control the relative priority of rules. For example, to allow a component's local styles to take priority over style property values passed in via props.
145
+ And the local merging of styles can be used to control the relative priority of
146
+ rules. For example, to allow a component's local styles to take priority over
147
+ style property values passed in via props.
128
148
 
129
149
  ```tsx
130
- <div {...stylex.spread(props.style, styles.root)} />
150
+ <div {...stylex.props(props.style, styles.root)} />
131
151
  ```
132
152
 
133
153
  You can even mix compiled styles with inline styles
134
154
 
135
155
  ```tsx
136
- <div {...stylex.spread(styles.root, { opacity })} />
156
+ <div {...stylex.props(styles.root, { opacity })} />
137
157
  ```
138
158
 
139
159
  ### stylex.firstThatWorks()
140
160
 
141
- Defining fallback styles is done with `stylex.firstThatWorks()`. This is useful for engines that may not support a specific style property.
161
+ Defining fallback styles is done with `stylex.firstThatWorks()`. This is useful
162
+ for engines that may not support a specific style property.
142
163
 
143
164
  ```tsx
144
165
  import stylex from '@stylexjs/stylex';
@@ -166,7 +187,8 @@ StyleX comes with full support for Static Types.
166
187
 
167
188
  ### `XStyle<>`
168
189
 
169
- The most common type you might need to use is `XStyle<>`. This lets you accept an object of arbitrary StyleX styles.
190
+ The most common type you might need to use is `XStyle<>`. This lets you accept
191
+ an object of arbitrary StyleX styles.
170
192
 
171
193
  ```tsx
172
194
  type Props = {
@@ -176,7 +198,7 @@ type Props = {
176
198
 
177
199
  function MyComponent({style, ...}: Props) {
178
200
  return (
179
- <div {...stylex.spread(localStyles.foo, localStyles.bar, style)} />
201
+ <div {...stylex.props(localStyles.foo, localStyles.bar, style)} />
180
202
  );
181
203
  }
182
204
  ```
@@ -189,34 +211,39 @@ To disallow specific style properties, use the `XStyleWithout<>` type.
189
211
  type Props = {
190
212
  // ...
191
213
  style?: XStyleWithout<{
192
- postion: unknown,
193
- display: unknown
194
- }>
214
+ postion: unknown;
215
+ display: unknown;
216
+ }>;
195
217
  };
196
218
  ```
197
219
 
198
220
  ### `XStyleValue<>`
199
221
 
200
- To accept specific style properties only, use the `XStyle<{...}>` and `XStyleValue` types. For example, to allow only color-related style props:
222
+ To accept specific style properties only, use the `XStyle<{...}>` and
223
+ `XStyleValue` types. For example, to allow only color-related style props:
201
224
 
202
225
  ```tsx
203
226
  type Props = {
204
227
  // ...
205
228
  style?: XStyle<{
206
- color?: StyleXValue,
207
- backgroundColor?: StyleXValue,
208
- borderColor?: StyleXValue,
209
- borderTopColor?: StyleXValue,
210
- borderEndColor?: StyleXValue,
211
- borderBottomColor?: StyleXValue,
212
- borderStartColor?: StyleXValue,
213
- }>,
229
+ color?: StyleXValue;
230
+ backgroundColor?: StyleXValue;
231
+ borderColor?: StyleXValue;
232
+ borderTopColor?: StyleXValue;
233
+ borderEndColor?: StyleXValue;
234
+ borderBottomColor?: StyleXValue;
235
+ borderStartColor?: StyleXValue;
236
+ }>;
214
237
  };
215
238
  ```
216
239
 
217
240
  ### `XStyleValueFor<>`
218
241
 
219
- To limit the possible values for style properties, use the `XStyleValueFor<>` type. Pass in a type argument with a union of literal types that provide the set of possible values that the style property can have. For example, if a component should accept `marginTop` but only accept one of `0`, `4`, or `8` pixels as values.
242
+ To limit the possible values for style properties, use the `XStyleValueFor<>`
243
+ type. Pass in a type argument with a union of literal types that provide the set
244
+ of possible values that the style property can have. For example, if a component
245
+ should accept `marginTop` but only accept one of `0`, `4`, or `8` pixels as
246
+ values.
220
247
 
221
248
  ```tsx
222
249
  type Props = {
@@ -229,7 +256,8 @@ type Props = {
229
256
 
230
257
  ## How StyleX works
231
258
 
232
- StyleX produces atomic styles, which means that each CSS rule contains only a single declaration and uses a unique class name. For example:
259
+ StyleX produces atomic styles, which means that each CSS rule contains only a
260
+ single declaration and uses a unique class name. For example:
233
261
 
234
262
  ```tsx
235
263
  import stylex from '@stylexjs/stylex';
@@ -242,6 +270,15 @@ const styles = stylex.create({
242
270
  }
243
271
  ```
244
272
 
245
- From this code, StyleX will generate 2 classes. One for the `width: '100%'` declaration, and one for the `color: 'red'` declaration. If you use the declaration `width: '100%'` anywhere else in your application, it will *reuse the same CSS class* rather than creating a new one.
246
-
247
- One of the benefits of this approach is that the generated CSS file grows *logarithmically* as you add new styled components to your app. As more style declarations are added to components, they are more likely to already be in use elsehwere in the app. As a result of this CSS optimization, the generated CSS style sheet for an app is usually small enough to be contained in a single file and used across routes, avoiding style recalculation and layout thrashing as users navigate through your app.
273
+ From this code, StyleX will generate 2 classes. One for the `width: '100%'`
274
+ declaration, and one for the `color: 'red'` declaration. If you use the
275
+ declaration `width: '100%'` anywhere else in your application, it will _reuse
276
+ the same CSS class_ rather than creating a new one.
277
+
278
+ One of the benefits of this approach is that the generated CSS file grows
279
+ _logarithmically_ as you add new styled components to your app. As more style
280
+ declarations are added to components, they are more likely to already be in use
281
+ elsehwere in the app. As a result of this CSS optimization, the generated CSS
282
+ style sheet for an app is usually small enough to be contained in a single file
283
+ and used across routes, avoiding style recalculation and layout thrashing as
284
+ users navigate through your app.
@@ -847,13 +847,400 @@ type svgWritingMode = 'lr-tb' | 'rl-tb' | 'tb-rl' | 'lr' | 'rl' | 'tb';
847
847
  type top = number | string;
848
848
  type OptionalArray<T> = Array<T> | T;
849
849
  export type SupportedVendorSpecificCSSProperties = Readonly<{
850
- MozOsxFontSmoothing?: 'grayscale';
851
- WebkitAppearance?: appearance;
852
- WebkitFontSmoothing?: 'antialiased';
853
- WebkitTapHighlightColor?: color;
850
+ MozOsxFontSmoothing?: null | 'grayscale';
851
+ WebkitAppearance?: null | appearance;
852
+ WebkitFontSmoothing?: null | 'antialiased';
853
+ WebkitTapHighlightColor?: null | color;
854
+ }>;
855
+ export type CSSProperties = Readonly<{
856
+ theme?: null | string;
857
+ MozOsxFontSmoothing?: null | 'grayscale';
858
+ WebkitAppearance?: null | appearance;
859
+ WebkitFontSmoothing?: null | 'antialiased';
860
+ WebkitTapHighlightColor?: null | color;
861
+ alignContent?: null | alignContent;
862
+ alignItems?: null | alignItems;
863
+ alignSelf?: null | alignSelf;
864
+ alignmentBaseline?: null | alignmentBaseline;
865
+ all?: null | all;
866
+ animationDelay?: null | OptionalArray<animationDelay>;
867
+ animationDirection?: null | OptionalArray<animationDirection>;
868
+ animationDuration?: null | OptionalArray<animationDuration>;
869
+ animationFillMode?: null | OptionalArray<animationFillMode>;
870
+ animationIterationCount?: null | OptionalArray<animationIterationCount>;
871
+ animationName?: null | OptionalArray<animationName>;
872
+ animationPlayState?: null | OptionalArray<animationPlayState>;
873
+ animationTimingFunction?: null | OptionalArray<animationTimingFunction>;
874
+ appearance?: null | appearance;
875
+ backdropFilter?: null | backdropFilter;
876
+ backfaceVisibility?: null | backfaceVisibility;
877
+ backgroundAttachment?: null | OptionalArray<backgroundAttachment>;
878
+ backgroundBlendMode?: null | OptionalArray<backgroundBlendMode>;
879
+ backgroundClip?: null | OptionalArray<backgroundClip>;
880
+ backgroundColor?: null | backgroundColor;
881
+ backgroundImage?: null | OptionalArray<backgroundImage>;
882
+ backgroundOrigin?: null | OptionalArray<backgroundOrigin>;
883
+ backgroundPosition?: null | OptionalArray<backgroundPosition>;
884
+ backgroundPositionX?: null | OptionalArray<backgroundPositionX>;
885
+ backgroundPositionY?: null | OptionalArray<backgroundPositionY>;
886
+ backgroundRepeat?: null | OptionalArray<backgroundRepeat>;
887
+ backgroundSize?: null | OptionalArray<backgroundSize>;
888
+ baselineShift?: null | baselineShift;
889
+ behavior?: null | behavior;
890
+ blockSize?: null | blockSize;
891
+ border?: null | border;
892
+ borderBlockEnd?: null | borderBlockEnd;
893
+ borderBlockEndColor?: null | borderBlockEndColor;
894
+ borderBlockEndStyle?: null | borderBlockEndStyle;
895
+ borderBlockEndWidth?: null | borderBlockEndWidth;
896
+ borderBlockStart?: null | borderBlockStart;
897
+ borderBlockStartColor?: null | borderBlockStartColor;
898
+ borderBlockStartStyle?: null | borderBlockStartStyle;
899
+ borderBlockStartWidth?: null | borderBlockStartWidth;
900
+ borderBottom?: null | border;
901
+ borderBottomColor?: null | color;
902
+ borderBottomEndRadius?: null | borderBottomRightRadius;
903
+ borderBottomLeftRadius?: null | borderBottomLeftRadius;
904
+ borderBottomRightRadius?: null | borderBottomRightRadius;
905
+ borderBottomStartRadius?: null | borderBottomLeftRadius;
906
+ borderBottomStyle?: null | borderBottomStyle;
907
+ borderBottomWidth?: null | borderBottomWidth;
908
+ borderCollapse?: null | borderCollapse;
909
+ borderColor?: null | borderColor;
910
+ borderEnd?: null | border;
911
+ borderEndColor?: null | borderRightColor;
912
+ borderEndStyle?: null | borderRightStyle;
913
+ borderEndWidth?: null | borderRightWidth;
914
+ borderImage?: null | borderImage;
915
+ borderImageOutset?: null | borderImageOutset;
916
+ borderImageRepeat?: null | borderImageRepeat;
917
+ borderImageSlice?: null | borderImageSlice;
918
+ borderImageSource?: null | borderImageSource;
919
+ borderImageWidth?: null | borderImageWidth;
920
+ borderInlineEnd?: null | borderInlineEnd;
921
+ borderInlineEndColor?: null | borderInlineEndColor;
922
+ borderInlineEndStyle?: null | borderInlineEndStyle;
923
+ borderInlineEndWidth?: null | borderInlineEndWidth;
924
+ borderInlineStart?: null | borderInlineStart;
925
+ borderInlineStartColor?: null | borderInlineStartColor;
926
+ borderInlineStartStyle?: null | borderInlineStartStyle;
927
+ borderInlineStartWidth?: null | borderInlineStartWidth;
928
+ borderLeft?: null | border;
929
+ borderLeftColor?: null | borderLeftColor;
930
+ borderLeftStyle?: null | borderLeftStyle;
931
+ borderLeftWidth?: null | borderLeftWidth;
932
+ borderRadius?: null | borderRadius;
933
+ borderRight?: null | border;
934
+ borderRightColor?: null | borderRightColor;
935
+ borderRightStyle?: null | borderRightStyle;
936
+ borderRightWidth?: null | borderRightWidth;
937
+ borderSpacing?: null | borderSpacing;
938
+ borderStart?: null | border;
939
+ borderStartColor?: null | borderLeftColor;
940
+ borderStartStyle?: null | borderLeftStyle;
941
+ borderStartWidth?: null | borderLeftWidth;
942
+ borderStyle?: null | borderStyle;
943
+ borderTop?: null | border;
944
+ borderTopColor?: null | color;
945
+ borderTopEndRadius?: null | borderTopRightRadius;
946
+ borderTopLeftRadius?: null | borderTopLeftRadius;
947
+ borderTopRightRadius?: null | borderTopRightRadius;
948
+ borderTopStartRadius?: null | borderTopLeftRadius;
949
+ borderTopStyle?: null | borderTopStyle;
950
+ borderTopWidth?: null | borderTopWidth;
951
+ borderWidth?: null | borderWidth;
952
+ bottom?: null | number | string;
953
+ boxAlign?: null | boxAlign;
954
+ boxDecorationBreak?: null | boxDecorationBreak;
955
+ boxDirection?: null | boxDirection;
956
+ boxFlex?: null | boxFlex;
957
+ boxFlexGroup?: null | boxFlexGroup;
958
+ boxLines?: null | boxLines;
959
+ boxOrdinalGroup?: null | boxOrdinalGroup;
960
+ boxOrient?: null | boxOrient;
961
+ boxShadow?: null | OptionalArray<boxShadow>;
962
+ boxSizing?: null | boxSizing;
963
+ boxSuppress?: null | boxSuppress;
964
+ breakAfter?: null | breakAfter;
965
+ breakBefore?: null | breakBefore;
966
+ breakInside?: null | breakInside;
967
+ captionSide?: null | captionSide;
968
+ clear?: null | clear;
969
+ clip?: null | clip;
970
+ clipPath?: null | clipPath;
971
+ clipRule?: null | clipRule;
972
+ color?: null | color;
973
+ columnCount?: null | columnCount;
974
+ columnFill?: null | columnFill;
975
+ columnGap?: null | columnGap;
976
+ columnRule?: null | columnRule;
977
+ columnRuleColor?: null | columnRuleColor;
978
+ columnRuleStyle?: null | columnRuleStyle;
979
+ columnRuleWidth?: null | columnRuleWidth;
980
+ columnSpan?: null | columnSpan;
981
+ columnWidth?: null | columnWidth;
982
+ columns?: null | columns;
983
+ contain?: null | contain;
984
+ content?: null | content;
985
+ counterIncrement?: null | counterIncrement;
986
+ counterReset?: null | counterReset;
987
+ cue?: null | cue;
988
+ cueAfter?: null | cueAfter;
989
+ cueBefore?: null | cueBefore;
990
+ cursor?: null | OptionalArray<cursor>;
991
+ direction?: null | direction;
992
+ display?: null | display;
993
+ displayInside?: null | displayInside;
994
+ displayList?: null | displayList;
995
+ displayOutside?: null | displayOutside;
996
+ dominantBaseline?: null | dominantBaseline;
997
+ emptyCells?: null | emptyCells;
998
+ end?: null | number | string;
999
+ fill?: null | fill;
1000
+ fillOpacity?: null | fillOpacity;
1001
+ fillRule?: null | fillRule;
1002
+ filter?: null | filter;
1003
+ flex?: null | flex;
1004
+ flexBasis?: null | flexBasis;
1005
+ flexDirection?: null | flexDirection;
1006
+ flexFlow?: null | flexFlow;
1007
+ flexGrow?: null | flexGrow;
1008
+ flexShrink?: null | flexShrink;
1009
+ flexWrap?: null | flexWrap;
1010
+ float?: null | float;
1011
+ fontFamily?: null | fontFamily;
1012
+ fontFeatureSettings?: null | fontFeatureSettings;
1013
+ fontKerning?: null | fontKerning;
1014
+ fontLanguageOverride?: null | fontLanguageOverride;
1015
+ fontSize?: null | fontSize;
1016
+ fontSizeAdjust?: null | fontSizeAdjust;
1017
+ fontStretch?: null | fontStretch;
1018
+ fontStyle?: null | fontStyle;
1019
+ fontSynthesis?: null | fontSynthesis;
1020
+ fontVariant?: null | fontVariant;
1021
+ fontVariantAlternates?: null | fontVariantAlternates;
1022
+ fontVariantCaps?: null | fontVariantCaps;
1023
+ fontVariantEastAsian?: null | fontVariantEastAsian;
1024
+ fontVariantLigatures?: null | fontVariantLigatures;
1025
+ fontVariantNumeric?: null | fontVariantNumeric;
1026
+ fontVariantPosition?: null | fontVariantPosition;
1027
+ fontWeight?: null | fontWeight;
1028
+ gap?: null | gap;
1029
+ glyphOrientationHorizontal?: null | glyphOrientationHorizontal;
1030
+ glyphOrientationVertical?: null | glyphOrientationVertical;
1031
+ grid?: null | grid;
1032
+ gridArea?: null | gridArea;
1033
+ gridAutoColumns?: null | gridAutoColumns;
1034
+ gridAutoFlow?: null | gridAutoFlow;
1035
+ gridAutoRows?: null | gridAutoRows;
1036
+ gridColumn?: null | gridColumn;
1037
+ gridColumnEnd?: null | gridColumnEnd;
1038
+ gridColumnGap?: null | gridColumnGap;
1039
+ gridColumnStart?: null | gridColumnStart;
1040
+ gridGap?: null | gridGap;
1041
+ gridRow?: null | gridRow;
1042
+ gridRowEnd?: null | gridRowEnd;
1043
+ gridRowGap?: null | gridRowGap;
1044
+ gridRowStart?: null | gridRowStart;
1045
+ gridTemplate?: null | gridTemplate;
1046
+ gridTemplateAreas?: null | gridTemplateAreas;
1047
+ gridTemplateColumns?: null | gridTemplateColumns;
1048
+ gridTemplateRows?: null | gridTemplateRows;
1049
+ height?: null | number | string;
1050
+ hyphens?: null | hyphens;
1051
+ imageOrientation?: null | imageOrientation;
1052
+ imageRendering?: null | imageRendering;
1053
+ imageResolution?: null | imageResolution;
1054
+ imeMode?: null | imeMode;
1055
+ initialLetter?: null | initialLetter;
1056
+ initialLetterAlign?: null | initialLetterAlign;
1057
+ inlineSize?: null | inlineSize;
1058
+ isolation?: null | isolation;
1059
+ justifyContent?: null | justifyContent;
1060
+ justifyItems?: null | justifyItems;
1061
+ justifySelf?: null | justifySelf;
1062
+ kerning?: null | kerning;
1063
+ left?: null | number | string;
1064
+ letterSpacing?: null | letterSpacing;
1065
+ lineBreak?: null | lineBreak;
1066
+ lineHeight?: null | lineHeight;
1067
+ listStyle?: null | listStyle;
1068
+ listStyleImage?: null | listStyleImage;
1069
+ listStylePosition?: null | listStylePosition;
1070
+ listStyleType?: null | listStyleType;
1071
+ margin?: null | margin;
1072
+ marginBlockEnd?: null | marginBlockEnd;
1073
+ marginBlockStart?: null | marginBlockStart;
1074
+ marginBottom?: null | marginBottom;
1075
+ marginEnd?: null | marginRight;
1076
+ marginHorizontal?: null | marginLeft;
1077
+ marginInlineEnd?: null | marginInlineEnd;
1078
+ marginInlineStart?: null | marginInlineStart;
1079
+ marginLeft?: null | marginLeft;
1080
+ marginRight?: null | marginRight;
1081
+ marginStart?: null | marginLeft;
1082
+ marginTop?: null | marginTop;
1083
+ marginVertical?: null | marginTop;
1084
+ marker?: null | marker;
1085
+ markerEnd?: null | markerEnd;
1086
+ markerMid?: null | markerMid;
1087
+ markerOffset?: null | markerOffset;
1088
+ markerStart?: null | markerStart;
1089
+ mask?: null | mask;
1090
+ maskClip?: null | maskClip;
1091
+ maskComposite?: null | maskComposite;
1092
+ maskImage?: null | maskImage;
1093
+ maskMode?: null | maskMode;
1094
+ maskOrigin?: null | maskOrigin;
1095
+ maskPosition?: null | maskPosition;
1096
+ maskRepeat?: null | maskRepeat;
1097
+ maskSize?: null | maskSize;
1098
+ maskType?: null | maskType;
1099
+ maxBlockSize?: null | maxBlockSize;
1100
+ maxHeight?: null | maxHeight;
1101
+ maxInlineSize?: null | maxInlineSize;
1102
+ maxWidth?: null | maxWidth;
1103
+ minBlockSize?: null | minBlockSize;
1104
+ minHeight?: null | minHeight;
1105
+ minInlineSize?: null | minInlineSize;
1106
+ minWidth?: null | minWidth;
1107
+ mixBlendMode?: null | mixBlendMode;
1108
+ motion?: null | motion;
1109
+ motionOffset?: null | motionOffset;
1110
+ motionPath?: null | motionPath;
1111
+ motionRotation?: null | motionRotation;
1112
+ MsOverflowStyle?: null | MsOverflowStyle;
1113
+ objectFit?: null | objectFit;
1114
+ objectPosition?: null | objectPosition;
1115
+ offsetBlockEnd?: null | offsetBlockEnd;
1116
+ offsetBlockStart?: null | offsetBlockStart;
1117
+ offsetInlineEnd?: null | offsetInlineEnd;
1118
+ offsetInlineStart?: null | offsetInlineStart;
1119
+ opacity?: null | opacity;
1120
+ order?: null | order;
1121
+ orphans?: null | orphans;
1122
+ outline?: null | outline;
1123
+ outlineColor?: null | outlineColor;
1124
+ outlineOffset?: null | outlineOffset;
1125
+ outlineStyle?: null | outlineStyle;
1126
+ outlineWidth?: null | outlineWidth;
1127
+ overflow?: null | overflow;
1128
+ overflowAnchor?: null | overflowAnchor;
1129
+ overflowClipBox?: null | overflowClipBox;
1130
+ overflowWrap?: null | overflowWrap;
1131
+ overflowX?: null | overflowX;
1132
+ overflowY?: null | overflowY;
1133
+ overscrollBehavior?: null | overscrollBehavior;
1134
+ overscrollBehaviorX?: null | overscrollBehaviorX;
1135
+ overscrollBehaviorY?: null | overscrollBehaviorY;
1136
+ padding?: null | padding;
1137
+ paddingBlockEnd?: null | paddingBlockEnd;
1138
+ paddingBlockStart?: null | paddingBlockStart;
1139
+ paddingBottom?: null | paddingBottom;
1140
+ paddingEnd?: null | paddingBottom;
1141
+ paddingHorizontal?: null | paddingLeft;
1142
+ paddingLeft?: null | paddingLeft;
1143
+ paddingRight?: null | paddingRight;
1144
+ paddingStart?: null | paddingLeft;
1145
+ paddingTop?: null | paddingTop;
1146
+ paddingVertical?: null | paddingTop;
1147
+ pageBreakAfter?: null | pageBreakAfter;
1148
+ pageBreakBefore?: null | pageBreakBefore;
1149
+ pageBreakInside?: null | pageBreakInside;
1150
+ pause?: null | pause;
1151
+ pauseAfter?: null | pauseAfter;
1152
+ pauseBefore?: null | pauseBefore;
1153
+ perspective?: null | perspective;
1154
+ perspectiveOrigin?: null | perspectiveOrigin;
1155
+ pointerEvents?: null | pointerEvents;
1156
+ position?: null | position;
1157
+ quotes?: null | quotes;
1158
+ resize?: null | resize;
1159
+ rest?: null | rest;
1160
+ restAfter?: null | restAfter;
1161
+ restBefore?: null | restBefore;
1162
+ right?: null | number | string;
1163
+ rowGap?: null | rowGap;
1164
+ rubyAlign?: null | rubyAlign;
1165
+ rubyMerge?: null | rubyMerge;
1166
+ rubyPosition?: null | rubyPosition;
1167
+ scrollbarWidth?: null | string | number;
1168
+ scrollBehavior?: null | scrollBehavior;
1169
+ scrollPadding?: null | number;
1170
+ scrollPaddingTop?: null | number;
1171
+ scrollPaddingBottom?: null | number;
1172
+ scrollSnapAlign?: null | scrollSnapAlign;
1173
+ scrollSnapType?: null | scrollSnapType;
1174
+ shapeImageThreshold?: null | shapeImageThreshold;
1175
+ shapeMargin?: null | shapeMargin;
1176
+ shapeOutside?: null | shapeOutside;
1177
+ shapeRendering?: null | shapeRendering;
1178
+ speak?: null | speak;
1179
+ speakAs?: null | speakAs;
1180
+ src?: null | src;
1181
+ start?: null | number | string;
1182
+ stroke?: null | stroke;
1183
+ strokeDasharray?: null | strokeDasharray;
1184
+ strokeDashoffset?: null | strokeDashoffset;
1185
+ strokeLinecap?: null | strokeLinecap;
1186
+ strokeLinejoin?: null | strokeLinejoin;
1187
+ strokeMiterlimit?: null | strokeMiterlimit;
1188
+ strokeOpacity?: null | strokeOpacity;
1189
+ strokeWidth?: null | strokeWidth;
1190
+ tabSize?: null | tabSize;
1191
+ tableLayout?: null | tableLayout;
1192
+ textAlign?: null | textAlign;
1193
+ textAlignLast?: null | textAlignLast;
1194
+ textAnchor?: null | textAnchor;
1195
+ textCombineUpright?: null | textCombineUpright;
1196
+ textDecoration?: null | textDecoration;
1197
+ textDecorationColor?: null | textDecorationColor;
1198
+ textDecorationLine?: null | textDecorationLine;
1199
+ textDecorationSkip?: null | textDecorationSkip;
1200
+ textDecorationStyle?: null | textDecorationStyle;
1201
+ textEmphasis?: null | textEmphasis;
1202
+ textEmphasisColor?: null | textEmphasisColor;
1203
+ textEmphasisPosition?: null | textEmphasisPosition;
1204
+ textEmphasisStyle?: null | textEmphasisStyle;
1205
+ textIndent?: null | textIndent;
1206
+ textOrientation?: null | textOrientation;
1207
+ textOverflow?: null | textOverflow;
1208
+ textRendering?: null | textRendering;
1209
+ textShadow?: null | OptionalArray<textShadow>;
1210
+ textSizeAdjust?: null | textSizeAdjust;
1211
+ textTransform?: null | textTransform;
1212
+ textUnderlinePosition?: null | textUnderlinePosition;
1213
+ top?: null | top;
1214
+ touchAction?: null | touchAction;
1215
+ transform?: null | transform;
1216
+ transformBox?: null | transformBox;
1217
+ transformOrigin?: null | transformOrigin;
1218
+ transformStyle?: null | transformStyle;
1219
+ transition?: null | OptionalArray<transition>;
1220
+ transitionDelay?: null | OptionalArray<transitionDelay>;
1221
+ transitionDuration?: null | OptionalArray<transitionDuration>;
1222
+ transitionProperty?: null | OptionalArray<transitionProperty>;
1223
+ transitionTimingFunction?: null | OptionalArray<transitionTimingFunction>;
1224
+ unicodeBidi?: null | unicodeBidi;
1225
+ unicodeRange?: null | unicodeRange;
1226
+ userSelect?: null | userSelect;
1227
+ verticalAlign?: null | verticalAlign;
1228
+ visibility?: null | visibility;
1229
+ voiceBalance?: null | voiceBalance;
1230
+ voiceDuration?: null | voiceDuration;
1231
+ voiceFamily?: null | voiceFamily;
1232
+ voicePitch?: null | voicePitch;
1233
+ voiceRange?: null | voiceRange;
1234
+ voiceRate?: null | voiceRate;
1235
+ voiceStress?: null | voiceStress;
1236
+ voiceVolume?: null | voiceVolume;
1237
+ whiteSpace?: null | whiteSpace;
1238
+ widows?: null | widows;
1239
+ width?: null | width;
1240
+ willChange?: null | willChange;
1241
+ wordBreak?: null | wordBreak;
1242
+ wordSpacing?: null | wordSpacing;
1243
+ wordWrap?: null | wordWrap;
1244
+ writingMode?: null | writingMode;
1245
+ zIndex?: null | zIndex;
854
1246
  }>;
855
- export type CSSProperties = Readonly</**
856
- * > 874 | ...$Exact<SupportedVendorSpecificCSSProperties>,
857
- * | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported.
858
- **/
859
- any>;
@@ -1 +1 @@
1
- "use strict";
1
+ 'use strict';