@valiify/dashboard-ui 0.3.0 → 0.5.1
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 +948 -10
- package/COMPONENTS.md +199 -79
- package/GETTING_STARTED.md +116 -54
- package/QUICK_REFERENCE.md +48 -30
- package/README.md +107 -85
- package/TROUBLESHOOTING.md +52 -34
- package/class-manifest.json +141 -71
- package/design-methodology/dashboard.md +92 -80
- package/dist/dashboard-ui.css +1529 -1078
- package/dist/index.css +1250 -732
- package/package.json +17 -10
- package/scripts/codemods/0.5.0-chip-sizes.mjs +437 -0
- package/src/build/utilities.css +7 -10
- package/src/components/_template.css +12 -8
- package/src/components/alert.css +35 -8
- package/src/components/avatar.css +42 -30
- package/src/components/breadcrumbs.css +39 -22
- package/src/components/button.css +84 -14
- package/src/components/card.css +2 -2
- package/src/components/checkbox.css +16 -11
- package/src/components/chip.css +155 -79
- package/src/components/composer.css +145 -0
- package/src/components/data-row.css +10 -6
- package/src/components/divider.css +17 -22
- package/src/components/dropdown-field.css +83 -43
- package/src/components/dropdown-menu.css +80 -14
- package/src/components/field-verification.css +21 -5
- package/src/components/filter-segment.css +27 -8
- package/src/components/icon-button.css +49 -10
- package/src/components/index.css +2 -0
- package/src/components/input.css +88 -32
- package/src/components/link.css +27 -16
- package/src/components/loading-inline.css +15 -21
- package/src/components/menu-item.css +149 -49
- package/src/components/modal.css +8 -5
- package/src/components/navigation-rail.css +67 -31
- package/src/components/pagination-item.css +29 -28
- package/src/components/pagination.css +9 -14
- package/src/components/pill.css +16 -10
- package/src/components/progress-bar.css +8 -10
- package/src/components/radio-select.css +9 -2
- package/src/components/recipient-input.css +119 -0
- package/src/components/section-marker.css +5 -5
- package/src/components/segment-selector.css +9 -3
- package/src/components/sensitive-data.css +7 -5
- package/src/components/skeleton.css +18 -6
- package/src/components/step.css +15 -4
- package/src/components/stepper.css +3 -2
- package/src/components/switch.css +7 -0
- package/src/components/tabs.css +122 -28
- package/src/components/tag.css +156 -51
- package/src/components/text-button.css +54 -59
- package/src/components/textarea.css +87 -22
- package/src/components/toast.css +41 -15
- package/src/components/tooltip.css +13 -2
- package/src/fonts.css +2 -1
- package/src/library.css +1 -1
- package/src/reset.css +1 -1
- package/src/themes/valiify-tokens.css +101 -126
- package/src/themes/valiify.css +258 -157
- package/src/utility-surface.css +51 -49
- package/types/components.d.ts +145 -25
- package/CLAUDE.md +0 -3740
- package/examples/README.md +0 -198
- package/examples/basic/index.html +0 -155
- package/examples/daisyui-starter/README.md +0 -58
- package/examples/daisyui-starter/check-no-bleed.mjs +0 -249
- package/examples/daisyui-starter/index.html +0 -72
- package/examples/daisyui-starter/linked.html +0 -74
- package/examples/daisyui-starter/package-lock.json +0 -2221
- package/examples/daisyui-starter/package.json +0 -22
- package/examples/daisyui-starter/postcss.config.js +0 -1
- package/examples/daisyui-starter/src/host.css +0 -14
- package/examples/daisyui-starter/src/only-import.css +0 -4
- package/examples/daisyui-starter/src/styles.css +0 -36
- package/examples/daisyui-starter/tailwind.config.js +0 -13
- package/examples/postcss-starter/README.md +0 -47
- package/examples/postcss-starter/index.html +0 -54
- package/examples/postcss-starter/package.json +0 -19
- package/examples/postcss-starter/postcss.config.js +0 -5
- package/examples/postcss-starter/src/styles.css +0 -17
- package/examples/sveltekit-starter/README.md +0 -32
- package/examples/sveltekit-starter/check-scoped-styles.mjs +0 -103
- package/examples/sveltekit-starter/package-lock.json +0 -1300
- package/examples/sveltekit-starter/package.json +0 -24
- package/examples/sveltekit-starter/src/app.css +0 -17
- package/examples/sveltekit-starter/src/app.html +0 -11
- package/examples/sveltekit-starter/src/lib/GlobalReset.svelte +0 -20
- package/examples/sveltekit-starter/src/lib/ScopedRemedy.svelte +0 -27
- package/examples/sveltekit-starter/src/lib/ScopedReset.svelte +0 -22
- package/examples/sveltekit-starter/src/routes/+layout.svelte +0 -6
- package/examples/sveltekit-starter/src/routes/+page.svelte +0 -10
- package/examples/sveltekit-starter/svelte.config.js +0 -4
- package/examples/sveltekit-starter/vite.config.js +0 -6
- package/examples/vite-starter/README.md +0 -125
- package/examples/vite-starter/index.html +0 -12
- package/examples/vite-starter/package.json +0 -19
- package/examples/vite-starter/src/main.js +0 -188
- package/examples/vite-starter/src/styles.css +0 -22
- package/examples/vite-starter/vite.config.js +0 -6
- package/src/themes/valiify-type-prefixed.css +0 -37
package/src/utility-surface.css
CHANGED
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
* a page using it renders unstyled with nothing failing. This file is committed so
|
|
10
10
|
* that set is reviewable in a diff.
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* 308 utilities — each base plus its `md:` form (the one sanctioned
|
|
13
13
|
* breakpoint). Candidates that do not compile are dropped by the generator.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
@source inline("vd:aspect-square");
|
|
16
17
|
@source inline("vd:bg-action-selected");
|
|
17
18
|
@source inline("vd:bg-action-subtle");
|
|
18
19
|
@source inline("vd:bg-approved");
|
|
@@ -70,16 +71,20 @@
|
|
|
70
71
|
@source inline("vd:h-9");
|
|
71
72
|
@source inline("vd:h-[103px]");
|
|
72
73
|
@source inline("vd:h-[18px]");
|
|
73
|
-
@source inline("vd:h-[26px]");
|
|
74
74
|
@source inline("vd:h-[30px]");
|
|
75
75
|
@source inline("vd:h-[38px]");
|
|
76
76
|
@source inline("vd:h-[55px]");
|
|
77
77
|
@source inline("vd:h-[71px]");
|
|
78
|
+
@source inline("vd:h-control-lg");
|
|
79
|
+
@source inline("vd:h-control-md");
|
|
80
|
+
@source inline("vd:h-control-sm");
|
|
81
|
+
@source inline("vd:h-control-xl");
|
|
82
|
+
@source inline("vd:h-control-xs");
|
|
78
83
|
@source inline("vd:hover:border-critical");
|
|
79
84
|
@source inline("vd:hover:text-critical");
|
|
80
|
-
@source inline("vd:hover:text-warning");
|
|
81
85
|
@source inline("vd:items-center");
|
|
82
86
|
@source inline("vd:justify-between");
|
|
87
|
+
@source inline("vd:md:aspect-square");
|
|
83
88
|
@source inline("vd:md:bg-action-selected");
|
|
84
89
|
@source inline("vd:md:bg-action-subtle");
|
|
85
90
|
@source inline("vd:md:bg-approved");
|
|
@@ -137,20 +142,27 @@
|
|
|
137
142
|
@source inline("vd:md:h-9");
|
|
138
143
|
@source inline("vd:md:h-[103px]");
|
|
139
144
|
@source inline("vd:md:h-[18px]");
|
|
140
|
-
@source inline("vd:md:h-[26px]");
|
|
141
145
|
@source inline("vd:md:h-[30px]");
|
|
142
146
|
@source inline("vd:md:h-[38px]");
|
|
143
147
|
@source inline("vd:md:h-[55px]");
|
|
144
148
|
@source inline("vd:md:h-[71px]");
|
|
149
|
+
@source inline("vd:md:h-control-lg");
|
|
150
|
+
@source inline("vd:md:h-control-md");
|
|
151
|
+
@source inline("vd:md:h-control-sm");
|
|
152
|
+
@source inline("vd:md:h-control-xl");
|
|
153
|
+
@source inline("vd:md:h-control-xs");
|
|
145
154
|
@source inline("vd:md:hover:border-critical");
|
|
146
155
|
@source inline("vd:md:hover:text-critical");
|
|
147
|
-
@source inline("vd:md:hover:text-warning");
|
|
148
156
|
@source inline("vd:md:items-center");
|
|
149
157
|
@source inline("vd:md:justify-between");
|
|
158
|
+
@source inline("vd:md:min-h-control-lg");
|
|
159
|
+
@source inline("vd:md:min-h-control-md");
|
|
160
|
+
@source inline("vd:md:min-h-control-sm");
|
|
161
|
+
@source inline("vd:md:min-h-control-xl");
|
|
162
|
+
@source inline("vd:md:min-h-control-xs");
|
|
150
163
|
@source inline("vd:md:mx-auto");
|
|
151
164
|
@source inline("vd:md:p-0.5");
|
|
152
165
|
@source inline("vd:md:p-1");
|
|
153
|
-
@source inline("vd:md:p-1.5");
|
|
154
166
|
@source inline("vd:md:p-5");
|
|
155
167
|
@source inline("vd:md:pb-7");
|
|
156
168
|
@source inline("vd:md:pl-7");
|
|
@@ -161,11 +173,10 @@
|
|
|
161
173
|
@source inline("vd:md:px-1.5");
|
|
162
174
|
@source inline("vd:md:px-10");
|
|
163
175
|
@source inline("vd:md:px-2");
|
|
164
|
-
@source inline("vd:md:px-2.25");
|
|
165
176
|
@source inline("vd:md:px-3");
|
|
166
177
|
@source inline("vd:md:px-4");
|
|
167
178
|
@source inline("vd:md:px-5");
|
|
168
|
-
@source inline("vd:md:py-
|
|
179
|
+
@source inline("vd:md:py-0.5");
|
|
169
180
|
@source inline("vd:md:py-1.5");
|
|
170
181
|
@source inline("vd:md:py-1.75");
|
|
171
182
|
@source inline("vd:md:py-2");
|
|
@@ -182,40 +193,34 @@
|
|
|
182
193
|
@source inline("vd:md:rounded-tight");
|
|
183
194
|
@source inline("vd:md:shadow-[0_4px_4px_rgb(0_0_0/0.08)]");
|
|
184
195
|
@source inline("vd:md:shadow-panel");
|
|
185
|
-
@source inline("vd:md:size-7");
|
|
186
196
|
@source inline("vd:md:size-[18px]");
|
|
187
197
|
@source inline("vd:md:text-[#415472]");
|
|
188
198
|
@source inline("vd:md:text-[#ad751b]");
|
|
189
|
-
@source inline("vd:md:text-action-
|
|
190
|
-
@source inline("vd:md:text-action-
|
|
199
|
+
@source inline("vd:md:text-action-compact");
|
|
200
|
+
@source inline("vd:md:text-action-compact-active");
|
|
201
|
+
@source inline("vd:md:text-action-default");
|
|
191
202
|
@source inline("vd:md:text-approved");
|
|
192
203
|
@source inline("vd:md:text-approved-strong");
|
|
193
|
-
@source inline("vd:md:text-body-
|
|
194
|
-
@source inline("vd:md:text-body-
|
|
195
|
-
@source inline("vd:md:text-body-2");
|
|
196
|
-
@source inline("vd:md:text-body-2-bold");
|
|
197
|
-
@source inline("vd:md:text-caption");
|
|
204
|
+
@source inline("vd:md:text-body-dense");
|
|
205
|
+
@source inline("vd:md:text-body-dense-strong");
|
|
198
206
|
@source inline("vd:md:text-content-contrast");
|
|
199
207
|
@source inline("vd:md:text-content-faint");
|
|
200
208
|
@source inline("vd:md:text-content-primary");
|
|
201
209
|
@source inline("vd:md:text-content-secondary");
|
|
202
210
|
@source inline("vd:md:text-content-tertiary");
|
|
203
211
|
@source inline("vd:md:text-critical");
|
|
204
|
-
@source inline("vd:md:text-data-
|
|
205
|
-
@source inline("vd:md:text-data-
|
|
206
|
-
@source inline("vd:md:text-display");
|
|
207
|
-
@source inline("vd:md:text-
|
|
208
|
-
@source inline("vd:md:text-
|
|
209
|
-
@source inline("vd:md:text-
|
|
210
|
-
@source inline("vd:md:text-micro-l");
|
|
211
|
-
@source inline("vd:md:text-micro-s-bold");
|
|
212
|
+
@source inline("vd:md:text-data-compact");
|
|
213
|
+
@source inline("vd:md:text-data-dense");
|
|
214
|
+
@source inline("vd:md:text-display-metric");
|
|
215
|
+
@source inline("vd:md:text-heading-page");
|
|
216
|
+
@source inline("vd:md:text-heading-section");
|
|
217
|
+
@source inline("vd:md:text-label-compact");
|
|
212
218
|
@source inline("vd:md:text-primary");
|
|
213
219
|
@source inline("vd:md:text-primary-dark");
|
|
214
220
|
@source inline("vd:md:text-right");
|
|
215
|
-
@source inline("vd:md:text-
|
|
221
|
+
@source inline("vd:md:text-supporting-caption");
|
|
222
|
+
@source inline("vd:md:text-supporting-caption-strong");
|
|
216
223
|
@source inline("vd:md:text-warning");
|
|
217
|
-
@source inline("vd:md:type-label-l-bold");
|
|
218
|
-
@source inline("vd:md:type-label-s-bold");
|
|
219
224
|
@source inline("vd:md:uppercase");
|
|
220
225
|
@source inline("vd:md:w-100");
|
|
221
226
|
@source inline("vd:md:w-11");
|
|
@@ -233,10 +238,14 @@
|
|
|
233
238
|
@source inline("vd:md:w-[600px]");
|
|
234
239
|
@source inline("vd:md:w-[622px]");
|
|
235
240
|
@source inline("vd:md:w-full");
|
|
241
|
+
@source inline("vd:min-h-control-lg");
|
|
242
|
+
@source inline("vd:min-h-control-md");
|
|
243
|
+
@source inline("vd:min-h-control-sm");
|
|
244
|
+
@source inline("vd:min-h-control-xl");
|
|
245
|
+
@source inline("vd:min-h-control-xs");
|
|
236
246
|
@source inline("vd:mx-auto");
|
|
237
247
|
@source inline("vd:p-0.5");
|
|
238
248
|
@source inline("vd:p-1");
|
|
239
|
-
@source inline("vd:p-1.5");
|
|
240
249
|
@source inline("vd:p-5");
|
|
241
250
|
@source inline("vd:pb-7");
|
|
242
251
|
@source inline("vd:pl-7");
|
|
@@ -247,11 +256,10 @@
|
|
|
247
256
|
@source inline("vd:px-1.5");
|
|
248
257
|
@source inline("vd:px-10");
|
|
249
258
|
@source inline("vd:px-2");
|
|
250
|
-
@source inline("vd:px-2.25");
|
|
251
259
|
@source inline("vd:px-3");
|
|
252
260
|
@source inline("vd:px-4");
|
|
253
261
|
@source inline("vd:px-5");
|
|
254
|
-
@source inline("vd:py-
|
|
262
|
+
@source inline("vd:py-0.5");
|
|
255
263
|
@source inline("vd:py-1.5");
|
|
256
264
|
@source inline("vd:py-1.75");
|
|
257
265
|
@source inline("vd:py-2");
|
|
@@ -268,40 +276,34 @@
|
|
|
268
276
|
@source inline("vd:rounded-tight");
|
|
269
277
|
@source inline("vd:shadow-[0_4px_4px_rgb(0_0_0/0.08)]");
|
|
270
278
|
@source inline("vd:shadow-panel");
|
|
271
|
-
@source inline("vd:size-7");
|
|
272
279
|
@source inline("vd:size-[18px]");
|
|
273
280
|
@source inline("vd:text-[#415472]");
|
|
274
281
|
@source inline("vd:text-[#ad751b]");
|
|
275
|
-
@source inline("vd:text-action-
|
|
276
|
-
@source inline("vd:text-action-
|
|
282
|
+
@source inline("vd:text-action-compact");
|
|
283
|
+
@source inline("vd:text-action-compact-active");
|
|
284
|
+
@source inline("vd:text-action-default");
|
|
277
285
|
@source inline("vd:text-approved");
|
|
278
286
|
@source inline("vd:text-approved-strong");
|
|
279
|
-
@source inline("vd:text-body-
|
|
280
|
-
@source inline("vd:text-body-
|
|
281
|
-
@source inline("vd:text-body-2");
|
|
282
|
-
@source inline("vd:text-body-2-bold");
|
|
283
|
-
@source inline("vd:text-caption");
|
|
287
|
+
@source inline("vd:text-body-dense");
|
|
288
|
+
@source inline("vd:text-body-dense-strong");
|
|
284
289
|
@source inline("vd:text-content-contrast");
|
|
285
290
|
@source inline("vd:text-content-faint");
|
|
286
291
|
@source inline("vd:text-content-primary");
|
|
287
292
|
@source inline("vd:text-content-secondary");
|
|
288
293
|
@source inline("vd:text-content-tertiary");
|
|
289
294
|
@source inline("vd:text-critical");
|
|
290
|
-
@source inline("vd:text-data-
|
|
291
|
-
@source inline("vd:text-data-
|
|
292
|
-
@source inline("vd:text-display");
|
|
293
|
-
@source inline("vd:text-
|
|
294
|
-
@source inline("vd:text-
|
|
295
|
-
@source inline("vd:text-
|
|
296
|
-
@source inline("vd:text-micro-l");
|
|
297
|
-
@source inline("vd:text-micro-s-bold");
|
|
295
|
+
@source inline("vd:text-data-compact");
|
|
296
|
+
@source inline("vd:text-data-dense");
|
|
297
|
+
@source inline("vd:text-display-metric");
|
|
298
|
+
@source inline("vd:text-heading-page");
|
|
299
|
+
@source inline("vd:text-heading-section");
|
|
300
|
+
@source inline("vd:text-label-compact");
|
|
298
301
|
@source inline("vd:text-primary");
|
|
299
302
|
@source inline("vd:text-primary-dark");
|
|
300
303
|
@source inline("vd:text-right");
|
|
301
|
-
@source inline("vd:text-
|
|
304
|
+
@source inline("vd:text-supporting-caption");
|
|
305
|
+
@source inline("vd:text-supporting-caption-strong");
|
|
302
306
|
@source inline("vd:text-warning");
|
|
303
|
-
@source inline("vd:type-label-l-bold");
|
|
304
|
-
@source inline("vd:type-label-s-bold");
|
|
305
307
|
@source inline("vd:uppercase");
|
|
306
308
|
@source inline("vd:w-100");
|
|
307
309
|
@source inline("vd:w-11");
|
package/types/components.d.ts
CHANGED
|
@@ -9,8 +9,15 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
// Input component classes
|
|
12
|
-
export type InputSize =
|
|
12
|
+
export type InputSize =
|
|
13
|
+
| "vd-input-xs"
|
|
14
|
+
| "vd-input-sm"
|
|
15
|
+
| "vd-input-md"
|
|
16
|
+
| "vd-input-lg"
|
|
17
|
+
| "vd-input-xl";
|
|
13
18
|
export type InputBgVariant = "vd-input-bg-neutral";
|
|
19
|
+
/** Search Field 854:24901 — fixed leading glyph, Content/Faint placeholder. */
|
|
20
|
+
export type InputKind = "vd-input-search";
|
|
14
21
|
export type InputState = "vd-input-error" | "vd-input-disabled";
|
|
15
22
|
export type InputPart =
|
|
16
23
|
| "vd-input-container"
|
|
@@ -21,7 +28,7 @@ export type InputPart =
|
|
|
21
28
|
| "vd-input-icon-right"
|
|
22
29
|
| "vd-input-error-message";
|
|
23
30
|
|
|
24
|
-
export type InputClass = InputPart | InputSize | InputBgVariant | InputState;
|
|
31
|
+
export type InputClass = InputPart | InputSize | InputKind | InputBgVariant | InputState;
|
|
25
32
|
|
|
26
33
|
// Card component classes
|
|
27
34
|
export type CardModifier = "vd-card-compact" | "vd-card-bordered" | "vd-card-hover";
|
|
@@ -37,8 +44,13 @@ export type RadioSelectClass = "vd-radio-select" | RadioSelectPart;
|
|
|
37
44
|
// destructive confirm button. See src/components/button.css.
|
|
38
45
|
export type ButtonVariant =
|
|
39
46
|
"vd-btn-primary" | "vd-btn-outline" | "vd-btn-empty" | "vd-btn-critical";
|
|
40
|
-
export type ButtonSize =
|
|
41
|
-
|
|
47
|
+
export type ButtonSize =
|
|
48
|
+
| "vd-btn-xs"
|
|
49
|
+
| "vd-btn-sm"
|
|
50
|
+
| "vd-btn-md"
|
|
51
|
+
| "vd-btn-lg"
|
|
52
|
+
| "vd-btn-xl";
|
|
53
|
+
export type ButtonClass = "vd-btn" | ButtonVariant | ButtonSize | "vd-with-ring";
|
|
42
54
|
|
|
43
55
|
// Chip component classes
|
|
44
56
|
export type ChipVariant =
|
|
@@ -68,9 +80,12 @@ export type ChipState = "vd-with-ring";
|
|
|
68
80
|
export type ChipBg = "vd-chip-bg-no";
|
|
69
81
|
export type BadgeBg = "vd-badge-bg-no";
|
|
70
82
|
// Figma Size property. SM is the default, so the bare classes stay SM.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
83
|
+
// Rev3 sizes (0.5.0): XS is the default; the old names mean NEW things —
|
|
84
|
+
// pre-0.5.0 `-sm` (20px chip) is now `-xs`, pre-0.5.0 chip `-md` (23) is now
|
|
85
|
+
// `-sm` (24). Codemod: scripts/codemods/0.5.0-chip-sizes.mjs.
|
|
86
|
+
export type ChipSize = "vd-chip-xs" | "vd-chip-sm" | "vd-chip-md";
|
|
87
|
+
export type BadgeSize = "vd-badge-xs" | "vd-badge-sm" | "vd-badge-md";
|
|
88
|
+
export type DotSize = "vd-dot-xs" | "vd-dot-sm" | "vd-dot-md";
|
|
74
89
|
export type ChipClass =
|
|
75
90
|
| "vd-chip"
|
|
76
91
|
| ChipVariant
|
|
@@ -108,7 +123,12 @@ export type IconClass = "vd-icon" | IconSize | IconState;
|
|
|
108
123
|
|
|
109
124
|
// IconButton component classes
|
|
110
125
|
export type IconButtonSize =
|
|
111
|
-
|
|
126
|
+
| "vd-icon-button-xs"
|
|
127
|
+
| "vd-icon-button-inline"
|
|
128
|
+
| "vd-icon-button-sm"
|
|
129
|
+
| "vd-icon-button-md"
|
|
130
|
+
| "vd-icon-button-lg"
|
|
131
|
+
| "vd-icon-button-xl";
|
|
112
132
|
export type IconButtonClass = "vd-icon-button" | IconButtonSize | "vd-icon-ring";
|
|
113
133
|
|
|
114
134
|
// Textarea component classes
|
|
@@ -122,31 +142,69 @@ export type TextareaPart =
|
|
|
122
142
|
| "vd-textarea-error-message"
|
|
123
143
|
| "vd-textarea-counter";
|
|
124
144
|
|
|
125
|
-
|
|
126
|
-
export type
|
|
145
|
+
/** Floors — Height/Control/* as min-height (xs 20, sm 24, md 28, lg 32, xl 40). */
|
|
146
|
+
export type TextareaSize =
|
|
147
|
+
| "vd-textarea-xs"
|
|
148
|
+
| "vd-textarea-sm"
|
|
149
|
+
| "vd-textarea-md"
|
|
150
|
+
| "vd-textarea-lg"
|
|
151
|
+
| "vd-textarea-xl";
|
|
152
|
+
export type TextareaClass = TextareaPart | TextareaSize | TextareaBgVariant | TextareaState;
|
|
127
153
|
|
|
128
154
|
// MenuItem component classes
|
|
155
|
+
/** Floors — Height/Control/SM / MD / LG as min-height (24 / 28 / 32). */
|
|
129
156
|
export type MenuItemSize = "vd-menu-item-sm" | "vd-menu-item-md" | "vd-menu-item-lg";
|
|
130
|
-
|
|
157
|
+
/** Figma Tone axis. */
|
|
158
|
+
export type MenuItemTone = "vd-menu-item-critical";
|
|
159
|
+
/** Leading slots (_Menu Leading 1304:4764). */
|
|
160
|
+
export type MenuItemLeading =
|
|
161
|
+
| "vd-menu-item-icon"
|
|
162
|
+
| "vd-menu-item-tile"
|
|
163
|
+
| "vd-menu-item-tile-lg"
|
|
164
|
+
| "vd-menu-item-avatar"
|
|
165
|
+
| "vd-menu-item-checkbox";
|
|
166
|
+
/** Trailing slots (_Menu Trailing 1304:4844). */
|
|
167
|
+
export type MenuItemTrailing =
|
|
168
|
+
| "vd-menu-item-right-text"
|
|
169
|
+
| "vd-menu-item-check"
|
|
170
|
+
| "vd-menu-item-chevron"
|
|
171
|
+
| "vd-menu-item-chevron-left"
|
|
172
|
+
| "vd-menu-item-shortcut"
|
|
173
|
+
| "vd-menu-item-action";
|
|
131
174
|
export type MenuItemPart =
|
|
132
175
|
| "vd-menu-item"
|
|
133
176
|
| "vd-menu-item-text"
|
|
134
177
|
| "vd-menu-item-title"
|
|
135
178
|
| "vd-menu-item-subtitle"
|
|
136
|
-
| "vd-menu-item-
|
|
137
|
-
| "vd-menu-item-badge";
|
|
179
|
+
| "vd-menu-item-meta";
|
|
138
180
|
|
|
139
|
-
export type MenuItemClass =
|
|
181
|
+
export type MenuItemClass =
|
|
182
|
+
| MenuItemPart
|
|
183
|
+
| MenuItemSize
|
|
184
|
+
| MenuItemTone
|
|
185
|
+
| MenuItemLeading
|
|
186
|
+
| MenuItemTrailing;
|
|
140
187
|
|
|
141
188
|
// DropdownMenu component classes
|
|
142
189
|
export type DropdownMenuPart =
|
|
143
|
-
|
|
190
|
+
| "vd-dropdown-menu"
|
|
191
|
+
| "vd-dropdown-menu-search"
|
|
192
|
+
| "vd-dropdown-menu-divider"
|
|
193
|
+
| "vd-dropdown-menu-header"
|
|
194
|
+
| "vd-dropdown-menu-header-label"
|
|
195
|
+
| "vd-dropdown-menu-footer"
|
|
196
|
+
| "vd-dropdown"
|
|
197
|
+
| "vd-dropdown-panel";
|
|
144
198
|
|
|
145
199
|
export type DropdownMenuClass = DropdownMenuPart;
|
|
146
200
|
|
|
147
201
|
// DropdownField component classes
|
|
148
202
|
export type DropdownFieldSize =
|
|
149
|
-
|
|
203
|
+
| "vd-dropdown-field-xs"
|
|
204
|
+
| "vd-dropdown-field-sm"
|
|
205
|
+
| "vd-dropdown-field-md"
|
|
206
|
+
| "vd-dropdown-field-lg"
|
|
207
|
+
| "vd-dropdown-field-xl";
|
|
150
208
|
export type DropdownFieldBgVariant = "vd-dropdown-field-bg-neutral";
|
|
151
209
|
export type DropdownFieldState = "vd-dropdown-field-error";
|
|
152
210
|
export type DropdownFieldPart =
|
|
@@ -166,7 +224,8 @@ export type DropdownFieldClass =
|
|
|
166
224
|
| DropdownFieldState;
|
|
167
225
|
|
|
168
226
|
// Avatar component classes
|
|
169
|
-
|
|
227
|
+
/** 0.5.0: 12 / 16 / 20 / 28 / 34 — lg was 34 (now xl), xs was 16 (now sm). */
|
|
228
|
+
export type AvatarSize = "vd-avatar-xs" | "vd-avatar-sm" | "vd-avatar-md" | "vd-avatar-lg" | "vd-avatar-xl";
|
|
170
229
|
export type AvatarState = "vd-avatar-disabled" | "vd-with-ring";
|
|
171
230
|
export type AvatarClass = "vd-avatar" | AvatarSize | AvatarState;
|
|
172
231
|
|
|
@@ -176,17 +235,25 @@ export type PillState = "vd-with-ring";
|
|
|
176
235
|
export type PillClass = PillPart | PillState;
|
|
177
236
|
|
|
178
237
|
// Tag component classes
|
|
179
|
-
|
|
238
|
+
/** xs is a raw 20px since Rev3 (same height as sm, denser padding — was 16);
|
|
239
|
+
* sm/md/lg bind XS/SM/LG. */
|
|
240
|
+
export type TagSize = "vd-tag-xs" | "vd-tag-sm" | "vd-tag-md" | "vd-tag-lg";
|
|
241
|
+
/** Figma Kind axis. md exists for the default kind only. */
|
|
242
|
+
export type TagKind = "vd-tag-recipient" | "vd-tag-empty";
|
|
243
|
+
/** vd-tag-flag was REMOVED in 0.5.0 — the External status is a nested XS
|
|
244
|
+
* `.vd-chip vd-chip-neutral` inside a tag that hugs to 24. */
|
|
180
245
|
export type TagPart = "vd-tag" | "vd-tag-count";
|
|
181
|
-
export type TagState = "vd-with-ring";
|
|
182
|
-
export type TagClass = TagPart | TagSize | TagState;
|
|
246
|
+
export type TagState = "vd-with-ring" | "vd-tag-external";
|
|
247
|
+
export type TagClass = TagPart | TagSize | TagKind | TagState;
|
|
183
248
|
|
|
184
249
|
// Tabs component classes
|
|
185
250
|
export type TabsType = "vd-tab-underline" | "vd-tab-chip" | "vd-tab-segment";
|
|
186
251
|
export type TabsSize = "vd-tab-sm";
|
|
187
|
-
|
|
252
|
+
/** 0.5.1: drop the pinned control height and fill the flex row (a fixed-height header). */
|
|
253
|
+
export type TabsModifier = "vd-tab-stretch";
|
|
254
|
+
export type TabsPart = "vd-tabs" | "vd-tab" | "vd-tab-subtitle" | "vd-tab-label";
|
|
188
255
|
export type TabsState = "vd-with-ring";
|
|
189
|
-
export type TabsClass = TabsPart | TabsType | TabsSize | TabsState;
|
|
256
|
+
export type TabsClass = TabsPart | TabsType | TabsSize | TabsModifier | TabsState;
|
|
190
257
|
|
|
191
258
|
// SegmentSelector component classes
|
|
192
259
|
export type SegmentSelectorClass =
|
|
@@ -310,7 +377,7 @@ export type PaginationClass = "vd-pagination" | PaginationPart;
|
|
|
310
377
|
// exactly one ever set. Middle is the default, so it is the bare base class.
|
|
311
378
|
export type FilterSegmentPosition =
|
|
312
379
|
"vd-filter-segment-first" | "vd-filter-segment-last";
|
|
313
|
-
export type FilterSegmentSize = "vd-filter-segment-md";
|
|
380
|
+
export type FilterSegmentSize = "vd-filter-segment-sm" | "vd-filter-segment-md";
|
|
314
381
|
export type FilterSegmentClass =
|
|
315
382
|
| "vd-filter-segment"
|
|
316
383
|
| FilterSegmentPosition
|
|
@@ -439,6 +506,59 @@ export type SkeletonClass = "vd-skeleton" | SkeletonShape | SkeletonSize;
|
|
|
439
506
|
// NavigationRail component classes
|
|
440
507
|
export type NavigationRailClass = "vd-nav-rail";
|
|
441
508
|
|
|
509
|
+
// Composer component classes — Comment Composer 1289:3690 (xl; a FLOOR component)
|
|
510
|
+
export type ComposerPart =
|
|
511
|
+
| "vd-composer"
|
|
512
|
+
| "vd-composer-shell"
|
|
513
|
+
| "vd-composer-body"
|
|
514
|
+
| "vd-composer-textarea"
|
|
515
|
+
| "vd-composer-tags"
|
|
516
|
+
| "vd-composer-footer"
|
|
517
|
+
| "vd-composer-actions"
|
|
518
|
+
| "vd-composer-helper";
|
|
519
|
+
/** Figma Rows axis — body min-height 20 / 58 / 98, raw by design. */
|
|
520
|
+
export type ComposerRows = "vd-composer-rows-1" | "vd-composer-rows-3" | "vd-composer-rows-5";
|
|
521
|
+
export type ComposerState = "vd-composer-error";
|
|
522
|
+
export type ComposerClass = ComposerPart | ComposerRows | ComposerState;
|
|
523
|
+
|
|
524
|
+
// RecipientInput component classes — Recipient Input 1290:4812 (a FLOOR component)
|
|
525
|
+
export type RecipientInputPart =
|
|
526
|
+
| "vd-recipient-input"
|
|
527
|
+
| "vd-recipient-input-shell"
|
|
528
|
+
| "vd-recipient-input-input"
|
|
529
|
+
| "vd-recipient-input-helper";
|
|
530
|
+
/** Floors — Height/Control/LG (32, base) and XL (40). There is no md. */
|
|
531
|
+
export type RecipientInputSize = "vd-recipient-input-lg" | "vd-recipient-input-xl";
|
|
532
|
+
export type RecipientInputState = "vd-recipient-input-error";
|
|
533
|
+
export type RecipientInputClass = RecipientInputPart | RecipientInputSize | RecipientInputState;
|
|
534
|
+
|
|
535
|
+
// Type style classes — the Revision 3 (2026-09-28) text scale, generated by
|
|
536
|
+
// scripts/build-theme.mjs into src/themes/valiify.css. Unlike the text-*
|
|
537
|
+
// utilities these carry font-family (and tabular numerals on data styles), and
|
|
538
|
+
// they ship in the prebuilt bundles.
|
|
539
|
+
export type TypeStyleClass =
|
|
540
|
+
| "vd-text-heading-page"
|
|
541
|
+
| "vd-text-heading-section"
|
|
542
|
+
| "vd-text-heading-compact"
|
|
543
|
+
| "vd-text-body-default"
|
|
544
|
+
| "vd-text-body-default-strong"
|
|
545
|
+
| "vd-text-body-dense"
|
|
546
|
+
| "vd-text-body-dense-strong"
|
|
547
|
+
| "vd-text-supporting-caption"
|
|
548
|
+
| "vd-text-supporting-caption-strong"
|
|
549
|
+
| "vd-text-action-compact"
|
|
550
|
+
| "vd-text-action-compact-active"
|
|
551
|
+
| "vd-text-action-default"
|
|
552
|
+
| "vd-text-action-default-active"
|
|
553
|
+
| "vd-text-label-compact"
|
|
554
|
+
| "vd-text-data-compact"
|
|
555
|
+
| "vd-text-data-dense"
|
|
556
|
+
| "vd-text-data-emphasis"
|
|
557
|
+
| "vd-text-data-large"
|
|
558
|
+
| "vd-text-utility-avatar-initials"
|
|
559
|
+
| "vd-text-utility-badge-count"
|
|
560
|
+
| "vd-text-display-metric";
|
|
561
|
+
|
|
442
562
|
// Union of all component classes
|
|
443
563
|
export type ValiifyComponentClass =
|
|
444
564
|
| InputClass
|
|
@@ -480,7 +600,8 @@ export type ValiifyComponentClass =
|
|
|
480
600
|
| DataRowClass
|
|
481
601
|
| CheckboxClass
|
|
482
602
|
| SkeletonClass
|
|
483
|
-
| NavigationRailClass
|
|
603
|
+
| NavigationRailClass | ComposerClass | RecipientInputClass
|
|
604
|
+
| TypeStyleClass;
|
|
484
605
|
|
|
485
606
|
// Helper type for combining classes
|
|
486
607
|
export type ComponentClassName = ValiifyComponentClass | string;
|
|
@@ -550,7 +671,6 @@ export interface TextareaVariants {
|
|
|
550
671
|
|
|
551
672
|
export interface MenuItemVariants {
|
|
552
673
|
size?: "sm" | "md" | "lg";
|
|
553
|
-
combined?: boolean;
|
|
554
674
|
selected?: boolean;
|
|
555
675
|
disabled?: boolean;
|
|
556
676
|
leftIcon?: boolean;
|