@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
@@ -0,0 +1,157 @@
1
+ /**
2
+ * Finding Card
3
+ *
4
+ * An open finding in the panel: what was found, and what to do about it.
5
+ * Extracted from Figma Finding Card (2038:37176) — 3 variants on a `State` axis.
6
+ * Figma: "Choosing = Request/Waive options; Requesting = document + from +
7
+ * note; Requested = waiting on applicant."
8
+ *
9
+ * <section class="vd-finding-card" aria-labelledby="f1">
10
+ * <header class="vd-finding-card-header">
11
+ * <span class="vd-severity-marker vd-severity-marker-critical" role="img" aria-label="Critical"></span>
12
+ * <h4 class="vd-finding-card-title" id="f1">Address not verified</h4>
13
+ * <button class="vd-icon-button vd-icon-button-inline" aria-label="Show on page">…</button>
14
+ * </header>
15
+ * <p class="vd-finding-card-reason">No record at 123 Fake St.</p>
16
+ * <div class="vd-finding-card-options" role="radiogroup" aria-label="Resolution">…Finding Options…</div>
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>
21
+ * <div class="vd-finding-card-footer"><button class="vd-btn vd-btn-primary">Send request</button></div>
22
+ * </section>
23
+ *
24
+ * A card: Surface/Card, a 1px Stroke/Border, 8px radius, 12px padding on the
25
+ * sides and bottom and none on top (the 40px header supplies it), 8px between
26
+ * blocks. Its height follows its content.
27
+ *
28
+ * THE THREE STATES ARE THREE COMPOSITIONS, NOT THREE CLASSES. Nothing about the
29
+ * card itself changes between them — only which blocks it holds:
30
+ *
31
+ * choosing reason · options · a note · a disabled primary button 296px
32
+ * requesting reason · options · Document and From · a note · button 350px
33
+ * requested reason · a decision box · a status line
34
+ *
35
+ * header 40px: marker, title (Body/Default Strong), an Icon Button
36
+ * reason Body/Dense, 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
41
+ * decision Surface/Neutral, 6px radius, 10/8 padding, 2px gap: a title
42
+ * (Body/Dense Strong) with an Edit action, a meta line
43
+ * (Supporting/Caption, Content/Tertiary), a note (Body/Dense,
44
+ * Content/Secondary)
45
+ * status Supporting/Caption, Content/Secondary
46
+ *
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`.
63
+ */
64
+
65
+ @layer components {
66
+ .vd-finding-card {
67
+ @apply flex w-full flex-col gap-2; /* 8px */
68
+ @apply px-3 pb-3; /* 12px sides and bottom; the header is the top */
69
+ @apply rounded-surface; /* 8px */
70
+ @apply border border-[length:var(--border-line)] border-stroke-border;
71
+ @apply bg-surface-card;
72
+ }
73
+
74
+ /* 40px — 10 + the 20px title line + 10. */
75
+ .vd-finding-card-header {
76
+ @apply flex items-center gap-3 py-2.5; /* 12px, 10px */
77
+ }
78
+
79
+ .vd-finding-card-title {
80
+ @apply flex-1 truncate;
81
+ @apply text-body-default-strong text-content-primary; /* 14 / 20 / 500 */
82
+ min-width: 0;
83
+ }
84
+
85
+ .vd-finding-card-reason {
86
+ @apply text-body-dense text-content-secondary; /* 13 / 18 / 400 */
87
+ }
88
+
89
+ .vd-finding-card-options {
90
+ @apply flex flex-col gap-1.5; /* 6px */
91
+ }
92
+
93
+ /* Requesting: Document and From, two small Dropdown Fields with their own
94
+ labels, sharing the width 8px apart (0.7.0 — Figma's "Request fields"). */
95
+ .vd-finding-card-fields {
96
+ @apply flex items-start gap-2; /* 8px */
97
+ }
98
+
99
+ .vd-finding-card-fields > * {
100
+ @apply flex-1;
101
+ min-width: 0;
102
+ }
103
+
104
+ /* Additive, on the note's `.vd-textarea-field vd-textarea-sm` (0.7.0): the
105
+ height Figma's small Text Area is drawn at — Height/Textarea/SM, 80px — as
106
+ a floor, so the field still grows when the textarea is dragged. Stretching
107
+ the row makes the <textarea> fill the box, so a click anywhere in it lands
108
+ in the field. The selector names both classes: Textarea's own size classes
109
+ set a min-height too and come later in the source. */
110
+ .vd-textarea-field.vd-finding-card-note {
111
+ @apply min-h-textarea-sm items-stretch; /* 80px — Height/Textarea/SM */
112
+ }
113
+
114
+ /* Not drawn since 0.7.0: each Dropdown Field carries its own label now. Kept
115
+ so 0.6.0 markup still renders. */
116
+ .vd-finding-card-field-label {
117
+ @apply text-label-compact text-content-secondary; /* 12 / 16 / 600 */
118
+ }
119
+
120
+ /* Right-aligned since 0.7.0 — Figma's Footer packs to the end. */
121
+ .vd-finding-card-footer {
122
+ @apply flex items-center justify-end gap-2;
123
+ }
124
+
125
+ /* --- Requested: the decision on record ------------------------------- */
126
+
127
+ .vd-finding-card-decision {
128
+ @apply flex flex-col gap-0.5; /* 2px */
129
+ @apply px-2.5 py-2; /* 10px / 8px */
130
+ @apply rounded-control; /* 6px */
131
+ @apply bg-surface-neutral;
132
+ }
133
+
134
+ .vd-finding-card-decision-top {
135
+ @apply flex items-center justify-between gap-2;
136
+ }
137
+
138
+ .vd-finding-card-decision-title {
139
+ @apply text-body-dense-strong text-content-primary; /* 13 / 18 / 500 */
140
+ }
141
+
142
+ /* Content/Tertiary, as Figma binds it. It shipped Content/Secondary in 0.6.0
143
+ because the old Light Tertiary (#727280) was 4.20:1 on the decision box's
144
+ Surface/Neutral; the token is #6a6a78 since 0.7.0 — 4.72 here, 4.90 in
145
+ Onyx — so the divergence is gone (designer-list item 95, resolved). */
146
+ .vd-finding-card-decision-meta {
147
+ @apply text-supporting-caption text-content-tertiary; /* 12 / 18 / 400 */
148
+ }
149
+
150
+ .vd-finding-card-decision-note {
151
+ @apply text-body-dense text-content-secondary; /* 13 / 18 / 400 */
152
+ }
153
+
154
+ .vd-finding-card-status {
155
+ @apply text-supporting-caption text-content-secondary; /* 12 / 18 / 400 */
156
+ }
157
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Finding Option
3
+ *
4
+ * One choice inside an open Finding Card — Request, or Waive. Extracted from
5
+ * Figma Finding Option (2038:36876) — 2 variants on `Selected`, plus a `Label`
6
+ * text property. Figma: "Selected adds the tinted fill and ring."
7
+ *
8
+ * <label class="vd-radio-select vd-finding-option">
9
+ * <input type="radio" name="resolution" class="vd-radio-select-input" />
10
+ * <span class="vd-radio-select-label">Request a document</span>
11
+ * </label>
12
+ *
13
+ * ADDITIVE ON RADIO SELECT. Figma nests a Radio instance in a box; the label
14
+ * element is already RadioSelect's `<label>`, so `.vd-finding-option` goes on
15
+ * the same element and adds only the box: Surface/Paper, a 1px Stroke/Divider,
16
+ * 6px radius — 40px tall, as drawn.
17
+ *
18
+ * SELECTED IS THE RADIO'S OWN STATE: `:has(:checked)` swaps the fill to
19
+ * Primary/Soft and the border to Primary/Main, so there is no selected class
20
+ * to keep in step with the input. Group the options in a `role="radiogroup"`.
21
+ */
22
+
23
+ @layer components {
24
+ .vd-finding-option {
25
+ @apply flex w-full items-center;
26
+ @apply rounded-control; /* 6px */
27
+ @apply border border-[length:var(--border-line)] border-stroke-divider;
28
+ @apply bg-surface-paper;
29
+ @apply transition-colors duration-150;
30
+ }
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
+
42
+ .vd-finding-option:has(.vd-radio-select-input:checked) {
43
+ @apply border-primary bg-primary-soft;
44
+ }
45
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Finding Row
3
+ *
4
+ * A closed finding in the panel: its severity and title. Extracted from Figma
5
+ * Finding Row (2038:36911) — a single symbol with a `Label` text property.
6
+ * Figma: "No chevron; click opens the Finding Card."
7
+ *
8
+ * <button class="vd-finding-row">
9
+ * <span class="vd-severity-marker vd-severity-marker-critical" role="img" aria-label="Critical"></span>
10
+ * <span class="vd-finding-row-label">International wires expected</span>
11
+ * </button>
12
+ *
13
+ * 36px tall (8 + the 20px line + 8), 12px padding-x, 12px gap. The label is
14
+ * Body/Default in Content/Primary and truncates. The marker is a Severity
15
+ * Marker; swap its severity class.
16
+ *
17
+ * IT IS A BUTTON, and Figma draws only its rest state. The hover fill
18
+ * (Action/Subtle), the 6px radius and the focus ring are library decisions —
19
+ * a clickable row with no response is not shippable. Designer-list item 87.
20
+ */
21
+
22
+ @layer components {
23
+ .vd-finding-row {
24
+ @apply flex w-full items-center gap-3; /* 12px */
25
+ @apply px-3 py-2; /* 12px / 8px */
26
+ @apply rounded-control; /* 6px — a decision; see the header */
27
+
28
+ @apply appearance-none border-none bg-transparent text-left no-underline;
29
+ @apply text-body-default text-content-primary; /* 14 / 20 / 400 */
30
+ @apply cursor-pointer transition-colors duration-150;
31
+ }
32
+
33
+ .vd-finding-row-label {
34
+ @apply flex-1 truncate;
35
+ min-width: 0;
36
+ }
37
+
38
+ .vd-finding-row:hover {
39
+ @apply bg-action-subtle;
40
+ }
41
+
42
+ .vd-finding-row:focus-visible {
43
+ @apply focus-ring;
44
+ }
45
+ }
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Funding Status
3
+ *
4
+ * The status of a funding transaction. Extracted from Figma Funding Status
5
+ * (2016:43198) — 4 variants on a `Status` axis. Figma: "Shares the severity
6
+ * marker shapes so it lines up with row statuses."
7
+ *
8
+ * <span class="vd-funding-status vd-funding-status-pending">
9
+ * <span class="vd-severity-marker vd-severity-marker-info" aria-hidden="true"></span>Pending
10
+ * </span>
11
+ *
12
+ * status mark label
13
+ * pending Severity Marker, info (the ring) Content/Secondary
14
+ * funded a 16px #check Approved/Main
15
+ * refunded an 8×1.5 dash, Content/Faint Content/Tertiary
16
+ * failed Severity Marker, critical Critical/Main
17
+ *
18
+ * A mark and a label 7px apart, 20px tall. THE MARK IS A SLOT: two statuses
19
+ * nest a Severity Marker, one the sprite's check, and only the dash is this
20
+ * component's own (`.vd-funding-status-dash`, an 8px-wide box). The status
21
+ * class sets the label colour, which the check inherits.
22
+ *
23
+ * The label is raw Inter Medium 13 in Figma, no text style bound;
24
+ * Action/Default (13/18/500) is that size and weight. The mark repeats the
25
+ * label, so hide it from assistive tech.
26
+ */
27
+
28
+ @layer components {
29
+ .vd-funding-status {
30
+ @apply inline-flex shrink-0 items-center gap-1.75 py-px; /* 7px; 1 + 18 + 1 = 20 */
31
+ @apply text-action-default text-content-secondary; /* 13 / 18 / 500 */
32
+ @apply whitespace-nowrap;
33
+ }
34
+
35
+ /* refunded's mark: an 8px-wide slot, as tall as the line, holding a 1.5px dash */
36
+ .vd-funding-status-dash {
37
+ @apply inline-flex w-2 shrink-0 items-center self-stretch; /* 8px */
38
+ }
39
+
40
+ .vd-funding-status-dash::before {
41
+ content: "";
42
+ @apply block w-full bg-content-faint;
43
+ block-size: 1.5px;
44
+ }
45
+
46
+ .vd-funding-status-pending {
47
+ @apply text-content-secondary;
48
+ }
49
+
50
+ .vd-funding-status-funded {
51
+ @apply text-approved;
52
+ }
53
+
54
+ .vd-funding-status-refunded {
55
+ @apply text-content-tertiary;
56
+ }
57
+
58
+ .vd-funding-status-failed {
59
+ @apply text-critical;
60
+ }
61
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Funding Total
3
+ *
4
+ * The header of a record's funding section: the total funded, an overall
5
+ * status and an Add funds action. Extracted from Figma Funding Total
6
+ * (2038:32814) — a single symbol with an `Amount` text property.
7
+ *
8
+ * <div class="vd-funding-total">
9
+ * <div class="vd-funding-total-summary">
10
+ * <p class="vd-funding-total-label">Total funded</p>
11
+ * <p class="vd-funding-total-amount">$400.00</p>
12
+ * </div>
13
+ * <div class="vd-funding-total-status"><span class="vd-funding-status vd-funding-status-funded">…</span></div>
14
+ * <div class="vd-funding-total-actions"><button class="vd-text-button vd-text-button-text">Add funds</button></div>
15
+ * </div>
16
+ *
17
+ * The same three columns as Funding Transaction — 536, the status column, 78 —
18
+ * so the total's status sits above the transactions' statuses. 4px padding-x,
19
+ * 12px below and none above, 16px gap.
20
+ *
21
+ * THE TYPE IS RAW IN FIGMA: the label is Inter Semi Bold 12, the amount Semi
22
+ * Bold 18, both with an Auto line height. They ship as Action/Compact Active
23
+ * (12/16/600 — Label/Compact is the same weight but tracked 0.08em, which the
24
+ * raw label is not) and Heading/Section (18/24/600). The explicit line heights
25
+ * make the block 42px where Figma's Auto lines make it 39, so the row is 54
26
+ * tall against the file's 51. Designer-list item 92.
27
+ */
28
+
29
+ @layer components {
30
+ .vd-funding-total {
31
+ @apply flex w-full items-center gap-4; /* 16px */
32
+ @apply px-1 pb-3; /* 4px / 12px */
33
+ }
34
+
35
+ .vd-funding-total-summary {
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) */
38
+ }
39
+
40
+ .vd-funding-total-label {
41
+ @apply text-action-compact-active text-content-tertiary; /* 12 / 16 / 600 */
42
+ }
43
+
44
+ .vd-funding-total-amount {
45
+ @apply text-heading-section text-content-primary; /* 18 / 24 / 600 */
46
+ font-variant-numeric: tabular-nums;
47
+ }
48
+
49
+ .vd-funding-total-status {
50
+ @apply flex flex-1 items-center;
51
+ min-width: 0;
52
+ }
53
+
54
+ .vd-funding-total-actions {
55
+ @apply flex w-[78px] shrink-0 items-center gap-1.5; /* 6px */
56
+ }
57
+ }
@@ -0,0 +1,108 @@
1
+ /**
2
+ * Funding Transaction
3
+ *
4
+ * One funding transaction on a record. Extracted from Figma Funding
5
+ * Transaction (2016:48814) — 8 variants across State (Pending / Funded /
6
+ * Refunded / Failed) × Hover, plus Amount, Method and Meta text properties.
7
+ * Figma: "Status column lines up with the row status column; Refund appears on
8
+ * hover for pending and funded transactions."
9
+ *
10
+ * <div class="vd-funding-transaction">
11
+ * <div class="vd-funding-transaction-summary">
12
+ * <p class="vd-funding-transaction-title">
13
+ * <span class="vd-funding-transaction-method">Card ••1111</span>
14
+ * <span class="vd-funding-transaction-meta">· John Smith · Jul 8</span>
15
+ * </p>
16
+ * <span class="vd-funding-transaction-amount">$300.00</span>
17
+ * </div>
18
+ * <div class="vd-funding-transaction-status">
19
+ * <span class="vd-funding-status vd-funding-status-pending">…</span>
20
+ * <button class="vd-text-button vd-text-button-text vd-funding-transaction-action">Refund</button>
21
+ * </div>
22
+ * <div class="vd-funding-transaction-actions">…an Icon Button (inline)…</div>
23
+ * </div>
24
+ *
25
+ * ON THE RECORD'S COLUMN GRID: a 536px summary, the status column, a 78px
26
+ * action group — Content Row's and Data Row's columns, so the statuses line
27
+ * up down the page. 48px tall (14 + the 20px line + 14, not pinned), 4px
28
+ * padding-x, 16px gap, 6px radius. Hover is Action/HOVER — a step deeper than
29
+ * Content Row's and Data Row's Action/Subtle, as drawn.
30
+ *
31
+ * THE STATE IS THE NESTED FUNDING STATUS. The four State values change that
32
+ * instance and one thing more: a refunded transaction's amount steps to
33
+ * Content/Tertiary, which is `.vd-funding-transaction-refunded`.
34
+ *
35
+ * REFUND APPEARS ON HOVER AND FOCUS, at the far end of the status column.
36
+ * `.vd-funding-transaction-action` is additive on a Text Button (Figma draws
37
+ * bare Content/Secondary text there). It is the consumer's to leave out on a
38
+ * refunded or failed transaction, where Figma draws none.
39
+ *
40
+ * The type is raw in Figma — Inter 14 Medium and Regular, Auto line height.
41
+ * Body/Default Strong and Body/Default are those sizes. The amount is a fixed
42
+ * 96px column; its alignment was not read, and it ships left-aligned with
43
+ * tabular numerals. Designer-list item 92.
44
+ */
45
+
46
+ @layer components {
47
+ .vd-funding-transaction {
48
+ @apply flex w-full items-center gap-4; /* 16px */
49
+ @apply px-1 py-3.5; /* 4px / 14px */
50
+ @apply rounded-control; /* 6px */
51
+ }
52
+
53
+ .vd-funding-transaction:hover {
54
+ @apply bg-action-hover;
55
+ }
56
+
57
+ .vd-funding-transaction-summary {
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) */
60
+ }
61
+
62
+ .vd-funding-transaction-title {
63
+ @apply flex-1 truncate;
64
+ @apply text-body-default text-content-tertiary; /* 14 / 20 / 400 */
65
+ min-width: 0;
66
+ }
67
+
68
+ .vd-funding-transaction-method {
69
+ @apply text-body-default-strong text-content-primary; /* 14 / 20 / 500 */
70
+ }
71
+
72
+ .vd-funding-transaction-meta {
73
+ @apply text-body-default text-content-tertiary;
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). */
78
+ .vd-funding-transaction-amount {
79
+ @apply w-24 shrink-0 text-right; /* 96px */
80
+ @apply text-body-default-strong text-content-primary;
81
+ font-variant-numeric: tabular-nums;
82
+ }
83
+
84
+ .vd-funding-transaction-status {
85
+ @apply flex flex-1 items-center justify-between gap-2;
86
+ min-width: 0;
87
+ }
88
+
89
+ /* 78px, right-aligned (0.7.0 — Figma's container packs to the end, so the
90
+ chevron sits on the row's right edge, in line with Content Row's). */
91
+ .vd-funding-transaction-actions {
92
+ @apply flex w-[78px] shrink-0 items-center justify-end;
93
+ }
94
+
95
+ /* Additive, on the Refund Text Button. */
96
+ .vd-funding-transaction-action {
97
+ @apply opacity-0 transition-opacity duration-150;
98
+ }
99
+
100
+ .vd-funding-transaction:hover .vd-funding-transaction-action,
101
+ .vd-funding-transaction:focus-within .vd-funding-transaction-action {
102
+ @apply opacity-100;
103
+ }
104
+
105
+ .vd-funding-transaction-refunded .vd-funding-transaction-amount {
106
+ @apply text-content-tertiary;
107
+ }
108
+ }
@@ -5,41 +5,77 @@
5
5
  * Components are loaded in alphabetical order for consistency.
6
6
  */
7
7
 
8
+ @import "./add-funds-form.css";
8
9
  @import "./alert.css";
9
10
  @import "./avatar.css";
10
11
  @import "./breadcrumbs.css";
11
12
  @import "./button.css";
12
13
  @import "./card.css";
13
14
  @import "./checkbox.css";
15
+ @import "./checklist-group.css";
16
+ @import "./checklist-task.css";
14
17
  @import "./chip.css";
18
+ @import "./comment-date.css";
19
+ @import "./comment-item.css";
15
20
  @import "./composer.css";
21
+ @import "./content-row.css";
22
+ @import "./data-list.css";
16
23
  @import "./data-row.css";
17
24
  @import "./divider.css";
18
25
  @import "./dropdown-field.css";
19
26
  @import "./dropdown-menu.css";
27
+ @import "./entity-header.css";
20
28
  @import "./field-verification.css";
21
29
  @import "./filter-segment.css";
30
+ @import "./final-decision.css";
31
+ @import "./finding-card.css";
32
+ @import "./finding-option.css";
33
+ @import "./finding-row.css";
34
+ @import "./funding-status.css";
35
+ @import "./funding-total.css";
36
+ @import "./funding-transaction.css";
22
37
  @import "./icon.css";
23
38
  @import "./icon-button.css";
39
+ @import "./inline-confirm.css";
24
40
  @import "./input.css";
41
+ @import "./keycap.css";
25
42
  @import "./link.css";
26
43
  @import "./loading-indicator.css";
27
44
  @import "./loading-inline.css";
28
45
  @import "./menu-item.css";
29
46
  @import "./modal.css";
30
47
  @import "./navigation-rail.css";
48
+ @import "./overlay-scrim.css";
49
+ @import "./owner-row.css";
50
+ @import "./owner-table-header.css";
51
+ @import "./ownership.css";
31
52
  @import "./pagination.css";
32
53
  @import "./pagination-item.css";
54
+ @import "./panel-section-header.css";
55
+ @import "./panel-status.css";
56
+ @import "./panel-strip-button.css";
33
57
  @import "./pill.css";
34
58
  @import "./progress-bar.css";
59
+ @import "./progress-circle.css";
35
60
  @import "./radio-select.css";
36
61
  @import "./recipient-input.css";
62
+ @import "./record.css";
63
+ @import "./resize-handle.css";
64
+ @import "./resolved-row.css";
65
+ @import "./scoring-details.css";
66
+ @import "./scrollbar.css";
67
+ @import "./section-edit.css";
37
68
  @import "./section-marker.css";
38
69
  @import "./segment-selector.css";
39
70
  @import "./sensitive-data.css";
71
+ @import "./severity-count.css";
72
+ @import "./severity-marker.css";
40
73
  @import "./skeleton.css";
74
+ @import "./snapshot-metric.css";
41
75
  @import "./step.css";
42
76
  @import "./stepper.css";
77
+ @import "./summary-panel.css";
78
+ @import "./summary-preview.css";
43
79
  @import "./switch.css";
44
80
  @import "./tabs.css";
45
81
  @import "./tag.css";
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Inline Confirm
3
+ *
4
+ * A confirmation bar that opens under a row. Extracted from Figma Inline
5
+ * Confirm (2038:32951) — a single symbol. Figma: "message, Cancel, and the
6
+ * confirming action."
7
+ *
8
+ * <div class="vd-inline-confirm" role="group" aria-label="Confirm refund">
9
+ * <p class="vd-inline-confirm-message">Refund $300.00 to Card ••1111? This can't be undone.</p>
10
+ * <button class="vd-btn vd-btn-empty">Cancel</button>
11
+ * <button class="vd-btn vd-btn-critical">Refund $300.00</button>
12
+ * </div>
13
+ *
14
+ * A bar: Surface/Card, a 1px Stroke/Divider, 8px radius, 12/10 padding and an
15
+ * 8px gap — 50px tall around its 28px buttons (1 + 10 + 28 + 10 + 1). The
16
+ * message is Body/Dense in Content/Secondary and takes the free width; Figma
17
+ * types it as raw Inter Regular 13.
18
+ *
19
+ * The buttons are Button instances: empty for Cancel, and the confirming
20
+ * action in whatever display the action deserves — Figma draws CRITICAL, for a
21
+ * refund.
22
+ *
23
+ * FOCUS IS THE CONSUMER'S: when the bar appears, move focus to it (to Cancel,
24
+ * for a destructive action) and return it to the trigger when it closes. It
25
+ * is not a dialog and traps nothing.
26
+ */
27
+
28
+ @layer components {
29
+ .vd-inline-confirm {
30
+ @apply flex w-full items-center gap-2; /* 8px */
31
+ @apply px-3 py-2.5; /* 12px / 10px */
32
+ @apply rounded-surface; /* 8px */
33
+ @apply border border-[length:var(--border-line)] border-stroke-divider;
34
+ @apply bg-surface-card;
35
+ }
36
+
37
+ .vd-inline-confirm-message {
38
+ @apply flex-1;
39
+ @apply text-body-dense text-content-secondary; /* 13 / 18 / 400 */
40
+ min-width: 0;
41
+ }
42
+ }
@@ -199,6 +199,13 @@
199
199
  /* Focus */
