@webstudio-is/css-engine 0.167.0 → 0.173.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.
@@ -1,9 +1,15 @@
1
- import type { Style, StyleProperty, StyleValue } from "../schema";
1
+ import type { StyleValue } from "../schema";
2
2
  import { type TransformValue } from "./to-value";
3
- type Declaration = {
3
+ export type StyleMap = Map<string, StyleValue>;
4
+ export declare const generateStyleMap: ({ style, indent, transformValue, }: {
5
+ style: StyleMap;
6
+ indent?: number;
7
+ transformValue?: TransformValue;
8
+ }) => string;
9
+ export type Declaration = {
4
10
  breakpoint: string;
5
11
  selector: string;
6
- property: StyleProperty;
12
+ property: string;
7
13
  value: StyleValue;
8
14
  };
9
15
  type DeclarationKey = Omit<Declaration, "value">;
@@ -52,1051 +58,13 @@ export declare class NestingRule {
52
58
  applyMixins(mixins: string[]): void;
53
59
  setDeclaration(declaration: Declaration): void;
54
60
  deleteDeclaration(declaration: DeclarationKey): void;
55
- getDeclarations(): IterableIterator<Declaration>;
61
+ getMergedDeclarations(): Declaration[];
56
62
  toString({ breakpoint, indent, transformValue, }: {
57
63
  breakpoint: string;
58
64
  indent?: number;
59
65
  transformValue?: TransformValue;
60
66
  }): string;
61
67
  }
62
- export declare class StylePropertyMap {
63
- #private;
64
- constructor(style: Style);
65
- set(property: StyleProperty, value?: StyleValue): void;
66
- get(property: StyleProperty): {
67
- type: "unit";
68
- value: number;
69
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
70
- } | {
71
- type: "keyword";
72
- value: string;
73
- } | {
74
- type: "unparsed";
75
- value: string;
76
- hidden?: boolean | undefined;
77
- } | {
78
- type: "fontFamily";
79
- value: string[];
80
- } | {
81
- type: "rgb";
82
- r: number;
83
- g: number;
84
- b: number;
85
- alpha: number;
86
- } | {
87
- type: "function";
88
- name: string;
89
- args: {
90
- type: "unit";
91
- value: number;
92
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
93
- } | {
94
- type: "keyword";
95
- value: string;
96
- } | {
97
- type: "unparsed";
98
- value: string;
99
- hidden?: boolean | undefined;
100
- } | {
101
- type: "fontFamily";
102
- value: string[];
103
- } | {
104
- type: "rgb";
105
- r: number;
106
- g: number;
107
- b: number;
108
- alpha: number;
109
- } | any | {
110
- type: "image";
111
- value: {
112
- type: "asset";
113
- value: string;
114
- } | {
115
- type: "url";
116
- url: string;
117
- };
118
- hidden?: boolean | undefined;
119
- } | {
120
- type: "tuple";
121
- value: ({
122
- type: "unit";
123
- value: number;
124
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
125
- } | {
126
- type: "keyword";
127
- value: string;
128
- } | {
129
- type: "unparsed";
130
- value: string;
131
- hidden?: boolean | undefined;
132
- } | {
133
- type: "rgb";
134
- r: number;
135
- g: number;
136
- b: number;
137
- alpha: number;
138
- } | any)[];
139
- hidden?: boolean | undefined;
140
- } | {
141
- type: "invalid";
142
- value: string;
143
- } | {
144
- type: "layers";
145
- value: ({
146
- type: "unit";
147
- value: number;
148
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
149
- } | {
150
- type: "keyword";
151
- value: string;
152
- } | {
153
- type: "unparsed";
154
- value: string;
155
- hidden?: boolean | undefined;
156
- } | any | {
157
- type: "image";
158
- value: {
159
- type: "asset";
160
- value: string;
161
- } | {
162
- type: "url";
163
- url: string;
164
- };
165
- hidden?: boolean | undefined;
166
- } | {
167
- type: "tuple";
168
- value: ({
169
- type: "unit";
170
- value: number;
171
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
172
- } | {
173
- type: "keyword";
174
- value: string;
175
- } | {
176
- type: "unparsed";
177
- value: string;
178
- hidden?: boolean | undefined;
179
- } | {
180
- type: "rgb";
181
- r: number;
182
- g: number;
183
- b: number;
184
- alpha: number;
185
- } | any)[];
186
- hidden?: boolean | undefined;
187
- } | {
188
- type: "invalid";
189
- value: string;
190
- })[];
191
- } | {
192
- type: "guaranteedInvalid";
193
- } | {
194
- type: "unset";
195
- value: "";
196
- } | {
197
- type: "var";
198
- value: string;
199
- fallbacks: ({
200
- type: "unit";
201
- value: number;
202
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
203
- } | {
204
- type: "keyword";
205
- value: string;
206
- } | {
207
- type: "unparsed";
208
- value: string;
209
- hidden?: boolean | undefined;
210
- } | {
211
- type: "fontFamily";
212
- value: string[];
213
- } | {
214
- type: "rgb";
215
- r: number;
216
- g: number;
217
- b: number;
218
- alpha: number;
219
- } | any | {
220
- type: "image";
221
- value: {
222
- type: "asset";
223
- value: string;
224
- } | {
225
- type: "url";
226
- url: string;
227
- };
228
- hidden?: boolean | undefined;
229
- } | {
230
- type: "tuple";
231
- value: ({
232
- type: "unit";
233
- value: number;
234
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
235
- } | {
236
- type: "keyword";
237
- value: string;
238
- } | {
239
- type: "unparsed";
240
- value: string;
241
- hidden?: boolean | undefined;
242
- } | {
243
- type: "rgb";
244
- r: number;
245
- g: number;
246
- b: number;
247
- alpha: number;
248
- } | any)[];
249
- hidden?: boolean | undefined;
250
- } | {
251
- type: "layers";
252
- value: ({
253
- type: "unit";
254
- value: number;
255
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
256
- } | {
257
- type: "keyword";
258
- value: string;
259
- } | {
260
- type: "unparsed";
261
- value: string;
262
- hidden?: boolean | undefined;
263
- } | any | {
264
- type: "image";
265
- value: {
266
- type: "asset";
267
- value: string;
268
- } | {
269
- type: "url";
270
- url: string;
271
- };
272
- hidden?: boolean | undefined;
273
- } | {
274
- type: "tuple";
275
- value: ({
276
- type: "unit";
277
- value: number;
278
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
279
- } | {
280
- type: "keyword";
281
- value: string;
282
- } | {
283
- type: "unparsed";
284
- value: string;
285
- hidden?: boolean | undefined;
286
- } | {
287
- type: "rgb";
288
- r: number;
289
- g: number;
290
- b: number;
291
- alpha: number;
292
- } | any)[];
293
- hidden?: boolean | undefined;
294
- } | {
295
- type: "invalid";
296
- value: string;
297
- })[];
298
- } | {
299
- type: "guaranteedInvalid";
300
- })[];
301
- };
302
- } | {
303
- type: "image";
304
- value: {
305
- type: "asset";
306
- value: string;
307
- } | {
308
- type: "url";
309
- url: string;
310
- };
311
- hidden?: boolean | undefined;
312
- } | {
313
- type: "tuple";
314
- value: ({
315
- type: "unit";
316
- value: number;
317
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
318
- } | {
319
- type: "keyword";
320
- value: string;
321
- } | {
322
- type: "unparsed";
323
- value: string;
324
- hidden?: boolean | undefined;
325
- } | {
326
- type: "rgb";
327
- r: number;
328
- g: number;
329
- b: number;
330
- alpha: number;
331
- } | {
332
- type: "function";
333
- name: string;
334
- args: {
335
- type: "unit";
336
- value: number;
337
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
338
- } | {
339
- type: "keyword";
340
- value: string;
341
- } | {
342
- type: "unparsed";
343
- value: string;
344
- hidden?: boolean | undefined;
345
- } | {
346
- type: "fontFamily";
347
- value: string[];
348
- } | {
349
- type: "rgb";
350
- r: number;
351
- g: number;
352
- b: number;
353
- alpha: number;
354
- } | any | {
355
- type: "image";
356
- value: {
357
- type: "asset";
358
- value: string;
359
- } | {
360
- type: "url";
361
- url: string;
362
- };
363
- hidden?: boolean | undefined;
364
- } | any | {
365
- type: "invalid";
366
- value: string;
367
- } | {
368
- type: "layers";
369
- value: ({
370
- type: "unit";
371
- value: number;
372
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
373
- } | {
374
- type: "keyword";
375
- value: string;
376
- } | {
377
- type: "unparsed";
378
- value: string;
379
- hidden?: boolean | undefined;
380
- } | any | {
381
- type: "image";
382
- value: {
383
- type: "asset";
384
- value: string;
385
- } | {
386
- type: "url";
387
- url: string;
388
- };
389
- hidden?: boolean | undefined;
390
- } | {
391
- type: "tuple";
392
- value: ({
393
- type: "unit";
394
- value: number;
395
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
396
- } | {
397
- type: "keyword";
398
- value: string;
399
- } | {
400
- type: "unparsed";
401
- value: string;
402
- hidden?: boolean | undefined;
403
- } | {
404
- type: "rgb";
405
- r: number;
406
- g: number;
407
- b: number;
408
- alpha: number;
409
- } | any)[];
410
- hidden?: boolean | undefined;
411
- } | {
412
- type: "invalid";
413
- value: string;
414
- })[];
415
- } | {
416
- type: "guaranteedInvalid";
417
- } | {
418
- type: "unset";
419
- value: "";
420
- } | {
421
- type: "var";
422
- value: string;
423
- fallbacks: ({
424
- type: "unit";
425
- value: number;
426
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
427
- } | {
428
- type: "keyword";
429
- value: string;
430
- } | {
431
- type: "unparsed";
432
- value: string;
433
- hidden?: boolean | undefined;
434
- } | {
435
- type: "fontFamily";
436
- value: string[];
437
- } | {
438
- type: "rgb";
439
- r: number;
440
- g: number;
441
- b: number;
442
- alpha: number;
443
- } | any | {
444
- type: "image";
445
- value: {
446
- type: "asset";
447
- value: string;
448
- } | {
449
- type: "url";
450
- url: string;
451
- };
452
- hidden?: boolean | undefined;
453
- } | {
454
- type: "tuple";
455
- value: ({
456
- type: "unit";
457
- value: number;
458
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
459
- } | {
460
- type: "keyword";
461
- value: string;
462
- } | {
463
- type: "unparsed";
464
- value: string;
465
- hidden?: boolean | undefined;
466
- } | {
467
- type: "rgb";
468
- r: number;
469
- g: number;
470
- b: number;
471
- alpha: number;
472
- } | any)[];
473
- hidden?: boolean | undefined;
474
- } | {
475
- type: "layers";
476
- value: ({
477
- type: "unit";
478
- value: number;
479
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
480
- } | {
481
- type: "keyword";
482
- value: string;
483
- } | {
484
- type: "unparsed";
485
- value: string;
486
- hidden?: boolean | undefined;
487
- } | any | {
488
- type: "image";
489
- value: {
490
- type: "asset";
491
- value: string;
492
- } | {
493
- type: "url";
494
- url: string;
495
- };
496
- hidden?: boolean | undefined;
497
- } | {
498
- type: "tuple";
499
- value: ({
500
- type: "unit";
501
- value: number;
502
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
503
- } | {
504
- type: "keyword";
505
- value: string;
506
- } | {
507
- type: "unparsed";
508
- value: string;
509
- hidden?: boolean | undefined;
510
- } | {
511
- type: "rgb";
512
- r: number;
513
- g: number;
514
- b: number;
515
- alpha: number;
516
- } | any)[];
517
- hidden?: boolean | undefined;
518
- } | {
519
- type: "invalid";
520
- value: string;
521
- })[];
522
- } | {
523
- type: "guaranteedInvalid";
524
- })[];
525
- };
526
- })[];
527
- hidden?: boolean | undefined;
528
- } | {
529
- type: "invalid";
530
- value: string;
531
- } | {
532
- type: "layers";
533
- value: ({
534
- type: "unit";
535
- value: number;
536
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
537
- } | {
538
- type: "keyword";
539
- value: string;
540
- } | {
541
- type: "unparsed";
542
- value: string;
543
- hidden?: boolean | undefined;
544
- } | {
545
- type: "function";
546
- name: string;
547
- args: {
548
- type: "unit";
549
- value: number;
550
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
551
- } | {
552
- type: "keyword";
553
- value: string;
554
- } | {
555
- type: "unparsed";
556
- value: string;
557
- hidden?: boolean | undefined;
558
- } | {
559
- type: "fontFamily";
560
- value: string[];
561
- } | {
562
- type: "rgb";
563
- r: number;
564
- g: number;
565
- b: number;
566
- alpha: number;
567
- } | any | {
568
- type: "image";
569
- value: {
570
- type: "asset";
571
- value: string;
572
- } | {
573
- type: "url";
574
- url: string;
575
- };
576
- hidden?: boolean | undefined;
577
- } | any | {
578
- type: "invalid";
579
- value: string;
580
- } | {
581
- type: "layers";
582
- value: ({
583
- type: "unit";
584
- value: number;
585
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
586
- } | {
587
- type: "keyword";
588
- value: string;
589
- } | {
590
- type: "unparsed";
591
- value: string;
592
- hidden?: boolean | undefined;
593
- } | any | {
594
- type: "image";
595
- value: {
596
- type: "asset";
597
- value: string;
598
- } | {
599
- type: "url";
600
- url: string;
601
- };
602
- hidden?: boolean | undefined;
603
- } | {
604
- type: "tuple";
605
- value: ({
606
- type: "unit";
607
- value: number;
608
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
609
- } | {
610
- type: "keyword";
611
- value: string;
612
- } | {
613
- type: "unparsed";
614
- value: string;
615
- hidden?: boolean | undefined;
616
- } | {
617
- type: "rgb";
618
- r: number;
619
- g: number;
620
- b: number;
621
- alpha: number;
622
- } | any)[];
623
- hidden?: boolean | undefined;
624
- } | {
625
- type: "invalid";
626
- value: string;
627
- })[];
628
- } | {
629
- type: "guaranteedInvalid";
630
- } | {
631
- type: "unset";
632
- value: "";
633
- } | {
634
- type: "var";
635
- value: string;
636
- fallbacks: ({
637
- type: "unit";
638
- value: number;
639
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
640
- } | {
641
- type: "keyword";
642
- value: string;
643
- } | {
644
- type: "unparsed";
645
- value: string;
646
- hidden?: boolean | undefined;
647
- } | {
648
- type: "fontFamily";
649
- value: string[];
650
- } | {
651
- type: "rgb";
652
- r: number;
653
- g: number;
654
- b: number;
655
- alpha: number;
656
- } | any | {
657
- type: "image";
658
- value: {
659
- type: "asset";
660
- value: string;
661
- } | {
662
- type: "url";
663
- url: string;
664
- };
665
- hidden?: boolean | undefined;
666
- } | {
667
- type: "tuple";
668
- value: ({
669
- type: "unit";
670
- value: number;
671
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
672
- } | {
673
- type: "keyword";
674
- value: string;
675
- } | {
676
- type: "unparsed";
677
- value: string;
678
- hidden?: boolean | undefined;
679
- } | {
680
- type: "rgb";
681
- r: number;
682
- g: number;
683
- b: number;
684
- alpha: number;
685
- } | any)[];
686
- hidden?: boolean | undefined;
687
- } | {
688
- type: "layers";
689
- value: ({
690
- type: "unit";
691
- value: number;
692
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
693
- } | {
694
- type: "keyword";
695
- value: string;
696
- } | {
697
- type: "unparsed";
698
- value: string;
699
- hidden?: boolean | undefined;
700
- } | any | {
701
- type: "image";
702
- value: {
703
- type: "asset";
704
- value: string;
705
- } | {
706
- type: "url";
707
- url: string;
708
- };
709
- hidden?: boolean | undefined;
710
- } | {
711
- type: "tuple";
712
- value: ({
713
- type: "unit";
714
- value: number;
715
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
716
- } | {
717
- type: "keyword";
718
- value: string;
719
- } | {
720
- type: "unparsed";
721
- value: string;
722
- hidden?: boolean | undefined;
723
- } | {
724
- type: "rgb";
725
- r: number;
726
- g: number;
727
- b: number;
728
- alpha: number;
729
- } | any)[];
730
- hidden?: boolean | undefined;
731
- } | {
732
- type: "invalid";
733
- value: string;
734
- })[];
735
- } | {
736
- type: "guaranteedInvalid";
737
- })[];
738
- };
739
- } | {
740
- type: "image";
741
- value: {
742
- type: "asset";
743
- value: string;
744
- } | {
745
- type: "url";
746
- url: string;
747
- };
748
- hidden?: boolean | undefined;
749
- } | {
750
- type: "tuple";
751
- value: ({
752
- type: "unit";
753
- value: number;
754
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
755
- } | {
756
- type: "keyword";
757
- value: string;
758
- } | {
759
- type: "unparsed";
760
- value: string;
761
- hidden?: boolean | undefined;
762
- } | {
763
- type: "rgb";
764
- r: number;
765
- g: number;
766
- b: number;
767
- alpha: number;
768
- } | any)[];
769
- hidden?: boolean | undefined;
770
- } | {
771
- type: "invalid";
772
- value: string;
773
- })[];
774
- } | {
775
- type: "guaranteedInvalid";
776
- } | {
777
- type: "unset";
778
- value: "";
779
- } | {
780
- type: "var";
781
- value: string;
782
- fallbacks: ({
783
- type: "unit";
784
- value: number;
785
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
786
- } | {
787
- type: "keyword";
788
- value: string;
789
- } | {
790
- type: "unparsed";
791
- value: string;
792
- hidden?: boolean | undefined;
793
- } | {
794
- type: "fontFamily";
795
- value: string[];
796
- } | {
797
- type: "rgb";
798
- r: number;
799
- g: number;
800
- b: number;
801
- alpha: number;
802
- } | {
803
- type: "function";
804
- name: string;
805
- args: {
806
- type: "unit";
807
- value: number;
808
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
809
- } | {
810
- type: "keyword";
811
- value: string;
812
- } | {
813
- type: "unparsed";
814
- value: string;
815
- hidden?: boolean | undefined;
816
- } | {
817
- type: "fontFamily";
818
- value: string[];
819
- } | {
820
- type: "rgb";
821
- r: number;
822
- g: number;
823
- b: number;
824
- alpha: number;
825
- } | any | {
826
- type: "image";
827
- value: {
828
- type: "asset";
829
- value: string;
830
- } | {
831
- type: "url";
832
- url: string;
833
- };
834
- hidden?: boolean | undefined;
835
- } | any | {
836
- type: "invalid";
837
- value: string;
838
- } | {
839
- type: "layers";
840
- value: ({
841
- type: "unit";
842
- value: number;
843
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
844
- } | {
845
- type: "keyword";
846
- value: string;
847
- } | {
848
- type: "unparsed";
849
- value: string;
850
- hidden?: boolean | undefined;
851
- } | any | {
852
- type: "image";
853
- value: {
854
- type: "asset";
855
- value: string;
856
- } | {
857
- type: "url";
858
- url: string;
859
- };
860
- hidden?: boolean | undefined;
861
- } | {
862
- type: "tuple";
863
- value: ({
864
- type: "unit";
865
- value: number;
866
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
867
- } | {
868
- type: "keyword";
869
- value: string;
870
- } | {
871
- type: "unparsed";
872
- value: string;
873
- hidden?: boolean | undefined;
874
- } | {
875
- type: "rgb";
876
- r: number;
877
- g: number;
878
- b: number;
879
- alpha: number;
880
- } | any)[];
881
- hidden?: boolean | undefined;
882
- } | {
883
- type: "invalid";
884
- value: string;
885
- })[];
886
- } | {
887
- type: "guaranteedInvalid";
888
- } | {
889
- type: "unset";
890
- value: "";
891
- } | {
892
- type: "var";
893
- value: string;
894
- fallbacks: ({
895
- type: "unit";
896
- value: number;
897
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
898
- } | {
899
- type: "keyword";
900
- value: string;
901
- } | {
902
- type: "unparsed";
903
- value: string;
904
- hidden?: boolean | undefined;
905
- } | {
906
- type: "fontFamily";
907
- value: string[];
908
- } | {
909
- type: "rgb";
910
- r: number;
911
- g: number;
912
- b: number;
913
- alpha: number;
914
- } | any | {
915
- type: "image";
916
- value: {
917
- type: "asset";
918
- value: string;
919
- } | {
920
- type: "url";
921
- url: string;
922
- };
923
- hidden?: boolean | undefined;
924
- } | {
925
- type: "tuple";
926
- value: ({
927
- type: "unit";
928
- value: number;
929
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
930
- } | {
931
- type: "keyword";
932
- value: string;
933
- } | {
934
- type: "unparsed";
935
- value: string;
936
- hidden?: boolean | undefined;
937
- } | {
938
- type: "rgb";
939
- r: number;
940
- g: number;
941
- b: number;
942
- alpha: number;
943
- } | any)[];
944
- hidden?: boolean | undefined;
945
- } | {
946
- type: "layers";
947
- value: ({
948
- type: "unit";
949
- value: number;
950
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
951
- } | {
952
- type: "keyword";
953
- value: string;
954
- } | {
955
- type: "unparsed";
956
- value: string;
957
- hidden?: boolean | undefined;
958
- } | any | {
959
- type: "image";
960
- value: {
961
- type: "asset";
962
- value: string;
963
- } | {
964
- type: "url";
965
- url: string;
966
- };
967
- hidden?: boolean | undefined;
968
- } | {
969
- type: "tuple";
970
- value: ({
971
- type: "unit";
972
- value: number;
973
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
974
- } | {
975
- type: "keyword";
976
- value: string;
977
- } | {
978
- type: "unparsed";
979
- value: string;
980
- hidden?: boolean | undefined;
981
- } | {
982
- type: "rgb";
983
- r: number;
984
- g: number;
985
- b: number;
986
- alpha: number;
987
- } | any)[];
988
- hidden?: boolean | undefined;
989
- } | {
990
- type: "invalid";
991
- value: string;
992
- })[];
993
- } | {
994
- type: "guaranteedInvalid";
995
- })[];
996
- };
997
- } | {
998
- type: "image";
999
- value: {
1000
- type: "asset";
1001
- value: string;
1002
- } | {
1003
- type: "url";
1004
- url: string;
1005
- };
1006
- hidden?: boolean | undefined;
1007
- } | {
1008
- type: "tuple";
1009
- value: ({
1010
- type: "unit";
1011
- value: number;
1012
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
1013
- } | {
1014
- type: "keyword";
1015
- value: string;
1016
- } | {
1017
- type: "unparsed";
1018
- value: string;
1019
- hidden?: boolean | undefined;
1020
- } | {
1021
- type: "rgb";
1022
- r: number;
1023
- g: number;
1024
- b: number;
1025
- alpha: number;
1026
- } | any)[];
1027
- hidden?: boolean | undefined;
1028
- } | {
1029
- type: "layers";
1030
- value: ({
1031
- type: "unit";
1032
- value: number;
1033
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
1034
- } | {
1035
- type: "keyword";
1036
- value: string;
1037
- } | {
1038
- type: "unparsed";
1039
- value: string;
1040
- hidden?: boolean | undefined;
1041
- } | any | {
1042
- type: "image";
1043
- value: {
1044
- type: "asset";
1045
- value: string;
1046
- } | {
1047
- type: "url";
1048
- url: string;
1049
- };
1050
- hidden?: boolean | undefined;
1051
- } | {
1052
- type: "tuple";
1053
- value: ({
1054
- type: "unit";
1055
- value: number;
1056
- unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
1057
- } | {
1058
- type: "keyword";
1059
- value: string;
1060
- } | {
1061
- type: "unparsed";
1062
- value: string;
1063
- hidden?: boolean | undefined;
1064
- } | {
1065
- type: "rgb";
1066
- r: number;
1067
- g: number;
1068
- b: number;
1069
- alpha: number;
1070
- } | any)[];
1071
- hidden?: boolean | undefined;
1072
- } | {
1073
- type: "invalid";
1074
- value: string;
1075
- })[];
1076
- } | {
1077
- type: "guaranteedInvalid";
1078
- })[];
1079
- } | undefined;
1080
- has(property: StyleProperty): boolean;
1081
- get size(): number;
1082
- keys(): IterableIterator<StyleProperty>;
1083
- delete(property: StyleProperty): void;
1084
- clear(): void;
1085
- toString({ indent, transformValue, }?: {
1086
- indent?: number;
1087
- transformValue?: TransformValue;
1088
- }): string;
1089
- }
1090
- export declare class StyleRule {
1091
- styleMap: StylePropertyMap;
1092
- selectorText: string;
1093
- constructor(selectorText: string, style: StylePropertyMap | Style);
1094
- get cssText(): string;
1095
- toString({ indent, transformValue, }?: {
1096
- indent?: number;
1097
- transformValue?: TransformValue;
1098
- }): string;
1099
- }
1100
68
  export type MediaRuleOptions = {
1101
69
  minWidth?: number;
1102
70
  maxWidth?: number;
@@ -1105,9 +73,9 @@ export type MediaRuleOptions = {
1105
73
  export declare class MediaRule {
1106
74
  #private;
1107
75
  options: MediaRuleOptions;
1108
- rules: Map<string, StyleRule | PlaintextRule>;
76
+ rules: Map<string, PlaintextRule>;
1109
77
  constructor(name: string, options?: MediaRuleOptions);
1110
- insertRule(rule: StyleRule | PlaintextRule): StyleRule | PlaintextRule;
78
+ insertRule(rule: PlaintextRule): PlaintextRule;
1111
79
  get cssText(): string;
1112
80
  toString(): string;
1113
81
  generateRule({ nestingRules, transformValue, }: {