@valiify/dashboard-ui 0.5.0 → 0.6.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 +247 -0
- package/COMPONENTS.md +1072 -12
- package/README.md +40 -7
- package/class-manifest.json +188 -2
- package/dist/dashboard-ui.css +2297 -194
- package/dist/index.css +2841 -915
- package/package.json +4 -3
- package/src/components/add-funds-form.css +68 -0
- package/src/components/alert.css +33 -56
- package/src/components/avatar.css +38 -2
- package/src/components/button.css +24 -19
- package/src/components/card.css +1 -1
- package/src/components/checklist-group.css +115 -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 +108 -0
- package/src/components/data-row.css +71 -19
- package/src/components/dropdown-field.css +9 -0
- package/src/components/entity-header.css +61 -0
- package/src/components/field-verification.css +113 -38
- package/src/components/finding-card.css +117 -0
- package/src/components/finding-option.css +39 -0
- package/src/components/finding-row.css +45 -0
- package/src/components/funding-status.css +61 -0
- package/src/components/funding-total.css +56 -0
- package/src/components/funding-transaction.css +103 -0
- package/src/components/index.css +29 -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 +10 -0
- package/src/components/modal.css +10 -2
- package/src/components/navigation-rail.css +200 -0
- package/src/components/overlay-scrim.css +26 -0
- package/src/components/owner-table-header.css +42 -0
- package/src/components/ownership.css +73 -0
- package/src/components/panel-section-header.css +53 -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/resize-handle.css +131 -0
- package/src/components/resolved-row.css +50 -0
- package/src/components/scrollbar.css +47 -0
- package/src/components/severity-count.css +50 -0
- package/src/components/severity-marker.css +66 -0
- package/src/components/snapshot-metric.css +72 -0
- package/src/components/summary-preview.css +72 -0
- package/src/components/switch.css +10 -1
- package/src/components/tabs.css +14 -0
- package/src/components/tag.css +20 -0
- package/src/components/textarea.css +4 -0
- package/src/components/toast.css +9 -5
- package/src/components/tooltip.css +14 -8
- package/src/themes/valiify-tokens.css +240 -6
- package/src/themes/valiify.css +243 -6
- package/types/components.d.ts +294 -9
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
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,132 @@
|
|
|
79
114
|
|
|
80
115
|
@layer components {
|
|
81
116
|
.vd-field-verification {
|
|
82
|
-
/*
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
/*
|
|
89
|
-
|
|
90
|
-
|
|
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
|
+
.vd-field-verification-compact {
|
|
126
|
+
@apply gap-0 px-1 py-0.75; /* 4px / 3px — 3 + 16 + 3 = 22 */
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.vd-field-verification-compact .vd-field-verification-label {
|
|
130
|
+
@apply sr-only;
|
|
91
131
|
}
|
|
92
132
|
|
|
93
133
|
/* --- Parts -------------------------------------------------------------- */
|
|
94
134
|
|
|
95
|
-
/* The
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
135
|
+
/* The 24×22 slot for a Severity Marker or a 14px glyph. 22 is the first
|
|
136
|
+
line's box (2 + 20), so the mark centres on the title, not on the block. */
|
|
137
|
+
.vd-field-verification-mark {
|
|
138
|
+
@apply inline-flex shrink-0 items-center justify-center;
|
|
139
|
+
@apply h-[22px] w-6; /* 22px × 24px */
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* A row built on the mark slot: no left inset, 8px gap, 1px padding-y. */
|
|
143
|
+
.vd-field-verification:has(> .vd-field-verification-mark) {
|
|
144
|
+
@apply gap-2 py-px pl-0; /* 8px, 1px */
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Legacy mismatch glyph slot (a bare 15px icon in an 18px box). Kept for
|
|
148
|
+
existing markup; new markup uses `-mark`. */
|
|
99
149
|
.vd-field-verification-icon {
|
|
100
150
|
@apply inline-flex h-[18px] shrink-0 items-center justify-center;
|
|
101
151
|
}
|
|
102
152
|
|
|
103
153
|
.vd-field-verification-label {
|
|
104
|
-
@apply text-body-default; /*
|
|
154
|
+
@apply text-body-default; /* 14 / 20 / 400 */
|
|
105
155
|
}
|
|
106
156
|
|
|
107
|
-
/* ---
|
|
157
|
+
/* --- Stacked (title + a second line) ------------------------------------ */
|
|
158
|
+
|
|
159
|
+
/* Tops-aligned, no row padding: the stack carries its own 2px top inset. */
|
|
160
|
+
.vd-field-verification:has(.vd-field-verification-details) {
|
|
161
|
+
@apply items-start py-0;
|
|
162
|
+
}
|
|
108
163
|
|
|
109
164
|
.vd-field-verification-details {
|
|
110
|
-
@apply flex flex-col items-start gap-1; /* 4px */
|
|
165
|
+
@apply flex flex-col items-start gap-1 pt-0.5; /* 4px, 2px */
|
|
111
166
|
min-width: 0;
|
|
112
167
|
}
|
|
113
168
|
|
|
114
|
-
/*
|
|
169
|
+
/* A finding's title is Body/Default Strong (14 / 20 / 500). */
|
|
170
|
+
.vd-field-verification-details .vd-field-verification-label {
|
|
171
|
+
@apply text-body-default-strong;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* The reason — Body/Default since 0.6.0 (was mono Data/Compact). */
|
|
115
175
|
.vd-field-verification-detail {
|
|
116
|
-
@apply text-
|
|
117
|
-
|
|
176
|
+
@apply text-body-default text-content-secondary; /* 14 / 20 / 400 */
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* Resolved's second line: who and when. Body/Dense, Content/Tertiary. */
|
|
180
|
+
.vd-field-verification-meta {
|
|
181
|
+
@apply text-body-dense text-content-tertiary; /* 13 / 18 / 400 */
|
|
118
182
|
}
|
|
119
183
|
|
|
120
|
-
/*
|
|
184
|
+
/* Legacy action row — plain text plus an arrow. Not drawn at Action=None,
|
|
185
|
+
which is the only form the library documents; kept for existing markup. */
|
|
121
186
|
.vd-field-verification-action {
|
|
122
187
|
@apply inline-flex items-center gap-1.75; /* 7px */
|
|
123
|
-
@apply text-action-compact; /*
|
|
188
|
+
@apply text-action-compact; /* 12 / 16 / 500 */
|
|
124
189
|
@apply cursor-pointer;
|
|
125
190
|
}
|
|
126
191
|
|
|
127
192
|
/* --- States ------------------------------------------------------------- */
|
|
128
193
|
|
|
129
|
-
/* verified:
|
|
194
|
+
/* verified: Content/Secondary label (0.6.0; was Tertiary). The marker is a
|
|
195
|
+
Section Marker and brings its own Approved/Main. */
|
|
130
196
|
.vd-field-verification-verified {
|
|
131
|
-
@apply text-content-
|
|
197
|
+
@apply text-content-secondary;
|
|
132
198
|
}
|
|
199
|
+
|
|
133
200
|
.vd-field-verification-verified .vd-field-verification-icon {
|
|
134
201
|
@apply text-approved;
|
|
135
202
|
}
|
|
136
203
|
|
|
137
|
-
/* pending and none:
|
|
138
|
-
|
|
139
|
-
The colour cascades into the nested `.vd-section-marker`, which sets none of
|
|
140
|
-
its own without a status class. */
|
|
204
|
+
/* pending and none: Content/Tertiary, cascading into the nested Section
|
|
205
|
+
Marker, which sets no colour of its own without a status class. */
|
|
141
206
|
.vd-field-verification-pending,
|
|
142
207
|
.vd-field-verification-none {
|
|
143
208
|
@apply text-content-tertiary;
|
|
144
209
|
}
|
|
145
210
|
|
|
146
|
-
/* none carries only the 16px marker; Figma pads it 1px (an 18px frame)
|
|
147
|
-
not the label rows' 2px. */
|
|
211
|
+
/* none carries only the 16px marker; Figma pads it 1px (an 18px frame). */
|
|
148
212
|
.vd-field-verification-none {
|
|
149
213
|
@apply py-0.25;
|
|
150
214
|
}
|
|
151
215
|
|
|
152
|
-
/*
|
|
153
|
-
|
|
154
|
-
|
|
216
|
+
/* warning, and mismatch — which Figma re-toned to the same Warning/Content
|
|
217
|
+
in 0.6.0 (it was Critical/Main). */
|
|
218
|
+
.vd-field-verification-warning,
|
|
219
|
+
.vd-field-verification-mismatch {
|
|
220
|
+
@apply text-warning-content;
|
|
155
221
|
}
|
|
156
222
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
223
|
+
.vd-field-verification-critical {
|
|
224
|
+
@apply text-critical-content;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* resolved: Content/Primary title at the regular weight, Approved/Main check. */
|
|
228
|
+
.vd-field-verification-resolved {
|
|
229
|
+
@apply text-content-primary;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.vd-field-verification-resolved .vd-field-verification-label {
|
|
233
|
+
@apply text-body-default; /* 400 — a resolved line is not a finding title */
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.vd-field-verification-resolved .vd-field-verification-mark {
|
|
237
|
+
@apply text-approved;
|
|
161
238
|
}
|
|
162
239
|
|
|
163
240
|
/* --- Ring --------------------------------------------------------------- */
|
|
164
241
|
|
|
165
|
-
/* Figma boolean, hidden by default
|
|
166
|
-
has no radius either. */
|
|
167
|
-
/* Rev3 draws Figma's Ring 2px Primary/Main OUTSIDE (was inset). */
|
|
242
|
+
/* Figma boolean, hidden by default: 2px Primary/Main, OUTSIDE, square. */
|
|
168
243
|
.vd-field-verification.vd-with-ring {
|
|
169
244
|
outline: var(--border-micro) solid var(--color-primary);
|
|
170
245
|
outline-offset: 0;
|
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
* …fields…
|
|
18
|
+
* <div class="vd-finding-card-footer"><button class="vd-btn vd-btn-primary">Send request</button></div>
|
|
19
|
+
* </section>
|
|
20
|
+
*
|
|
21
|
+
* A card: Surface/Card, a 1px Stroke/Border, 8px radius, 12px padding on the
|
|
22
|
+
* sides and bottom and none on top (the 40px header supplies it), 8px between
|
|
23
|
+
* blocks. Its height follows its content.
|
|
24
|
+
*
|
|
25
|
+
* THE THREE STATES ARE THREE COMPOSITIONS, NOT THREE CLASSES. Nothing about the
|
|
26
|
+
* card itself changes between them — only which blocks it holds:
|
|
27
|
+
*
|
|
28
|
+
* choosing reason · options · a note field · a disabled primary button
|
|
29
|
+
* requesting reason · options · a field label + select · a note · the button
|
|
30
|
+
* requested reason · a decision box · a status line
|
|
31
|
+
*
|
|
32
|
+
* header 40px: marker, title (Body/Default Strong), an Icon Button
|
|
33
|
+
* reason Body/Dense, Content/Secondary
|
|
34
|
+
* options Finding Options, 6px apart
|
|
35
|
+
* field-label Label/Compact, Content/Secondary
|
|
36
|
+
* decision Surface/Neutral, 6px radius, 10/8 padding, 2px gap: a title
|
|
37
|
+
* (Body/Dense Strong) with an Edit action, a meta line
|
|
38
|
+
* (Supporting/Caption, Content/Tertiary), a note (Body/Dense,
|
|
39
|
+
* Content/Secondary)
|
|
40
|
+
* status Supporting/Caption, Content/Secondary
|
|
41
|
+
*
|
|
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`.
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
@layer components {
|
|
51
|
+
.vd-finding-card {
|
|
52
|
+
@apply flex w-full flex-col gap-2; /* 8px */
|
|
53
|
+
@apply px-3 pb-3; /* 12px sides and bottom; the header is the top */
|
|
54
|
+
@apply rounded-surface; /* 8px */
|
|
55
|
+
@apply border border-[length:var(--border-line)] border-stroke-border;
|
|
56
|
+
@apply bg-surface-card;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* 40px — 10 + the 20px title line + 10. */
|
|
60
|
+
.vd-finding-card-header {
|
|
61
|
+
@apply flex items-center gap-3 py-2.5; /* 12px, 10px */
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.vd-finding-card-title {
|
|
65
|
+
@apply flex-1 truncate;
|
|
66
|
+
@apply text-body-default-strong text-content-primary; /* 14 / 20 / 500 */
|
|
67
|
+
min-width: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.vd-finding-card-reason {
|
|
71
|
+
@apply text-body-dense text-content-secondary; /* 13 / 18 / 400 */
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.vd-finding-card-options {
|
|
75
|
+
@apply flex flex-col gap-1.5; /* 6px */
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.vd-finding-card-field-label {
|
|
79
|
+
@apply text-label-compact text-content-secondary; /* 12 / 16 / 600 */
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.vd-finding-card-footer {
|
|
83
|
+
@apply flex items-center gap-2;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* --- Requested: the decision on record ------------------------------- */
|
|
87
|
+
|
|
88
|
+
.vd-finding-card-decision {
|
|
89
|
+
@apply flex flex-col gap-0.5; /* 2px */
|
|
90
|
+
@apply px-2.5 py-2; /* 10px / 8px */
|
|
91
|
+
@apply rounded-control; /* 6px */
|
|
92
|
+
@apply bg-surface-neutral;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.vd-finding-card-decision-top {
|
|
96
|
+
@apply flex items-center justify-between gap-2;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.vd-finding-card-decision-title {
|
|
100
|
+
@apply text-body-dense-strong text-content-primary; /* 13 / 18 / 500 */
|
|
101
|
+
}
|
|
102
|
+
|
|
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. */
|
|
106
|
+
.vd-finding-card-decision-meta {
|
|
107
|
+
@apply text-supporting-caption text-content-secondary; /* 12 / 18 / 400 */
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.vd-finding-card-decision-note {
|
|
111
|
+
@apply text-body-dense text-content-secondary; /* 13 / 18 / 400 */
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.vd-finding-card-status {
|
|
115
|
+
@apply text-supporting-caption text-content-secondary; /* 12 / 18 / 400 */
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/* 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
|
+
@apply rounded-control; /* 6px */
|
|
31
|
+
@apply border border-[length:var(--border-line)] border-stroke-divider;
|
|
32
|
+
@apply bg-surface-paper;
|
|
33
|
+
@apply transition-colors duration-150;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.vd-finding-option:has(.vd-radio-select-input:checked) {
|
|
37
|
+
@apply border-primary bg-primary-soft;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -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,56 @@
|
|
|
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 w-[536px] shrink-0 flex-col gap-0.5; /* 2px */
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.vd-funding-total-label {
|
|
40
|
+
@apply text-action-compact-active text-content-tertiary; /* 12 / 16 / 600 */
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.vd-funding-total-amount {
|
|
44
|
+
@apply text-heading-section text-content-primary; /* 18 / 24 / 600 */
|
|
45
|
+
font-variant-numeric: tabular-nums;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.vd-funding-total-status {
|
|
49
|
+
@apply flex flex-1 items-center;
|
|
50
|
+
min-width: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.vd-funding-total-actions {
|
|
54
|
+
@apply flex w-[78px] shrink-0 items-center gap-1.5; /* 6px */
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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 w-[536px] shrink-0 items-center gap-4; /* 16px */
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.vd-funding-transaction-title {
|
|
62
|
+
@apply flex-1 truncate;
|
|
63
|
+
@apply text-body-default text-content-tertiary; /* 14 / 20 / 400 */
|
|
64
|
+
min-width: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.vd-funding-transaction-method {
|
|
68
|
+
@apply text-body-default-strong text-content-primary; /* 14 / 20 / 500 */
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.vd-funding-transaction-meta {
|
|
72
|
+
@apply text-body-default text-content-tertiary;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.vd-funding-transaction-amount {
|
|
76
|
+
@apply w-24 shrink-0; /* 96px */
|
|
77
|
+
@apply text-body-default-strong text-content-primary;
|
|
78
|
+
font-variant-numeric: tabular-nums;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.vd-funding-transaction-status {
|
|
82
|
+
@apply flex flex-1 items-center justify-between gap-2;
|
|
83
|
+
min-width: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.vd-funding-transaction-actions {
|
|
87
|
+
@apply flex w-[78px] shrink-0 items-center;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Additive, on the Refund Text Button. */
|
|
91
|
+
.vd-funding-transaction-action {
|
|
92
|
+
@apply opacity-0 transition-opacity duration-150;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.vd-funding-transaction:hover .vd-funding-transaction-action,
|
|
96
|
+
.vd-funding-transaction:focus-within .vd-funding-transaction-action {
|
|
97
|
+
@apply opacity-100;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.vd-funding-transaction-refunded .vd-funding-transaction-amount {
|
|
101
|
+
@apply text-content-tertiary;
|
|
102
|
+
}
|
|
103
|
+
}
|