@getvitops/generator 8.2.0-alpha.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 +550 -25
- package/assets/css/index.css +7 -0
- package/assets/css/patterns/banner.css +20 -0
- package/assets/css/patterns/callout.css +39 -0
- package/assets/css/patterns/copy.css +5 -0
- package/assets/css/patterns/embed.css +39 -0
- package/assets/css/patterns/forms.css +19 -0
- package/assets/css/patterns/logos.css +45 -0
- package/assets/css/patterns/marquee.css +16 -0
- package/assets/css/patterns/section.css +53 -0
- package/assets/css/patterns/sitenav.css +262 -0
- package/assets/css/patterns/splitter.css +11 -0
- package/assets/css/patterns/stats.css +61 -0
- package/assets/css/patterns/steps.css +98 -0
- package/assets/css/patterns/table.css +10 -0
- package/assets/css/patterns/tone.css +38 -0
- package/assets/js/consent.js +1 -1
- package/assets/js/elements.js +5 -5
- package/assets/js/polyfills/adoptedStyleSheets.js +1 -1
- package/assets/js/polyfills/css-anchor-positioning-fn.js +2 -2
- package/assets/js/polyfills/popover.js +2 -2
- package/config.schema.json +257 -120
- package/dist/config-BfcWKH-5.mjs +1743 -0
- package/dist/config-BfcWKH-5.mjs.map +1 -0
- package/dist/{config-DvbYx3Gi.mjs → config-Bhg3Xv3D.mjs} +10 -207
- package/dist/config-Bhg3Xv3D.mjs.map +1 -0
- package/dist/config-D5xuz8--.mjs +1807 -0
- package/dist/config-D5xuz8--.mjs.map +1 -0
- package/dist/config.d.mts +157 -211
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs +1 -1
- package/dist/{icons-sprite-Bf_KmKeX.d.mts → icons-sprite-CQ5Zj4go.d.mts} +4 -6
- package/dist/icons-sprite-CQ5Zj4go.d.mts.map +1 -0
- package/dist/icons-sprite.d.mts +1 -1
- package/dist/icons-sprite.mjs +1 -2
- package/dist/index.d.mts +49 -35
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +607 -75
- package/dist/index.mjs.map +1 -1
- package/dist/{schema-Dmq1J7S3.d.mts → schema-BV2n2phj.d.mts} +2 -3
- package/dist/{schema-Dmq1J7S3.d.mts.map → schema-BV2n2phj.d.mts.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-8SXMDAd1.d.mts → tokens-BzBbTeTi.d.mts} +2 -6
- package/dist/tokens-BzBbTeTi.d.mts.map +1 -0
- package/dist/{tokens-zi594IZ3.mjs → tokens-C1RJwFeG.mjs} +3 -5
- package/dist/{tokens-zi594IZ3.mjs.map → tokens-C1RJwFeG.mjs.map} +1 -1
- 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 +6 -5
- package/schema.json +95 -5
- package/dist/config-DvbYx3Gi.mjs.map +0 -1
- package/dist/icons-sprite-Bf_KmKeX.d.mts.map +0 -1
- package/dist/tokens-8SXMDAd1.d.mts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import "@getvitops/config";
|
|
1
2
|
import * as z from "@zod/mini";
|
|
2
|
-
//#region src/schema.d.ts
|
|
3
3
|
declare const DesignSystemSchema: z.ZodMiniObject<{
|
|
4
4
|
$schema: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
5
5
|
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
@@ -287,6 +287,5 @@ type ValidationResult = {
|
|
|
287
287
|
* flat `--<prop>-<name>` grammar makes possible.
|
|
288
288
|
*/
|
|
289
289
|
declare function validate(input: unknown): ValidationResult;
|
|
290
|
-
//#endregion
|
|
291
290
|
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 };
|
|
292
|
-
//# sourceMappingURL=schema-
|
|
291
|
+
//# sourceMappingURL=schema-BV2n2phj.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-
|
|
1
|
+
{"version":3,"file":"schema-BV2n2phj.d.mts","names":[],"sources":["../src/schema.ts"],"mappings":";;cAsQa,oBAAkB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwC7B,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"}
|
|
@@ -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"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as DesignSystem } from "./schema-
|
|
2
|
-
//#region src/shared.d.ts
|
|
1
|
+
import { t as DesignSystem } from "./schema-BV2n2phj.mjs";
|
|
3
2
|
/**
|
|
4
3
|
* Data shared between the generator (`generate.ts`) and the docs bundle
|
|
5
4
|
* (`docs.ts`). Lives in its own module because `generate.ts` imports `docs.ts` —
|
|
@@ -84,8 +83,6 @@ declare const TYPO_KEYMAP: Record<string, [string, string]>;
|
|
|
84
83
|
* them, so consumers use Tailwind's utilities for these names instead.
|
|
85
84
|
*/
|
|
86
85
|
declare const TW_CLASH: ReadonlySet<string>;
|
|
87
|
-
//#endregion
|
|
88
|
-
//#region src/tokens.d.ts
|
|
89
86
|
declare const NUMERIC_STEPS: readonly ["50", "100", "200", "300", "400", "500", "600", "700", "800", "900", "950"];
|
|
90
87
|
type NumStep = (typeof NUMERIC_STEPS)[number];
|
|
91
88
|
interface ExpandedHue {
|
|
@@ -224,6 +221,5 @@ declare function buildReverseIndex(ds: Pick<DesignSystem, 'colors' | 'typography
|
|
|
224
221
|
* not an error, just nothing to show yet.
|
|
225
222
|
*/
|
|
226
223
|
declare function patchToOverrideCss(patch: Record<string, unknown>, reverseIndex: Record<string, string>): string;
|
|
227
|
-
//#endregion
|
|
228
224
|
export { roleHue as C, TYPO_KEYMAP as S, DARK_SEL as _, RoleKind as a, RoleSpec as b, expandPalette as c, monotonicityErrors as d, patchToOverrideCss as f, BASE_HOOK as g, validateColorContract as h, NUMERIC_STEPS as i, functionalRole as l, tokenVar as m, ExpandedHue as n, buildReverseIndex as o, tokenClass as p, FunctionalRole as r, checkContrast as s, CONTRAST as t, ladderWarnings as u, REQUIRED_ROLES as v, roleKind as w, TW_CLASH as x, ROLE_TOKEN_KEYS as y };
|
|
229
|
-
//# sourceMappingURL=tokens-
|
|
225
|
+
//# sourceMappingURL=tokens-BzBbTeTi.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens-BzBbTeTi.d.mts","names":[],"sources":["../src/shared.ts","../src/tokens.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;cAsBa;;;;;;;;;;;;;;;;;cAmCA;;;;;;;;;cAiBA;;KA+BD;EAAsB;EAAa;;;cAGlC,UAAW,MAAM;;;;;cAMjB,WAAY,MAAM;;;;;;;cASlB,WAAW;;;;;;;;;;;cAuBX,aAAa;;;;;;cAkBb,UAAU;cCtHV;KAaR,kBAAkB;UAWN;;EAEf,SAAS,QAAQ,OAAO;;EAExB;;;;;;;EAOA,aAAa,QAAQ,OAAO;;;iBAwHd,cAAc,KAAK,0BAA0B,eAAe;iBAmB5D,eAAe,SAAS,eAAe;;;;;;;;;;;;;;;;;;;iBAyCvC,mBAAmB,SAAS,eAAe;;KA0C/C;;;;;;;;;;;iBA8FI,SAAS,cAAc;;cAU1B,aAAc,cAAc;UAGxB;EACf;EACA;EACA,MAAM;;EAEN,OAAO;EACP,MAAM;;;iBAIQ,eACd,cACA,iBACA,KAAK,aACL,OAAM,WACL;;;;;;;cAqCU;;;;;;;;;;;;;iBAiBG,cACd,IAAI,gBACJ,YAAY,oBAAoB,QAAQ,OAAO,mBAC/C;EAAc;EAAiB;;;;;;;;;;;;;;;;;iBA0FjB,sBAAsB;EACpC,SAAS;EACT,OAAO,eAAe;;;;;;;;;;;;;;;;iBAgDR,kBAAkB,IAAI,KAAK,sDAAmD;;;;;;;;;;;;;;;;;;;iBAyD9E,mBACd,OAAO,yBACP,cAAc"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LIGHTNESS_LADDER, contrastLc, generateOklchPalette, hexToOklch, oklchStringToHex, pickOn, tintedEndpoints } from "@getvitops/utils/color";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/shared.ts
|
|
4
4
|
/**
|
|
5
5
|
* Data shared between the generator (`generate.ts`) and the docs bundle
|
|
6
6
|
* (`docs.ts`). Lives in its own module because `generate.ts` imports `docs.ts` —
|
|
@@ -204,8 +204,7 @@ const TW_CLASH = /* @__PURE__ */ new Set([
|
|
|
204
204
|
"rounded-full"
|
|
205
205
|
]);
|
|
206
206
|
|
|
207
|
-
|
|
208
|
-
//#region src/tokens.ts
|
|
207
|
+
// src/tokens.ts
|
|
209
208
|
/**
|
|
210
209
|
* Palette expansion + semantic colour tokens.
|
|
211
210
|
*
|
|
@@ -692,6 +691,5 @@ function patchToOverrideCss(patch, reverseIndex) {
|
|
|
692
691
|
return lines.length ? `:root {\n${lines.join("\n")}\n}` : "";
|
|
693
692
|
}
|
|
694
693
|
|
|
695
|
-
//#endregion
|
|
696
694
|
export { SYSTEM_DARK_SEL as _, expandPalette as a, roleHue as b, monotonicityErrors as c, tokenVar as d, validateColorContract as f, ROLE_TOKEN_KEYS as g, REQUIRED_ROLES as h, checkContrast as i, patchToOverrideCss as l, DARK_SEL as m, NUMERIC_STEPS as n, functionalRole as o, BASE_HOOK as p, buildReverseIndex as r, ladderWarnings as s, CONTRAST as t, tokenClass as u, TW_CLASH as v, roleKind as x, TYPO_KEYMAP as y };
|
|
697
|
-
//# sourceMappingURL=tokens-
|
|
695
|
+
//# sourceMappingURL=tokens-C1RJwFeG.mjs.map
|