@webstudio-is/css-data 0.60.0 → 0.62.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/__generated__/keyword-values.js +2 -2
- package/lib/__generated__/properties.js +93 -26
- package/lib/cjs/__generated__/keyword-values.js +2 -2
- package/lib/cjs/__generated__/properties.js +93 -26
- package/lib/cjs/html-check.js +2 -0
- package/lib/cjs/html.js +521 -0
- package/lib/cjs/index.js +22 -1
- package/lib/html-check.js +1 -0
- package/lib/html.js +501 -0
- package/lib/index.js +8 -1
- package/lib/types/src/__generated__/keyword-values.d.ts +1 -1
- package/lib/types/src/__generated__/properties.d.ts +74 -26
- package/lib/types/src/html-check.d.ts +1 -0
- package/lib/types/src/html.d.ts +53 -0
- package/lib/types/src/index.d.ts +3587 -1
- package/lib/types/src/schema.d.ts +124 -124
- package/package.json +4 -2
- package/src/__generated__/keyword-values.ts +2 -2
- package/src/__generated__/properties.ts +93 -26
- package/src/html-check.ts +8 -0
- package/src/html.ts +545 -0
- package/src/index.ts +12 -1
|
@@ -256,8 +256,16 @@ export declare const properties: {
|
|
|
256
256
|
readonly unitGroups: readonly ["length", "percentage"];
|
|
257
257
|
readonly inherited: false;
|
|
258
258
|
readonly initial: {
|
|
259
|
-
readonly type: "
|
|
260
|
-
readonly value:
|
|
259
|
+
readonly type: "tuple";
|
|
260
|
+
readonly value: readonly [{
|
|
261
|
+
readonly type: "unit";
|
|
262
|
+
readonly unit: "%";
|
|
263
|
+
readonly value: 0;
|
|
264
|
+
}, {
|
|
265
|
+
readonly type: "unit";
|
|
266
|
+
readonly unit: "%";
|
|
267
|
+
readonly value: 0;
|
|
268
|
+
}];
|
|
261
269
|
};
|
|
262
270
|
readonly popularity: 0.76724967;
|
|
263
271
|
readonly appliesTo: "allElements";
|
|
@@ -329,7 +337,7 @@ export declare const properties: {
|
|
|
329
337
|
readonly inherited: false;
|
|
330
338
|
readonly initial: {
|
|
331
339
|
readonly type: "keyword";
|
|
332
|
-
readonly value: "
|
|
340
|
+
readonly value: "currentColor";
|
|
333
341
|
};
|
|
334
342
|
readonly popularity: 0.00012849;
|
|
335
343
|
readonly appliesTo: "allElements";
|
|
@@ -359,7 +367,7 @@ export declare const properties: {
|
|
|
359
367
|
readonly inherited: false;
|
|
360
368
|
readonly initial: {
|
|
361
369
|
readonly type: "keyword";
|
|
362
|
-
readonly value: "
|
|
370
|
+
readonly value: "currentColor";
|
|
363
371
|
};
|
|
364
372
|
readonly popularity: 0.00172099;
|
|
365
373
|
readonly appliesTo: "allElements";
|
|
@@ -389,7 +397,7 @@ export declare const properties: {
|
|
|
389
397
|
readonly inherited: false;
|
|
390
398
|
readonly initial: {
|
|
391
399
|
readonly type: "keyword";
|
|
392
|
-
readonly value: "
|
|
400
|
+
readonly value: "currentColor";
|
|
393
401
|
};
|
|
394
402
|
readonly popularity: 0.00170188;
|
|
395
403
|
readonly appliesTo: "allElements";
|
|
@@ -419,7 +427,7 @@ export declare const properties: {
|
|
|
419
427
|
readonly inherited: false;
|
|
420
428
|
readonly initial: {
|
|
421
429
|
readonly type: "keyword";
|
|
422
|
-
readonly value: "
|
|
430
|
+
readonly value: "currentColor";
|
|
423
431
|
};
|
|
424
432
|
readonly popularity: 0.42283564;
|
|
425
433
|
readonly appliesTo: "allElements";
|
|
@@ -556,7 +564,7 @@ export declare const properties: {
|
|
|
556
564
|
readonly inherited: false;
|
|
557
565
|
readonly initial: {
|
|
558
566
|
readonly type: "keyword";
|
|
559
|
-
readonly value: "
|
|
567
|
+
readonly value: "currentColor";
|
|
560
568
|
};
|
|
561
569
|
readonly popularity: 0.00007844;
|
|
562
570
|
readonly appliesTo: "allElements";
|
|
@@ -586,7 +594,7 @@ export declare const properties: {
|
|
|
586
594
|
readonly inherited: false;
|
|
587
595
|
readonly initial: {
|
|
588
596
|
readonly type: "keyword";
|
|
589
|
-
readonly value: "
|
|
597
|
+
readonly value: "currentColor";
|
|
590
598
|
};
|
|
591
599
|
readonly popularity: 0.00196849;
|
|
592
600
|
readonly appliesTo: "allElements";
|
|
@@ -616,7 +624,7 @@ export declare const properties: {
|
|
|
616
624
|
readonly inherited: false;
|
|
617
625
|
readonly initial: {
|
|
618
626
|
readonly type: "keyword";
|
|
619
|
-
readonly value: "
|
|
627
|
+
readonly value: "currentColor";
|
|
620
628
|
};
|
|
621
629
|
readonly popularity: 0.00196928;
|
|
622
630
|
readonly appliesTo: "allElements";
|
|
@@ -646,7 +654,7 @@ export declare const properties: {
|
|
|
646
654
|
readonly inherited: false;
|
|
647
655
|
readonly initial: {
|
|
648
656
|
readonly type: "keyword";
|
|
649
|
-
readonly value: "
|
|
657
|
+
readonly value: "currentColor";
|
|
650
658
|
};
|
|
651
659
|
readonly popularity: 0.30754028;
|
|
652
660
|
readonly appliesTo: "allElements";
|
|
@@ -676,7 +684,7 @@ export declare const properties: {
|
|
|
676
684
|
readonly inherited: false;
|
|
677
685
|
readonly initial: {
|
|
678
686
|
readonly type: "keyword";
|
|
679
|
-
readonly value: "
|
|
687
|
+
readonly value: "currentColor";
|
|
680
688
|
};
|
|
681
689
|
readonly popularity: 0.29336595;
|
|
682
690
|
readonly appliesTo: "allElements";
|
|
@@ -739,7 +747,7 @@ export declare const properties: {
|
|
|
739
747
|
readonly inherited: false;
|
|
740
748
|
readonly initial: {
|
|
741
749
|
readonly type: "keyword";
|
|
742
|
-
readonly value: "
|
|
750
|
+
readonly value: "currentColor";
|
|
743
751
|
};
|
|
744
752
|
readonly popularity: 0.43342948;
|
|
745
753
|
readonly appliesTo: "allElements";
|
|
@@ -982,7 +990,7 @@ export declare const properties: {
|
|
|
982
990
|
readonly inherited: false;
|
|
983
991
|
readonly initial: {
|
|
984
992
|
readonly type: "keyword";
|
|
985
|
-
readonly value: "
|
|
993
|
+
readonly value: "currentColor";
|
|
986
994
|
};
|
|
987
995
|
readonly popularity: 0.01356616;
|
|
988
996
|
readonly appliesTo: "multicolElements";
|
|
@@ -1343,8 +1351,14 @@ export declare const properties: {
|
|
|
1343
1351
|
readonly unitGroups: readonly [];
|
|
1344
1352
|
readonly inherited: true;
|
|
1345
1353
|
readonly initial: {
|
|
1346
|
-
readonly type: "
|
|
1347
|
-
readonly value:
|
|
1354
|
+
readonly type: "tuple";
|
|
1355
|
+
readonly value: readonly [{
|
|
1356
|
+
readonly type: "keyword";
|
|
1357
|
+
readonly value: "weight";
|
|
1358
|
+
}, {
|
|
1359
|
+
readonly type: "keyword";
|
|
1360
|
+
readonly value: "style";
|
|
1361
|
+
}];
|
|
1348
1362
|
};
|
|
1349
1363
|
readonly popularity: 0.00686166;
|
|
1350
1364
|
readonly appliesTo: "allElements";
|
|
@@ -1424,7 +1438,7 @@ export declare const properties: {
|
|
|
1424
1438
|
readonly inherited: true;
|
|
1425
1439
|
readonly initial: {
|
|
1426
1440
|
readonly type: "keyword";
|
|
1427
|
-
readonly value: "
|
|
1441
|
+
readonly value: "400";
|
|
1428
1442
|
};
|
|
1429
1443
|
readonly popularity: 0.88598106;
|
|
1430
1444
|
readonly appliesTo: "allElements";
|
|
@@ -2238,8 +2252,16 @@ export declare const properties: {
|
|
|
2238
2252
|
readonly unitGroups: readonly ["length", "percentage"];
|
|
2239
2253
|
readonly inherited: true;
|
|
2240
2254
|
readonly initial: {
|
|
2241
|
-
readonly type: "
|
|
2242
|
-
readonly value:
|
|
2255
|
+
readonly type: "tuple";
|
|
2256
|
+
readonly value: readonly [{
|
|
2257
|
+
readonly type: "unit";
|
|
2258
|
+
readonly unit: "%";
|
|
2259
|
+
readonly value: 50;
|
|
2260
|
+
}, {
|
|
2261
|
+
readonly type: "unit";
|
|
2262
|
+
readonly unit: "%";
|
|
2263
|
+
readonly value: 50;
|
|
2264
|
+
}];
|
|
2243
2265
|
};
|
|
2244
2266
|
readonly popularity: 0.08374319;
|
|
2245
2267
|
readonly appliesTo: "replacedElements";
|
|
@@ -2642,8 +2664,16 @@ export declare const properties: {
|
|
|
2642
2664
|
readonly unitGroups: readonly ["length", "percentage"];
|
|
2643
2665
|
readonly inherited: false;
|
|
2644
2666
|
readonly initial: {
|
|
2645
|
-
readonly type: "
|
|
2646
|
-
readonly value:
|
|
2667
|
+
readonly type: "tuple";
|
|
2668
|
+
readonly value: readonly [{
|
|
2669
|
+
readonly type: "unit";
|
|
2670
|
+
readonly unit: "%";
|
|
2671
|
+
readonly value: 50;
|
|
2672
|
+
}, {
|
|
2673
|
+
readonly type: "unit";
|
|
2674
|
+
readonly unit: "%";
|
|
2675
|
+
readonly value: 50;
|
|
2676
|
+
}];
|
|
2647
2677
|
};
|
|
2648
2678
|
readonly popularity: 0.03597136;
|
|
2649
2679
|
readonly appliesTo: "transformableElements";
|
|
@@ -3105,7 +3135,7 @@ export declare const properties: {
|
|
|
3105
3135
|
readonly inherited: false;
|
|
3106
3136
|
readonly initial: {
|
|
3107
3137
|
readonly type: "keyword";
|
|
3108
|
-
readonly value: "
|
|
3138
|
+
readonly value: "currentColor";
|
|
3109
3139
|
};
|
|
3110
3140
|
readonly popularity: 0.05079903;
|
|
3111
3141
|
readonly appliesTo: "allElements";
|
|
@@ -3165,7 +3195,7 @@ export declare const properties: {
|
|
|
3165
3195
|
readonly inherited: false;
|
|
3166
3196
|
readonly initial: {
|
|
3167
3197
|
readonly type: "keyword";
|
|
3168
|
-
readonly value: "
|
|
3198
|
+
readonly value: "currentColor";
|
|
3169
3199
|
};
|
|
3170
3200
|
readonly popularity: 0;
|
|
3171
3201
|
readonly appliesTo: "allElements";
|
|
@@ -3174,8 +3204,14 @@ export declare const properties: {
|
|
|
3174
3204
|
readonly unitGroups: readonly [];
|
|
3175
3205
|
readonly inherited: false;
|
|
3176
3206
|
readonly initial: {
|
|
3177
|
-
readonly type: "
|
|
3178
|
-
readonly value:
|
|
3207
|
+
readonly type: "tuple";
|
|
3208
|
+
readonly value: readonly [{
|
|
3209
|
+
readonly type: "keyword";
|
|
3210
|
+
readonly value: "over";
|
|
3211
|
+
}, {
|
|
3212
|
+
readonly type: "keyword";
|
|
3213
|
+
readonly value: "right";
|
|
3214
|
+
}];
|
|
3179
3215
|
};
|
|
3180
3216
|
readonly popularity: 0;
|
|
3181
3217
|
readonly appliesTo: "allElements";
|
|
@@ -3335,8 +3371,20 @@ export declare const properties: {
|
|
|
3335
3371
|
readonly unitGroups: readonly ["length", "percentage"];
|
|
3336
3372
|
readonly inherited: false;
|
|
3337
3373
|
readonly initial: {
|
|
3338
|
-
readonly type: "
|
|
3339
|
-
readonly value:
|
|
3374
|
+
readonly type: "tuple";
|
|
3375
|
+
readonly value: readonly [{
|
|
3376
|
+
readonly type: "unit";
|
|
3377
|
+
readonly unit: "%";
|
|
3378
|
+
readonly value: 50;
|
|
3379
|
+
}, {
|
|
3380
|
+
readonly type: "unit";
|
|
3381
|
+
readonly unit: "%";
|
|
3382
|
+
readonly value: 50;
|
|
3383
|
+
}, {
|
|
3384
|
+
readonly type: "unit";
|
|
3385
|
+
readonly unit: "px";
|
|
3386
|
+
readonly value: 0;
|
|
3387
|
+
}];
|
|
3340
3388
|
};
|
|
3341
3389
|
readonly popularity: 0.54179205;
|
|
3342
3390
|
readonly appliesTo: "transformableElements";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { htmlTags as HtmlTags } from "html-tags";
|
|
2
|
+
import type { StyleProperty, StyleValue } from "./schema";
|
|
3
|
+
type StyleDecl = {
|
|
4
|
+
property: StyleProperty;
|
|
5
|
+
value: StyleValue;
|
|
6
|
+
};
|
|
7
|
+
type Styles = StyleDecl[];
|
|
8
|
+
export type Html = {
|
|
9
|
+
[tag in HtmlTags]?: Styles;
|
|
10
|
+
};
|
|
11
|
+
export declare const article: Styles;
|
|
12
|
+
export { article as aside, article as details, article as div, article as dt, article as figcaption, article as footer, article as form, article as header, article as hgroup, article as html, article as main, article as nav, article as section, article as summary, };
|
|
13
|
+
export declare const body: Styles;
|
|
14
|
+
export declare const p: Styles;
|
|
15
|
+
export { p as dl };
|
|
16
|
+
export declare const dd: Styles;
|
|
17
|
+
export declare const blockquote: Styles;
|
|
18
|
+
export { blockquote as figure };
|
|
19
|
+
export declare const address: Styles;
|
|
20
|
+
export declare const h1: Styles;
|
|
21
|
+
export declare const h2: Styles;
|
|
22
|
+
export declare const h3: Styles;
|
|
23
|
+
export declare const h4: Styles;
|
|
24
|
+
export declare const h5: Styles;
|
|
25
|
+
export declare const h6: Styles;
|
|
26
|
+
export declare const pre: Styles;
|
|
27
|
+
export declare const table: Styles;
|
|
28
|
+
export declare const caption: Styles;
|
|
29
|
+
export declare const tr: Styles;
|
|
30
|
+
export declare const col: Styles;
|
|
31
|
+
export declare const colgroup: Styles;
|
|
32
|
+
export declare const tbody: Styles;
|
|
33
|
+
export declare const thead: Styles;
|
|
34
|
+
export declare const tfoot: Styles;
|
|
35
|
+
export declare const td: Styles;
|
|
36
|
+
export declare const th: Styles;
|
|
37
|
+
export declare const b: Styles;
|
|
38
|
+
export { b as strong };
|
|
39
|
+
export declare const i: Styles;
|
|
40
|
+
export { i as cite, i as em, i as var, i as dfn };
|
|
41
|
+
export declare const code: Styles;
|
|
42
|
+
export { code as kbd, code as samp };
|
|
43
|
+
export declare const mark: Styles;
|
|
44
|
+
export declare const u: Styles;
|
|
45
|
+
export { u as ins };
|
|
46
|
+
export declare const s: Styles;
|
|
47
|
+
export { s as del };
|
|
48
|
+
export declare const sub: Styles;
|
|
49
|
+
export declare const sup: Styles;
|
|
50
|
+
export declare const ul: Styles;
|
|
51
|
+
export declare const ol: Styles;
|
|
52
|
+
export declare const li: Styles;
|
|
53
|
+
export declare const hr: Styles;
|