@webstudio-is/css-data 0.91.0 → 0.267.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/lib/index.js +17534 -15
- package/lib/types/__generated__/animatable-properties.d.ts +1 -0
- package/lib/types/__generated__/html.d.ts +2 -0
- package/lib/types/__generated__/keyword-values.d.ts +4 -358
- package/lib/types/__generated__/properties.d.ts +10 -3674
- package/lib/types/__generated__/property-value-descriptions.d.ts +7 -5446
- package/lib/types/__generated__/pseudo-classes.d.ts +1 -0
- package/lib/types/__generated__/pseudo-elements.d.ts +1 -0
- package/lib/types/__generated__/pseudo-selector-descriptions.d.ts +2 -0
- package/lib/types/__generated__/shorthand-properties.d.ts +1 -0
- package/lib/types/css-tree.d.ts +772 -0
- package/lib/types/index.d.ts +18 -3680
- package/lib/types/media-condition-simulator.d.ts +7 -0
- package/lib/types/parse-css-value.d.ts +8 -3
- package/lib/types/parse-css.d.ts +75 -6
- package/lib/types/property-parsers/conic-gradient.d.ts +3 -0
- package/lib/types/property-parsers/gradient-utils.d.ts +20 -0
- package/lib/types/property-parsers/grid-template-areas.d.ts +21 -0
- package/lib/types/property-parsers/grid-template-tracks.d.ts +128 -0
- package/lib/types/property-parsers/index.d.ts +6 -2
- package/lib/types/property-parsers/linear-gradient.d.ts +4 -0
- package/lib/types/property-parsers/radial-gradient.d.ts +3 -0
- package/lib/types/property-parsers/types.d.ts +28 -0
- package/lib/types/selector-validation.d.ts +13 -0
- package/lib/types/shorthands.d.ts +2 -0
- package/package.json +29 -33
- package/lib/__generated__/keyword-values.js +0 -5255
- package/lib/__generated__/properties.js +0 -3697
- package/lib/__generated__/property-value-descriptions.js +0 -2740
- package/lib/__generated__/units.js +0 -65
- package/lib/cjs/__generated__/keyword-values.js +0 -5275
- package/lib/cjs/__generated__/properties.js +0 -3717
- package/lib/cjs/__generated__/property-value-descriptions.js +0 -2760
- package/lib/cjs/__generated__/units.js +0 -85
- package/lib/cjs/custom-data.js +0 -64
- package/lib/cjs/html-check.js +0 -25
- package/lib/cjs/html.js +0 -581
- package/lib/cjs/index.js +0 -48
- package/lib/cjs/package.json +0 -1
- package/lib/cjs/parse-css-value.js +0 -152
- package/lib/cjs/parse-css.js +0 -136
- package/lib/cjs/popularity-index.js +0 -4633
- package/lib/cjs/property-parsers/background.js +0 -119
- package/lib/cjs/property-parsers/box-shadow.js +0 -129
- package/lib/cjs/property-parsers/index.js +0 -19
- package/lib/cjs/property-parsers/parsers.js +0 -26
- package/lib/cjs/property-parsers/to-longhand.js +0 -24
- package/lib/cjs/schema.js +0 -135
- package/lib/custom-data.js +0 -44
- package/lib/html-check.js +0 -2
- package/lib/html.js +0 -561
- package/lib/parse-css-value.js +0 -122
- package/lib/parse-css.js +0 -106
- package/lib/popularity-index.js +0 -4613
- package/lib/property-parsers/background.js +0 -89
- package/lib/property-parsers/box-shadow.js +0 -99
- package/lib/property-parsers/index.js +0 -2
- package/lib/property-parsers/parsers.js +0 -6
- package/lib/property-parsers/to-longhand.js +0 -4
- package/lib/schema.js +0 -115
- package/lib/types/custom-data.d.ts +0 -15
- package/lib/types/html-check.d.ts +0 -1
- package/lib/types/html.d.ts +0 -62
- package/lib/types/parse-css-value.test.d.ts +0 -1
- package/lib/types/parse-css.test.d.ts +0 -1
- package/lib/types/popularity-index.d.ts +0 -6
- package/lib/types/property-parsers/background.d.ts +0 -11
- package/lib/types/property-parsers/background.test.d.ts +0 -1
- package/lib/types/property-parsers/box-shadow.d.ts +0 -3
- package/lib/types/property-parsers/box-shadow.test.d.ts +0 -1
- package/lib/types/property-parsers/parsers.d.ts +0 -2
- package/lib/types/property-parsers/to-longhand.d.ts +0 -1
- package/lib/types/schema.d.ts +0 -3243
- package/src/__generated__/keyword-values.ts +0 -5253
- package/src/__generated__/properties.ts +0 -3696
- package/src/__generated__/property-value-descriptions.ts +0 -4008
- package/src/__generated__/units.ts +0 -63
- package/src/custom-data.ts +0 -57
- package/src/html-check.ts +0 -8
- package/src/html.ts +0 -617
- package/src/index.ts +0 -25
- package/src/parse-css-value.test.ts +0 -136
- package/src/parse-css-value.ts +0 -157
- package/src/parse-css.test.ts +0 -101
- package/src/parse-css.ts +0 -137
- package/src/popularity-index.ts +0 -4611
- package/src/property-parsers/README.md +0 -11
- package/src/property-parsers/background.test.ts +0 -184
- package/src/property-parsers/background.ts +0 -147
- package/src/property-parsers/box-shadow.test.ts +0 -294
- package/src/property-parsers/box-shadow.ts +0 -130
- package/src/property-parsers/index.ts +0 -2
- package/src/property-parsers/parsers.ts +0 -5
- package/src/property-parsers/to-longhand.ts +0 -4
- package/src/schema.ts +0 -193
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var units_exports = {};
|
|
20
|
-
__export(units_exports, {
|
|
21
|
-
units: () => units
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(units_exports);
|
|
24
|
-
const units = {
|
|
25
|
-
number: [],
|
|
26
|
-
percentage: ["%"],
|
|
27
|
-
angle: ["deg", "grad", "rad", "turn"],
|
|
28
|
-
decibel: ["db"],
|
|
29
|
-
flex: ["fr"],
|
|
30
|
-
frequency: ["hz", "khz"],
|
|
31
|
-
length: [
|
|
32
|
-
"cm",
|
|
33
|
-
"mm",
|
|
34
|
-
"q",
|
|
35
|
-
"in",
|
|
36
|
-
"pt",
|
|
37
|
-
"pc",
|
|
38
|
-
"px",
|
|
39
|
-
"em",
|
|
40
|
-
"rem",
|
|
41
|
-
"ex",
|
|
42
|
-
"rex",
|
|
43
|
-
"cap",
|
|
44
|
-
"rcap",
|
|
45
|
-
"ch",
|
|
46
|
-
"rch",
|
|
47
|
-
"ic",
|
|
48
|
-
"ric",
|
|
49
|
-
"lh",
|
|
50
|
-
"rlh",
|
|
51
|
-
"vw",
|
|
52
|
-
"svw",
|
|
53
|
-
"lvw",
|
|
54
|
-
"dvw",
|
|
55
|
-
"vh",
|
|
56
|
-
"svh",
|
|
57
|
-
"lvh",
|
|
58
|
-
"dvh",
|
|
59
|
-
"vi",
|
|
60
|
-
"svi",
|
|
61
|
-
"lvi",
|
|
62
|
-
"dvi",
|
|
63
|
-
"vb",
|
|
64
|
-
"svb",
|
|
65
|
-
"lvb",
|
|
66
|
-
"dvb",
|
|
67
|
-
"vmin",
|
|
68
|
-
"svmin",
|
|
69
|
-
"lvmin",
|
|
70
|
-
"dvmin",
|
|
71
|
-
"vmax",
|
|
72
|
-
"svmax",
|
|
73
|
-
"lvmax",
|
|
74
|
-
"dvmax",
|
|
75
|
-
"cqw",
|
|
76
|
-
"cqh",
|
|
77
|
-
"cqi",
|
|
78
|
-
"cqb",
|
|
79
|
-
"cqmin",
|
|
80
|
-
"cqmax"
|
|
81
|
-
],
|
|
82
|
-
resolution: ["dpi", "dpcm", "dppx", "x"],
|
|
83
|
-
semitones: ["st"],
|
|
84
|
-
time: ["s", "ms"]
|
|
85
|
-
};
|
package/lib/cjs/custom-data.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var custom_data_exports = {};
|
|
20
|
-
__export(custom_data_exports, {
|
|
21
|
-
keywordValues: () => keywordValues,
|
|
22
|
-
propertiesData: () => propertiesData
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(custom_data_exports);
|
|
25
|
-
var import_popularity_index = require("./popularity-index");
|
|
26
|
-
const propertiesData = {};
|
|
27
|
-
const keywordValues = {};
|
|
28
|
-
const getPopularityIndex = (property) => import_popularity_index.popularityIndex.find((data) => data.property === property)?.dayPercentage ?? 0;
|
|
29
|
-
propertiesData.WebkitFontSmoothing = {
|
|
30
|
-
unitGroups: [],
|
|
31
|
-
inherited: true,
|
|
32
|
-
initial: {
|
|
33
|
-
type: "keyword",
|
|
34
|
-
value: "auto"
|
|
35
|
-
},
|
|
36
|
-
popularity: getPopularityIndex("webkit-font-smoothing"),
|
|
37
|
-
appliesTo: "allElements"
|
|
38
|
-
};
|
|
39
|
-
keywordValues.WebkitFontSmoothing = [
|
|
40
|
-
"auto",
|
|
41
|
-
"none",
|
|
42
|
-
"antialiased",
|
|
43
|
-
"subpixel-antialiased"
|
|
44
|
-
];
|
|
45
|
-
propertiesData.MozOsxFontSmoothing = {
|
|
46
|
-
unitGroups: [],
|
|
47
|
-
inherited: true,
|
|
48
|
-
initial: {
|
|
49
|
-
type: "keyword",
|
|
50
|
-
value: "auto"
|
|
51
|
-
},
|
|
52
|
-
popularity: getPopularityIndex("moz-osx-font-smoothing"),
|
|
53
|
-
appliesTo: "allElements"
|
|
54
|
-
};
|
|
55
|
-
keywordValues.MozOsxFontSmoothing = ["auto", "grayscale"];
|
|
56
|
-
keywordValues.listStyleType = [
|
|
57
|
-
"disc",
|
|
58
|
-
"circle",
|
|
59
|
-
"square",
|
|
60
|
-
"decimal",
|
|
61
|
-
"georgian",
|
|
62
|
-
"trad-chinese-informal",
|
|
63
|
-
"kannada"
|
|
64
|
-
];
|
package/lib/cjs/html-check.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
}
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
-
mod
|
|
23
|
-
));
|
|
24
|
-
var html = __toESM(require("./html"), 1);
|
|
25
|
-
exportedTags;
|