@valiify/dashboard-ui 0.6.0 → 0.8.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 (59) hide show
  1. package/CHANGELOG.md +433 -2
  2. package/COMPONENTS.md +448 -73
  3. package/README.md +3 -3
  4. package/class-manifest.json +173 -4
  5. package/design-methodology/dashboard.md +676 -308
  6. package/dist/dashboard-ui.css +1258 -206
  7. package/dist/index.css +929 -181
  8. package/package.json +8 -8
  9. package/src/components/add-funds-form.css +2 -1
  10. package/src/components/button.css +40 -21
  11. package/src/components/checkbox.css +4 -2
  12. package/src/components/checklist-group.css +14 -6
  13. package/src/components/composer.css +11 -9
  14. package/src/components/content-row.css +29 -4
  15. package/src/components/data-list.css +91 -0
  16. package/src/components/data-row.css +14 -1
  17. package/src/components/divider.css +1 -1
  18. package/src/components/dropdown-field.css +30 -18
  19. package/src/components/dropdown-menu.css +12 -6
  20. package/src/components/field-verification.css +6 -1
  21. package/src/components/filter-segment.css +2 -1
  22. package/src/components/final-decision.css +51 -0
  23. package/src/components/finding-card.css +60 -17
  24. package/src/components/finding-option.css +10 -4
  25. package/src/components/funding-status.css +3 -2
  26. package/src/components/funding-total.css +8 -3
  27. package/src/components/funding-transaction.css +28 -5
  28. package/src/components/index.css +7 -0
  29. package/src/components/input.css +60 -21
  30. package/src/components/keycap.css +1 -1
  31. package/src/components/link.css +6 -2
  32. package/src/components/loading-indicator.css +5 -5
  33. package/src/components/menu-item.css +109 -21
  34. package/src/components/modal.css +21 -2
  35. package/src/components/navigation-rail.css +136 -6
  36. package/src/components/owner-row.css +170 -0
  37. package/src/components/owner-table-header.css +28 -13
  38. package/src/components/panel-section-header.css +5 -2
  39. package/src/components/pill.css +3 -2
  40. package/src/components/radio-select.css +5 -2
  41. package/src/components/recipient-input.css +4 -4
  42. package/src/components/record.css +56 -0
  43. package/src/components/scoring-details.css +79 -0
  44. package/src/components/section-edit.css +109 -0
  45. package/src/components/section-marker.css +4 -3
  46. package/src/components/sensitive-data.css +8 -4
  47. package/src/components/severity-count.css +13 -0
  48. package/src/components/step.css +1 -1
  49. package/src/components/summary-panel.css +250 -0
  50. package/src/components/summary-preview.css +5 -1
  51. package/src/components/tabs.css +7 -7
  52. package/src/components/tag.css +15 -9
  53. package/src/components/textarea.css +38 -18
  54. package/src/components/toast.css +13 -10
  55. package/src/components/tooltip.css +4 -1
  56. package/src/themes/valiify-tokens.css +1 -1
  57. package/src/themes/valiify.css +1 -1
  58. package/src/utility-surface.css +93 -1
  59. package/types/components.d.ts +100 -5