200
200
  .vd-input-field:focus-within {
201
201
  @apply focus-ring;
202
+ /* THE ACTIVE HALO (0.6.0). Figma's State=active draws a 3px halo around the
203
+ field on all four field sets — a drop shadow with 0 offset, 0 blur and a
204
+ 3px spread, bound to Primary/Soft. It was in the file since Rev3 and
205
+ missed: get_variable_defs reported Primary/Soft on these sets, but the
206
+ binding is on an EFFECT, which no fill/stroke read sees. A box-shadow, so
207
+ it takes no layout space; an `overflow: hidden` ancestor clips it. */
208
+ box-shadow: 0 0 0 3px var(--color-primary-soft);
202
209
  }
203
210
 
204
211
  /* Error */
@@ -206,6 +213,18 @@
206
213
  @apply border-critical;
207
214
  }
208
215
 
216
+ /* Active + error. AS DRAWN, AND THE FOUR SETS DISAGREE: Input Field's halo
217
+ turns Neutral/Soft when the field is in error; Search Field, Dropdown
218
+ Field and Text Area keep Primary/Soft. Each follows its own set, so the
219
+ search modifier restates the base halo. Designer-list item 65. */
220
+ .vd-input-field.vd-input-error:focus-within {
221
+ box-shadow: 0 0 0 3px var(--color-neutral-soft);
222
+ }
223
+
224
+ .vd-input-field.vd-input-search.vd-input-error:focus-within {
225
+ box-shadow: 0 0 0 3px var(--color-primary-soft);
226
+ }
227
+
209
228
  /* Disabled — Rev3 fills: Action/Subtle on the White BG, Surface/Neutral on
210
229
  the Neutral BG (each one step below its rest fill). */
