@webstudio-is/css-data 0.82.0 → 0.84.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.
- package/LICENSE +661 -21
- package/lib/__generated__/keyword-values.js +38 -2
- package/lib/__generated__/properties.js +101 -11
- package/lib/cjs/__generated__/keyword-values.js +38 -2
- package/lib/cjs/__generated__/properties.js +101 -11
- package/lib/cjs/custom-data.js +64 -0
- package/lib/cjs/html-check.js +23 -0
- package/lib/cjs/html.js +353 -308
- package/lib/cjs/property-parsers/box-shadow.js +1 -0
- package/lib/custom-data.js +44 -0
- package/lib/html-check.js +1 -0
- package/lib/html.js +353 -308
- package/lib/property-parsers/box-shadow.js +1 -0
- package/lib/types/__generated__/keyword-values.d.ts +11 -2
- package/lib/types/__generated__/properties.d.ts +101 -11
- package/lib/types/custom-data.d.ts +15 -0
- package/lib/types/html.d.ts +8 -0
- package/lib/types/index.d.ts +101 -11
- package/package.json +8 -8
- package/src/__generated__/keyword-values.ts +38 -2
- package/src/__generated__/properties.ts +101 -11
- package/src/custom-data.ts +57 -0
- package/src/html.ts +387 -330
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export declare const keywordValues: {
|
|
2
|
+
readonly WebkitFontSmoothing: readonly ["auto", "none", "antialiased", "subpixel-antialiased"];
|
|
3
|
+
readonly MozOsxFontSmoothing: readonly ["auto", "grayscale"];
|
|
4
|
+
readonly listStyleType: readonly ["disc", "circle", "square", "decimal", "georgian", "trad-chinese-informal", "kannada", "none", "initial", "inherit", "unset"];
|
|
2
5
|
readonly accentColor: readonly ["auto", "transparent", "aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkslategrey", "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "green", "greenyellow", "grey", "honeydew", "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink", "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey", "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta", "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin", "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered", "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue", "slateblue", "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan", "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white", "whitesmoke", "yellow", "yellowgreen", "currentColor", "initial", "inherit", "unset"];
|
|
3
6
|
readonly alignContent: readonly ["normal", "first", "last", "baseline", "space-between", "space-around", "space-evenly", "stretch", "unsafe", "safe", "center", "start", "end", "flex-start", "flex-end", "initial", "inherit", "unset"];
|
|
4
7
|
readonly alignItems: readonly ["normal", "stretch", "first", "last", "baseline", "unsafe", "safe", "center", "start", "end", "self-start", "self-end", "flex-start", "flex-end", "initial", "inherit", "unset"];
|
|
@@ -90,7 +93,6 @@ export declare const keywordValues: {
|
|
|
90
93
|
readonly clip: readonly ["auto", "initial", "inherit", "unset"];
|
|
91
94
|
readonly clipPath: readonly ["border-box", "padding-box", "content-box", "margin-box", "fill-box", "stroke-box", "view-box", "none", "initial", "inherit", "unset"];
|
|
92
95
|
readonly color: readonly ["transparent", "aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkslategrey", "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "green", "greenyellow", "grey", "honeydew", "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink", "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey", "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta", "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin", "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered", "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue", "slateblue", "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan", "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white", "whitesmoke", "yellow", "yellowgreen", "currentColor", "initial", "inherit", "unset"];
|
|
93
|
-
readonly printColorAdjust: readonly ["economy", "exact", "initial", "inherit", "unset"];
|
|
94
96
|
readonly colorScheme: readonly ["normal", "light", "dark", "only", "initial", "inherit", "unset"];
|
|
95
97
|
readonly columnCount: readonly ["auto", "initial", "inherit", "unset"];
|
|
96
98
|
readonly columnFill: readonly ["auto", "balance", "balance-all", "initial", "inherit", "unset"];
|
|
@@ -105,6 +107,8 @@ export declare const keywordValues: {
|
|
|
105
107
|
readonly containIntrinsicHeight: readonly ["none", "auto", "initial", "inherit", "unset"];
|
|
106
108
|
readonly containIntrinsicInlineSize: readonly ["none", "auto", "initial", "inherit", "unset"];
|
|
107
109
|
readonly containIntrinsicWidth: readonly ["none", "auto", "initial", "inherit", "unset"];
|
|
110
|
+
readonly containerName: readonly ["none", "initial", "inherit", "unset"];
|
|
111
|
+
readonly containerType: readonly ["normal", "size", "inline-size", "initial", "inherit", "unset"];
|
|
108
112
|
readonly content: readonly ["normal", "none", "contents", "open-quote", "close-quote", "no-open-quote", "no-close-quote", "initial", "inherit", "unset"];
|
|
109
113
|
readonly contentVisibility: readonly ["visible", "auto", "hidden", "initial", "inherit", "unset"];
|
|
110
114
|
readonly counterIncrement: readonly ["none", "initial", "inherit", "unset"];
|
|
@@ -126,6 +130,7 @@ export declare const keywordValues: {
|
|
|
126
130
|
readonly fontKerning: readonly ["auto", "normal", "none", "initial", "inherit", "unset"];
|
|
127
131
|
readonly fontLanguageOverride: readonly ["normal", "initial", "inherit", "unset"];
|
|
128
132
|
readonly fontOpticalSizing: readonly ["auto", "none", "initial", "inherit", "unset"];
|
|
133
|
+
readonly fontPalette: readonly ["normal", "light", "dark", "initial", "inherit", "unset"];
|
|
129
134
|
readonly fontVariationSettings: readonly ["normal", "initial", "inherit", "unset"];
|
|
130
135
|
readonly fontSize: readonly ["xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "larger", "smaller", "initial", "inherit", "unset"];
|
|
131
136
|
readonly fontSizeAdjust: readonly ["none", "ex-height", "cap-height", "ch-width", "ic-width", "ic-height", "from-font", "initial", "inherit", "unset"];
|
|
@@ -136,6 +141,7 @@ export declare const keywordValues: {
|
|
|
136
141
|
readonly fontVariantAlternates: readonly ["normal", "historical-forms", "initial", "inherit", "unset"];
|
|
137
142
|
readonly fontVariantCaps: readonly ["normal", "small-caps", "all-small-caps", "petite-caps", "all-petite-caps", "unicase", "titling-caps", "initial", "inherit", "unset"];
|
|
138
143
|
readonly fontVariantEastAsian: readonly ["normal", "jis78", "jis83", "jis90", "jis04", "simplified", "traditional", "full-width", "proportional-width", "ruby", "initial", "inherit", "unset"];
|
|
144
|
+
readonly fontVariantEmoji: readonly ["normal", "text", "emoji", "unicode", "initial", "inherit", "unset"];
|
|
139
145
|
readonly fontVariantLigatures: readonly ["normal", "none", "common-ligatures", "no-common-ligatures", "discretionary-ligatures", "no-discretionary-ligatures", "historical-ligatures", "no-historical-ligatures", "contextual", "no-contextual", "initial", "inherit", "unset"];
|
|
140
146
|
readonly fontVariantNumeric: readonly ["normal", "lining-nums", "oldstyle-nums", "proportional-nums", "tabular-nums", "diagonal-fractions", "stacked-fractions", "ordinal", "slashed-zero", "initial", "inherit", "unset"];
|
|
141
147
|
readonly fontVariantPosition: readonly ["normal", "sub", "super", "initial", "inherit", "unset"];
|
|
@@ -154,6 +160,7 @@ export declare const keywordValues: {
|
|
|
154
160
|
readonly hangingPunctuation: readonly ["none", "first", "force-end", "allow-end", "last", "initial", "inherit", "unset"];
|
|
155
161
|
readonly height: readonly ["auto", "min-content", "max-content", "fit-content", "initial", "inherit", "unset"];
|
|
156
162
|
readonly hyphenateCharacter: readonly ["auto", "initial", "inherit", "unset"];
|
|
163
|
+
readonly hyphenateLimitChars: readonly ["auto", "initial", "inherit", "unset"];
|
|
157
164
|
readonly hyphens: readonly ["none", "manual", "auto", "initial", "inherit", "unset"];
|
|
158
165
|
readonly imageOrientation: readonly ["from-image", "flip", "initial", "inherit", "unset"];
|
|
159
166
|
readonly imageRendering: readonly ["auto", "crisp-edges", "pixelated", "initial", "inherit", "unset"];
|
|
@@ -179,7 +186,6 @@ export declare const keywordValues: {
|
|
|
179
186
|
readonly lineHeightStep: readonly ["initial", "inherit", "unset"];
|
|
180
187
|
readonly listStyleImage: readonly ["none", "initial", "inherit", "unset"];
|
|
181
188
|
readonly listStylePosition: readonly ["inside", "outside", "initial", "inherit", "unset"];
|
|
182
|
-
readonly listStyleType: readonly ["none", "initial", "inherit", "unset"];
|
|
183
189
|
readonly marginBlockEnd: readonly ["auto", "initial", "inherit", "unset"];
|
|
184
190
|
readonly marginBlockStart: readonly ["auto", "initial", "inherit", "unset"];
|
|
185
191
|
readonly marginBottom: readonly ["auto", "initial", "inherit", "unset"];
|
|
@@ -253,6 +259,7 @@ export declare const keywordValues: {
|
|
|
253
259
|
readonly paddingLeft: readonly ["initial", "inherit", "unset"];
|
|
254
260
|
readonly paddingRight: readonly ["initial", "inherit", "unset"];
|
|
255
261
|
readonly paddingTop: readonly ["initial", "inherit", "unset"];
|
|
262
|
+
readonly page: readonly ["auto", "initial", "inherit", "unset"];
|
|
256
263
|
readonly pageBreakAfter: readonly ["auto", "always", "avoid", "left", "right", "recto", "verso", "initial", "inherit", "unset"];
|
|
257
264
|
readonly pageBreakBefore: readonly ["auto", "always", "avoid", "left", "right", "recto", "verso", "initial", "inherit", "unset"];
|
|
258
265
|
readonly pageBreakInside: readonly ["auto", "avoid", "initial", "inherit", "unset"];
|
|
@@ -261,6 +268,7 @@ export declare const keywordValues: {
|
|
|
261
268
|
readonly perspectiveOrigin: readonly ["left", "center", "right", "top", "bottom", "initial", "inherit", "unset"];
|
|
262
269
|
readonly pointerEvents: readonly ["auto", "none", "visiblePainted", "visibleFill", "visibleStroke", "visible", "painted", "fill", "stroke", "all", "initial", "inherit", "unset"];
|
|
263
270
|
readonly position: readonly ["static", "relative", "absolute", "sticky", "fixed", "initial", "inherit", "unset"];
|
|
271
|
+
readonly printColorAdjust: readonly ["economy", "exact", "initial", "inherit", "unset"];
|
|
264
272
|
readonly quotes: readonly ["none", "auto", "initial", "inherit", "unset"];
|
|
265
273
|
readonly resize: readonly ["none", "both", "horizontal", "vertical", "block", "inline", "initial", "inherit", "unset"];
|
|
266
274
|
readonly right: readonly ["auto", "initial", "inherit", "unset"];
|
|
@@ -336,6 +344,7 @@ export declare const keywordValues: {
|
|
|
336
344
|
readonly unicodeBidi: readonly ["normal", "embed", "isolate", "bidi-override", "isolate-override", "plaintext", "initial", "inherit", "unset"];
|
|
337
345
|
readonly userSelect: readonly ["auto", "text", "none", "contain", "all", "initial", "inherit", "unset"];
|
|
338
346
|
readonly verticalAlign: readonly ["baseline", "sub", "super", "text-top", "text-bottom", "middle", "top", "bottom", "initial", "inherit", "unset"];
|
|
347
|
+
readonly viewTransitionName: readonly ["none", "initial", "inherit", "unset"];
|
|
339
348
|
readonly visibility: readonly ["visible", "hidden", "collapse", "initial", "inherit", "unset"];
|
|
340
349
|
readonly whiteSpace: readonly ["normal", "pre", "nowrap", "pre-wrap", "pre-line", "break-spaces", "initial", "inherit", "unset"];
|
|
341
350
|
readonly widows: readonly ["initial", "inherit", "unset"];
|
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
export declare const properties: {
|
|
2
|
+
readonly WebkitFontSmoothing: {
|
|
3
|
+
readonly unitGroups: readonly [];
|
|
4
|
+
readonly inherited: true;
|
|
5
|
+
readonly initial: {
|
|
6
|
+
readonly type: "keyword";
|
|
7
|
+
readonly value: "auto";
|
|
8
|
+
};
|
|
9
|
+
readonly popularity: 0.61281794;
|
|
10
|
+
readonly appliesTo: "allElements";
|
|
11
|
+
};
|
|
12
|
+
readonly MozOsxFontSmoothing: {
|
|
13
|
+
readonly unitGroups: readonly [];
|
|
14
|
+
readonly inherited: true;
|
|
15
|
+
readonly initial: {
|
|
16
|
+
readonly type: "keyword";
|
|
17
|
+
readonly value: "auto";
|
|
18
|
+
};
|
|
19
|
+
readonly popularity: 0;
|
|
20
|
+
readonly appliesTo: "allElements";
|
|
21
|
+
};
|
|
2
22
|
readonly accentColor: {
|
|
3
23
|
readonly unitGroups: readonly [];
|
|
4
24
|
readonly inherited: true;
|
|
@@ -934,16 +954,6 @@ export declare const properties: {
|
|
|
934
954
|
readonly popularity: 0.90791486;
|
|
935
955
|
readonly appliesTo: "allElementsAndText";
|
|
936
956
|
};
|
|
937
|
-
readonly printColorAdjust: {
|
|
938
|
-
readonly unitGroups: readonly [];
|
|
939
|
-
readonly inherited: true;
|
|
940
|
-
readonly initial: {
|
|
941
|
-
readonly type: "keyword";
|
|
942
|
-
readonly value: "economy";
|
|
943
|
-
};
|
|
944
|
-
readonly popularity: 0;
|
|
945
|
-
readonly appliesTo: "allElements";
|
|
946
|
-
};
|
|
947
957
|
readonly colorScheme: {
|
|
948
958
|
readonly unitGroups: readonly [];
|
|
949
959
|
readonly inherited: true;
|
|
@@ -1085,6 +1095,26 @@ export declare const properties: {
|
|
|
1085
1095
|
readonly popularity: 0;
|
|
1086
1096
|
readonly appliesTo: "elementsForWhichSizeContainmentCanApply";
|
|
1087
1097
|
};
|
|
1098
|
+
readonly containerName: {
|
|
1099
|
+
readonly unitGroups: readonly [];
|
|
1100
|
+
readonly inherited: false;
|
|
1101
|
+
readonly initial: {
|
|
1102
|
+
readonly type: "keyword";
|
|
1103
|
+
readonly value: "none";
|
|
1104
|
+
};
|
|
1105
|
+
readonly popularity: 0;
|
|
1106
|
+
readonly appliesTo: "allElements";
|
|
1107
|
+
};
|
|
1108
|
+
readonly containerType: {
|
|
1109
|
+
readonly unitGroups: readonly [];
|
|
1110
|
+
readonly inherited: false;
|
|
1111
|
+
readonly initial: {
|
|
1112
|
+
readonly type: "keyword";
|
|
1113
|
+
readonly value: "normal";
|
|
1114
|
+
};
|
|
1115
|
+
readonly popularity: 0;
|
|
1116
|
+
readonly appliesTo: "allElements";
|
|
1117
|
+
};
|
|
1088
1118
|
readonly content: {
|
|
1089
1119
|
readonly unitGroups: readonly [];
|
|
1090
1120
|
readonly inherited: false;
|
|
@@ -1103,7 +1133,7 @@ export declare const properties: {
|
|
|
1103
1133
|
readonly value: "visible";
|
|
1104
1134
|
};
|
|
1105
1135
|
readonly popularity: 0.04199404;
|
|
1106
|
-
readonly appliesTo: "
|
|
1136
|
+
readonly appliesTo: "elementsForWhichSizeContainmentCanApply";
|
|
1107
1137
|
};
|
|
1108
1138
|
readonly counterIncrement: {
|
|
1109
1139
|
readonly unitGroups: readonly ["number"];
|
|
@@ -1297,6 +1327,16 @@ export declare const properties: {
|
|
|
1297
1327
|
readonly popularity: 0.0006232;
|
|
1298
1328
|
readonly appliesTo: "allElements";
|
|
1299
1329
|
};
|
|
1330
|
+
readonly fontPalette: {
|
|
1331
|
+
readonly unitGroups: readonly [];
|
|
1332
|
+
readonly inherited: true;
|
|
1333
|
+
readonly initial: {
|
|
1334
|
+
readonly type: "keyword";
|
|
1335
|
+
readonly value: "normal";
|
|
1336
|
+
};
|
|
1337
|
+
readonly popularity: 0;
|
|
1338
|
+
readonly appliesTo: "allElementsAndText";
|
|
1339
|
+
};
|
|
1300
1340
|
readonly fontVariationSettings: {
|
|
1301
1341
|
readonly unitGroups: readonly ["number"];
|
|
1302
1342
|
readonly inherited: true;
|
|
@@ -1403,6 +1443,16 @@ export declare const properties: {
|
|
|
1403
1443
|
readonly popularity: 0.00328361;
|
|
1404
1444
|
readonly appliesTo: "allElements";
|
|
1405
1445
|
};
|
|
1446
|
+
readonly fontVariantEmoji: {
|
|
1447
|
+
readonly unitGroups: readonly [];
|
|
1448
|
+
readonly inherited: true;
|
|
1449
|
+
readonly initial: {
|
|
1450
|
+
readonly type: "keyword";
|
|
1451
|
+
readonly value: "normal";
|
|
1452
|
+
};
|
|
1453
|
+
readonly popularity: 0;
|
|
1454
|
+
readonly appliesTo: "allElementsAndText";
|
|
1455
|
+
};
|
|
1406
1456
|
readonly fontVariantLigatures: {
|
|
1407
1457
|
readonly unitGroups: readonly [];
|
|
1408
1458
|
readonly inherited: true;
|
|
@@ -1583,6 +1633,16 @@ export declare const properties: {
|
|
|
1583
1633
|
readonly popularity: 0;
|
|
1584
1634
|
readonly appliesTo: "allElements";
|
|
1585
1635
|
};
|
|
1636
|
+
readonly hyphenateLimitChars: {
|
|
1637
|
+
readonly unitGroups: readonly ["number"];
|
|
1638
|
+
readonly inherited: true;
|
|
1639
|
+
readonly initial: {
|
|
1640
|
+
readonly type: "keyword";
|
|
1641
|
+
readonly value: "auto";
|
|
1642
|
+
};
|
|
1643
|
+
readonly popularity: 0;
|
|
1644
|
+
readonly appliesTo: "allElements";
|
|
1645
|
+
};
|
|
1586
1646
|
readonly hyphens: {
|
|
1587
1647
|
readonly unitGroups: readonly [];
|
|
1588
1648
|
readonly inherited: true;
|
|
@@ -2610,6 +2670,16 @@ export declare const properties: {
|
|
|
2610
2670
|
readonly popularity: 0.82360295;
|
|
2611
2671
|
readonly appliesTo: "allElementsExceptInternalTableDisplayTypes";
|
|
2612
2672
|
};
|
|
2673
|
+
readonly page: {
|
|
2674
|
+
readonly unitGroups: readonly [];
|
|
2675
|
+
readonly inherited: false;
|
|
2676
|
+
readonly initial: {
|
|
2677
|
+
readonly type: "keyword";
|
|
2678
|
+
readonly value: "auto";
|
|
2679
|
+
};
|
|
2680
|
+
readonly popularity: 0.00131264;
|
|
2681
|
+
readonly appliesTo: "blockElementsInNormalFlow";
|
|
2682
|
+
};
|
|
2613
2683
|
readonly pageBreakAfter: {
|
|
2614
2684
|
readonly unitGroups: readonly [];
|
|
2615
2685
|
readonly inherited: false;
|
|
@@ -2698,6 +2768,16 @@ export declare const properties: {
|
|
|
2698
2768
|
readonly popularity: 0.92435004;
|
|
2699
2769
|
readonly appliesTo: "allElements";
|
|
2700
2770
|
};
|
|
2771
|
+
readonly printColorAdjust: {
|
|
2772
|
+
readonly unitGroups: readonly [];
|
|
2773
|
+
readonly inherited: true;
|
|
2774
|
+
readonly initial: {
|
|
2775
|
+
readonly type: "keyword";
|
|
2776
|
+
readonly value: "economy";
|
|
2777
|
+
};
|
|
2778
|
+
readonly popularity: 0;
|
|
2779
|
+
readonly appliesTo: "allElements";
|
|
2780
|
+
};
|
|
2701
2781
|
readonly quotes: {
|
|
2702
2782
|
readonly unitGroups: readonly [];
|
|
2703
2783
|
readonly inherited: true;
|
|
@@ -3481,6 +3561,16 @@ export declare const properties: {
|
|
|
3481
3561
|
readonly popularity: 0.84531302;
|
|
3482
3562
|
readonly appliesTo: "inlineLevelAndTableCellElements";
|
|
3483
3563
|
};
|
|
3564
|
+
readonly viewTransitionName: {
|
|
3565
|
+
readonly unitGroups: readonly [];
|
|
3566
|
+
readonly inherited: false;
|
|
3567
|
+
readonly initial: {
|
|
3568
|
+
readonly type: "keyword";
|
|
3569
|
+
readonly value: "none";
|
|
3570
|
+
};
|
|
3571
|
+
readonly popularity: 0;
|
|
3572
|
+
readonly appliesTo: "allElements";
|
|
3573
|
+
};
|
|
3484
3574
|
readonly visibility: {
|
|
3485
3575
|
readonly unitGroups: readonly [];
|
|
3486
3576
|
readonly inherited: true;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StyleValue } from "./schema";
|
|
2
|
+
type RawPropertyData = {
|
|
3
|
+
unitGroups: string[];
|
|
4
|
+
inherited: boolean;
|
|
5
|
+
initial: StyleValue;
|
|
6
|
+
popularity: number;
|
|
7
|
+
appliesTo: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const propertiesData: {
|
|
10
|
+
[property: string]: RawPropertyData;
|
|
11
|
+
};
|
|
12
|
+
export declare const keywordValues: {
|
|
13
|
+
[property: string]: Array<string>;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
package/lib/types/html.d.ts
CHANGED
|
@@ -52,3 +52,11 @@ export declare const ul: Styles;
|
|
|
52
52
|
export declare const ol: Styles;
|
|
53
53
|
export declare const li: Styles;
|
|
54
54
|
export declare const hr: Styles;
|
|
55
|
+
export declare const legend: Styles;
|
|
56
|
+
export declare const fieldset: Styles;
|
|
57
|
+
export declare const label: Styles;
|
|
58
|
+
export declare const input: Styles;
|
|
59
|
+
export declare const textarea: Styles;
|
|
60
|
+
export declare const select: Styles;
|
|
61
|
+
export declare const option: Styles;
|
|
62
|
+
export declare const button: Styles;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -8,6 +8,26 @@ export * from "./property-parsers/index";
|
|
|
8
8
|
export * from "./parse-css-value";
|
|
9
9
|
export * from "./parse-css";
|
|
10
10
|
export declare const properties: import("type-fest/source/writable-deep").WritableObjectDeep<{
|
|
11
|
+
readonly WebkitFontSmoothing: {
|
|
12
|
+
readonly unitGroups: readonly [];
|
|
13
|
+
readonly inherited: true;
|
|
14
|
+
readonly initial: {
|
|
15
|
+
readonly type: "keyword";
|
|
16
|
+
readonly value: "auto";
|
|
17
|
+
};
|
|
18
|
+
readonly popularity: 0.61281794;
|
|
19
|
+
readonly appliesTo: "allElements";
|
|
20
|
+
};
|
|
21
|
+
readonly MozOsxFontSmoothing: {
|
|
22
|
+
readonly unitGroups: readonly [];
|
|
23
|
+
readonly inherited: true;
|
|
24
|
+
readonly initial: {
|
|
25
|
+
readonly type: "keyword";
|
|
26
|
+
readonly value: "auto";
|
|
27
|
+
};
|
|
28
|
+
readonly popularity: 0;
|
|
29
|
+
readonly appliesTo: "allElements";
|
|
30
|
+
};
|
|
11
31
|
readonly accentColor: {
|
|
12
32
|
readonly unitGroups: readonly [];
|
|
13
33
|
readonly inherited: true;
|
|
@@ -943,16 +963,6 @@ export declare const properties: import("type-fest/source/writable-deep").Writab
|
|
|
943
963
|
readonly popularity: 0.90791486;
|
|
944
964
|
readonly appliesTo: "allElementsAndText";
|
|
945
965
|
};
|
|
946
|
-
readonly printColorAdjust: {
|
|
947
|
-
readonly unitGroups: readonly [];
|
|
948
|
-
readonly inherited: true;
|
|
949
|
-
readonly initial: {
|
|
950
|
-
readonly type: "keyword";
|
|
951
|
-
readonly value: "economy";
|
|
952
|
-
};
|
|
953
|
-
readonly popularity: 0;
|
|
954
|
-
readonly appliesTo: "allElements";
|
|
955
|
-
};
|
|
956
966
|
readonly colorScheme: {
|
|
957
967
|
readonly unitGroups: readonly [];
|
|
958
968
|
readonly inherited: true;
|
|
@@ -1094,6 +1104,26 @@ export declare const properties: import("type-fest/source/writable-deep").Writab
|
|
|
1094
1104
|
readonly popularity: 0;
|
|
1095
1105
|
readonly appliesTo: "elementsForWhichSizeContainmentCanApply";
|
|
1096
1106
|
};
|
|
1107
|
+
readonly containerName: {
|
|
1108
|
+
readonly unitGroups: readonly [];
|
|
1109
|
+
readonly inherited: false;
|
|
1110
|
+
readonly initial: {
|
|
1111
|
+
readonly type: "keyword";
|
|
1112
|
+
readonly value: "none";
|
|
1113
|
+
};
|
|
1114
|
+
readonly popularity: 0;
|
|
1115
|
+
readonly appliesTo: "allElements";
|
|
1116
|
+
};
|
|
1117
|
+
readonly containerType: {
|
|
1118
|
+
readonly unitGroups: readonly [];
|
|
1119
|
+
readonly inherited: false;
|
|
1120
|
+
readonly initial: {
|
|
1121
|
+
readonly type: "keyword";
|
|
1122
|
+
readonly value: "normal";
|
|
1123
|
+
};
|
|
1124
|
+
readonly popularity: 0;
|
|
1125
|
+
readonly appliesTo: "allElements";
|
|
1126
|
+
};
|
|
1097
1127
|
readonly content: {
|
|
1098
1128
|
readonly unitGroups: readonly [];
|
|
1099
1129
|
readonly inherited: false;
|
|
@@ -1112,7 +1142,7 @@ export declare const properties: import("type-fest/source/writable-deep").Writab
|
|
|
1112
1142
|
readonly value: "visible";
|
|
1113
1143
|
};
|
|
1114
1144
|
readonly popularity: 0.04199404;
|
|
1115
|
-
readonly appliesTo: "
|
|
1145
|
+
readonly appliesTo: "elementsForWhichSizeContainmentCanApply";
|
|
1116
1146
|
};
|
|
1117
1147
|
readonly counterIncrement: {
|
|
1118
1148
|
readonly unitGroups: readonly ["number"];
|
|
@@ -1306,6 +1336,16 @@ export declare const properties: import("type-fest/source/writable-deep").Writab
|
|
|
1306
1336
|
readonly popularity: 0.0006232;
|
|
1307
1337
|
readonly appliesTo: "allElements";
|
|
1308
1338
|
};
|
|
1339
|
+
readonly fontPalette: {
|
|
1340
|
+
readonly unitGroups: readonly [];
|
|
1341
|
+
readonly inherited: true;
|
|
1342
|
+
readonly initial: {
|
|
1343
|
+
readonly type: "keyword";
|
|
1344
|
+
readonly value: "normal";
|
|
1345
|
+
};
|
|
1346
|
+
readonly popularity: 0;
|
|
1347
|
+
readonly appliesTo: "allElementsAndText";
|
|
1348
|
+
};
|
|
1309
1349
|
readonly fontVariationSettings: {
|
|
1310
1350
|
readonly unitGroups: readonly ["number"];
|
|
1311
1351
|
readonly inherited: true;
|
|
@@ -1412,6 +1452,16 @@ export declare const properties: import("type-fest/source/writable-deep").Writab
|
|
|
1412
1452
|
readonly popularity: 0.00328361;
|
|
1413
1453
|
readonly appliesTo: "allElements";
|
|
1414
1454
|
};
|
|
1455
|
+
readonly fontVariantEmoji: {
|
|
1456
|
+
readonly unitGroups: readonly [];
|
|
1457
|
+
readonly inherited: true;
|
|
1458
|
+
readonly initial: {
|
|
1459
|
+
readonly type: "keyword";
|
|
1460
|
+
readonly value: "normal";
|
|
1461
|
+
};
|
|
1462
|
+
readonly popularity: 0;
|
|
1463
|
+
readonly appliesTo: "allElementsAndText";
|
|
1464
|
+
};
|
|
1415
1465
|
readonly fontVariantLigatures: {
|
|
1416
1466
|
readonly unitGroups: readonly [];
|
|
1417
1467
|
readonly inherited: true;
|
|
@@ -1592,6 +1642,16 @@ export declare const properties: import("type-fest/source/writable-deep").Writab
|
|
|
1592
1642
|
readonly popularity: 0;
|
|
1593
1643
|
readonly appliesTo: "allElements";
|
|
1594
1644
|
};
|
|
1645
|
+
readonly hyphenateLimitChars: {
|
|
1646
|
+
readonly unitGroups: readonly ["number"];
|
|
1647
|
+
readonly inherited: true;
|
|
1648
|
+
readonly initial: {
|
|
1649
|
+
readonly type: "keyword";
|
|
1650
|
+
readonly value: "auto";
|
|
1651
|
+
};
|
|
1652
|
+
readonly popularity: 0;
|
|
1653
|
+
readonly appliesTo: "allElements";
|
|
1654
|
+
};
|
|
1595
1655
|
readonly hyphens: {
|
|
1596
1656
|
readonly unitGroups: readonly [];
|
|
1597
1657
|
readonly inherited: true;
|
|
@@ -2619,6 +2679,16 @@ export declare const properties: import("type-fest/source/writable-deep").Writab
|
|
|
2619
2679
|
readonly popularity: 0.82360295;
|
|
2620
2680
|
readonly appliesTo: "allElementsExceptInternalTableDisplayTypes";
|
|
2621
2681
|
};
|
|
2682
|
+
readonly page: {
|
|
2683
|
+
readonly unitGroups: readonly [];
|
|
2684
|
+
readonly inherited: false;
|
|
2685
|
+
readonly initial: {
|
|
2686
|
+
readonly type: "keyword";
|
|
2687
|
+
readonly value: "auto";
|
|
2688
|
+
};
|
|
2689
|
+
readonly popularity: 0.00131264;
|
|
2690
|
+
readonly appliesTo: "blockElementsInNormalFlow";
|
|
2691
|
+
};
|
|
2622
2692
|
readonly pageBreakAfter: {
|
|
2623
2693
|
readonly unitGroups: readonly [];
|
|
2624
2694
|
readonly inherited: false;
|
|
@@ -2707,6 +2777,16 @@ export declare const properties: import("type-fest/source/writable-deep").Writab
|
|
|
2707
2777
|
readonly popularity: 0.92435004;
|
|
2708
2778
|
readonly appliesTo: "allElements";
|
|
2709
2779
|
};
|
|
2780
|
+
readonly printColorAdjust: {
|
|
2781
|
+
readonly unitGroups: readonly [];
|
|
2782
|
+
readonly inherited: true;
|
|
2783
|
+
readonly initial: {
|
|
2784
|
+
readonly type: "keyword";
|
|
2785
|
+
readonly value: "economy";
|
|
2786
|
+
};
|
|
2787
|
+
readonly popularity: 0;
|
|
2788
|
+
readonly appliesTo: "allElements";
|
|
2789
|
+
};
|
|
2710
2790
|
readonly quotes: {
|
|
2711
2791
|
readonly unitGroups: readonly [];
|
|
2712
2792
|
readonly inherited: true;
|
|
@@ -3490,6 +3570,16 @@ export declare const properties: import("type-fest/source/writable-deep").Writab
|
|
|
3490
3570
|
readonly popularity: 0.84531302;
|
|
3491
3571
|
readonly appliesTo: "inlineLevelAndTableCellElements";
|
|
3492
3572
|
};
|
|
3573
|
+
readonly viewTransitionName: {
|
|
3574
|
+
readonly unitGroups: readonly [];
|
|
3575
|
+
readonly inherited: false;
|
|
3576
|
+
readonly initial: {
|
|
3577
|
+
readonly type: "keyword";
|
|
3578
|
+
readonly value: "none";
|
|
3579
|
+
};
|
|
3580
|
+
readonly popularity: 0;
|
|
3581
|
+
readonly appliesTo: "allElements";
|
|
3582
|
+
};
|
|
3493
3583
|
readonly visibility: {
|
|
3494
3584
|
readonly unitGroups: readonly [];
|
|
3495
3585
|
readonly inherited: true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/css-data",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.0",
|
|
4
4
|
"description": "CSS Data",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
"@types/css-tree": "^2.3.1",
|
|
10
10
|
"camelcase": "^7.0.1",
|
|
11
11
|
"html-tags": "^3.3.1",
|
|
12
|
-
"jest": "^29.6.
|
|
13
|
-
"mdn-data": "2.0.
|
|
12
|
+
"jest": "^29.6.2",
|
|
13
|
+
"mdn-data": "2.0.32",
|
|
14
14
|
"tsx": "^3.12.6",
|
|
15
15
|
"type-fest": "^3.7.1",
|
|
16
|
-
"typescript": "5.1.
|
|
16
|
+
"typescript": "5.1.6",
|
|
17
17
|
"zod": "^3.21.4",
|
|
18
|
-
"@webstudio-is/jest-config": "^1.0.
|
|
18
|
+
"@webstudio-is/jest-config": "^1.0.7",
|
|
19
19
|
"@webstudio-is/scripts": "^0.0.0",
|
|
20
|
-
"@webstudio-is/tsconfig": "^1.0.
|
|
20
|
+
"@webstudio-is/tsconfig": "^1.0.7"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"zod": "^3.19.1"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"src/*",
|
|
34
34
|
"!*.test.*"
|
|
35
35
|
],
|
|
36
|
-
"license": "
|
|
36
|
+
"license": "AGPL-3.0-or-later",
|
|
37
37
|
"private": false,
|
|
38
38
|
"sideEffects": false,
|
|
39
39
|
"dependencies": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"warn-once": "^0.1.1"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
|
-
"typecheck": "tsc
|
|
47
|
+
"typecheck": "tsc",
|
|
48
48
|
"checks": "pnpm typecheck",
|
|
49
49
|
"dev": "build-package --watch",
|
|
50
50
|
"build": "build-package",
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
// This file was generated by pnpm mdn-data
|
|
2
2
|
export const keywordValues = {
|
|
3
|
+
WebkitFontSmoothing: ["auto", "none", "antialiased", "subpixel-antialiased"],
|
|
4
|
+
MozOsxFontSmoothing: ["auto", "grayscale"],
|
|
5
|
+
listStyleType: [
|
|
6
|
+
"disc",
|
|
7
|
+
"circle",
|
|
8
|
+
"square",
|
|
9
|
+
"decimal",
|
|
10
|
+
"georgian",
|
|
11
|
+
"trad-chinese-informal",
|
|
12
|
+
"kannada",
|
|
13
|
+
"none",
|
|
14
|
+
"initial",
|
|
15
|
+
"inherit",
|
|
16
|
+
"unset",
|
|
17
|
+
],
|
|
3
18
|
accentColor: [
|
|
4
19
|
"auto",
|
|
5
20
|
"transparent",
|
|
@@ -2875,7 +2890,6 @@ export const keywordValues = {
|
|
|
2875
2890
|
"inherit",
|
|
2876
2891
|
"unset",
|
|
2877
2892
|
],
|
|
2878
|
-
printColorAdjust: ["economy", "exact", "initial", "inherit", "unset"],
|
|
2879
2893
|
colorScheme: [
|
|
2880
2894
|
"normal",
|
|
2881
2895
|
"light",
|
|
@@ -3078,6 +3092,15 @@ export const keywordValues = {
|
|
|
3078
3092
|
containIntrinsicHeight: ["none", "auto", "initial", "inherit", "unset"],
|
|
3079
3093
|
containIntrinsicInlineSize: ["none", "auto", "initial", "inherit", "unset"],
|
|
3080
3094
|
containIntrinsicWidth: ["none", "auto", "initial", "inherit", "unset"],
|
|
3095
|
+
containerName: ["none", "initial", "inherit", "unset"],
|
|
3096
|
+
containerType: [
|
|
3097
|
+
"normal",
|
|
3098
|
+
"size",
|
|
3099
|
+
"inline-size",
|
|
3100
|
+
"initial",
|
|
3101
|
+
"inherit",
|
|
3102
|
+
"unset",
|
|
3103
|
+
],
|
|
3081
3104
|
content: [
|
|
3082
3105
|
"normal",
|
|
3083
3106
|
"none",
|
|
@@ -3225,6 +3248,7 @@ export const keywordValues = {
|
|
|
3225
3248
|
fontKerning: ["auto", "normal", "none", "initial", "inherit", "unset"],
|
|
3226
3249
|
fontLanguageOverride: ["normal", "initial", "inherit", "unset"],
|
|
3227
3250
|
fontOpticalSizing: ["auto", "none", "initial", "inherit", "unset"],
|
|
3251
|
+
fontPalette: ["normal", "light", "dark", "initial", "inherit", "unset"],
|
|
3228
3252
|
fontVariationSettings: ["normal", "initial", "inherit", "unset"],
|
|
3229
3253
|
fontSize: [
|
|
3230
3254
|
"xx-small",
|
|
@@ -3350,6 +3374,15 @@ export const keywordValues = {
|
|
|
3350
3374
|
"inherit",
|
|
3351
3375
|
"unset",
|
|
3352
3376
|
],
|
|
3377
|
+
fontVariantEmoji: [
|
|
3378
|
+
"normal",
|
|
3379
|
+
"text",
|
|
3380
|
+
"emoji",
|
|
3381
|
+
"unicode",
|
|
3382
|
+
"initial",
|
|
3383
|
+
"inherit",
|
|
3384
|
+
"unset",
|
|
3385
|
+
],
|
|
3353
3386
|
fontVariantLigatures: [
|
|
3354
3387
|
"normal",
|
|
3355
3388
|
"none",
|
|
@@ -3459,6 +3492,7 @@ export const keywordValues = {
|
|
|
3459
3492
|
"unset",
|
|
3460
3493
|
],
|
|
3461
3494
|
hyphenateCharacter: ["auto", "initial", "inherit", "unset"],
|
|
3495
|
+
hyphenateLimitChars: ["auto", "initial", "inherit", "unset"],
|
|
3462
3496
|
hyphens: ["none", "manual", "auto", "initial", "inherit", "unset"],
|
|
3463
3497
|
imageOrientation: ["from-image", "flip", "initial", "inherit", "unset"],
|
|
3464
3498
|
imageRendering: [
|
|
@@ -3594,7 +3628,6 @@ export const keywordValues = {
|
|
|
3594
3628
|
lineHeightStep: ["initial", "inherit", "unset"],
|
|
3595
3629
|
listStyleImage: ["none", "initial", "inherit", "unset"],
|
|
3596
3630
|
listStylePosition: ["inside", "outside", "initial", "inherit", "unset"],
|
|
3597
|
-
listStyleType: ["none", "initial", "inherit", "unset"],
|
|
3598
3631
|
marginBlockEnd: ["auto", "initial", "inherit", "unset"],
|
|
3599
3632
|
marginBlockStart: ["auto", "initial", "inherit", "unset"],
|
|
3600
3633
|
marginBottom: ["auto", "initial", "inherit", "unset"],
|
|
@@ -4140,6 +4173,7 @@ export const keywordValues = {
|
|
|
4140
4173
|
paddingLeft: ["initial", "inherit", "unset"],
|
|
4141
4174
|
paddingRight: ["initial", "inherit", "unset"],
|
|
4142
4175
|
paddingTop: ["initial", "inherit", "unset"],
|
|
4176
|
+
page: ["auto", "initial", "inherit", "unset"],
|
|
4143
4177
|
pageBreakAfter: [
|
|
4144
4178
|
"auto",
|
|
4145
4179
|
"always",
|
|
@@ -4210,6 +4244,7 @@ export const keywordValues = {
|
|
|
4210
4244
|
"inherit",
|
|
4211
4245
|
"unset",
|
|
4212
4246
|
],
|
|
4247
|
+
printColorAdjust: ["economy", "exact", "initial", "inherit", "unset"],
|
|
4213
4248
|
quotes: ["none", "auto", "initial", "inherit", "unset"],
|
|
4214
4249
|
resize: [
|
|
4215
4250
|
"none",
|
|
@@ -5162,6 +5197,7 @@ export const keywordValues = {
|
|
|
5162
5197
|
"inherit",
|
|
5163
5198
|
"unset",
|
|
5164
5199
|
],
|
|
5200
|
+
viewTransitionName: ["none", "initial", "inherit", "unset"],
|
|
5165
5201
|
visibility: ["visible", "hidden", "collapse", "initial", "inherit", "unset"],
|
|
5166
5202
|
whiteSpace: [
|
|
5167
5203
|
"normal",
|