@webstudio-is/css-data 0.91.0 → 0.266.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,65 +0,0 @@
|
|
|
1
|
-
const units = {
|
|
2
|
-
number: [],
|
|
3
|
-
percentage: ["%"],
|
|
4
|
-
angle: ["deg", "grad", "rad", "turn"],
|
|
5
|
-
decibel: ["db"],
|
|
6
|
-
flex: ["fr"],
|
|
7
|
-
frequency: ["hz", "khz"],
|
|
8
|
-
length: [
|
|
9
|
-
"cm",
|
|
10
|
-
"mm",
|
|
11
|
-
"q",
|
|
12
|
-
"in",
|
|
13
|
-
"pt",
|
|
14
|
-
"pc",
|
|
15
|
-
"px",
|
|
16
|
-
"em",
|
|
17
|
-
"rem",
|
|
18
|
-
"ex",
|
|
19
|
-
"rex",
|
|
20
|
-
"cap",
|
|
21
|
-
"rcap",
|
|
22
|
-
"ch",
|
|
23
|
-
"rch",
|
|
24
|
-
"ic",
|
|
25
|
-
"ric",
|
|
26
|
-
"lh",
|
|
27
|
-
"rlh",
|
|
28
|
-
"vw",
|
|
29
|
-
"svw",
|
|
30
|
-
"lvw",
|
|
31
|
-
"dvw",
|
|
32
|
-
"vh",
|
|
33
|
-
"svh",
|
|
34
|
-
"lvh",
|
|
35
|
-
"dvh",
|
|
36
|
-
"vi",
|
|
37
|
-
"svi",
|
|
38
|
-
"lvi",
|
|
39
|
-
"dvi",
|
|
40
|
-
"vb",
|
|
41
|
-
"svb",
|
|
42
|
-
"lvb",
|
|
43
|
-
"dvb",
|
|
44
|
-
"vmin",
|
|
45
|
-
"svmin",
|
|
46
|
-
"lvmin",
|
|
47
|
-
"dvmin",
|
|
48
|
-
"vmax",
|
|
49
|
-
"svmax",
|
|
50
|
-
"lvmax",
|
|
51
|
-
"dvmax",
|
|
52
|
-
"cqw",
|
|
53
|
-
"cqh",
|
|
54
|
-
"cqi",
|
|
55
|
-
"cqb",
|
|
56
|
-
"cqmin",
|
|
57
|
-
"cqmax"
|
|
58
|
-
],
|
|
59
|
-
resolution: ["dpi", "dpcm", "dppx", "x"],
|
|
60
|
-
semitones: ["st"],
|
|
61
|
-
time: ["s", "ms"]
|
|
62
|
-
};
|
|
63
|
-
export {
|
|
64
|
-
units
|
|
65
|
-
};
|