@stylexjs/stylex 0.2.0-beta.25 → 0.2.0-beta.27
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/lib/StyleXCSSTypes.d.ts +187 -32
- package/lib/StyleXCSSTypes.js.flow +254 -32
- package/lib/StyleXTypes.d.ts +34 -26
- package/package.json +2 -3
package/lib/StyleXCSSTypes.d.ts
CHANGED
|
@@ -467,10 +467,6 @@ type MsOverflowStyle =
|
|
|
467
467
|
| '-ms-autohiding-scrollbar';
|
|
468
468
|
type objectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
469
469
|
type objectPosition = string;
|
|
470
|
-
type offsetBlockEnd = string;
|
|
471
|
-
type offsetBlockStart = string;
|
|
472
|
-
type offsetInlineEnd = string;
|
|
473
|
-
type offsetInlineStart = string;
|
|
474
470
|
type opacity = number;
|
|
475
471
|
type order = number;
|
|
476
472
|
type orphans = number;
|
|
@@ -481,7 +477,6 @@ type outlineStyle = 'auto' | brStyle;
|
|
|
481
477
|
type outlineWidth = borderWidth;
|
|
482
478
|
type overflow = 'visible' | 'hidden' | 'scroll' | 'auto';
|
|
483
479
|
type overflowAnchor = 'auto' | 'none';
|
|
484
|
-
type overflowClipBox = 'padding-box' | 'content-box';
|
|
485
480
|
type overflowWrap = 'normal' | 'break-word';
|
|
486
481
|
type overflowX = 'visible' | 'hidden' | 'scroll' | 'auto';
|
|
487
482
|
type overflowY = 'visible' | 'hidden' | 'scroll' | 'auto';
|
|
@@ -858,12 +853,29 @@ export type CSSProperties = Readonly<{
|
|
|
858
853
|
WebkitAppearance?: null | appearance;
|
|
859
854
|
WebkitFontSmoothing?: null | 'antialiased';
|
|
860
855
|
WebkitTapHighlightColor?: null | color;
|
|
856
|
+
WebkitBoxOrient?:
|
|
857
|
+
| null
|
|
858
|
+
| 'vertical'
|
|
859
|
+
| 'horizontal'
|
|
860
|
+
| 'inline-axis'
|
|
861
|
+
| 'block-axis';
|
|
862
|
+
WebkitLineClamp?: null | number;
|
|
863
|
+
accentColor?: null | color;
|
|
861
864
|
aspectRatio?: null | number | string;
|
|
865
|
+
placeContent?: null | string;
|
|
862
866
|
alignContent?: null | alignContent;
|
|
867
|
+
justifyContent?: null | justifyContent;
|
|
868
|
+
placeItems?: null | string;
|
|
863
869
|
alignItems?: null | alignItems;
|
|
870
|
+
justifyItems?: null | justifyItems;
|
|
864
871
|
alignSelf?: null | alignSelf;
|
|
872
|
+
justifySelf?: null | justifySelf;
|
|
865
873
|
alignmentBaseline?: null | alignmentBaseline;
|
|
866
|
-
|
|
874
|
+
alignTracks?: null | string;
|
|
875
|
+
justifyTracks?: null | string;
|
|
876
|
+
masonryAutoFlow?: null | string;
|
|
877
|
+
animation?: null | string;
|
|
878
|
+
animationComposition?: null | string;
|
|
867
879
|
animationDelay?: null | OptionalArray<animationDelay>;
|
|
868
880
|
animationDirection?: null | OptionalArray<animationDirection>;
|
|
869
881
|
animationDuration?: null | OptionalArray<animationDuration>;
|
|
@@ -872,9 +884,15 @@ export type CSSProperties = Readonly<{
|
|
|
872
884
|
animationName?: null | OptionalArray<animationName>;
|
|
873
885
|
animationPlayState?: null | OptionalArray<animationPlayState>;
|
|
874
886
|
animationTimingFunction?: null | OptionalArray<animationTimingFunction>;
|
|
887
|
+
animationTimeline?: null | string;
|
|
888
|
+
animationRange?: null | string;
|
|
889
|
+
animationRangeStart?: null | string;
|
|
890
|
+
animationRangeEnd?: null | string;
|
|
875
891
|
appearance?: null | appearance;
|
|
892
|
+
azimuth?: null | string;
|
|
876
893
|
backdropFilter?: null | backdropFilter;
|
|
877
894
|
backfaceVisibility?: null | backfaceVisibility;
|
|
895
|
+
background?: null | string;
|
|
878
896
|
backgroundAttachment?: null | OptionalArray<backgroundAttachment>;
|
|
879
897
|
backgroundBlendMode?: null | OptionalArray<backgroundBlendMode>;
|
|
880
898
|
backgroundClip?: null | OptionalArray<backgroundClip>;
|
|
@@ -890,6 +908,10 @@ export type CSSProperties = Readonly<{
|
|
|
890
908
|
behavior?: null | behavior;
|
|
891
909
|
blockSize?: null | blockSize;
|
|
892
910
|
border?: null | border;
|
|
911
|
+
borderBlock?: null | borderBlockEnd;
|
|
912
|
+
borderBlockColor?: null | borderBlockEndColor;
|
|
913
|
+
borderBlockStyle?: null | borderBlockEndStyle;
|
|
914
|
+
borderBlockWidth?: null | borderBlockEndWidth;
|
|
893
915
|
borderBlockEnd?: null | borderBlockEnd;
|
|
894
916
|
borderBlockEndColor?: null | borderBlockEndColor;
|
|
895
917
|
borderBlockEndStyle?: null | borderBlockEndStyle;
|
|
@@ -900,10 +922,6 @@ export type CSSProperties = Readonly<{
|
|
|
900
922
|
borderBlockStartWidth?: null | borderBlockStartWidth;
|
|
901
923
|
borderBottom?: null | border;
|
|
902
924
|
borderBottomColor?: null | color;
|
|
903
|
-
borderBottomEndRadius?: null | borderBottomRightRadius;
|
|
904
|
-
borderBottomLeftRadius?: null | borderBottomLeftRadius;
|
|
905
|
-
borderBottomRightRadius?: null | borderBottomRightRadius;
|
|
906
|
-
borderBottomStartRadius?: null | borderBottomLeftRadius;
|
|
907
925
|
borderBottomStyle?: null | borderBottomStyle;
|
|
908
926
|
borderBottomWidth?: null | borderBottomWidth;
|
|
909
927
|
borderCollapse?: null | borderCollapse;
|
|
@@ -918,6 +936,10 @@ export type CSSProperties = Readonly<{
|
|
|
918
936
|
borderImageSlice?: null | borderImageSlice;
|
|
919
937
|
borderImageSource?: null | borderImageSource;
|
|
920
938
|
borderImageWidth?: null | borderImageWidth;
|
|
939
|
+
borderInline?: null | borderInlineEnd;
|
|
940
|
+
borderInlineColor?: null | borderInlineEndColor;
|
|
941
|
+
borderInlineStyle?: null | borderInlineEndStyle;
|
|
942
|
+
borderInlineWidth?: null | borderInlineEndWidth;
|
|
921
943
|
borderInlineEnd?: null | borderInlineEnd;
|
|
922
944
|
borderInlineEndColor?: null | borderInlineEndColor;
|
|
923
945
|
borderInlineEndStyle?: null | borderInlineEndStyle;
|
|
@@ -930,7 +952,6 @@ export type CSSProperties = Readonly<{
|
|
|
930
952
|
borderLeftColor?: null | borderLeftColor;
|
|
931
953
|
borderLeftStyle?: null | borderLeftStyle;
|
|
932
954
|
borderLeftWidth?: null | borderLeftWidth;
|
|
933
|
-
borderRadius?: null | borderRadius;
|
|
934
955
|
borderRight?: null | border;
|
|
935
956
|
borderRightColor?: null | borderRightColor;
|
|
936
957
|
borderRightStyle?: null | borderRightStyle;
|
|
@@ -943,10 +964,15 @@ export type CSSProperties = Readonly<{
|
|
|
943
964
|
borderStyle?: null | borderStyle;
|
|
944
965
|
borderTop?: null | border;
|
|
945
966
|
borderTopColor?: null | color;
|
|
946
|
-
|
|
967
|
+
borderRadius?: null | borderRadius;
|
|
968
|
+
borderEndStartRadius?: null | borderBottomLeftRadius;
|
|
969
|
+
borderStartStartRadius?: null | borderTopLeftRadius;
|
|
970
|
+
borderStartEndRadius?: null | borderTopRightRadius;
|
|
971
|
+
borderEndEndRadius?: null | borderBottomRightRadius;
|
|
947
972
|
borderTopLeftRadius?: null | borderTopLeftRadius;
|
|
948
973
|
borderTopRightRadius?: null | borderTopRightRadius;
|
|
949
|
-
|
|
974
|
+
borderBottomLeftRadius?: null | borderBottomLeftRadius;
|
|
975
|
+
borderBottomRightRadius?: null | borderBottomRightRadius;
|
|
950
976
|
borderTopStyle?: null | borderTopStyle;
|
|
951
977
|
borderTopWidth?: null | borderTopWidth;
|
|
952
978
|
borderWidth?: null | borderWidth;
|
|
@@ -966,25 +992,48 @@ export type CSSProperties = Readonly<{
|
|
|
966
992
|
breakBefore?: null | breakBefore;
|
|
967
993
|
breakInside?: null | breakInside;
|
|
968
994
|
captionSide?: null | captionSide;
|
|
995
|
+
caret?: null | string;
|
|
996
|
+
caretColor?: null | color;
|
|
997
|
+
caretShape?: null | string;
|
|
969
998
|
clear?: null | clear;
|
|
970
999
|
clip?: null | clip;
|
|
971
1000
|
clipPath?: null | clipPath;
|
|
972
1001
|
clipRule?: null | clipRule;
|
|
973
1002
|
color?: null | color;
|
|
1003
|
+
colorScheme?:
|
|
1004
|
+
| null
|
|
1005
|
+
| 'normal'
|
|
1006
|
+
| 'light'
|
|
1007
|
+
| 'dark'
|
|
1008
|
+
| 'light dark'
|
|
1009
|
+
| 'only light'
|
|
1010
|
+
| 'only dark';
|
|
1011
|
+
forcedColorAdjust?: null | 'auto' | 'none';
|
|
1012
|
+
printColorAdjust?: null | 'economy' | 'exact';
|
|
1013
|
+
columns?: null | columns;
|
|
974
1014
|
columnCount?: null | columnCount;
|
|
975
|
-
|
|
976
|
-
columnGap?: null | columnGap;
|
|
1015
|
+
columnWidth?: null | columnWidth;
|
|
977
1016
|
columnRule?: null | columnRule;
|
|
978
1017
|
columnRuleColor?: null | columnRuleColor;
|
|
979
1018
|
columnRuleStyle?: null | columnRuleStyle;
|
|
980
1019
|
columnRuleWidth?: null | columnRuleWidth;
|
|
1020
|
+
columnFill?: null | columnFill;
|
|
1021
|
+
columnGap?: null | columnGap;
|
|
981
1022
|
columnSpan?: null | columnSpan;
|
|
982
|
-
columnWidth?: null | columnWidth;
|
|
983
|
-
columns?: null | columns;
|
|
984
1023
|
contain?: null | contain;
|
|
1024
|
+
containIntrinsicSize?: null | number | string;
|
|
1025
|
+
containIntrinsicBlockSize?: null | number | string;
|
|
1026
|
+
containIntrinsicInlineSize?: null | number | string;
|
|
1027
|
+
containIntrinsicHeightSize?: null | number | string;
|
|
1028
|
+
containIntrinsicWidthSize?: null | number | string;
|
|
1029
|
+
container?: null | string;
|
|
1030
|
+
containerName?: null | string;
|
|
1031
|
+
containerType?: null | 'size' | 'inline-size' | 'normal';
|
|
1032
|
+
contentVisibility?: null | 'visible' | 'hidden' | 'auto';
|
|
985
1033
|
content?: null | content;
|
|
986
1034
|
counterIncrement?: null | counterIncrement;
|
|
987
1035
|
counterReset?: null | counterReset;
|
|
1036
|
+
counterSet?: null | string | number;
|
|
988
1037
|
cue?: null | cue;
|
|
989
1038
|
cueAfter?: null | cueAfter;
|
|
990
1039
|
cueBefore?: null | cueBefore;
|
|
@@ -1009,6 +1058,7 @@ export type CSSProperties = Readonly<{
|
|
|
1009
1058
|
flexShrink?: null | flexShrink;
|
|
1010
1059
|
flexWrap?: null | flexWrap;
|
|
1011
1060
|
float?: null | float;
|
|
1061
|
+
font?: null | string;
|
|
1012
1062
|
fontFamily?: null | fontFamily;
|
|
1013
1063
|
fontFeatureSettings?: null | fontFeatureSettings;
|
|
1014
1064
|
fontKerning?: null | fontKerning;
|
|
@@ -1018,6 +1068,10 @@ export type CSSProperties = Readonly<{
|
|
|
1018
1068
|
fontStretch?: null | fontStretch;
|
|
1019
1069
|
fontStyle?: null | fontStyle;
|
|
1020
1070
|
fontSynthesis?: null | fontSynthesis;
|
|
1071
|
+
fontSynthesisWeight?: null | 'auto' | 'none';
|
|
1072
|
+
fontSynthesisStyle?: null | 'auto' | 'none';
|
|
1073
|
+
fontSynthesisSmallCaps?: null | 'auto' | 'none';
|
|
1074
|
+
fontSynthesisPosition?: null | 'auto' | 'none';
|
|
1021
1075
|
fontVariant?: null | fontVariant;
|
|
1022
1076
|
fontVariantAlternates?: null | fontVariantAlternates;
|
|
1023
1077
|
fontVariantCaps?: null | fontVariantCaps;
|
|
@@ -1026,6 +1080,12 @@ export type CSSProperties = Readonly<{
|
|
|
1026
1080
|
fontVariantNumeric?: null | fontVariantNumeric;
|
|
1027
1081
|
fontVariantPosition?: null | fontVariantPosition;
|
|
1028
1082
|
fontWeight?: null | fontWeight;
|
|
1083
|
+
fontFeatureSettings?: null | string;
|
|
1084
|
+
fontKerning?: null | 'auto' | 'normal' | 'none';
|
|
1085
|
+
fontLanguageOverride?: null | string;
|
|
1086
|
+
fontOpticalSizing?: null | 'auto' | 'none';
|
|
1087
|
+
fontPalette?: null | 'light' | 'dark' | string;
|
|
1088
|
+
fontVariationSettings?: null | string;
|
|
1029
1089
|
gap?: null | gap;
|
|
1030
1090
|
glyphOrientationHorizontal?: null | glyphOrientationHorizontal;
|
|
1031
1091
|
glyphOrientationVertical?: null | glyphOrientationVertical;
|
|
@@ -1047,8 +1107,11 @@ export type CSSProperties = Readonly<{
|
|
|
1047
1107
|
gridTemplateAreas?: null | gridTemplateAreas;
|
|
1048
1108
|
gridTemplateColumns?: null | gridTemplateColumns;
|
|
1049
1109
|
gridTemplateRows?: null | gridTemplateRows;
|
|
1050
|
-
|
|
1110
|
+
hangingPunctuation?: null | string;
|
|
1111
|
+
hyphenateCharacter?: null | string;
|
|
1112
|
+
hyphenateLimitChars?: null | string | number;
|
|
1051
1113
|
hyphens?: null | hyphens;
|
|
1114
|
+
height?: null | number | string;
|
|
1052
1115
|
imageOrientation?: null | imageOrientation;
|
|
1053
1116
|
imageRendering?: null | imageRendering;
|
|
1054
1117
|
imageResolution?: null | imageResolution;
|
|
@@ -1056,25 +1119,32 @@ export type CSSProperties = Readonly<{
|
|
|
1056
1119
|
initialLetter?: null | initialLetter;
|
|
1057
1120
|
initialLetterAlign?: null | initialLetterAlign;
|
|
1058
1121
|
inlineSize?: null | inlineSize;
|
|
1122
|
+
inset?: null | number | string;
|
|
1123
|
+
insetBlock?: null | number | string;
|
|
1124
|
+
insetBlockEnd?: null | number | string;
|
|
1125
|
+
insetBlockStart?: null | number | string;
|
|
1126
|
+
insetInline?: null | number | string;
|
|
1127
|
+
insetInlineEnd?: null | number | string;
|
|
1128
|
+
insetInlineStart?: null | number | string;
|
|
1059
1129
|
isolation?: null | isolation;
|
|
1060
|
-
justifyContent?: null | justifyContent;
|
|
1061
|
-
justifyItems?: null | justifyItems;
|
|
1062
|
-
justifySelf?: null | justifySelf;
|
|
1063
1130
|
kerning?: null | kerning;
|
|
1064
1131
|
left?: null | number | string;
|
|
1065
1132
|
letterSpacing?: null | letterSpacing;
|
|
1066
1133
|
lineBreak?: null | lineBreak;
|
|
1067
1134
|
lineHeight?: null | lineHeight;
|
|
1135
|
+
lineHeightStep?: null | number | string;
|
|
1068
1136
|
listStyle?: null | listStyle;
|
|
1069
1137
|
listStyleImage?: null | listStyleImage;
|
|
1070
1138
|
listStylePosition?: null | listStylePosition;
|
|
1071
1139
|
listStyleType?: null | listStyleType;
|
|
1072
1140
|
margin?: null | margin;
|
|
1141
|
+
marginBlock?: null | marginBlockEnd;
|
|
1073
1142
|
marginBlockEnd?: null | marginBlockEnd;
|
|
1074
1143
|
marginBlockStart?: null | marginBlockStart;
|
|
1075
1144
|
marginBottom?: null | marginBottom;
|
|
1076
1145
|
marginEnd?: null | marginRight;
|
|
1077
1146
|
marginHorizontal?: null | marginLeft;
|
|
1147
|
+
marginInline?: null | marginInlineEnd;
|
|
1078
1148
|
marginInlineEnd?: null | marginInlineEnd;
|
|
1079
1149
|
marginInlineStart?: null | marginInlineStart;
|
|
1080
1150
|
marginLeft?: null | marginLeft;
|
|
@@ -1082,6 +1152,15 @@ export type CSSProperties = Readonly<{
|
|
|
1082
1152
|
marginStart?: null | marginLeft;
|
|
1083
1153
|
marginTop?: null | marginTop;
|
|
1084
1154
|
marginVertical?: null | marginTop;
|
|
1155
|
+
marginTrim?:
|
|
1156
|
+
| null
|
|
1157
|
+
| 'none'
|
|
1158
|
+
| 'block'
|
|
1159
|
+
| 'block-start'
|
|
1160
|
+
| 'block-end'
|
|
1161
|
+
| 'inline'
|
|
1162
|
+
| 'inline-start'
|
|
1163
|
+
| 'inline-end';
|
|
1085
1164
|
marker?: null | marker;
|
|
1086
1165
|
markerEnd?: null | markerEnd;
|
|
1087
1166
|
markerMid?: null | markerMid;
|
|
@@ -1097,6 +1176,13 @@ export type CSSProperties = Readonly<{
|
|
|
1097
1176
|
maskRepeat?: null | maskRepeat;
|
|
1098
1177
|
maskSize?: null | maskSize;
|
|
1099
1178
|
maskType?: null | maskType;
|
|
1179
|
+
maskBorder?: null | string;
|
|
1180
|
+
maskBorderMode?: null | 'alpha' | 'luminance';
|
|
1181
|
+
maskBorderOutset?: null | string | number;
|
|
1182
|
+
maskBorderRepeat?: null | 'stretch' | 'repeat' | 'round' | 'space';
|
|
1183
|
+
maskBorderSlice?: null | string | number;
|
|
1184
|
+
maskBorderSource?: null | string;
|
|
1185
|
+
maskBorderWidth?: null | string | number;
|
|
1100
1186
|
maxBlockSize?: null | maxBlockSize;
|
|
1101
1187
|
maxHeight?: null | maxHeight;
|
|
1102
1188
|
maxInlineSize?: null | maxInlineSize;
|
|
@@ -1113,10 +1199,12 @@ export type CSSProperties = Readonly<{
|
|
|
1113
1199
|
MsOverflowStyle?: null | MsOverflowStyle;
|
|
1114
1200
|
objectFit?: null | objectFit;
|
|
1115
1201
|
objectPosition?: null | objectPosition;
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1202
|
+
offset?: null | string;
|
|
1203
|
+
offsetAnchor?: null | string;
|
|
1204
|
+
offsetDistance?: null | string | number;
|
|
1205
|
+
offsetPath?: null | string;
|
|
1206
|
+
offsetPosition?: null | string;
|
|
1207
|
+
offsetRotate?: null | string;
|
|
1120
1208
|
opacity?: null | opacity;
|
|
1121
1209
|
order?: null | order;
|
|
1122
1210
|
orphans?: null | orphans;
|
|
@@ -1126,17 +1214,25 @@ export type CSSProperties = Readonly<{
|
|
|
1126
1214
|
outlineStyle?: null | outlineStyle;
|
|
1127
1215
|
outlineWidth?: null | outlineWidth;
|
|
1128
1216
|
overflow?: null | overflow;
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
overflowWrap?: null | overflowWrap;
|
|
1217
|
+
overflowBlock?: null | overflowY;
|
|
1218
|
+
overflowBlockX?: null | overflowX;
|
|
1132
1219
|
overflowX?: null | overflowX;
|
|
1133
1220
|
overflowY?: null | overflowY;
|
|
1221
|
+
overflowAnchor?: null | overflowAnchor;
|
|
1222
|
+
overflowClipMargin?: null | string;
|
|
1223
|
+
overflowWrap?: null | overflowWrap;
|
|
1134
1224
|
overscrollBehavior?: null | overscrollBehavior;
|
|
1135
|
-
|
|
1225
|
+
overscrollBehaviorBlock?: null | overscrollBehaviorY;
|
|
1136
1226
|
overscrollBehaviorY?: null | overscrollBehaviorY;
|
|
1227
|
+
overscrollBehaviorInline?: null | overscrollBehaviorX;
|
|
1228
|
+
overscrollBehaviorX?: null | overscrollBehaviorX;
|
|
1137
1229
|
padding?: null | padding;
|
|
1230
|
+
paddingBlock?: null | paddingBlockEnd;
|
|
1138
1231
|
paddingBlockEnd?: null | paddingBlockEnd;
|
|
1139
1232
|
paddingBlockStart?: null | paddingBlockStart;
|
|
1233
|
+
paddingInline?: null | paddingBlockEnd;
|
|
1234
|
+
paddingInlineEnd?: null | paddingBlockEnd;
|
|
1235
|
+
paddingInlineStart?: null | paddingBlockStart;
|
|
1140
1236
|
paddingBottom?: null | paddingBottom;
|
|
1141
1237
|
paddingEnd?: null | paddingBottom;
|
|
1142
1238
|
paddingHorizontal?: null | paddingLeft;
|
|
@@ -1145,9 +1241,20 @@ export type CSSProperties = Readonly<{
|
|
|
1145
1241
|
paddingStart?: null | paddingLeft;
|
|
1146
1242
|
paddingTop?: null | paddingTop;
|
|
1147
1243
|
paddingVertical?: null | paddingTop;
|
|
1244
|
+
page?: null | string;
|
|
1148
1245
|
pageBreakAfter?: null | pageBreakAfter;
|
|
1149
1246
|
pageBreakBefore?: null | pageBreakBefore;
|
|
1150
1247
|
pageBreakInside?: null | pageBreakInside;
|
|
1248
|
+
paintOrder?:
|
|
1249
|
+
| null
|
|
1250
|
+
| 'normal'
|
|
1251
|
+
| 'stroke'
|
|
1252
|
+
| 'fill'
|
|
1253
|
+
| 'markers'
|
|
1254
|
+
| 'stroke fill'
|
|
1255
|
+
| 'stroke markers'
|
|
1256
|
+
| 'fill markers'
|
|
1257
|
+
| 'stroke fill markers';
|
|
1151
1258
|
pause?: null | pause;
|
|
1152
1259
|
pauseAfter?: null | pauseAfter;
|
|
1153
1260
|
pauseBefore?: null | pauseBefore;
|
|
@@ -1165,13 +1272,41 @@ export type CSSProperties = Readonly<{
|
|
|
1165
1272
|
rubyAlign?: null | rubyAlign;
|
|
1166
1273
|
rubyMerge?: null | rubyMerge;
|
|
1167
1274
|
rubyPosition?: null | rubyPosition;
|
|
1275
|
+
mathDepth?: null | number | string;
|
|
1276
|
+
mathShift?: null | 'normal' | 'compact';
|
|
1277
|
+
mathStyle?: null | 'normal' | 'compact';
|
|
1168
1278
|
scrollbarWidth?: null | string | number;
|
|
1169
1279
|
scrollBehavior?: null | scrollBehavior;
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1280
|
+
scrollMargin?: null | number | string;
|
|
1281
|
+
scrollMarginTop?: null | number | string;
|
|
1282
|
+
scrollMarginRight?: null | number | string;
|
|
1283
|
+
scrollMarginBottom?: null | number | string;
|
|
1284
|
+
scrollMarginLeft?: null | number | string;
|
|
1285
|
+
scrollMarginBlock?: null | number | string;
|
|
1286
|
+
scrollMarginBlockEnd?: null | number | string;
|
|
1287
|
+
scrollMarginBlockStart?: null | number | string;
|
|
1288
|
+
scrollMarginInline?: null | number | string;
|
|
1289
|
+
scrollMarginInlineEnd?: null | number | string;
|
|
1290
|
+
scrollMarginInlineStart?: null | number | string;
|
|
1291
|
+
scrollPadding?: null | number | string;
|
|
1292
|
+
scrollPaddingTop?: null | number | string;
|
|
1293
|
+
scrollPaddingRight?: null | number | string;
|
|
1294
|
+
scrollPaddingBottom?: null | number | string;
|
|
1295
|
+
scrollPaddingLeft?: null | number | string;
|
|
1296
|
+
scrollPaddingBlock?: null | number | string;
|
|
1297
|
+
scrollPaddingBlockEnd?: null | number | string;
|
|
1298
|
+
scrollPaddingBlockStart?: null | number | string;
|
|
1299
|
+
scrollPaddingInline?: null | number | string;
|
|
1300
|
+
scrollPaddingInlineEnd?: null | number | string;
|
|
1301
|
+
scrollPaddingInlineStart?: null | number | string;
|
|
1173
1302
|
scrollSnapAlign?: null | scrollSnapAlign;
|
|
1303
|
+
scrollSnapStop?: null | 'normal' | 'always';
|
|
1174
1304
|
scrollSnapType?: null | scrollSnapType;
|
|
1305
|
+
scrollTimeline?: null | string;
|
|
1306
|
+
scrollTimelineAxis?: null | 'block' | 'inline' | 'x' | 'y';
|
|
1307
|
+
scrollTimelineName?: null | string;
|
|
1308
|
+
scrollbarColor?: null | color;
|
|
1309
|
+
scrollbarWidth?: null | width;
|
|
1175
1310
|
shapeImageThreshold?: null | shapeImageThreshold;
|
|
1176
1311
|
shapeMargin?: null | shapeMargin;
|
|
1177
1312
|
shapeOutside?: null | shapeOutside;
|
|
@@ -1198,25 +1333,40 @@ export type CSSProperties = Readonly<{
|
|
|
1198
1333
|
textDecorationColor?: null | textDecorationColor;
|
|
1199
1334
|
textDecorationLine?: null | textDecorationLine;
|
|
1200
1335
|
textDecorationSkip?: null | textDecorationSkip;
|
|
1336
|
+
textDecorationSkipInk?: null | 'auto' | 'none' | 'all';
|
|
1201
1337
|
textDecorationStyle?: null | textDecorationStyle;
|
|
1338
|
+
textDecorationThickness?: null | number | string;
|
|
1202
1339
|
textEmphasis?: null | textEmphasis;
|
|
1203
1340
|
textEmphasisColor?: null | textEmphasisColor;
|
|
1204
1341
|
textEmphasisPosition?: null | textEmphasisPosition;
|
|
1205
1342
|
textEmphasisStyle?: null | textEmphasisStyle;
|
|
1206
1343
|
textIndent?: null | textIndent;
|
|
1344
|
+
textJustify?:
|
|
1345
|
+
| null
|
|
1346
|
+
| 'none'
|
|
1347
|
+
| 'auto'
|
|
1348
|
+
| 'inter-word'
|
|
1349
|
+
| 'inter-character'
|
|
1350
|
+
| 'distribute';
|
|
1207
1351
|
textOrientation?: null | textOrientation;
|
|
1208
1352
|
textOverflow?: null | textOverflow;
|
|
1209
1353
|
textRendering?: null | textRendering;
|
|
1210
1354
|
textShadow?: null | OptionalArray<textShadow>;
|
|
1211
1355
|
textSizeAdjust?: null | textSizeAdjust;
|
|
1212
1356
|
textTransform?: null | textTransform;
|
|
1357
|
+
textUnderlineOffset?: null | number | string;
|
|
1213
1358
|
textUnderlinePosition?: null | textUnderlinePosition;
|
|
1359
|
+
textWrap?: null | 'wrap' | 'nowrap' | 'balance';
|
|
1360
|
+
timelineScope?: null | string;
|
|
1214
1361
|
top?: null | top;
|
|
1215
1362
|
touchAction?: null | touchAction;
|
|
1216
1363
|
transform?: null | transform;
|
|
1217
1364
|
transformBox?: null | transformBox;
|
|
1218
1365
|
transformOrigin?: null | transformOrigin;
|
|
1219
1366
|
transformStyle?: null | transformStyle;
|
|
1367
|
+
rotate?: null | number | string;
|
|
1368
|
+
scale?: null | number | string;
|
|
1369
|
+
translate?: null | number | string;
|
|
1220
1370
|
transition?: null | OptionalArray<transition>;
|
|
1221
1371
|
transitionDelay?: null | OptionalArray<transitionDelay>;
|
|
1222
1372
|
transitionDuration?: null | OptionalArray<transitionDuration>;
|
|
@@ -1226,6 +1376,11 @@ export type CSSProperties = Readonly<{
|
|
|
1226
1376
|
unicodeRange?: null | unicodeRange;
|
|
1227
1377
|
userSelect?: null | userSelect;
|
|
1228
1378
|
verticalAlign?: null | verticalAlign;
|
|
1379
|
+
viewTimeline?: null | string;
|
|
1380
|
+
viewTimelineAxis?: null | 'block' | 'inline' | 'x' | 'y';
|
|
1381
|
+
viewTimelineName?: null | string;
|
|
1382
|
+
viewTimelineInset?: null | number | string;
|
|
1383
|
+
viewTransitionName?: null | string;
|
|
1229
1384
|
visibility?: null | visibility;
|
|
1230
1385
|
voiceBalance?: null | voiceBalance;
|
|
1231
1386
|
voiceDuration?: null | voiceDuration;
|
|
@@ -472,10 +472,6 @@ type MsOverflowStyle =
|
|
|
472
472
|
| '-ms-autohiding-scrollbar';
|
|
473
473
|
type objectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
474
474
|
type objectPosition = string;
|
|
475
|
-
type offsetBlockEnd = string;
|
|
476
|
-
type offsetBlockStart = string;
|
|
477
|
-
type offsetInlineEnd = string;
|
|
478
|
-
type offsetInlineStart = string;
|
|
479
475
|
type opacity = number;
|
|
480
476
|
type order = number;
|
|
481
477
|
type orphans = number;
|
|
@@ -486,7 +482,6 @@ type outlineStyle = 'auto' | brStyle;
|
|
|
486
482
|
type outlineWidth = borderWidth;
|
|
487
483
|
type overflow = 'visible' | 'hidden' | 'scroll' | 'auto';
|
|
488
484
|
type overflowAnchor = 'auto' | 'none';
|
|
489
|
-
type overflowClipBox = 'padding-box' | 'content-box';
|
|
490
485
|
type overflowWrap = 'normal' | 'break-word';
|
|
491
486
|
type overflowX = 'visible' | 'hidden' | 'scroll' | 'auto';
|
|
492
487
|
type overflowY = 'visible' | 'hidden' | 'scroll' | 'auto';
|
|
@@ -876,14 +871,38 @@ export type CSSProperties = $ReadOnly<{
|
|
|
876
871
|
WebkitAppearance?: null | appearance,
|
|
877
872
|
WebkitFontSmoothing?: null | 'antialiased',
|
|
878
873
|
WebkitTapHighlightColor?: null | color,
|
|
874
|
+
|
|
875
|
+
WebkitBoxOrient?:
|
|
876
|
+
| null
|
|
877
|
+
| 'vertical'
|
|
878
|
+
| 'horizontal'
|
|
879
|
+
| 'inline-axis'
|
|
880
|
+
| 'block-axis',
|
|
881
|
+
WebkitLineClamp?: null | number,
|
|
879
882
|
// ENDOF ...$Exact<SupportedVendorSpecificCSSProperties>,
|
|
880
883
|
|
|
884
|
+
accentColor?: null | color,
|
|
885
|
+
|
|
881
886
|
aspectRatio?: null | number | string,
|
|
887
|
+
|
|
888
|
+
placeContent?: null | string,
|
|
882
889
|
alignContent?: null | alignContent,
|
|
890
|
+
justifyContent?: null | justifyContent,
|
|
891
|
+
placeItems?: null | string,
|
|
883
892
|
alignItems?: null | alignItems,
|
|
893
|
+
justifyItems?: null | justifyItems,
|
|
884
894
|
alignSelf?: null | alignSelf,
|
|
895
|
+
justifySelf?: null | justifySelf,
|
|
896
|
+
|
|
885
897
|
alignmentBaseline?: null | alignmentBaseline,
|
|
886
|
-
|
|
898
|
+
alignTracks?: null | string,
|
|
899
|
+
justifyTracks?: null | string,
|
|
900
|
+
masonryAutoFlow?: null | string,
|
|
901
|
+
|
|
902
|
+
// Not Allowed:
|
|
903
|
+
// all?: null | all,
|
|
904
|
+
animation?: null | string,
|
|
905
|
+
animationComposition?: null | string,
|
|
887
906
|
animationDelay?: null | OptionalArray<animationDelay>,
|
|
888
907
|
animationDirection?: null | OptionalArray<animationDirection>,
|
|
889
908
|
animationDuration?: null | OptionalArray<animationDuration>,
|
|
@@ -892,9 +911,16 @@ export type CSSProperties = $ReadOnly<{
|
|
|
892
911
|
animationName?: null | OptionalArray<animationName>,
|
|
893
912
|
animationPlayState?: null | OptionalArray<animationPlayState>,
|
|
894
913
|
animationTimingFunction?: null | OptionalArray<animationTimingFunction>,
|
|
914
|
+
animationTimeline?: null | string,
|
|
915
|
+
animationRange?: null | string,
|
|
916
|
+
animationRangeStart?: null | string,
|
|
917
|
+
animationRangeEnd?: null | string,
|
|
895
918
|
appearance?: null | appearance,
|
|
919
|
+
azimuth?: null | string,
|
|
920
|
+
|
|
896
921
|
backdropFilter?: null | backdropFilter,
|
|
897
922
|
backfaceVisibility?: null | backfaceVisibility,
|
|
923
|
+
background?: null | string,
|
|
898
924
|
backgroundAttachment?: null | OptionalArray<backgroundAttachment>,
|
|
899
925
|
backgroundBlendMode?: null | OptionalArray<backgroundBlendMode>,
|
|
900
926
|
backgroundClip?: null | OptionalArray<backgroundClip>,
|
|
@@ -910,6 +936,10 @@ export type CSSProperties = $ReadOnly<{
|
|
|
910
936
|
behavior?: null | behavior,
|
|
911
937
|
blockSize?: null | blockSize,
|
|
912
938
|
border?: null | border,
|
|
939
|
+
borderBlock?: null | borderBlockEnd,
|
|
940
|
+
borderBlockColor?: null | borderBlockEndColor,
|
|
941
|
+
borderBlockStyle?: null | borderBlockEndStyle,
|
|
942
|
+
borderBlockWidth?: null | borderBlockEndWidth,
|
|
913
943
|
borderBlockEnd?: null | borderBlockEnd,
|
|
914
944
|
borderBlockEndColor?: null | borderBlockEndColor,
|
|
915
945
|
borderBlockEndStyle?: null | borderBlockEndStyle,
|
|
@@ -920,10 +950,6 @@ export type CSSProperties = $ReadOnly<{
|
|
|
920
950
|
borderBlockStartWidth?: null | borderBlockStartWidth,
|
|
921
951
|
borderBottom?: null | border,
|
|
922
952
|
borderBottomColor?: null | color,
|
|
923
|
-
borderBottomEndRadius?: null | borderBottomRightRadius,
|
|
924
|
-
borderBottomLeftRadius?: null | borderBottomLeftRadius,
|
|
925
|
-
borderBottomRightRadius?: null | borderBottomRightRadius,
|
|
926
|
-
borderBottomStartRadius?: null | borderBottomLeftRadius,
|
|
927
953
|
borderBottomStyle?: null | borderBottomStyle,
|
|
928
954
|
borderBottomWidth?: null | borderBottomWidth,
|
|
929
955
|
borderCollapse?: null | borderCollapse,
|
|
@@ -938,6 +964,10 @@ export type CSSProperties = $ReadOnly<{
|
|
|
938
964
|
borderImageSlice?: null | borderImageSlice,
|
|
939
965
|
borderImageSource?: null | borderImageSource,
|
|
940
966
|
borderImageWidth?: null | borderImageWidth,
|
|
967
|
+
borderInline?: null | borderInlineEnd,
|
|
968
|
+
borderInlineColor?: null | borderInlineEndColor,
|
|
969
|
+
borderInlineStyle?: null | borderInlineEndStyle,
|
|
970
|
+
borderInlineWidth?: null | borderInlineEndWidth,
|
|
941
971
|
borderInlineEnd?: null | borderInlineEnd,
|
|
942
972
|
borderInlineEndColor?: null | borderInlineEndColor,
|
|
943
973
|
borderInlineEndStyle?: null | borderInlineEndStyle,
|
|
@@ -950,7 +980,6 @@ export type CSSProperties = $ReadOnly<{
|
|
|
950
980
|
borderLeftColor?: null | borderLeftColor,
|
|
951
981
|
borderLeftStyle?: null | borderLeftStyle,
|
|
952
982
|
borderLeftWidth?: null | borderLeftWidth,
|
|
953
|
-
borderRadius?: null | borderRadius,
|
|
954
983
|
borderRight?: null | border,
|
|
955
984
|
borderRightColor?: null | borderRightColor,
|
|
956
985
|
borderRightStyle?: null | borderRightStyle,
|
|
@@ -963,10 +992,17 @@ export type CSSProperties = $ReadOnly<{
|
|
|
963
992
|
borderStyle?: null | borderStyle,
|
|
964
993
|
borderTop?: null | border,
|
|
965
994
|
borderTopColor?: null | color,
|
|
966
|
-
|
|
995
|
+
|
|
996
|
+
borderRadius?: null | borderRadius,
|
|
997
|
+
borderEndStartRadius?: null | borderBottomLeftRadius,
|
|
998
|
+
borderStartStartRadius?: null | borderTopLeftRadius,
|
|
999
|
+
borderStartEndRadius?: null | borderTopRightRadius,
|
|
1000
|
+
borderEndEndRadius?: null | borderBottomRightRadius,
|
|
967
1001
|
borderTopLeftRadius?: null | borderTopLeftRadius,
|
|
968
1002
|
borderTopRightRadius?: null | borderTopRightRadius,
|
|
969
|
-
|
|
1003
|
+
borderBottomLeftRadius?: null | borderBottomLeftRadius,
|
|
1004
|
+
borderBottomRightRadius?: null | borderBottomRightRadius,
|
|
1005
|
+
|
|
970
1006
|
borderTopStyle?: null | borderTopStyle,
|
|
971
1007
|
borderTopWidth?: null | borderTopWidth,
|
|
972
1008
|
borderWidth?: null | borderWidth,
|
|
@@ -985,26 +1021,60 @@ export type CSSProperties = $ReadOnly<{
|
|
|
985
1021
|
breakAfter?: null | breakAfter,
|
|
986
1022
|
breakBefore?: null | breakBefore,
|
|
987
1023
|
breakInside?: null | breakInside,
|
|
1024
|
+
|
|
988
1025
|
captionSide?: null | captionSide,
|
|
1026
|
+
caret?: null | string,
|
|
1027
|
+
caretColor?: null | color,
|
|
1028
|
+
caretShape?: null | string,
|
|
989
1029
|
clear?: null | clear,
|
|
990
1030
|
clip?: null | clip,
|
|
991
1031
|
clipPath?: null | clipPath,
|
|
992
1032
|
clipRule?: null | clipRule,
|
|
993
1033
|
color?: null | color,
|
|
1034
|
+
|
|
1035
|
+
colorScheme?:
|
|
1036
|
+
| null
|
|
1037
|
+
| 'normal'
|
|
1038
|
+
| 'light'
|
|
1039
|
+
| 'dark'
|
|
1040
|
+
| 'light dark'
|
|
1041
|
+
| 'only light'
|
|
1042
|
+
| 'only dark',
|
|
1043
|
+
forcedColorAdjust?: null | 'auto' | 'none',
|
|
1044
|
+
printColorAdjust?: null | 'economy' | 'exact',
|
|
1045
|
+
|
|
1046
|
+
columns?: null | columns,
|
|
994
1047
|
columnCount?: null | columnCount,
|
|
995
|
-
|
|
996
|
-
|
|
1048
|
+
columnWidth?: null | columnWidth,
|
|
1049
|
+
|
|
997
1050
|
columnRule?: null | columnRule,
|
|
998
1051
|
columnRuleColor?: null | columnRuleColor,
|
|
999
1052
|
columnRuleStyle?: null | columnRuleStyle,
|
|
1000
1053
|
columnRuleWidth?: null | columnRuleWidth,
|
|
1054
|
+
|
|
1055
|
+
columnFill?: null | columnFill,
|
|
1056
|
+
columnGap?: null | columnGap,
|
|
1001
1057
|
columnSpan?: null | columnSpan,
|
|
1002
|
-
|
|
1003
|
-
columns?: null | columns,
|
|
1058
|
+
|
|
1004
1059
|
contain?: null | contain,
|
|
1060
|
+
containIntrinsicSize?: null | number | string,
|
|
1061
|
+
containIntrinsicBlockSize?: null | number | string,
|
|
1062
|
+
containIntrinsicInlineSize?: null | number | string,
|
|
1063
|
+
containIntrinsicHeightSize?: null | number | string,
|
|
1064
|
+
containIntrinsicWidthSize?: null | number | string,
|
|
1065
|
+
|
|
1066
|
+
container?: null | string,
|
|
1067
|
+
containerName?: null | string,
|
|
1068
|
+
containerType?: null | 'size' | 'inline-size' | 'normal',
|
|
1069
|
+
|
|
1070
|
+
contentVisibility?: null | 'visible' | 'hidden' | 'auto',
|
|
1071
|
+
|
|
1005
1072
|
content?: null | content,
|
|
1073
|
+
|
|
1006
1074
|
counterIncrement?: null | counterIncrement,
|
|
1007
1075
|
counterReset?: null | counterReset,
|
|
1076
|
+
counterSet?: null | string | number,
|
|
1077
|
+
|
|
1008
1078
|
cue?: null | cue,
|
|
1009
1079
|
cueAfter?: null | cueAfter,
|
|
1010
1080
|
cueBefore?: null | cueBefore,
|
|
@@ -1029,6 +1099,8 @@ export type CSSProperties = $ReadOnly<{
|
|
|
1029
1099
|
flexShrink?: null | flexShrink,
|
|
1030
1100
|
flexWrap?: null | flexWrap,
|
|
1031
1101
|
float?: null | float,
|
|
1102
|
+
|
|
1103
|
+
font?: null | string,
|
|
1032
1104
|
fontFamily?: null | fontFamily,
|
|
1033
1105
|
fontFeatureSettings?: null | fontFeatureSettings,
|
|
1034
1106
|
fontKerning?: null | fontKerning,
|
|
@@ -1038,6 +1110,11 @@ export type CSSProperties = $ReadOnly<{
|
|
|
1038
1110
|
fontStretch?: null | fontStretch,
|
|
1039
1111
|
fontStyle?: null | fontStyle,
|
|
1040
1112
|
fontSynthesis?: null | fontSynthesis,
|
|
1113
|
+
fontSynthesisWeight?: null | 'auto' | 'none',
|
|
1114
|
+
fontSynthesisStyle?: null | 'auto' | 'none',
|
|
1115
|
+
fontSynthesisSmallCaps?: null | 'auto' | 'none',
|
|
1116
|
+
fontSynthesisPosition?: null | 'auto' | 'none',
|
|
1117
|
+
|
|
1041
1118
|
fontVariant?: null | fontVariant,
|
|
1042
1119
|
fontVariantAlternates?: null | fontVariantAlternates,
|
|
1043
1120
|
fontVariantCaps?: null | fontVariantCaps,
|
|
@@ -1046,6 +1123,15 @@ export type CSSProperties = $ReadOnly<{
|
|
|
1046
1123
|
fontVariantNumeric?: null | fontVariantNumeric,
|
|
1047
1124
|
fontVariantPosition?: null | fontVariantPosition,
|
|
1048
1125
|
fontWeight?: null | fontWeight,
|
|
1126
|
+
// fontHeight?: null | number | string,
|
|
1127
|
+
// fontWidth?: null | number | string,
|
|
1128
|
+
fontFeatureSettings?: null | string,
|
|
1129
|
+
fontKerning?: null | 'auto' | 'normal' | 'none',
|
|
1130
|
+
fontLanguageOverride?: null | string,
|
|
1131
|
+
fontOpticalSizing?: null | 'auto' | 'none',
|
|
1132
|
+
fontPalette?: null | 'light' | 'dark' | string,
|
|
1133
|
+
fontVariationSettings?: null | string,
|
|
1134
|
+
|
|
1049
1135
|
gap?: null | gap,
|
|
1050
1136
|
glyphOrientationHorizontal?: null | glyphOrientationHorizontal,
|
|
1051
1137
|
glyphOrientationVertical?: null | glyphOrientationVertical,
|
|
@@ -1067,41 +1153,70 @@ export type CSSProperties = $ReadOnly<{
|
|
|
1067
1153
|
gridTemplateAreas?: null | gridTemplateAreas,
|
|
1068
1154
|
gridTemplateColumns?: null | gridTemplateColumns,
|
|
1069
1155
|
gridTemplateRows?: null | gridTemplateRows,
|
|
1070
|
-
|
|
1156
|
+
|
|
1157
|
+
hangingPunctuation?: null | string,
|
|
1158
|
+
hyphenateCharacter?: null | string,
|
|
1159
|
+
hyphenateLimitChars?: null | string | number,
|
|
1071
1160
|
hyphens?: null | hyphens,
|
|
1161
|
+
|
|
1162
|
+
height?: null | number | string,
|
|
1163
|
+
|
|
1072
1164
|
imageOrientation?: null | imageOrientation,
|
|
1073
1165
|
imageRendering?: null | imageRendering,
|
|
1074
1166
|
imageResolution?: null | imageResolution,
|
|
1075
1167
|
imeMode?: null | imeMode,
|
|
1168
|
+
// inputSecurity?: null | string,
|
|
1076
1169
|
initialLetter?: null | initialLetter,
|
|
1077
1170
|
initialLetterAlign?: null | initialLetterAlign,
|
|
1078
1171
|
inlineSize?: null | inlineSize,
|
|
1172
|
+
|
|
1173
|
+
inset?: null | number | string,
|
|
1174
|
+
insetBlock?: null | number | string,
|
|
1175
|
+
insetBlockEnd?: null | number | string,
|
|
1176
|
+
insetBlockStart?: null | number | string,
|
|
1177
|
+
insetInline?: null | number | string,
|
|
1178
|
+
insetInlineEnd?: null | number | string,
|
|
1179
|
+
insetInlineStart?: null | number | string,
|
|
1180
|
+
|
|
1079
1181
|
isolation?: null | isolation,
|
|
1080
|
-
justifyContent?: null | justifyContent,
|
|
1081
|
-
justifyItems?: null | justifyItems,
|
|
1082
|
-
justifySelf?: null | justifySelf,
|
|
1083
1182
|
kerning?: null | kerning,
|
|
1084
1183
|
left?: null | number | string,
|
|
1085
1184
|
letterSpacing?: null | letterSpacing,
|
|
1086
1185
|
lineBreak?: null | lineBreak,
|
|
1087
1186
|
lineHeight?: null | lineHeight,
|
|
1187
|
+
lineHeightStep?: null | number | string,
|
|
1088
1188
|
listStyle?: null | listStyle,
|
|
1089
1189
|
listStyleImage?: null | listStyleImage,
|
|
1090
1190
|
listStylePosition?: null | listStylePosition,
|
|
1091
1191
|
listStyleType?: null | listStyleType,
|
|
1092
1192
|
margin?: null | margin,
|
|
1193
|
+
marginBlock?: null | marginBlockEnd,
|
|
1093
1194
|
marginBlockEnd?: null | marginBlockEnd,
|
|
1094
1195
|
marginBlockStart?: null | marginBlockStart,
|
|
1095
1196
|
marginBottom?: null | marginBottom,
|
|
1096
1197
|
marginEnd?: null | marginRight,
|
|
1198
|
+
// @deprecated
|
|
1097
1199
|
marginHorizontal?: null | marginLeft,
|
|
1200
|
+
marginInline?: null | marginInlineEnd,
|
|
1098
1201
|
marginInlineEnd?: null | marginInlineEnd,
|
|
1099
1202
|
marginInlineStart?: null | marginInlineStart,
|
|
1100
1203
|
marginLeft?: null | marginLeft,
|
|
1101
1204
|
marginRight?: null | marginRight,
|
|
1102
1205
|
marginStart?: null | marginLeft,
|
|
1103
1206
|
marginTop?: null | marginTop,
|
|
1207
|
+
// @deprecated
|
|
1104
1208
|
marginVertical?: null | marginTop,
|
|
1209
|
+
|
|
1210
|
+
marginTrim?:
|
|
1211
|
+
| null
|
|
1212
|
+
| 'none'
|
|
1213
|
+
| 'block'
|
|
1214
|
+
| 'block-start'
|
|
1215
|
+
| 'block-end'
|
|
1216
|
+
| 'inline'
|
|
1217
|
+
| 'inline-start'
|
|
1218
|
+
| 'inline-end',
|
|
1219
|
+
|
|
1105
1220
|
marker?: null | marker,
|
|
1106
1221
|
markerEnd?: null | markerEnd,
|
|
1107
1222
|
markerMid?: null | markerMid,
|
|
@@ -1117,6 +1232,15 @@ export type CSSProperties = $ReadOnly<{
|
|
|
1117
1232
|
maskRepeat?: null | maskRepeat,
|
|
1118
1233
|
maskSize?: null | maskSize,
|
|
1119
1234
|
maskType?: null | maskType,
|
|
1235
|
+
|
|
1236
|
+
maskBorder?: null | string,
|
|
1237
|
+
maskBorderMode?: null | 'alpha' | 'luminance',
|
|
1238
|
+
maskBorderOutset?: null | string | number,
|
|
1239
|
+
maskBorderRepeat?: null | 'stretch' | 'repeat' | 'round' | 'space',
|
|
1240
|
+
maskBorderSlice?: null | string | number,
|
|
1241
|
+
maskBorderSource?: null | string,
|
|
1242
|
+
maskBorderWidth?: null | string | number,
|
|
1243
|
+
|
|
1120
1244
|
maxBlockSize?: null | maxBlockSize,
|
|
1121
1245
|
maxHeight?: null | maxHeight,
|
|
1122
1246
|
maxInlineSize?: null | maxInlineSize,
|
|
@@ -1133,10 +1257,14 @@ export type CSSProperties = $ReadOnly<{
|
|
|
1133
1257
|
MsOverflowStyle?: null | MsOverflowStyle,
|
|
1134
1258
|
objectFit?: null | objectFit,
|
|
1135
1259
|
objectPosition?: null | objectPosition,
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1260
|
+
|
|
1261
|
+
offset?: null | string,
|
|
1262
|
+
offsetAnchor?: null | string,
|
|
1263
|
+
offsetDistance?: null | string | number,
|
|
1264
|
+
offsetPath?: null | string,
|
|
1265
|
+
offsetPosition?: null | string,
|
|
1266
|
+
offsetRotate?: null | string,
|
|
1267
|
+
|
|
1140
1268
|
opacity?: null | opacity,
|
|
1141
1269
|
order?: null | order,
|
|
1142
1270
|
orphans?: null | orphans,
|
|
@@ -1145,18 +1273,32 @@ export type CSSProperties = $ReadOnly<{
|
|
|
1145
1273
|
outlineOffset?: null | outlineOffset,
|
|
1146
1274
|
outlineStyle?: null | outlineStyle,
|
|
1147
1275
|
outlineWidth?: null | outlineWidth,
|
|
1276
|
+
|
|
1148
1277
|
overflow?: null | overflow,
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
overflowWrap?: null | overflowWrap,
|
|
1278
|
+
overflowBlock?: null | overflowY,
|
|
1279
|
+
overflowBlockX?: null | overflowX,
|
|
1152
1280
|
overflowX?: null | overflowX,
|
|
1153
1281
|
overflowY?: null | overflowY,
|
|
1282
|
+
|
|
1283
|
+
overflowAnchor?: null | overflowAnchor,
|
|
1284
|
+
// overflowClipBox?: null | overflowClipBox,
|
|
1285
|
+
overflowClipMargin?: null | string,
|
|
1286
|
+
|
|
1287
|
+
overflowWrap?: null | overflowWrap,
|
|
1288
|
+
|
|
1154
1289
|
overscrollBehavior?: null | overscrollBehavior,
|
|
1155
|
-
|
|
1290
|
+
overscrollBehaviorBlock?: null | overscrollBehaviorY,
|
|
1156
1291
|
overscrollBehaviorY?: null | overscrollBehaviorY,
|
|
1292
|
+
overscrollBehaviorInline?: null | overscrollBehaviorX,
|
|
1293
|
+
overscrollBehaviorX?: null | overscrollBehaviorX,
|
|
1294
|
+
|
|
1157
1295
|
padding?: null | padding,
|
|
1296
|
+
paddingBlock?: null | paddingBlockEnd,
|
|
1158
1297
|
paddingBlockEnd?: null | paddingBlockEnd,
|
|
1159
1298
|
paddingBlockStart?: null | paddingBlockStart,
|
|
1299
|
+
paddingInline?: null | paddingBlockEnd,
|
|
1300
|
+
paddingInlineEnd?: null | paddingBlockEnd,
|
|
1301
|
+
paddingInlineStart?: null | paddingBlockStart,
|
|
1160
1302
|
paddingBottom?: null | paddingBottom,
|
|
1161
1303
|
paddingEnd?: null | paddingBottom,
|
|
1162
1304
|
paddingHorizontal?: null | paddingLeft,
|
|
@@ -1165,9 +1307,21 @@ export type CSSProperties = $ReadOnly<{
|
|
|
1165
1307
|
paddingStart?: null | paddingLeft,
|
|
1166
1308
|
paddingTop?: null | paddingTop,
|
|
1167
1309
|
paddingVertical?: null | paddingTop,
|
|
1310
|
+
|
|
1311
|
+
page?: null | string,
|
|
1168
1312
|
pageBreakAfter?: null | pageBreakAfter,
|
|
1169
1313
|
pageBreakBefore?: null | pageBreakBefore,
|
|
1170
1314
|
pageBreakInside?: null | pageBreakInside,
|
|
1315
|
+
paintOrder?:
|
|
1316
|
+
| null
|
|
1317
|
+
| 'normal'
|
|
1318
|
+
| 'stroke'
|
|
1319
|
+
| 'fill'
|
|
1320
|
+
| 'markers'
|
|
1321
|
+
| 'stroke fill'
|
|
1322
|
+
| 'stroke markers'
|
|
1323
|
+
| 'fill markers'
|
|
1324
|
+
| 'stroke fill markers',
|
|
1171
1325
|
pause?: null | pause,
|
|
1172
1326
|
pauseAfter?: null | pauseAfter,
|
|
1173
1327
|
pauseBefore?: null | pauseBefore,
|
|
@@ -1182,16 +1336,54 @@ export type CSSProperties = $ReadOnly<{
|
|
|
1182
1336
|
restBefore?: null | restBefore,
|
|
1183
1337
|
right?: null | number | string,
|
|
1184
1338
|
rowGap?: null | rowGap,
|
|
1339
|
+
|
|
1340
|
+
// Ruby properties.
|
|
1185
1341
|
rubyAlign?: null | rubyAlign,
|
|
1186
1342
|
rubyMerge?: null | rubyMerge,
|
|
1187
1343
|
rubyPosition?: null | rubyPosition,
|
|
1344
|
+
// Math properties
|
|
1345
|
+
mathDepth?: null | number | string,
|
|
1346
|
+
mathShift?: null | 'normal' | 'compact',
|
|
1347
|
+
mathStyle?: null | 'normal' | 'compact',
|
|
1348
|
+
|
|
1188
1349
|
scrollbarWidth?: null | string | number,
|
|
1189
1350
|
scrollBehavior?: null | scrollBehavior,
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1351
|
+
|
|
1352
|
+
scrollMargin?: null | number | string,
|
|
1353
|
+
scrollMarginTop?: null | number | string,
|
|
1354
|
+
scrollMarginRight?: null | number | string,
|
|
1355
|
+
scrollMarginBottom?: null | number | string,
|
|
1356
|
+
scrollMarginLeft?: null | number | string,
|
|
1357
|
+
scrollMarginBlock?: null | number | string,
|
|
1358
|
+
scrollMarginBlockEnd?: null | number | string,
|
|
1359
|
+
scrollMarginBlockStart?: null | number | string,
|
|
1360
|
+
scrollMarginInline?: null | number | string,
|
|
1361
|
+
scrollMarginInlineEnd?: null | number | string,
|
|
1362
|
+
scrollMarginInlineStart?: null | number | string,
|
|
1363
|
+
|
|
1364
|
+
scrollPadding?: null | number | string,
|
|
1365
|
+
scrollPaddingTop?: null | number | string,
|
|
1366
|
+
scrollPaddingRight?: null | number | string,
|
|
1367
|
+
scrollPaddingBottom?: null | number | string,
|
|
1368
|
+
scrollPaddingLeft?: null | number | string,
|
|
1369
|
+
scrollPaddingBlock?: null | number | string,
|
|
1370
|
+
scrollPaddingBlockEnd?: null | number | string,
|
|
1371
|
+
scrollPaddingBlockStart?: null | number | string,
|
|
1372
|
+
scrollPaddingInline?: null | number | string,
|
|
1373
|
+
scrollPaddingInlineEnd?: null | number | string,
|
|
1374
|
+
scrollPaddingInlineStart?: null | number | string,
|
|
1375
|
+
|
|
1193
1376
|
scrollSnapAlign?: null | scrollSnapAlign,
|
|
1377
|
+
scrollSnapStop?: null | 'normal' | 'always',
|
|
1194
1378
|
scrollSnapType?: null | scrollSnapType,
|
|
1379
|
+
|
|
1380
|
+
scrollTimeline?: null | string,
|
|
1381
|
+
scrollTimelineAxis?: null | 'block' | 'inline' | 'x' | 'y',
|
|
1382
|
+
scrollTimelineName?: null | string,
|
|
1383
|
+
|
|
1384
|
+
scrollbarColor?: null | color,
|
|
1385
|
+
scrollbarWidth?: null | width,
|
|
1386
|
+
|
|
1195
1387
|
shapeImageThreshold?: null | shapeImageThreshold,
|
|
1196
1388
|
shapeMargin?: null | shapeMargin,
|
|
1197
1389
|
shapeOutside?: null | shapeOutside,
|
|
@@ -1214,29 +1406,49 @@ export type CSSProperties = $ReadOnly<{
|
|
|
1214
1406
|
textAlignLast?: null | textAlignLast,
|
|
1215
1407
|
textAnchor?: null | textAnchor,
|
|
1216
1408
|
textCombineUpright?: null | textCombineUpright,
|
|
1409
|
+
|
|
1217
1410
|
textDecoration?: null | textDecoration,
|
|
1218
1411
|
textDecorationColor?: null | textDecorationColor,
|
|
1219
1412
|
textDecorationLine?: null | textDecorationLine,
|
|
1220
1413
|
textDecorationSkip?: null | textDecorationSkip,
|
|
1414
|
+
textDecorationSkipInk?: null | 'auto' | 'none' | 'all',
|
|
1221
1415
|
textDecorationStyle?: null | textDecorationStyle,
|
|
1416
|
+
textDecorationThickness?: null | number | string,
|
|
1417
|
+
|
|
1222
1418
|
textEmphasis?: null | textEmphasis,
|
|
1223
1419
|
textEmphasisColor?: null | textEmphasisColor,
|
|
1224
1420
|
textEmphasisPosition?: null | textEmphasisPosition,
|
|
1225
1421
|
textEmphasisStyle?: null | textEmphasisStyle,
|
|
1226
1422
|
textIndent?: null | textIndent,
|
|
1423
|
+
textJustify?:
|
|
1424
|
+
| null
|
|
1425
|
+
| 'none'
|
|
1426
|
+
| 'auto'
|
|
1427
|
+
| 'inter-word'
|
|
1428
|
+
| 'inter-character'
|
|
1429
|
+
| 'distribute',
|
|
1227
1430
|
textOrientation?: null | textOrientation,
|
|
1228
1431
|
textOverflow?: null | textOverflow,
|
|
1229
1432
|
textRendering?: null | textRendering,
|
|
1230
1433
|
textShadow?: null | OptionalArray<textShadow>,
|
|
1231
1434
|
textSizeAdjust?: null | textSizeAdjust,
|
|
1232
1435
|
textTransform?: null | textTransform,
|
|
1436
|
+
textUnderlineOffset?: null | number | string,
|
|
1233
1437
|
textUnderlinePosition?: null | textUnderlinePosition,
|
|
1438
|
+
textWrap?: null | 'wrap' | 'nowrap' | 'balance',
|
|
1439
|
+
|
|
1440
|
+
timelineScope?: null | string,
|
|
1234
1441
|
top?: null | top,
|
|
1235
1442
|
touchAction?: null | touchAction,
|
|
1443
|
+
|
|
1236
1444
|
transform?: null | transform,
|
|
1237
1445
|
transformBox?: null | transformBox,
|
|
1238
1446
|
transformOrigin?: null | transformOrigin,
|
|
1239
1447
|
transformStyle?: null | transformStyle,
|
|
1448
|
+
rotate?: null | number | string,
|
|
1449
|
+
scale?: null | number | string,
|
|
1450
|
+
translate?: null | number | string,
|
|
1451
|
+
|
|
1240
1452
|
transition?: null | OptionalArray<transition>,
|
|
1241
1453
|
transitionDelay?: null | OptionalArray<transitionDelay>,
|
|
1242
1454
|
transitionDuration?: null | OptionalArray<transitionDuration>,
|
|
@@ -1246,6 +1458,14 @@ export type CSSProperties = $ReadOnly<{
|
|
|
1246
1458
|
unicodeRange?: null | unicodeRange,
|
|
1247
1459
|
userSelect?: null | userSelect,
|
|
1248
1460
|
verticalAlign?: null | verticalAlign,
|
|
1461
|
+
|
|
1462
|
+
viewTimeline?: null | string,
|
|
1463
|
+
viewTimelineAxis?: null | 'block' | 'inline' | 'x' | 'y',
|
|
1464
|
+
viewTimelineName?: null | string,
|
|
1465
|
+
viewTimelineInset?: null | number | string,
|
|
1466
|
+
|
|
1467
|
+
viewTransitionName?: null | string,
|
|
1468
|
+
|
|
1249
1469
|
visibility?: null | visibility,
|
|
1250
1470
|
voiceBalance?: null | voiceBalance,
|
|
1251
1471
|
voiceDuration?: null | voiceDuration,
|
|
@@ -1256,6 +1476,8 @@ export type CSSProperties = $ReadOnly<{
|
|
|
1256
1476
|
voiceStress?: null | voiceStress,
|
|
1257
1477
|
voiceVolume?: null | voiceVolume,
|
|
1258
1478
|
whiteSpace?: null | whiteSpace,
|
|
1479
|
+
// whiteSpaceCollapse?: null | string,
|
|
1480
|
+
|
|
1259
1481
|
widows?: null | widows,
|
|
1260
1482
|
width?: null | width,
|
|
1261
1483
|
willChange?: null | willChange,
|
package/lib/StyleXTypes.d.ts
CHANGED
|
@@ -22,7 +22,10 @@ export type StyleXClassName = StyleXClassNameFor<any, any>;
|
|
|
22
22
|
export type StyleXArray<T> = T | ReadonlyArray<StyleXArray<T>>;
|
|
23
23
|
|
|
24
24
|
declare const StyleXVarTag: unique symbol;
|
|
25
|
-
|
|
25
|
+
declare class StyleXVar<out Val> extends String {
|
|
26
|
+
private _opaque: typeof StyleXVarTag;
|
|
27
|
+
private _value: Val;
|
|
28
|
+
}
|
|
26
29
|
|
|
27
30
|
// Strings that don't start with a dollar sign.
|
|
28
31
|
// So that we can `&` with {$$css: true} without type errors.
|
|
@@ -111,9 +114,13 @@ export type Stylex$Create = <
|
|
|
111
114
|
styles: S,
|
|
112
115
|
) => MapNamespaces<S>;
|
|
113
116
|
|
|
114
|
-
export type CompiledStyles =
|
|
115
|
-
|
|
116
|
-
|
|
117
|
+
export type CompiledStyles =
|
|
118
|
+
| Readonly<{
|
|
119
|
+
[key: string]: StyleXClassName | null | void | never;
|
|
120
|
+
}>
|
|
121
|
+
| Readonly<{
|
|
122
|
+
theme: StyleXClassName;
|
|
123
|
+
}>;
|
|
117
124
|
|
|
118
125
|
declare const StyleXInlineStylesTag: unique symbol;
|
|
119
126
|
|
|
@@ -152,27 +159,29 @@ export type StyleXStylesWithout<CSS extends UserAuthoredStyles> = StyleXStyles<
|
|
|
152
159
|
|
|
153
160
|
declare const StyleXVarGroupTag: unique symbol;
|
|
154
161
|
export type VarGroup<
|
|
155
|
-
Tokens extends { [key: string]:
|
|
162
|
+
Tokens extends { [key: string]: any },
|
|
156
163
|
ID extends symbol = symbol,
|
|
157
164
|
> = Readonly<{
|
|
158
|
-
[Key in keyof Tokens]: Tokens[Key]
|
|
159
|
-
}> &
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
165
|
+
[Key in keyof Tokens]: StyleXVar<Tokens[Key]>;
|
|
166
|
+
}> &
|
|
167
|
+
Readonly<{
|
|
168
|
+
$opaqueId: ID;
|
|
169
|
+
$tokens: Tokens;
|
|
170
|
+
}> &
|
|
171
|
+
typeof StyleXVarGroupTag;
|
|
163
172
|
|
|
164
|
-
export type TokensFromVarGroup<T extends VarGroup<
|
|
173
|
+
export type TokensFromVarGroup<T extends VarGroup<unknown, unknown>> =
|
|
174
|
+
T['$tokens'];
|
|
165
175
|
|
|
166
|
-
export type IDFromVarGroup<T extends VarGroup<
|
|
176
|
+
export type IDFromVarGroup<T extends VarGroup<unknown, unknown>> =
|
|
177
|
+
T['$opaqueId'];
|
|
167
178
|
|
|
168
|
-
type TTokens = {
|
|
169
|
-
[key: string]: string | {
|
|
170
|
-
}
|
|
179
|
+
type TTokens = Readonly<{
|
|
180
|
+
[key: string]: string | { [key: string]: string };
|
|
181
|
+
}>;
|
|
171
182
|
|
|
172
183
|
export type FlattenTokens<T extends TTokens> = Readonly<{
|
|
173
|
-
[Key in keyof T]: T[Key] extends { [key: string]: infer X }
|
|
174
|
-
? StyleXVar<X>
|
|
175
|
-
: StyleXVar<T[Key]>;
|
|
184
|
+
[Key in keyof T]: T[Key] extends { [key: string]: infer X } ? X : T[Key];
|
|
176
185
|
}>;
|
|
177
186
|
|
|
178
187
|
export type StyleX$DefineVars = <
|
|
@@ -183,24 +192,23 @@ export type StyleX$DefineVars = <
|
|
|
183
192
|
) => VarGroup<FlattenTokens<DefaultTokens>, ID>;
|
|
184
193
|
|
|
185
194
|
export type Theme<
|
|
186
|
-
T extends VarGroup<
|
|
187
|
-
// eslint-disable-next-line no-unused-vars
|
|
195
|
+
T extends VarGroup<unknown, symbol>,
|
|
188
196
|
Tag extends symbol = symbol,
|
|
189
197
|
> = Tag &
|
|
190
198
|
Readonly<{
|
|
191
199
|
theme: StyleXClassNameFor<string, IDFromVarGroup<T>>;
|
|
192
200
|
}>;
|
|
193
201
|
|
|
194
|
-
type OverridesForTokenType<Config extends { [key: string]:
|
|
202
|
+
type OverridesForTokenType<Config extends { [key: string]: unknown }> = {
|
|
195
203
|
[Key in keyof Config]:
|
|
196
204
|
| Config[Key]
|
|
197
205
|
| { default: Config[Key]; [atRule: AtRuleStr]: Config[Key] };
|
|
198
206
|
};
|
|
199
207
|
|
|
200
208
|
export type StyleX$CreateTheme = <
|
|
201
|
-
|
|
202
|
-
|
|
209
|
+
TVars extends VarGroup<unknown, unknown>,
|
|
210
|
+
ThemeID extends symbol = symbol,
|
|
203
211
|
>(
|
|
204
|
-
baseTokens:
|
|
205
|
-
overrides: OverridesForTokenType<TokensFromVarGroup<
|
|
206
|
-
) => Theme<
|
|
212
|
+
baseTokens: TVars,
|
|
213
|
+
overrides: OverridesForTokenType<TokensFromVarGroup<TVars>>,
|
|
214
|
+
) => Theme<TVars, ThemeID>;
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stylexjs/stylex",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.27",
|
|
4
4
|
"description": "A library for defining styles for optimized user interfaces.",
|
|
5
5
|
"main": "lib/stylex.js",
|
|
6
|
-
"react-native": "lib/native/stylex.js",
|
|
7
6
|
"types": "lib/stylex.d.ts",
|
|
8
7
|
"repository": "https://www.github.com/facebook/stylex",
|
|
9
8
|
"license": "MIT",
|
|
@@ -20,7 +19,7 @@
|
|
|
20
19
|
"utility-types": "^3.10.0"
|
|
21
20
|
},
|
|
22
21
|
"devDependencies": {
|
|
23
|
-
"@stylexjs/scripts": "0.2.0-beta.
|
|
22
|
+
"@stylexjs/scripts": "0.2.0-beta.27"
|
|
24
23
|
},
|
|
25
24
|
"jest": {},
|
|
26
25
|
"files": [
|