211
230
  .vd-input-field:has(:disabled),
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Keycap
3
+ *
4
+ * A keyboard-shortcut hint. Extracted from Figma Nav / Keycap (1663:43064) — a
5
+ * single symbol. Figma: "Keyboard shortcut hint used in Jump To and menus."
6
+ *
7
+ * <kbd class="vd-keycap">⌘K</kbd>
8
+ *
9
+ * 16px tall, hugging its keys: a 1px Stroke/Divider border (Stroke/Line, not
10
+ * the 0.5px hairline), 4px radius (Radius/XS), 4px padding-x, and
11
+ * Utility/Badge Count (10 / 12 / 500, JetBrains Mono) in Content/Tertiary.
12
+ * Nothing is pinned — the box is 1 + 1 + the 12px line + 1 + 1.
13
+ *
14
+ * Use a <kbd>: it is the element for keyboard input, and it needs no role.
15
+ * Content/Tertiary on Paper is 5.32:1 in Light and 5.22 in Onyx.
16
+ */
17
+
18
+ @layer components {
19
+ .vd-keycap {
20
+ @apply inline-flex shrink-0 items-center justify-center;
21
+ @apply px-1 py-px; /* 4px / 1px */
22
+ @apply rounded-tight; /* 4px */
23
+ @apply border border-[length:var(--border-line)] border-stroke-divider;
24
+ @apply text-utility-badge-count font-mono text-content-tertiary; /* 10 / 12 / 500 */
25
+ @apply whitespace-nowrap;
26
+ }
27
+ }