package/COMPONENTS.md CHANGED
@@ -103,6 +103,14 @@ Four displays — `-primary`, `-outline`, `-empty`, and `-critical` (a destructi
103
103
  <button class="vd-btn vd-btn-outline" disabled>Disabled</button>
104
104
  <button class="vd-btn vd-btn-outline" aria-pressed="true">Selected</button>
105
105
 
106
+ <!-- 0.7.0: aria-disabled="true" is styled as disabled on every display. Use it for
107
+ an action that is unavailable but must stay focusable, so the reason can be
108
+ read. .vd-btn-blocked is the neutral "cannot run yet" look. Ignoring the click
109
+ is your JavaScript. -->
110
+ <button class="vd-btn vd-btn-blocked" aria-disabled="true" aria-describedby="why-blocked">
111
+ Approve <span class="vd-badge vd-badge-neutral">5</span>
112
+ </button>
113
+
106
114
  <!-- With icons (match icon size to button size) -->
107
115
  <button class="vd-btn vd-btn-primary vd-btn-sm">
108
116
  <svg class="vd-icon vd-icon-size-13" aria-hidden="true">
@@ -404,7 +412,7 @@ Native checkbox with label, optional subtitle, and trailing action.
404
412
 
405
413
  ### RadioSelect
406
414
 
407
- Native radio button with label.
415
+ Native radio button with label. The row is 22px tall since 0.7.0 (it was 18): 2px above and below the label line, as Figma draws it.
408
416
 
409
417
  ```html
410
418
  <label class="vd-radio-select">
@@ -571,15 +579,15 @@ Dropdown select trigger. Pairs with [DropdownMenu](#dropdownmenu).
571
579
 
572
580
  ### Composer
573
581
 
574
- 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.
582
+ A comment / note composer: a bordered shell with an optional row of Tag chips **above** a growing text body (since 0.8.0 — put `.vd-composer-tags` before `.vd-composer-body`), 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.
575
583
 
576
584
  ```html
577
585
  <div class="vd-composer">
578
586
  <div class="vd-composer-shell">
587
+ <div class="vd-composer-tags"><span class="vd-tag vd-tag-sm">Underwriting</span></div>
579
588
  <div class="vd-composer-body vd-composer-rows-3">
580
589
  <textarea class="vd-composer-textarea" rows="3" placeholder="Add a comment…" aria-label="Comment"></textarea>
581
590
  </div>
582
- <div class="vd-composer-tags"><span class="vd-tag vd-tag-sm">Underwriting</span></div>
583
591
  <div class="vd-composer-footer">
584
592
  <div class="vd-composer-actions">
585
593
  <button class="vd-icon-button vd-icon-button-sm" aria-label="Attach">
@@ -766,7 +774,7 @@ Clickable label for categories and filtering. Sizes: `-xs` 20 (denser padding),
766
774
 
767
775
  ### Pill
768
776
 
769
- Compact filter toggle or dropdown trigger. Height: 17px.
777
+ Compact filter toggle or dropdown trigger. Height: 22px (2 + the 18px line + 2; it was pinned at 17 before 0.8.0).
770
778
 
771
779
  ```html
772
780
  <!-- Dropdown trigger (with chevron) -->
@@ -846,6 +854,14 @@ One labelled field in a review panel. Three columns: field name (200px), value (
846
854
  </div>
847
855
  ```
848
856
 
857
+ **Previous value (0.7.0).** After an edit, show what the field held before with `.vd-data-row-previous` inside the value: struck through, quieter, 8px after the current value. Use an `<s>` and a visually hidden "was", because few screen readers announce a strike.
858
+
859
+ ```html
860
+ <span class="vd-data-row-value">Corporation<s class="vd-data-row-previous"><span class="sr-only">was </span>LLC</s></span>
861
+ ```
862
+
863
+ Inside a [Record](#record) the value column gives way on a narrow page.
864
+
849
865
  ---
850
866
 
851
867
  ### Divider
@@ -967,6 +983,17 @@ A count of open items with its severity marker — a button that opens the findi
967
983
 
968
984
  Pick the severity by choosing the marker. **ARIA:** the marker is hidden and the button's `aria-label` carries both the count and what it counts.
969
985
 
986
+ **In a row's status column** add `vd-severity-count-flush` (0.7.0). It drops the left padding, so the marker starts at the column's edge and lines up with the checks in the rows around it. Use it in a [ContentRow](#contentrow)'s status slot and in an [OwnerRow](#ownerrow)'s status cells:
987
+
988
+ ```html
989
+ <span class="vd-content-row-status">
990
+ <button class="vd-severity-count vd-severity-count-flush" aria-label="Registration: 1 critical finding">
991
+ <span class="vd-severity-marker vd-severity-marker-critical" aria-hidden="true"></span>
992
+ 1
993
+ </button>
994
+ </span>
995
+ ```
996
+
970
997
  ---
971
998
 
972
999
  ### ProgressCircle
@@ -1057,11 +1084,19 @@ A collapsed section line: a title and summary, a status, tools that appear on ho
1057
1084
 
1058
1085
  Add `vd-content-row-action` to any tool that should only appear on hover or keyboard focus. The chevron turns when its button is `aria-expanded="true"`.
1059
1086
 
1087
+ Since 0.7.0:
1088
+
1089
+ - **The text wraps.** A long summary runs to a second line and the row grows to 64px; it no longer truncates.
1090
+ - **An expanded row keeps its hover tools visible.**
1091
+ - **`.vd-content-row-linked`** marks the collapsed row a finding points at: a 2px blue stroke on the left edge, the same mark as `.vd-data-row-linked`.
1092
+ - **A row with an open finding** shows a [SeverityCount](#severitycount) in place of the check: put `vd-content-row-status` on a wrapper `<span>` and the count inside it, with `vd-severity-count-flush`.
1093
+ - Inside a [Record](#record) the 536px text column gives way on a narrow page.
1094
+
1060
1095
  ---
1061
1096
 
1062
1097
  ### SummaryPreview
1063
1098
 
1064
- The label in the gutter beside a section, with a count of its comments. 140px wide. New in 0.6.0.
1099
+ The label in the gutter beside a section, with a count of its comments. 140px wide; set `--vd-summary-preview-width` (0.7.0) on it or on its gutter for another width — the Application page uses 112px. New in 0.6.0.
1065
1100
 
1066
1101
  ```html
1067
1102
  <div class="vd-summary-preview">
@@ -1161,18 +1196,120 @@ How much ownership is declared: a summary line, a thin bar and a legend. It is [
1161
1196
 
1162
1197
  ### OwnerTableHeader
1163
1198
 
1164
- Column labels above a list of owners, on the same column grid as ContentRow and DataRow. New in 0.6.0.
1199
+ Column labels above a list of owners. It shares [OwnerRow](#ownerrow)'s columns, so a label always starts where its column does: the Owner label takes the free width, then three 78⅔px status labels, then 36px of padding where the rows have their chevron. New in 0.6.0; on the shared columns since 0.7.0 (the cells were a fixed 536px and three of 94px, which ran 46px past the Application page's 828px row).
1165
1200
 
1166
1201
  ```html
1167
- <div class="vd-owner-table-header" role="row">
1168
- <span class="vd-owner-table-header-cell vd-owner-table-header-cell-main" role="columnheader">Owner</span>
1169
- <span class="vd-owner-table-header-cell" role="columnheader">Identity</span>
1170
- <span class="vd-owner-table-header-cell" role="columnheader">Application</span>
1171
- <span class="vd-owner-table-header-cell" role="columnheader">Documents</span>
1202
+ <div role="table" aria-label="Owners">
1203
+ <div class="vd-owner-table-header" role="row">
1204
+ <span class="vd-owner-table-header-cell vd-owner-table-header-cell-main" role="columnheader">Owner</span>
1205
+ <span class="vd-owner-table-header-cell" role="columnheader">Identity</span>
1206
+ <span class="vd-owner-table-header-cell" role="columnheader">Application</span>
1207
+ <span class="vd-owner-table-header-cell" role="columnheader">Documents</span>
1208
+ </div>
1209
+ <!-- .vd-owner-row rows -->
1210
+ </div>
1211
+ ```
1212
+
1213
+ **ARIA:** `role="row"` and `role="columnheader"` are only valid inside a `role="table"` (or put the classes on a real `<tr>` and `<th>`). Without a table around them, leave the roles off.
1214
+
1215
+ ---
1216
+
1217
+ ### OwnerRow
1218
+
1219
+ One owner: who they are, their share and role, a status per check, and a chevron that expands the row. 64px tall. New in 0.7.0.
1220
+
1221
+ ⚠️ **Expanding requires JavaScript** — toggle `aria-expanded` on the chevron's button and show or hide the fields beneath.
1222
+
1223
+ ```html
1224
+ <div class="vd-owner-row" role="row">
1225
+ <div class="vd-owner-row-main" role="cell">
1226
+ <span class="vd-avatar vd-avatar-md vd-avatar-square">JS</span>
1227
+ <span class="vd-owner-row-text">
1228
+ <span class="vd-owner-row-name">John Smith</span>
1229
+ <span class="vd-owner-row-meta">40% · Authorized Signer · Beneficial Owner</span>
1230
+ </span>
1231
+ </div>
1232
+ <span class="vd-owner-row-status" role="cell">
1233
+ <span class="vd-field-verification vd-field-verification-verified vd-field-verification-compact">
1234
+ <span class="vd-section-marker vd-section-marker-approve" role="img" aria-label="Identity: verified">
1235
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#check" /></svg>
1236
+ </span>
1237
+ <span class="vd-field-verification-label">Identity: verified</span>
1238
+ </span>
1239
+ </span>
1240
+ <span class="vd-owner-row-status" role="cell">
1241
+ <button class="vd-severity-count vd-severity-count-flush" aria-label="Application: 1 finding needs review">
1242
+ <span class="vd-severity-marker vd-severity-marker-review" aria-hidden="true"></span>1
1243
+ </button>
1244
+ </span>
1245
+ <span class="vd-owner-row-status" role="cell">
1246
+ <span class="vd-field-verification vd-field-verification-none vd-field-verification-compact" role="img" aria-label="Documents: no status">
1247
+ <span class="vd-section-marker"><svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#minus" /></svg></span>
1248
+ </span>
1249
+ </span>
1250
+ <span class="vd-owner-row-actions" role="cell">
1251
+ <button class="vd-icon-button vd-icon-button-inline" aria-expanded="false" aria-label="John Smith details">
1252
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
1253
+ </button>
1254
+ </span>
1172
1255
  </div>
1173
1256
  ```
1174
1257
 
1175
- **ARIA:** give it `role="row"` with `columnheader` cells inside a `role="table"`, or put the classes on a real `<tr>` and `<th>`.
1258
+ - **The leading mark** is a square [Avatar](#avatar) (`vd-avatar-md vd-avatar-square`) for a person — owners and applicants are square, staff are round. For a company use the tile:
1259
+ `<span class="vd-owner-row-tile"><svg class="vd-icon vd-icon-size-11" aria-hidden="true"><use href="#building" /></svg></span>`
1260
+ - **Status cells** hold a compact [FieldVerification](#fieldverification) or a [SeverityCount](#severitycount). There are three columns, each a third of a fixed 236px; set `--vd-owner-columns` on the table to split the same 236px into another number.
1261
+ - **A count in a status cell** takes `vd-severity-count-flush`, so its marker starts at the column's edge like the checks around it.
1262
+ - **The owner column is the one that flexes.** The statuses and the chevron keep a fixed 268px at the right edge of the row at any width. In the Application page's 828px row that puts the first status on the same line as the other rows' status column. It is still its own layout, not [Record](#record)'s: on a narrower page the owner list keeps its columns under its own header, and no longer lines up with the rows above it.
1263
+ - **The chevron is the row's only control.** It has its own slot, `vd-owner-row-actions`, 14px after the last status, and turns when its button is `aria-expanded="true"`. An owner row has no Edit or Comment tool: ownership is edited from the Ownership section's own line.
1264
+ - **`.vd-owner-row-linked`** marks the owner a finding points at.
1265
+ - **ARIA:** inside a `role="table"` the row is `role="row"` and each direct child `role="cell"`. Without a table, leave the roles off.
1266
+
1267
+ ---
1268
+
1269
+ ### Record
1270
+
1271
+ The column grid a record's rows share. Put `vd-record` on the element that holds the rows, and on a narrow page the text column gives way while every row's status stays in line. Without it each row keeps its fixed 536px column. New in 0.7.0.
1272
+
1273
+ ```html
1274
+ <div class="vd-record">
1275
+ <div class="vd-content-row">…</div>
1276
+ <div class="vd-data-row">…</div>
1277
+ <div class="vd-funding-transaction">…</div>
1278
+ </div>
1279
+ ```
1280
+
1281
+ It works for [ContentRow](#contentrow), [DataRow](#datarow), [FundingTransaction](#fundingtransaction) and [FundingTotal](#fundingtotal). [OwnerTableHeader](#ownertableheader) and [OwnerRow](#ownerrow) are not on this grid: they keep their status columns fixed and flex the owner column instead. The status column shrinks first, to 88px; below a 742px container the text column shrinks, to no less than 280px. Give the page a minimum width so it scrolls sideways before that.
1282
+
1283
+ The element becomes a size container (`container-type: inline-size`), so it needs a width of its own: a block or a flex item that fills, not something that shrink-wraps its content.
1284
+
1285
+ ---
1286
+
1287
+ ### DataList
1288
+
1289
+ The fields under an expanded row, with two kinds of heading. New in 0.7.0.
1290
+
1291
+ ```html
1292
+ <div class="vd-data-list">
1293
+ <!-- What the list is, with one action -->
1294
+ <div class="vd-data-list-header">
1295
+ <h4 class="vd-data-list-header-title">Submitted Details</h4>
1296
+ <button class="vd-btn vd-btn-outline vd-btn-sm vd-data-list-header-action">
1297
+ View KYC Checks
1298
+ <svg class="vd-icon vd-icon-size-13" aria-hidden="true"><use href="#arrow-right" /></svg>
1299
+ </button>
1300
+ </div>
1301
+ <div class="vd-data-row">…</div>
1302
+
1303
+ <!-- A named group of fields -->
1304
+ <div class="vd-data-list-heading">
1305
+ <svg class="vd-data-list-heading-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#user" /></svg>
1306
+ <h5 class="vd-data-list-heading-title">Contact Details</h5>
1307
+ </div>
1308
+ <div class="vd-data-row">…</div>
1309
+ </div>
1310
+ ```
1311
+
1312
+ The header is 32px with a rule under it; `vd-data-list-header-action` turns the button's label blue. A heading is 36px and draws a rule above itself unless it is the first thing in the list. Use heading elements at the level your page's outline needs.
1176
1313
 
1177
1314
  ---
1178
1315
 
@@ -1233,6 +1370,55 @@ Sidebar with title, groups, and items. Use `-collapsed` variants for a collapsed
1233
1370
  </button>
1234
1371
  ```
1235
1372
 
1373
+ **Added in 0.7.0**
1374
+
1375
+ ```html
1376
+ <!-- Nav Sidebar layout: 8px above each group instead of 20px between them -->
1377
+ <nav class="vd-nav-rail vd-nav-rail-sidebar" aria-label="Main">
1378
+ <div class="vd-nav-rail-content">
1379
+ <!-- Top actions: Jump To over New Split -->
1380
+ <div class="vd-nav-rail-actions">…</div>
1381
+
1382
+ <div class="vd-nav-rail-section">
1383
+ <!-- Section header: a group label with an action at the far end -->
1384
+ <div class="vd-nav-section-header">
1385
+ <div class="vd-nav-group"><span class="vd-nav-group-label">Pinned</span></div>
1386
+ <button class="vd-nav-section-header-action">Edit</button>
1387
+ </div>
1388
+ <!-- nav items -->
1389
+ </div>
1390
+
1391
+ <div class="vd-nav-rail-section">
1392
+ <div class="vd-nav-section-header">
1393
+ <div class="vd-nav-group"><span class="vd-nav-group-label">Continue</span></div>
1394
+ </div>
1395
+ <!-- The session that is open: aria-current -->
1396
+ <a href="/applications/853081" class="vd-nav-session" aria-current="true">
1397
+ <span class="vd-nav-session-tile" aria-hidden="true">NL</span>
1398
+ <span class="vd-nav-session-text">
1399
+ <span class="vd-nav-session-title">Northgate Logistics, Inc.</span>
1400
+ <span class="vd-nav-session-status"><span class="vd-dot vd-dot-sm vd-dot-critical"></span>2 decisions open</span>
1401
+ </span>
1402
+ </a>
1403
+ </div>
1404
+ </div>
1405
+
1406
+ <button class="vd-nav-user" aria-haspopup="menu" aria-expanded="false">…</button>
1407
+ </nav>
1408
+
1409
+ <!-- The account control in a collapsed rail: the avatar alone. Keep the text; it is hidden visually. -->
1410
+ <button class="vd-nav-user vd-nav-user-collapsed" aria-haspopup="menu" aria-expanded="false">
1411
+ <span class="vd-avatar vd-avatar-md" aria-hidden="true">AR</span>
1412
+ <span class="vd-nav-user-text">
1413
+ <span class="vd-nav-user-name">Alex Reyes</span>
1414
+ <span class="vd-nav-user-role">Underwriter</span>
1415
+ </span>
1416
+ </button>
1417
+ ```
1418
+
1419
+ - `vd-nav-rail-sidebar` is the spacing Figma's Nav Sidebar draws. Without it the rail keeps the older 20px between sections.
1420
+ - A long session status now truncates with an ellipsis and its dot keeps its size.
1421
+
1236
1422
  **Added in 0.6.0**
1237
1423
 
1238
1424
  - **Peek:** `vd-nav-rail-peek` floats the expanded rail over the page (frame fill, shadow to the right) while the sidebar is hidden. It is absolutely positioned on the left edge of its nearest positioned ancestor. Showing it when the pointer reaches the screen edge is your JavaScript.
@@ -1580,9 +1766,9 @@ Single row within a dropdown menu. Three min-height floors: `-sm` 24, `-md` 28 (
1580
1766
  </label>
1581
1767
  ```
1582
1768
 
1583
- **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.
1769
+ **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>`). The row draws its icons, whatever icon-size class the markup names: the leading glyph is 14px / 1px at sm and 16px / 1.25px at md and lg, Neutral/Main; the tile's glyph is 12px / 1px (16px / 1.25px in the lg tile), Neutral/Main; chevrons are 14px / 1px, Neutral/Main; the check 14px / 1px, Primary/Main; an action's glyph 14px / 1px. A bare `.vd-icon` directly inside the row, with no trailing class, is drawn as the leading glyph.
1584
1770
 
1585
- **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.
1771
+ **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`. **Since 0.7.0 a selected row is marked by its check alone**: the row keeps its normal ink and `.vd-menu-item-check` is blue by itself (through 0.6.0 the whole row turned blue). A selected row therefore needs a check. A row that opens a submenu takes `aria-haspopup="menu"` and `aria-expanded`; while the submenu is open (`aria-expanded="true"`) the row keeps its hover fill. `.vd-menu-item-right-text` is the normal ink, not blue, since 0.7.0.
1586
1772
 
1587
1773
  > **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).
1588
1774
 
@@ -1663,6 +1849,8 @@ Single row within a dropdown menu. Three min-height floors: `-sm` 24, `-md` 28 (
1663
1849
 
1664
1850
  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.
1665
1851
 
1852
+ Since 0.7.0 the panel stretches whatever is inside it, so rows can be grouped in a wrapper — a `role="listbox"` under a search field, or an anchor for a submenu — and still fill the panel.
1853
+
1666
1854
  ```html
1667
1855
  <!-- Select-style menu: one-of-N rows are menuitemradio + aria-checked -->
1668
1856
  <div class="vd-dropdown-menu" role="menu" aria-label="Frequency">
@@ -1853,6 +2041,8 @@ Transient notification. Two styles: full (card) / simple (an inverse pill — da
1853
2041
 
1854
2042
  ⚠️ **Recommended: Use native `<dialog>`** - Browser handles backdrop, Escape, focus trap.
1855
2043
 
2044
+ Since 0.7.0 a `<dialog class="vd-modal">` can stay in the page: it is not rendered until it is opened, and `showModal()` centres it on every entry. (Through 0.6.0 a closed dialog was visible, and an open one sat in the top-left corner on `@valiify/dashboard-ui` and `./source`.)
2045
+
1856
2046
  Dialog for confirmations. Three actions: destructive / positive / neutral.
1857
2047
 
1858
2048
  ```html
@@ -2258,13 +2448,13 @@ The dot is a Dot — choose its colour class to match the status.
2258
2448
  <h3 class="vd-panel-section-header-title">Findings</h3>
2259
2449
  <span class="vd-panel-section-header-count">5</span>
2260
2450
  <button class="vd-icon-button vd-icon-button-inline" aria-expanded="true" aria-controls="findings" aria-label="Findings">
2261
- <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
2451
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-up" /></svg>
2262
2452
  </button>
2263
2453
  </div>
2264
2454
  <div id="findings">…</div>
2265
2455
  ```
2266
2456
 
2267
- The chevron turns when the button is `aria-expanded="false"`.
2457
+ The glyph is `#chevron-up`; it turns over to point down when the button is `aria-expanded="false"`. (Through 0.6.0 this snippet used `#chevron-down`, which now points the wrong way: swap the glyph.)
2268
2458
 
2269
2459
  ### PanelStripButton
2270
2460
 
@@ -2298,9 +2488,9 @@ An open finding. The card is one container; what you put in it depends on where
2298
2488
 
2299
2489
  | State | Blocks |
2300
2490
  | ---------- | ------------------------------------------------------------------ |
2301
- | choosing | reason · options · a required note · a disabled primary button |
2302
- | requesting | reason · options · a field label and select · a note · the button |
2303
- | requested | reason · a decision box · a status line |
2491
+ | choosing | reason · options · a note (required to waive) · a disabled primary button |
2492
+ | requesting | reason · options · Document and From, side by side · a note · the button |
2493
+ | requested | reason · a decision box · a status line |
2304
2494
 
2305
2495
  ```html
2306
2496
  <section class="vd-finding-card" aria-labelledby="f1">
@@ -2325,9 +2515,28 @@ An open finding. The card is one container; what you put in it depends on where
2325
2515
  </label>
2326
2516
  </div>
2327
2517
 
2328
- <p class="vd-finding-card-field-label" id="doc">Document to request</p>
2329
- <button class="vd-dropdown-field vd-dropdown-field-lg" aria-haspopup="listbox" aria-expanded="false" aria-labelledby="doc">…</button>
2330
- <div class="vd-textarea-field"><textarea class="vd-textarea" rows="2" aria-label="Internal note"></textarea></div>
2518
+ <!-- Requesting: two small Dropdown Fields with their own labels, 8px apart -->
2519
+ <div class="vd-finding-card-fields">
2520
+ <div class="vd-dropdown-field-container">
2521
+ <div class="vd-dropdown-field-label" id="doc-label"><span>Document</span></div>
2522
+ <button class="vd-dropdown-field vd-dropdown-field-sm" aria-haspopup="listbox" aria-expanded="false" aria-labelledby="doc-label doc-value">
2523
+ <span class="vd-dropdown-field-value" id="doc-value">Proof of address</span>
2524
+ <svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
2525
+ </button>
2526
+ </div>
2527
+ <div class="vd-dropdown-field-container">
2528
+ <div class="vd-dropdown-field-label" id="from-label"><span>From</span></div>
2529
+ <button class="vd-dropdown-field vd-dropdown-field-sm" aria-haspopup="listbox" aria-expanded="false" aria-labelledby="from-label from-value">
2530
+ <span class="vd-dropdown-field-value" id="from-value">John Smith</span>
2531
+ <svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
2532
+ </button>
2533
+ </div>
2534
+ </div>
2535
+
2536
+ <!-- The note: a small Textarea; vd-finding-card-note gives it its 80px -->
2537
+ <div class="vd-textarea-field vd-textarea-sm vd-finding-card-note">
2538
+ <textarea class="vd-textarea" aria-label="Note" placeholder="Add a note (optional)"></textarea>
2539
+ </div>
2331
2540
 
2332
2541
  <div class="vd-finding-card-footer">
2333
2542
  <button class="vd-btn vd-btn-primary">Send request</button>
@@ -2346,7 +2555,9 @@ An open finding. The card is one container; what you put in it depends on where
2346
2555
  <p class="vd-finding-card-status">Waiting on applicant</p>
2347
2556
  ```
2348
2557
 
2349
- The selected option takes its tint from the radio's own checked state. The fields are the library's DropdownField and Textarea.
2558
+ The selected option takes its tint from the radio's own checked state. Options are 40px tall and 6px apart.
2559
+
2560
+ Since 0.7.0 the fields follow Figma's update: Document and From are small [DropdownField](#dropdownfield)s side by side in `.vd-finding-card-fields`, and the note is a small [Textarea](#textarea) with `vd-finding-card-note`, which holds it at 80px and lets it grow. When Waive is chosen, show the note alone with the placeholder "Add a note (required)". `.vd-finding-card-field-label` from 0.6.0 still works but is no longer part of the design.
2350
2561
 
2351
2562
  ### ResolvedRow
2352
2563
 
@@ -2459,13 +2670,163 @@ Closed, a group is its header alone. Add `vd-checklist-group-open` to make it a
2459
2670
 
2460
2671
  ---
2461
2672
 
2673
+ ### FinalDecision
2674
+
2675
+ The last line of the checklist: what unlocks the decision. 52px tall. New in 0.7.0.
2676
+
2677
+ ```html
2678
+ <div class="vd-final-decision">
2679
+ <span class="vd-final-decision-mark">
2680
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#lock" /></svg>
2681
+ </span>
2682
+ <div class="vd-final-decision-text">
2683
+ <p class="vd-final-decision-title">Final decision</p>
2684
+ <p class="vd-final-decision-detail">After all groups are signed off</p>
2685
+ </div>
2686
+ </div>
2687
+ ```
2688
+
2689
+ ---
2690
+
2691
+ ### SummaryPanel
2692
+
2693
+ The body of the panel's Summary tab: the record at a glance. Build the tab row above it from [Tabs](#tabs). New in 0.7.0.
2694
+
2695
+ ```html
2696
+ <div class="vd-summary-panel">
2697
+ <!-- Label / value rows, 32px each -->
2698
+ <section class="vd-summary-panel-section" aria-label="Status">
2699
+ <dl class="vd-summary-panel-rows">
2700
+ <div class="vd-summary-panel-row">
2701
+ <dt class="vd-summary-panel-row-label">Status</dt>
2702
+ <dd class="vd-summary-panel-row-value">
2703
+ <span class="vd-panel-status"><span class="vd-dot vd-dot-sm vd-dot-warning"></span>Pending Review</span>
2704
+ </dd>
2705
+ </div>
2706
+ <div class="vd-summary-panel-row">
2707
+ <dt class="vd-summary-panel-row-label">Assignee</dt>
2708
+ <dd class="vd-summary-panel-row-value"><span class="vd-avatar vd-avatar-sm">NC</span>Nicholas Cooper</dd>
2709
+ </div>
2710
+ <div class="vd-summary-panel-row">
2711
+ <dt class="vd-summary-panel-row-label">Last action</dt>
2712
+ <dd class="vd-summary-panel-row-value">
2713
+ <span>Docs requested <span class="vd-summary-panel-row-meta">· 2h ago</span></span>
2714
+ </dd>
2715
+ </div>
2716
+ </dl>
2717
+ </section>
2718
+
2719
+ <!-- Tags -->
2720
+ <section class="vd-summary-panel-section" aria-label="Type">
2721
+ <div class="vd-summary-panel-tags">
2722
+ <span class="vd-tag vd-tag-sm">New Business</span>
2723
+ <span class="vd-tag vd-tag-sm">Online</span>
2724
+ </div>
2725
+ </section>
2726
+
2727
+ <!-- Risk score, then the open findings -->
2728
+ <section class="vd-summary-panel-section" aria-label="Risk">
2729
+ <div class="vd-summary-panel-score">
2730
+ <div class="vd-summary-panel-score-head">
2731
+ <span class="vd-summary-panel-score-value">35</span>
2732
+ <div class="vd-summary-panel-score-text">
2733
+ <p class="vd-summary-panel-score-label">Risk Score</p>
2734
+ <p class="vd-summary-panel-score-detail">Tier 2 · Funding $10-$1,000</p>
2735
+ </div>
2736
+ </div>
2737
+ <div class="vd-summary-panel-score-bar" role="img" aria-label="Risk score 35 of 100, tier 2 of 4">
2738
+ <span class="vd-summary-panel-score-segment" style="--progress: 100"></span>
2739
+ <span class="vd-summary-panel-score-segment" style="--progress: 63"></span>
2740
+ <span class="vd-summary-panel-score-segment"></span>
2741
+ <span class="vd-summary-panel-score-segment"></span>
2742
+ </div>
2743
+ <!-- .vd-scoring-details goes here -->
2744
+ </div>
2745
+ <div class="vd-summary-panel-findings">
2746
+ <div class="vd-summary-panel-findings-text">
2747
+ <p class="vd-summary-panel-findings-title">5 open findings</p>
2748
+ <p class="vd-summary-panel-findings-counts">
2749
+ <span class="vd-summary-panel-findings-count"><span class="vd-dot vd-dot-sm vd-dot-critical"></span>2 critical</span>
2750
+ <span class="vd-summary-panel-findings-count"><span class="vd-dot vd-dot-sm vd-dot-warning"></span>2 warning</span>
2751
+ </p>
2752
+ </div>
2753
+ <button class="vd-icon-button vd-icon-button-sm" aria-label="Open findings">
2754
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-right" /></svg>
2755
+ </button>
2756
+ </div>
2757
+ </section>
2758
+
2759
+ <!-- A titled section of rows -->
2760
+ <section class="vd-summary-panel-section" aria-labelledby="key-indicators">
2761
+ <h3 class="vd-summary-panel-title" id="key-indicators">Key Indicators</h3>
2762
+ <dl class="vd-summary-panel-rows">
2763
+ <div class="vd-summary-panel-row">
2764
+ <dt class="vd-summary-panel-row-label">KYB Status</dt>
2765
+ <dd class="vd-summary-panel-row-value"><span class="vd-dot vd-dot-sm vd-dot-warning"></span>Review · 14/16</dd>
2766
+ </div>
2767
+ </dl>
2768
+ </section>
2769
+
2770
+ <!-- Products, and a closing note -->
2771
+ <section class="vd-summary-panel-section" aria-labelledby="products">
2772
+ <h3 class="vd-summary-panel-title" id="products">Product · 2</h3>
2773
+ <p class="vd-summary-panel-product">Business Checking <span class="vd-summary-panel-product-id">BC001</span></p>
2774
+ </section>
2775
+ <section class="vd-summary-panel-section" aria-label="Created">
2776
+ <p class="vd-summary-panel-note">Created Mar 14, 2026 10:00 PM</p>
2777
+ </section>
2778
+ </div>
2779
+ ```
2780
+
2781
+ **A row that is a control.** The assignee opens a menu, so its row is a button. It shows a chevron on hover, on focus and while it is open:
2782
+
2783
+ ```html
2784
+ <button class="vd-summary-panel-row vd-summary-panel-row-button" aria-haspopup="listbox" aria-expanded="false">
2785
+ <span class="vd-summary-panel-row-label">Assignee</span>
2786
+ <span class="vd-summary-panel-row-value"><span class="vd-avatar vd-avatar-sm">NC</span>Nicholas Cooper</span>
2787
+ <svg class="vd-summary-panel-row-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
2788
+ </button>
2789
+ ```
2790
+
2791
+ A `<button>` cannot go inside a `<dl>`: when one of the rows is a button, make `vd-summary-panel-rows` a `<div>` and its labels and values `<span>`s.
2792
+
2793
+ - **Score bar.** Each segment fills from the left by its `--progress` (0 to 100). The bar has no value semantics of its own, so give it `role="img"` and say the score in `aria-label`.
2794
+ - **Dots** are [Chip](#chip--badge--dot) dots: `vd-dot vd-dot-sm` plus a colour.
2795
+
2796
+ ---
2797
+
2798
+ ### ScoringDetails
2799
+
2800
+ Where a risk score came from: one line that opens the rules behind it. New in 0.7.0.
2801
+
2802
+ ⚠️ **Opening requires JavaScript** — toggle `aria-expanded` on the button and `hidden` on the list.
2803
+
2804
+ ```html
2805
+ <div class="vd-scoring-details">
2806
+ <p class="vd-scoring-details-summary">
2807
+ From 3 scoring rules
2808
+ <button class="vd-icon-button vd-icon-button-xs" aria-expanded="false" aria-controls="score-rules" aria-label="Scoring rules">
2809
+ <svg class="vd-icon vd-icon-size-12" aria-hidden="true"><use href="#chevron-down" /></svg>
2810
+ </button>
2811
+ </p>
2812
+ <dl class="vd-scoring-details-rules" id="score-rules" hidden>
2813
+ <div class="vd-scoring-details-rule"><dt>Prior applications</dt><dd class="vd-scoring-details-points">+15</dd></div>
2814
+ <div class="vd-scoring-details-rule"><dt>Volume to revenue</dt><dd class="vd-scoring-details-points">+10</dd></div>
2815
+ </dl>
2816
+ </div>
2817
+ ```
2818
+
2819
+ The chevron turns over when its button is `aria-expanded="true"`.
2820
+
2821
+ ---
2822
+
2462
2823
  ## Funding
2463
2824
 
2464
2825
  The parts of a record's funding section, new in 0.6.0. They share the record's column grid (a 536px summary, the status column, a 78px action group), so statuses line up with [ContentRow](#contentrow) and [DataRow](#datarow).
2465
2826
 
2466
2827
  ### FundingStatus
2467
2828
 
2468
- Pending, funded, refunded or failed. The mark is hidden from assistive tech; the label says the same.
2829
+ Pending, funded, refunded or failed, as a worded status. Since 0.8.0 neither funding row nests it — they show a marker with no word (below) — but it still ships for other uses. The mark is hidden from assistive tech; the label says the same.
2469
2830
 
2470
2831
  ```html
2471
2832
  <span class="vd-funding-status vd-funding-status-pending">
@@ -2484,7 +2845,16 @@ Pending, funded, refunded or failed. The mark is hidden from assistive tech; the
2484
2845
 
2485
2846
  ### FundingTransaction
2486
2847
 
2487
- One transaction, 48px tall. Refund appears on hover and keyboard focus.
2848
+ One transaction, 48px tall (12 + a 24px status slot + 12). Refund appears on hover and keyboard focus. **Since 0.8.0 the status is a marker with no word**, named for assistive tech:
2849
+
2850
+ | State | Marker |
2851
+ | --- | --- |
2852
+ | pending | `<span class="vd-severity-marker vd-severity-marker-review" role="img" aria-label="Pending"></span>` |
2853
+ | funded | the compact Field Verification, verified (its label is its name) |
2854
+ | refunded | `<svg class="vd-funding-transaction-undo vd-icon vd-icon-size-14" role="img" aria-label="Refunded"><use href="#undo-2" /></svg>` |
2855
+ | failed | `<span class="vd-severity-marker vd-severity-marker-critical" role="img" aria-label="Failed"></span>` |
2856
+
2857
+ The trailing control is an inline Icon Button with a 14px `#chevron-down`, in every state.
2488
2858
 
2489
2859
  ```html
2490
2860
  <div class="vd-funding-transaction">
@@ -2496,14 +2866,12 @@ One transaction, 48px tall. Refund appears on hover and keyboard focus.
2496
2866
  <span class="vd-funding-transaction-amount">$300.00</span>
2497
2867
  </div>
2498
2868
  <div class="vd-funding-transaction-status">
2499
- <span class="vd-funding-status vd-funding-status-pending">
2500
- <span class="vd-severity-marker vd-severity-marker-info" aria-hidden="true"></span>Pending
2501
- </span>
2869
+ <span class="vd-severity-marker vd-severity-marker-review" role="img" aria-label="Pending"></span>
2502
2870
  <button class="vd-text-button vd-text-button-text vd-funding-transaction-action">Refund</button>
2503
2871
  </div>
2504
2872
  <div class="vd-funding-transaction-actions">
2505
2873
  <button class="vd-icon-button vd-icon-button-inline" aria-label="Transaction details">
2506
- <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#ellipsis" /></svg>
2874
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
2507
2875
  </button>
2508
2876
  </div>
2509
2877
  </div>
@@ -2520,8 +2888,9 @@ Add `vd-funding-transaction-refunded` to dim a refunded transaction's amount, an
2520
2888
  <p class="vd-funding-total-amount">$400.00</p>
2521
2889
  </div>
2522
2890
  <div class="vd-funding-total-status">
2523
- <span class="vd-funding-status vd-funding-status-funded">
2524
- <svg class="vd-icon vd-icon-size-16" aria-hidden="true"><use href="#check" /></svg>Funded
2891
+ <span class="vd-field-verification vd-field-verification-verified vd-field-verification-compact">
2892
+ <span class="vd-section-marker vd-section-marker-approve"><svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#check" /></svg></span>
2893
+ <span class="vd-field-verification-label">Funded</span>
2525
2894
  </span>
2526
2895
  </div>
2527
2896
  <div class="vd-funding-total-actions">
@@ -2583,66 +2952,66 @@ Four groups separated by dividers. A row that opens a submenu carries a trailing
2583
2952
  ```html
2584
2953
  <div class="vd-dropdown-menu" role="menu" aria-label="Application actions" style="width: 260px">
2585
2954
  <button class="vd-menu-item" role="menuitem">
2586
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#file-text" /></svg>
2955
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#file-text" /></svg>
2587
2956
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Create report</span></span>
2588
2957
  </button>
2589
2958
  <button class="vd-menu-item" role="menuitem">
2590
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#download" /></svg>
2959
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#download" /></svg>
2591
2960
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Export record</span></span>
2592
2961
  </button>
2593
2962
  <button class="vd-menu-item" role="menuitem">
2594
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#link" /></svg>
2963
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#link" /></svg>
2595
2964
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Copy link</span></span>
2596
2965
  </button>
2597
2966
  <button class="vd-menu-item" role="menuitem">
2598
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#search" /></svg>
2967
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#search" /></svg>
2599
2968
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Find similar applications</span></span>
2600
2969
  </button>
2601
2970
  <div class="vd-dropdown-menu-divider"></div>
2602
2971
  <button class="vd-menu-item" role="menuitem" aria-haspopup="menu" aria-expanded="false">
2603
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#pencil" /></svg>
2972
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#pencil" /></svg>
2604
2973
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Edit application details</span></span>
2605
2974
  <svg class="vd-menu-item-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-right" /></svg>
2606
2975
  </button>
2607
2976
  <div class="vd-dropdown-menu-divider"></div>
2608
2977
  <button class="vd-menu-item" role="menuitem">
2609
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#message-circle" /></svg>
2978
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#message-circle" /></svg>
2610
2979
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Message applicant</span></span>
2611
2980
  <svg class="vd-menu-item-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-right" /></svg>
2612
2981
  </button>
2613
2982
  <button class="vd-menu-item" role="menuitem">
2614
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#send" /></svg>
2983
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#send" /></svg>
2615
2984
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Request document</span></span>
2616
2985
  <svg class="vd-menu-item-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-right" /></svg>
2617
2986
  </button>
2618
2987
  <button class="vd-menu-item" role="menuitem">
2619
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#credit-card" /></svg>
2988
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#credit-card" /></svg>
2620
2989
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Add funds</span></span>
2621
2990
  </button>
2622
2991
  <button class="vd-menu-item" role="menuitem">
2623
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#users" /></svg>
2992
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#users" /></svg>
2624
2993
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Re-assign application</span></span>
2625
2994
  </button>
2626
2995
  <button class="vd-menu-item" role="menuitem">
2627
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#x" /></svg>
2996
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#x" /></svg>
2628
2997
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Withdraw application</span></span>
2629
2998
  </button>
2630
2999
  <div class="vd-dropdown-menu-divider"></div>
2631
3000
  <button class="vd-menu-item" role="menuitem" aria-haspopup="menu" aria-expanded="false">
2632
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#shield" /></svg>
3001
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#shield" /></svg>
2633
3002
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Run KYC</span></span>
2634
3003
  <svg class="vd-menu-item-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-right" /></svg>
2635
3004
  </button>
2636
3005
  <button class="vd-menu-item" role="menuitem">
2637
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#building" /></svg>
3006
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#building" /></svg>
2638
3007
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Run KYB</span></span>
2639
3008
  </button>
2640
3009
  <button class="vd-menu-item" role="menuitem">
2641
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#activity" /></svg>
3010
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#activity" /></svg>
2642
3011
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Run rules</span></span>
2643
3012
  </button>
2644
3013
  <button class="vd-menu-item" role="menuitem">
2645
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#credit-card" /></svg>
3014
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#credit-card" /></svg>
2646
3015
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Run BizChex</span></span>
2647
3016
  </button>
2648
3017
  </div>
@@ -2657,7 +3026,7 @@ Everyone at once, then one person at a time. The first row shows a count as righ
2657
3026
  ```html
2658
3027
  <div class="vd-dropdown-menu" role="menu" aria-label="Run KYC" style="width: 220px">
2659
3028
  <button class="vd-menu-item" role="menuitem">
2660
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#users" /></svg>
3029
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#users" /></svg>
2661
3030
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">All individuals</span></span>
2662
3031
  <span class="vd-menu-item-right-text">3</span>
2663
3032
  </button>
@@ -2727,15 +3096,15 @@ Profile, settings, a dark-mode switch, and log out. The switch row is a `<label>
2727
3096
  ```html
2728
3097
  <div class="vd-dropdown-menu" role="menu" aria-label="Account" style="width: 220px">
2729
3098
  <button class="vd-menu-item" role="menuitem">
2730
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#users" /></svg>
3099
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#users" /></svg>
2731
3100
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Profile</span></span>
2732
3101
  </button>
2733
3102
  <button class="vd-menu-item" role="menuitem">
2734
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#settings" /></svg>
3103
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#settings" /></svg>
2735
3104
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Settings</span></span>
2736
3105
  </button>
2737
3106
  <label class="vd-menu-item">
2738
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#moon" /></svg>
3107
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#moon" /></svg>
2739
3108
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Dark mode</span></span>
2740
3109
  <span class="vd-menu-item-switch">
2741
3110
  <span class="vd-switch"><input type="checkbox" class="vd-switch-input" role="menuitemcheckbox" id="dark-mode" /></span>
@@ -2743,7 +3112,7 @@ Profile, settings, a dark-mode switch, and log out. The switch row is a `<label>
2743
3112
  </label>
2744
3113
  <div class="vd-dropdown-menu-divider"></div>
2745
3114
  <button class="vd-menu-item" role="menuitem">
2746
- <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#log-out" /></svg>
3115
+ <svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#log-out" /></svg>
2747
3116
  <span class="vd-menu-item-text"><span class="vd-menu-item-title">Log out</span></span>
2748
3117
  </button>
2749
3118
  </div>
@@ -2758,26 +3127,28 @@ Profile, settings, a dark-mode switch, and log out. The switch row is a `<label>
2758
3127
 
2759
3128
  ### Section Edit
2760
3129
 
2761
- Editing a section of a record in place: a title and a hint, groups of labelled fields in one, two or three columns, and a footer with the reason, an optional note, Cancel and Save. The groups and columns are plain grid utilities; every control is an existing component.
3130
+ Editing a section of a record in place. Since 0.7.0 this is a component, `.vd-section-edit`: a bordered box with a title and a hint, named groups of fields, and a footer with the reason, a note, Cancel and Save. Every control inside is an existing component.
2762
3131
 
2763
3132
  ```html
2764
- <form class="flex flex-col gap-3">
2765
- <div class="flex items-baseline gap-2.5">
2766
- <h3 class="vd-text-heading-compact text-content-primary">Editing Business</h3>
2767
- <p class="vd-text-body-dense text-content-tertiary">Changes re-run the checks for this section.</p>
3133
+ <form class="vd-section-edit" aria-labelledby="edit-title">
3134
+ <div class="vd-section-edit-header">
3135
+ <h3 class="vd-section-edit-title" id="edit-title">Editing Business</h3>
3136
+ <p class="vd-section-edit-hint">Changes re-run the checks for this section.</p>
2768
3137
  </div>
2769
3138
 
2770
- <fieldset class="flex flex-col gap-3 pt-3 pb-2.5">
2771
- <legend class="vd-text-action-compact-active text-content-tertiary">Registration</legend>
3139
+ <div class="vd-section-edit-group" role="group" aria-labelledby="edit-registration">
3140
+ <h4 class="vd-section-edit-group-title" id="edit-registration">Registration</h4>
2772
3141
 
2773
- <!-- One column -->
2774
- <div class="vd-input-container">
2775
- <label class="vd-input-label" for="legal-name"><span>Legal name</span></label>
2776
- <div class="vd-input-field"><input class="vd-input" id="legal-name" value="Northgate Logistics, INC" /></div>
3142
+ <!-- One field across -->
3143
+ <div class="vd-section-edit-row">
3144
+ <div class="vd-input-container">
3145
+ <label class="vd-input-label" for="legal-name"><span>Legal name</span></label>
3146
+ <div class="vd-input-field"><input class="vd-input" id="legal-name" value="Northgate Logistics, INC" /></div>
3147
+ </div>
2777
3148
  </div>
2778
3149
 
2779
- <!-- Two columns, 16px apart (three: grid-cols-3) -->
2780
- <div class="grid grid-cols-2 gap-4">
3150
+ <!-- Two fields share the row, 16px apart; three work the same way -->
3151
+ <div class="vd-section-edit-row">
2781
3152
  <div class="vd-input-container">
2782
3153
  <label class="vd-input-label" for="dba"><span>Doing business as (DBA)</span></label>
2783
3154
  <div class="vd-input-field"><input class="vd-input" id="dba" value="Northgate Trucking" /></div>
@@ -2792,26 +3163,30 @@ Editing a section of a record in place: a title and a hint, groups of labelled f
2792
3163
  </div>
2793
3164
 
2794
3165
  <!-- A switch that reveals a field -->
2795
- <label class="flex items-center gap-2.5">
3166
+ <label class="vd-section-edit-toggle">
2796
3167
  <span class="vd-switch"><input type="checkbox" class="vd-switch-input" /></span>
2797
- <span class="vd-text-body-dense text-content-primary">Mail should go to a different address</span>
3168
+ Mail should go to a different address
2798
3169
  </label>
2799
- </fieldset>
3170
+ </div>
2800
3171
 
2801
3172
  <!-- Footer: why, an optional note, and the actions -->
2802
- <div class="flex items-center gap-2 pt-3">
2803
- <button type="button" class="vd-dropdown-field" style="width: 220px" aria-haspopup="listbox" aria-expanded="false" aria-label="Reason for the change">
2804
- <span class="vd-dropdown-field-value">Applicant requested</span>
2805
- <svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
2806
- </button>
2807
- <div class="vd-input-field flex-1"><input class="vd-input" aria-label="Note" placeholder="Note (optional)" /></div>
3173
+ <div class="vd-section-edit-footer">
3174
+ <div class="vd-section-edit-reason">
3175
+ <button type="button" class="vd-dropdown-field" aria-haspopup="listbox" aria-expanded="false" aria-label="Reason for the change">
3176
+ <span class="vd-dropdown-field-value">Applicant requested</span>
3177
+ <svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
3178
+ </button>
3179
+ </div>
3180
+ <div class="vd-section-edit-note">
3181
+ <div class="vd-input-field"><input class="vd-input" aria-label="Note" placeholder="Note (optional)" /></div>
3182
+ </div>
2808
3183
  <button type="button" class="vd-btn vd-btn-empty">Cancel</button>
2809
3184
  <button class="vd-btn vd-btn-primary">Save changes</button>
2810
3185
  </div>
2811
3186
  </form>
2812
3187
  ```
2813
3188
 
2814
- The layout utilities above (`flex`, `grid`, `gap-*`, `text-*`) are Tailwind 4 / `./source`. On `./styles.css` use your app's own layout classes; the `vd-` classes are the same.
3189
+ A group is a `role="group"` named by its title, not a `<fieldset>`: a legend cannot sit below the group's own rule. After a save, show what each changed field held before with `.vd-data-row-previous` (see [DataRow](#datarow)).
2815
3190
 
2816
3191
  ### Page Breadcrumbs
2817
3192