@valiify/dashboard-ui 0.2.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/CHANGELOG.md +1025 -12
  2. package/COMPONENTS.md +185 -79
  3. package/GETTING_STARTED.md +138 -38
  4. package/QUICK_REFERENCE.md +48 -30
  5. package/README.md +134 -83
  6. package/TROUBLESHOOTING.md +52 -34
  7. package/class-manifest.json +140 -71
  8. package/design-methodology/dashboard.md +92 -80
  9. package/dist/dashboard-ui.css +1525 -1078
  10. package/dist/index.css +1246 -732
  11. package/package.json +19 -10
  12. package/scripts/codemods/0.5.0-chip-sizes.mjs +437 -0
  13. package/src/build/utilities.css +7 -10
  14. package/src/components/_template.css +12 -8
  15. package/src/components/alert.css +35 -8
  16. package/src/components/avatar.css +42 -30
  17. package/src/components/breadcrumbs.css +39 -22
  18. package/src/components/button.css +84 -14
  19. package/src/components/card.css +2 -2
  20. package/src/components/checkbox.css +16 -11
  21. package/src/components/chip.css +155 -79
  22. package/src/components/composer.css +145 -0
  23. package/src/components/data-row.css +10 -6
  24. package/src/components/divider.css +17 -22
  25. package/src/components/dropdown-field.css +83 -43
  26. package/src/components/dropdown-menu.css +80 -14
  27. package/src/components/field-verification.css +21 -5
  28. package/src/components/filter-segment.css +27 -8
  29. package/src/components/icon-button.css +49 -10
  30. package/src/components/index.css +2 -0
  31. package/src/components/input.css +88 -32
  32. package/src/components/link.css +27 -16
  33. package/src/components/loading-inline.css +15 -21
  34. package/src/components/menu-item.css +149 -49
  35. package/src/components/modal.css +8 -5
  36. package/src/components/navigation-rail.css +67 -31
  37. package/src/components/pagination-item.css +29 -28
  38. package/src/components/pagination.css +9 -14
  39. package/src/components/pill.css +16 -10
  40. package/src/components/progress-bar.css +8 -10
  41. package/src/components/radio-select.css +9 -2
  42. package/src/components/recipient-input.css +119 -0
  43. package/src/components/section-marker.css +5 -5
  44. package/src/components/segment-selector.css +9 -3
  45. package/src/components/sensitive-data.css +7 -5
  46. package/src/components/skeleton.css +18 -6
  47. package/src/components/step.css +15 -4
  48. package/src/components/stepper.css +3 -2
  49. package/src/components/switch.css +7 -0
  50. package/src/components/tabs.css +108 -28
  51. package/src/components/tag.css +156 -51
  52. package/src/components/text-button.css +54 -59
  53. package/src/components/textarea.css +87 -22
  54. package/src/components/toast.css +41 -15
  55. package/src/components/tooltip.css +13 -2
  56. package/src/fonts.css +2 -1
  57. package/src/library.css +1 -1
  58. package/src/reset.css +213 -0
  59. package/src/themes/valiify-tokens.css +101 -126
  60. package/src/themes/valiify.css +258 -157
  61. package/src/utility-surface.css +51 -49
  62. package/types/components.d.ts +142 -24
  63. package/CLAUDE.md +0 -3694
  64. package/examples/README.md +0 -198
  65. package/examples/basic/index.html +0 -155
  66. package/examples/daisyui-starter/README.md +0 -58
  67. package/examples/daisyui-starter/check-no-bleed.mjs +0 -249
  68. package/examples/daisyui-starter/index.html +0 -72
  69. package/examples/daisyui-starter/linked.html +0 -74
  70. package/examples/daisyui-starter/package-lock.json +0 -2221
  71. package/examples/daisyui-starter/package.json +0 -22
  72. package/examples/daisyui-starter/postcss.config.js +0 -1
  73. package/examples/daisyui-starter/src/host.css +0 -14
  74. package/examples/daisyui-starter/src/only-import.css +0 -4
  75. package/examples/daisyui-starter/src/styles.css +0 -36
  76. package/examples/daisyui-starter/tailwind.config.js +0 -13
  77. package/examples/postcss-starter/README.md +0 -47
  78. package/examples/postcss-starter/index.html +0 -54
  79. package/examples/postcss-starter/package.json +0 -19
  80. package/examples/postcss-starter/postcss.config.js +0 -5
  81. package/examples/postcss-starter/src/styles.css +0 -17
  82. package/examples/sveltekit-starter/README.md +0 -32
  83. package/examples/sveltekit-starter/check-scoped-styles.mjs +0 -103
  84. package/examples/sveltekit-starter/package-lock.json +0 -1300
  85. package/examples/sveltekit-starter/package.json +0 -24
  86. package/examples/sveltekit-starter/src/app.css +0 -17
  87. package/examples/sveltekit-starter/src/app.html +0 -11
  88. package/examples/sveltekit-starter/src/lib/GlobalReset.svelte +0 -20
  89. package/examples/sveltekit-starter/src/lib/ScopedRemedy.svelte +0 -27
  90. package/examples/sveltekit-starter/src/lib/ScopedReset.svelte +0 -22
  91. package/examples/sveltekit-starter/src/routes/+layout.svelte +0 -6
  92. package/examples/sveltekit-starter/src/routes/+page.svelte +0 -10
  93. package/examples/sveltekit-starter/svelte.config.js +0 -4
  94. package/examples/sveltekit-starter/vite.config.js +0 -6
  95. package/examples/vite-starter/README.md +0 -125
  96. package/examples/vite-starter/index.html +0 -12
  97. package/examples/vite-starter/package.json +0 -19
  98. package/examples/vite-starter/src/main.js +0 -188
  99. package/examples/vite-starter/src/styles.css +0 -22
  100. package/examples/vite-starter/vite.config.js +0 -6
  101. package/src/themes/valiify-type-prefixed.css +0 -37
