@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.
Files changed (68) hide show
  1. package/CHANGELOG.md +456 -1
  2. package/COMPONENTS.md +2117 -704
  3. package/README.md +40 -7
  4. package/class-manifest.json +263 -2
  5. package/dist/dashboard-ui.css +4249 -1469
  6. package/dist/index.css +4056 -1453
  7. package/package.json +9 -8
  8. package/src/components/add-funds-form.css +69 -0
  9. package/src/components/alert.css +33 -56
  10. package/src/components/avatar.css +38 -2
  11. package/src/components/button.css +52 -29
  12. package/src/components/card.css +1 -1
  13. package/src/components/checklist-group.css +116 -0
  14. package/src/components/checklist-task.css +125 -0
  15. package/src/components/chip.css +145 -0
  16. package/src/components/comment-date.css +36 -0
  17. package/src/components/comment-item.css +59 -0
  18. package/src/components/content-row.css +133 -0
  19. package/src/components/data-list.css +91 -0
  20. package/src/components/data-row.css +84 -19
  21. package/src/components/dropdown-field.css +9 -0
  22. package/src/components/dropdown-menu.css +6 -2
  23. package/src/components/entity-header.css +61 -0
  24. package/src/components/field-verification.css +118 -38
  25. package/src/components/final-decision.css +51 -0
  26. package/src/components/finding-card.css +157 -0
  27. package/src/components/finding-option.css +45 -0
  28. package/src/components/finding-row.css +45 -0
  29. package/src/components/funding-status.css +61 -0
  30. package/src/components/funding-total.css +57 -0
  31. package/src/components/funding-transaction.css +108 -0
  32. package/src/components/index.css +36 -0
  33. package/src/components/inline-confirm.css +42 -0
  34. package/src/components/input.css +19 -0
  35. package/src/components/keycap.css +27 -0
  36. package/src/components/menu-item.css +38 -10
  37. package/src/components/modal.css +29 -2
  38. package/src/components/navigation-rail.css +322 -2
  39. package/src/components/overlay-scrim.css +26 -0
  40. package/src/components/owner-row.css +170 -0
  41. package/src/components/owner-table-header.css +57 -0
  42. package/src/components/ownership.css +73 -0
  43. package/src/components/panel-section-header.css +56 -0
  44. package/src/components/panel-status.css +23 -0
  45. package/src/components/panel-strip-button.css +31 -0
  46. package/src/components/progress-circle.css +89 -0
  47. package/src/components/radio-select.css +5 -2
  48. package/src/components/record.css +56 -0
  49. package/src/components/resize-handle.css +131 -0
  50. package/src/components/resolved-row.css +50 -0
  51. package/src/components/scoring-details.css +79 -0
  52. package/src/components/scrollbar.css +47 -0
  53. package/src/components/section-edit.css +109 -0
  54. package/src/components/severity-count.css +63 -0
  55. package/src/components/severity-marker.css +66 -0
  56. package/src/components/snapshot-metric.css +72 -0
  57. package/src/components/step.css +1 -1
  58. package/src/components/summary-panel.css +250 -0
  59. package/src/components/summary-preview.css +76 -0
  60. package/src/components/switch.css +10 -1
  61. package/src/components/tabs.css +3 -2
  62. package/src/components/tag.css +24 -2
  63. package/src/components/textarea.css +4 -0
  64. package/src/components/toast.css +10 -6
  65. package/src/components/tooltip.css +14 -8
  66. package/src/themes/valiify-tokens.css +241 -7
  67. package/src/themes/valiify.css +244 -7
  68. package/types/components.d.ts +386 -9
