@webstudio-is/css-data 0.3.0 → 0.15.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.
Files changed (42) hide show
  1. package/lib/__generated__/keyword-values.js +6617 -6615
  2. package/lib/__generated__/properties.js +3200 -3198
  3. package/lib/__generated__/units.js +33 -31
  4. package/lib/cjs/__generated__/keyword-values.cjs +6636 -6617
  5. package/lib/cjs/__generated__/properties.cjs +3219 -3200
  6. package/lib/cjs/__generated__/units.cjs +52 -33
  7. package/lib/cjs/index.cjs +19 -18
  8. package/lib/cjs/popularity-index.cjs +4631 -4612
  9. package/lib/cjs/schema.cjs +87 -53
  10. package/lib/popularity-index.js +4612 -4610
  11. package/lib/schema.js +66 -49
  12. package/package.json +11 -19
  13. package/src/__generated__/keyword-values.ts +6616 -0
  14. package/src/__generated__/properties.ts +3200 -0
  15. package/src/__generated__/units.ts +32 -0
  16. package/{lib/cjs/index.d.ts → src/index.ts} +0 -1
  17. package/src/popularity-index.ts +4611 -0
  18. package/src/schema.ts +119 -0
  19. package/lib/__generated__/keyword-values.d.ts +0 -302
  20. package/lib/__generated__/keyword-values.d.ts.map +0 -1
  21. package/lib/__generated__/properties.d.ts +0 -3199
  22. package/lib/__generated__/properties.d.ts.map +0 -1
  23. package/lib/__generated__/units.d.ts +0 -2
  24. package/lib/__generated__/units.d.ts.map +0 -1
  25. package/lib/cjs/__generated__/keyword-values.d.ts +0 -302
  26. package/lib/cjs/__generated__/keyword-values.d.ts.map +0 -1
  27. package/lib/cjs/__generated__/properties.d.ts +0 -3199
  28. package/lib/cjs/__generated__/properties.d.ts.map +0 -1
  29. package/lib/cjs/__generated__/units.d.ts +0 -2
  30. package/lib/cjs/__generated__/units.d.ts.map +0 -1
  31. package/lib/cjs/index.d.ts.map +0 -1
  32. package/lib/cjs/popularity-index.d.ts +0 -7
  33. package/lib/cjs/popularity-index.d.ts.map +0 -1
  34. package/lib/cjs/schema.d.ts +0 -607
  35. package/lib/cjs/schema.d.ts.map +0 -1
  36. package/lib/index.d.ts +0 -5
  37. package/lib/index.d.ts.map +0 -1
  38. package/lib/popularity-index.d.ts +0 -7
  39. package/lib/popularity-index.d.ts.map +0 -1
  40. package/lib/schema.d.ts +0 -607
  41. package/lib/schema.d.ts.map +0 -1
  42. package/lib/tsconfig.tsbuildinfo +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const popularityIndex: {
2
- bucketId: number;
3
- date: string;
4
- dayPercentage: number;
5
- property: string;
6
- }[];
7
- //# sourceMappingURL=popularity-index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"popularity-index.d.ts","sourceRoot":"","sources":["../src/popularity-index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe;;;;;GAigJ3B,CAAC"}
package/lib/schema.d.ts DELETED
@@ -1,607 +0,0 @@
1
- import { properties } from "./__generated__/properties";
2
- import { z } from "zod";
3
- declare type Properties = typeof properties & {
4
- [custom: CustomProperty]: {
5
- appliesTo: "allElements";
6
- initial: string;
7
- inherited: boolean;
8
- };
9
- };
10
- export declare type StyleProperty = keyof Properties;
11
- declare type CustomProperty = `--${string}`;
12
- export declare type AppliesTo = Properties[StyleProperty]["appliesTo"];
13
- export declare const Unit: z.ZodUnion<[z.ZodEnum<["ch", "cm", "deg", "dpcm", "dpi", "dppx", "em", "ex", "fr", "grad", "Hz", "in", "kHz", "mm", "ms", "pc", "pt", "px", "Q", "rad", "rem", "s", "turn", "vh", "vmax", "vmin", "vw", "x", "%"]>, z.ZodLiteral<"number">]>;
14
- export declare type Unit = z.infer<typeof Unit>;
15
- export declare const UnitValue: z.ZodObject<{
16
- type: z.ZodLiteral<"unit">;
17
- unit: z.ZodUnion<[z.ZodEnum<["ch", "cm", "deg", "dpcm", "dpi", "dppx", "em", "ex", "fr", "grad", "Hz", "in", "kHz", "mm", "ms", "pc", "pt", "px", "Q", "rad", "rem", "s", "turn", "vh", "vmax", "vmin", "vw", "x", "%"]>, z.ZodLiteral<"number">]>;
18
- value: z.ZodNumber;
19
- }, "strip", z.ZodTypeAny, {
20
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
21
- value: number;
22
- type: "unit";
23
- }, {
24
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
25
- value: number;
26
- type: "unit";
27
- }>;
28
- export declare type UnitValue = z.infer<typeof UnitValue>;
29
- export declare const KeywordValue: z.ZodObject<{
30
- type: z.ZodLiteral<"keyword">;
31
- value: z.ZodString;
32
- }, "strip", z.ZodTypeAny, {
33
- value: string;
34
- type: "keyword";
35
- }, {
36
- value: string;
37
- type: "keyword";
38
- }>;
39
- export declare type KeywordValue = z.infer<typeof KeywordValue>;
40
- export declare const FontFamilyValue: z.ZodObject<{
41
- type: z.ZodLiteral<"fontFamily">;
42
- value: z.ZodArray<z.ZodString, "many">;
43
- }, "strip", z.ZodTypeAny, {
44
- value: string[];
45
- type: "fontFamily";
46
- }, {
47
- value: string[];
48
- type: "fontFamily";
49
- }>;
50
- export declare type FontFamilyValue = z.infer<typeof FontFamilyValue>;
51
- export declare const InvalidValue: z.ZodObject<{
52
- type: z.ZodLiteral<"invalid">;
53
- value: z.ZodString;
54
- }, "strip", z.ZodTypeAny, {
55
- value: string;
56
- type: "invalid";
57
- }, {
58
- value: string;
59
- type: "invalid";
60
- }>;
61
- export declare type InvalidValue = z.infer<typeof InvalidValue>;
62
- export declare const UnsetValue: z.ZodObject<{
63
- type: z.ZodLiteral<"unset">;
64
- value: z.ZodLiteral<"">;
65
- }, "strip", z.ZodTypeAny, {
66
- value: "";
67
- type: "unset";
68
- }, {
69
- value: "";
70
- type: "unset";
71
- }>;
72
- export declare type UnsetValue = z.infer<typeof UnsetValue>;
73
- export declare const validStaticValueTypes: readonly ["unit", "keyword", "fontFamily"];
74
- export declare const ValidStaticStyleValue: z.ZodUnion<[z.ZodObject<{
75
- type: z.ZodLiteral<"unit">;
76
- unit: z.ZodUnion<[z.ZodEnum<["ch", "cm", "deg", "dpcm", "dpi", "dppx", "em", "ex", "fr", "grad", "Hz", "in", "kHz", "mm", "ms", "pc", "pt", "px", "Q", "rad", "rem", "s", "turn", "vh", "vmax", "vmin", "vw", "x", "%"]>, z.ZodLiteral<"number">]>;
77
- value: z.ZodNumber;
78
- }, "strip", z.ZodTypeAny, {
79
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
80
- value: number;
81
- type: "unit";
82
- }, {
83
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
84
- value: number;
85
- type: "unit";
86
- }>, z.ZodObject<{
87
- type: z.ZodLiteral<"keyword">;
88
- value: z.ZodString;
89
- }, "strip", z.ZodTypeAny, {
90
- value: string;
91
- type: "keyword";
92
- }, {
93
- value: string;
94
- type: "keyword";
95
- }>, z.ZodObject<{
96
- type: z.ZodLiteral<"fontFamily">;
97
- value: z.ZodArray<z.ZodString, "many">;
98
- }, "strip", z.ZodTypeAny, {
99
- value: string[];
100
- type: "fontFamily";
101
- }, {
102
- value: string[];
103
- type: "fontFamily";
104
- }>]>;
105
- export declare type ValidStaticStyleValue = z.infer<typeof ValidStaticStyleValue>;
106
- export declare const VarValue: z.ZodObject<{
107
- type: z.ZodLiteral<"var">;
108
- value: z.ZodString;
109
- fallbacks: z.ZodArray<z.ZodUnion<[z.ZodObject<{
110
- type: z.ZodLiteral<"unit">;
111
- unit: z.ZodUnion<[z.ZodEnum<["ch", "cm", "deg", "dpcm", "dpi", "dppx", "em", "ex", "fr", "grad", "Hz", "in", "kHz", "mm", "ms", "pc", "pt", "px", "Q", "rad", "rem", "s", "turn", "vh", "vmax", "vmin", "vw", "x", "%"]>, z.ZodLiteral<"number">]>;
112
- value: z.ZodNumber;
113
- }, "strip", z.ZodTypeAny, {
114
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
115
- value: number;
116
- type: "unit";
117
- }, {
118
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
119
- value: number;
120
- type: "unit";
121
- }>, z.ZodObject<{
122
- type: z.ZodLiteral<"keyword">;
123
- value: z.ZodString;
124
- }, "strip", z.ZodTypeAny, {
125
- value: string;
126
- type: "keyword";
127
- }, {
128
- value: string;
129
- type: "keyword";
130
- }>, z.ZodObject<{
131
- type: z.ZodLiteral<"fontFamily">;
132
- value: z.ZodArray<z.ZodString, "many">;
133
- }, "strip", z.ZodTypeAny, {
134
- value: string[];
135
- type: "fontFamily";
136
- }, {
137
- value: string[];
138
- type: "fontFamily";
139
- }>]>, "many">;
140
- }, "strip", z.ZodTypeAny, {
141
- value: string;
142
- type: "var";
143
- fallbacks: ({
144
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
145
- value: number;
146
- type: "unit";
147
- } | {
148
- value: string;
149
- type: "keyword";
150
- } | {
151
- value: string[];
152
- type: "fontFamily";
153
- })[];
154
- }, {
155
- value: string;
156
- type: "var";
157
- fallbacks: ({
158
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
159
- value: number;
160
- type: "unit";
161
- } | {
162
- value: string;
163
- type: "keyword";
164
- } | {
165
- value: string[];
166
- type: "fontFamily";
167
- })[];
168
- }>;
169
- export declare type VarValue = z.infer<typeof VarValue>;
170
- export declare const StyleValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
171
- type: z.ZodLiteral<"unit">;
172
- unit: z.ZodUnion<[z.ZodEnum<["ch", "cm", "deg", "dpcm", "dpi", "dppx", "em", "ex", "fr", "grad", "Hz", "in", "kHz", "mm", "ms", "pc", "pt", "px", "Q", "rad", "rem", "s", "turn", "vh", "vmax", "vmin", "vw", "x", "%"]>, z.ZodLiteral<"number">]>;
173
- value: z.ZodNumber;
174
- }, "strip", z.ZodTypeAny, {
175
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
176
- value: number;
177
- type: "unit";
178
- }, {
179
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
180
- value: number;
181
- type: "unit";
182
- }>, z.ZodObject<{
183
- type: z.ZodLiteral<"keyword">;
184
- value: z.ZodString;
185
- }, "strip", z.ZodTypeAny, {
186
- value: string;
187
- type: "keyword";
188
- }, {
189
- value: string;
190
- type: "keyword";
191
- }>, z.ZodObject<{
192
- type: z.ZodLiteral<"fontFamily">;
193
- value: z.ZodArray<z.ZodString, "many">;
194
- }, "strip", z.ZodTypeAny, {
195
- value: string[];
196
- type: "fontFamily";
197
- }, {
198
- value: string[];
199
- type: "fontFamily";
200
- }>]>, z.ZodObject<{
201
- type: z.ZodLiteral<"invalid">;
202
- value: z.ZodString;
203
- }, "strip", z.ZodTypeAny, {
204
- value: string;
205
- type: "invalid";
206
- }, {
207
- value: string;
208
- type: "invalid";
209
- }>, z.ZodObject<{
210
- type: z.ZodLiteral<"unset">;
211
- value: z.ZodLiteral<"">;
212
- }, "strip", z.ZodTypeAny, {
213
- value: "";
214
- type: "unset";
215
- }, {
216
- value: "";
217
- type: "unset";
218
- }>, z.ZodObject<{
219
- type: z.ZodLiteral<"var">;
220
- value: z.ZodString;
221
- fallbacks: z.ZodArray<z.ZodUnion<[z.ZodObject<{
222
- type: z.ZodLiteral<"unit">;
223
- unit: z.ZodUnion<[z.ZodEnum<["ch", "cm", "deg", "dpcm", "dpi", "dppx", "em", "ex", "fr", "grad", "Hz", "in", "kHz", "mm", "ms", "pc", "pt", "px", "Q", "rad", "rem", "s", "turn", "vh", "vmax", "vmin", "vw", "x", "%"]>, z.ZodLiteral<"number">]>;
224
- value: z.ZodNumber;
225
- }, "strip", z.ZodTypeAny, {
226
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
227
- value: number;
228
- type: "unit";
229
- }, {
230
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
231
- value: number;
232
- type: "unit";
233
- }>, z.ZodObject<{
234
- type: z.ZodLiteral<"keyword">;
235
- value: z.ZodString;
236
- }, "strip", z.ZodTypeAny, {
237
- value: string;
238
- type: "keyword";
239
- }, {
240
- value: string;
241
- type: "keyword";
242
- }>, z.ZodObject<{
243
- type: z.ZodLiteral<"fontFamily">;
244
- value: z.ZodArray<z.ZodString, "many">;
245
- }, "strip", z.ZodTypeAny, {
246
- value: string[];
247
- type: "fontFamily";
248
- }, {
249
- value: string[];
250
- type: "fontFamily";
251
- }>]>, "many">;
252
- }, "strip", z.ZodTypeAny, {
253
- value: string;
254
- type: "var";
255
- fallbacks: ({
256
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
257
- value: number;
258
- type: "unit";
259
- } | {
260
- value: string;
261
- type: "keyword";
262
- } | {
263
- value: string[];
264
- type: "fontFamily";
265
- })[];
266
- }, {
267
- value: string;
268
- type: "var";
269
- fallbacks: ({
270
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
271
- value: number;
272
- type: "unit";
273
- } | {
274
- value: string;
275
- type: "keyword";
276
- } | {
277
- value: string[];
278
- type: "fontFamily";
279
- })[];
280
- }>]>;
281
- export declare type StyleValue = z.infer<typeof StyleValue>;
282
- export declare const Style: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
283
- type: z.ZodLiteral<"unit">;
284
- unit: z.ZodUnion<[z.ZodEnum<["ch", "cm", "deg", "dpcm", "dpi", "dppx", "em", "ex", "fr", "grad", "Hz", "in", "kHz", "mm", "ms", "pc", "pt", "px", "Q", "rad", "rem", "s", "turn", "vh", "vmax", "vmin", "vw", "x", "%"]>, z.ZodLiteral<"number">]>;
285
- value: z.ZodNumber;
286
- }, "strip", z.ZodTypeAny, {
287
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
288
- value: number;
289
- type: "unit";
290
- }, {
291
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
292
- value: number;
293
- type: "unit";
294
- }>, z.ZodObject<{
295
- type: z.ZodLiteral<"keyword">;
296
- value: z.ZodString;
297
- }, "strip", z.ZodTypeAny, {
298
- value: string;
299
- type: "keyword";
300
- }, {
301
- value: string;
302
- type: "keyword";
303
- }>, z.ZodObject<{
304
- type: z.ZodLiteral<"fontFamily">;
305
- value: z.ZodArray<z.ZodString, "many">;
306
- }, "strip", z.ZodTypeAny, {
307
- value: string[];
308
- type: "fontFamily";
309
- }, {
310
- value: string[];
311
- type: "fontFamily";
312
- }>]>, z.ZodObject<{
313
- type: z.ZodLiteral<"invalid">;
314
- value: z.ZodString;
315
- }, "strip", z.ZodTypeAny, {
316
- value: string;
317
- type: "invalid";
318
- }, {
319
- value: string;
320
- type: "invalid";
321
- }>, z.ZodObject<{
322
- type: z.ZodLiteral<"unset">;
323
- value: z.ZodLiteral<"">;
324
- }, "strip", z.ZodTypeAny, {
325
- value: "";
326
- type: "unset";
327
- }, {
328
- value: "";
329
- type: "unset";
330
- }>, z.ZodObject<{
331
- type: z.ZodLiteral<"var">;
332
- value: z.ZodString;
333
- fallbacks: z.ZodArray<z.ZodUnion<[z.ZodObject<{
334
- type: z.ZodLiteral<"unit">;
335
- unit: z.ZodUnion<[z.ZodEnum<["ch", "cm", "deg", "dpcm", "dpi", "dppx", "em", "ex", "fr", "grad", "Hz", "in", "kHz", "mm", "ms", "pc", "pt", "px", "Q", "rad", "rem", "s", "turn", "vh", "vmax", "vmin", "vw", "x", "%"]>, z.ZodLiteral<"number">]>;
336
- value: z.ZodNumber;
337
- }, "strip", z.ZodTypeAny, {
338
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
339
- value: number;
340
- type: "unit";
341
- }, {
342
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
343
- value: number;
344
- type: "unit";
345
- }>, z.ZodObject<{
346
- type: z.ZodLiteral<"keyword">;
347
- value: z.ZodString;
348
- }, "strip", z.ZodTypeAny, {
349
- value: string;
350
- type: "keyword";
351
- }, {
352
- value: string;
353
- type: "keyword";
354
- }>, z.ZodObject<{
355
- type: z.ZodLiteral<"fontFamily">;
356
- value: z.ZodArray<z.ZodString, "many">;
357
- }, "strip", z.ZodTypeAny, {
358
- value: string[];
359
- type: "fontFamily";
360
- }, {
361
- value: string[];
362
- type: "fontFamily";
363
- }>]>, "many">;
364
- }, "strip", z.ZodTypeAny, {
365
- value: string;
366
- type: "var";
367
- fallbacks: ({
368
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
369
- value: number;
370
- type: "unit";
371
- } | {
372
- value: string;
373
- type: "keyword";
374
- } | {
375
- value: string[];
376
- type: "fontFamily";
377
- })[];
378
- }, {
379
- value: string;
380
- type: "var";
381
- fallbacks: ({
382
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
383
- value: number;
384
- type: "unit";
385
- } | {
386
- value: string;
387
- type: "keyword";
388
- } | {
389
- value: string[];
390
- type: "fontFamily";
391
- })[];
392
- }>]>>;
393
- export declare type Style = {
394
- [property in StyleProperty]?: StyleValue;
395
- } & {
396
- [property: CustomProperty]: StyleValue;
397
- };
398
- export declare const CssRule: z.ZodObject<{
399
- style: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
400
- type: z.ZodLiteral<"unit">;
401
- unit: z.ZodUnion<[z.ZodEnum<["ch", "cm", "deg", "dpcm", "dpi", "dppx", "em", "ex", "fr", "grad", "Hz", "in", "kHz", "mm", "ms", "pc", "pt", "px", "Q", "rad", "rem", "s", "turn", "vh", "vmax", "vmin", "vw", "x", "%"]>, z.ZodLiteral<"number">]>;
402
- value: z.ZodNumber;
403
- }, "strip", z.ZodTypeAny, {
404
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
405
- value: number;
406
- type: "unit";
407
- }, {
408
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
409
- value: number;
410
- type: "unit";
411
- }>, z.ZodObject<{
412
- type: z.ZodLiteral<"keyword">;
413
- value: z.ZodString;
414
- }, "strip", z.ZodTypeAny, {
415
- value: string;
416
- type: "keyword";
417
- }, {
418
- value: string;
419
- type: "keyword";
420
- }>, z.ZodObject<{
421
- type: z.ZodLiteral<"fontFamily">;
422
- value: z.ZodArray<z.ZodString, "many">;
423
- }, "strip", z.ZodTypeAny, {
424
- value: string[];
425
- type: "fontFamily";
426
- }, {
427
- value: string[];
428
- type: "fontFamily";
429
- }>]>, z.ZodObject<{
430
- type: z.ZodLiteral<"invalid">;
431
- value: z.ZodString;
432
- }, "strip", z.ZodTypeAny, {
433
- value: string;
434
- type: "invalid";
435
- }, {
436
- value: string;
437
- type: "invalid";
438
- }>, z.ZodObject<{
439
- type: z.ZodLiteral<"unset">;
440
- value: z.ZodLiteral<"">;
441
- }, "strip", z.ZodTypeAny, {
442
- value: "";
443
- type: "unset";
444
- }, {
445
- value: "";
446
- type: "unset";
447
- }>, z.ZodObject<{
448
- type: z.ZodLiteral<"var">;
449
- value: z.ZodString;
450
- fallbacks: z.ZodArray<z.ZodUnion<[z.ZodObject<{
451
- type: z.ZodLiteral<"unit">;
452
- unit: z.ZodUnion<[z.ZodEnum<["ch", "cm", "deg", "dpcm", "dpi", "dppx", "em", "ex", "fr", "grad", "Hz", "in", "kHz", "mm", "ms", "pc", "pt", "px", "Q", "rad", "rem", "s", "turn", "vh", "vmax", "vmin", "vw", "x", "%"]>, z.ZodLiteral<"number">]>;
453
- value: z.ZodNumber;
454
- }, "strip", z.ZodTypeAny, {
455
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
456
- value: number;
457
- type: "unit";
458
- }, {
459
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
460
- value: number;
461
- type: "unit";
462
- }>, z.ZodObject<{
463
- type: z.ZodLiteral<"keyword">;
464
- value: z.ZodString;
465
- }, "strip", z.ZodTypeAny, {
466
- value: string;
467
- type: "keyword";
468
- }, {
469
- value: string;
470
- type: "keyword";
471
- }>, z.ZodObject<{
472
- type: z.ZodLiteral<"fontFamily">;
473
- value: z.ZodArray<z.ZodString, "many">;
474
- }, "strip", z.ZodTypeAny, {
475
- value: string[];
476
- type: "fontFamily";
477
- }, {
478
- value: string[];
479
- type: "fontFamily";
480
- }>]>, "many">;
481
- }, "strip", z.ZodTypeAny, {
482
- value: string;
483
- type: "var";
484
- fallbacks: ({
485
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
486
- value: number;
487
- type: "unit";
488
- } | {
489
- value: string;
490
- type: "keyword";
491
- } | {
492
- value: string[];
493
- type: "fontFamily";
494
- })[];
495
- }, {
496
- value: string;
497
- type: "var";
498
- fallbacks: ({
499
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
500
- value: number;
501
- type: "unit";
502
- } | {
503
- value: string;
504
- type: "keyword";
505
- } | {
506
- value: string[];
507
- type: "fontFamily";
508
- })[];
509
- }>]>>;
510
- breakpoint: z.ZodOptional<z.ZodString>;
511
- }, "strip", z.ZodTypeAny, {
512
- breakpoint?: string | undefined;
513
- style: Record<string, {
514
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
515
- value: number;
516
- type: "unit";
517
- } | {
518
- value: string;
519
- type: "keyword";
520
- } | {
521
- value: string[];
522
- type: "fontFamily";
523
- } | {
524
- value: string;
525
- type: "invalid";
526
- } | {
527
- value: "";
528
- type: "unset";
529
- } | {
530
- value: string;
531
- type: "var";
532
- fallbacks: ({
533
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
534
- value: number;
535
- type: "unit";
536
- } | {
537
- value: string;
538
- type: "keyword";
539
- } | {
540
- value: string[];
541
- type: "fontFamily";
542
- })[];
543
- }>;
544
- }, {
545
- breakpoint?: string | undefined;
546
- style: Record<string, {
547
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
548
- value: number;
549
- type: "unit";
550
- } | {
551
- value: string;
552
- type: "keyword";
553
- } | {
554
- value: string[];
555
- type: "fontFamily";
556
- } | {
557
- value: string;
558
- type: "invalid";
559
- } | {
560
- value: "";
561
- type: "unset";
562
- } | {
563
- value: string;
564
- type: "var";
565
- fallbacks: ({
566
- unit: "number" | "x" | "px" | "%" | "ch" | "cm" | "deg" | "dpcm" | "dpi" | "dppx" | "em" | "ex" | "fr" | "grad" | "Hz" | "in" | "kHz" | "mm" | "ms" | "pc" | "pt" | "Q" | "rad" | "rem" | "s" | "turn" | "vh" | "vmax" | "vmin" | "vw";
567
- value: number;
568
- type: "unit";
569
- } | {
570
- value: string;
571
- type: "keyword";
572
- } | {
573
- value: string[];
574
- type: "fontFamily";
575
- })[];
576
- }>;
577
- }>;
578
- export declare type CssRule = z.infer<typeof CssRule>;
579
- export declare const Breakpoint: z.ZodObject<{
580
- id: z.ZodString;
581
- label: z.ZodString;
582
- minWidth: z.ZodNumber;
583
- }, "strip", z.ZodTypeAny, {
584
- minWidth: number;
585
- id: string;
586
- label: string;
587
- }, {
588
- minWidth: number;
589
- id: string;
590
- label: string;
591
- }>;
592
- export declare const Breakpoints: z.ZodArray<z.ZodObject<{
593
- id: z.ZodString;
594
- label: z.ZodString;
595
- minWidth: z.ZodNumber;
596
- }, "strip", z.ZodTypeAny, {
597
- minWidth: number;
598
- id: string;
599
- label: string;
600
- }, {
601
- minWidth: number;
602
- id: string;
603
- label: string;
604
- }>, "many">;
605
- export declare type Breakpoint = z.infer<typeof Breakpoint>;
606
- export {};
607
- //# sourceMappingURL=schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"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"}