@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.
Files changed (101) hide show
  1. package/CHANGELOG.md +948 -10
  2. package/COMPONENTS.md +199 -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 +141 -71
  8. package/design-methodology/dashboard.md +92 -80
  9. package/dist/dashboard-ui.css +1529 -1078
  10. package/dist/index.css +1250 -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 +122 -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 +145 -25
  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,13 @@ 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.
957
+
958
+ Three types — `-underline` (32), `-chip` (24), `-segment` (24) — and `-sm` (24, underline only). **A type class is required.**
881
959
 
882
- Three types (underline / chip / segment) × two sizes (sm / lg). **Type is required.**
960
+ **`.vd-tab-stretch` (0.5.1)** fills a fixed-height header row instead of the pinned 24 / 32, so the active underline sits on the row's bottom edge, as Figma draws a tab stretched to a panel header. Give the row its height (e.g. `.vd-tabs` at `height: 100%` inside a 40px header).
961
+
962
+ **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
963
 
884
964
  ```html
885
965
  <!-- Underline tabs (navigator) -->
@@ -888,7 +968,7 @@ Three types (underline / chip / segment) × two sizes (sm / lg). **Type is requi
888
968
  Overview
889
969
  <span class="vd-badge vd-badge-neutral">3</span>
890
970
  </button>
891
- <button class="vd-tab vd-tab-underline" role="tab" aria-selected="false" aria-controls="p2">
971
+ <button class="vd-tab vd-tab-underline" role="tab" aria-selected="false" aria-controls="p2" tabindex="-1">
892
972
  Documents
893
973
  </button>
894
974
  </div>
@@ -897,9 +977,21 @@ Three types (underline / chip / segment) × two sizes (sm / lg). **Type is requi
897
977
 
898
978
  <!-- Small underline -->
899
979
  <button class="vd-tab vd-tab-underline vd-tab-sm" role="tab" aria-selected="true">
900
- Overview
980
+ <span class="vd-tab-label" data-label="Overview">Overview</span>
901
981
  </button>
902
982
 
983
+ <!-- Full-height tabs in a 40px header row (0.5.1); the row is given its height -->
984
+ <div style="height: 40px; display: flex; align-items: center">
985
+ <div class="vd-tabs" role="tablist" aria-label="Panel view" style="height: 100%">
986
+ <button class="vd-tab vd-tab-underline vd-tab-sm vd-tab-stretch" role="tab" aria-selected="true">
987
+ <span class="vd-tab-label" data-label="Summary">Summary</span>
988
+ </button>
989
+ <button class="vd-tab vd-tab-underline vd-tab-sm vd-tab-stretch" role="tab" aria-selected="false" tabindex="-1">
990
+ <span class="vd-tab-label" data-label="Activity">Activity</span>
991
+ </button>
992
+ </div>
993
+ </div>
994
+
903
995
  <!-- With subtitle -->
904
996
  <button class="vd-tab vd-tab-underline" role="tab" aria-selected="true">
905
997
  <span>
@@ -909,42 +1001,42 @@ Three types (underline / chip / segment) × two sizes (sm / lg). **Type is requi
909
1001
  </button>
910
1002
 
911
1003
  <!-- Chip tabs -->
912
- <div class="vd-tabs vd-tabs-chip" role="tablist">
1004
+ <div class="vd-tabs vd-tabs-chip" role="tablist" aria-label="Status">
913
1005
  <button class="vd-tab vd-tab-chip" role="tab" aria-selected="true">
914
- All
1006
+ <span class="vd-tab-label" data-label="All">All</span>
915
1007
  </button>
916
- <button class="vd-tab vd-tab-chip" role="tab" aria-selected="false">
917
- Active
1008
+ <button class="vd-tab vd-tab-chip" role="tab" aria-selected="false" tabindex="-1">
1009
+ <span class="vd-tab-label" data-label="Active">Active</span>
918
1010
  </button>
919
1011
  </div>
920
1012
 
921
- <!-- Segment tabs (use in SegmentSelector) -->
1013
+ <!-- Segment tabs: see SegmentSelector below -->
922
1014
  ```
923
1015
 
924
1016
  ---
925
1017
 
926
1018
  ### SegmentSelector
927
1019
 
928
- Framed container for segment tabs (selector, not navigator).
1020
+ Framed container for segment tabs — a selector (`role="radiogroup"` › `role="radio"` + `aria-checked`), not a navigator. 28 tall with a 2px inset.
929
1021
 