@@ -1,5 +1,25 @@
1
1
  /**
2
- * DataRow Component
2
+ * REDRAWN IN 0.6.0 (re-read 2026-11-19) — A BREAKING RESIZE. The row is 44px
3
+ * (46 with a Sensitive Data value); it was 38. What changed in the file:
4
+ *
5
+ * - Padding 4 / 11 around 22px-tall slots (was 4 / 12.5 in a pinned 38), and
6
+ * the row is TOP-aligned: each slot is a 22px box that centres its own
7
+ * content, so a taller slot grows the row instead of overflowing it.
8
+ * Nothing is pinned — 11 + 22 + 11 = 44, 11 + 24 + 11 = 46.
9
+ * - The value is Body/Default (14/20, was Body/Dense 13/18) in a 320px
10
+ * column (was 400). The label stays Body/Dense in Content/Tertiary.
11
+ * - A Sensitive Data value is 24 tall (2 + the 20px line + 2), which is what
12
+ * makes that row 46.
13
+ * - The status slot nests Field Verification Display=COMPACT — the marker
14
+ * alone, 22 tall — not the 24px inline row with its label.
15
+ * - A new Linked state, for a row tied to the finding open beside it: a
16
+ * 2px Primary/Main stroke on the left edge and no fill.
17
+ * - The actions sit in a right-aligned group with a 12px gap.
18
+ *
19
+ * Everything below this block predates the redraw; where it says 38px,
20
+ * 12.5px or Body/Dense for the value, the list above wins.
21
+ *
22
+ * * DataRow Component
3
23
  *
4
24
  * One labelled field in a review panel: the field name, its value, and its
5
25
  * verification status, with actions that appear on hover. Extracted from Figma
@@ -80,41 +100,78 @@
80
100
 
81
101
  @layer components {
82
102
  .vd-data-row {
83
- /* Layout — 16px (Spacing/16) between columns. */
84
- @apply flex w-full items-center gap-4;
85
- @apply h-[38px] px-1 py-[12.5px]; /* 4px / 12.5px — see the header */
103
+ /* Layout — 16px (Spacing/16) between columns, top-aligned: every slot is
104
+ a 22px box, and the row is 11 + the tallest slot + 11. Not pinned. */
105
+ @apply flex w-full items-start gap-4;
106
+ @apply px-1 py-[11px]; /* 4px / 11px */
86
107
 
87
108
  /* Shape */
88
109
  @apply rounded-tight; /* 4px — Radius/XS */
89
110
  }
90
111
 
91
- /* Figma's Hover axis. The only state the row itself has. */
112
+ /* Figma's Hover axis. A linked row hovers like any other. */
92
113
  .vd-data-row:hover {
93
114
  @apply bg-action-subtle;
94
115
  }
95
116
 
117
+ /* Linked (0.6.0) — the row tied to the open finding: a 2px Primary/Main
118
+ stroke down the left edge and NO fill (decided 2026-11-19; the first draw
119
+ was a Primary/Soft fill with no stroke). Figma authors it as an INSIDE
120
+ stroke, which takes no layout space, so it is an inset shadow here rather
121
+ than a border — a real 2px border would push the label column 2px right
122
+ of every unlinked row. It follows the row's 4px radius, as the stroke
123
+ does. With no tint behind it the label keeps Content/Tertiary. */
124
+ .vd-data-row-linked {
125
+ box-shadow: inset 2px 0 0 var(--color-primary);
126
+ }
127
+
96
128
  /* --- Columns --------------------------------------------------------- */
97
129
 
98
- /* Rev3: Body/Dense (13/18, was Body 2 12.5/12.5), truncating — Figma fixes
130
+ /* Body/Dense (13/18) in a 22px slot — 2 + 18 + 2. Truncating: Figma fixes
99
131
  the label column and clips overflow. */
100
132
  .vd-data-row-field {
101
- @apply w-[200px] shrink-0 truncate;
133
+ @apply w-[200px] shrink-0 truncate py-0.5;
102
134
  @apply text-body-dense text-content-tertiary;
103
135
  }
104
136
 
137
+ /* Body/Default (14/20) since 0.6.0, in a 22px slot — 1 + 20 + 1. 320px
138
+ (was 400). */
105
139
  .vd-data-row-value {
106
- @apply w-[400px] shrink-0;
107
- @apply text-body-dense text-content-primary; /* Rev3: 13 / 18 */
140
+ @apply shrink-0 py-px;
141
+ /* 320, or what the record's shared text column leaves after the 200px
142
+ label and the 16px gap (0.7.0). */
143
+ width: calc(var(--vd-record-text, 536px) - 216px);
144
+ @apply text-body-default text-content-primary;
145
+ }
146
+
147
+ /* The value a field held before an edit (0.7.0) — Figma's Previous boolean, a
148
+ hidden layer in every variant: Body/Default in Content/Tertiary, struck
149
+ through, 8px after the current value. Use a <s> (or <del>) so the strike
150
+ is in the markup as well as the paint, and say "was" for a screen reader:
151
+ the strike alone is announced by few of them. */
152
+ .vd-data-row-previous {
153
+ @apply ml-2; /* 8px */
154
+ @apply text-body-default text-content-tertiary line-through;
155
+ }
156
+
157
+ /* A Sensitive Data value is its own 24px slot (2 + 20 + 2), so the wrapper
158
+ drops its padding and the row becomes 46. Data Row overrides Sensitive
159
+ Data's standalone Caption so the masked value matches the plain values
160
+ beside it — Body/Default since 0.6.0. */
161
+ .vd-data-row-value:has(.vd-sensitive-data) {
162
+ @apply py-0;
163
+ }
164
+
165
+ .vd-data-row-value .vd-sensitive-data {
166
+ @apply py-0.5;
108
167
  }