@@ -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
- * 306 utilities — each base plus its `md:` form (the one sanctioned
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-1.25");
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-m");
190
- @source inline("vd:md:text-action-s");
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-1");
194
- @source inline("vd:md:text-body-1-bold");
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-s");
205
- @source inline("vd:md:text-data-xs");
206
- @source inline("vd:md:text-display");
207
- @source inline("vd:md:text-h1");
208
- @source inline("vd:md:text-h2");
209
- @source inline("vd:md:text-help-caption");
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-statecap");
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-1.25");
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-m");
276
- @source inline("vd:text-action-s");
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-1");
280
- @source inline("vd:text-body-1-bold");
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-s");
291
- @source inline("vd:text-data-xs");
292
- @source inline("vd:text-display");
293
- @source inline("vd:text-h1");
294
- @source inline("vd:text-h2");
295
- @source inline("vd:text-help-caption");
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-statecap");
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");
@@ -9,8 +9,15 @@
9
9
  */
10
10
 
11
11
  // Input component classes
12
- export type InputSize = "vd-input-sm" | "vd-input-md" | "vd-input-lg";
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 = "vd-btn-sm" | "vd-btn-lg";
41
- export type ButtonClass = "vd-btn" | ButtonVariant | ButtonSize;
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
- export type ChipSize = "vd-chip-sm" | "vd-chip-md";
72
- export type BadgeSize = "vd-badge-sm" | "vd-badge-md";
73
- export type DotSize = "vd-dot-sm" | "vd-dot-md";
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
- "vd-icon-button-xs" | "vd-icon-button-md" | "vd-icon-button-lg";
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
- // No size type: Figma defines no Size property and height is consumer-driven.
126
- export type TextareaClass = TextareaPart | TextareaBgVariant | TextareaState;
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
- export type MenuItemVariant = "vd-menu-item-combined";
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-right-text"
137
- | "vd-menu-item-badge";
179
+ | "vd-menu-item-meta";
138
180
 
139
- export type MenuItemClass = MenuItemPart | MenuItemSize | MenuItemVariant;
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
- "vd-dropdown-menu" | "vd-dropdown-menu-divider" | "vd-dropdown" | "vd-dropdown-panel";
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
- "vd-dropdown-field-sm" | "vd-dropdown-field-md" | "vd-dropdown-field-lg";
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
- export type AvatarSize = "vd-avatar-xs" | "vd-avatar-sm" | "vd-avatar-md" | "vd-avatar-lg";
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,15 +235,21 @@ export type PillState = "vd-with-ring";
176
235
  export type PillClass = PillPart | PillState;
177
236
 
178
237
  // Tag component classes
179
- export type TagSize = "vd-tag-sm" | "vd-tag-md";
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
- export type TabsPart = "vd-tabs" | "vd-tab" | "vd-tab-subtitle";
252
+ export type TabsPart = "vd-tabs" | "vd-tab" | "vd-tab-subtitle" | "vd-tab-label";
188
253
  export type TabsState = "vd-with-ring";
189
254
  export type TabsClass = TabsPart | TabsType | TabsSize | TabsState;
190
255
 
@@ -310,7 +375,7 @@ export type PaginationClass = "vd-pagination" | PaginationPart;
310
375
  // exactly one ever set. Middle is the default, so it is the bare base class.
311
376
  export type FilterSegmentPosition =
312
377
  "vd-filter-segment-first" | "vd-filter-segment-last";
313
- export type FilterSegmentSize = "vd-filter-segment-md";
378
+ export type FilterSegmentSize = "vd-filter-segment-sm" | "vd-filter-segment-md";
314
379
  export type FilterSegmentClass =
315
380
  | "vd-filter-segment"
316
381
  | FilterSegmentPosition
@@ -439,6 +504,59 @@ export type SkeletonClass = "vd-skeleton" | SkeletonShape | SkeletonSize;
439
504
  // NavigationRail component classes
440
505
  export type NavigationRailClass = "vd-nav-rail";
441
506
 
507
+ // Composer component classes — Comment Composer 1289:3690 (xl; a FLOOR component)
508
+ export type ComposerPart =
509
+ | "vd-composer"
510
+ | "vd-composer-shell"
511
+ | "vd-composer-body"
512
+ | "vd-composer-textarea"
513
+ | "vd-composer-tags"
514
+ | "vd-composer-footer"
515
+ | "vd-composer-actions"
516
+ | "vd-composer-helper";
517
+ /** Figma Rows axis — body min-height 20 / 58 / 98, raw by design. */
518
+ export type ComposerRows = "vd-composer-rows-1" | "vd-composer-rows-3" | "vd-composer-rows-5";
519
+ export type ComposerState = "vd-composer-error";
520
+ export type ComposerClass = ComposerPart | ComposerRows | ComposerState;
521
+
522
+ // RecipientInput component classes — Recipient Input 1290:4812 (a FLOOR component)
523
+ export type RecipientInputPart =
524
+ | "vd-recipient-input"
525
+ | "vd-recipient-input-shell"
526
+ | "vd-recipient-input-input"
527
+ | "vd-recipient-input-helper";
528
+ /** Floors — Height/Control/LG (32, base) and XL (40). There is no md. */
529
+ export type RecipientInputSize = "vd-recipient-input-lg" | "vd-recipient-input-xl";
530
+ export type RecipientInputState = "vd-recipient-input-error";
531
+ export type RecipientInputClass = RecipientInputPart | RecipientInputSize | RecipientInputState;
532
+
533
+ // Type style classes — the Revision 3 (2026-09-28) text scale, generated by
534
+ // scripts/build-theme.mjs into src/themes/valiify.css. Unlike the text-*
535
+ // utilities these carry font-family (and tabular numerals on data styles), and
536
+ // they ship in the prebuilt bundles.
537
+ export type TypeStyleClass =
538
+ | "vd-text-heading-page"
539
+ | "vd-text-heading-section"
540
+ | "vd-text-heading-compact"
541
+ | "vd-text-body-default"
542
+ | "vd-text-body-default-strong"
543
+ | "vd-text-body-dense"
544
+ | "vd-text-body-dense-strong"
545
+ | "vd-text-supporting-caption"
546
+ | "vd-text-supporting-caption-strong"
547
+ | "vd-text-action-compact"
548
+ | "vd-text-action-compact-active"
549
+ | "vd-text-action-default"
550
+ | "vd-text-action-default-active"
551
+ | "vd-text-label-compact"
552
+ | "vd-text-data-compact"
553
+ | "vd-text-data-dense"
554
+ | "vd-text-data-emphasis"
555
+ | "vd-text-data-large"
556
+ | "vd-text-utility-avatar-initials"
557
+ | "vd-text-utility-badge-count"
558
+ | "vd-text-display-metric";
559
+
442
560
  // Union of all component classes
443
561
  export type ValiifyComponentClass =
444
562
  | InputClass
@@ -480,7 +598,8 @@ export type ValiifyComponentClass =
480
598
  | DataRowClass
481
599
  | CheckboxClass
482
600
  | SkeletonClass
483
- | NavigationRailClass;
601
+ | NavigationRailClass | ComposerClass | RecipientInputClass
602
+ | TypeStyleClass;
484
603
 
485
604
  // Helper type for combining classes
486
605
  export type ComponentClassName = ValiifyComponentClass | string;
@@ -550,7 +669,6 @@ export interface TextareaVariants {
550
669
 
551
670
  export interface MenuItemVariants {
552
671
  size?: "sm" | "md" | "lg";
553
- combined?: boolean;
554
672
  selected?: boolean;
555
673
  disabled?: boolean;
556
674
  leftIcon?: boolean;