@webstudio-is/css-engine 0.168.0 → 0.174.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,1055 +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
- hidden?: boolean | undefined;
303
- } | {
304
- type: "image";
305
- value: {
306
- type: "asset";
307
- value: string;
308
- } | {
309
- type: "url";
310
- url: string;
311
- };
312
- hidden?: boolean | undefined;
313
- } | {
314
- type: "tuple";
315
- value: ({
316
- type: "unit";
317
- value: number;
318
- 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";
319
- } | {
320
- type: "keyword";
321
- value: string;
322
- } | {
323
- type: "unparsed";
324
- value: string;
325
- hidden?: boolean | undefined;
326
- } | {
327
- type: "rgb";
328
- r: number;
329
- g: number;
330
- b: number;
331
- alpha: number;
332
- } | {
333
- type: "function";
334
- name: string;
335
- args: {
336
- type: "unit";
337
- value: number;
338
- 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";
339
- } | {
340
- type: "keyword";
341
- value: string;
342
- } | {
343
- type: "unparsed";
344
- value: string;
345
- hidden?: boolean | undefined;
346
- } | {
347
- type: "fontFamily";
348
- value: string[];
349
- } | {
350
- type: "rgb";
351
- r: number;
352
- g: number;
353
- b: number;
354
- alpha: number;
355
- } | any | {
356
- type: "image";
357
- value: {
358
- type: "asset";
359
- value: string;
360
- } | {
361
- type: "url";
362
- url: string;
363
- };
364
- hidden?: boolean | undefined;
365
- } | any | {
366
- type: "invalid";
367
- value: string;
368
- } | {
369
- type: "layers";
370
- value: ({
371
- type: "unit";
372
- value: number;
373
- 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";
374
- } | {
375
- type: "keyword";
376
- value: string;
377
- } | {
378
- type: "unparsed";
379
- value: string;
380
- hidden?: boolean | undefined;
381
- } | any | {
382
- type: "image";
383
- value: {
384
- type: "asset";
385
- value: string;
386
- } | {
387
- type: "url";
388
- url: string;
389
- };
390
- hidden?: boolean | undefined;
391
- } | {
392
- type: "tuple";
393
- value: ({
394
- type: "unit";
395
- value: number;
396
- 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";
397
- } | {
398
- type: "keyword";
399
- value: string;
400
- } | {
401
- type: "unparsed";
402
- value: string;
403
- hidden?: boolean | undefined;
404
- } | {
405
- type: "rgb";
406
- r: number;
407
- g: number;
408
- b: number;
409
- alpha: number;
410
- } | any)[];
411
- hidden?: boolean | undefined;
412
- } | {
413
- type: "invalid";
414
- value: string;
415
- })[];
416
- } | {
417
- type: "guaranteedInvalid";
418
- } | {
419
- type: "unset";
420
- value: "";
421
- } | {
422
- type: "var";
423
- value: string;
424
- fallbacks: ({
425
- type: "unit";
426
- value: number;
427
- 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";
428
- } | {
429
- type: "keyword";
430
- value: string;
431
- } | {
432
- type: "unparsed";
433
- value: string;
434
- hidden?: boolean | undefined;
435
- } | {
436
- type: "fontFamily";
437
- value: string[];
438
- } | {
439
- type: "rgb";
440
- r: number;
441
- g: number;
442
- b: number;
443
- alpha: number;
444
- } | any | {
445
- type: "image";
446
- value: {
447
- type: "asset";
448
- value: string;
449
- } | {
450
- type: "url";
451
- url: string;
452
- };
453
- hidden?: boolean | undefined;
454
- } | {
455
- type: "tuple";
456
- value: ({
457
- type: "unit";
458
- value: number;
459
- 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";
460
- } | {
461
- type: "keyword";
462
- value: string;
463
- } | {
464
- type: "unparsed";
465
- value: string;
466
- hidden?: boolean | undefined;
467
- } | {
468
- type: "rgb";
469
- r: number;
470
- g: number;
471
- b: number;
472
- alpha: number;
473
- } | any)[];
474
- hidden?: boolean | undefined;
475
- } | {
476
- type: "layers";
477
- value: ({
478
- type: "unit";
479
- value: number;
480
- 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";
481
- } | {
482
- type: "keyword";
483
- value: string;
484
- } | {
485
- type: "unparsed";
486
- value: string;
487
- hidden?: boolean | undefined;
488
- } | any | {
489
- type: "image";
490
- value: {
491
- type: "asset";
492
- value: string;
493
- } | {
494
- type: "url";
495
- url: string;
496
- };
497
- hidden?: boolean | undefined;
498
- } | {
499
- type: "tuple";
500
- value: ({
501
- type: "unit";
502
- value: number;
503
- 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";
504
- } | {
505
- type: "keyword";
506
- value: string;
507
- } | {
508
- type: "unparsed";
509
- value: string;
510
- hidden?: boolean | undefined;
511
- } | {
512
- type: "rgb";
513
- r: number;
514
- g: number;
515
- b: number;
516
- alpha: number;
517
- } | any)[];
518
- hidden?: boolean | undefined;
519
- } | {
520
- type: "invalid";
521
- value: string;
522
- })[];
523
- } | {
524
- type: "guaranteedInvalid";
525
- })[];
526
- };
527
- hidden?: boolean | undefined;
528
- })[];
529
- hidden?: boolean | undefined;
530
- } | {
531
- type: "invalid";
532
- value: string;
533
- } | {
534
- type: "layers";
535
- value: ({
536
- type: "unit";
537
- value: number;
538
- 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";
539
- } | {
540
- type: "keyword";
541
- value: string;
542
- } | {
543
- type: "unparsed";
544
- value: string;
545
- hidden?: boolean | undefined;
546
- } | {
547
- type: "function";
548
- name: string;
549
- args: {
550
- type: "unit";
551
- value: number;
552
- 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";
553
- } | {
554
- type: "keyword";
555
- value: string;
556
- } | {
557
- type: "unparsed";
558
- value: string;
559
- hidden?: boolean | undefined;
560
- } | {
561
- type: "fontFamily";
562
- value: string[];
563
- } | {
564
- type: "rgb";
565
- r: number;
566
- g: number;
567
- b: number;
568
- alpha: number;
569
- } | any | {
570
- type: "image";
571
- value: {
572
- type: "asset";
573
- value: string;
574
- } | {
575
- type: "url";
576
- url: string;
577
- };
578
- hidden?: boolean | undefined;
579
- } | any | {
580
- type: "invalid";
581
- value: string;
582
- } | {
583
- type: "layers";
584
- value: ({
585
- type: "unit";
586
- value: number;
587
- 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";
588
- } | {
589
- type: "keyword";
590
- value: string;
591
- } | {
592
- type: "unparsed";
593
- value: string;
594
- hidden?: boolean | undefined;
595
- } | any | {
596
- type: "image";
597
- value: {
598
- type: "asset";
599
- value: string;
600
- } | {
601
- type: "url";
602
- url: string;
603
- };
604
- hidden?: boolean | undefined;
605
- } | {
606
- type: "tuple";
607
- value: ({
608
- type: "unit";
609
- value: number;
610
- 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";
611
- } | {
612
- type: "keyword";
613
- value: string;
614
- } | {
615
- type: "unparsed";
616
- value: string;
617
- hidden?: boolean | undefined;
618
- } | {
619
- type: "rgb";
620
- r: number;
621
- g: number;
622
- b: number;
623
- alpha: number;
624
- } | any)[];
625
- hidden?: boolean | undefined;
626
- } | {
627
- type: "invalid";
628
- value: string;
629
- })[];
630
- } | {
631
- type: "guaranteedInvalid";
632
- } | {
633
- type: "unset";
634
- value: "";
635
- } | {
636
- type: "var";
637
- value: string;
638
- fallbacks: ({
639
- type: "unit";
640
- value: number;
641
- 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";
642
- } | {
643
- type: "keyword";
644
- value: string;
645
- } | {
646
- type: "unparsed";
647
- value: string;
648
- hidden?: boolean | undefined;
649
- } | {
650
- type: "fontFamily";
651
- value: string[];
652
- } | {
653
- type: "rgb";
654
- r: number;
655
- g: number;
656
- b: number;
657
- alpha: number;
658
- } | any | {
659
- type: "image";
660
- value: {
661
- type: "asset";
662
- value: string;
663
- } | {
664
- type: "url";
665
- url: string;
666
- };
667
- hidden?: boolean | undefined;
668
- } | {
669
- type: "tuple";
670
- value: ({
671
- type: "unit";
672
- value: number;
673
- 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";
674
- } | {
675
- type: "keyword";
676
- value: string;
677
- } | {
678
- type: "unparsed";
679
- value: string;
680
- hidden?: boolean | undefined;
681
- } | {
682
- type: "rgb";
683
- r: number;
684
- g: number;
685
- b: number;
686
- alpha: number;
687
- } | any)[];
688
- hidden?: boolean | undefined;
689
- } | {
690
- type: "layers";
691
- value: ({
692
- type: "unit";
693
- value: number;
694
- 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";
695
- } | {
696
- type: "keyword";
697
- value: string;
698
- } | {
699
- type: "unparsed";
700
- value: string;
701
- hidden?: boolean | undefined;
702
- } | any | {
703
- type: "image";
704
- value: {
705
- type: "asset";
706
- value: string;
707
- } | {
708
- type: "url";
709
- url: string;
710
- };
711
- hidden?: boolean | undefined;
712
- } | {
713
- type: "tuple";
714
- value: ({
715
- type: "unit";
716
- value: number;
717
- 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";
718
- } | {
719
- type: "keyword";
720
- value: string;
721
- } | {
722
- type: "unparsed";
723
- value: string;
724
- hidden?: boolean | undefined;
725
- } | {
726
- type: "rgb";
727
- r: number;
728
- g: number;
729
- b: number;
730
- alpha: number;
731
- } | any)[];
732
- hidden?: boolean | undefined;
733
- } | {
734
- type: "invalid";
735
- value: string;
736
- })[];
737
- } | {
738
- type: "guaranteedInvalid";
739
- })[];
740
- };
741
- hidden?: boolean | undefined;
742
- } | {
743
- type: "image";
744
- value: {
745
- type: "asset";
746
- value: string;
747
- } | {
748
- type: "url";
749
- url: string;
750
- };
751
- hidden?: boolean | undefined;
752
- } | {
753
- type: "tuple";
754
- value: ({
755
- type: "unit";
756
- value: number;
757
- 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";
758
- } | {
759
- type: "keyword";
760
- value: string;
761
- } | {
762
- type: "unparsed";
763
- value: string;
764
- hidden?: boolean | undefined;
765
- } | {
766
- type: "rgb";
767
- r: number;
768
- g: number;
769
- b: number;
770
- alpha: number;
771
- } | any)[];
772
- hidden?: boolean | undefined;
773
- } | {
774
- type: "invalid";
775
- value: string;
776
- })[];
777
- } | {
778
- type: "guaranteedInvalid";
779
- } | {
780
- type: "unset";
781
- value: "";
782
- } | {
783
- type: "var";
784
- value: string;
785
- fallbacks: ({
786
- type: "unit";
787
- value: number;
788
- 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";
789
- } | {
790
- type: "keyword";
791
- value: string;
792
- } | {
793
- type: "unparsed";
794
- value: string;
795
- hidden?: boolean | undefined;
796
- } | {
797
- type: "fontFamily";
798
- value: string[];
799
- } | {
800
- type: "rgb";
801
- r: number;
802
- g: number;
803
- b: number;
804
- alpha: number;
805
- } | {
806
- type: "function";
807
- name: string;
808
- args: {
809
- type: "unit";
810
- value: number;
811
- 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";
812
- } | {
813
- type: "keyword";
814
- value: string;
815
- } | {
816
- type: "unparsed";
817
- value: string;
818
- hidden?: boolean | undefined;
819
- } | {
820
- type: "fontFamily";
821
- value: string[];
822
- } | {
823
- type: "rgb";
824
- r: number;
825
- g: number;
826
- b: number;
827
- alpha: number;
828
- } | any | {
829
- type: "image";
830
- value: {
831
- type: "asset";
832
- value: string;
833
- } | {
834
- type: "url";
835
- url: string;
836
- };
837
- hidden?: boolean | undefined;
838
- } | any | {
839
- type: "invalid";
840
- value: string;
841
- } | {
842
- type: "layers";
843
- value: ({
844
- type: "unit";
845
- value: number;
846
- 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";
847
- } | {
848
- type: "keyword";
849
- value: string;
850
- } | {
851
- type: "unparsed";
852
- value: string;
853
- hidden?: boolean | undefined;
854
- } | any | {
855
- type: "image";
856
- value: {
857
- type: "asset";
858
- value: string;
859
- } | {
860
- type: "url";
861
- url: string;
862
- };
863
- hidden?: boolean | undefined;
864
- } | {
865
- type: "tuple";
866
- value: ({
867
- type: "unit";
868
- value: number;
869
- 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";
870
- } | {
871
- type: "keyword";
872
- value: string;
873
- } | {
874
- type: "unparsed";
875
- value: string;
876
- hidden?: boolean | undefined;
877
- } | {
878
- type: "rgb";
879
- r: number;
880
- g: number;
881
- b: number;
882
- alpha: number;
883
- } | any)[];
884
- hidden?: boolean | undefined;
885
- } | {
886
- type: "invalid";
887
- value: string;
888
- })[];
889
- } | {
890
- type: "guaranteedInvalid";
891
- } | {
892
- type: "unset";
893
- value: "";
894
- } | {
895
- type: "var";
896
- value: string;
897
- fallbacks: ({
898
- type: "unit";
899
- value: number;
900
- 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";
901
- } | {
902
- type: "keyword";
903
- value: string;
904
- } | {
905
- type: "unparsed";
906
- value: string;
907
- hidden?: boolean | undefined;
908
- } | {
909
- type: "fontFamily";
910
- value: string[];
911
- } | {
912
- type: "rgb";
913
- r: number;
914
- g: number;
915
- b: number;
916
- alpha: number;
917
- } | any | {
918
- type: "image";
919
- value: {
920
- type: "asset";
921
- value: string;
922
- } | {
923
- type: "url";
924
- url: string;
925
- };
926
- hidden?: boolean | undefined;
927
- } | {
928
- type: "tuple";
929
- value: ({
930
- type: "unit";
931
- value: number;
932
- 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";
933
- } | {
934
- type: "keyword";
935
- value: string;
936
- } | {
937
- type: "unparsed";
938
- value: string;
939
- hidden?: boolean | undefined;
940
- } | {
941
- type: "rgb";
942
- r: number;
943
- g: number;
944
- b: number;
945
- alpha: number;
946
- } | any)[];
947
- hidden?: boolean | undefined;
948
- } | {
949
- type: "layers";
950
- value: ({
951
- type: "unit";
952
- value: number;
953
- 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";
954
- } | {
955
- type: "keyword";
956
- value: string;
957
- } | {
958
- type: "unparsed";
959
- value: string;
960
- hidden?: boolean | undefined;
961
- } | any | {
962
- type: "image";
963
- value: {
964
- type: "asset";
965
- value: string;
966
- } | {
967
- type: "url";
968
- url: string;
969
- };
970
- hidden?: boolean | undefined;
971
- } | {
972
- type: "tuple";
973
- value: ({
974
- type: "unit";
975
- value: number;
976
- 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";
977
- } | {
978
- type: "keyword";
979
- value: string;
980
- } | {
981
- type: "unparsed";
982
- value: string;
983
- hidden?: boolean | undefined;
984
- } | {
985
- type: "rgb";
986
- r: number;
987
- g: number;
988
- b: number;
989
- alpha: number;
990
- } | any)[];
991
- hidden?: boolean | undefined;
992
- } | {
993
- type: "invalid";
994
- value: string;
995
- })[];
996
- } | {
997
- type: "guaranteedInvalid";
998
- })[];
999
- };
1000
- hidden?: boolean | undefined;
1001
- } | {
1002
- type: "image";
1003
- value: {
1004
- type: "asset";
1005
- value: string;
1006
- } | {
1007
- type: "url";
1008
- url: string;
1009
- };
1010
- hidden?: boolean | undefined;
1011
- } | {
1012
- type: "tuple";
1013
- value: ({
1014
- type: "unit";
1015
- value: number;
1016
- 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";
1017
- } | {
1018
- type: "keyword";
1019
- value: string;
1020
- } | {
1021
- type: "unparsed";
1022
- value: string;
1023
- hidden?: boolean | undefined;
1024
- } | {
1025
- type: "rgb";
1026
- r: number;
1027
- g: number;
1028
- b: number;
1029
- alpha: number;
1030
- } | any)[];
1031
- hidden?: boolean | undefined;
1032
- } | {
1033
- type: "layers";
1034
- value: ({
1035
- type: "unit";
1036
- value: number;
1037
- 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";
1038
- } | {
1039
- type: "keyword";
1040
- value: string;
1041
- } | {
1042
- type: "unparsed";
1043
- value: string;
1044
- hidden?: boolean | undefined;
1045
- } | any | {
1046
- type: "image";
1047
- value: {
1048
- type: "asset";
1049
- value: string;
1050
- } | {
1051
- type: "url";
1052
- url: string;
1053
- };
1054
- hidden?: boolean | undefined;
1055
- } | {
1056
- type: "tuple";
1057
- value: ({
1058
- type: "unit";
1059
- value: number;
1060
- 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";
1061
- } | {
1062
- type: "keyword";
1063
- value: string;
1064
- } | {
1065
- type: "unparsed";
1066
- value: string;
1067
- hidden?: boolean | undefined;
1068
- } | {
1069
- type: "rgb";
1070
- r: number;
1071
- g: number;
1072
- b: number;
1073
- alpha: number;
1074
- } | any)[];
1075
- hidden?: boolean | undefined;
1076
- } | {
1077
- type: "invalid";
1078
- value: string;
1079
- })[];
1080
- } | {
1081
- type: "guaranteedInvalid";
1082
- })[];
1083
- } | undefined;
1084
- has(property: StyleProperty): boolean;
1085
- get size(): number;
1086
- keys(): IterableIterator<StyleProperty>;
1087
- delete(property: StyleProperty): void;
1088
- clear(): void;
1089
- toString({ indent, transformValue, }?: {
1090
- indent?: number;
1091
- transformValue?: TransformValue;
1092
- }): string;
1093
- }
1094
- export declare class StyleRule {
1095
- styleMap: StylePropertyMap;
1096
- selectorText: string;
1097
- constructor(selectorText: string, style: StylePropertyMap | Style);
1098
- get cssText(): string;
1099
- toString({ indent, transformValue, }?: {
1100
- indent?: number;
1101
- transformValue?: TransformValue;
1102
- }): string;
1103
- }
1104
68
  export type MediaRuleOptions = {
1105
69
  minWidth?: number;
1106
70
  maxWidth?: number;
@@ -1109,9 +73,9 @@ export type MediaRuleOptions = {
1109
73
  export declare class MediaRule {
1110
74
  #private;
1111
75
  options: MediaRuleOptions;
1112
- rules: Map<string, StyleRule | PlaintextRule>;
76
+ rules: Map<string, PlaintextRule>;
1113
77
  constructor(name: string, options?: MediaRuleOptions);
1114
- insertRule(rule: StyleRule | PlaintextRule): StyleRule | PlaintextRule;
78
+ insertRule(rule: PlaintextRule): PlaintextRule;
1115
79
  get cssText(): string;
1116
80
  toString(): string;
1117
81
  generateRule({ nestingRules, transformValue, }: {