@getvitops/generator 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +743 -0
- package/README.md +8 -1
- package/assets/bricks/elements/icon.php +102 -0
- package/assets/bricks/elements/split.php +8 -5
- package/assets/bricks/load.php +91 -0
- package/assets/css/animation.css +145 -34
- package/assets/css/global.css +19 -3
- package/assets/css/index.css +8 -0
- package/assets/css/layout-utilities.css +764 -0
- package/assets/css/layout.css +50 -584
- package/assets/css/patterns/consent.css +117 -0
- package/assets/css/patterns/details.css +1 -1
- package/assets/css/patterns/reveal.css +92 -0
- package/assets/css/patterns/subgrid.css +7 -2
- package/assets/css/patterns/theme-editor.css +37 -0
- package/assets/css/utilities.css +19 -98
- package/assets/js/consent.js +1 -0
- package/assets/js/deferred.js +1 -1
- package/assets/js/editor.js +1 -1
- package/dist/index.d.mts +668 -252
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +956 -133
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -3
- package/schema.json +3 -3
- package/site.schema.json +554 -506
package/dist/index.d.mts
CHANGED
|
@@ -7,31 +7,31 @@ declare const DesignSystemSchema: z.ZodMiniObject<{
|
|
|
7
7
|
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
8
8
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
9
9
|
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
10
|
-
}, z.z.core.$
|
|
10
|
+
}, z.z.core.$strict>>;
|
|
11
11
|
colors: z.ZodMiniObject<{
|
|
12
12
|
palette: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
13
13
|
seed: z.ZodMiniString<string>;
|
|
14
14
|
anchors: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
15
|
-
}, z.z.core.$
|
|
15
|
+
}, z.z.core.$strict>, z.ZodMiniObject<{
|
|
16
16
|
tones: z.ZodMiniUnion<readonly [z.ZodMiniArray<z.ZodMiniString<string>>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>]>;
|
|
17
|
-
}, z.z.core.$
|
|
17
|
+
}, z.z.core.$strict>]>>;
|
|
18
18
|
roles: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
19
19
|
hue: z.ZodMiniString<string>;
|
|
20
20
|
kind: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
21
21
|
surface: "surface";
|
|
22
22
|
chromatic: "chromatic";
|
|
23
23
|
}>>;
|
|
24
|
-
}, z.z.core.$
|
|
24
|
+
}, z.z.core.$strict>]>>;
|
|
25
25
|
utilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
|
|
26
|
-
fill: "fill";
|
|
27
26
|
bg: "bg";
|
|
28
27
|
text: "text";
|
|
29
28
|
icon: "icon";
|
|
30
29
|
border: "border";
|
|
31
30
|
outline: "outline";
|
|
31
|
+
fill: "fill";
|
|
32
32
|
stroke: "stroke";
|
|
33
33
|
}>>>;
|
|
34
|
-
}, z.z.core.$
|
|
34
|
+
}, z.z.core.$strict>;
|
|
35
35
|
shadows: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
36
36
|
fonts: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
37
37
|
typeScale: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
@@ -45,8 +45,8 @@ declare const DesignSystemSchema: z.ZodMiniObject<{
|
|
|
45
45
|
minVw: z.ZodMiniString<string>;
|
|
46
46
|
maxVw: z.ZodMiniString<string>;
|
|
47
47
|
minRatio: z.ZodMiniNumber<number>;
|
|
48
|
-
}, z.z.core.$
|
|
49
|
-
}, z.z.core.$
|
|
48
|
+
}, z.z.core.$strict>>;
|
|
49
|
+
}, z.z.core.$strict>>;
|
|
50
50
|
spaceScale: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
51
51
|
base: z.ZodMiniString<string>;
|
|
52
52
|
ratio: z.ZodMiniNumber<number>;
|
|
@@ -58,8 +58,8 @@ declare const DesignSystemSchema: z.ZodMiniObject<{
|
|
|
58
58
|
minVw: z.ZodMiniString<string>;
|
|
59
59
|
maxVw: z.ZodMiniString<string>;
|
|
60
60
|
minRatio: z.ZodMiniNumber<number>;
|
|
61
|
-
}, z.z.core.$
|
|
62
|
-
}, z.z.core.$
|
|
61
|
+
}, z.z.core.$strict>>;
|
|
62
|
+
}, z.z.core.$strict>>;
|
|
63
63
|
patterns: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
64
64
|
defaults: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
65
65
|
radii: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
@@ -75,25 +75,25 @@ declare const DesignSystemSchema: z.ZodMiniObject<{
|
|
|
75
75
|
base: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
76
76
|
states: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
77
77
|
roles: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
78
|
-
}, z.z.core.$
|
|
79
|
-
}, z.z.core.$
|
|
78
|
+
}, z.z.core.$strict>>>;
|
|
79
|
+
}, z.z.core.$strict>>;
|
|
80
80
|
typography: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
81
81
|
families: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
82
82
|
roles: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>>;
|
|
83
83
|
headings: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
84
|
-
}, z.z.core.$
|
|
84
|
+
}, z.z.core.$strict>>;
|
|
85
85
|
animations: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
86
86
|
effects: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
87
87
|
kf: z.ZodMiniString<string>;
|
|
88
88
|
css: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
89
89
|
vars: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
90
|
-
}, z.z.core.$
|
|
90
|
+
}, z.z.core.$strict>>>;
|
|
91
91
|
journeys: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
92
92
|
base: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>>;
|
|
93
93
|
compose: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
94
|
-
}, z.z.core.$
|
|
95
|
-
}, z.z.core.$
|
|
96
|
-
}, z.z.core.$
|
|
94
|
+
}, z.z.core.$strict>>;
|
|
95
|
+
}, z.z.core.$strict>>;
|
|
96
|
+
}, z.z.core.$strict>;
|
|
97
97
|
type DesignSystem = z.infer<typeof DesignSystemSchema>;
|
|
98
98
|
/**
|
|
99
99
|
* Stable URL of the published JSON Schema. Resolves once `@getvitops/generator` is on
|
|
@@ -108,31 +108,31 @@ declare const jsonSchema: {
|
|
|
108
108
|
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
109
109
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
110
110
|
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
111
|
-
}, z.z.core.$
|
|
111
|
+
}, z.z.core.$strict>>;
|
|
112
112
|
colors: z.ZodMiniObject<{
|
|
113
113
|
palette: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
114
114
|
seed: z.ZodMiniString<string>;
|
|
115
115
|
anchors: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
116
|
-
}, z.z.core.$
|
|
116
|
+
}, z.z.core.$strict>, z.ZodMiniObject<{
|
|
117
117
|
tones: z.ZodMiniUnion<readonly [z.ZodMiniArray<z.ZodMiniString<string>>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>]>;
|
|
118
|
-
}, z.z.core.$
|
|
118
|
+
}, z.z.core.$strict>]>>;
|
|
119
119
|
roles: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
120
120
|
hue: z.ZodMiniString<string>;
|
|
121
121
|
kind: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
122
122
|
surface: "surface";
|
|
123
123
|
chromatic: "chromatic";
|
|
124
124
|
}>>;
|
|
125
|
-
}, z.z.core.$
|
|
125
|
+
}, z.z.core.$strict>]>>;
|
|
126
126
|
utilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
|
|
127
|
-
fill: "fill";
|
|
128
127
|
bg: "bg";
|
|
129
128
|
text: "text";
|
|
130
129
|
icon: "icon";
|
|
131
130
|
border: "border";
|
|
132
131
|
outline: "outline";
|
|
132
|
+
fill: "fill";
|
|
133
133
|
stroke: "stroke";
|
|
134
134
|
}>>>;
|
|
135
|
-
}, z.z.core.$
|
|
135
|
+
}, z.z.core.$strict>;
|
|
136
136
|
shadows: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
137
137
|
fonts: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
138
138
|
typeScale: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
@@ -146,8 +146,8 @@ declare const jsonSchema: {
|
|
|
146
146
|
minVw: z.ZodMiniString<string>;
|
|
147
147
|
maxVw: z.ZodMiniString<string>;
|
|
148
148
|
minRatio: z.ZodMiniNumber<number>;
|
|
149
|
-
}, z.z.core.$
|
|
150
|
-
}, z.z.core.$
|
|
149
|
+
}, z.z.core.$strict>>;
|
|
150
|
+
}, z.z.core.$strict>>;
|
|
151
151
|
spaceScale: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
152
152
|
base: z.ZodMiniString<string>;
|
|
153
153
|
ratio: z.ZodMiniNumber<number>;
|
|
@@ -159,8 +159,8 @@ declare const jsonSchema: {
|
|
|
159
159
|
minVw: z.ZodMiniString<string>;
|
|
160
160
|
maxVw: z.ZodMiniString<string>;
|
|
161
161
|
minRatio: z.ZodMiniNumber<number>;
|
|
162
|
-
}, z.z.core.$
|
|
163
|
-
}, z.z.core.$
|
|
162
|
+
}, z.z.core.$strict>>;
|
|
163
|
+
}, z.z.core.$strict>>;
|
|
164
164
|
patterns: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
165
165
|
defaults: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
166
166
|
radii: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
@@ -176,25 +176,25 @@ declare const jsonSchema: {
|
|
|
176
176
|
base: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
177
177
|
states: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
178
178
|
roles: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
179
|
-
}, z.z.core.$
|
|
180
|
-
}, z.z.core.$
|
|
179
|
+
}, z.z.core.$strict>>>;
|
|
180
|
+
}, z.z.core.$strict>>;
|
|
181
181
|
typography: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
182
182
|
families: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
183
183
|
roles: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>>;
|
|
184
184
|
headings: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
185
|
-
}, z.z.core.$
|
|
185
|
+
}, z.z.core.$strict>>;
|
|
186
186
|
animations: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
187
187
|
effects: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
188
188
|
kf: z.ZodMiniString<string>;
|
|
189
189
|
css: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
190
190
|
vars: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
191
|
-
}, z.z.core.$
|
|
191
|
+
}, z.z.core.$strict>>>;
|
|
192
192
|
journeys: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
193
193
|
base: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>>;
|
|
194
194
|
compose: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
195
|
-
}, z.z.core.$
|
|
196
|
-
}, z.z.core.$
|
|
197
|
-
}, z.z.core.$
|
|
195
|
+
}, z.z.core.$strict>>;
|
|
196
|
+
}, z.z.core.$strict>>;
|
|
197
|
+
}, z.z.core.$strict>>;
|
|
198
198
|
$schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
|
|
199
199
|
$id: string;
|
|
200
200
|
$anchor?: string;
|
|
@@ -299,6 +299,60 @@ declare const ContactObjectSchema: z.ZodMiniObject<{
|
|
|
299
299
|
}, z.z.core.$strip>;
|
|
300
300
|
type PostalAddress = z.infer<typeof PostalAddressSchema>;
|
|
301
301
|
type ContactObject = z.infer<typeof ContactObjectSchema>;
|
|
302
|
+
declare const SiteFontSchema: z.ZodMiniObject<{
|
|
303
|
+
name: z.ZodMiniString<string>;
|
|
304
|
+
provider: z.ZodMiniEnum<{
|
|
305
|
+
google: "google";
|
|
306
|
+
fontsource: "fontsource";
|
|
307
|
+
adobe: "adobe";
|
|
308
|
+
bunny: "bunny";
|
|
309
|
+
fontshare: "fontshare";
|
|
310
|
+
googleicons: "googleicons";
|
|
311
|
+
npm: "npm";
|
|
312
|
+
local: "local";
|
|
313
|
+
}>;
|
|
314
|
+
cssVariable: z.ZodMiniString<string>;
|
|
315
|
+
weights: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniString<string>]>>>;
|
|
316
|
+
styles: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
|
|
317
|
+
normal: "normal";
|
|
318
|
+
italic: "italic";
|
|
319
|
+
}>>>;
|
|
320
|
+
subsets: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
321
|
+
fallbacks: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
322
|
+
optimizedFallbacks: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
323
|
+
display: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
324
|
+
optional: "optional";
|
|
325
|
+
auto: "auto";
|
|
326
|
+
block: "block";
|
|
327
|
+
swap: "swap";
|
|
328
|
+
fallback: "fallback";
|
|
329
|
+
}>>;
|
|
330
|
+
formats: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
331
|
+
unicodeRange: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
332
|
+
variants: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
333
|
+
src: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
334
|
+
weight: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniString<string>]>>;
|
|
335
|
+
style: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
336
|
+
normal: "normal";
|
|
337
|
+
italic: "italic";
|
|
338
|
+
}>>;
|
|
339
|
+
unicodeRange: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
340
|
+
display: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
341
|
+
optional: "optional";
|
|
342
|
+
auto: "auto";
|
|
343
|
+
block: "block";
|
|
344
|
+
swap: "swap";
|
|
345
|
+
fallback: "fallback";
|
|
346
|
+
}>>;
|
|
347
|
+
}, z.z.core.$strip>>>;
|
|
348
|
+
preload: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
349
|
+
weight: z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniString<string>]>;
|
|
350
|
+
style: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
351
|
+
normal: "normal";
|
|
352
|
+
italic: "italic";
|
|
353
|
+
}>>;
|
|
354
|
+
}, z.z.core.$strip>>]>>;
|
|
355
|
+
}, z.z.core.$strip>;
|
|
302
356
|
/**
|
|
303
357
|
* Which template set the generated legal documents are written against. This is
|
|
304
358
|
* a closed enum rather than a free string because an unrecognised value would
|
|
@@ -475,106 +529,108 @@ declare const SiteConfigSchema: z.ZodMiniObject<{
|
|
|
475
529
|
overrides: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
476
530
|
}, z.z.core.$strip>>>;
|
|
477
531
|
}, z.z.core.$strip>>;
|
|
478
|
-
designSystem: z.
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
532
|
+
designSystem: z.ZodMiniObject<{
|
|
533
|
+
themes: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
534
|
+
$schema: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
535
|
+
meta: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
536
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
537
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
538
|
+
}, z.z.core.$strict>>>;
|
|
539
|
+
shadows: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>>;
|
|
540
|
+
fonts: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>>;
|
|
541
|
+
typeScale: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
542
|
+
base: z.ZodMiniString<string>;
|
|
543
|
+
ratio: z.ZodMiniNumber<number>;
|
|
544
|
+
steps: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
545
|
+
names: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
546
|
+
baseStep: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
547
|
+
baseline: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
548
|
+
fluid: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
549
|
+
minVw: z.ZodMiniString<string>;
|
|
550
|
+
maxVw: z.ZodMiniString<string>;
|
|
551
|
+
minRatio: z.ZodMiniNumber<number>;
|
|
552
|
+
}, z.z.core.$strict>>;
|
|
553
|
+
}, z.z.core.$strict>>>;
|
|
554
|
+
spaceScale: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
555
|
+
base: z.ZodMiniString<string>;
|
|
556
|
+
ratio: z.ZodMiniNumber<number>;
|
|
557
|
+
steps: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
558
|
+
names: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
559
|
+
baseStep: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
560
|
+
baseline: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
561
|
+
fluid: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
562
|
+
minVw: z.ZodMiniString<string>;
|
|
563
|
+
maxVw: z.ZodMiniString<string>;
|
|
564
|
+
minRatio: z.ZodMiniNumber<number>;
|
|
565
|
+
}, z.z.core.$strict>>;
|
|
566
|
+
}, z.z.core.$strict>>>;
|
|
567
|
+
patterns: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
568
|
+
defaults: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
569
|
+
radii: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
570
|
+
groups: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>>;
|
|
571
|
+
z: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniNumber<number>>>;
|
|
572
|
+
items: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
573
|
+
group: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
574
|
+
overrides: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
575
|
+
element: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
576
|
+
class: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
577
|
+
fill: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
578
|
+
default_role: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
579
|
+
base: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
580
|
+
states: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
581
|
+
roles: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
582
|
+
}, z.z.core.$strict>>>;
|
|
583
|
+
}, z.z.core.$strict>>>;
|
|
584
|
+
typography: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
585
|
+
families: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
586
|
+
roles: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>>;
|
|
587
|
+
headings: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
588
|
+
}, z.z.core.$strict>>>;
|
|
589
|
+
animations: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
590
|
+
effects: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
591
|
+
kf: z.ZodMiniString<string>;
|
|
592
|
+
css: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
593
|
+
vars: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
594
|
+
}, z.z.core.$strict>>>;
|
|
595
|
+
journeys: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
596
|
+
base: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>>;
|
|
597
|
+
compose: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
598
|
+
}, z.z.core.$strict>>;
|
|
599
|
+
}, z.z.core.$strict>>>;
|
|
600
|
+
colors: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
601
|
+
palette: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
602
|
+
seed: z.ZodMiniString<string>;
|
|
603
|
+
anchors: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
604
|
+
}, z.z.core.$strict>, z.ZodMiniObject<{
|
|
605
|
+
tones: z.ZodMiniUnion<readonly [z.ZodMiniArray<z.ZodMiniString<string>>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>]>;
|
|
606
|
+
}, z.z.core.$strict>]>>>;
|
|
607
|
+
roles: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
608
|
+
hue: z.ZodMiniString<string>;
|
|
609
|
+
kind: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
610
|
+
surface: "surface";
|
|
611
|
+
chromatic: "chromatic";
|
|
612
|
+
}>>;
|
|
613
|
+
}, z.z.core.$strict>]>>>;
|
|
614
|
+
utilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
|
|
615
|
+
bg: "bg";
|
|
616
|
+
text: "text";
|
|
617
|
+
icon: "icon";
|
|
618
|
+
border: "border";
|
|
619
|
+
outline: "outline";
|
|
620
|
+
fill: "fill";
|
|
621
|
+
stroke: "stroke";
|
|
622
|
+
}>>>;
|
|
623
|
+
}, z.z.core.$strict>>;
|
|
624
|
+
displayName: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>]>>;
|
|
625
|
+
extends: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
626
|
+
}, z.z.core.$strict>>;
|
|
627
|
+
defaultTheme: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
628
|
+
defaultColorScheme: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
629
|
+
light: "light";
|
|
630
|
+
dark: "dark";
|
|
631
|
+
system: "system";
|
|
632
|
+
}>>;
|
|
633
|
+
}, z.z.core.$strict>;
|
|
578
634
|
fonts: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
579
635
|
name: z.ZodMiniString<string>;
|
|
580
636
|
provider: z.ZodMiniEnum<{
|
|
@@ -670,9 +726,9 @@ declare const SiteConfigSchema: z.ZodMiniObject<{
|
|
|
670
726
|
number: "number";
|
|
671
727
|
date: "date";
|
|
672
728
|
file: "file";
|
|
729
|
+
text: "text";
|
|
673
730
|
email: "email";
|
|
674
731
|
url: "url";
|
|
675
|
-
text: "text";
|
|
676
732
|
tel: "tel";
|
|
677
733
|
password: "password";
|
|
678
734
|
textarea: "textarea";
|
|
@@ -745,6 +801,12 @@ declare const SiteConfigSchema: z.ZodMiniObject<{
|
|
|
745
801
|
googleAnalyticsId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
746
802
|
plausibleDomain: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
747
803
|
googleTagManagerId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
804
|
+
clarityId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
805
|
+
matomo: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
806
|
+
url: z.ZodMiniString<string>;
|
|
807
|
+
siteId: z.ZodMiniString<string>;
|
|
808
|
+
cookies: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
809
|
+
}, z.z.core.$strip>>;
|
|
748
810
|
}, z.z.core.$strip>>;
|
|
749
811
|
notifications: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
750
812
|
email: z.ZodMiniOptional<z.ZodMiniEmail>;
|
|
@@ -809,6 +871,8 @@ declare const SiteConfigSchema: z.ZodMiniObject<{
|
|
|
809
871
|
icons: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
810
872
|
ui: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
811
873
|
brand: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
874
|
+
weight: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
875
|
+
sprite: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
812
876
|
semantic: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
813
877
|
'fa7-solid': z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
814
878
|
'fa7-regular': z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -818,7 +882,8 @@ declare const SiteConfigSchema: z.ZodMiniObject<{
|
|
|
818
882
|
'simple-icons': z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
819
883
|
'material-symbols': z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
820
884
|
lucide: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
821
|
-
|
|
885
|
+
ph: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
886
|
+
}, z.z.core.$loose>>;
|
|
822
887
|
favicon: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
823
888
|
source: z.ZodMiniString<string>;
|
|
824
889
|
lowResSource: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -835,6 +900,8 @@ declare const SiteConfigSchema: z.ZodMiniObject<{
|
|
|
835
900
|
}, z.z.core.$strip>>;
|
|
836
901
|
}, z.z.core.$strip>;
|
|
837
902
|
type SiteConfig = z.infer<typeof SiteConfigSchema>;
|
|
903
|
+
/** One `fonts[]` entry — a serialisable projection of an Astro Fonts API family. */
|
|
904
|
+
type SiteFont = z.infer<typeof SiteFontSchema>;
|
|
838
905
|
declare const SITE_SCHEMA_URL = "https://unpkg.com/@getvitops/generator/site.schema.json";
|
|
839
906
|
/** The published JSON Schema (draft-2020-12), derived from the zod schema. */
|
|
840
907
|
declare const siteJsonSchema: {
|
|
@@ -1005,106 +1072,108 @@ declare const siteJsonSchema: {
|
|
|
1005
1072
|
overrides: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
1006
1073
|
}, z.z.core.$strip>>>;
|
|
1007
1074
|
}, z.z.core.$strip>>;
|
|
1008
|
-
designSystem: z.
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1075
|
+
designSystem: z.ZodMiniObject<{
|
|
1076
|
+
themes: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
1077
|
+
$schema: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
1078
|
+
meta: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1079
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1080
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1081
|
+
}, z.z.core.$strict>>>;
|
|
1082
|
+
shadows: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>>;
|
|
1083
|
+
fonts: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>>;
|
|
1084
|
+
typeScale: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1085
|
+
base: z.ZodMiniString<string>;
|
|
1086
|
+
ratio: z.ZodMiniNumber<number>;
|
|
1087
|
+
steps: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1088
|
+
names: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1089
|
+
baseStep: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1090
|
+
baseline: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1091
|
+
fluid: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1092
|
+
minVw: z.ZodMiniString<string>;
|
|
1093
|
+
maxVw: z.ZodMiniString<string>;
|
|
1094
|
+
minRatio: z.ZodMiniNumber<number>;
|
|
1095
|
+
}, z.z.core.$strict>>;
|
|
1096
|
+
}, z.z.core.$strict>>>;
|
|
1097
|
+
spaceScale: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1098
|
+
base: z.ZodMiniString<string>;
|
|
1099
|
+
ratio: z.ZodMiniNumber<number>;
|
|
1100
|
+
steps: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1101
|
+
names: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1102
|
+
baseStep: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1103
|
+
baseline: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1104
|
+
fluid: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1105
|
+
minVw: z.ZodMiniString<string>;
|
|
1106
|
+
maxVw: z.ZodMiniString<string>;
|
|
1107
|
+
minRatio: z.ZodMiniNumber<number>;
|
|
1108
|
+
}, z.z.core.$strict>>;
|
|
1109
|
+
}, z.z.core.$strict>>>;
|
|
1110
|
+
patterns: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1111
|
+
defaults: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
1112
|
+
radii: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
1113
|
+
groups: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>>;
|
|
1114
|
+
z: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniNumber<number>>>;
|
|
1115
|
+
items: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
1116
|
+
group: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1117
|
+
overrides: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
1118
|
+
element: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1119
|
+
class: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1120
|
+
fill: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1121
|
+
default_role: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1122
|
+
base: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
1123
|
+
states: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
1124
|
+
roles: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1125
|
+
}, z.z.core.$strict>>>;
|
|
1126
|
+
}, z.z.core.$strict>>>;
|
|
1127
|
+
typography: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1128
|
+
families: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
1129
|
+
roles: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>>;
|
|
1130
|
+
headings: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
1131
|
+
}, z.z.core.$strict>>>;
|
|
1132
|
+
animations: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1133
|
+
effects: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
1134
|
+
kf: z.ZodMiniString<string>;
|
|
1135
|
+
css: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
1136
|
+
vars: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
1137
|
+
}, z.z.core.$strict>>>;
|
|
1138
|
+
journeys: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1139
|
+
base: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>>;
|
|
1140
|
+
compose: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
1141
|
+
}, z.z.core.$strict>>;
|
|
1142
|
+
}, z.z.core.$strict>>>;
|
|
1143
|
+
colors: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1144
|
+
palette: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
1145
|
+
seed: z.ZodMiniString<string>;
|
|
1146
|
+
anchors: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
1147
|
+
}, z.z.core.$strict>, z.ZodMiniObject<{
|
|
1148
|
+
tones: z.ZodMiniUnion<readonly [z.ZodMiniArray<z.ZodMiniString<string>>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>]>;
|
|
1149
|
+
}, z.z.core.$strict>]>>>;
|
|
1150
|
+
roles: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
1151
|
+
hue: z.ZodMiniString<string>;
|
|
1152
|
+
kind: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
1153
|
+
surface: "surface";
|
|
1154
|
+
chromatic: "chromatic";
|
|
1155
|
+
}>>;
|
|
1156
|
+
}, z.z.core.$strict>]>>>;
|
|
1157
|
+
utilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
|
|
1158
|
+
bg: "bg";
|
|
1159
|
+
text: "text";
|
|
1160
|
+
icon: "icon";
|
|
1161
|
+
border: "border";
|
|
1162
|
+
outline: "outline";
|
|
1163
|
+
fill: "fill";
|
|
1164
|
+
stroke: "stroke";
|
|
1165
|
+
}>>>;
|
|
1166
|
+
}, z.z.core.$strict>>;
|
|
1167
|
+
displayName: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>]>>;
|
|
1168
|
+
extends: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1169
|
+
}, z.z.core.$strict>>;
|
|
1170
|
+
defaultTheme: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1171
|
+
defaultColorScheme: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
1172
|
+
light: "light";
|
|
1173
|
+
dark: "dark";
|
|
1174
|
+
system: "system";
|
|
1175
|
+
}>>;
|
|
1176
|
+
}, z.z.core.$strict>;
|
|
1108
1177
|
fonts: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1109
1178
|
name: z.ZodMiniString<string>;
|
|
1110
1179
|
provider: z.ZodMiniEnum<{
|
|
@@ -1200,9 +1269,9 @@ declare const siteJsonSchema: {
|
|
|
1200
1269
|
number: "number";
|
|
1201
1270
|
date: "date";
|
|
1202
1271
|
file: "file";
|
|
1272
|
+
text: "text";
|
|
1203
1273
|
email: "email";
|
|
1204
1274
|
url: "url";
|
|
1205
|
-
text: "text";
|
|
1206
1275
|
tel: "tel";
|
|
1207
1276
|
password: "password";
|
|
1208
1277
|
textarea: "textarea";
|
|
@@ -1275,6 +1344,12 @@ declare const siteJsonSchema: {
|
|
|
1275
1344
|
googleAnalyticsId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1276
1345
|
plausibleDomain: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1277
1346
|
googleTagManagerId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1347
|
+
clarityId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1348
|
+
matomo: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1349
|
+
url: z.ZodMiniString<string>;
|
|
1350
|
+
siteId: z.ZodMiniString<string>;
|
|
1351
|
+
cookies: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1352
|
+
}, z.z.core.$strip>>;
|
|
1278
1353
|
}, z.z.core.$strip>>;
|
|
1279
1354
|
notifications: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1280
1355
|
email: z.ZodMiniOptional<z.ZodMiniEmail>;
|
|
@@ -1339,6 +1414,8 @@ declare const siteJsonSchema: {
|
|
|
1339
1414
|
icons: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1340
1415
|
ui: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1341
1416
|
brand: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1417
|
+
weight: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1418
|
+
sprite: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1342
1419
|
semantic: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1343
1420
|
'fa7-solid': z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1344
1421
|
'fa7-regular': z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -1348,7 +1425,8 @@ declare const siteJsonSchema: {
|
|
|
1348
1425
|
'simple-icons': z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1349
1426
|
'material-symbols': z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1350
1427
|
lucide: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1351
|
-
|
|
1428
|
+
ph: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1429
|
+
}, z.z.core.$loose>>;
|
|
1352
1430
|
favicon: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1353
1431
|
source: z.ZodMiniString<string>;
|
|
1354
1432
|
lowResSource: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1464,12 +1542,61 @@ declare function resolveTheme(designSystem: Record<string, DesignSystemEntryT>,
|
|
|
1464
1542
|
/**
|
|
1465
1543
|
* Resolve a raw (already-parsed) config into a validated `SiteConfig`:
|
|
1466
1544
|
* 1. strip YAML nulls,
|
|
1467
|
-
* 2.
|
|
1468
|
-
* 3.
|
|
1545
|
+
* 2. normalise the `designSystem` shorthands to `{ themes: … }`,
|
|
1546
|
+
* 3. apply the active A/B variant's `overrides` (by `siteEnv`),
|
|
1469
1547
|
* 4. validate (shape + cross-field).
|
|
1470
1548
|
* Pure — no YAML/env access. A loader supplies `siteEnv`.
|
|
1549
|
+
*
|
|
1550
|
+
* Steps 2 and 3 are in this order deliberately. Normalising first means an
|
|
1551
|
+
* `abTesting` override always addresses the canonical shape
|
|
1552
|
+
* (`designSystem.themes.<name>`), whatever shorthand the base config used. With
|
|
1553
|
+
* the merge first, an override's key path depended on how the base happened to be
|
|
1554
|
+
* written — so the same patch hit a different place in two configs that were
|
|
1555
|
+
* otherwise equivalent.
|
|
1471
1556
|
*/
|
|
1472
1557
|
declare function resolveSiteConfig(input: unknown, siteEnv?: string): SiteConfig;
|
|
1558
|
+
/**
|
|
1559
|
+
* Is this raw config a `SiteConfig` rather than a bare `design-system.json`?
|
|
1560
|
+
*
|
|
1561
|
+
* The discriminator is **total**, not a heuristic, and both halves are load-
|
|
1562
|
+
* bearing: `SiteConfigSchema` cannot validate without a `designSystem` (a config
|
|
1563
|
+
* lacking one fails `validateSite` with `themes must include a "default" entry`),
|
|
1564
|
+
* and `DesignSystemSchema` is strict, so a `designSystem` key in a design system
|
|
1565
|
+
* is an `unrecognized_keys` error. No document can be read as both, and no
|
|
1566
|
+
* document that is neither reaches here without failing validation anyway.
|
|
1567
|
+
*
|
|
1568
|
+
* Deliberately shape-based rather than filename-based: consumers name this file
|
|
1569
|
+
* whatever suits them (`company.json`, `site.json`, `vitops.config.json`), and a
|
|
1570
|
+
* rule keyed to a name would silently stop working the moment someone renamed it.
|
|
1571
|
+
*/
|
|
1572
|
+
declare function isSiteConfig(raw: unknown): boolean;
|
|
1573
|
+
/** What a config file turned out to hold. */
|
|
1574
|
+
interface ResolvedInput {
|
|
1575
|
+
/** The design system to build from — a resolved theme, if the input was a `SiteConfig`. */
|
|
1576
|
+
designSystem: DesignSystem;
|
|
1577
|
+
/** The site config, when that is what the input was. */
|
|
1578
|
+
site?: SiteConfig;
|
|
1579
|
+
/** Which `themes` key was selected. Absent for a bare `design-system.json`. */
|
|
1580
|
+
theme?: string;
|
|
1581
|
+
}
|
|
1582
|
+
/**
|
|
1583
|
+
* Resolve a raw config of either kind into the design system to build from.
|
|
1584
|
+
*
|
|
1585
|
+
* Every entry point that used to take a `design-system.json` goes through this,
|
|
1586
|
+
* so a consumer who keeps their tokens inside the larger site config points the
|
|
1587
|
+
* same option at that file instead of maintaining a second one. The site config
|
|
1588
|
+
* is handed back too, because the parts of generation that depend on site-level
|
|
1589
|
+
* facts (`designSystem.defaultColorScheme`, the legal documents, the icon
|
|
1590
|
+
* sprite) would otherwise need the same path declared a second time.
|
|
1591
|
+
*
|
|
1592
|
+
* The returned `designSystem` is **not** validated here — the caller does that,
|
|
1593
|
+
* so it can say which file and which theme the errors belong to. Validation of
|
|
1594
|
+
* the site config itself has already happened (`resolveSiteConfig` throws).
|
|
1595
|
+
*/
|
|
1596
|
+
declare function resolveInput(raw: unknown, opts?: {
|
|
1597
|
+
theme?: string;
|
|
1598
|
+
siteEnv?: string;
|
|
1599
|
+
}): ResolvedInput;
|
|
1473
1600
|
/** Strip nulls (YAML `~`/`null`) → undefined so optional fields validate. */
|
|
1474
1601
|
declare function stripNulls(obj: unknown): unknown;
|
|
1475
1602
|
/** Deep-merge `source` into `target` (in place). Arrays replace wholesale. */
|
|
@@ -1540,8 +1667,22 @@ type Format = 'bricks' | 'css' | 'tailwind' | 'design';
|
|
|
1540
1667
|
*/
|
|
1541
1668
|
type StylesheetFormat = Exclude<Format, 'design'>;
|
|
1542
1669
|
interface GenerateOptions {
|
|
1543
|
-
/**
|
|
1544
|
-
|
|
1670
|
+
/**
|
|
1671
|
+
* The config to build from — a path, or an already-parsed object.
|
|
1672
|
+
*
|
|
1673
|
+
* **Either kind is accepted.** A bare `design-system.json`, or the larger
|
|
1674
|
+
* `SiteConfig` that embeds one (commonly `company.json` / `site.json`), in
|
|
1675
|
+
* which case the design system is `designSystem.themes[theme]` with its
|
|
1676
|
+
* `extends` chain resolved. The two are told apart by shape, not by filename —
|
|
1677
|
+
* see `isSiteConfig`.
|
|
1678
|
+
*
|
|
1679
|
+
* Passing a site config here also supplies `site`, so the site-level facts
|
|
1680
|
+
* generation depends on (`designSystem.defaultColorScheme`, the legal
|
|
1681
|
+
* documents, the icon sprite) don't need the same path declared twice. Each of
|
|
1682
|
+
* those is still gated on a field in that config, so nothing new appears
|
|
1683
|
+
* unless the config asks for it.
|
|
1684
|
+
*/
|
|
1685
|
+
input: string | DesignSystem | SiteConfig;
|
|
1545
1686
|
/** Output target. Default: 'bricks'. */
|
|
1546
1687
|
format?: Format;
|
|
1547
1688
|
/** Directory to write outputs into. Default: 'dist'. */
|
|
@@ -1549,14 +1690,34 @@ interface GenerateOptions {
|
|
|
1549
1690
|
/** Override the framework asset root (advanced/testing). */
|
|
1550
1691
|
assetsDir?: string;
|
|
1551
1692
|
/**
|
|
1552
|
-
*
|
|
1553
|
-
*
|
|
1693
|
+
* Which `designSystem.themes` entry to build. Default: the config's
|
|
1694
|
+
* `defaultTheme`, else `default`. An error on a bare `design-system.json`,
|
|
1695
|
+
* which holds one design system and no themes map.
|
|
1696
|
+
*/
|
|
1697
|
+
theme?: string;
|
|
1698
|
+
/**
|
|
1699
|
+
* Environment whose A/B variant applies to the site config, wherever it came
|
|
1700
|
+
* from (`input` or `site`). Default: `'production'`.
|
|
1701
|
+
*/
|
|
1702
|
+
siteEnv?: string;
|
|
1703
|
+
/**
|
|
1704
|
+
* The site config, when it is a *different* file from `input` — enabling
|
|
1705
|
+
* legal-document output into `<outDir>/legal/*.html` and supplying
|
|
1706
|
+
* `designSystem.defaultColorScheme`.
|
|
1554
1707
|
*
|
|
1555
|
-
*
|
|
1556
|
-
* `design-system.json`, this is a `SiteConfig`. Nothing else in `generate`
|
|
1557
|
-
* reads it, and omitting it emits no legal files.
|
|
1708
|
+
* Redundant when `input` is already a site config; set both and this one wins.
|
|
1558
1709
|
*/
|
|
1559
1710
|
site?: string | SiteConfig;
|
|
1711
|
+
/**
|
|
1712
|
+
* Emit the `prefers-color-scheme: dark` block (see `BuildOptions`).
|
|
1713
|
+
*
|
|
1714
|
+
* Normally this comes from the site config's `designSystem.defaultColorScheme: "system"`, which
|
|
1715
|
+
* is where the fact belongs. This is the escape hatch for consumers with a
|
|
1716
|
+
* `design-system.json` and no site config at all: requiring a whole
|
|
1717
|
+
* `SiteConfig` — which must carry a full `designSystem` — to set one boolean
|
|
1718
|
+
* would be out of proportion. Set explicitly, it wins over the site config.
|
|
1719
|
+
*/
|
|
1720
|
+
systemColorScheme?: boolean;
|
|
1560
1721
|
}
|
|
1561
1722
|
interface GenerateResult {
|
|
1562
1723
|
format: Format;
|
|
@@ -1594,6 +1755,242 @@ declare function generate(options: GenerateOptions): Promise<GenerateResult>;
|
|
|
1594
1755
|
*/
|
|
1595
1756
|
declare function generateDocs(ds: DesignSystem, assetsDir: string): Record<string, string>;
|
|
1596
1757
|
//#endregion
|
|
1758
|
+
//#region ../../node_modules/.pnpm/@iconify+types@2.0.0/node_modules/@iconify/types/types.d.ts
|
|
1759
|
+
/**
|
|
1760
|
+
* Icon dimensions.
|
|
1761
|
+
*
|
|
1762
|
+
* Used in:
|
|
1763
|
+
* icon (as is)
|
|
1764
|
+
* alias (overwrite icon's properties)
|
|
1765
|
+
* root of JSON file (default values)
|
|
1766
|
+
*/
|
|
1767
|
+
interface IconifyDimenisons {
|
|
1768
|
+
// Left position of viewBox.
|
|
1769
|
+
// Defaults to 0.
|
|
1770
|
+
left?: number; // Top position of viewBox.
|
|
1771
|
+
// Defaults to 0.
|
|
1772
|
+
top?: number; // Width of viewBox.
|
|
1773
|
+
// Defaults to 16.
|
|
1774
|
+
width?: number; // Height of viewBox.
|
|
1775
|
+
// Defaults to 16.
|
|
1776
|
+
height?: number;
|
|
1777
|
+
}
|
|
1778
|
+
/**
|
|
1779
|
+
* Icon transformations.
|
|
1780
|
+
*
|
|
1781
|
+
* Used in:
|
|
1782
|
+
* icon (as is)
|
|
1783
|
+
* alias (merged with icon's properties)
|
|
1784
|
+
*/
|
|
1785
|
+
interface IconifyTransformations {
|
|
1786
|
+
// Number of 90 degrees rotations.
|
|
1787
|
+
// 0 = 0, 1 = 90deg and so on.
|
|
1788
|
+
// Defaults to 0.
|
|
1789
|
+
// When merged (such as alias + icon), result is icon.rotation + alias.rotation.
|
|
1790
|
+
rotate?: number; // Horizontal flip.
|
|
1791
|
+
// Defaults to false.
|
|
1792
|
+
// When merged, result is icon.hFlip !== alias.hFlip
|
|
1793
|
+
hFlip?: boolean; // Vertical flip. (see hFlip comments)
|
|
1794
|
+
vFlip?: boolean;
|
|
1795
|
+
}
|
|
1796
|
+
/**
|
|
1797
|
+
* Combination of dimensions and transformations.
|
|
1798
|
+
*/
|
|
1799
|
+
interface IconifyOptional extends IconifyDimenisons, IconifyTransformations { //
|
|
1800
|
+
}
|
|
1801
|
+
/**
|
|
1802
|
+
* Alias.
|
|
1803
|
+
*/
|
|
1804
|
+
interface IconifyAlias extends IconifyOptional {
|
|
1805
|
+
// Parent icon index without prefix, required.
|
|
1806
|
+
parent: string; // IconifyOptional properties.
|
|
1807
|
+
// Alias should have only properties that it overrides.
|
|
1808
|
+
// Transformations are merged, not overridden. See IconifyTransformations comments.
|
|
1809
|
+
}
|
|
1810
|
+
/**
|
|
1811
|
+
* Icon.
|
|
1812
|
+
*/
|
|
1813
|
+
interface IconifyIcon extends IconifyOptional {
|
|
1814
|
+
// Icon body: <path d="..." />, required.
|
|
1815
|
+
body: string; // IconifyOptional properties.
|
|
1816
|
+
// If property is missing in JSON file, look in root object for default value.
|
|
1817
|
+
}
|
|
1818
|
+
/**
|
|
1819
|
+
* Icon with optional parameters that are provided by API and affect only search
|
|
1820
|
+
*/
|
|
1821
|
+
interface APIIconAttributes {
|
|
1822
|
+
// True if icon is hidden.
|
|
1823
|
+
// Used in icon sets to keep icons that no longer exist, but should still be accessible
|
|
1824
|
+
// from API, preventing websites from breaking when icon is removed by developer.
|
|
1825
|
+
hidden?: boolean;
|
|
1826
|
+
}
|
|
1827
|
+
interface ExtendedIconifyIcon extends IconifyIcon, APIIconAttributes {}
|
|
1828
|
+
interface ExtendedIconifyAlias extends IconifyAlias, APIIconAttributes {}
|
|
1829
|
+
/**
|
|
1830
|
+
* "icons" field of JSON file.
|
|
1831
|
+
*/
|
|
1832
|
+
interface IconifyIcons {
|
|
1833
|
+
// Index is name of icon, without prefix. Value is ExtendedIconifyIcon object.
|
|
1834
|
+
[index: string]: ExtendedIconifyIcon;
|
|
1835
|
+
}
|
|
1836
|
+
/**
|
|
1837
|
+
* "aliases" field of JSON file.
|
|
1838
|
+
*/
|
|
1839
|
+
interface IconifyAliases {
|
|
1840
|
+
// Index is name of icon, without prefix. Value is ExtendedIconifyAlias object.
|
|
1841
|
+
[index: string]: ExtendedIconifyAlias;
|
|
1842
|
+
}
|
|
1843
|
+
/**
|
|
1844
|
+
* Icon set information block.
|
|
1845
|
+
*/
|
|
1846
|
+
interface IconifyInfo {
|
|
1847
|
+
// Icon set name.
|
|
1848
|
+
name: string; // Total number of icons.
|
|
1849
|
+
total?: number; // Version string.
|
|
1850
|
+
version?: string; // Author information.
|
|
1851
|
+
author: {
|
|
1852
|
+
// Author name.
|
|
1853
|
+
name: string; // Link to author's website or icon set website.
|
|
1854
|
+
url?: string;
|
|
1855
|
+
}; // License
|
|
1856
|
+
license: {
|
|
1857
|
+
// Human readable license.
|
|
1858
|
+
title: string; // SPDX license identifier.
|
|
1859
|
+
spdx?: string; // License URL.
|
|
1860
|
+
url?: string;
|
|
1861
|
+
}; // Array of icons that should be used for samples in icon sets list.
|
|
1862
|
+
samples?: string[]; // Icon grid: number or array of numbers.
|
|
1863
|
+
height?: number | number[]; // Display height for samples: 16 - 24
|
|
1864
|
+
displayHeight?: number; // Category on Iconify collections list.
|
|
1865
|
+
category?: string; // List of tags to group similar icon sets.
|
|
1866
|
+
tags?: string[]; // Palette status. True if icons have predefined color scheme, false if icons use currentColor.
|
|
1867
|
+
// Ideally, icon set should not mix icons with and without palette to simplify search.
|
|
1868
|
+
palette?: boolean; // If true, icon set should not appear in icon sets list.
|
|
1869
|
+
hidden?: boolean;
|
|
1870
|
+
}
|
|
1871
|
+
/**
|
|
1872
|
+
* Optional themes, old format.
|
|
1873
|
+
*
|
|
1874
|
+
* Deprecated because format is unnecessary complicated. Key is meaningless, suffixes and prefixes are mixed together.
|
|
1875
|
+
*/
|
|
1876
|
+
interface LegacyIconifyThemes {
|
|
1877
|
+
// Key is unique string.
|
|
1878
|
+
[index: string]: {
|
|
1879
|
+
// Theme title.
|
|
1880
|
+
title: string; // Icon prefix or suffix, including dash. All icons that start with prefix and end with suffix belong to theme.
|
|
1881
|
+
prefix?: string; // Example: 'baseline-'
|
|
1882
|
+
suffix?: string; // Example: '-filled'
|
|
1883
|
+
};
|
|
1884
|
+
}
|
|
1885
|
+
/**
|
|
1886
|
+
* Characters used in font.
|
|
1887
|
+
*/
|
|
1888
|
+
interface IconifyChars {
|
|
1889
|
+
// Index is character, such as "f000".
|
|
1890
|
+
// Value is icon name.
|
|
1891
|
+
[index: string]: string;
|
|
1892
|
+
}
|
|
1893
|
+
/**
|
|
1894
|
+
* Icon categories
|
|
1895
|
+
*/
|
|
1896
|
+
interface IconifyCategories {
|
|
1897
|
+
// Index is category title, such as "Weather".
|
|
1898
|
+
// Value is array of icons that belong to that category.
|
|
1899
|
+
// Each icon can belong to multiple categories or no categories.
|
|
1900
|
+
[index: string]: string[];
|
|
1901
|
+
}
|
|
1902
|
+
/**
|
|
1903
|
+
* Meta data stored in JSON file, used for browsing icon set.
|
|
1904
|
+
*/
|
|
1905
|
+
interface IconifyMetaData {
|
|
1906
|
+
// Icon set information block. Used for public icon sets, can be skipped for private icon sets.
|
|
1907
|
+
info?: IconifyInfo; // Characters used in font. Used for searching by character for icon sets imported from font, exporting icon set to font.
|
|
1908
|
+
chars?: IconifyChars; // Categories. Used for filtering icons.
|
|
1909
|
+
categories?: IconifyCategories; // Optional themes (old format).
|
|
1910
|
+
themes?: LegacyIconifyThemes; // Optional themes (new format). Key is prefix or suffix, value is title.
|
|
1911
|
+
prefixes?: Record<string, string>;
|
|
1912
|
+
suffixes?: Record<string, string>;
|
|
1913
|
+
}
|
|
1914
|
+
/**
|
|
1915
|
+
* JSON structure, contains only icon data
|
|
1916
|
+
*/
|
|
1917
|
+
interface IconifyJSONIconsData extends IconifyDimenisons {
|
|
1918
|
+
// Prefix for icons in JSON file, required.
|
|
1919
|
+
prefix: string; // API provider, optional.
|
|
1920
|
+
provider?: string; // List of icons, required.
|
|
1921
|
+
icons: IconifyIcons; // Optional aliases.
|
|
1922
|
+
aliases?: IconifyAliases; // IconifyDimenisons properties that are used as default viewbox for icons when icon is missing value.
|
|
1923
|
+
// If viewbox exists in both icon and root, use value from icon.
|
|
1924
|
+
// This is used to reduce duplication.
|
|
1925
|
+
}
|
|
1926
|
+
/**
|
|
1927
|
+
* JSON structure.
|
|
1928
|
+
*
|
|
1929
|
+
* All optional values can exist in root of JSON file, used as defaults.
|
|
1930
|
+
*/
|
|
1931
|
+
interface IconifyJSON extends IconifyJSONIconsData, IconifyMetaData {
|
|
1932
|
+
// Last modification time of icons. Unix time stamp in seconds.
|
|
1933
|
+
// Time is calculated only for icon data, ignoring metadata.
|
|
1934
|
+
// Used to invalidate icons cache in components.
|
|
1935
|
+
lastModified?: number; // Optional list of missing icons. Returned by Iconify API when querying for icons that do not exist.
|
|
1936
|
+
not_found?: string[];
|
|
1937
|
+
}
|
|
1938
|
+
//#endregion
|
|
1939
|
+
//#region src/icons-sprite.d.ts
|
|
1940
|
+
interface IconSpriteOptions {
|
|
1941
|
+
/** Exactly `generateIconInclude()`'s shape: collection → icon names. */
|
|
1942
|
+
include: Record<string, string[]>;
|
|
1943
|
+
/**
|
|
1944
|
+
* Extra ids pointing at an already-included icon, e.g. `{ 'icon-menu': 'ph:list' }`,
|
|
1945
|
+
* so a consumer can reference a semantic name without knowing the set.
|
|
1946
|
+
*/
|
|
1947
|
+
aliases?: Record<string, string>;
|
|
1948
|
+
/**
|
|
1949
|
+
* Directory to resolve `@iconify-json/*` from. Defaults to `process.cwd()`.
|
|
1950
|
+
*
|
|
1951
|
+
* Load-bearing: the collections are the CONSUMER's dependency, not this
|
|
1952
|
+
* package's, so a bare `import('@iconify-json/ph/…')` from inside the
|
|
1953
|
+
* generator resolves against the generator's own node_modules and misses them
|
|
1954
|
+
* entirely — which reads as "not installed" on a project that has them.
|
|
1955
|
+
*/
|
|
1956
|
+
resolveFrom?: string;
|
|
1957
|
+
/** Injected in tests so the emitter can run without any @iconify-json/* installed. */
|
|
1958
|
+
loadSet?: (prefix: string) => Promise<IconifyJSON | null>;
|
|
1959
|
+
}
|
|
1960
|
+
interface IconSpriteResult {
|
|
1961
|
+
svg: string;
|
|
1962
|
+
/** Every `<symbol>` id emitted, in order. */
|
|
1963
|
+
ids: string[];
|
|
1964
|
+
/** `prefix:name` entries that were asked for but not found. */
|
|
1965
|
+
missing: string[];
|
|
1966
|
+
}
|
|
1967
|
+
/**
|
|
1968
|
+
* `ph:caret-down` → `ph--caret-down`.
|
|
1969
|
+
*
|
|
1970
|
+
* The one place this grammar lives. `Icon.astro` mirrors it and `icon.test.ts`
|
|
1971
|
+
* guards the pair, because a drift here resolves `<use>` to nothing and renders
|
|
1972
|
+
* as an empty box rather than an error.
|
|
1973
|
+
*/
|
|
1974
|
+
declare function spriteId(qualified: string): string;
|
|
1975
|
+
declare function buildIconSprite(o: IconSpriteOptions): Promise<IconSpriteResult>;
|
|
1976
|
+
/**
|
|
1977
|
+
* One icon's renderable parts, for inlining into markup.
|
|
1978
|
+
*
|
|
1979
|
+
* Exists because `<Icon />` cannot go through astro-icon: its `./components`
|
|
1980
|
+
* entry is a TypeScript file that Vite must transform, so it can only be
|
|
1981
|
+
* reached by a statically-analysable import — and a static import is exactly
|
|
1982
|
+
* what made the optional peer mandatory for anyone rendering Popover, Details
|
|
1983
|
+
* or Drawer. Reading the collection directly sidesteps the peer entirely and
|
|
1984
|
+
* shares this file's loader with the sprite, so both paths draw the same glyph.
|
|
1985
|
+
*/
|
|
1986
|
+
declare function loadIconSvg(qualified: string, opts?: {
|
|
1987
|
+
resolveFrom?: string;
|
|
1988
|
+
loadSet?: (prefix: string) => Promise<IconifyJSON | null>;
|
|
1989
|
+
}): Promise<{
|
|
1990
|
+
viewBox: string;
|
|
1991
|
+
body: string;
|
|
1992
|
+
} | null>;
|
|
1993
|
+
//#endregion
|
|
1597
1994
|
//#region src/shared.d.ts
|
|
1598
1995
|
/**
|
|
1599
1996
|
* Data shared between the generator (`generate.ts`) and the docs bundle
|
|
@@ -1610,10 +2007,9 @@ declare function generateDocs(ds: DesignSystem, assetsDir: string): Record<strin
|
|
|
1610
2007
|
* clicking "Dark" changed an attribute no rule matched. Matching both makes the
|
|
1611
2008
|
* component work on every target without changing what Bricks already does.
|
|
1612
2009
|
*
|
|
1613
|
-
*
|
|
1614
|
-
* `
|
|
1615
|
-
*
|
|
1616
|
-
* dark-OS users, which is a product decision, not a bug fix.
|
|
2010
|
+
* This covers the EXPLICIT choice. The OS preference is a second, opt-in block —
|
|
2011
|
+
* see `SYSTEM_DARK_SEL` — because turning it on flips a site dark for dark-OS
|
|
2012
|
+
* users, which is the site's decision rather than the design system's.
|
|
1617
2013
|
*
|
|
1618
2014
|
* Shared so the docs quote the selector the generator actually emits.
|
|
1619
2015
|
*/
|
|
@@ -1715,6 +2111,26 @@ declare const KNOWN_PROCESSORS: {
|
|
|
1715
2111
|
privacyUrl: string;
|
|
1716
2112
|
cookies: never[];
|
|
1717
2113
|
};
|
|
2114
|
+
clarity: {
|
|
2115
|
+
name: string;
|
|
2116
|
+
purpose: string;
|
|
2117
|
+
country: string;
|
|
2118
|
+
privacyUrl: string;
|
|
2119
|
+
cookies: string[];
|
|
2120
|
+
optOut: string;
|
|
2121
|
+
};
|
|
2122
|
+
matomo: {
|
|
2123
|
+
name: string;
|
|
2124
|
+
purpose: string;
|
|
2125
|
+
privacyUrl: string;
|
|
2126
|
+
cookies: string[];
|
|
2127
|
+
};
|
|
2128
|
+
matomoCookieless: {
|
|
2129
|
+
name: string;
|
|
2130
|
+
purpose: string;
|
|
2131
|
+
privacyUrl: string;
|
|
2132
|
+
cookies: never[];
|
|
2133
|
+
};
|
|
1718
2134
|
turnstile: {
|
|
1719
2135
|
name: string;
|
|
1720
2136
|
purpose: string;
|
|
@@ -1914,5 +2330,5 @@ declare function generateLegal(site: SiteConfig, opts?: GenerateLegalOptions): R
|
|
|
1914
2330
|
*/
|
|
1915
2331
|
declare function defaultConfig(): DesignSystem;
|
|
1916
2332
|
//#endregion
|
|
1917
|
-
export { BASE_HOOK, type Block, CONTRAST, type ColorUtility, type ContactObject, DARK_SEL, DOC_ORDER, DOC_SLUGS, type DesignSystem, DesignSystemSchema, type DocSet, type ExpandedHue, type Format, type FunctionalRole, type GenerateLegalOptions, type GenerateOptions, type GenerateResult, JURISDICTIONS, type Jurisdiction, KNOWN_PROCESSORS, type KnownProcessorKey, type LegalDoc, type LegalOutput, NUMERIC_STEPS, type PolicyVars, type PostalAddress, type Processor, REQUIRED_ROLES, ROLE_TOKEN_KEYS, type RoleKind, type RoleSpec, SCHEMA_URL, SITE_SCHEMA_URL, type SiteConfig, SiteConfigSchema, type SiteValidationResult, type Span, type StylesheetFormat, TEMPLATES, TW_CLASH, type ValidationResult, deepMerge, defaultConfig, derivePolicyVars, detectProcessorKeys, enabledDocs, expandPalette, functionalRole, generate, generateDocs, generateLegal, jsonSchema, parseMarkdown, renderMarkdown, renderNodes, resolvePrivacyContact, resolveProcessors, resolveSiteConfig, resolveTheme, roleColorUtilities, roleHue, roleKind, siteJsonSchema, stripNulls, toContentNodes, toHtmlFragment, toPortableText, tokenClass, tokenVar, validate, validateSite };
|
|
2333
|
+
export { BASE_HOOK, type Block, CONTRAST, type ColorUtility, type ContactObject, DARK_SEL, DOC_ORDER, DOC_SLUGS, type DesignSystem, DesignSystemSchema, type DocSet, type ExpandedHue, type Format, type FunctionalRole, type GenerateLegalOptions, type GenerateOptions, type GenerateResult, type IconSpriteOptions, type IconSpriteResult, JURISDICTIONS, type Jurisdiction, KNOWN_PROCESSORS, type KnownProcessorKey, type LegalDoc, type LegalOutput, NUMERIC_STEPS, type PolicyVars, type PostalAddress, type Processor, REQUIRED_ROLES, ROLE_TOKEN_KEYS, type ResolvedInput, type RoleKind, type RoleSpec, SCHEMA_URL, SITE_SCHEMA_URL, type SiteConfig, SiteConfigSchema, type SiteFont, SiteFontSchema, type SiteValidationResult, type Span, type StylesheetFormat, TEMPLATES, TW_CLASH, type ValidationResult, buildIconSprite, deepMerge, defaultConfig, derivePolicyVars, detectProcessorKeys, enabledDocs, expandPalette, functionalRole, generate, generateDocs, generateLegal, isSiteConfig, jsonSchema, loadIconSvg, parseMarkdown, renderMarkdown, renderNodes, resolveInput, resolvePrivacyContact, resolveProcessors, resolveSiteConfig, resolveTheme, roleColorUtilities, roleHue, roleKind, siteJsonSchema, spriteId, stripNulls, toContentNodes, toHtmlFragment, toPortableText, tokenClass, tokenVar, validate, validateSite };
|
|
1918
2334
|
//# sourceMappingURL=index.d.mts.map
|