@valiify/dashboard-ui 0.7.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.
- package/CHANGELOG.md +211 -3
- package/COMPONENTS.md +39 -31
- package/README.md +1 -1
- package/class-manifest.json +97 -4
- package/design-methodology/dashboard.md +676 -308
- package/dist/dashboard-ui.css +495 -124
- package/dist/index.css +191 -124
- package/package.json +2 -2
- package/src/components/button.css +11 -10
- package/src/components/checkbox.css +4 -2
- package/src/components/checklist-group.css +9 -2
- package/src/components/composer.css +11 -9
- package/src/components/divider.css +1 -1
- package/src/components/dropdown-field.css +30 -18
- package/src/components/dropdown-menu.css +6 -4
- package/src/components/filter-segment.css +2 -1
- package/src/components/finding-card.css +4 -1
- package/src/components/funding-status.css +3 -2
- package/src/components/funding-total.css +6 -2
- package/src/components/funding-transaction.css +21 -3
- package/src/components/input.css +60 -21
- package/src/components/link.css +6 -2
- package/src/components/loading-indicator.css +5 -5
- package/src/components/menu-item.css +85 -15
- package/src/components/modal.css +2 -2
- package/src/components/navigation-rail.css +12 -2
- package/src/components/pill.css +3 -2
- package/src/components/recipient-input.css +4 -4
- package/src/components/section-marker.css +4 -3
- package/src/components/sensitive-data.css +8 -4
- package/src/components/tabs.css +4 -5
- package/src/components/tag.css +11 -7
- package/src/components/textarea.css +38 -18
- package/src/components/toast.css +12 -9
- package/src/components/tooltip.css +4 -1
- package/src/utility-surface.css +93 -1
- package/types/components.d.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -36,7 +36,215 @@ whole point of tokens. Changing its _name_ is.
|
|
|
36
36
|
When a rename is genuinely needed, ship the new name alongside the old one, note
|
|
37
37
|
the deprecation here, and remove the old name in a later release.
|
|
38
38
|
|
|
39
|
-
## 0.
|
|
39
|
+
## 0.8.0 — 2026-11-30
|
|
40
|
+
|
|
41
|
+
The design methodology rewritten for the review-surface redesign, and the
|
|
42
|
+
library wired to the `/design` pipeline and Val Studio; then (2026-11-30) the
|
|
43
|
+
four field sets' borders and Menu Item's icons, following Figma. No class,
|
|
44
|
+
token or entry point is renamed or removed; two components render differently.
|
|
45
|
+
|
|
46
|
+
### Changed — sizes follow Figma (size audit, 2026-11-30)
|
|
47
|
+
|
|
48
|
+
A second pass compared geometry — heights, padding, gaps, radii, slot and glyph
|
|
49
|
+
sizes — across every variant of every set with what the package renders
|
|
50
|
+
([docs/figma-audit-2026-11-30.md](docs/figma-audit-2026-11-30.md)).
|
|
51
|
+
|
|
52
|
+
**The border rule, library-wide.** Figma draws strokes inside the frame; CSS
|
|
53
|
+
adds the border outside the padding, so every bordered component whose size is
|
|
54
|
+
not pinned rendered 1px per bordered side larger than Figma. Padding is now
|
|
55
|
+
Figma's minus the rendered border on every bordered side, so these render
|
|
56
|
+
exactly Figma's size:
|
|
57
|
+
|
|
58
|
+
| Component | Padding (was → now) | Effect |
|
|
59
|
+
| --- | --- | --- |
|
|
60
|
+
| Button xs…xl | x 6 / 8 / 12 / 16 / 20 → 5 / 7 / 11 / 15 / 19 | 2px narrower — Figma's width |
|
|
61
|
+
| Tag xs / sm / md / lg, label kind | x 6 / 9 / 9 / 10 → 5 / 8 / 8 / 9; label 9 / 8 → 8 / 7 | 2px narrower |
|
|
62
|
+
| Filter Segment | x 8 → 7 on each bordered side | the first segment no longer 1px wider |
|
|
63
|
+
| Nav Badge | x 4 → 3 | 32 wide, as Figma |
|
|
64
|
+
| Tabs chip / segment | x 12 → 11 | as Figma |
|
|
65
|
+
| Input, Search, Dropdown Field, Text Area | x −1 at every size | content 1px nearer the edge, as Figma |
|
|
66
|
+
| Composer, Recipient Input shells | x 16 → 15; 12 / 16 → 11 / 15 | as Figma |
|
|
67
|
+
| Toast | 16 → 15 | Full 110 → **108**, two-line 130 → **128** |
|
|
68
|
+
| Tooltip | 12 / 16 → 11 / 15; the divider takes no height | 146.5 → **144** |
|
|
69
|
+
| Modal; its context box | 32 → 31; 12 → 11 | 320.5 → 317 |
|
|
70
|
+
| Dropdown Menu panel | 4 → 3 | four md rows 122 → **120** |
|
|
71
|
+
| Finding Card, open Checklist Group | 12 → 11, the header overlapping the top border | Figma's 296 / 350 / 258 |
|
|
72
|
+
|
|
73
|
+
**Other drift, now following Figma:**
|
|
74
|
+
|
|
75
|
+
- **Pill** — hugs at **22** (2 + 18 + 2); it was pinned at 17 (item 49, answered).
|
|
76
|
+
- **Link** — every standalone style is **24** tall (2px above and below the 20px line).
|
|
77
|
+
- **Divider, labeled** — a **20px** row (2 + 16 + 2).
|
|
78
|
+
- **Loading Indicator** — MD / LG ring **2.5 / 3px** (were 2.52 / 3.04, traced from the old SVG).
|
|
79
|
+
- **Section Marker** — the mismatch dot is **6px** (a Chip dot SM; was 8).
|
|
80
|
+
- **Menu Item tile** — a **circle** (was a 6px square).
|
|
81
|
+
- **Dropdown Menu footer** — **24** (4 + 16 + 4); 26 was a stale stored height.
|
|
82
|
+
- **Recipient Input** — helper inset **4** (was 16); xl chips **4** apart, rows still 6.
|
|
83
|
+
- **Comment Composer** — helper gap **4** (was 6); **the tags row comes before the body**
|
|
84
|
+
in the shell, as every Figma variant draws it. *Markup change: move
|
|
85
|
+
`.vd-composer-tags` above `.vd-composer-body`* (not done with CSS `order`, which would
|
|
86
|
+
put focus order out of step with what is on screen).
|
|
87
|
+
- **Checklist Group, closed** — no border: 36, not 38.
|
|
88
|
+
- **Funding Transaction — the redraw after 0.7.0 is built.** The status is a marker
|
|
89
|
+
with no word in a 24px slot (review dot · compact check · 14px `#undo-2` in
|
|
90
|
+
`Content/Tertiary` via the new `.vd-funding-transaction-undo` · critical diamond), the
|
|
91
|
+
trailing control a `#chevron-down` Icon Button, and the row 12 + 24 + 12 = 48. *Markup
|
|
92
|
+
change: nest the marker, not `.vd-funding-status`.* The record grid stays (decided).
|
|
93
|
+
- **Funding Total** — the compact check with no word, actions packed to the end.
|
|
94
|
+
- **Funding Status** — the refunded dash slot is 8 × 16. The component still ships, but
|
|
95
|
+
neither funding row nests it now.
|
|
96
|
+
- **Fixed with these**: an lg external Tag rendered 24 (the hug rule outranked `-lg`);
|
|
97
|
+
the rail's title shrank below 46 when the content overflowed; a collapsed sidebar's
|
|
98
|
+
actions carried 4px too much below them and its footer had no gap (both new in Figma).
|
|
99
|
+
|
|
100
|
+
**Kept, by decision**: Owner Row's three status columns stay 236 (Figma now draws
|
|
101
|
+
3 × 100); Funding Transaction keeps the record grid.
|
|
102
|
+
|
|
103
|
+
### Changed — eight values that drifted from Figma (audit, 2026-11-30)
|
|
104
|
+
|
|
105
|
+
Every component was checked against the Figma library: the variables and text
|
|
106
|
+
styles each set binds against what its CSS uses (record:
|
|
107
|
+
[docs/figma-audit-2026-11-30.md](docs/figma-audit-2026-11-30.md)). Where Figma
|
|
108
|
+
had moved since the library last synced, the library follows:
|
|
109
|
+
|
|
110
|
+
| Component | Was | Now |
|
|
111
|
+
| --- | --- | --- |
|
|
112
|
+
| Checkbox label | Supporting/Caption 12/18, an 18px row | **Body/Default 14/20**, a 24px row (2 + 20 + 2) |
|
|
113
|
+
| Sensitive Data value | Supporting/Caption 12/18, a 20px row | **Body/Default 14/20**, masked and revealed alike, a 24px row — what Data Row already set (item 116; Figma's revealed state rebound to match) |
|
|
114
|
+
| Button xs / sm label | Action/Compact Active 12/16/**600** | **Supporting/Caption Strong 12/18/500** (item 28, resolved); Pagination's simple Prev / Next with it |
|
|
115
|
+
| Toast Full title | Body/Dense Strong 13/18 | **Body/Default Strong 14/20** |
|
|
116
|
+
| Toast Simple label | Body/Dense 13/18, pinned 38 | **Body/Default 14/20**, pinned **40** |
|
|
117
|
+
| Dropdown Menu footer | Supporting/Caption 12/18/400 | **Action/Compact 12/16/500**, still 26 tall (padding-y 5) |
|
|
118
|
+
| Field error message (Input, Search, Dropdown, Text Area) | a raw 11px | **Body/Default 14/20**, Critical/Strong |
|
|
119
|
+
| Loading Indicator dots | Secondary/Main | **Content/Secondary** — the same value in both themes; no visible change |
|
|
120
|
+
|
|
121
|
+
- **Heights that change**: Checkbox 18 → 24, standalone Sensitive Data 20 → 24,
|
|
122
|
+
Toast Simple 38 → 40, Toast Full +2, a field's error line 6 + 14 → 6 + 20.
|
|
123
|
+
Button heights do not move (pinned); Data Row's Sensitive Data does not
|
|
124
|
+
(it already had these values).
|
|
125
|
+
- `vd:text-action-compact-active` stays in the closed utility set — the
|
|
126
|
+
methodology's type table now names the new Button style, and Appendix B
|
|
127
|
+
keeps the old one shipping.
|
|
128
|
+
- **Figma descriptions**: 98 Figma components now carry a marked
|
|
129
|
+
`— npm: @valiify/dashboard-ui —` block (the class, its file, the story) and
|
|
130
|
+
a Documentation link to the CSS file; 16 more say they are not in the
|
|
131
|
+
package and why. Designers' own text is untouched. Nothing in the package
|
|
132
|
+
depends on them.
|
|
133
|
+
|
|
134
|
+
### Changed — field borders are 1px (Input, Search, Dropdown, Text Area)
|
|
135
|
+
|
|
136
|
+
Figma moved all four field sets from a 0.5px hairline to a **1px** inside stroke
|
|
137
|
+
in every state, and stepped each colour up, because the half-pixel edge was too
|
|
138
|
+
faint on standard-resolution screens. `.vd-input-field` (and `.vd-input-search`),
|
|
139
|
+
`.vd-dropdown-field` and `.vd-textarea-field` follow:
|
|
140
|
+
|
|
141
|
+
| state | before | after |
|
|
142
|
+
| --- | --- | --- |
|
|
143
|
+
| rest | 0.5px `Stroke/Divider` | 1px `Stroke/Border` |
|
|
144
|
+
| hover | `Stroke/Border` | `Content/Faint` |
|
|
145
|
+
| focus / open | `Primary/Main` | `Primary/Main` (the 2px ring is unchanged) |
|
|
146
|
+
| error | `Critical/Main` | `Critical/Main` |
|
|
147
|
+
| error, hovered or focused | — | `Critical/Strong` on Input Field; `Critical/Main` on the other three |
|
|
148
|
+
| disabled | `Stroke/Divider` (Dropdown: the rest border) | `Stroke/Disabled`, every size and BG |
|
|
149
|
+
| disabled + error | — | `Critical/Main` |
|
|
150
|
+
|
|
151
|
+
- **Nothing moves.** Chrome already drew the 0.5px hairline as a full pixel, the
|
|
152
|
+
three single-line fields pin their height, and Text Area's floor paddings
|
|
153
|
+
already subtracted a rendered 1px. Safari and Firefox on a 2× screen drew a
|
|
154
|
+
true half pixel, so there the edge gets visibly heavier, as intended.
|
|
155
|
+
- **Fixed with it**: a field in error lost its red border on hover (Input, Text
|
|
156
|
+
Area — the hover rule outranked error, as Dropdown Field's did until 0.5.0),
|
|
157
|
+
and a disabled field in error was greyed out (Input, Text Area). Figma keeps
|
|
158
|
+
`Critical/Main` in both.
|
|
159
|
+
- Comment Composer, Recipient Input, dividers, cards and every other hairline
|
|
160
|
+
stay 0.5px — Figma did not change them (designer-list item 114).
|
|
161
|
+
|
|
162
|
+
### Changed — Menu Item draws its own icons
|
|
163
|
+
|
|
164
|
+
The row now sets its icons' size, stroke and colour per menu size, from Figma's
|
|
165
|
+
_Menu Leading (1304:4764) and _Menu Trailing (1304:4844), and these outrank the
|
|
166
|
+
markup's `.vd-icon-size-*`:
|
|
167
|
+
|
|
168
|
+
| slot | sm | md | lg | colour |
|
|
169
|
+
| --- | --- | --- | --- | --- |
|
|
170
|
+
| `.vd-menu-item-icon` | 14px / 1px | 16px / 1.25px | 16px / 1.25px | `Neutral/Main` (was the row's ink) |
|
|
171
|
+
| tile glyph | 12px / 1px | 12px / 1px | 16px / 1.25px (`-tile-lg`) | `Neutral/Main` (was `Primary/Main`) |
|
|
172
|
+
| `.vd-menu-item-chevron`, `-chevron-left` | 14px / 1px | 14px / 1px | 14px / 1px | `Neutral/Main` (was `Content/Secondary`) |
|
|
173
|
+
| `.vd-menu-item-check` | 14px / 1px | 14px / 1px | 14px / 1px | `Primary/Main` |
|
|
174
|
+
| `.vd-menu-item-action` glyph | 14px / 1px | 14px / 1px | 14px / 1px | `Secondary/Main` (Icon Button's) |
|
|
175
|
+
|
|
176
|
+
- Strokes are rendered pixels: `--icon-stroke` is in the sprite's 24-unit
|
|
177
|
+
viewBox, so each value is px × 24 / size. (The library's sprite is not
|
|
178
|
+
Lucide; there is no `absoluteStrokeWidth`.) The icon ramp alone gives 1.25px
|
|
179
|
+
at 14px, so trailing glyphs were 25% heavier than drawn.
|
|
180
|
+
- **Markup that wrote the leading glyph as a bare `.vd-icon`** (our own docs did,
|
|
181
|
+
at 15px) is drawn the same: a `.vd-icon` directly in the row with no trailing
|
|
182
|
+
class is the leading glyph. Its colour has zero specificity, so a call-site
|
|
183
|
+
colour still wins.
|
|
184
|
+
- **The critical tone keeps the icons**; only the title turns `Critical/Main`.
|
|
185
|
+
The documented Delete row used `text-critical` on its icon and title; it is
|
|
186
|
+
now `.vd-menu-item-critical`.
|
|
187
|
+
- The methodology's queue filter menu (§2.2) gains its leading glyphs —
|
|
188
|
+
`#circle-dot`, `#box`, `#calendar`, `#id-card`, `#tag` — from 693:26004, and
|
|
189
|
+
DropdownMenu has a **FilterMenu** story. Contrast of `Neutral/Main` (2.81:1
|
|
190
|
+
on Paper in Light) is designer-list item 112.
|
|
191
|
+
|
|
192
|
+
### Changed — the design methodology (ships in the package)
|
|
193
|
+
|
|
194
|
+
- **`design-methodology/dashboard.md` is v2.0.** v1.0 (2026-09-10) described the
|
|
195
|
+
earlier review shell — a 320 summary rail, an 1100 column, a sub-toolbar of
|
|
196
|
+
filter tags, statuses as an icon plus words. v2.0 describes the redesign that
|
|
197
|
+
0.6.0 and 0.7.0 were built for: the sheet, the 52 header, chip tabs, the 960
|
|
198
|
+
column with a 112 gutter, sections that collapse to a summary line, one status
|
|
199
|
+
column of markers with no words, and the Findings panel. It keeps the §0–§13
|
|
200
|
+
anatomy. New in it: the design principles and the change process (§0.1, §0.2),
|
|
201
|
+
a frame inventory for all five redesigned pages with node ids (§0.5), the
|
|
202
|
+
status-language table (§6.1), the approved / rejected table (§9.2), and a
|
|
203
|
+
component map that gives the Figma node, the package class and the job for
|
|
204
|
+
all 77 components (§10). The queue and CMS shells are carried over unchanged;
|
|
205
|
+
their frames were not redrawn.
|
|
206
|
+
- **Pages built on v1.0 are not broken by it.** The 40 utilities v1.0 cited and
|
|
207
|
+
v2.0 no longer uses are kept in the file's Appendix B so they keep shipping.
|
|
208
|
+
|
|
209
|
+
### Added — utilities in the closed `vd:` set
|
|
210
|
+
|
|
211
|
+
46 utilities, each with its `md:` form (308 → 400 entries in
|
|
212
|
+
`src/utility-surface.css`), all layout for the redesigned shell: `vd:relative`,
|
|
213
|
+
`vd:absolute`, `vd:fixed`, `vd:sticky`, `vd:flex-col`, `vd:shrink-0`,
|
|
214
|
+
`vd:min-w-0`, `vd:min-h-0`, `vd:h-full`, `vd:self-stretch`, `vd:box-content`,
|
|
215
|
+
`vd:overflow-hidden`, `vd:overflow-auto`, `vd:overflow-y-auto`,
|
|
216
|
+
`vd:pointer-events-none`, `vd:max-w-[960px]`, `vd:min-w-[820px]`, `vd:w-12`,
|
|
217
|
+
`vd:w-28`, `vd:w-90`, `vd:min-w-70`, `vd:max-h-80`, the 6px sheet inset
|
|
218
|
+
(`vd:my-1.5`, `vd:mr-1.5`, `vd:ml-1.5`), `vd:ml-auto`, `vd:gap-0.5`, ten
|
|
219
|
+
padding steps, `vd:left-0`, `vd:right-0`, `vd:top-6`, `vd:left-1/2`,
|
|
220
|
+
`vd:-translate-x-1/2`, `vd:z-10`, `vd:z-50`, and `vd:text-body-default` /
|
|
221
|
+
`vd:text-body-default-strong`. None was removed. `./source` consumers compile
|
|
222
|
+
their own utilities and are unaffected.
|
|
223
|
+
|
|
224
|
+
### Added — the `/design` pipeline and Val Studio
|
|
225
|
+
|
|
226
|
+
- `val/config.json` declares a `dashboard` surface (`design.surfaces`): one
|
|
227
|
+
1920 viewport, the region vocabulary of the redesigned shell, a reviewer
|
|
228
|
+
brief schema, and the surface's stop triggers. `npx val-init` generated the
|
|
229
|
+
five `design-*` agents and `/design`. Not in the published package.
|
|
230
|
+
- `val/registry/components.json`: 75 of 78 entries now carry `figmaNodeIds`
|
|
231
|
+
(15 did), with `figmaNames` read from the Figma file's own set names. Card,
|
|
232
|
+
DataList and Record have no component in the file.
|
|
233
|
+
|
|
234
|
+
### Differs from Figma — found while writing v2.0
|
|
235
|
+
|
|
236
|
+
- **Funding Transaction (2016:48814) was redrawn after 0.7.0.** Its status slot
|
|
237
|
+
now holds a marker and no word — the Review dot, a compact check, the
|
|
238
|
+
critical diamond, and a 14px `#undo-2` in `Content/Tertiary` for refunded —
|
|
239
|
+
and the row has a chevron. The library still nests the worded
|
|
240
|
+
`.vd-funding-status` and draws refunded as a dash. The methodology gives the
|
|
241
|
+
interim composition (§12); the component is not changed here.
|
|
242
|
+
- **In Figma, not in the package**: the KYC, Documents, Rules and Activity
|
|
243
|
+
component boards, Empty State (1937:44293), Cell (693:22377) and a Card
|
|
244
|
+
(880:31190) that is not the placeholder `.vd-card`. Listed in the
|
|
245
|
+
methodology's §10 and §13.
|
|
246
|
+
|
|
247
|
+
## 0.7.0 — published
|
|
40
248
|
|
|
41
249
|
What building the Application page on 0.6.0 found: four bugs fixed, fourteen
|
|
42
250
|
places a component differed from the page frames worked through, and seven new
|
|
@@ -259,7 +467,7 @@ verify separately:
|
|
|
259
467
|
Selectable row, Checkbox container, Small nav, Section Marker warning /
|
|
260
468
|
failed.
|
|
261
469
|
|
|
262
|
-
## 0.6.0 —
|
|
470
|
+
## 0.6.0 — published
|
|
263
471
|
|
|
264
472
|
Brings the library up to the Figma file as of 2026-11-19: the Onyx theme, 60
|
|
265
473
|
new colour tokens, and 30 new components for records, findings, funding and
|
|
@@ -489,7 +697,7 @@ or colour; they are under **Breaking**.
|
|
|
489
697
|
themes today; the library follows the label so it stays right if the two ever
|
|
490
698
|
differ. Designer-list item 53.
|
|
491
699
|
|
|
492
|
-
## 0.5.1 —
|
|
700
|
+
## 0.5.1 — published (shipped with 0.6.0)
|
|
493
701
|
|
|
494
702
|
### Added
|
|
495
703
|
|
package/COMPONENTS.md
CHANGED
|
@@ -579,15 +579,15 @@ Dropdown select trigger. Pairs with [DropdownMenu](#dropdownmenu).
|
|
|
579
579
|
|
|
580
580
|
### Composer
|
|
581
581
|
|
|
582
|
-
A comment / note composer: a bordered shell with a growing text body
|
|
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.
|
|
583
583
|
|
|
584
584
|
```html
|
|
585
585
|
<div class="vd-composer">
|
|
586
586
|
<div class="vd-composer-shell">
|
|
587
|
+
<div class="vd-composer-tags"><span class="vd-tag vd-tag-sm">Underwriting</span></div>
|
|
587
588
|
<div class="vd-composer-body vd-composer-rows-3">
|
|
588
589
|
<textarea class="vd-composer-textarea" rows="3" placeholder="Add a comment…" aria-label="Comment"></textarea>
|
|
589
590
|
</div>
|
|
590
|
-
<div class="vd-composer-tags"><span class="vd-tag vd-tag-sm">Underwriting</span></div>
|
|
591
591
|
<div class="vd-composer-footer">
|
|
592
592
|
<div class="vd-composer-actions">
|
|
593
593
|
<button class="vd-icon-button vd-icon-button-sm" aria-label="Attach">
|
|
@@ -774,7 +774,7 @@ Clickable label for categories and filtering. Sizes: `-xs` 20 (denser padding),
|
|
|
774
774
|
|
|
775
775
|
### Pill
|
|
776
776
|
|
|
777
|
-
Compact filter toggle or dropdown trigger. Height:
|
|
777
|
+
Compact filter toggle or dropdown trigger. Height: 22px (2 + the 18px line + 2; it was pinned at 17 before 0.8.0).
|
|
778
778
|
|
|
779
779
|
```html
|
|
780
780
|
<!-- Dropdown trigger (with chevron) -->
|
|
@@ -1766,7 +1766,7 @@ Single row within a dropdown menu. Three min-height floors: `-sm` 24, `-md` 28 (
|
|
|
1766
1766
|
</label>
|
|
1767
1767
|
```
|
|
1768
1768
|
|
|
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>`).
|
|
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.
|
|
1770
1770
|
|
|
1771
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.
|
|
1772
1772
|
|
|
@@ -2826,7 +2826,7 @@ The parts of a record's funding section, new in 0.6.0. They share the record's c
|
|
|
2826
2826
|
|
|
2827
2827
|
### FundingStatus
|
|
2828
2828
|
|
|
2829
|
-
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.
|
|
2830
2830
|
|
|
2831
2831
|
```html
|
|
2832
2832
|
<span class="vd-funding-status vd-funding-status-pending">
|
|
@@ -2845,7 +2845,16 @@ Pending, funded, refunded or failed. The mark is hidden from assistive tech; the
|
|
|
2845
2845
|
|
|
2846
2846
|
### FundingTransaction
|
|
2847
2847
|
|
|
2848
|
-
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.
|
|
2849
2858
|
|
|
2850
2859
|
```html
|
|
2851
2860
|
<div class="vd-funding-transaction">
|
|
@@ -2857,14 +2866,12 @@ One transaction, 48px tall. Refund appears on hover and keyboard focus.
|
|
|
2857
2866
|
<span class="vd-funding-transaction-amount">$300.00</span>
|
|
2858
2867
|
</div>
|
|
2859
2868
|
<div class="vd-funding-transaction-status">
|
|
2860
|
-
<span class="vd-
|
|
2861
|
-
<span class="vd-severity-marker vd-severity-marker-info" aria-hidden="true"></span>Pending
|
|
2862
|
-
</span>
|
|
2869
|
+
<span class="vd-severity-marker vd-severity-marker-review" role="img" aria-label="Pending"></span>
|
|
2863
2870
|
<button class="vd-text-button vd-text-button-text vd-funding-transaction-action">Refund</button>
|
|
2864
2871
|
</div>
|
|
2865
2872
|
<div class="vd-funding-transaction-actions">
|
|
2866
2873
|
<button class="vd-icon-button vd-icon-button-inline" aria-label="Transaction details">
|
|
2867
|
-
<svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#
|
|
2874
|
+
<svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-down" /></svg>
|
|
2868
2875
|
</button>
|
|
2869
2876
|
</div>
|
|
2870
2877
|
</div>
|
|
@@ -2881,8 +2888,9 @@ Add `vd-funding-transaction-refunded` to dim a refunded transaction's amount, an
|
|
|
2881
2888
|
<p class="vd-funding-total-amount">$400.00</p>
|
|
2882
2889
|
</div>
|
|
2883
2890
|
<div class="vd-funding-total-status">
|
|
2884
|
-
<span class="vd-
|
|
2885
|
-
<svg class="vd-icon vd-icon-size-
|
|
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>
|
|
2886
2894
|
</span>
|
|
2887
2895
|
</div>
|
|
2888
2896
|
<div class="vd-funding-total-actions">
|
|
@@ -2944,66 +2952,66 @@ Four groups separated by dividers. A row that opens a submenu carries a trailing
|
|
|
2944
2952
|
```html
|
|
2945
2953
|
<div class="vd-dropdown-menu" role="menu" aria-label="Application actions" style="width: 260px">
|
|
2946
2954
|
<button class="vd-menu-item" role="menuitem">
|
|
2947
|
-
<svg class="vd-icon vd-icon-size-
|
|
2955
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#file-text" /></svg>
|
|
2948
2956
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Create report</span></span>
|
|
2949
2957
|
</button>
|
|
2950
2958
|
<button class="vd-menu-item" role="menuitem">
|
|
2951
|
-
<svg class="vd-icon vd-icon-size-
|
|
2959
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#download" /></svg>
|
|
2952
2960
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Export record</span></span>
|
|
2953
2961
|
</button>
|
|
2954
2962
|
<button class="vd-menu-item" role="menuitem">
|
|
2955
|
-
<svg class="vd-icon vd-icon-size-
|
|
2963
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#link" /></svg>
|
|
2956
2964
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Copy link</span></span>
|
|
2957
2965
|
</button>
|
|
2958
2966
|
<button class="vd-menu-item" role="menuitem">
|
|
2959
|
-
<svg class="vd-icon vd-icon-size-
|
|
2967
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#search" /></svg>
|
|
2960
2968
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Find similar applications</span></span>
|
|
2961
2969
|
</button>
|
|
2962
2970
|
<div class="vd-dropdown-menu-divider"></div>
|
|
2963
2971
|
<button class="vd-menu-item" role="menuitem" aria-haspopup="menu" aria-expanded="false">
|
|
2964
|
-
<svg class="vd-icon vd-icon-size-
|
|
2972
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#pencil" /></svg>
|
|
2965
2973
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Edit application details</span></span>
|
|
2966
2974
|
<svg class="vd-menu-item-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-right" /></svg>
|
|
2967
2975
|
</button>
|
|
2968
2976
|
<div class="vd-dropdown-menu-divider"></div>
|
|
2969
2977
|
<button class="vd-menu-item" role="menuitem">
|
|
2970
|
-
<svg class="vd-icon vd-icon-size-
|
|
2978
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#message-circle" /></svg>
|
|
2971
2979
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Message applicant</span></span>
|
|
2972
2980
|
<svg class="vd-menu-item-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-right" /></svg>
|
|
2973
2981
|
</button>
|
|
2974
2982
|
<button class="vd-menu-item" role="menuitem">
|
|
2975
|
-
<svg class="vd-icon vd-icon-size-
|
|
2983
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#send" /></svg>
|
|
2976
2984
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Request document</span></span>
|
|
2977
2985
|
<svg class="vd-menu-item-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-right" /></svg>
|
|
2978
2986
|
</button>
|
|
2979
2987
|
<button class="vd-menu-item" role="menuitem">
|
|
2980
|
-
<svg class="vd-icon vd-icon-size-
|
|
2988
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#credit-card" /></svg>
|
|
2981
2989
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Add funds</span></span>
|
|
2982
2990
|
</button>
|
|
2983
2991
|
<button class="vd-menu-item" role="menuitem">
|
|
2984
|
-
<svg class="vd-icon vd-icon-size-
|
|
2992
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#users" /></svg>
|
|
2985
2993
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Re-assign application</span></span>
|
|
2986
2994
|
</button>
|
|
2987
2995
|
<button class="vd-menu-item" role="menuitem">
|
|
2988
|
-
<svg class="vd-icon vd-icon-size-
|
|
2996
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#x" /></svg>
|
|
2989
2997
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Withdraw application</span></span>
|
|
2990
2998
|
</button>
|
|
2991
2999
|
<div class="vd-dropdown-menu-divider"></div>
|
|
2992
3000
|
<button class="vd-menu-item" role="menuitem" aria-haspopup="menu" aria-expanded="false">
|
|
2993
|
-
<svg class="vd-icon vd-icon-size-
|
|
3001
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#shield" /></svg>
|
|
2994
3002
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Run KYC</span></span>
|
|
2995
3003
|
<svg class="vd-menu-item-chevron vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-right" /></svg>
|
|
2996
3004
|
</button>
|
|
2997
3005
|
<button class="vd-menu-item" role="menuitem">
|
|
2998
|
-
<svg class="vd-icon vd-icon-size-
|
|
3006
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#building" /></svg>
|
|
2999
3007
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Run KYB</span></span>
|
|
3000
3008
|
</button>
|
|
3001
3009
|
<button class="vd-menu-item" role="menuitem">
|
|
3002
|
-
<svg class="vd-icon vd-icon-size-
|
|
3010
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#activity" /></svg>
|
|
3003
3011
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Run rules</span></span>
|
|
3004
3012
|
</button>
|
|
3005
3013
|
<button class="vd-menu-item" role="menuitem">
|
|
3006
|
-
<svg class="vd-icon vd-icon-size-
|
|
3014
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#credit-card" /></svg>
|
|
3007
3015
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Run BizChex</span></span>
|
|
3008
3016
|
</button>
|
|
3009
3017
|
</div>
|
|
@@ -3018,7 +3026,7 @@ Everyone at once, then one person at a time. The first row shows a count as righ
|
|
|
3018
3026
|
```html
|
|
3019
3027
|
<div class="vd-dropdown-menu" role="menu" aria-label="Run KYC" style="width: 220px">
|
|
3020
3028
|
<button class="vd-menu-item" role="menuitem">
|
|
3021
|
-
<svg class="vd-icon vd-icon-size-
|
|
3029
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#users" /></svg>
|
|
3022
3030
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">All individuals</span></span>
|
|
3023
3031
|
<span class="vd-menu-item-right-text">3</span>
|
|
3024
3032
|
</button>
|
|
@@ -3088,15 +3096,15 @@ Profile, settings, a dark-mode switch, and log out. The switch row is a `<label>
|
|
|
3088
3096
|
```html
|
|
3089
3097
|
<div class="vd-dropdown-menu" role="menu" aria-label="Account" style="width: 220px">
|
|
3090
3098
|
<button class="vd-menu-item" role="menuitem">
|
|
3091
|
-
<svg class="vd-icon vd-icon-size-
|
|
3099
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#users" /></svg>
|
|
3092
3100
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Profile</span></span>
|
|
3093
3101
|
</button>
|
|
3094
3102
|
<button class="vd-menu-item" role="menuitem">
|
|
3095
|
-
<svg class="vd-icon vd-icon-size-
|
|
3103
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#settings" /></svg>
|
|
3096
3104
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Settings</span></span>
|
|
3097
3105
|
</button>
|
|
3098
3106
|
<label class="vd-menu-item">
|
|
3099
|
-
<svg class="vd-icon vd-icon-size-
|
|
3107
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#moon" /></svg>
|
|
3100
3108
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Dark mode</span></span>
|
|
3101
3109
|
<span class="vd-menu-item-switch">
|
|
3102
3110
|
<span class="vd-switch"><input type="checkbox" class="vd-switch-input" role="menuitemcheckbox" id="dark-mode" /></span>
|
|
@@ -3104,7 +3112,7 @@ Profile, settings, a dark-mode switch, and log out. The switch row is a `<label>
|
|
|
3104
3112
|
</label>
|
|
3105
3113
|
<div class="vd-dropdown-menu-divider"></div>
|
|
3106
3114
|
<button class="vd-menu-item" role="menuitem">
|
|
3107
|
-
<svg class="vd-icon vd-icon-size-
|
|
3115
|
+
<svg class="vd-menu-item-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#log-out" /></svg>
|
|
3108
3116
|
<span class="vd-menu-item-text"><span class="vd-menu-item-title">Log out</span></span>
|
|
3109
3117
|
</button>
|
|
3110
3118
|
</div>
|
package/README.md
CHANGED
|
@@ -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.
|
|
488
|
+
**0.8.0** — 77 components in two themes, Light and Onyx, every one with a visual spec checked in both, and checked against the Figma library on 2026-11-30 (tokens, type and sizes; [docs/figma-audit-2026-11-30.md](docs/figma-audit-2026-11-30.md)).
|
|
489
489
|
**Next:** accessibility remediation (the remaining items are designer-blocked contrast tokens).
|
|
490
490
|
|
|
491
491
|
## Links
|