109
168
 
110
- /* Data Row overrides Sensitive Data's Caption to Body 2 so the masked value
111
- sits on the same baseline as the field label. See the header. */
112
169
  .vd-data-row-value .vd-sensitive-data-value {
113
- @apply text-body-dense; /* Rev3: Figma's Data Row still overrides the
114
- standalone Caption — now to Body/Dense, so value and masked value match */
170
+ @apply text-body-default;
115
171
  }
116
172
 
117
- /* Additive, for the Field Verification slot — Figma stretches it. */
173
+ /* Additive, for the Field Verification slot — Figma stretches it. Pair it
174
+ with `.vd-field-verification-compact`, the 22px form the row nests. */
118
175
  .vd-data-row-status {
119
176
  @apply flex-1;
120
177
  min-width: 0;
@@ -122,10 +179,19 @@
122
179
 
123
180
  /* --- Actions --------------------------------------------------------- */
124
181
 
182
+ /* The trailing group (0.6.0): right-aligned, 12px apart, each action
183
+ centred in a 22px slot. Optional — a lone `.vd-data-row-action` still
184
+ works as a direct child. */
185
+ .vd-data-row-actions {
186
+ @apply ml-auto flex shrink-0 items-center justify-end gap-3; /* 12px */
187
+ min-height: 22px;
188
+ }
189
+
125
190
  /* Laid out but invisible at rest, exactly as Figma draws it. Revealed by
126
- hover AND focus, so a keyboard user can see the control they reached. */
191
+ hover AND focus, so a keyboard user can see the control they reached.
192
+ 2px margin-y centres the 18px Icon Button in the 22px slot. */
127
193
  .vd-data-row-action {
128
- @apply shrink-0 opacity-0;
194
+ @apply my-0.5 shrink-0 opacity-0;
129
195
  @apply transition-opacity duration-150;
130
196
  }
131
197
 
@@ -136,9 +202,8 @@
136
202
 
137
203
  /* --- States ---------------------------------------------------------- */
138
204
 
139
- /* Figma's Ring boolean, hidden by default — 2px Primary/Main, and the only
140
- ring in the library that follows a radius, since the row has one. */
141
- /* Rev3: OUTSIDE, like the rest of the Ring family (was inset). */
205
+ /* Figma's Ring boolean, hidden by default — 2px Primary/Main, OUTSIDE,
206
+ following the row's radius. */
142
207
  .vd-data-row.vd-with-ring {
143
208
  outline: var(--border-micro) solid var(--color-primary);
144
209
  outline-offset: 0;
@@ -188,6 +188,15 @@
188
188
  @apply border-primary;
189
189
  }
190
190
 
191
+ /* The active halo (0.6.0) — 3px Primary/Soft, a 0-blur spread shadow on
192
+ Figma's State=active (see input.css). Unlike the hairline above it is NOT
193
+ guarded against error: Dropdown Field's active+error variants keep both
194
+ the Critical/Main hairline and the Primary/Soft halo. */
195
+ .vd-dropdown-field:focus-within:not(:disabled):not([aria-disabled="true"]),
196
+ .vd-dropdown-field[aria-expanded="true"]:not(:disabled):not([aria-disabled="true"]) {
197
+ box-shadow: 0 0 0 3px var(--color-primary-soft);
198
+ }
199
+
191
200
  /* Error — red hairline. REV3 INVERTED THE PRECEDENCE: error now beats the
192
201
  open/active hairline (Figma's active+error variants keep Critical/Main);
193
202
  the old set let the open ring win. The hover and open/focused rules above
@@ -49,8 +49,12 @@
49
49
 
50
50
  @layer components {
51
51
  .vd-dropdown-menu {
52
- /* Layout */
53
- @apply flex flex-col items-start;
52
+ /* Layout — children STRETCH (0.7.0). It was items-start, which left every
53
+ row to stretch itself with w-full: a wrapper inside the panel (a
54
+ role="listbox" group, a submenu anchor) hugged its rows instead, so a
55
+ trailing check sat beside the label and the hover fill stopped short.
56
+ Figma's regions are all Fill. */
57
+ @apply flex flex-col items-stretch;
54
58
  @apply p-1; /* 4px — Spacing/4 */
55
59
  @apply min-w-[200px];
56
60
 
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Entity Header
3
+ *
4
+ * The identity block at the top of a record: an icon tile, the legal name, an
5
+ * entity chip and a line of facts. Extracted from Figma Entity Header
6
+ * (2042:35637) — a single symbol. Figma: "icon tile, legal name, entity chip,
7
+ * DBA · state · owners."
8
+ *
9
+ * <header class="vd-entity-header">
10
+ * <span class="vd-entity-header-tile"><svg class="vd-icon vd-icon-size-18" aria-hidden="true">…</svg></span>
11
+ * <div class="vd-entity-header-info">
12
+ * <h1 class="vd-entity-header-name">Northgate Logistics, Inc.</h1>
13
+ * <div class="vd-entity-header-meta">
14
+ * <span class="vd-tag vd-tag-sm">INC</span>
15
+ * <p class="vd-entity-header-facts">
16
+ * <span>DBA Northgate Trucking</span><span aria-hidden="true">·</span><span>Delaware</span>
17
+ * </p>
18
+ * </div>
19
+ * </div>
20
+ * </header>
21
+ *
22
+ * A row with a 12px gap and 16px of bottom padding (it sits above the tab row).
23
+ * The tile is 34×34, Primary/Soft with a Primary/Main 18px glyph and a 6px
24
+ * radius. The name is Heading/Section (18/24/600); 8px below it, the chip and
25
+ * the facts sit 12px apart; the facts are Body/Default in Content/Secondary,
26
+ * 8px apart, with a literal "·" between them (mark those aria-hidden).
27
+ *
28
+ * The chip is a Tag instance (sm, default) — `.vd-tag vd-tag-sm`. The heading
29
+ * level is the page's call; the class sets the type, not the element.
30
+ * Width is not pinned: Figma's 868 is the sheet's content width.
31
+ */
32
+
33
+ @layer components {
34
+ .vd-entity-header {
35
+ @apply flex w-full items-center gap-3 pb-4; /* 12px, 16px */
36
+ }
37
+
38
+ .vd-entity-header-tile {
39
+ @apply inline-flex size-8.5 shrink-0 items-center justify-center; /* 34px */
40
+ @apply rounded-control; /* 6px */
41
+ @apply bg-primary-soft text-primary;
42
+ }
43
+
44
+ .vd-entity-header-info {
45
+ @apply flex flex-1 flex-col items-start gap-2; /* 8px */
46
+ min-width: 0;
47
+ }
48
+
49
+ .vd-entity-header-name {
50
+ @apply text-heading-section text-content-primary; /* 18 / 24 / 600 */
51
+ }
52
+
53
+ .vd-entity-header-meta {
54
+ @apply flex items-center gap-3; /* 12px */
55
+ }
56
+
57
+ .vd-entity-header-facts {
58
+ @apply flex items-center gap-2; /* 8px */
59
+ @apply text-body-default text-content-secondary; /* 14 / 20 / 400 */
60
+ }
61
+ }
@@ -1,5 +1,40 @@
1
1
  /**
2
- * Field Verification Component
2
+ * REDRAWN IN 0.6.0 (re-read 2026-11-19; the set went from 5 variants to 31).
3
+ * What the library ships of it, and what changed for existing markup:
4
+ *
5
+ * - SEVERITY STATES: `-warning` and `-critical` — a finding's title and
6
+ * reason beside a Severity Marker (the review dot, the critical diamond).
7
+ * Title Body/Default Strong in Warning/Content or Critical/Content, reason
8
+ * Body/Default in Content/Secondary. 46px: 2 + 20 + 4 + 20.
9
+ * - `-resolved`: a 14px #check in Approved/Main, "Resolved · <outcome>" in
10
+ * Content/Primary, and who / when in Body/Dense, Content/Tertiary. 44px.
11
+ * - `-compact`: the marker alone, 24×22 (shipped with Data Row in step 2).
12
+ * - `.vd-field-verification-mark`: a 24×22 slot that centres the marker or
13
+ * glyph on the first line of the details beside it.
14
+ * - MISMATCH IS NOW A WARNING, NOT CRITICAL — a visible change. Figma
15
+ * re-toned both mismatch variants from Critical/Main to Warning/Content,
16
+ * the detail line is Body/Default (it was mono Data/Compact) and the title
17
+ * of the expanded form is Body/Default Strong. `-mismatch` keeps its name
18
+ * and now renders exactly as `-warning` does.
19
+ * - The inline rows gained 4px of left padding and a 12px gap (was 7), and
20
+ * the verified label is Content/Secondary (was Content/Tertiary).
21
+ *
22
+ * THE MARKER IS A SEVERITY MARKER, NOT A TRIANGLE (decided 2026-11-19): the
23
+ * file still nests the amber #triangle-alert glyph in the mismatch, warning
24
+ * and critical variants; the library documents the Severity Marker shapes
25
+ * instead — a dot for warning and mismatch, the diamond for critical — so the
26
+ * shape carries the severity. Designer-list item 80.
27
+ *
28
+ * NOT SHIPPED, by decision: the Resolve and Link actions (field-level alerts
29
+ * show the finding's title and reason; actions live in the findings panel) and
30
+ * the `tally` state. `.vd-field-verification-action` and `-icon` stay for
31
+ * existing markup and are no longer documented. Compact's hover tooltip is a
32
+ * composition (an Icon Button sm plus a Tooltip), not a class here.
33
+ *
34
+ * Where the notes below describe mismatch as Critical/Main, a mono detail line
35
+ * or a 7px gap, the list above wins.
36
+ *
37
+ * * Field Verification Component
3
38
  *
4
39
  * Inline field-level verification indicator. Extracted from Figma Field
5
40
  * Verification (142:350) — 5 variants on a single `State` axis, plus a Ring
@@ -79,92 +114,137 @@
79
114
 
80
115
  @layer components {
81
116
  .vd-field-verification {
82
- /* Rev3: a 24px row — 2 + Body/Default's 20px line + 2 (was ~18). Fits a
83
- 38px Data Row with 7px clearance either side, exactly where Figma
84
- places it (measured 2026-10-01). */
85
- @apply inline-flex items-center gap-1.75 py-0.5; /* 7px, 2px */
117
+ /* A 24px one-line row — 2 + Body/Default's 20px line + 2 — with 4px on
118
+ the left and 12px between marker and label (0.6.0; was no inset, 7px). */
119
+ @apply inline-flex items-center gap-3 py-0.5 pl-1; /* 12px, 2px, 4px */
86
120
  }
