@getvitops/generator 8.2.0 → 8.3.0-alpha.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 +83 -0
- package/assets/css/index.css +7 -0
- package/assets/css/patterns/callout.css +39 -0
- package/assets/css/patterns/embed.css +39 -0
- package/assets/css/patterns/forms.css +14 -0
- package/assets/css/patterns/logos.css +45 -0
- package/assets/css/patterns/section.css +53 -0
- package/assets/css/patterns/sitenav.css +262 -0
- package/assets/css/patterns/stats.css +61 -0
- package/assets/css/patterns/steps.css +98 -0
- package/assets/css/patterns/tone.css +38 -0
- package/assets/js/elements.js +3 -3
- package/config.schema.json +126 -10
- package/dist/config-D5xuz8--.mjs +1807 -0
- package/dist/config-D5xuz8--.mjs.map +1 -0
- package/dist/config.d.mts +77 -18
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs +1 -1
- package/dist/index.d.mts +32 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +558 -41
- package/dist/index.mjs.map +1 -1
- package/dist/schema-C-P9dF9F.d.mts +337 -0
- package/dist/schema-C-P9dF9F.d.mts.map +1 -0
- package/dist/tokens-CaIGQQLk.mjs +740 -0
- package/dist/tokens-CaIGQQLk.mjs.map +1 -0
- package/dist/tokens-DH5cpvKd.d.mts +242 -0
- package/dist/tokens-DH5cpvKd.d.mts.map +1 -0
- package/dist/tokens.d.mts +1 -1
- package/dist/tokens.mjs +1 -1
- package/package.json +4 -4
- package/schema.json +95 -5
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import "@getvitops/config";
|
|
2
|
+
import * as z from "@zod/mini";
|
|
3
|
+
declare const DesignSystemSchema: z.ZodMiniObject<{
|
|
4
|
+
$schema: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
5
|
+
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
6
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
8
|
+
}, z.core.$strict>>;
|
|
9
|
+
colors: z.ZodMiniObject<{
|
|
10
|
+
palette: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
11
|
+
seed: z.ZodMiniString<string>;
|
|
12
|
+
anchors: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
13
|
+
acknowledgeOffLadder: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
14
|
+
}, z.core.$strict>, z.ZodMiniObject<{
|
|
15
|
+
tones: z.ZodMiniUnion<readonly [z.ZodMiniArray<z.ZodMiniString<string>>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>]>;
|
|
16
|
+
acknowledgeOffLadder: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
17
|
+
}, z.core.$strict>]>>;
|
|
18
|
+
roles: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
19
|
+
hue: z.ZodMiniString<string>;
|
|
20
|
+
kind: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
21
|
+
surface: "surface";
|
|
22
|
+
chromatic: "chromatic";
|
|
23
|
+
}>>;
|
|
24
|
+
solid: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniString<string>]>>;
|
|
25
|
+
foreground: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
26
|
+
light: "light";
|
|
27
|
+
dark: "dark";
|
|
28
|
+
}>>;
|
|
29
|
+
}, z.core.$strict>]>>;
|
|
30
|
+
utilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
|
|
31
|
+
fill: "fill";
|
|
32
|
+
bg: "bg";
|
|
33
|
+
text: "text";
|
|
34
|
+
icon: "icon";
|
|
35
|
+
border: "border";
|
|
36
|
+
outline: "outline";
|
|
37
|
+
stroke: "stroke";
|
|
38
|
+
}>>>;
|
|
39
|
+
}, z.core.$strict>;
|
|
40
|
+
shadows: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
41
|
+
box: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
42
|
+
drop: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
43
|
+
}, z.core.$strict>]>>>;
|
|
44
|
+
fonts: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
45
|
+
typeScale: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
46
|
+
base: z.ZodMiniString<string>;
|
|
47
|
+
ratio: z.ZodMiniNumber<number>;
|
|
48
|
+
steps: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
49
|
+
names: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
50
|
+
baseStep: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
51
|
+
baseline: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
52
|
+
fluid: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
53
|
+
minVw: z.ZodMiniString<string>;
|
|
54
|
+
maxVw: z.ZodMiniString<string>;
|
|
55
|
+
minRatio: z.ZodMiniNumber<number>;
|
|
56
|
+
}, z.core.$strict>>;
|
|
57
|
+
}, z.core.$strict>>;
|
|
58
|
+
layout: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
59
|
+
widths: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
60
|
+
measure: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
61
|
+
breakout: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
62
|
+
spotlight: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
63
|
+
nav: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
64
|
+
}, z.core.$strict>>;
|
|
65
|
+
regionSpace: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
66
|
+
min: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
67
|
+
preferred: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
68
|
+
max: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
69
|
+
}, z.core.$strict>>;
|
|
70
|
+
}, z.core.$strict>>;
|
|
71
|
+
spaceScale: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
72
|
+
base: z.ZodMiniString<string>;
|
|
73
|
+
ratio: z.ZodMiniNumber<number>;
|
|
74
|
+
steps: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
75
|
+
names: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
76
|
+
baseStep: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
77
|
+
baseline: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
78
|
+
fluid: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
79
|
+
minVw: z.ZodMiniString<string>;
|
|
80
|
+
maxVw: z.ZodMiniString<string>;
|
|
81
|
+
minRatio: z.ZodMiniNumber<number>;
|
|
82
|
+
}, z.core.$strict>>;
|
|
83
|
+
}, z.core.$strict>>;
|
|
84
|
+
patterns: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
85
|
+
defaults: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
86
|
+
radii: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
87
|
+
groups: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>>;
|
|
88
|
+
z: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniNumber<number>>>;
|
|
89
|
+
items: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
90
|
+
group: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
91
|
+
overrides: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
92
|
+
element: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
93
|
+
class: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
94
|
+
fill: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
95
|
+
default_role: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
96
|
+
base: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
97
|
+
states: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
98
|
+
roles: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
99
|
+
}, z.core.$strict>>>;
|
|
100
|
+
}, z.core.$strict>>;
|
|
101
|
+
typography: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
102
|
+
families: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
103
|
+
roles: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>>;
|
|
104
|
+
headings: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
105
|
+
}, z.core.$strict>>;
|
|
106
|
+
animations: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
107
|
+
effects: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
108
|
+
kf: z.ZodMiniString<string>;
|
|
109
|
+
css: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
110
|
+
vars: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
111
|
+
}, z.core.$strict>>>;
|
|
112
|
+
journeys: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
113
|
+
base: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>>;
|
|
114
|
+
compose: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
115
|
+
}, z.core.$strict>>;
|
|
116
|
+
}, z.core.$strict>>;
|
|
117
|
+
}, z.core.$strict>;
|
|
118
|
+
type DesignSystem = z.infer<typeof DesignSystemSchema>;
|
|
119
|
+
/**
|
|
120
|
+
* Stable URL of the published JSON Schema. Resolves once `@getvitops/generator` is on
|
|
121
|
+
* npm (unpkg serves the packaged `schema.json`); `vitops init` stamps this into a
|
|
122
|
+
* scaffolded config's `$schema` so editors light up autocomplete + validation.
|
|
123
|
+
*/
|
|
124
|
+
declare const SCHEMA_URL = "https://unpkg.com/@getvitops/generator/schema.json";
|
|
125
|
+
/**
|
|
126
|
+
* What `vitops init` actually stamps into a scaffolded config's `$schema`.
|
|
127
|
+
*
|
|
128
|
+
* A **local** path, following wrangler's `node_modules/wrangler/config-schema.json`.
|
|
129
|
+
* `SCHEMA_URL` has no version in it, so unpkg resolves it to whatever is newest
|
|
130
|
+
* — an editor validating a project pinned to generator 2.x silently checks it
|
|
131
|
+
* against the 3.x schema, reporting errors for valid config and accepting
|
|
132
|
+
* fields that do not exist yet. The installed copy is by definition the one
|
|
133
|
+
* that matches the toolchain doing the building.
|
|
134
|
+
*
|
|
135
|
+
* `SCHEMA_URL` remains the schema's `$id`, which is what it is for.
|
|
136
|
+
*/
|
|
137
|
+
declare const SCHEMA_LOCAL_PATH = "./node_modules/@getvitops/generator/schema.json";
|
|
138
|
+
/** The published JSON Schema (draft-2020-12), derived from the zod schema. */
|
|
139
|
+
declare const jsonSchema: {
|
|
140
|
+
"~standard": z.core.ZodStandardSchemaWithJSON<z.ZodMiniObject<{
|
|
141
|
+
$schema: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
142
|
+
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
143
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
144
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
145
|
+
}, z.core.$strict>>;
|
|
146
|
+
colors: z.ZodMiniObject<{
|
|
147
|
+
palette: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
148
|
+
seed: z.ZodMiniString<string>;
|
|
149
|
+
anchors: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
150
|
+
acknowledgeOffLadder: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
151
|
+
}, z.core.$strict>, z.ZodMiniObject<{
|
|
152
|
+
tones: z.ZodMiniUnion<readonly [z.ZodMiniArray<z.ZodMiniString<string>>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>]>;
|
|
153
|
+
acknowledgeOffLadder: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
154
|
+
}, z.core.$strict>]>>;
|
|
155
|
+
roles: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
156
|
+
hue: z.ZodMiniString<string>;
|
|
157
|
+
kind: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
158
|
+
surface: "surface";
|
|
159
|
+
chromatic: "chromatic";
|
|
160
|
+
}>>;
|
|
161
|
+
solid: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniString<string>]>>;
|
|
162
|
+
foreground: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
163
|
+
light: "light";
|
|
164
|
+
dark: "dark";
|
|
165
|
+
}>>;
|
|
166
|
+
}, z.core.$strict>]>>;
|
|
167
|
+
utilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
|
|
168
|
+
fill: "fill";
|
|
169
|
+
bg: "bg";
|
|
170
|
+
text: "text";
|
|
171
|
+
icon: "icon";
|
|
172
|
+
border: "border";
|
|
173
|
+
outline: "outline";
|
|
174
|
+
stroke: "stroke";
|
|
175
|
+
}>>>;
|
|
176
|
+
}, z.core.$strict>;
|
|
177
|
+
shadows: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
178
|
+
box: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
179
|
+
drop: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
180
|
+
}, z.core.$strict>]>>>;
|
|
181
|
+
fonts: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
182
|
+
typeScale: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
183
|
+
base: z.ZodMiniString<string>;
|
|
184
|
+
ratio: z.ZodMiniNumber<number>;
|
|
185
|
+
steps: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
186
|
+
names: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
187
|
+
baseStep: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
188
|
+
baseline: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
189
|
+
fluid: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
190
|
+
minVw: z.ZodMiniString<string>;
|
|
191
|
+
maxVw: z.ZodMiniString<string>;
|
|
192
|
+
minRatio: z.ZodMiniNumber<number>;
|
|
193
|
+
}, z.core.$strict>>;
|
|
194
|
+
}, z.core.$strict>>;
|
|
195
|
+
layout: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
196
|
+
widths: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
197
|
+
measure: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
198
|
+
breakout: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
199
|
+
spotlight: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
200
|
+
nav: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
201
|
+
}, z.core.$strict>>;
|
|
202
|
+
regionSpace: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
203
|
+
min: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
204
|
+
preferred: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
205
|
+
max: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
206
|
+
}, z.core.$strict>>;
|
|
207
|
+
}, z.core.$strict>>;
|
|
208
|
+
spaceScale: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
209
|
+
base: z.ZodMiniString<string>;
|
|
210
|
+
ratio: z.ZodMiniNumber<number>;
|
|
211
|
+
steps: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
212
|
+
names: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
213
|
+
baseStep: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
214
|
+
baseline: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
215
|
+
fluid: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
216
|
+
minVw: z.ZodMiniString<string>;
|
|
217
|
+
maxVw: z.ZodMiniString<string>;
|
|
218
|
+
minRatio: z.ZodMiniNumber<number>;
|
|
219
|
+
}, z.core.$strict>>;
|
|
220
|
+
}, z.core.$strict>>;
|
|
221
|
+
patterns: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
222
|
+
defaults: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
223
|
+
radii: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
224
|
+
groups: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>>;
|
|
225
|
+
z: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniNumber<number>>>;
|
|
226
|
+
items: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
227
|
+
group: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
228
|
+
overrides: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
229
|
+
element: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
230
|
+
class: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
231
|
+
fill: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
232
|
+
default_role: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
233
|
+
base: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
234
|
+
states: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
|
|
235
|
+
roles: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
236
|
+
}, z.core.$strict>>>;
|
|
237
|
+
}, z.core.$strict>>;
|
|
238
|
+
typography: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
239
|
+
families: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
240
|
+
roles: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>>;
|
|
241
|
+
headings: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
242
|
+
}, z.core.$strict>>;
|
|
243
|
+
animations: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
244
|
+
effects: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
245
|
+
kf: z.ZodMiniString<string>;
|
|
246
|
+
css: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
247
|
+
vars: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>;
|
|
248
|
+
}, z.core.$strict>>>;
|
|
249
|
+
journeys: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
250
|
+
base: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>>>>;
|
|
251
|
+
compose: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
252
|
+
}, z.core.$strict>>;
|
|
253
|
+
}, z.core.$strict>>;
|
|
254
|
+
}, z.core.$strict>>;
|
|
255
|
+
$schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
|
|
256
|
+
$id: string;
|
|
257
|
+
$anchor?: string;
|
|
258
|
+
$ref?: string;
|
|
259
|
+
$dynamicRef?: string;
|
|
260
|
+
$dynamicAnchor?: string;
|
|
261
|
+
$vocabulary?: Record<string, boolean>;
|
|
262
|
+
$comment?: string;
|
|
263
|
+
$defs?: Record<string, z.core.JSONSchema.JSONSchema>;
|
|
264
|
+
type?: z.core.JSONSchema.SchemaType | z.core.JSONSchema.SchemaType[];
|
|
265
|
+
additionalItems?: z.core.JSONSchema._JSONSchema;
|
|
266
|
+
unevaluatedItems?: z.core.JSONSchema._JSONSchema;
|
|
267
|
+
prefixItems?: z.core.JSONSchema._JSONSchema[];
|
|
268
|
+
items?: z.core.JSONSchema._JSONSchema | z.core.JSONSchema._JSONSchema[];
|
|
269
|
+
contains?: z.core.JSONSchema._JSONSchema;
|
|
270
|
+
additionalProperties?: z.core.JSONSchema._JSONSchema;
|
|
271
|
+
unevaluatedProperties?: z.core.JSONSchema._JSONSchema;
|
|
272
|
+
properties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
273
|
+
patternProperties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
274
|
+
dependentSchemas?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
275
|
+
propertyNames?: z.core.JSONSchema._JSONSchema;
|
|
276
|
+
if?: z.core.JSONSchema._JSONSchema;
|
|
277
|
+
then?: z.core.JSONSchema._JSONSchema;
|
|
278
|
+
else?: z.core.JSONSchema._JSONSchema;
|
|
279
|
+
allOf?: z.core.JSONSchema.JSONSchema[];
|
|
280
|
+
anyOf?: z.core.JSONSchema.JSONSchema[];
|
|
281
|
+
oneOf?: z.core.JSONSchema.JSONSchema[];
|
|
282
|
+
not?: z.core.JSONSchema._JSONSchema;
|
|
283
|
+
multipleOf?: number;
|
|
284
|
+
maximum?: number;
|
|
285
|
+
exclusiveMaximum?: number | boolean;
|
|
286
|
+
minimum?: number;
|
|
287
|
+
exclusiveMinimum?: number | boolean;
|
|
288
|
+
maxLength?: number;
|
|
289
|
+
minLength?: number;
|
|
290
|
+
pattern?: string;
|
|
291
|
+
maxItems?: number;
|
|
292
|
+
minItems?: number;
|
|
293
|
+
uniqueItems?: boolean;
|
|
294
|
+
maxContains?: number;
|
|
295
|
+
minContains?: number;
|
|
296
|
+
maxProperties?: number;
|
|
297
|
+
minProperties?: number;
|
|
298
|
+
required?: string[];
|
|
299
|
+
dependentRequired?: Record<string, string[]>;
|
|
300
|
+
enum?: Array<string | number | boolean | null>;
|
|
301
|
+
const?: string | number | boolean | null;
|
|
302
|
+
id?: string;
|
|
303
|
+
title?: string;
|
|
304
|
+
description?: string;
|
|
305
|
+
default?: unknown;
|
|
306
|
+
deprecated?: boolean;
|
|
307
|
+
readOnly?: boolean;
|
|
308
|
+
writeOnly?: boolean;
|
|
309
|
+
nullable?: boolean;
|
|
310
|
+
examples?: unknown[];
|
|
311
|
+
format?: string;
|
|
312
|
+
contentMediaType?: string;
|
|
313
|
+
contentEncoding?: string;
|
|
314
|
+
contentSchema?: z.core.JSONSchema.JSONSchema;
|
|
315
|
+
_prefault?: unknown;
|
|
316
|
+
};
|
|
317
|
+
type ValidationResult = {
|
|
318
|
+
ok: true;
|
|
319
|
+
data: DesignSystem;
|
|
320
|
+
errors: [];
|
|
321
|
+
warnings: string[];
|
|
322
|
+
} | {
|
|
323
|
+
ok: false;
|
|
324
|
+
data: undefined;
|
|
325
|
+
errors: z.core.$ZodIssue[];
|
|
326
|
+
warnings: string[];
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* Validate an unknown value against the design-system schema.
|
|
330
|
+
*
|
|
331
|
+
* `warnings` are configurations that parse and generate, but produce output that
|
|
332
|
+
* won't behave as authored — currently only the token-namespace collisions the
|
|
333
|
+
* flat `--<prop>-<name>` grammar makes possible.
|
|
334
|
+
*/
|
|
335
|
+
declare function validate(input: unknown): ValidationResult;
|
|
336
|
+
export { ValidationResult as a, SCHEMA_URL as i, DesignSystemSchema as n, jsonSchema as o, SCHEMA_LOCAL_PATH as r, validate as s, DesignSystem as t };
|
|
337
|
+
//# sourceMappingURL=schema-C-P9dF9F.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-C-P9dF9F.d.mts","names":[],"sources":["../src/schema.ts"],"mappings":";;cA6Ua,oBAAkB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyC7B,EAAA,KAAA;KAEU,eAAe,EAAE,aAAa;;;;;;cA0B7B;;;;;;;;;;;;;cAcA;;cAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkDD;EACN;EAAU,MAAM;EAAc;EAAY;;EAC1C;EAAW;EAAiB,QAAQ,EAAE,KAAK;EAAa;;;;;;;;;iBAsD9C,SAAS,iBAAiB"}
|