930
1022
  ```html
931
1023
  <!-- Basic selector -->
932
1024
  <div class="vd-segment-selector" role="radiogroup" aria-label="Density">
933
1025
  <button class="vd-tab vd-tab-segment" role="radio" aria-checked="true">
934
- Compact
1026
+ <span class="vd-tab-label" data-label="Compact">Compact</span>
935
1027
  </button>
936
1028
  <button class="vd-tab vd-tab-segment" role="radio" aria-checked="false">
937
- Comfortable
1029
+ <span class="vd-tab-label" data-label="Comfortable">Comfortable</span>
938
1030
  </button>
939
1031
  </div>
940
1032
 
941
- <!-- Equal-width variant -->
942
- <div class="vd-segment-selector vd-segment-selector-fill" role="radiogroup">
1033
+ <!-- Equal-width variant (a library extension, not from Figma) -->
1034
+ <div class="vd-segment-selector vd-segment-selector-fill" role="radiogroup" aria-label="View">
943
1035
  <button class="vd-tab vd-tab-segment" role="radio" aria-checked="true">
944
- All
1036
+ <span class="vd-tab-label" data-label="All">All</span>
945
1037
  </button>
946
1038
  <button class="vd-tab vd-tab-segment" role="radio" aria-checked="false">
947
- Needs review
1039
+ <span class="vd-tab-label" data-label="Needs review">Needs review</span>
948
1040
  </button>
949
1041
  </div>
950
1042
  ```