87
121
 
88
- /* The stacked variant tops-aligns its icon; the one-line rows centre theirs. */
89
- .vd-field-verification:has(.vd-field-verification-details) {
90
- @apply items-start;
122
+ /* Display=Compact — the marker alone, in a 24×22 box (4 + the 16px Section
123
+ Marker + 4), which is what Data Row's 22px status slot nests. The label
124
+ stays in the DOM, visually hidden: it is the status's accessible name. */
125
+ /* `relative` (0.7.0) contains the visually hidden label below. `sr-only` is
126
+ absolutely positioned; with no positioned ancestor nearer than the page
127
+ shell, every compact status in a long scrolling record sat in the SHELL's
128
+ overflow at its unscrolled position, gave it thousands of pixels of
129
+ phantom scroll height, and let `scrollIntoView` scroll the whole app. */
130
+ .vd-field-verification-compact {
131
+ @apply relative gap-0 px-1 py-0.75; /* 4px / 3px — 3 + 16 + 3 = 22 */
132
+ }
133
+
134
+ .vd-field-verification-compact .vd-field-verification-label {
135
+ @apply sr-only;
91
136
  }
92
137
 
93
138
  /* --- Parts -------------------------------------------------------------- */
94
139
 
95
- /* The mismatch slot only — verified, pending and none use `.section-marker`,
96
- which brings its own 16px box. Figma frames this glyph 15x18 and centres it
97
- on the first line, so the BOX is what aligns, not the glyph; without the
98
- height the expanded state sits 1.5px high. */
140
+ /* The 24×22 slot for a Severity Marker or a 14px glyph. 22 is the first
141
+ line's box (2 + 20), so the mark centres on the title, not on the block. */
142
+ .vd-field-verification-mark {
143
+ @apply inline-flex shrink-0 items-center justify-center;
144
+ @apply h-[22px] w-6; /* 22px × 24px */
145
+ }
146
+
147
+ /* A row built on the mark slot: no left inset, 8px gap, 1px padding-y. */
148
+ .vd-field-verification:has(> .vd-field-verification-mark) {
149
+ @apply gap-2 py-px pl-0; /* 8px, 1px */
150
+ }
151
+
152
+ /* Legacy mismatch glyph slot (a bare 15px icon in an 18px box). Kept for
153
+ existing markup; new markup uses `-mark`. */
99
154
  .vd-field-verification-icon {
100
155
  @apply inline-flex h-[18px] shrink-0 items-center justify-center;
101
156
  }
102
157
 
103
158
  .vd-field-verification-label {
104
- @apply text-body-default; /* Rev3: 14 / 20 / 400 — grew from the 12px Caption */
159
+ @apply text-body-default; /* 14 / 20 / 400 */
105
160
  }
106
161
 
107
- /* --- Expanded (State=mismatch - details) -------------------------------- */
162
+ /* --- Stacked (title + a second line) ------------------------------------ */
163
+
164
+ /* Tops-aligned, no row padding: the stack carries its own 2px top inset. */
165
+ .vd-field-verification:has(.vd-field-verification-details) {
166
+ @apply items-start py-0;
167
+ }
108
168
 
109
169
  .vd-field-verification-details {
110
- @apply flex flex-col items-start gap-1; /* 4px */
170
+ @apply flex flex-col items-start gap-1 pt-0.5; /* 4px, 2px */
111
171
  min-width: 0;
112
172
  }
113
173
 
114
- /* Data/Data xs needs font-mono — --text-* carries no family. See CLAUDE.md. */
174
+ /* A finding's title is Body/Default Strong (14 / 20 / 500). */
175
+ .vd-field-verification-details .vd-field-verification-label {
176
+ @apply text-body-default-strong;
177
+ }
178
+
179
+ /* The reason — Body/Default since 0.6.0 (was mono Data/Compact). */
115
180
  .vd-field-verification-detail {
116
- @apply text-data-compact font-mono; /* Rev3 Data/Compact: 12 / 16.5 / 400 — same metrics */
117
- @apply text-content-secondary;
181
+ @apply text-body-default text-content-secondary; /* 14 / 20 / 400 */
182
+ }
183
+
184
+ /* Resolved's second line: who and when. Body/Dense, Content/Tertiary. */
185
+ .vd-field-verification-meta {
186
+ @apply text-body-dense text-content-tertiary; /* 13 / 18 / 400 */
118
187
  }
119
188
 
120
- /* Plain text plus an arrow, not a Text Button instance. See the header. */
189
+ /* Legacy action row — plain text plus an arrow. Not drawn at Action=None,
190
+ which is the only form the library documents; kept for existing markup. */
121
191
  .vd-field-verification-action {
122
192
  @apply inline-flex items-center gap-1.75; /* 7px */
123
- @apply text-action-compact; /* Rev3: 12 / 16 / 500 (was the 12/18/400 Caption) */
193
+ @apply text-action-compact; /* 12 / 16 / 500 */
124
194
  @apply cursor-pointer;
125
195
  }
126
196
 
127
197
  /* --- States ------------------------------------------------------------- */
128
198
 
129
- /* verified: the only state whose icon and label differ in colour. */
199
+ /* verified: Content/Secondary label (0.6.0; was Tertiary). The marker is a
200
+ Section Marker and brings its own Approved/Main. */
130
201
  .vd-field-verification-verified {
131
- @apply text-content-tertiary;
202
+ @apply text-content-secondary;
132
203
  }
204
+
133
205
  .vd-field-verification-verified .vd-field-verification-icon {
134
206
  @apply text-approved;
135
207
  }
136
208
 
137
- /* pending and none: Section Marker instances like verified, but bound to
138
- Content/Tertiary where Section Marker's own `unverified` is Secondary/Main.
139
- The colour cascades into the nested `.vd-section-marker`, which sets none of
140
- its own without a status class. */
209
+ /* pending and none: Content/Tertiary, cascading into the nested Section
210
+ Marker, which sets no colour of its own without a status class. */
141
211
  .vd-field-verification-pending,
142
212
  .vd-field-verification-none {
143
213
  @apply text-content-tertiary;
144
214
  }
145
215
 
146
- /* none carries only the 16px marker; Figma pads it 1px (an 18px frame),
147
- not the label rows' 2px. */
216
+ /* none carries only the 16px marker; Figma pads it 1px (an 18px frame). */
148
217
  .vd-field-verification-none {
149
218
  @apply py-0.25;
150
219
  }
151
220
 
152
- /* The expanded panel tops-aligns its own stack — no row padding. */
153
- .vd-field-verification:has(.vd-field-verification-details) {
154
- @apply py-0;
221
+ /* warning, and mismatch — which Figma re-toned to the same Warning/Content
222
+ in 0.6.0 (it was Critical/Main). */
223
+ .vd-field-verification-warning,
224
+ .vd-field-verification-mismatch {
225
+ @apply text-warning-content;
155
226
  }
156
227
 
157
- /* mismatch: Critical/Main throughout, except the mono detail line, which
158
- stays Content/Secondary. */
159
- .vd-field-verification-mismatch {
160
- @apply text-critical;
228
+ .vd-field-verification-critical {
229
+ @apply text-critical-content;
230
+ }
231
+
232
+ /* resolved: Content/Primary title at the regular weight, Approved/Main check. */
233
+ .vd-field-verification-resolved {
234
+ @apply text-content-primary;
235
+ }
236
+
237
+ .vd-field-verification-resolved .vd-field-verification-label {
238
+ @apply text-body-default; /* 400 — a resolved line is not a finding title */
239
+ }
240
+
241
+ .vd-field-verification-resolved .vd-field-verification-mark {
242
+ @apply text-approved;
161
243
  }
162
244
 
163
245
  /* --- Ring --------------------------------------------------------------- */
164
246
 
165
- /* Figma boolean, hidden by default. Square, as on Section Marker — this box
166
- has no radius either. */
167
- /* Rev3 draws Figma's Ring 2px Primary/Main OUTSIDE (was inset). */
247
+ /* Figma boolean, hidden by default: 2px Primary/Main, OUTSIDE, square. */
168
248
  .vd-field-verification.vd-with-ring {
169
249
  outline: var(--border-micro) solid var(--color-primary);
170
250
  outline-offset: 0;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Final Decision
3
+ *
4
+ * The last line of the findings panel's checklist: what unlocks the decision.
5
+ * A loose frame in Figma's Findings Panel (1839:59387), not a component of its
6
+ * own. New in 0.7.0.
7
+ *
8
+ * <div class="vd-final-decision">
9
+ * <span class="vd-final-decision-mark">
10
+ * <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#lock" /></svg>
11
+ * </span>
12
+ * <div class="vd-final-decision-text">
13
+ * <p class="vd-final-decision-title">Final decision</p>
14
+ * <p class="vd-final-decision-detail">After all groups are signed off</p>
15
+ * </div>
16
+ * </div>
17
+ *
18
+ * 52px: 8px above and below two 18px lines, 12px at the sides, 12px between the
19
+ * mark and the text — the same left edge and gap as a closed Checklist Group's
20
+ * header, so the lock sits under the progress circles. The mark is a 16px column
21
+ * holding a 14px glyph in Secondary/Main. Both lines are Body/Dense: the title
22
+ * in Content/Secondary, the condition in Content/Tertiary.
23
+ *
24
+ * Figma draws the locked state only. What the row says once every group is
25
+ * signed off is the application's; the classes do not change.
26
+ */
27
+
28
+ @layer components {
29
+ .vd-final-decision {
30
+ @apply flex w-full items-center gap-3; /* 12px */
31
+ @apply px-3 py-2; /* 12px / 8px */
32
+ }
33
+
34
+ .vd-final-decision-mark {
35
+ @apply inline-flex w-4 shrink-0 justify-center; /* a 16px column for the 14px glyph */
36
+ @apply text-secondary;
37
+ }
38
+
39
+ .vd-final-decision-text {
40
+ @apply flex flex-1 flex-col;
41
+ min-width: 0;
42
+ }
43
+
44
+ .vd-final-decision-title {
45
+ @apply text-body-dense text-content-secondary; /* 13 / 18 / 400 */
46
+ }
47
+
48
+ .vd-final-decision-detail {
49
+ @apply text-body-dense text-content-tertiary;
50
+ }
51
+ }