@webstudio-is/css-data 0.61.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__/properties.js +79 -12
- package/lib/cjs/__generated__/properties.js +79 -12
- package/lib/cjs/index.js +4 -2
- package/lib/index.js +4 -2
- package/lib/types/src/__generated__/properties.d.ts +60 -12
- package/lib/types/src/index.d.ts +3585 -1
- package/package.json +2 -1
- package/src/__generated__/properties.ts +79 -12
- package/src/index.ts +8 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/css-data",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.62.0",
|
|
4
4
|
"description": "CSS Data",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"html-tags": "^3.2.0",
|
|
13
13
|
"mdn-data": "2.0.30",
|
|
14
14
|
"tsx": "^3.12.6",
|
|
15
|
+
"type-fest": "^3.7.1",
|
|
15
16
|
"typescript": "5.0.3",
|
|
16
17
|
"zod": "^3.19.1",
|
|
17
18
|
"@webstudio-is/scripts": "^0.0.0",
|
|
@@ -257,8 +257,19 @@ export const properties = {
|
|
|
257
257
|
unitGroups: ["length", "percentage"],
|
|
258
258
|
inherited: false,
|
|
259
259
|
initial: {
|
|
260
|
-
type: "
|
|
261
|
-
value:
|
|
260
|
+
type: "tuple",
|
|
261
|
+
value: [
|
|
262
|
+
{
|
|
263
|
+
type: "unit",
|
|
264
|
+
unit: "%",
|
|
265
|
+
value: 0,
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
type: "unit",
|
|
269
|
+
unit: "%",
|
|
270
|
+
value: 0,
|
|
271
|
+
},
|
|
272
|
+
],
|
|
262
273
|
},
|
|
263
274
|
popularity: 0.76724967,
|
|
264
275
|
appliesTo: "allElements",
|
|
@@ -1344,8 +1355,17 @@ export const properties = {
|
|
|
1344
1355
|
unitGroups: [],
|
|
1345
1356
|
inherited: true,
|
|
1346
1357
|
initial: {
|
|
1347
|
-
type: "
|
|
1348
|
-
value:
|
|
1358
|
+
type: "tuple",
|
|
1359
|
+
value: [
|
|
1360
|
+
{
|
|
1361
|
+
type: "keyword",
|
|
1362
|
+
value: "weight",
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
type: "keyword",
|
|
1366
|
+
value: "style",
|
|
1367
|
+
},
|
|
1368
|
+
],
|
|
1349
1369
|
},
|
|
1350
1370
|
popularity: 0.00686166,
|
|
1351
1371
|
appliesTo: "allElements",
|
|
@@ -2239,8 +2259,19 @@ export const properties = {
|
|
|
2239
2259
|
unitGroups: ["length", "percentage"],
|
|
2240
2260
|
inherited: true,
|
|
2241
2261
|
initial: {
|
|
2242
|
-
type: "
|
|
2243
|
-
value:
|
|
2262
|
+
type: "tuple",
|
|
2263
|
+
value: [
|
|
2264
|
+
{
|
|
2265
|
+
type: "unit",
|
|
2266
|
+
unit: "%",
|
|
2267
|
+
value: 50,
|
|
2268
|
+
},
|
|
2269
|
+
{
|
|
2270
|
+
type: "unit",
|
|
2271
|
+
unit: "%",
|
|
2272
|
+
value: 50,
|
|
2273
|
+
},
|
|
2274
|
+
],
|
|
2244
2275
|
},
|
|
2245
2276
|
popularity: 0.08374319,
|
|
2246
2277
|
appliesTo: "replacedElements",
|
|
@@ -2643,8 +2674,19 @@ export const properties = {
|
|
|
2643
2674
|
unitGroups: ["length", "percentage"],
|
|
2644
2675
|
inherited: false,
|
|
2645
2676
|
initial: {
|
|
2646
|
-
type: "
|
|
2647
|
-
value:
|
|
2677
|
+
type: "tuple",
|
|
2678
|
+
value: [
|
|
2679
|
+
{
|
|
2680
|
+
type: "unit",
|
|
2681
|
+
unit: "%",
|
|
2682
|
+
value: 50,
|
|
2683
|
+
},
|
|
2684
|
+
{
|
|
2685
|
+
type: "unit",
|
|
2686
|
+
unit: "%",
|
|
2687
|
+
value: 50,
|
|
2688
|
+
},
|
|
2689
|
+
],
|
|
2648
2690
|
},
|
|
2649
2691
|
popularity: 0.03597136,
|
|
2650
2692
|
appliesTo: "transformableElements",
|
|
@@ -3175,8 +3217,17 @@ export const properties = {
|
|
|
3175
3217
|
unitGroups: [],
|
|
3176
3218
|
inherited: false,
|
|
3177
3219
|
initial: {
|
|
3178
|
-
type: "
|
|
3179
|
-
value:
|
|
3220
|
+
type: "tuple",
|
|
3221
|
+
value: [
|
|
3222
|
+
{
|
|
3223
|
+
type: "keyword",
|
|
3224
|
+
value: "over",
|
|
3225
|
+
},
|
|
3226
|
+
{
|
|
3227
|
+
type: "keyword",
|
|
3228
|
+
value: "right",
|
|
3229
|
+
},
|
|
3230
|
+
],
|
|
3180
3231
|
},
|
|
3181
3232
|
popularity: 0,
|
|
3182
3233
|
appliesTo: "allElements",
|
|
@@ -3337,8 +3388,24 @@ export const properties = {
|
|
|
3337
3388
|
unitGroups: ["length", "percentage"],
|
|
3338
3389
|
inherited: false,
|
|
3339
3390
|
initial: {
|
|
3340
|
-
type: "
|
|
3341
|
-
value:
|
|
3391
|
+
type: "tuple",
|
|
3392
|
+
value: [
|
|
3393
|
+
{
|
|
3394
|
+
type: "unit",
|
|
3395
|
+
unit: "%",
|
|
3396
|
+
value: 50,
|
|
3397
|
+
},
|
|
3398
|
+
{
|
|
3399
|
+
type: "unit",
|
|
3400
|
+
unit: "%",
|
|
3401
|
+
value: 50,
|
|
3402
|
+
},
|
|
3403
|
+
{
|
|
3404
|
+
type: "unit",
|
|
3405
|
+
unit: "px",
|
|
3406
|
+
value: 0,
|
|
3407
|
+
},
|
|
3408
|
+
],
|
|
3342
3409
|
},
|
|
3343
3410
|
popularity: 0.54179205,
|
|
3344
3411
|
appliesTo: "transformableElements",
|
package/src/index.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
import type { WritableDeep } from "type-fest";
|
|
1
2
|
import type { Html } from "./html";
|
|
2
3
|
import * as exportedHtml from "./html";
|
|
3
4
|
export const html: Html = exportedHtml;
|
|
4
5
|
|
|
5
6
|
export * from "./__generated__/keyword-values";
|
|
6
|
-
export * from "./__generated__/properties";
|
|
7
7
|
export * from "./__generated__/units";
|
|
8
8
|
export * from "./schema";
|
|
9
|
+
|
|
10
|
+
import { properties as generatedProperties } from "./__generated__/properties";
|
|
11
|
+
|
|
12
|
+
// convert to writable to avoid conflicts with schema type
|
|
13
|
+
export const properties = generatedProperties as WritableDeep<
|
|
14
|
+
typeof generatedProperties
|
|
15
|
+
>;
|