@valiify/dashboard-ui 0.6.0 → 0.7.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 (42) hide show
  1. package/CHANGELOG.md +223 -0
  2. package/COMPONENTS.md +409 -42
  3. package/README.md +3 -3
  4. package/class-manifest.json +78 -2
  5. package/dist/dashboard-ui.css +778 -97
  6. package/dist/index.css +778 -97
  7. package/package.json +7 -7
  8. package/src/components/add-funds-form.css +2 -1
  9. package/src/components/button.css +29 -11
  10. package/src/components/checklist-group.css +5 -4
  11. package/src/components/content-row.css +29 -4
  12. package/src/components/data-list.css +91 -0
  13. package/src/components/data-row.css +14 -1
  14. package/src/components/dropdown-menu.css +6 -2
  15. package/src/components/field-verification.css +6 -1
  16. package/src/components/final-decision.css +51 -0
  17. package/src/components/finding-card.css +56 -16
  18. package/src/components/finding-option.css +10 -4
  19. package/src/components/funding-total.css +2 -1
  20. package/src/components/funding-transaction.css +8 -3
  21. package/src/components/index.css +7 -0
  22. package/src/components/keycap.css +1 -1
  23. package/src/components/menu-item.css +28 -10
  24. package/src/components/modal.css +19 -0
  25. package/src/components/navigation-rail.css +124 -4
  26. package/src/components/owner-row.css +170 -0
  27. package/src/components/owner-table-header.css +28 -13
  28. package/src/components/panel-section-header.css +5 -2
  29. package/src/components/radio-select.css +5 -2
  30. package/src/components/record.css +56 -0
  31. package/src/components/scoring-details.css +79 -0
  32. package/src/components/section-edit.css +109 -0
  33. package/src/components/severity-count.css +13 -0
  34. package/src/components/step.css +1 -1
  35. package/src/components/summary-panel.css +250 -0
  36. package/src/components/summary-preview.css +5 -1
  37. package/src/components/tabs.css +3 -2
  38. package/src/components/tag.css +4 -2
  39. package/src/components/toast.css +1 -1
  40. package/src/themes/valiify-tokens.css +1 -1
  41. package/src/themes/valiify.css +1 -1
  42. package/types/components.d.ts +98 -4
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">
@@ -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).
1200
+
1201
+ ```html
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>
1255
+ </div>
1256
+ ```
1257
+
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.
1165
1272
 
1166
1273
  ```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>
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>
1172
1278
  </div>
1173
1279
  ```
1174
1280
 
