@valiify/dashboard-ui 0.5.1 → 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.
- package/CHANGELOG.md +456 -1
- package/COMPONENTS.md +2117 -704
- package/README.md +40 -7
- package/class-manifest.json +263 -2
- package/dist/dashboard-ui.css +4249 -1469
- package/dist/index.css +4056 -1453
- package/package.json +9 -8
- package/src/components/add-funds-form.css +69 -0
- package/src/components/alert.css +33 -56
- package/src/components/avatar.css +38 -2
- package/src/components/button.css +52 -29
- package/src/components/card.css +1 -1
- package/src/components/checklist-group.css +116 -0
- package/src/components/checklist-task.css +125 -0
- package/src/components/chip.css +145 -0
- package/src/components/comment-date.css +36 -0
- package/src/components/comment-item.css +59 -0
- package/src/components/content-row.css +133 -0
- package/src/components/data-list.css +91 -0
- package/src/components/data-row.css +84 -19
- package/src/components/dropdown-field.css +9 -0
- package/src/components/dropdown-menu.css +6 -2
- package/src/components/entity-header.css +61 -0
- package/src/components/field-verification.css +118 -38
- package/src/components/final-decision.css +51 -0
- package/src/components/finding-card.css +157 -0
- package/src/components/finding-option.css +45 -0
- package/src/components/finding-row.css +45 -0
- package/src/components/funding-status.css +61 -0
- package/src/components/funding-total.css +57 -0
- package/src/components/funding-transaction.css +108 -0
- package/src/components/index.css +36 -0
- package/src/components/inline-confirm.css +42 -0
- package/src/components/input.css +19 -0
- package/src/components/keycap.css +27 -0
- package/src/components/menu-item.css +38 -10
- package/src/components/modal.css +29 -2
- package/src/components/navigation-rail.css +322 -2
- package/src/components/overlay-scrim.css +26 -0
- package/src/components/owner-row.css +170 -0
- package/src/components/owner-table-header.css +57 -0
- package/src/components/ownership.css +73 -0
- package/src/components/panel-section-header.css +56 -0
- package/src/components/panel-status.css +23 -0
- package/src/components/panel-strip-button.css +31 -0
- package/src/components/progress-circle.css +89 -0
- package/src/components/radio-select.css +5 -2
- package/src/components/record.css +56 -0
- package/src/components/resize-handle.css +131 -0
- package/src/components/resolved-row.css +50 -0
- package/src/components/scoring-details.css +79 -0
- package/src/components/scrollbar.css +47 -0
- package/src/components/section-edit.css +109 -0
- package/src/components/severity-count.css +63 -0
- package/src/components/severity-marker.css +66 -0
- package/src/components/snapshot-metric.css +72 -0
- package/src/components/step.css +1 -1
- package/src/components/summary-panel.css +250 -0
- package/src/components/summary-preview.css +76 -0
- package/src/components/switch.css +10 -1
- package/src/components/tabs.css +3 -2
- package/src/components/tag.css +24 -2
- package/src/components/textarea.css +4 -0
- package/src/components/toast.css +10 -6
- package/src/components/tooltip.css +14 -8
- package/src/themes/valiify-tokens.css +241 -7
- package/src/themes/valiify.css +244 -7
- package/types/components.d.ts +386 -9
package/CHANGELOG.md
CHANGED
|
@@ -22,6 +22,8 @@ change quietly:
|
|
|
22
22
|
`./fonts`, `./icons/sprite.svg`, `./manifest`, `./types`.
|
|
23
23
|
4. **Custom utilities** — `focus-ring` (the six `type-label-*` were removed in
|
|
24
24
|
0.5.0). Unprefixed on `./source`; on `./styles.css` spelled `vd:focus-ring`.
|
|
25
|
+
5. **The theme attribute** — `data-theme="onyx"` (0.6.0). Light is the absence
|
|
26
|
+
of the attribute.
|
|
25
27
|
|
|
26
28
|
**Token names are part of the public API. Renaming or removing one is a breaking
|
|
27
29
|
change**, even though the value lives in a generated file. Downstream apps write
|
|
@@ -34,7 +36,460 @@ whole point of tokens. Changing its _name_ is.
|
|
|
34
36
|
When a rename is genuinely needed, ship the new name alongside the old one, note
|
|
35
37
|
the deprecation here, and remove the old name in a later release.
|
|
36
38
|
|
|
37
|
-
## 0.
|
|
39
|
+
## 0.7.0 — unreleased
|
|
40
|
+
|
|
41
|
+
What building the Application page on 0.6.0 found: four bugs fixed, fourteen
|
|
42
|
+
places a component differed from the page frames worked through, and seven new
|
|
43
|
+
components — 77 in all. Not published. Five existing components look or measure
|
|
44
|
+
differently; they are under **Breaking**, and they are why this is 0.7.0 and
|
|
45
|
+
not a 0.6.1 patch.
|
|
46
|
+
|
|
47
|
+
### Breaking
|
|
48
|
+
|
|
49
|
+
- **RadioSelect is 22px tall; it was 18.** Figma's Radio frame is 2 + 18 + 2,
|
|
50
|
+
and the row now carries those 2px (`py-0.5`). A stack of radios is 4px taller
|
|
51
|
+
per row. FindingOption is still 40px: its box and the radio are one element,
|
|
52
|
+
so it keeps 10px of padding on a selector that outranks RadioSelect's.
|
|
53
|
+
- **A selected MenuItem is marked by its check alone.** Through 0.6.0 a row
|
|
54
|
+
with `aria-selected="true"` or `aria-checked="true"` turned `Primary/Main`
|
|
55
|
+
whole. Figma's set has no selected state, and its menus mark the selected row
|
|
56
|
+
with a `Primary/Main` check on an ordinary row, so:
|
|
57
|
+
- the row keeps its normal ink;
|
|
58
|
+
- `.vd-menu-item-check` is `Primary/Main` by itself (it inherited the row's
|
|
59
|
+
colour before);
|
|
60
|
+
- **a selected row with no check now shows nothing.** Add
|
|
61
|
+
`<svg class="vd-menu-item-check vd-icon vd-icon-size-14">` to it. A bare
|
|
62
|
+
`#check` icon without the class still shows, in the row's ink.
|
|
63
|
+
- `.vd-menu-item-right-text` is `Content/Primary` (was `Primary/Main`).
|
|
64
|
+
- **ContentRow's text wraps.** It truncated to one line; Figma's text layer has
|
|
65
|
+
no truncation and the Application page's BSA summary runs to two. A row with
|
|
66
|
+
a long summary is now 64px, not 48.
|
|
67
|
+
- **OwnerTableHeader is redrawn: a flexible Owner column, then three 78⅔px
|
|
68
|
+
status columns, then 36px of right padding.** It had a fixed 536px first
|
|
69
|
+
cell and three of 94px with 16px gaps — 874px of columns, which ran 46px past
|
|
70
|
+
the Application page's 828px row. Now the Owner label takes the free width,
|
|
71
|
+
the status labels are equal thirds of a fixed 236px, and the right padding
|
|
72
|
+
covers the rows' chevron slot, so a label starts where its column does. In an
|
|
73
|
+
828px row the labels move from x 556 / 666 / 776 to 556 / 634⅔ / 713⅓.
|
|
74
|
+
`.vd-owner-table-header-cell-main` still exists and no longer sets a width.
|
|
75
|
+
- **PanelSectionHeader's closed chevron turns 180°, not −90°.** The glyph Figma
|
|
76
|
+
nests is `#chevron-up`, and the documented snippet now uses it. Markup that
|
|
77
|
+
kept the 0.6.0 snippet's `#chevron-down` points up when closed and down when
|
|
78
|
+
open: swap the glyph.
|
|
79
|
+
|
|
80
|
+
### Changed — a token value
|
|
81
|
+
|
|
82
|
+
- **Light `Content/Tertiary` is `#6a6a78`; it was `#727280`.** Figma darkened it
|
|
83
|
+
on 2026-11-19. The name is unchanged (`--color-content-tertiary`,
|
|
84
|
+
`text-content-tertiary`), so nothing breaks; every label, placeholder and
|
|
85
|
+
meta line that uses it is a little darker in Light. Onyx is unchanged. It now
|
|
86
|
+
passes 4.5:1 at rest on all four surfaces (5.32 Paper, 5.10 Card, 4.72
|
|
87
|
+
Neutral, 4.78 Frame; it was 4.20 and 4.26 on the last two), which was the
|
|
88
|
+
pair behind most of the Light accessibility findings.
|
|
89
|
+
- **Two 0.6.0 workarounds are reverted to what Figma binds**, because they pass
|
|
90
|
+
again: the meta line in ChecklistGroup's sign-off record and in FindingCard's
|
|
91
|
+
decision box is `Content/Tertiary` (it shipped `Content/Secondary`).
|
|
92
|
+
- **Three stay**, because the token still falls under 4.5 on an interaction
|
|
93
|
+
fill over `Surface/Frame`: chip and segment tabs' rest ink, the Tag count, and
|
|
94
|
+
MenuItem's subtitle and meta (4.37 on a hovered critical row in Onyx).
|
|
95
|
+
|
|
96
|
+
### Fixed
|
|
97
|
+
|
|
98
|
+
- **A closed `<dialog class="vd-modal">` was visible.** `.vd-modal` sets
|
|
99
|
+
`display: flex`, which outranks the browser's `dialog:not([open])` rule, so
|
|
100
|
+
the dialog rendered on the page at 480×90 before it was opened.
|
|
101
|
+
`dialog.vd-modal:not([open])` is now `display: none`.
|
|
102
|
+
- **An open Modal dialog sat in the top-left corner on `.` and `./source`.**
|
|
103
|
+
Preflight zeroes the dialog's `margin: auto`. `dialog.vd-modal` restores it.
|
|
104
|
+
(`./styles.css` with `./reset.css` was already right; `verify:reset`'s one
|
|
105
|
+
known divergence was this and is gone.)
|
|
106
|
+
- **DropdownMenu did not stretch a wrapper inside it.** The panel was
|
|
107
|
+
`items-start`, so a `role="listbox"` group or a submenu anchor hugged its
|
|
108
|
+
rows: the Assign recipe's check sat beside the name and hover fills stopped
|
|
109
|
+
short. The panel is `items-stretch`.
|
|
110
|
+
- **A long nav session status squeezed its dot and never truncated.**
|
|
111
|
+
`.vd-nav-session-status` was a flex row, which cannot ellipsize its own text.
|
|
112
|
+
It is a block that truncates, with the dot inline before the text.
|
|
113
|
+
- **OwnerTableHeader's documented roles failed axe.** `role="row"` and
|
|
114
|
+
`columnheader` need a `role="table"` parent; the snippets now have one.
|
|
115
|
+
- **Compact FieldVerification labels gave the page phantom scroll height.** The
|
|
116
|
+
visually hidden label is absolutely positioned and had no positioned ancestor
|
|
117
|
+
nearer than the page shell, so in a long scrolling record every one of them
|
|
118
|
+
sat in the shell's overflow (2,503px in a 1,080px shell on the Application
|
|
119
|
+
page) and `scrollIntoView` scrolled the whole app.
|
|
120
|
+
`.vd-field-verification-compact` is `position: relative`, as are the
|
|
121
|
+
Navigation Rail parts that hide text when collapsed.
|
|
122
|
+
|
|
123
|
+
### Added — components
|
|
124
|
+
|
|
125
|
+
- **OwnerRow** — one owner in the Ownership list: a square Avatar or an entity
|
|
126
|
+
tile, name and role, a status per check, and a chevron that expands the row.
|
|
127
|
+
64px. The three status columns are equal thirds of a fixed 236px, the chevron
|
|
128
|
+
has its own slot 14px after them, and the owner column takes what is left —
|
|
129
|
+
the same columns as OwnerTableHeader. In the Application page's 828px row the
|
|
130
|
+
first status sits on the record's own status column (x 556). `.vd-owner-row-linked` marks the owner
|
|
131
|
+
a finding points at. The chevron is its only control: ownership is edited
|
|
132
|
+
from the Ownership section's line, not per owner (decided 2026-11-19; the
|
|
133
|
+
Figma sets were redrawn to match the same day).
|
|
134
|
+
- **`.vd-severity-count-flush`** — a SeverityCount with no left padding, for a
|
|
135
|
+
count in a row's status column, so its marker starts at the column's edge
|
|
136
|
+
(the page frames' instance override). Used in ContentRow's status slot and
|
|
137
|
+
OwnerRow's status cells. `.vd-content-row-status` is a flex box now, so a
|
|
138
|
+
wrapper holding the count keeps the row at 48px (it came out 50.5).
|
|
139
|
+
- **Record** — `.vd-record`, the column grid a record's rows share. Inside one
|
|
140
|
+
the 536px text column gives way on a narrow page (status column first, to
|
|
141
|
+
88px) and every row's status stays in line. ContentRow, DataRow,
|
|
142
|
+
FundingTransaction and FundingTotal read it. (The owner list does not: it
|
|
143
|
+
keeps its status columns fixed and flexes the owner column.)
|
|
144
|
+
Outside one nothing changes.
|
|
145
|
+
- **DataList** — the fields under an expanded row, with a header (a title and
|
|
146
|
+
one action, 32px) and a group heading (a glyph and a title, 36px).
|
|
147
|
+
- **SectionEdit** — a record section in edit mode: the bordered box, named
|
|
148
|
+
groups of fields, and a footer with the reason, a note, Cancel and Save. It
|
|
149
|
+
replaces the 0.6.0 recipe, which had no box.
|
|
150
|
+
- **FinalDecision** — the last line of the checklist: what unlocks the
|
|
151
|
+
decision. 52px.
|
|
152
|
+
- **SummaryPanel** — the body of the panel's Summary tab: label / value rows
|
|
153
|
+
(one of which can be a control), tags, a risk score with a segmented bar, a
|
|
154
|
+
summary of open findings, products.
|
|
155
|
+
- **ScoringDetails** — the rules behind a risk score, behind a disclosure.
|
|
156
|
+
|
|
157
|
+
### Changed — FindingCard follows Figma's update
|
|
158
|
+
|
|
159
|
+
Figma's Finding Card now nests real components for its fields (it drew raw
|
|
160
|
+
frames), and the library's parts and snippets follow:
|
|
161
|
+
|
|
162
|
+
- **Requesting**: Document and From are two small DropdownFields with their own
|
|
163
|
+
labels, side by side 8px apart, in the new `.vd-finding-card-fields`. The
|
|
164
|
+
0.6.0 snippet had one large select under a `.vd-finding-card-field-label`;
|
|
165
|
+
that class still works and is no longer part of the design.
|
|
166
|
+
- **The note** is a small Textarea with the new `.vd-finding-card-note`, which
|
|
167
|
+
holds it at 80px (`--height-textarea-sm`) and makes the `<textarea>` fill it.
|
|
168
|
+
- **Choosing** shows the same note, "Add a note (required)".
|
|
169
|
+
- The card is 298px choosing and 352px requesting: Figma's 296 and 350 plus the
|
|
170
|
+
2px of a real border. FindingOption rows are 40px, 6px apart, as before.
|
|
171
|
+
|
|
172
|
+
### Added — to existing components
|
|
173
|
+
|
|
174
|
+
- **Button**: `aria-disabled="true"` is styled as `:disabled` on every
|
|
175
|
+
display, for an action that is unavailable but must stay focusable.
|
|
176
|
+
`.vd-btn-blocked` is the neutral "cannot run yet" look.
|
|
177
|
+
- **MenuItem**: a row whose submenu is open (`aria-expanded="true"`) keeps the
|
|
178
|
+
hover fill, and `:active` takes it too.
|
|
179
|
+
- **ContentRow**: `.vd-content-row-linked`; an expanded row keeps its hover
|
|
180
|
+
actions visible.
|
|
181
|
+
- **DataRow**: `.vd-data-row-previous`, the value a field held before an edit.
|
|
182
|
+
- **NavigationRail**: `.vd-nav-section-header` and `-action` (a group label
|
|
183
|
+
with an action at its far end); `aria-current` on a `.vd-nav-session` (the
|
|
184
|
+
open session); `.vd-nav-user-collapsed` (the account control in the 60px
|
|
185
|
+
rail); `.vd-nav-rail-sidebar` and `.vd-nav-rail-actions` (the Nav Sidebar
|
|
186
|
+
set's spacing: 8px above each group instead of 20px between them).
|
|
187
|
+
- **SummaryPreview**: `--vd-summary-preview-width` (140px by default).
|
|
188
|
+
|
|
189
|
+
### Changed
|
|
190
|
+
|
|
191
|
+
- **FundingTransaction**: the amount is right-aligned and the 78px action
|
|
192
|
+
group packs to the row's right edge, as Figma sets both.
|
|
193
|
+
- **FindingCard** footer and **AddFundsForm** actions are right-aligned.
|
|
194
|
+
- **Field widths read `--vd-record-text`**: ContentRow's text, DataRow's value,
|
|
195
|
+
FundingTransaction's and FundingTotal's summary. Their default is the same
|
|
196
|
+
536px (320 for DataRow's value).
|
|
197
|
+
|
|
198
|
+
### Differs from Figma
|
|
199
|
+
|
|
200
|
+
Each has a designer-list entry (items 96 to 111).
|
|
201
|
+
|
|
202
|
+
- **OwnerRow and OwnerTableHeader follow the redrawn sets** (item 100): no
|
|
203
|
+
difference in the columns, the chevron slot, the square Avatar or the flush
|
|
204
|
+
Severity Count. The owner list stays off the Record grid by decision: at a
|
|
205
|
+
narrow width it keeps its own columns under its own header.
|
|
206
|
+
- **The open nav session's status is `Content/Secondary`**; Figma keeps
|
|
207
|
+
`Content/Tertiary`, 4.10:1 on the selected fill even with the new token
|
|
208
|
+
(item 104).
|
|
209
|
+
- **FindingCard's note keeps Textarea's own padding** (8 / 2); Figma's Text
|
|
210
|
+
Area set now draws 12 / 10 and fixed heights at every size, which the
|
|
211
|
+
library's Textarea has not taken — a future decision, since it would resize
|
|
212
|
+
every Textarea (item 110). The card's button is Button md, which is correct.
|
|
213
|
+
- **`Content/Tertiary` stays `#6a6a78`, and four components keep
|
|
214
|
+
`Content/Secondary` where it would fall under 4.5:1 on a hover or selected
|
|
215
|
+
fill**: the open nav session's status, chip and segment tabs, the Tag count
|
|
216
|
+
and MenuItem's subtitle (item 111, closed as decided).
|
|
217
|
+
- **Library decisions where Figma draws nothing**: Linked on ContentRow and
|
|
218
|
+
OwnerRow (98), how a record's columns give way (99), the blocked Button as a
|
|
219
|
+
class (96), the ScoringDetails glyph and its turn (101), hover and focus on
|
|
220
|
+
the Nav Section Header action and the SummaryPanel assignee row.
|
|
221
|
+
- **Raw type shipped as the nearest style** in SectionEdit (102), and one
|
|
222
|
+
section-title style in SummaryPanel where Figma binds two (103).
|
|
223
|
+
|
|
224
|
+
### Development dependencies (nothing in the published package changes)
|
|
225
|
+
|
|
226
|
+
- **Storybook 10.5.10 → 10.6.7** (`storybook` and the four `@storybook/*`
|
|
227
|
+
packages together) and **Vite 8.2.2 → 8.3.8**, from `npm audit fix` without
|
|
228
|
+
`--force`. That clears the critical Storybook advisories (GHSA-f2ph-cmg5-wxc8,
|
|
229
|
+
GHSA-px85-f4q5-jh77) and the high Vite ones.
|
|
230
|
+
- **Chromatic CLI 18.7.2 → 18.15.1** and **`chromaui/action` v13 → v18** in
|
|
231
|
+
`.github/workflows/chromatic.yml`. The action now runs on Node 24 (v13 was
|
|
232
|
+
Node 20); every input the workflow passes still exists.
|
|
233
|
+
- `npm audit fix` in `examples/daisyui-starter` and `examples/sveltekit-starter`
|
|
234
|
+
(lockfiles only).
|
|
235
|
+
- **Not forced in 0.7.0** (decided 2026-11-19): the three advisories whose
|
|
236
|
+
fix is `npm audit fix --force`. They are listed under **Follow-ups** below.
|
|
237
|
+
|
|
238
|
+
### Follow-ups — audit fixes that need a major upgrade
|
|
239
|
+
|
|
240
|
+
None of these is in the published package; all three are development or
|
|
241
|
+
example-host dependencies. Each is a breaking upgrade of its own, to do and
|
|
242
|
+
verify separately:
|
|
243
|
+
|
|
244
|
+
1. **`@storybook/addon-mcp` 0.7.0 → 10.6.7** (root). Clears three moderate
|
|
245
|
+
`valibot` advisories (GHSA-5qjj-4xww-7phc, through `@storybook/mcp`). The
|
|
246
|
+
new line adds a peer on `@storybook/addon-vitest`.
|
|
247
|
+
2. **Vite 5 → 8 in `examples/daisyui-starter`.** Clears `vite` (high) and
|
|
248
|
+
`esbuild` (moderate). The example pins Tailwind 3 and daisyUI 4 on purpose;
|
|
249
|
+
re-run its 54 checks after the move.
|
|
250
|
+
3. **SvelteKit 2 → 3 in `examples/sveltekit-starter`.** Clears `@sveltejs/kit`
|
|
251
|
+
(high) and `cookie` (low). Re-run its 6 checks, including the documented
|
|
252
|
+
scoped-style loss.
|
|
253
|
+
|
|
254
|
+
### Not in 0.7.0
|
|
255
|
+
|
|
256
|
+
- SummaryPanel does not include the Summary symbol's own tab row, its collapsed
|
|
257
|
+
strip or its "Review Checklist" bar (the legacy Checklist).
|
|
258
|
+
- Still not shipped from 0.6.0's list: Empty State, the real Card, Cell,
|
|
259
|
+
Selectable row, Checkbox container, Small nav, Section Marker warning /
|
|
260
|
+
failed.
|
|
261
|
+
|
|
262
|
+
## 0.6.0 — unreleased
|
|
263
|
+
|
|
264
|
+
Brings the library up to the Figma file as of 2026-11-19: the Onyx theme, 60
|
|
265
|
+
new colour tokens, and 30 new components for records, findings, funding and
|
|
266
|
+
navigation — 70 in all. Not published. Three existing components changed size
|
|
267
|
+
or colour; they are under **Breaking**.
|
|
268
|
+
|
|
269
|
+
### Breaking
|
|
270
|
+
|
|
271
|
+
- **DataRow is 44px tall (46 with a SensitiveData value); it was 38.** Figma
|
|
272
|
+
redrew the row: padding 4 / 11 around 22px slots, top-aligned and no longer
|
|
273
|
+
pinned, so a taller slot grows the row. Also:
|
|
274
|
+
- the value column is **320px** (was 400) and its text is `Body/Default`
|
|
275
|
+
14/20 (was 13/18); a SensitiveData value inside a row is 14px too;
|
|
276
|
+
- the status slot takes the new **compact** FieldVerification
|
|
277
|
+
(`.vd-field-verification-compact`, 22px, the marker alone). The inline row
|
|
278
|
+
with its label still works and makes the DataRow 46;
|
|
279
|
+
- trailing actions go in a new `.vd-data-row-actions` group (right-aligned,
|
|
280
|
+
12px gap). A lone `.vd-data-row-action` as a direct child still works.
|
|
281
|
+
Layouts that stack DataRows grow by 6px a row.
|
|
282
|
+
- **Alert lost its left rail and is 2px taller.** Figma removed the 3px rail
|
|
283
|
+
from all five types and moved the title to `Body/Default Strong` (14/20, was
|
|
284
|
+
13/18): an alert is now a tinted box with an icon, 100px tall with a title,
|
|
285
|
+
message and action (was 98), and its content sits 3px further left. The
|
|
286
|
+
warning icon is `Warning/Strong` (was `Warning/Main`). No markup changes.
|
|
287
|
+
- **A disabled Avatar is grey in both themes** — an `Action/Selected` fill
|
|
288
|
+
with `Content/Tertiary` initials. It was a pale primary fill under white
|
|
289
|
+
initials (2.03:1 in Light), so **Light changes too**.
|
|
290
|
+
- **A FieldVerification mismatch is amber, not red.** Figma re-toned
|
|
291
|
+
`.vd-field-verification-mismatch` from `Critical/Main` to `Warning/Content`;
|
|
292
|
+
its detail line is `Body/Default` 14px (was mono 12px), and an expanded
|
|
293
|
+
title is `Body/Default Strong`. The inline rows also gained 4px of left
|
|
294
|
+
padding and a 12px marker-to-label gap (was 7), and the verified label is
|
|
295
|
+
`Content/Secondary` (was Tertiary). For a red, blocking finding use the new
|
|
296
|
+
`.vd-field-verification-critical`.
|
|
297
|
+
- **The Modal backdrop is lighter in Light** (28%, was an invented 40%); see
|
|
298
|
+
Changed.
|
|
299
|
+
|
|
300
|
+
### Added — the Onyx theme
|
|
301
|
+
|
|
302
|
+
- **A second theme.** Figma's Valiify collection has two modes, Light and Onyx,
|
|
303
|
+
and both ship. Light is unchanged and still needs nothing. Onyx is one
|
|
304
|
+
attribute:
|
|
305
|
+
|
|
306
|
+
```html
|
|
307
|
+
<html data-theme="onyx">
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
It overrides all 108 colour tokens (and `--ring-focus-color`, which is
|
|
311
|
+
Primary/Main), so components, token utilities and the `vd:` utilities follow.
|
|
312
|
+
It works on a subtree too; give that element its own background and text
|
|
313
|
+
colour, since `color` is inherited from outside it. Radii, widths, heights,
|
|
314
|
+
type and shadows are the same in both themes. The block also sets
|
|
315
|
+
`color-scheme: dark`, a library decision, so native scrollbars and form
|
|
316
|
+
internals go dark with it. On `./styles.css` the host still owns the page
|
|
317
|
+
background, as in Light.
|
|
318
|
+
- **In every entry point**, including the prebuilt bundle, which defines each
|
|
319
|
+
token twice (`--color-*` for components, `--vd-color-*` for the `vd:`
|
|
320
|
+
utilities) and so carries the Onyx block under both spellings.
|
|
321
|
+
- **`npm run verify:theme`** (in CI) measures the switch in Chromium: every
|
|
322
|
+
colour, in Light, in Onyx on `<html>` and in Onyx on a subtree, in
|
|
323
|
+
`dist/index.css` and in the bundle under both spellings. Two canaries: with the
|
|
324
|
+
Onyx blocks deleted it reports all 109 tokens; with only the bundle's prefixed
|
|
325
|
+
block deleted, the unprefixed tokens still pass and all 109 prefixed ones fail.
|
|
326
|
+
- **`--theme onyx`** on `verify:visual` and `verify:a11y`, and a theme switch in
|
|
327
|
+
the Storybook toolbar. The visual specs need no second copy: a colour asserted
|
|
328
|
+
by token resolves under whichever theme is active.
|
|
329
|
+
|
|
330
|
+
### Added — tokens
|
|
331
|
+
|
|
332
|
+
- **60 colour tokens**, 48 → 108, each with a Light and an Onyx value:
|
|
333
|
+
- **The misc palette**, 18 hues × `dot` / `soft` / `text`:
|
|
334
|
+
`--color-misc-<hue>-dot`, `-soft`, `-text` for blue, indigo, violet, purple,
|
|
335
|
+
pink, rose, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky,
|
|
336
|
+
slate and stone. Categorical colour, not status. (`--color-misc-purple`, the
|
|
337
|
+
older one-off, is unchanged and is a different purple from
|
|
338
|
+
`--color-misc-purple-dot`.)
|
|
339
|
+
- **`--color-inverse-surface` / `-content` / `-muted`**, the bubble that
|
|
340
|
+
contrasts with the page in both themes.
|
|
341
|
+
- **`--color-overlay-scrim` / `-scrollbar`**.
|
|
342
|
+
- **`--color-control-knob`**, the Switch knob: white in Light, #dadadf in
|
|
343
|
+
Onyx.
|
|
344
|
+
- **`--color-misc-purple` is deprecated** — Figma's `misc/Purple` now says "use
|
|
345
|
+
Misc/Purple/Dot", so use `--color-misc-purple-dot`. The token stays for now
|
|
346
|
+
and is marked deprecated in the generated theme; it will be removed in a
|
|
347
|
+
later release, with notice here.
|
|
348
|
+
- **`--height-textarea-xs` … `-xl`** (64 / 80 / 96 / 120 / 160), Figma's drawn
|
|
349
|
+
Text Area heights. Tokens only: `.vd-textarea-*` is unchanged and still floors
|
|
350
|
+
on the control heights.
|
|
351
|
+
- The generator fails when a colour has a Light value and no Onyx value (or the
|
|
352
|
+
reverse), when a colour's group is missing from the emit order, and when two
|
|
353
|
+
Figma names map to one custom property.
|
|
354
|
+
|
|
355
|
+
### Added — components and variants
|
|
356
|
+
|
|
357
|
+
- **Funding parts**: **FundingStatus** (`.vd-funding-status` + `-pending` /
|
|
358
|
+
`-funded` / `-refunded` / `-failed`), **FundingTransaction**,
|
|
359
|
+
**FundingTotal**, **AddFundsForm** and **InlineConfirm**.
|
|
360
|
+
- **NavigationRail sidebar parts**: `.vd-nav-split` (a neutral split button),
|
|
361
|
+
`.vd-nav-jump`, `.vd-nav-session` (+ `-collapsed`, `-dot`) and `.vd-nav-user`.
|
|
362
|
+
- **Recipes in COMPONENTS.md** (no new classes): the Application actions menu,
|
|
363
|
+
the Run KYC submenu, the Assign menu with search, the Account menu, Section
|
|
364
|
+
Edit and Page Breadcrumbs.
|
|
365
|
+
- **Findings panel parts** (the panel itself is a composition, not a class):
|
|
366
|
+
**PanelStatus**, **PanelSectionHeader**, **PanelStripButton**,
|
|
367
|
+
**FindingRow**, **FindingCard** (choosing / requesting / requested as
|
|
368
|
+
compositions of its parts), **FindingOption** (additive on a RadioSelect
|
|
369
|
+
label), **ResolvedRow**, **CommentItem**, **CommentDate**, **ChecklistGroup**
|
|
370
|
+
and **ChecklistTask**. The older Checklist + Checklist Item pair in Figma is
|
|
371
|
+
not shipped.
|
|
372
|
+
- **Record parts**: **ContentRow** (`.vd-content-row`, a collapsed section line
|
|
373
|
+
with hover tools and a disclosure chevron), **SummaryPreview**
|
|
374
|
+
(`.vd-summary-preview`, the gutter label with a comment count),
|
|
375
|
+
**SnapshotMetric** (`.vd-snapshot-metric`), **EntityHeader**
|
|
376
|
+
(`.vd-entity-header`), **Ownership** (`.vd-ownership`, a ProgressBar
|
|
377
|
+
modifier with a summary line) and **OwnerTableHeader**
|
|
378
|
+
(`.vd-owner-table-header`).
|
|
379
|
+
- **SeverityMarker** (`.vd-severity-marker` + `-critical` / `-review` / `-info`)
|
|
380
|
+
— a diamond, a dot and a ring: the severity of a finding as a shape, so it
|
|
381
|
+
reads without colour. One element, 16px.
|
|
382
|
+
- **SeverityCount** (`.vd-severity-count`) — a marker plus a count, as a button.
|
|
383
|
+
- **ProgressCircle** (`.vd-progress-circle`, `-xs` … `-lg`,
|
|
384
|
+
`.vd-progress-circle-complete`) — a determinate ring driven by a `--progress`
|
|
385
|
+
custom property, 0–100.
|
|
386
|
+
- **Keycap** (`.vd-keycap`) — a keyboard-shortcut hint for a `<kbd>`.
|
|
387
|
+
- **Scrollbar** (`.vd-scrollbar`) — a 6px overlay-style scrollbar for any
|
|
388
|
+
scroll container.
|
|
389
|
+
- **OverlayScrim** (`.vd-overlay-scrim`) — the backdrop behind a peeking rail
|
|
390
|
+
or a custom overlay.
|
|
391
|
+
- **ResizeHandle** (`.vd-resize-handle`, `-knob`, `-readout`,
|
|
392
|
+
`.vd-resize-handle-dragging`) — the grip on a resizable panel edge, from
|
|
393
|
+
Figma's Resize Handle: nothing at rest, a 12×20 knob on hover or focus, and
|
|
394
|
+
the panel's width while dragging. A `role="separator"`; the dragging is your
|
|
395
|
+
JavaScript (the OnAPanel story has it).
|
|
396
|
+
- **The misc palette on Chip, Badge and Dot** — `.vd-chip-misc`,
|
|
397
|
+
`.vd-badge-misc`, `.vd-dot-misc` plus one hue class, `.vd-misc-blue` …
|
|
398
|
+
`.vd-misc-stone` (18). For categorical colour, not status. Also
|
|
399
|
+
`.vd-dot-info`.
|
|
400
|
+
- **Tag `.vd-tag-label`** — a boxed tag with a coloured group dot (the dot is a
|
|
401
|
+
Dot: channel = info, entity = misc purple, source = misc teal, status =
|
|
402
|
+
neutral). One size, 22px.
|
|
403
|
+
- **Avatar `.vd-avatar-square`** — Figma's Shape axis. Square for applicants and
|
|
404
|
+
owners; the radius steps with the size (3 / 4 / 5 / 7 / 8).
|
|
405
|
+
- **MenuItem `.vd-menu-item-switch`** — a trailing Switch. The row is a
|
|
406
|
+
`<label>` wrapping the switch's input.
|
|
407
|
+
- **NavigationRail**: `.vd-nav-rail-peek` (the rail floated over the page, with
|
|
408
|
+
the new `--shadow-peek`), a `hidden` guard so the attribute works without
|
|
409
|
+
Preflight, and `.vd-nav-item-status-critical`.
|
|
410
|
+
- **DataRow `.vd-data-row-linked`** (a 2px primary stroke on the left edge of
|
|
411
|
+
the row tied to an open finding; no fill) and **`.vd-data-row-actions`**;
|
|
412
|
+
**FieldVerification `.vd-field-verification-compact`**.
|
|
413
|
+
- **FieldVerification findings**: `.vd-field-verification-warning` and
|
|
414
|
+
`-critical` (a title and a reason beside a SeverityMarker), `-resolved`,
|
|
415
|
+
and the parts `.vd-field-verification-mark` and `-meta`. The Resolve and Link
|
|
416
|
+
actions Figma draws are not shipped: a field-level alert says what and why,
|
|
417
|
+
and acting on it happens in the findings panel.
|
|
418
|
+
- **A 3px active halo on fields.** A focused Input or Textarea and an open or
|
|
419
|
+
focused DropdownField draw a `Primary/Soft` halo, as Figma's active state
|
|
420
|
+
does. It is a `box-shadow`: an ancestor with `overflow: hidden` clips it.
|
|
421
|
+
|
|
422
|
+
### Changed
|
|
423
|
+
|
|
424
|
+
- **`Heading/Section` is 18/24** (was 17/22) — Figma's text style changed and
|
|
425
|
+
the token follows: `text-heading-section` and `.vd-text-heading-section` are
|
|
426
|
+
1px larger with a 2px taller line. The name is unchanged. In the library only
|
|
427
|
+
the placeholder Card used it before 0.6.0.
|
|
428
|
+
- **Button critical matches Figma's new Display=critical**: it carries the
|
|
429
|
+
same `Stroke/Divider` hairline primary does at rest (invisible on the fill),
|
|
430
|
+
and **disabled is the critical fill at 40% under the normal label** — it was
|
|
431
|
+
a soft fill with dimmed text. Hover and selected were already
|
|
432
|
+
`Critical/Strong`.
|
|
433
|
+
- **A count after a tab label** is the existing badge slot; nothing was added.
|
|
434
|
+
- **Tooltip and the Simple toast use the Inverse tokens.** The fill is
|
|
435
|
+
`Inverse/Surface` and the text `Inverse/Content`, as Figma now binds them
|
|
436
|
+
(were `Content/Primary` and `Content/Contrast`), and Tooltip's title and
|
|
437
|
+
subtext are `Inverse/Muted` (were `Content/Faint`). **The fill and body render
|
|
438
|
+
exactly as before in Light**; the muted lines are a touch brighter (white at
|
|
439
|
+
72%, 9.73:1, where Content/Faint was 10.4). In Onyx the bubble is near-white with dark
|
|
440
|
+
text, 14.9:1.
|
|
441
|
+
- **The Switch knob is `Control/Knob` when off and `Content/Contrast` when
|
|
442
|
+
on** (was `Surface/Paper`). Light is the same white in both states. In Onyx
|
|
443
|
+
`Surface/Paper` is near-black and the knob disappeared against its track.
|
|
444
|
+
- **`Content/Contrast` is no longer "white".** It is the ink that contrasts
|
|
445
|
+
with an accent fill: white in Light, **#111113 in Onyx**, where the accent
|
|
446
|
+
fills are light tints. Labels on primary and critical buttons, Avatar
|
|
447
|
+
initials, the active Pagination cell and a selected Tag are therefore dark in
|
|
448
|
+
Onyx. If your own CSS uses `text-content-contrast` for light text on a dark
|
|
449
|
+
surface that is not an accent fill, switch it to `text-inverse-content` on
|
|
450
|
+
`bg-inverse-surface`.
|
|
451
|
+
- **The Modal backdrop is `Overlay/Scrim`**, the variable Figma's Overlay Scrim
|
|
452
|
+
component binds: #0f0f1a at 28% in Light, black at 55% in Onyx. It was an
|
|
453
|
+
invented #141428 at 40%, so **the Light backdrop is lighter than in 0.5.x**.
|
|
454
|
+
|
|
455
|
+
### Differs from Figma
|
|
456
|
+
|
|
457
|
+
- **ResizeHandle has a focus state** (the knob shows and takes the focus ring).
|
|
458
|
+
Figma draws none for a control that is keyboard-operable.
|
|
459
|
+
- **A label Tag's status dot is `Neutral/Strong`** (`.vd-dot-neutral`); Figma
|
|
460
|
+
binds `Neutral/Main`, 2.81:1 on the tag's fill. Designer-list items 22, 76.
|
|
461
|
+
- **FieldVerification's findings use the SeverityMarker shapes** (a dot for
|
|
462
|
+
warning and mismatch, the diamond for critical); the file still nests the
|
|
463
|
+
amber triangle glyph. Item 80.
|
|
464
|
+
- **ChecklistTask's hover does not move its content**; Figma's hover variant
|
|
465
|
+
adds 8px of padding and shifts the row. Item 90.
|
|
466
|
+
- **FindingRow has a hover fill and FindingCard's fields are the library's**
|
|
467
|
+
DropdownField and Textarea; Figma draws rest only, and raw frames. Item 87.
|
|
468
|
+
- **The meta line in a sign-off record and in FindingCard's decision box is
|
|
469
|
+
`Content/Secondary`**; Figma binds `Content/Tertiary`, which is 4.20:1 on
|
|
470
|
+
those boxes' `Surface/Neutral` fill in Light. Item 95.
|
|
471
|
+
- **ContentRow's chevron turns when expanded**; Figma's two Expanded variants
|
|
472
|
+
are identical. Item 81.
|
|
473
|
+
- **Every SnapshotMetric type is 42px tall**; Figma's Count + dots is 34.
|
|
474
|
+
Item 83.
|
|
475
|
+
- **ProgressCircle's arc has square ends**; Figma's are round. Item 78.
|
|
476
|
+
- **An Input in error has a `Neutral/Soft` halo**, while Search, Dropdown and
|
|
477
|
+
Text Area in error keep `Primary/Soft`. That is Figma as drawn: each
|
|
478
|
+
follows its own set. Item 65.
|
|
479
|
+
|
|
480
|
+
### Not in 0.6.0 (follow-ups)
|
|
481
|
+
|
|
482
|
+
- DataRow: the `Previous value` slot.
|
|
483
|
+
- Empty State, the real Card, Cell, Selectable row, Checkbox container, the
|
|
484
|
+
Summary panel, Summary Assignee Row, Scoring details, Small nav, Nav Section
|
|
485
|
+
Header, and Section Marker's warning and failed statuses.
|
|
486
|
+
|
|
487
|
+
- **The Simple toast's check icon takes the label colour** (`Inverse/Content`).
|
|
488
|
+
Figma binds it to `Content/Contrast`, which has the same value in both
|
|
489
|
+
themes today; the library follows the label so it stays right if the two ever
|
|
490
|
+
differ. Designer-list item 53.
|
|
491
|
+
|
|
492
|
+
## 0.5.1 — unreleased (ships with 0.6.0)
|
|
38
493
|
|
|
39
494
|
### Added
|
|
40
495
|
|