@valiify/dashboard-ui 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.md +433 -2
  2. package/COMPONENTS.md +448 -73
  3. package/README.md +3 -3
  4. package/class-manifest.json +173 -4
  5. package/design-methodology/dashboard.md +676 -308
  6. package/dist/dashboard-ui.css +1258 -206
  7. package/dist/index.css +929 -181
  8. package/package.json +8 -8
  9. package/src/components/add-funds-form.css +2 -1
  10. package/src/components/button.css +40 -21
  11. package/src/components/checkbox.css +4 -2
  12. package/src/components/checklist-group.css +14 -6
  13. package/src/components/composer.css +11 -9
  14. package/src/components/content-row.css +29 -4
  15. package/src/components/data-list.css +91 -0
  16. package/src/components/data-row.css +14 -1
  17. package/src/components/divider.css +1 -1
  18. package/src/components/dropdown-field.css +30 -18
  19. package/src/components/dropdown-menu.css +12 -6
  20. package/src/components/field-verification.css +6 -1
  21. package/src/components/filter-segment.css +2 -1
  22. package/src/components/final-decision.css +51 -0
  23. package/src/components/finding-card.css +60 -17
  24. package/src/components/finding-option.css +10 -4
  25. package/src/components/funding-status.css +3 -2
  26. package/src/components/funding-total.css +8 -3
  27. package/src/components/funding-transaction.css +28 -5
  28. package/src/components/index.css +7 -0
  29. package/src/components/input.css +60 -21
  30. package/src/components/keycap.css +1 -1
  31. package/src/components/link.css +6 -2
  32. package/src/components/loading-indicator.css +5 -5
  33. package/src/components/menu-item.css +109 -21
  34. package/src/components/modal.css +21 -2
  35. package/src/components/navigation-rail.css +136 -6
  36. package/src/components/owner-row.css +170 -0
  37. package/src/components/owner-table-header.css +28 -13
  38. package/src/components/panel-section-header.css +5 -2
  39. package/src/components/pill.css +3 -2
  40. package/src/components/radio-select.css +5 -2
  41. package/src/components/recipient-input.css +4 -4
  42. package/src/components/record.css +56 -0
  43. package/src/components/scoring-details.css +79 -0
  44. package/src/components/section-edit.css +109 -0
  45. package/src/components/section-marker.css +4 -3
  46. package/src/components/sensitive-data.css +8 -4
  47. package/src/components/severity-count.css +13 -0
  48. package/src/components/step.css +1 -1
  49. package/src/components/summary-panel.css +250 -0
  50. package/src/components/summary-preview.css +5 -1
  51. package/src/components/tabs.css +7 -7
  52. package/src/components/tag.css +15 -9
  53. package/src/components/textarea.css +38 -18
  54. package/src/components/toast.css +13 -10
  55. package/src/components/tooltip.css +4 -1
  56. package/src/themes/valiify-tokens.css +1 -1
  57. package/src/themes/valiify.css +1 -1
  58. package/src/utility-surface.css +93 -1
  59. package/types/components.d.ts +100 -5
@@ -49,9 +49,13 @@
49
49
 