1175
- **ARIA:** give it `role="row"` with `columnheader` cells inside a `role="table"`, or put the classes on a real `<tr>` and `<th>`.
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.
@@ -1582,7 +1768,7 @@ Single row within a dropdown menu. Three min-height floors: `-sm` 24, `-md` 28 (
1582
1768
 
1583
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>`). Leading icons are 16 and trailing 14 at every size.
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,6 +2670,156 @@ 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).
@@ -2758,26 +3119,28 @@ Profile, settings, a dark-mode switch, and log out. The switch row is a `<label>
2758
3119
 
2759
3120
  ### Section Edit
2760
3121
 
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.
3122
+ 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
3123
 
2763
3124
  ```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>
3125
+ <form class="vd-section-edit" aria-labelledby="edit-title">
3126
+ <div class="vd-section-edit-header">
3127
+ <h3 class="vd-section-edit-title" id="edit-title">Editing Business</h3>
3128
+ <p class="vd-section-edit-hint">Changes re-run the checks for this section.</p>
2768
3129
  </div>
2769
3130
 
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>
3131
+ <div class="vd-section-edit-group" role="group" aria-labelledby="edit-registration">
3132
+ <h4 class="vd-section-edit-group-title" id="edit-registration">Registration</h4>
2772
3133
 
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>
3134
+ <!-- One field across -->
3135
+ <div class="vd-section-edit-row">
3136
+ <div class="vd-input-container">
3137
+ <label class="vd-input-label" for="legal-name"><span>Legal name</span></label>
3138
+ <div class="vd-input-field"><input class="vd-input" id="legal-name" value="Northgate Logistics, INC" /></div>
3139
+ </div>
2777
3140
  </div>
2778
3141
 
2779
- <!-- Two columns, 16px apart (three: grid-cols-3) -->
2780
- <div class="grid grid-cols-2 gap-4">
3142
+ <!-- Two fields share the row, 16px apart; three work the same way -->
3143
+ <div class="vd-section-edit-row">
2781
3144
  <div class="vd-input-container">
2782
3145
  <label class="vd-input-label" for="dba"><span>Doing business as (DBA)</span></label>
2783
3146
  <div class="vd-input-field"><input class="vd-input" id="dba" value="Northgate Trucking" /></div>
@@ -2792,26 +3155,30 @@ Editing a section of a record in place: a title and a hint, groups of labelled f
2792
3155
  </div>
2793
3156
 
2794
3157
  <!-- A switch that reveals a field -->
2795
- <label class="flex items-center gap-2.5">
3158
+ <label class="vd-section-edit-toggle">
2796
3159
  <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>
3160
+ Mail should go to a different address
2798
3161
  </label>
2799
- </fieldset>
3162
+ </div>
2800
3163
 
2801
3164
  <!-- 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>
3165
+ <div class="vd-section-edit-footer">
3166
+ <div class="vd-section-edit-reason">
3167
+ <button type="button" class="vd-dropdown-field" aria-haspopup="listbox" aria-expanded="false" aria-label="Reason for the change">
3168
+ <span class="vd-dropdown-field-value">Applicant requested</span>
3169
+ <svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
3170
+ </button>
3171
+ </div>
3172
+ <div class="vd-section-edit-note">
3173
+ <div class="vd-input-field"><input class="vd-input" aria-label="Note" placeholder="Note (optional)" /></div>
3174
+ </div>
2808
3175
  <button type="button" class="vd-btn vd-btn-empty">Cancel</button>
2809
3176
  <button class="vd-btn vd-btn-primary">Save changes</button>
2810
3177
  </div>
2811
3178
  </form>
2812
3179
  ```
2813
3180
 
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.
3181
+ 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
3182
 
2816
3183
  ### Page Breadcrumbs
2817
3184
 
package/README.md CHANGED
@@ -293,7 +293,7 @@ Button • IconButton • TextButton • Input • Textarea • Checkbox • Rad
293
293
 
294
294
  ### Data Display
295
295
 
296
- Avatar • Chip • Badge • Dot • Tag • Pill • DataRow • ContentRow • SnapshotMetric • EntityHeader • Ownership • OwnerTableHeader • SummaryPreview • Divider • Icon • Keycap • Skeleton
296
+ Avatar • Chip • Badge • Dot • Tag • Pill • DataRow • DataList • ContentRow • Record • SectionEdit • SnapshotMetric • EntityHeader • Ownership • OwnerTableHeader • OwnerRow • SummaryPreview • Divider • Icon • Keycap • Skeleton
297
297
 
298
298
  ### Navigation
299
299
 
@@ -309,7 +309,7 @@ FieldVerification • SectionMarker • SeverityMarker • SeverityCount
309
309
 
310
310
  ### Findings Panel
311
311
 
312
- PanelStatus • PanelSectionHeader • PanelStripButton • FindingRow • FindingCard • FindingOption • ResolvedRow • CommentItem • CommentDate • ChecklistGroup • ChecklistTask
312
+ PanelStatus • PanelSectionHeader • PanelStripButton • FindingRow • FindingCard • FindingOption • ResolvedRow • CommentItem • CommentDate • ChecklistGroup • ChecklistTask • FinalDecision • SummaryPanel • ScoringDetails
313
313
 
314
314
  ### Funding
315
315
 
@@ -485,7 +485,7 @@ See [docs/component-process.md](https://github.com/BubbaCoop/Valiify-dashboard-u
485
485
 
486
486
  ## Status
487
487
 
488
- **0.6.0 (not yet published; npm has 0.5.0)** — 70 components in two themes, Light and Onyx, every one with a visual spec checked in both.
488
+ **0.7.0 (not yet published; npm has 0.5.0)** — 77 components in two themes, Light and Onyx, every one with a visual spec checked in both.
489
489
  **Next:** accessibility remediation (the remaining items are designer-blocked contrast tokens).
490
490
 
491
491
  ## Links