@valiify/dashboard-ui 0.3.0 → 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 +933 -10
  2. package/COMPONENTS.md +185 -79
  3. package/GETTING_STARTED.md +116 -54
  4. package/QUICK_REFERENCE.md +48 -30
  5. package/README.md +107 -85
  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 +17 -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 +1 -1
  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 -3740
  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
package/COMPONENTS.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Component Reference
2
2
 
3
- Complete markup examples for every component in @valiify/dashboard-ui.
3
+ Markup examples for every component in @valiify/dashboard-ui **0.5.0**: the classes, sizes and ARIA each one expects. Every example uses classes that exist in the built bundle.
4
4
 
5
- > **📘 For Technical Details:** See [CLAUDE.md](CLAUDE.md) for the complete technical reference including what Figma specified, what was changed, and why.
5
+ > **Technical detail** — what Figma specifies per component, where the library deliberately differs, and why — lives in the repository's [CLAUDE.md](https://github.com/BubbaCoop/Valiify-dashboard-ui/blob/main/CLAUDE.md) (not part of the npm package). Upgrading? The [CHANGELOG](CHANGELOG.md) lists every 0.5.0 rename with a codemod.
6
6
 
7
7
  ## Table of Contents
8
8
 
@@ -16,6 +16,8 @@ Complete markup examples for every component in @valiify/dashboard-ui.
16
16
  - [RadioSelect](#radioselect)
17
17
  - [Switch](#switch)
18
18
  - [DropdownField](#dropdownfield)
19
+ - [Composer](#composer)
20
+ - [RecipientInput](#recipientinput)
19
21
  - [Data Display](#data-display)
20
22
  - [Avatar](#avatar)
21
23
  - [Chip / Badge / Dot](#chip--badge--dot)
@@ -55,9 +57,9 @@ Complete markup examples for every component in @valiify/dashboard-ui.
55
57
 
56
58
  ### Button
57
59
 
58
- Three displays (primary / outline / empty) × three sizes (sm=24px / md=28px / lg=32px).
60
+ Four displays — `-primary`, `-outline`, `-empty`, and `-critical` (a destructive confirm; not in Figma's Button set) — × five sizes on the control ladder: `-xs` 20, `-sm` 24, `-md` 28 (default), `-lg` 32, `-xl` 40.
59
61
 
60
- **Default:** outline at medium size, so bare `.vd-btn` is outline-md.
62
+ **Default:** a bare `.vd-btn` is outline at md (28). Labels are 12px Semi Bold at xs/sm and 13px Medium at md–xl. Icons: 13 / 13 / 14 / 15 / 15.
61
63
 
62
64
  ```html
63
65
  <!-- Basic buttons -->
@@ -67,13 +69,16 @@ Three displays (primary / outline / empty) × three sizes (sm=24px / md=28px / l
67
69
  <button class="vd-btn vd-btn-critical">Destructive Action</button>
68
70
 
69
71
  <!-- Sizes -->
72
+ <button class="vd-btn vd-btn-primary vd-btn-xs">Extra small (20px)</button>
70
73
  <button class="vd-btn vd-btn-primary vd-btn-sm">Small (24px)</button>
71
74
  <button class="vd-btn vd-btn-primary">Medium (28px, default)</button>
72
75
  <button class="vd-btn vd-btn-primary vd-btn-lg">Large (32px)</button>
76
+ <button class="vd-btn vd-btn-primary vd-btn-xl">Extra large (40px)</button>
73
77
 
74
- <!-- States -->
78
+ <!-- States. A toggle button uses aria-pressed; aria-selected is only valid
79
+ on a role that supports it (role="option" in a listbox, role="tab"). -->
75
80
  <button class="vd-btn vd-btn-outline" disabled>Disabled</button>
76
- <button class="vd-btn vd-btn-outline" aria-selected="true">Selected</button>
81
+ <button class="vd-btn vd-btn-outline" aria-pressed="true">Selected</button>
77
82
 
78
83
  <!-- With icons (match icon size to button size) -->
79
84
  <button class="vd-btn vd-btn-primary vd-btn-sm">
@@ -109,7 +114,7 @@ Three displays (primary / outline / empty) × three sizes (sm=24px / md=28px / l
109
114
 
110
115
  ### IconButton
111
116
 
112
- Compact icon-only button. Three sizes: xs=12px, md=18px, lg=28px (default).
117
+ Compact icon-only button. Six sizes: `-xs` 12, `-inline` 18, `-sm` 24, `-md` 28 (default), `-lg` 32, `-xl` 40 — sm–xl are control-ladder steps. Icon sizes 12 / 14 / 14 / 16 / 18 / 20. **Renamed in 0.4.0:** `-md` was 18 (now `-inline`), `-lg` was 28 (now `-md`).
113
118
 
114
119
  ```html
115
120
  <!-- Extra small (12px - for labels) -->
@@ -119,22 +124,29 @@ Compact icon-only button. Three sizes: xs=12px, md=18px, lg=28px (default).
119
124
  </svg>
120
125
  </button>
121
126
 
122
- <!-- Medium (18px - compact actions) -->
123
- <button class="vd-icon-button vd-icon-button-md" aria-label="Close">
127
+ <!-- Inline (18px — dismiss buttons inside Alert, Toast, Tag, Data Row) -->
128
+ <button class="vd-icon-button vd-icon-button-inline" aria-label="Close">
124
129
  <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
125
130
  <use href="#x" />
126
131
  </svg>
127
132
  </button>
128
133
 
129
- <!-- Large (28px - default, primary actions) -->
130
- <button class="vd-icon-button vd-icon-button-lg" aria-label="Settings">
134
+ <!-- Medium (28px — the default; a bare .vd-icon-button is the same) -->
135
+ <button class="vd-icon-button vd-icon-button-md" aria-label="Settings">
131
136
  <svg class="vd-icon vd-icon-size-16" aria-hidden="true">
132
137
  <use href="#settings" />
133
138
  </svg>
134
139
  </button>
135
140
 
141
+ <!-- Large / extra large (32 / 40) -->
142
+ <button class="vd-icon-button vd-icon-button-lg" aria-label="Settings">
143
+ <svg class="vd-icon vd-icon-size-18" aria-hidden="true">
144
+ <use href="#settings" />
145
+ </svg>
146
+ </button>
147
+
136
148
  <!-- States -->
137
- <button class="vd-icon-button vd-icon-button-md" disabled aria-label="Disabled">
149
+ <button class="vd-icon-button vd-icon-button-inline" disabled aria-label="Disabled">
138
150
  <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
139
151
  <use href="#x" />
140
152
  </svg>
@@ -176,7 +188,7 @@ Text-only button for inline or cell actions. Three types: cell / text / primary.
176
188
 
177
189
  **Structure:** `.vd-input-container` › `.vd-input-label` › `.vd-input-field` › `.vd-input`
178
190
 
179
- Three sizes: sm=25px, md=29px, lg=35px (default).
191
+ Five sizes on the control ladder: xs=20, sm=24, md=28 (default), lg=32, xl=40. `.vd-input-search` is the Search Field variant.
180
192
 
181
193
  ```html
182
194
  <!-- Complete input field -->
@@ -342,7 +354,7 @@ Native checkbox with label, optional subtitle, and trailing action.
342
354
  <span class="vd-checkbox-subtitle">TYPE</span>
343
355
  <button
344
356
  type="button"
345
- class="vd-icon-button vd-icon-button-md"
357
+ class="vd-icon-button vd-icon-button-inline"
346
358
  aria-label="Open details"
347
359
  >
348
360
  <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
@@ -480,7 +492,7 @@ Dropdown select trigger. Pairs with [DropdownMenu](#dropdownmenu).
480
492
  </svg>
481
493
  </button>
482
494
 
483
- <!-- With avatar (use avatar-sm for lg field, avatar-xs for md/sm) -->
495
+ <!-- With avatar: vd-avatar-sm (16) at xs–lg, vd-avatar-md (20) at xl -->
484
496
  <button class="vd-dropdown-field" aria-haspopup="listbox" aria-expanded="false">
485
497
  <span class="vd-avatar vd-avatar-sm">NC</span>
486
498
  <span class="vd-dropdown-field-value">Nicholas Cooper</span>
@@ -532,35 +544,99 @@ Dropdown select trigger. Pairs with [DropdownMenu](#dropdownmenu).
532
544
 
533
545
  ---
534
546
 
547
+ ### Composer
548
+
549
+ A comment / note composer: a bordered shell with a growing text body, an optional row of Tag chips, a footer of actions with a Post button, and a helper line beneath. One size (xl). Body floors via `.vd-composer-rows-1` / `-3` / `-5` (20 / 58 / 98). States: `.vd-composer-error`, `:focus-within`, `:hover`, and `:disabled` on the textarea.
550
+
551
+ ```html
552
+ <div class="vd-composer">
553
+ <div class="vd-composer-shell">
554
+ <div class="vd-composer-body vd-composer-rows-3">
555
+ <textarea class="vd-composer-textarea" rows="3" placeholder="Add a comment…" aria-label="Comment"></textarea>
556
+ </div>
557
+ <div class="vd-composer-tags"><span class="vd-tag vd-tag-sm">Underwriting</span></div>
558
+ <div class="vd-composer-footer">
559
+ <div class="vd-composer-actions">
560
+ <button class="vd-icon-button vd-icon-button-sm" aria-label="Attach">
561
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#paperclip" /></svg>
562
+ </button>
563
+ </div>
564
+ <button class="vd-btn vd-btn-primary vd-btn-sm">Post</button>
565
+ </div>
566
+ </div>
567
+ <p class="vd-composer-helper">
568
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#eye" /></svg>
569
+ Visible to the applicant
570
+ </p>
571
+ </div>
572
+ ```
573
+
574
+ ---
575
+
576
+ ### RecipientInput
577
+
578
+ A "to" field: a bordered shell of recipient Tag chips with an inline text input, and a helper line beneath. Two sizes, and **lg is the base** (there is no md): `.vd-recipient-input-lg` (a 32 floor, holding `.vd-tag-sm` recipient chips) and `.vd-recipient-input-xl` (a 40 floor, holding `.vd-tag-lg` chips). The shell grows as chips wrap. States: `.vd-recipient-input-error`, `:focus-within`, `:hover`, `:disabled`.
579
+
580
+ ```html
581
+ <div class="vd-recipient-input vd-recipient-input-xl">
582
+ <div class="vd-recipient-input-shell">
583
+ <span class="vd-tag vd-tag-lg vd-tag-recipient">
584
+ <span class="vd-avatar vd-avatar-sm">MV</span>Marcus Vale
585
+ <button class="vd-icon-button vd-icon-button-inline" aria-label="Remove Marcus Vale">
586
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#x" /></svg>
587
+ </button>
588
+ </span>
589
+ <input class="vd-recipient-input-input" type="text" placeholder="Add a recipient" aria-label="Recipients" />
590
+ </div>
591
+ <p class="vd-recipient-input-helper">Separate addresses with a comma</p>
592
+ </div>
593
+ ```
594
+
595
+ ---
596
+
535
597
  ## Data Display
536
598
 
537
599
  ### Avatar
538
600
 
539
- Circular initials indicator. Four sizes: xs=16px, sm=18px, md=20px (default), lg=34px.
601
+ Circular initials indicator. Five sizes: `-xs` 12, `-sm` 16, `-md` 20 (default), `-lg` 28, `-xl` 34. The initials are 8px Semi Bold at every size.
602
+
603
+ > **Renamed in 0.5.0.** The old `-lg` (34) is now `-xl`, and the old `-xs` (16) is now `-sm`; `-lg` and `-xs` now mean 28 and 12. The old 18px `-sm` is gone (it renders 16). The codemod renames `-lg`/`-xs` for you — markup that skips it silently renders the wrong size.
540
604
 
541
605
  ```html
542
606
  <!-- Default (md, 20px) -->
543
607
  <span class="vd-avatar vd-avatar-md">NC</span>
544
608
 
545
- <!-- All sizes -->
609
+ <!-- All sizes: 12 / 16 / 20 / 28 / 34 -->
546
610
  <span class="vd-avatar vd-avatar-xs">NC</span>
547
611
  <span class="vd-avatar vd-avatar-sm">NC</span>
612
+ <span class="vd-avatar vd-avatar-md">NC</span>
548
613
  <span class="vd-avatar vd-avatar-lg">NC</span>
614
+ <span class="vd-avatar vd-avatar-xl">NC</span>
549
615
 
550
- <!-- Disabled -->
616
+ <!-- Disabled — the fill dims, the initials do not -->
551
617
  <span class="vd-avatar vd-avatar-md vd-avatar-disabled">NC</span>
552
618
 
553
- <!-- With ring -->
554
- <span class="vd-avatar vd-avatar-lg vd-with-ring">NC</span>
619
+ <!-- With ring (2px, outside the circle) -->
620
+ <span class="vd-avatar vd-avatar-xl vd-with-ring">NC</span>
555
621
  ```
556
622
 
623
+ Which size a host nests: `-sm` in Tag (md/lg), Menu Item (sm/md) and Dropdown Field (xs–lg); `-md` in Menu Item lg and Dropdown Field xl; `-xs` in an xs recipient Tag.
624
+
557
625
  ---
558
626
 
559
627
  ### Chip / Badge / Dot
560
628
 
561
629
  Status indicator system with three presentation modes.
562
630
 
563
- **Default:** SM size, filled background. Add `-md` for larger, `-bg-no` for unfilled.
631
+ **Default:** XS size, filled background — a bare `.vd-chip` / `.vd-badge` / `.vd-dot` is XS. Add `-sm` or `-md` for larger, `-bg-no` for unfilled.
632
+
633
+ | | `-xs` (default) | `-sm` | `-md` |
634
+ | --- | --- | --- | --- |
635
+ | chip | 20 tall, 12px label | 24, 12px | 28, 13px |
636
+ | badge | 16 tall (hugs wider counts) | 16 (same as xs) | 20 |
637
+ | dot | 4px | 6px | 8px |
638
+
639
+ > **Renamed in 0.5.0.** The old chip `-sm` (20) is now `-xs`, and the old `-md` (23) is now `-sm` (24). The codemod does both in one pass.
564
640
 
565
641
  ```html
566
642
  <!-- Chip with dot -->
@@ -605,7 +681,7 @@ Status indicator system with three presentation modes.
605
681
 
606
682
  ### Tag
607
683
 
608
- Clickable label for categories and filtering. Two sizes: sm=21px (default), md=24px.
684
+ Clickable label for categories and filtering. Sizes: `-xs` 20 (denser padding), `-sm` 20 (default), `-md` 24, `-lg` 32; kinds `-recipient` / `-empty`; the `-external` state (a Warning/Soft fill, a globe icon and a nested XS status chip — the tag grows to 24 when it carries the chip). Slots: an avatar (`.vd-avatar-sm`, 16; `-xs` 12 in an xs recipient tag), a count (`.vd-tag-count`), a status dot (`.vd-dot vd-dot-sm`, 6px).
609
685
 
610
686
  ```html
611
687
  <!-- Simple tag -->
@@ -616,10 +692,10 @@ Clickable label for categories and filtering. Two sizes: sm=21px (default), md=2
616
692
 
617
693
  <!-- Medium size with all slots -->
618
694
  <button class="vd-tag vd-tag-md" aria-pressed="false">
619
- <span class="vd-avatar vd-avatar-xs">JS</span>
695
+ <span class="vd-avatar vd-avatar-sm">JS</span>
620
696
  Engineering
621
697
  <span class="vd-tag-count">12</span>
622
- <span class="vd-dot vd-dot-warning"></span>
698
+ <span class="vd-dot vd-dot-sm vd-dot-warning"></span>
623
699
  </button>
624
700
 
625
701
  <!-- Disabled -->
@@ -671,7 +747,7 @@ One labelled field in a review panel. Three columns: field name (200px), value (
671
747
  </span>
672
748
 
673
749
  <!-- Hover-revealed action -->
674
- <button class="vd-icon-button vd-icon-button-md vd-data-row-action" aria-label="Help">
750
+ <button class="vd-icon-button vd-icon-button-inline vd-data-row-action" aria-label="Help">
675
751
  <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
676
752
  <use href="#circle-question-mark" />
677
753
  </svg>
@@ -683,7 +759,7 @@ One labelled field in a review panel. Three columns: field name (200px), value (
683
759
  <span class="vd-data-row-field">SSN</span>
684
760
  <span class="vd-sensitive-data vd-data-row-value">
685
761
  <span class="vd-sensitive-data-value">***-**-1234</span>
686
- <button class="vd-icon-button vd-icon-button-md" aria-pressed="true" aria-label="Show">
762
+ <button class="vd-icon-button vd-icon-button-inline" aria-pressed="true" aria-label="Show">
687
763
  <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
688
764
  <use href="#eye-off" />
689
765
  </svg>
@@ -877,9 +953,11 @@ Sidebar with title, groups, and items. Use `-collapsed` variants for a collapsed
877
953
 
878
954
  ### Tabs
879
955
 
880
- ⚠️ **Tab switching requires JavaScript** - Manage `aria-selected` and panel visibility.
956
+ ⚠️ **Tab switching requires JavaScript** — manage `aria-selected`, panel visibility and the keyboard: `role="tab"` promises Left/Right/Home/End with a roving `tabindex` (inactive tabs `tabindex="-1"`). Without that script, use plain buttons or links with no tab roles.
881
957
 
882
- Three types (underline / chip / segment) × two sizes (sm / lg). **Type is required.**
958
+ Three types — `-underline` (32), `-chip` (24), `-segment` (24) — and `-sm` (24, underline only). **A type class is required.**
959
+
960
+ **Wrap the label in `.vd-tab-label` with a matching `data-label`** on every sm-height tab (underline `-sm`, chip, segment). Those step from weight 500 to 600 when active, and without the wrapper selection widens the tab and shifts its neighbours; the wrapper reserves the active width. Underline lg keeps one weight, so it doesn't need it.
883
961
 
884
962
  ```html
885
963
  <!-- Underline tabs (navigator) -->
@@ -888,7 +966,7 @@ Three types (underline / chip / segment) × two sizes (sm / lg). **Type is requi
888
966
  Overview
889
967
  <span class="vd-badge vd-badge-neutral">3</span>
890
968
  </button>
891
- <button class="vd-tab vd-tab-underline" role="tab" aria-selected="false" aria-controls="p2">
969
+ <button class="vd-tab vd-tab-underline" role="tab" aria-selected="false" aria-controls="p2" tabindex="-1">
892
970
  Documents
893
971
  </button>
894
972
  </div>
@@ -897,7 +975,7 @@ Three types (underline / chip / segment) × two sizes (sm / lg). **Type is requi
897
975
 
898
976
  <!-- Small underline -->
899
977
  <button class="vd-tab vd-tab-underline vd-tab-sm" role="tab" aria-selected="true">
900
- Overview
978
+ <span class="vd-tab-label" data-label="Overview">Overview</span>
901
979
  </button>
902
980
 
903
981
  <!-- With subtitle -->
@@ -909,42 +987,42 @@ Three types (underline / chip / segment) × two sizes (sm / lg). **Type is requi
909
987
  </button>
910
988
 
911
989
  <!-- Chip tabs -->
912
- <div class="vd-tabs vd-tabs-chip" role="tablist">
990
+ <div class="vd-tabs vd-tabs-chip" role="tablist" aria-label="Status">
913
991
  <button class="vd-tab vd-tab-chip" role="tab" aria-selected="true">
914
- All
992
+ <span class="vd-tab-label" data-label="All">All</span>
915
993
  </button>
916
- <button class="vd-tab vd-tab-chip" role="tab" aria-selected="false">
917
- Active
994
+ <button class="vd-tab vd-tab-chip" role="tab" aria-selected="false" tabindex="-1">
995
+ <span class="vd-tab-label" data-label="Active">Active</span>
918
996
  </button>
919
997
  </div>
920
998
 
921
- <!-- Segment tabs (use in SegmentSelector) -->
999
+ <!-- Segment tabs: see SegmentSelector below -->
922
1000
  ```
923
1001
 
924
1002
  ---
925
1003
 
926
1004
  ### SegmentSelector
927
1005
 
928
- Framed container for segment tabs (selector, not navigator).
1006
+ Framed container for segment tabs — a selector (`role="radiogroup"` › `role="radio"` + `aria-checked`), not a navigator. 28 tall with a 2px inset.
929
1007
 
930
1008
  ```html
931
1009
  <!-- Basic selector -->
932
1010
  <div class="vd-segment-selector" role="radiogroup" aria-label="Density">
933
1011
  <button class="vd-tab vd-tab-segment" role="radio" aria-checked="true">
934
- Compact
1012
+ <span class="vd-tab-label" data-label="Compact">Compact</span>
935
1013
  </button>
936
1014
  <button class="vd-tab vd-tab-segment" role="radio" aria-checked="false">
937
- Comfortable
1015
+ <span class="vd-tab-label" data-label="Comfortable">Comfortable</span>
938
1016
  </button>
939
1017
  </div>
940
1018
 
941
- <!-- Equal-width variant -->
942
- <div class="vd-segment-selector vd-segment-selector-fill" role="radiogroup">
1019
+ <!-- Equal-width variant (a library extension, not from Figma) -->
1020
+ <div class="vd-segment-selector vd-segment-selector-fill" role="radiogroup" aria-label="View">
943
1021
  <button class="vd-tab vd-tab-segment" role="radio" aria-checked="true">
944
- All
1022
+ <span class="vd-tab-label" data-label="All">All</span>
945
1023
  </button>
946
1024
  <button class="vd-tab vd-tab-segment" role="radio" aria-checked="false">
947
- Needs review
1025
+ <span class="vd-tab-label" data-label="Needs review">Needs review</span>
948
1026
  </button>
949
1027
  </div>
950
1028
  ```
@@ -967,7 +1045,7 @@ Individual segment within a filter control. Three positions: first / middle (def
967
1045
  Deposit Account
968
1046
  </button>
969
1047
  <span class="vd-filter-segment vd-filter-segment-last vd-filter-segment-md">
970
- <button class="vd-icon-button vd-icon-button-md" aria-label="Remove filter">
1048
+ <button class="vd-icon-button vd-icon-button-inline" aria-label="Remove filter">
971
1049
  <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
972
1050
  <use href="#x" />
973
1051
  </svg>
@@ -1079,7 +1157,13 @@ Two types: numbered (with PaginationItem cells), simple (with text and buttons).
1079
1157
 
1080
1158
  ### MenuItem
1081
1159
 
1082
- Single row within a dropdown menu. Three sizes: sm=25px, md=29px (default), lg=42px.
1160
+ Single row within a dropdown menu. Three min-height floors: `-sm` 24, `-md` 28 (default), `-lg` 32 — a subtitle grows the row. Titles are 12px at sm and 13px at md/lg; the subtitle is 12px at every size. Tone: `.vd-menu-item-critical` recolours the title.
1161
+
1162
+ **Slots.** Leading: `.vd-menu-item-icon` (a 16px glyph), `.vd-menu-item-tile` (a 20px tinted tile; `-tile-lg` 28), `.vd-menu-item-avatar` (holds `.vd-avatar-sm`, or `.vd-avatar-md` at lg), `.vd-menu-item-checkbox`. Trailing: `.vd-menu-item-check` and `.vd-menu-item-chevron` (14px), `.vd-menu-item-right-text`, `.vd-menu-item-shortcut`, `.vd-menu-item-meta`, `.vd-menu-item-action` (holds an inline Icon Button — then the row must be a `<div role="menuitem">`, not a `<button>`). Leading icons are 16 and trailing 14 at every size.
1163
+
1164
+ **ARIA.** A plain `role="menuitem"` supports no selection state. A one-of-N choice is `role="menuitemradio"` + `aria-checked` inside `role="menu"`; a multi-select is `role="menuitemcheckbox"` + `aria-checked`; in a listbox (a Dropdown Field's panel) rows are `role="option"` + `aria-selected`. All three drive the selected styling.
1165
+
1166
+ > **Removed in 0.5.0:** `.vd-menu-item-badge` (use `.vd-menu-item-tile`; the codemod renames it) and `.vd-menu-item-combined` (use a tile plus a subtitle at default tone; the codemod reports it).
1083
1167
 
1084
1168
  ```html
1085
1169
  <!-- Simple row -->
@@ -1089,39 +1173,39 @@ Single row within a dropdown menu. Three sizes: sm=25px, md=29px (default), lg=4
1089
1173
  </span>
1090
1174
  </button>
1091
1175
 
1092
- <!-- Selected with check -->
1093
- <button class="vd-menu-item" role="menuitem" aria-selected="true">
1176
+ <!-- Selected one-of-N row with a check (inside role="menu") -->
1177
+ <button class="vd-menu-item" role="menuitemradio" aria-checked="true">
1094
1178
  <span class="vd-menu-item-text">
1095
1179
  <span class="vd-menu-item-title">Weekly</span>
1096
1180
  </span>
1097
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true">
1181
+ <svg class="vd-menu-item-check vd-icon vd-icon-size-14" aria-hidden="true">
1098
1182
  <use href="#check" />
1099
1183
  </svg>
1100
1184
  </button>
1101
1185
 
1102
- <!-- With left icon and keyboard shortcut -->
1186
+ <!-- Leading icon and a keyboard shortcut -->
1103
1187
  <button class="vd-menu-item" role="menuitem">
1104
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true">
1188
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
1105
1189
  <use href="#settings" />
1106
1190
  </svg>
1107
1191
  <span class="vd-menu-item-text">
1108
1192
  <span class="vd-menu-item-title">Preferences</span>
1109
1193
  </span>
1110
- <span class="vd-menu-item-right-text">⌘,</span>
1194
+ <span class="vd-menu-item-shortcut">⌘,</span>
1111
1195
  </button>
1112
1196
 
1113
- <!-- Large row with avatar and subtitle -->
1197
+ <!-- Large row with an avatar and a subtitle -->
1114
1198
  <button class="vd-menu-item vd-menu-item-lg" role="menuitem">
1115
- <span class="vd-avatar vd-avatar-md">NC</span>
1199
+ <span class="vd-menu-item-avatar"><span class="vd-avatar vd-avatar-md">NC</span></span>
1116
1200
  <span class="vd-menu-item-text">
1117
1201
  <span class="vd-menu-item-title">Nicholas Cooper</span>
1118
1202
  <span class="vd-menu-item-subtitle">Primary applicant</span>
1119
1203
  </span>
1120
1204
  </button>
1121
1205
 
1122
- <!-- Combined variant: badge + primary title -->
1123
- <button class="vd-menu-item vd-menu-item-lg vd-menu-item-combined" role="menuitem">
1124
- <span class="vd-menu-item-badge">
1206
+ <!-- Tile + subtitle (what the removed "Combined" row became) -->
1207
+ <button class="vd-menu-item vd-menu-item-lg" role="menuitem">
1208
+ <span class="vd-menu-item-tile">
1125
1209
  <svg class="vd-icon vd-icon-size-12" aria-hidden="true">
1126
1210
  <use href="#users" />
1127
1211
  </svg>
@@ -1132,6 +1216,16 @@ Single row within a dropdown menu. Three sizes: sm=25px, md=29px (default), lg=4
1132
1216
  </span>
1133
1217
  </button>
1134
1218
 
1219
+ <!-- Critical tone -->
1220
+ <button class="vd-menu-item vd-menu-item-critical" role="menuitem">
1221
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
1222
+ <use href="#trash-2" />
1223
+ </svg>
1224
+ <span class="vd-menu-item-text">
1225
+ <span class="vd-menu-item-title">Delete</span>
1226
+ </span>
1227
+ </button>
1228
+
1135
1229
  <!-- Disabled -->
1136
1230
  <button class="vd-menu-item" role="menuitem" disabled>
1137
1231
  <span class="vd-menu-item-text">
@@ -1144,37 +1238,46 @@ Single row within a dropdown menu. Three sizes: sm=25px, md=29px (default), lg=4
1144
1238
 
1145
1239
  ### DropdownMenu
1146
1240
 
1147
- ⚠️ **Requires JavaScript** - Manage `aria-expanded` and `hidden` on panel.
1241
+ ⚠️ **Requires JavaScript** — toggle `aria-expanded` on the trigger and `hidden` on the panel (a working snippet is in [GETTING_STARTED.md](GETTING_STARTED.md#dropdownfield--dropdownmenu)).
1148
1242
 
1149
- Overlay panel holding MenuItem rows. Use `.vd-dropdown` positioning wrapper.
1243
+ Overlay panel holding MenuItem rows: 200px minimum width, 4px padding. Optional regions: `.vd-dropdown-menu-search` (holds a small Search Field), `.vd-dropdown-menu-header` + `-header-label` (28 tall, mixed-case), `.vd-dropdown-menu-divider`, `.vd-dropdown-menu-footer` (a link row). Position it with the `.vd-dropdown` wrapper and `.vd-dropdown-panel`; never put a display utility on the panel, or `hidden` stops working.
1150
1244
 
1151
1245
  ```html
1152
- <!-- Select-style menu -->
1153
- <div class="vd-dropdown-menu" role="menu">
1154
- <button class="vd-menu-item" role="menuitem" aria-selected="true">
1246
+ <!-- Select-style menu: one-of-N rows are menuitemradio + aria-checked -->
1247
+ <div class="vd-dropdown-menu" role="menu" aria-label="Frequency">
1248
+ <button class="vd-menu-item" role="menuitemradio" aria-checked="true">
1155
1249
  <span class="vd-menu-item-text">
1156
1250
  <span class="vd-menu-item-title">Weekly</span>
1157
1251
  </span>
1158
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true">
1252
+ <svg class="vd-menu-item-check vd-icon vd-icon-size-14" aria-hidden="true">
1159
1253
  <use href="#check" />
1160
1254
  </svg>
1161
1255
  </button>
1162
- <button class="vd-menu-item" role="menuitem">
1256
+ <button class="vd-menu-item" role="menuitemradio" aria-checked="false">
1163
1257
  <span class="vd-menu-item-text">
1164
1258
  <span class="vd-menu-item-title">Daily</span>
1165
1259
  </span>
1166
1260
  </button>
1167
- <button class="vd-menu-item" role="menuitem">
1261
+ <button class="vd-menu-item" role="menuitemradio" aria-checked="false">
1168
1262
  <span class="vd-menu-item-text">
1169
1263
  <span class="vd-menu-item-title">Monthly</span>
1170
1264
  </span>
1171
1265
  </button>
1172
1266
  </div>
1173
1267
 
1174
- <!-- Action menu with divider -->
1175
- <div class="vd-dropdown-menu" role="menu">
1268
+ <!-- Search, a header, a divider before a destructive row, and a footer -->
1269
+ <div class="vd-dropdown-menu" role="menu" aria-label="Actions">
1270
+ <div class="vd-dropdown-menu-search">
1271
+ <div class="vd-input-field vd-input-search vd-input-sm">
1272
+ <svg class="vd-input-icon-left vd-icon vd-icon-size-14" aria-hidden="true"><use href="#search" /></svg>
1273
+ <input type="search" class="vd-input" placeholder="Search" aria-label="Search actions" />
1274
+ </div>
1275
+ </div>
1276
+ <div class="vd-dropdown-menu-header">
1277
+ <span class="vd-dropdown-menu-header-label">Record</span>
1278
+ </div>
1176
1279
  <button class="vd-menu-item" role="menuitem">
1177
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true">
1280
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
1178
1281
  <use href="#pencil" />
1179
1282
  </svg>
1180
1283
  <span class="vd-menu-item-text">
@@ -1184,14 +1287,15 @@ Overlay panel holding MenuItem rows. Use `.vd-dropdown` positioning wrapper.
1184
1287
 
1185
1288
  <div class="vd-dropdown-menu-divider"></div>
1186
1289
 
1187
- <button class="vd-menu-item" role="menuitem">
1188
- <svg class="vd-icon vd-icon-size-15 text-critical" aria-hidden="true">
1290
+ <button class="vd-menu-item vd-menu-item-critical" role="menuitem">
1291
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
1189
1292
  <use href="#trash-2" />
1190
1293
  </svg>
1191
1294
  <span class="vd-menu-item-text">
1192
- <span class="vd-menu-item-title text-critical">Delete</span>
1295
+ <span class="vd-menu-item-title">Delete</span>
1193
1296
  </span>
1194
1297
  </button>
1298
+ <div class="vd-dropdown-menu-footer"><a class="vd-link" href="/actions">All actions</a></div>
1195
1299
  </div>
1196
1300
 
1197
1301
  <!-- Anchored under a trigger -->
@@ -1246,7 +1350,9 @@ Four standalone styles plus one paragraph style. Underline is a state on `strong
1246
1350
 
1247
1351
  ### Alert
1248
1352
 
1249
- Contextual banner. Five types: critical / warning / success / info / neutral. **Type is required.**
1353
+ Contextual banner. Five types: critical / warning / success / info / neutral. **Type is required** — a bare `.vd-alert` is transparent.
1354
+
1355
+ **The role follows the type.** Critical and warning take `role="alert"` (assertive); success, info and neutral take `role="status"` (polite). Either announces only when the banner is **inserted** into the page; one already present at load needs no live role.
1250
1356
 
1251
1357
  ```html
1252
1358
  <div class="vd-alert vd-alert-critical" role="alert">
@@ -1261,7 +1367,7 @@ Contextual banner. Five types: critical / warning / success / info / neutral. **
1261
1367
  </p>
1262
1368
  <button class="vd-text-button vd-text-button-primary">Review Field</button>
1263
1369
  </div>
1264
- <button class="vd-icon-button vd-icon-button-md" aria-label="Dismiss">
1370
+ <button class="vd-icon-button vd-icon-button-inline" aria-label="Dismiss">
1265
1371
  <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
1266
1372
  <use href="#x" />
1267
1373
  </svg>
@@ -1271,9 +1377,9 @@ Contextual banner. Five types: critical / warning / success / info / neutral. **
1271
1377
 
1272
1378
  <!-- Other types -->
1273
1379
  <div class="vd-alert vd-alert-warning" role="alert"><!-- ... --></div>
1274
- <div class="vd-alert vd-alert-success" role="alert"><!-- ... --></div>
1275
- <div class="vd-alert vd-alert-info" role="alert"><!-- ... --></div>
1276
- <div class="vd-alert vd-alert-neutral" role="alert"><!-- ... --></div>
1380
+ <div class="vd-alert vd-alert-success" role="status"><!-- ... --></div>
1381
+ <div class="vd-alert vd-alert-info" role="status"><!-- ... --></div>
1382
+ <div class="vd-alert vd-alert-neutral" role="status"><!-- ... --></div>
1277
1383
  ```
1278
1384
 
1279
1385
  ---
@@ -1297,7 +1403,7 @@ Transient notification. Two styles: full (card) / simple (dark pill).
1297
1403
  </p>
1298
1404
  </div>
1299
1405
  </div>
1300
- <button class="vd-icon-button vd-icon-button-md" aria-label="Dismiss">
1406
+ <button class="vd-icon-button vd-icon-button-inline" aria-label="Dismiss">
1301
1407
  <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
1302
1408
  <use href="#x" />
1303
1409
  </svg>
@@ -1339,7 +1445,7 @@ Dialog for confirmations. Three actions: destructive / positive / neutral.
1339
1445
  Decline this application?
1340
1446
  </h2>
1341
1447
  </div>
1342
- <button class="vd-icon-button vd-icon-button-lg" aria-label="Close">
1448
+ <button class="vd-icon-button vd-icon-button-md" aria-label="Close">
1343
1449
  <svg class="vd-icon vd-icon-size-16" aria-hidden="true">
1344
1450
  <use href="#x" />
1345
1451
  </svg>
@@ -1640,7 +1746,7 @@ Masked value with toggle.
1640
1746
  <span class="vd-sensitive-data">
1641
1747
  <span class="vd-sensitive-data-value">***-**-1234</span>
1642
1748
  <button
1643
- class="vd-icon-button vd-icon-button-md"
1749
+ class="vd-icon-button vd-icon-button-inline"
1644
1750
  aria-pressed="true"
1645
1751
  aria-label="Show full value"
1646
1752
  >
@@ -1654,7 +1760,7 @@ Masked value with toggle.
1654
1760
  <span class="vd-sensitive-data">
1655
1761
  <span class="vd-sensitive-data-value">123-12-1234</span>
1656
1762
  <button
1657
- class="vd-icon-button vd-icon-button-md"
1763
+ class="vd-icon-button vd-icon-button-inline"
1658
1764
  aria-pressed="false"
1659
1765
  aria-label="Hide value"
1660
1766
  >
@@ -1671,5 +1777,5 @@ Masked value with toggle.
1671
1777
 
1672
1778
  - **Installation issues:** See [GETTING_STARTED.md](GETTING_STARTED.md)
1673
1779
  - **Broken components:** See [TROUBLESHOOTING.md](TROUBLESHOOTING.md)
1674
- - **Technical details:** See [CLAUDE.md](CLAUDE.md)
1780
+ - **Technical details:** See the repository's [CLAUDE.md](https://github.com/BubbaCoop/Valiify-dashboard-ui/blob/main/CLAUDE.md) (not part of the npm package)
1675
1781
  - **Working examples:** See `examples/vite-starter/` and `examples/postcss-starter/`