50
50
  @layer components {
51
51
  .vd-dropdown-menu {
52
- /* Layout */
53
- @apply flex flex-col items-start;
54
- @apply p-1; /* 4px — Spacing/4 */
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;
58
+ @apply p-0.75; /* 3px — Figma 4 − the rendered hairline */
55
59
  @apply min-w-[200px];
56
60
 
57
61
  /* Shape */
@@ -96,12 +100,14 @@
96
100
  @apply text-label-compact text-content-tertiary;
97
101
  }
98
102
 
99
- /* Footer — a Caption link in Primary/Main; 26px, 12px / 4px. Figma draws a
103
+ /* Footer — an Action/Compact link in Primary/Main (12 / 16 / 500 since
104
+ 2026-11-30; was Supporting/Caption 12 / 18 / 400). Still 26px: Figma's
105
+ frame keeps 26 around the 16px line, so the padding-y is 5. Figma draws a
100
106
  raw text node here, not a Text Button, so it is its own part. */
101
107
  .vd-dropdown-menu-footer {
102
108
  @apply flex w-full items-center;
103
- @apply px-3 py-1;
104
- @apply text-supporting-caption text-primary no-underline; /* 12 / 18 / 400 — Rev3 name for the same values */
109
+ @apply px-3 py-1; /* 4px — Figma's Footer padding; 24 tall */
110
+ @apply text-action-compact text-primary no-underline;
105
111
  @apply cursor-pointer;
106
112
  }
107
113
 
@@ -122,8 +122,13 @@
122
122
  /* Display=Compact — the marker alone, in a 24×22 box (4 + the 16px Section
123
123
  Marker + 4), which is what Data Row's 22px status slot nests. The label
124
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. */
125
130
  .vd-field-verification-compact {
126
- @apply gap-0 px-1 py-0.75; /* 4px / 3px — 3 + 16 + 3 = 22 */
131
+ @apply relative gap-0 px-1 py-0.75; /* 4px / 3px — 3 + 16 + 3 = 22 */
127
132
  }
128
133
 
129
134
  .vd-field-verification-compact .vd-field-verification-label {
@@ -83,7 +83,7 @@
83
83
  .vd-filter-segment {
84
84
  /* Layout */
85
85
  @apply inline-flex shrink-0 items-center justify-center gap-2.5; /* 10px */
86
- @apply px-2; /* 8px; no padding-y — the box is the token */
86
+ @apply pl-2 pr-1.75; /* 8px / 7px (Figma 8 − the rendered right border); no padding-y — the box is the token */
87
87
  @apply h-control-xs; /* sm = Height/Control/XS, 20px — see the header */
88
88
 
89
89
  /* Borders. Side-specific widths need the side-specific length utility, or
@@ -110,6 +110,7 @@
110
110
 
111
111
  /* The group's left edge — the only segment that draws a left border. */
112
112
  .vd-filter-segment-first {
113
+ @apply pl-1.75; /* 7px — Figma 8 − the rendered left border */
113
114
  @apply border-l border-l-[length:var(--border-thin)] border-l-stroke-divider;
114
115
  @apply rounded-l-control; /* 6px */
115
116
  }
@@ -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
+ }
@@ -14,7 +14,10 @@
14
14
  * </header>
15
15
  * <p class="vd-finding-card-reason">No record at 123 Fake St.</p>
16
16
  * <div class="vd-finding-card-options" role="radiogroup" aria-label="Resolution">…Finding Options…</div>
17
- * …fields…
17
+ * <div class="vd-finding-card-fields">…two Dropdown Field containers…</div>
18
+ * <div class="vd-textarea-field vd-textarea-sm vd-finding-card-note">
19
+ * <textarea class="vd-textarea" placeholder="Add a note (optional)"></textarea>
20
+ * </div>
18
21
  * <div class="vd-finding-card-footer"><button class="vd-btn vd-btn-primary">Send request</button></div>
19
22
  * </section>
20
23
  *
@@ -25,32 +28,44 @@
25
28
  * THE THREE STATES ARE THREE COMPOSITIONS, NOT THREE CLASSES. Nothing about the
26
29
  * card itself changes between them — only which blocks it holds:
27
30
  *
28
- * choosing reason · options · a note field · a disabled primary button
29
- * requesting reason · options · a field label + select · a note · the button
31
+ * choosing reason · options · a note · a disabled primary button 296px
32
+ * requesting reason · options · Document and From · a note · button 350px
30
33
  * requested reason · a decision box · a status line
31
34
  *
32
35
  * header 40px: marker, title (Body/Default Strong), an Icon Button
33
36
  * reason Body/Dense, Content/Secondary
34
- * options Finding Options, 6px apart
35
- * field-label Label/Compact, Content/Secondary
37
+ * options Finding Options, 40px each, 6px apart
38
+ * fields two small Dropdown Fields with labels, 8px apart
39
+ * note a small Text Area, 80px (Height/Textarea/SM)
40
+ * footer a Button md, at the right
36
41
  * decision Surface/Neutral, 6px radius, 10/8 padding, 2px gap: a title
37
42
  * (Body/Dense Strong) with an Edit action, a meta line
38
43
  * (Supporting/Caption, Content/Tertiary), a note (Body/Dense,
39
44
  * Content/Secondary)
40
45
  * status Supporting/Caption, Content/Secondary
41
46
  *
42
- * THE FIELDS ARE THE LIBRARY'S FIELDS (decided 2026-11-19). Figma draws the
43
- * select and the note as raw frames — 36 and 64px, Surface/Paper, a 1px
44
- * Stroke/Divider — not Dropdown Field or Text Area instances. Use
45
- * `.vd-dropdown-field` and `.vd-textarea-field`; the select is then 32 or 40,
46
- * not 36. "Edit" is drawn as plain Action/Compact text in Primary/Main, which
47
- * is `.vd-text-button vd-text-button-primary`.
47
+ * THE FIELDS ARE REAL COMPONENTS IN FIGMA SINCE 0.7.0. The set used to draw the
48
+ * select and the note as raw 36 and 64px frames; it now nests Dropdown Field
49
+ * (Size=sm, with its label) and Text Area (Size=sm), which is what the library
50
+ * already used (decided 2026-11-19). So: `.vd-dropdown-field-container` with a
51
+ * `.vd-dropdown-field vd-dropdown-field-sm`, and `.vd-textarea-field
52
+ * vd-textarea-sm` with `.vd-finding-card-note`.
53
+ *
54
+ * One thing still differs from the drawing (designer-list item 110). The note's
55
+ * padding is Textarea's own (8 / 2): Figma's Text Area set draws 12 / 10 at
56
+ * every size, a change to that set the library has not taken — left as a
57
+ * future decision (2026-11-19), since it would resize every Textarea. The
58
+ * button is Button md (28px, which is what the card's 296 and 350 add up
59
+ * with) — confirmed correct the same day; the set's description, which said
60
+ * "small", is fixed in Figma.
61
+ * "Edit" is drawn as plain Action/Compact text in Primary/Main, which is
62
+ * `.vd-text-button vd-text-button-primary`.
48
63
  */
49
64
 
50
65
  @layer components {
51
66
  .vd-finding-card {
52
67
  @apply flex w-full flex-col gap-2; /* 8px */
53
- @apply px-3 pb-3; /* 12px sides and bottom; the header is the top */
68
+ @apply px-2.75 pb-2.75; /* 11px sides and bottom (Figma 12 − the 1px border); the header is the top */
54
69
  @apply rounded-surface; /* 8px */
55
70
  @apply border border-[length:var(--border-line)] border-stroke-border;
56
71
  @apply bg-surface-card;
@@ -59,6 +74,9 @@
59
74
  /* 40px — 10 + the 20px title line + 10. */
60
75
  .vd-finding-card-header {
61
76
  @apply flex items-center gap-3 py-2.5; /* 12px, 10px */
77
+ /* Figma's top padding is 0 with the stroke drawn inside, so the header
78
+ overlaps the 1px border rather than sitting under it. */
79
+ @apply -mt-px;
62
80
  }
63
81
 
64
82
  .vd-finding-card-title {
@@ -75,12 +93,36 @@
75
93
  @apply flex flex-col gap-1.5; /* 6px */
76
94
  }
77
95
 
96
+ /* Requesting: Document and From, two small Dropdown Fields with their own
97
+ labels, sharing the width 8px apart (0.7.0 — Figma's "Request fields"). */
98
+ .vd-finding-card-fields {
99
+ @apply flex items-start gap-2; /* 8px */
100
+ }
101
+
102
+ .vd-finding-card-fields > * {
103
+ @apply flex-1;
104
+ min-width: 0;
105
+ }
106
+
107
+ /* Additive, on the note's `.vd-textarea-field vd-textarea-sm` (0.7.0): the
108
+ height Figma's small Text Area is drawn at — Height/Textarea/SM, 80px — as
109
+ a floor, so the field still grows when the textarea is dragged. Stretching
110
+ the row makes the <textarea> fill the box, so a click anywhere in it lands
111
+ in the field. The selector names both classes: Textarea's own size classes
112
+ set a min-height too and come later in the source. */
113
+ .vd-textarea-field.vd-finding-card-note {
114
+ @apply min-h-textarea-sm items-stretch; /* 80px — Height/Textarea/SM */
115
+ }
116
+
117
+ /* Not drawn since 0.7.0: each Dropdown Field carries its own label now. Kept
118
+ so 0.6.0 markup still renders. */
78
119
  .vd-finding-card-field-label {
79
120
  @apply text-label-compact text-content-secondary; /* 12 / 16 / 600 */
80
121
  }
81
122
 
123
+ /* Right-aligned since 0.7.0 — Figma's Footer packs to the end. */
82
124
  .vd-finding-card-footer {
83
- @apply flex items-center gap-2;
125
+ @apply flex items-center justify-end gap-2;
84
126
  }
85
127
 
86
128
  /* --- Requested: the decision on record ------------------------------- */
@@ -100,11 +142,12 @@
100
142
  @apply text-body-dense-strong text-content-primary; /* 13 / 18 / 500 */
101
143
  }
102
144
 
103
- /* Figma binds Content/Tertiary, which is 4.20:1 on the decision box's
104
- Surface/Neutral in Light — 12px text needs 4.5. Shipped Content/Secondary
105
- (5.93 Light, 6.65 Onyx); a pinned divergence, designer-list item 95. */
145
+ /* Content/Tertiary, as Figma binds it. It shipped Content/Secondary in 0.6.0
146
+ because the old Light Tertiary (#727280) was 4.20:1 on the decision box's
147
+ Surface/Neutral; the token is #6a6a78 since 0.7.0 — 4.72 here, 4.90 in
148
+ Onyx — so the divergence is gone (designer-list item 95, resolved). */
106
149
  .vd-finding-card-decision-meta {
107
- @apply text-supporting-caption text-content-secondary; /* 12 / 18 / 400 */
150
+ @apply text-supporting-caption text-content-tertiary; /* 12 / 18 / 400 */
108
151
  }
109
152
 
110
153
  .vd-finding-card-decision-note {
@@ -23,16 +23,22 @@
23
23
  @layer components {
24
24
  .vd-finding-option {
25
25
  @apply flex w-full items-center;
26
- /* 40px tall: 1 + 10 + the 18px radio row + 10 + 1. Figma writes it as 8px
27
- of padding around a 22px Radio frame (2 + 18 + 2); the library's
28
- RadioSelect row is the bare 18px line, so those 2px live here. */
29
- @apply px-2.5 py-2.5; /* 10px / 10px */
30
26
  @apply rounded-control; /* 6px */
31
27
  @apply border border-[length:var(--border-line)] border-stroke-divider;
32
28
  @apply bg-surface-paper;
33
29
  @apply transition-colors duration-150;
34
30
  }
35
31
 
32
+ /* 40px tall: 1 + 10 + the 18px label line + 10 + 1. Figma writes it as 8px of
33
+ padding around a 22px Radio frame (2 + 18 + 2). Here the box and the radio
34
+ are ONE element, so the Radio's own 2px (RadioSelect's since 0.7.0) and the
35
+ box's 8 are the same padding: 10px, on a selector that outranks
36
+ `.vd-radio-select`, which comes later in the source and would otherwise
37
+ leave the box 24px tall. */
38
+ .vd-radio-select.vd-finding-option {
39
+ @apply px-2.5 py-2.5; /* 10px / 10px */
40
+ }
41
+
36
42
  .vd-finding-option:has(.vd-radio-select-input:checked) {
37
43
  @apply border-primary bg-primary-soft;
38
44
  }
@@ -32,9 +32,10 @@
32
32
  @apply whitespace-nowrap;
33
33
  }
34
34
 
35
- /* refunded's mark: an 8px-wide slot, as tall as the line, holding a 1.5px dash */
35
+ /* refunded's mark: an 8×16 slot holding a 1.5px dash, centred (16 tall since
36
+ 2026-11-30, as Figma's Marker frame; it stretched to the 18px line) */
36
37
  .vd-funding-status-dash {
37
- @apply inline-flex w-2 shrink-0 items-center self-stretch; /* 8px */
38
+ @apply inline-flex h-4 w-2 shrink-0 items-center; /* 8 × 16 */
38
39
  }
39
40
 
40
41
  .vd-funding-status-dash::before {
@@ -33,7 +33,8 @@
33
33
  }
34
34
 
35
35
  .vd-funding-total-summary {
36
- @apply flex w-[536px] shrink-0 flex-col gap-0.5; /* 2px */
36
+ @apply flex shrink-0 flex-col gap-0.5; /* 2px */
37
+ width: var(--vd-record-text, 536px); /* the record's shared text column (0.7.0) */
37
38
  }
38
39
 
39
40
  .vd-funding-total-label {
@@ -45,12 +46,16 @@
45
46
  font-variant-numeric: tabular-nums;
46
47
  }
47
48
 
49
+ /* Holds a marker with no word since 2026-11-30 — Figma nests the compact
50
+ Field Verification (verified) here, as Funding Transaction's slot does. */
48
51
  .vd-funding-total-status {
49
- @apply flex flex-1 items-center;
52
+ @apply flex h-6 flex-1 items-center; /* 24px */
50
53
  min-width: 0;
51
54
  }
52
55
 
56
+ /* Packed to the end, as Figma's 78px container is (it started-packed here,
57
+ leaving the Text Button 2px left of Figma). */
53
58
  .vd-funding-total-actions {
54
- @apply flex w-[78px] shrink-0 items-center gap-1.5; /* 6px */
59
+ @apply flex w-[78px] shrink-0 items-center justify-end gap-1.5; /* 6px */
55
60
  }
56
61
  }
@@ -46,7 +46,7 @@
46
46
  @layer components {
47
47
  .vd-funding-transaction {
48
48
  @apply flex w-full items-center gap-4; /* 16px */
49
- @apply px-1 py-3.5; /* 4px / 14px */
49
+ @apply px-1 py-3; /* 4px / 12px — 12 + the 24px status slot + 12 = 48 (2026-11-30; was 14 around a 20px worded status) */
50
50
  @apply rounded-control; /* 6px */
51
51
  }
52
52
 
@@ -55,7 +55,8 @@
55
55
  }
56
56
 
57
57
  .vd-funding-transaction-summary {
58
- @apply flex w-[536px] shrink-0 items-center gap-4; /* 16px */
58
+ @apply flex shrink-0 items-center gap-4; /* 16px */
59
+ width: var(--vd-record-text, 536px); /* the record's shared text column (0.7.0) */
59
60
  }
60
61
 
61
62
  .vd-funding-transaction-title {
@@ -72,19 +73,41 @@
72
73
  @apply text-body-default text-content-tertiary;
73
74
  }
74
75
 
76
+ /* Right-aligned since 0.7.0, as Figma sets it: the figure ends where the
77
+ record's text column ends (it shipped left-aligned in 0.6.0, unread). */
75
78
  .vd-funding-transaction-amount {
76
- @apply w-24 shrink-0; /* 96px */
79
+ @apply w-24 shrink-0 text-right; /* 96px */
77
80
  @apply text-body-default-strong text-content-primary;
78
81
  font-variant-numeric: tabular-nums;
79
82
  }
80
83
 
84
+ /* The status slot (redrawn after 0.7.0, built 2026-11-30): a marker with no
85
+ word, then Refund at the far end on hover. 24px tall, as Figma's slot is.
86
+ The marker per state —
87
+ pending .vd-severity-marker vd-severity-marker-review
88
+ funded .vd-field-verification vd-field-verification-verified vd-field-verification-compact
89
+ refunded .vd-funding-transaction-undo (a 14px #undo-2 in Content/Tertiary)
90
+ failed .vd-severity-marker vd-severity-marker-critical
91
+ each named for assistive tech. The column follows the record grid, so the
92
+ marker sits on the shared status column at any width (decided 2026-11-30;
93
+ Figma's fixed 214 + 40 inset lands there only at 828). */
81
94
  .vd-funding-transaction-status {
82
- @apply flex flex-1 items-center justify-between gap-2;
95
+ @apply flex h-6 flex-1 items-center justify-between gap-2; /* 24px */
83
96
  min-width: 0;
84
97
  }
85
98
 
99
+ /* refunded's mark — Figma's undo-2, 14px, Content/Tertiary. Put it on the
100
+ <svg class="vd-icon vd-icon-size-14">. */
101
+ .vd-funding-transaction-undo {
102
+ @apply shrink-0 text-content-tertiary;
103
+ }
104
+
105
+ /* 78px, right-aligned (0.7.0 — Figma's container packs to the end, so the
106
+ chevron sits on the row's right edge, in line with Content Row's). It
107
+ holds an Icon Button inline with a 14px #chevron-down — every state, not
108
+ hover-revealed (2026-11-30; the stories showed an ellipsis). */
86
109
  .vd-funding-transaction-actions {
87
- @apply flex w-[78px] shrink-0 items-center;
110
+ @apply flex w-[78px] shrink-0 items-center justify-end;
88
111
  }
89
112
 
90
113
  /* Additive, on the Refund Text Button. */
@@ -19,6 +19,7 @@
19
19
  @import "./comment-item.css";
20
20
  @import "./composer.css";
21
21
  @import "./content-row.css";
22
+ @import "./data-list.css";
22
23
  @import "./data-row.css";
23
24
  @import "./divider.css";
24
25
  @import "./dropdown-field.css";
@@ -26,6 +27,7 @@
26
27
  @import "./entity-header.css";
27
28
  @import "./field-verification.css";
28
29
  @import "./filter-segment.css";
30
+ @import "./final-decision.css";
29
31
  @import "./finding-card.css";
30
32
  @import "./finding-option.css";
31
33
  @import "./finding-row.css";
@@ -44,6 +46,7 @@
44
46
  @import "./modal.css";
45
47
  @import "./navigation-rail.css";
46
48
  @import "./overlay-scrim.css";
49
+ @import "./owner-row.css";
47
50
  @import "./owner-table-header.css";
48
51
  @import "./ownership.css";
49
52
  @import "./pagination.css";
@@ -56,9 +59,12 @@
56
59
  @import "./progress-circle.css";
57
60
  @import "./radio-select.css";
58
61
  @import "./recipient-input.css";
62
+ @import "./record.css";
59
63
  @import "./resize-handle.css";
60
64
  @import "./resolved-row.css";
65
+ @import "./scoring-details.css";
61
66
  @import "./scrollbar.css";
67
+ @import "./section-edit.css";
62
68
  @import "./section-marker.css";
63
69
  @import "./segment-selector.css";
64
70
  @import "./sensitive-data.css";
@@ -68,6 +74,7 @@
68
74
  @import "./snapshot-metric.css";
69
75
  @import "./step.css";
70
76
  @import "./stepper.css";
77
+ @import "./summary-panel.css";
71
78
  @import "./summary-preview.css";
72
79
  @import "./switch.css";
73
80
  @import "./tabs.css";
@@ -21,8 +21,9 @@
21
21
  * and Body/Dense (13/18) from md up — the old Micro L / Body 1 pair is gone,
22
22
  * and with it the Auto-line-height trap. The field LABEL is Label/Compact
23
23
  * (12/16/600, 0.08em tracking) and is MIXED-CASE now — the old 10px
24
- * uppercase Label S died with the Rev3 scale. Icon slots unchanged (14px at
25
- * sm–xl, search glyph 12 at xs).
24
+ * uppercase Label S died with the Rev3 scale. Icon slots: 12px at xs, 14px at
25
+ * sm–xl — left / right icons and the search glyph alike (the size is the
26
+ * markup's `.vd-icon-size-*`).
26
27
  *
27
28
  * PLACEHOLDERS ARE Content/Tertiary FAMILY-WIDE (requester decision
28
29
  * 2026-09-30): Figma still draws the Search Field's placeholder Content/Faint,
@@ -30,10 +31,21 @@
30
31
  * Disabled fills are Rev3: Action/Subtle on the White BG, Surface/Neutral on
31
32
  * the Neutral BG.
32
33
  *
33
- * Heights are pinned with `height`, not `min-height`: Chrome rounds the 0.5px
34
- * `--border-thin` hairline up to a full 1px and ADDS it to the box, and every
35
- * bound Figma frame has strokesIncludedInLayout=false, so the token is the
36
- * border-box height. Same precedent as button.css.
34
+ * Heights are pinned with `height`, not `min-height`: a border ADDS to a
35
+ * content-driven box, and every bound Figma frame has
36
+ * strokesIncludedInLayout=false, so the token is the border-box height. Same
37
+ * precedent as button.css.
38
+ *
39
+ * THE BORDER IS 1px SINCE 2026-11-30 (`--border-line`, was the 0.5px
40
+ * `--border-thin`). Figma moved the four field sets — Input Field, Search
41
+ * Field, Dropdown Field, Text Area — to a 1px INSIDE stroke in every state
42
+ * because the half-pixel edge was too faint on standard-resolution screens,
43
+ * and stepped every colour up: rest Stroke/Border (was Stroke/Divider), hover
44
+ * Content/Faint (was Stroke/Border), disabled Stroke/Disabled (was
45
+ * Stroke/Divider). Focus (Primary/Main) and error (Critical/Main) keep their
46
+ * colours. Nothing moves: Chrome already rendered the 0.5px hairline as a full
47
+ * 1px, and the height is pinned. Comment Composer and Recipient Input are
48
+ * still 0.5px Stroke/Divider in Figma and are deliberately not changed.
37
49
  *
38
50
  * Structure:
39
51
  * <div class="vd-input-container">
@@ -86,13 +98,13 @@
86
98
  @apply flex items-center gap-2 w-full; /* 8px gap, every size */
87
99
 
88
100
  /* Default size: md — Height/Control/MD, 10px padding-x, no padding-y */
89
- @apply h-control-md px-2.5;
101
+ @apply h-control-md px-2.25; /* 9px — Figma 10 − the 1px border */
90
102
 
91
103
  /* Shape */
92
104
  @apply rounded-control; /* 6px */
93
105
 
94
- /* Border */
95
- @apply border border-[length:var(--border-thin)] border-stroke-divider;
106
+ /* Border — 1px Stroke/Border at rest (2026-11-30; was 0.5px Divider) */
107
+ @apply border border-[length:var(--border-line)] border-stroke-border;
96
108
 
97
109
  /* Background - default: white */
98
110
  @apply bg-surface-paper;
@@ -136,28 +148,28 @@
136
148
  /* One Height/Control step each; padding-y is 0 everywhere. */
137
149
 
138
150
  .vd-input-xs {
139
- @apply h-control-xs px-1.5; /* 20px, 6px */
151
+ @apply h-control-xs px-1.25; /* 20px, 5px (Figma 6 − border) */
140
152
  @apply text-supporting-caption; /* 12 / 18 / 400 */
141
153
  }
142
154
 
143
155
  .vd-input-sm {
144
- @apply h-control-sm px-2; /* 24px, 8px */
156
+ @apply h-control-sm px-1.75; /* 24px, 7px (Figma 8 − border) */
145
157
  @apply text-supporting-caption; /* 12 / 18 / 400 */
146
158
  }
147
159
 
148
160
  /* Identical to the bare base — md IS the default. */
149
161
  .vd-input-md {
150
- @apply h-control-md px-2.5; /* 28px, 10px */
162
+ @apply h-control-md px-2.25; /* 28px, 9px (Figma 10 − border) */
151
163
  @apply text-body-dense; /* 13 / 18 / 400 */
152
164
  }
153
165
 
154
166
  .vd-input-lg {
155
- @apply h-control-lg px-3; /* 32px, 12px — equals .vd-btn-lg */
167
+ @apply h-control-lg px-2.75; /* 32px, 11px (Figma 12 − border) — equals .vd-btn-lg */
156
168
  @apply text-body-dense;
157
169
  }
158
170
 
159
171
  .vd-input-xl {
160
- @apply h-control-xl px-4; /* 40px, 16px */
172
+ @apply h-control-xl px-3.75; /* 40px, 15px (Figma 16 − border) */
161
173
  @apply text-body-dense;
162
174
  }
163
175
 
@@ -191,12 +203,23 @@
191
203
 
192
204
  /* --- States ------------------------------------------------------ */
193
205
 
194
- /* Hover */
195
- .vd-input-field:hover:not(:has(:disabled)):not(.vd-input-disabled) {
196
- @apply border-stroke-border;
206
+ /* Hover — Content/Faint (was Stroke/Border). The guards exclude disabled and
207
+ ERROR by name: this rule's :not()s give it (0,5,0), above the (0,2,0)
208
+ error rule, so through 0.7.0 a field in error lost its red border on
209
+ hover — the state a user is in while fixing it. Dropdown Field had the
210
+ same bug and the same fix. */
211
+ .vd-input-field:hover:not(:has(:disabled)):not(.vd-input-disabled):not(.vd-input-error) {
212
+ @apply border-content-faint;
213
+ }
214
+
215
+ /* Focus — the border is Primary/Main, as Figma's State=active draws it. The
216
+ 2px focus ring below sits on top of it (negative offset), so this shows
217
+ only where the ring does not; it is set so the border is right whatever
218
+ draws over it. After hover, at the same specificity, so focus wins. */
219
+ .vd-input-field:focus-within:not(:has(:disabled)):not(.vd-input-disabled):not(.vd-input-error) {
220
+ @apply border-primary;
197
221
  }
198
222
 
199
- /* Focus */
200
223
  .vd-input-field:focus-within {
201
224
  @apply focus-ring;
202
225
  /* THE ACTIVE HALO (0.6.0). Figma's State=active draws a 3px halo around the
@@ -213,6 +236,14 @@
213
236
  @apply border-critical;
214
237
  }
215
238
 
239
+ /* Error, hovered or focused — Critical/Strong on Input Field ONLY. Search
240
+ Field, Dropdown Field and Text Area keep Critical/Main in those states, so
241
+ the search modifier is excluded by name. Disabled keeps Critical/Main. */
242
+ .vd-input-field.vd-input-error:hover:not(:has(:disabled)):not(.vd-input-disabled):not(.vd-input-search),
243
+ .vd-input-field.vd-input-error:focus-within:not(.vd-input-search) {
244
+ @apply border-critical-strong;
245
+ }
246
+
216
247
  /* Active + error. AS DRAWN, AND THE FOUR SETS DISAGREE: Input Field's halo
217
248
  turns Neutral/Soft when the field is in error; Search Field, Dropdown
218
249
  Field and Text Area keep Primary/Soft. Each follows its own set, so the
@@ -226,10 +257,18 @@
226
257
  }
227
258
 
228
259
  /* Disabled — Rev3 fills: Action/Subtle on the White BG, Surface/Neutral on
229
- the Neutral BG (each one step below its rest fill). */
260
+ the Neutral BG (each one step below its rest fill). The border is
261
+ Stroke/Disabled (was Stroke/Divider) — except in error, where Figma's
262
+ disabled + error variants keep Critical/Main. Through 0.7.0 this rule
263
+ came after the error rule at the same specificity and greyed it out. */
230
264
  .vd-input-field:has(:disabled),
231
265
  .vd-input-field.vd-input-disabled {
232
- @apply bg-action-subtle border-stroke-divider cursor-not-allowed;
266
+ @apply bg-action-subtle cursor-not-allowed;
267
+ }
268
+
269
+ .vd-input-field:has(:disabled):not(.vd-input-error),
270
+ .vd-input-field.vd-input-disabled:not(.vd-input-error) {
271
+ @apply border-stroke-disabled;
233
272
  }
234
273
 
235
274
  .vd-input-bg-neutral:has(:disabled),
@@ -245,7 +284,7 @@
245
284
 
246
285
  .vd-input-error-message {
247
286
  @apply flex items-center w-full pt-1.5; /* 6px top padding */
248
- @apply text-[11px] leading-[normal] font-normal;
287
+ @apply text-body-default; /* 14 / 20 — Figma's Error Message binds Body/Default (2026-11-30; was a raw 11px) */
249
288
  @apply text-critical-strong;
250
289
  }
251
290
 
@@ -12,7 +12,7 @@
12
12
  * Nothing is pinned — the box is 1 + 1 + the 12px line + 1 + 1.
13
13
  *
14
14
  * Use a <kbd>: it is the element for keyboard input, and it needs no role.
15
- * Content/Tertiary on Paper is 4.74:1 in Light and 5.22 in Onyx.
15
+ * Content/Tertiary on Paper is 5.32:1 in Light and 5.22 in Onyx.
16
16
  */
17
17
 
18
18
  @layer components {
@@ -71,8 +71,12 @@
71
71
 
72
72
  @layer components {
73
73
  .vd-link {
74
- /* Layout — strong's container; critical widens the gap below. */
75
- @apply inline-flex items-center gap-1; /* 4px */
74
+ /* Layout — strong's container; critical widens the gap below. 2px above
75
+ and below (2026-11-30): Figma's strong and critical frames are 24 tall,
76
+ 2 + the 20px line + 2. Quiet and monospace are not auto-layout frames in
77
+ the file but place their text 2px down, so every standalone style takes
78
+ it. */
79
+ @apply inline-flex items-center gap-1 py-0.5; /* 4px gap, 2px */
76
80
 
77
81
  /* Type — strong. Rev3 binds Body/Default Strong: 14 / 20 / 500 (it was a
78
82
  raw 14px SemiBold 600 with an Auto line). */
@@ -28,8 +28,8 @@
28
28
  * size box ring track arc
29
29
  * XS 12 1.5 Stroke/Divider Primary/Main
30
30
  * SM 16 2 Stroke/Divider Primary/Main
31
- * MD 24 2.52 Stroke/Divider Primary/Main
32
- * LG 32 3.04 Stroke/Divider Primary/Main
31
+ * MD 24 2.5 Stroke/Divider Primary/Main
32
+ * LG 32 3 Stroke/Divider Primary/Main
33
33
  *
34
34
  * Those are the annulus thicknesses in the exported Track paths (XS outer r=6
35
35
  * inner r=4.5; MD 12/9.48; LG 16/12.96) and they are what Figma renders —
@@ -108,12 +108,12 @@
108
108
  }
109
109
 
110
110
  .vd-loading-indicator-md:not(.vd-loading-indicator-dots) {
111
- --loading-ring: 2.52px;
111
+ --loading-ring: 2.5px; /* the file's real ellipses state 2.5 (was 2.52, traced from the old SVG) */
112
112
  @apply size-6; /* 24px */
113
113
  }
114
114
 
115
115
  .vd-loading-indicator-lg:not(.vd-loading-indicator-dots) {
116
- --loading-ring: 3.04px;
116
+ --loading-ring: 3px; /* 3 (was 3.04) */
117
117
  @apply size-8; /* 32px */
118
118
  }
119
119
 
@@ -143,7 +143,7 @@
143
143
  @apply block shrink-0 rounded-pill;
144
144
  width: var(--loading-dot);
145
145
  height: var(--loading-dot);
146
- @apply bg-secondary;
146
+ @apply bg-content-secondary; /* Figma binds Content/Secondary (2026-11-30; was Secondary/Main — the same value in both themes) */
147
147
 
148
148
  animation: valiify-loading-pulse 1.4s ease-in-out infinite;
149
149
  }