@@ -967,7 +1059,7 @@ Individual segment within a filter control. Three positions: first / middle (def
967
1059
  Deposit Account
968
1060
  </button>
969
1061
  <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">
1062
+ <button class="vd-icon-button vd-icon-button-inline" aria-label="Remove filter">
971
1063
  <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
972
1064
  <use href="#x" />
973
1065
  </svg>
@@ -1079,7 +1171,13 @@ Two types: numbered (with PaginationItem cells), simple (with text and buttons).
1079
1171
 
1080
1172
  ### MenuItem
1081
1173
 
1082
- Single row within a dropdown menu. Three sizes: sm=25px, md=29px (default), lg=42px.
1174
+ 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.
1175
+
1176
+ **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.
1177
+
1178
+ **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.
1179
+
1180
+ > **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
1181
 
1084
1182
  ```html
1085
1183
  <!-- Simple row -->
@@ -1089,39 +1187,39 @@ Single row within a dropdown menu. Three sizes: sm=25px, md=29px (default), lg=4
1089
1187
  </span>
1090
1188
  </button>
1091
1189
 
1092
- <!-- Selected with check -->
1093
- <button class="vd-menu-item" role="menuitem" aria-selected="true">
1190
+ <!-- Selected one-of-N row with a check (inside role="menu") -->
1191
+ <button class="vd-menu-item" role="menuitemradio" aria-checked="true">
1094
1192
  <span class="vd-menu-item-text">
1095
1193
  <span class="vd-menu-item-title">Weekly</span>
1096
1194
  </span>
1097
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true">
1195
+ <svg class="vd-menu-item-check vd-icon vd-icon-size-14" aria-hidden="true">
1098
1196
  <use href="#check" />
1099
1197
  </svg>
1100
1198
  </button>
1101
1199
 
1102
- <!-- With left icon and keyboard shortcut -->
1200
+ <!-- Leading icon and a keyboard shortcut -->
1103
1201
  <button class="vd-menu-item" role="menuitem">
1104
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true">
1202
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
1105
1203
  <use href="#settings" />
1106
1204
  </svg>
1107
1205
  <span class="vd-menu-item-text">
1108
1206
  <span class="vd-menu-item-title">Preferences</span>
1109
1207
  </span>
1110
- <span class="vd-menu-item-right-text">⌘,</span>
1208
+ <span class="vd-menu-item-shortcut">⌘,</span>
1111
1209
  </button>
1112
1210
 
1113
- <!-- Large row with avatar and subtitle -->
1211
+ <!-- Large row with an avatar and a subtitle -->
1114
1212
  <button class="vd-menu-item vd-menu-item-lg" role="menuitem">
1115
- <span class="vd-avatar vd-avatar-md">NC</span>
1213
+ <span class="vd-menu-item-avatar"><span class="vd-avatar vd-avatar-md">NC</span></span>
1116
1214
  <span class="vd-menu-item-text">
1117
1215
  <span class="vd-menu-item-title">Nicholas Cooper</span>
1118
1216
  <span class="vd-menu-item-subtitle">Primary applicant</span>
1119
1217
  </span>
1120
1218
  </button>
1121
1219
 
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">
1220
+ <!-- Tile + subtitle (what the removed "Combined" row became) -->
1221
+ <button class="vd-menu-item vd-menu-item-lg" role="menuitem">
1222
+ <span class="vd-menu-item-tile">
1125
1223
  <svg class="vd-icon vd-icon-size-12" aria-hidden="true">
1126
1224
  <use href="#users" />
1127
1225
  </svg>
@@ -1132,6 +1230,16 @@ Single row within a dropdown menu. Three sizes: sm=25px, md=29px (default), lg=4
1132
1230
  </span>
1133
1231
  </button>
1134
1232
 
1233
+ <!-- Critical tone -->
1234
+ <button class="vd-menu-item vd-menu-item-critical" role="menuitem">
1235
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
1236
+ <use href="#trash-2" />
1237
+ </svg>
1238
+ <span class="vd-menu-item-text">
1239
+ <span class="vd-menu-item-title">Delete</span>
1240
+ </span>
1241
+ </button>
1242
+
1135
1243
  <!-- Disabled -->
1136
1244
  <button class="vd-menu-item" role="menuitem" disabled>
1137
1245
  <span class="vd-menu-item-text">
@@ -1144,37 +1252,46 @@ Single row within a dropdown menu. Three sizes: sm=25px, md=29px (default), lg=4
1144
1252
 
1145
1253
  ### DropdownMenu
1146
1254
 
1147
- ⚠️ **Requires JavaScript** - Manage `aria-expanded` and `hidden` on panel.
1255
+ ⚠️ **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
1256
 
1149
- Overlay panel holding MenuItem rows. Use `.vd-dropdown` positioning wrapper.
1257
+ 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
1258
 
1151
1259
  ```html
1152
- <!-- Select-style menu -->
1153
- <div class="vd-dropdown-menu" role="menu">
1154
- <button class="vd-menu-item" role="menuitem" aria-selected="true">
1260
+ <!-- Select-style menu: one-of-N rows are menuitemradio + aria-checked -->
1261
+ <div class="vd-dropdown-menu" role="menu" aria-label="Frequency">
1262
+ <button class="vd-menu-item" role="menuitemradio" aria-checked="true">
1155
1263
  <span class="vd-menu-item-text">
1156
1264
  <span class="vd-menu-item-title">Weekly</span>
1157
1265
  </span>
1158
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true">
1266
+ <svg class="vd-menu-item-check vd-icon vd-icon-size-14" aria-hidden="true">
1159
1267
  <use href="#check" />
1160
1268
  </svg>
1161
1269
  </button>
1162
- <button class="vd-menu-item" role="menuitem">
1270
+ <button class="vd-menu-item" role="menuitemradio" aria-checked="false">
1163
1271
  <span class="vd-menu-item-text">
1164
1272
  <span class="vd-menu-item-title">Daily</span>
1165
1273
  </span>
1166
1274
  </button>
1167
- <button class="vd-menu-item" role="menuitem">
1275
+ <button class="vd-menu-item" role="menuitemradio" aria-checked="false">
1168
1276
  <span class="vd-menu-item-text">
1169
1277
  <span class="vd-menu-item-title">Monthly</span>
1170
1278
  </span>
1171
1279
  </button>
1172
1280
  </div>
1173
1281
 
1174
- <!-- Action menu with divider -->
1175
- <div class="vd-dropdown-menu" role="menu">
1282
+ <!-- Search, a header, a divider before a destructive row, and a footer -->
1283
+ <div class="vd-dropdown-menu" role="menu" aria-label="Actions">
1284
+ <div class="vd-dropdown-menu-search">
1285
+ <div class="vd-input-field vd-input-search vd-input-sm">
1286
+ <svg class="vd-input-icon-left vd-icon vd-icon-size-14" aria-hidden="true"><use href="#search" /></svg>
1287
+ <input type="search" class="vd-input" placeholder="Search" aria-label="Search actions" />
1288
+ </div>
1289
+ </div>
1290
+ <div class="vd-dropdown-menu-header">
1291
+ <span class="vd-dropdown-menu-header-label">Record</span>
1292
+ </div>
1176
1293
  <button class="vd-menu-item" role="menuitem">
1177
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true">
1294
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
1178
1295
  <use href="#pencil" />
1179
1296
  </svg>
1180
1297
  <span class="vd-menu-item-text">
@@ -1184,14 +1301,15 @@ Overlay panel holding MenuItem rows. Use `.vd-dropdown` positioning wrapper.
1184
1301
 
1185
1302
  <div class="vd-dropdown-menu-divider"></div>
1186
1303
 
1187
- <button class="vd-menu-item" role="menuitem">
1188
- <svg class="vd-icon vd-icon-size-15 text-critical" aria-hidden="true">
1304
+ <button class="vd-menu-item vd-menu-item-critical" role="menuitem">
1305
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
1189
1306
  <use href="#trash-2" />
1190
1307
  </svg>
1191
1308
  <span class="vd-menu-item-text">
1192
- <span class="vd-menu-item-title text-critical">Delete</span>
1309
+ <span class="vd-menu-item-title">Delete</span>
1193
1310
  </span>
1194
1311
  </button>
1312
+ <div class="vd-dropdown-menu-footer"><a class="vd-link" href="/actions">All actions</a></div>
1195
1313
  </div>
1196
1314
 
1197
1315
  <!-- Anchored under a trigger -->
@@ -1246,7 +1364,9 @@ Four standalone styles plus one paragraph style. Underline is a state on `strong
1246
1364
 
1247
1365
  ### Alert
1248
1366
 
1249
- Contextual banner. Five types: critical / warning / success / info / neutral. **Type is required.**
1367
+ Contextual banner. Five types: critical / warning / success / info / neutral. **Type is required** — a bare `.vd-alert` is transparent.
1368
+
1369
+ **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
1370
 
1251
1371
  ```html
1252
1372
  <div class="vd-alert vd-alert-critical" role="alert">
@@ -1261,7 +1381,7 @@ Contextual banner. Five types: critical / warning / success / info / neutral. **
1261
1381
  </p>
1262
1382
  <button class="vd-text-button vd-text-button-primary">Review Field</button>
1263
1383
  </div>
1264
- <button class="vd-icon-button vd-icon-button-md" aria-label="Dismiss">
1384
+ <button class="vd-icon-button vd-icon-button-inline" aria-label="Dismiss">
1265
1385
  <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
1266
1386
  <use href="#x" />
1267
1387
  </svg>
@@ -1271,9 +1391,9 @@ Contextual banner. Five types: critical / warning / success / info / neutral. **
1271
1391
 
1272
1392
  <!-- Other types -->
1273
1393
  <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>
1394
+ <div class="vd-alert vd-alert-success" role="status"><!-- ... --></div>
1395
+ <div class="vd-alert vd-alert-info" role="status"><!-- ... --></div>
1396
+ <div class="vd-alert vd-alert-neutral" role="status"><!-- ... --></div>
1277
1397
  ```
1278
1398
 
1279
1399
  ---
@@ -1297,7 +1417,7 @@ Transient notification. Two styles: full (card) / simple (dark pill).
1297
1417
  </p>
1298
1418
  </div>
1299
1419
  </div>
1300
- <button class="vd-icon-button vd-icon-button-md" aria-label="Dismiss">
1420
+ <button class="vd-icon-button vd-icon-button-inline" aria-label="Dismiss">
1301
1421
  <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
1302
1422
  <use href="#x" />
1303
1423
  </svg>
@@ -1339,7 +1459,7 @@ Dialog for confirmations. Three actions: destructive / positive / neutral.
1339
1459
  Decline this application?
1340
1460
  </h2>
1341
1461
  </div>
1342
- <button class="vd-icon-button vd-icon-button-lg" aria-label="Close">
1462
+ <button class="vd-icon-button vd-icon-button-md" aria-label="Close">
1343
1463
  <svg class="vd-icon vd-icon-size-16" aria-hidden="true">
1344
1464
  <use href="#x" />
1345
1465
  </svg>
@@ -1640,7 +1760,7 @@ Masked value with toggle.
1640
1760
  <span class="vd-sensitive-data">
1641
1761
  <span class="vd-sensitive-data-value">***-**-1234</span>
1642
1762
  <button
1643
- class="vd-icon-button vd-icon-button-md"
1763
+ class="vd-icon-button vd-icon-button-inline"
1644
1764
  aria-pressed="true"
1645
1765
  aria-label="Show full value"
1646
1766
  >
@@ -1654,7 +1774,7 @@ Masked value with toggle.
1654
1774
  <span class="vd-sensitive-data">
1655
1775
  <span class="vd-sensitive-data-value">123-12-1234</span>
1656
1776
  <button
1657
- class="vd-icon-button vd-icon-button-md"
1777
+ class="vd-icon-button vd-icon-button-inline"
1658
1778
  aria-pressed="false"
1659
1779
  aria-label="Hide value"
1660
1780
  >
@@ -1671,5 +1791,5 @@ Masked value with toggle.
1671
1791
 
1672
1792
  - **Installation issues:** See [GETTING_STARTED.md](GETTING_STARTED.md)
1673
1793
  - **Broken components:** See [TROUBLESHOOTING.md](TROUBLESHOOTING.md)
1674
- - **Technical details:** See [CLAUDE.md](CLAUDE.md)
1794
+ - **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
1795
  - **Working examples:** See `examples/vite-starter/` and `examples/postcss-starter/`