@valiify/dashboard-ui 0.5.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +456 -1
- package/COMPONENTS.md +2117 -704
- package/README.md +40 -7
- package/class-manifest.json +263 -2
- package/dist/dashboard-ui.css +4249 -1469
- package/dist/index.css +4056 -1453
- package/package.json +9 -8
- package/src/components/add-funds-form.css +69 -0
- package/src/components/alert.css +33 -56
- package/src/components/avatar.css +38 -2
- package/src/components/button.css +52 -29
- package/src/components/card.css +1 -1
- package/src/components/checklist-group.css +116 -0
- package/src/components/checklist-task.css +125 -0
- package/src/components/chip.css +145 -0
- package/src/components/comment-date.css +36 -0
- package/src/components/comment-item.css +59 -0
- package/src/components/content-row.css +133 -0
- package/src/components/data-list.css +91 -0
- package/src/components/data-row.css +84 -19
- package/src/components/dropdown-field.css +9 -0
- package/src/components/dropdown-menu.css +6 -2
- package/src/components/entity-header.css +61 -0
- package/src/components/field-verification.css +118 -38
- package/src/components/final-decision.css +51 -0
- package/src/components/finding-card.css +157 -0
- package/src/components/finding-option.css +45 -0
- package/src/components/finding-row.css +45 -0
- package/src/components/funding-status.css +61 -0
- package/src/components/funding-total.css +57 -0
- package/src/components/funding-transaction.css +108 -0
- package/src/components/index.css +36 -0
- package/src/components/inline-confirm.css +42 -0
- package/src/components/input.css +19 -0
- package/src/components/keycap.css +27 -0
- package/src/components/menu-item.css +38 -10
- package/src/components/modal.css +29 -2
- package/src/components/navigation-rail.css +322 -2
- package/src/components/overlay-scrim.css +26 -0
- package/src/components/owner-row.css +170 -0
- package/src/components/owner-table-header.css +57 -0
- package/src/components/ownership.css +73 -0
- package/src/components/panel-section-header.css +56 -0
- package/src/components/panel-status.css +23 -0
- package/src/components/panel-strip-button.css +31 -0
- package/src/components/progress-circle.css +89 -0
- package/src/components/radio-select.css +5 -2
- package/src/components/record.css +56 -0
- package/src/components/resize-handle.css +131 -0
- package/src/components/resolved-row.css +50 -0
- package/src/components/scoring-details.css +79 -0
- package/src/components/scrollbar.css +47 -0
- package/src/components/section-edit.css +109 -0
- package/src/components/severity-count.css +63 -0
- package/src/components/severity-marker.css +66 -0
- package/src/components/snapshot-metric.css +72 -0
- package/src/components/step.css +1 -1
- package/src/components/summary-panel.css +250 -0
- package/src/components/summary-preview.css +76 -0
- package/src/components/switch.css +10 -1
- package/src/components/tabs.css +3 -2
- package/src/components/tag.css +24 -2
- package/src/components/textarea.css +4 -0
- package/src/components/toast.css +10 -6
- package/src/components/tooltip.css +14 -8
- package/src/themes/valiify-tokens.css +241 -7
- package/src/themes/valiify.css +244 -7
- package/types/components.d.ts +386 -9
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checklist Task
|
|
3
|
+
*
|
|
4
|
+
* One item in a Checklist Group. Extracted from Figma Checklist Task
|
|
5
|
+
* (1848:59085) — 5 variants on a `State` axis (Unchecked, Unchecked hover,
|
|
6
|
+
* Checked, Held, Skipped), plus a `Label` text property. Figma: "Skipped takes
|
|
7
|
+
* the item out of play… Held items clear only through their finding."
|
|
8
|
+
*
|
|
9
|
+
* <label class="vd-checklist-task">
|
|
10
|
+
* <span class="vd-checklist-task-box">
|
|
11
|
+
* <span class="vd-checkbox-control">
|
|
12
|
+
* <input type="checkbox" class="vd-checkbox-input" />
|
|
13
|
+
* <svg class="vd-checkbox-check vd-icon vd-icon-size-10" aria-hidden="true"><use href="#check" /></svg>
|
|
14
|
+
* </span>
|
|
15
|
+
* </span>
|
|
16
|
+
* <span class="vd-checklist-task-text"><span class="vd-checklist-task-label">Online presence reviewed</span></span>
|
|
17
|
+
* <button type="button" class="vd-checklist-task-action">Skip</button>
|
|
18
|
+
* </label>
|
|
19
|
+
*
|
|
20
|
+
* 30px with one line (6 + 18 + 6), 50 with a detail line. Top-aligned, 10px
|
|
21
|
+
* gap: the 15px Checkbox control in a box with 2px above it (so it centres on
|
|
22
|
+
* the label's 18px line), then the text, then a trailing action.
|
|
23
|
+
*
|
|
24
|
+
* state box label detail / action
|
|
25
|
+
* unchecked Checkbox Content/Primary "Skip" on hover
|
|
26
|
+
* checked Checkbox, checked Content/Primary —
|
|
27
|
+
* held Checkbox, disabled Content/Secondary why it is held
|
|
28
|
+
* skipped a dash in a Surface/Neutral Content/Secondary who skipped it;
|
|
29
|
+
* box, 4px radius "Undo", always
|
|
30
|
+
*
|
|
31
|
+
* IT IS A <label> AROUND THE REAL CHECKBOX, so the whole row toggles it and
|
|
32
|
+
* names it. Checked and held come from the input's own :checked and :disabled
|
|
33
|
+
* — only held's dimmed label needs a class, `.vd-checklist-task-held`, since
|
|
34
|
+
* CSS cannot tell "disabled because held" from any other disabled.
|
|
35
|
+
*
|
|
36
|
+
* PINNED DIVERGENCE: hover does not move the content. Figma's hover variant
|
|
37
|
+
* adds 8px of padding-x inside the same 320px row, so the checkbox and label
|
|
38
|
+
* jump 8px right on pointer-enter. Here the row always carries that padding
|
|
39
|
+
* and pulls itself 8px wider with a negative margin, so the fill bleeds past
|
|
40
|
+
* the content instead. Designer-list item 90.
|
|
41
|
+
*
|
|
42
|
+
* The action is Action/Compact: Primary/Main for Skip, revealed on hover and
|
|
43
|
+
* focus; Content/Secondary for Undo, always visible. The label is Body/Dense,
|
|
44
|
+
* the detail Supporting/Caption in Content/Tertiary.
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
@layer components {
|
|
48
|
+
.vd-checklist-task {
|
|
49
|
+
@apply flex items-start gap-2.5; /* 10px */
|
|
50
|
+
@apply -mx-2 px-2 py-1.5; /* 8px bleed (see the header), 6px */
|
|
51
|
+
@apply rounded-control; /* 6px */
|
|
52
|
+
@apply cursor-pointer transition-colors duration-150;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.vd-checklist-task:hover {
|
|
56
|
+
@apply bg-surface-neutral;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* --- Parts ------------------------------------------------------------ */
|
|
60
|
+
|
|
61
|
+
/* 2px above the 15px control centres it on the 18px label line. */
|
|
62
|
+
.vd-checklist-task-box {
|
|
63
|
+
@apply inline-flex shrink-0 pt-0.5; /* 2px */
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.vd-checklist-task-text {
|
|
67
|
+
@apply flex flex-1 flex-col gap-0.5; /* 2px */
|
|
68
|
+
min-width: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.vd-checklist-task-label {
|
|
72
|
+
@apply text-body-dense text-content-primary; /* 13 / 18 / 400 */
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.vd-checklist-task-detail {
|
|
76
|
+
@apply text-supporting-caption text-content-tertiary; /* 12 / 18 / 400 */
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* "Skip" — revealed on hover and focus, like Data Row's actions. */
|
|
80
|
+
.vd-checklist-task-action {
|
|
81
|
+
@apply shrink-0 appearance-none border-none bg-transparent p-0;
|
|
82
|
+
@apply text-action-compact text-primary; /* 12 / 16 / 500 */
|
|
83
|
+
@apply mt-px cursor-pointer rounded-tight; /* 1px — centres the 16px line on the 18px one */
|
|
84
|
+
@apply opacity-0 transition-opacity duration-150;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.vd-checklist-task:hover .vd-checklist-task-action,
|
|
88
|
+
.vd-checklist-task:focus-within .vd-checklist-task-action {
|
|
89
|
+
@apply opacity-100;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.vd-checklist-task-action:focus-visible {
|
|
93
|
+
@apply focus-ring;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* The skipped box: a dash where the checkbox was. */
|
|
97
|
+
.vd-checklist-task-skip-box {
|
|
98
|
+
@apply inline-flex size-[15px] shrink-0 items-center justify-center;
|
|
99
|
+
@apply rounded-tight bg-surface-neutral; /* 4px */
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.vd-checklist-task-skip-box::before {
|
|
103
|
+
content: "";
|
|
104
|
+
@apply block bg-content-secondary;
|
|
105
|
+
width: 7px;
|
|
106
|
+
block-size: 1.5px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* --- States ----------------------------------------------------------- */
|
|
110
|
+
|
|
111
|
+
.vd-checklist-task-held,
|
|
112
|
+
.vd-checklist-task-skipped {
|
|
113
|
+
@apply cursor-default;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.vd-checklist-task-held .vd-checklist-task-label,
|
|
117
|
+
.vd-checklist-task-skipped .vd-checklist-task-label {
|
|
118
|
+
@apply text-content-secondary;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* "Undo" is always visible, and quieter. */
|
|
122
|
+
.vd-checklist-task-skipped .vd-checklist-task-action {
|
|
123
|
+
@apply text-content-secondary opacity-100;
|
|
124
|
+
}
|
|
125
|
+
}
|
package/src/components/chip.css
CHANGED
|
@@ -222,6 +222,151 @@
|
|
|
222
222
|
@apply bg-primary;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
+
/* Info/Main (0.6.0) — the "channel" group dot on a label Tag. */
|
|
226
|
+
.vd-dot-info {
|
|
227
|
+
@apply bg-info;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* --- Misc palette (0.6.0) --------------------------------------------- */
|
|
231
|
+
/* Categorical colour — a group, a source, a channel — NOT status, which
|
|
232
|
+
stays on the five variants above. Figma defines 18 hues × Dot / Soft / Text
|
|
233
|
+
and draws no Chip variants for them, so they ship as ONE modifier per
|
|
234
|
+
component plus ONE class per hue, not 54 variants:
|
|
235
|
+
|
|
236
|
+
<span class="vd-chip vd-chip-misc vd-misc-teal">…</span>
|
|
237
|
+
<span class="vd-dot vd-dot-sm vd-dot-misc vd-misc-purple"></span>
|
|
238
|
+
|
|
239
|
+
The hue class only sets three custom properties; the -misc modifier reads
|
|
240
|
+
them. The mapping is the one Figma's "Misc colours" boards state: Dot is
|
|
241
|
+
the marker, Soft the chip fill, Text the label on Soft. A -misc modifier
|
|
242
|
+
with no hue class falls back to the neutral treatment rather than
|
|
243
|
+
rendering unstyled. */
|
|
244
|
+
|
|
245
|
+
.vd-chip-misc {
|
|
246
|
+
background-color: var(--misc-soft, var(--color-neutral-soft));
|
|
247
|
+
color: var(--misc-text, var(--color-neutral-content));
|
|
248
|
+
.vd-chip-dot {
|
|
249
|
+
background-color: var(--misc-dot, var(--color-neutral-strong));
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.vd-badge-misc {
|
|
254
|
+
background-color: var(--misc-soft, var(--color-neutral-soft));
|
|
255
|
+
color: var(--misc-text, var(--color-neutral-content));
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.vd-dot-misc {
|
|
259
|
+
background-color: var(--misc-dot, var(--color-neutral-strong));
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.vd-misc-blue {
|
|
263
|
+
--misc-dot: var(--color-misc-blue-dot);
|
|
264
|
+
--misc-soft: var(--color-misc-blue-soft);
|
|
265
|
+
--misc-text: var(--color-misc-blue-text);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.vd-misc-indigo {
|
|
269
|
+
--misc-dot: var(--color-misc-indigo-dot);
|
|
270
|
+
--misc-soft: var(--color-misc-indigo-soft);
|
|
271
|
+
--misc-text: var(--color-misc-indigo-text);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.vd-misc-violet {
|
|
275
|
+
--misc-dot: var(--color-misc-violet-dot);
|
|
276
|
+
--misc-soft: var(--color-misc-violet-soft);
|
|
277
|
+
--misc-text: var(--color-misc-violet-text);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.vd-misc-purple {
|
|
281
|
+
--misc-dot: var(--color-misc-purple-dot);
|
|
282
|
+
--misc-soft: var(--color-misc-purple-soft);
|
|
283
|
+
--misc-text: var(--color-misc-purple-text);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.vd-misc-pink {
|
|
287
|
+
--misc-dot: var(--color-misc-pink-dot);
|
|
288
|
+
--misc-soft: var(--color-misc-pink-soft);
|
|
289
|
+
--misc-text: var(--color-misc-pink-text);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.vd-misc-rose {
|
|
293
|
+
--misc-dot: var(--color-misc-rose-dot);
|
|
294
|
+
--misc-soft: var(--color-misc-rose-soft);
|
|
295
|
+
--misc-text: var(--color-misc-rose-text);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.vd-misc-red {
|
|
299
|
+
--misc-dot: var(--color-misc-red-dot);
|
|
300
|
+
--misc-soft: var(--color-misc-red-soft);
|
|
301
|
+
--misc-text: var(--color-misc-red-text);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.vd-misc-orange {
|
|
305
|
+
--misc-dot: var(--color-misc-orange-dot);
|
|
306
|
+
--misc-soft: var(--color-misc-orange-soft);
|
|
307
|
+
--misc-text: var(--color-misc-orange-text);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.vd-misc-amber {
|
|
311
|
+
--misc-dot: var(--color-misc-amber-dot);
|
|
312
|
+
--misc-soft: var(--color-misc-amber-soft);
|
|
313
|
+
--misc-text: var(--color-misc-amber-text);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.vd-misc-yellow {
|
|
317
|
+
--misc-dot: var(--color-misc-yellow-dot);
|
|
318
|
+
--misc-soft: var(--color-misc-yellow-soft);
|
|
319
|
+
--misc-text: var(--color-misc-yellow-text);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.vd-misc-lime {
|
|
323
|
+
--misc-dot: var(--color-misc-lime-dot);
|
|
324
|
+
--misc-soft: var(--color-misc-lime-soft);
|
|
325
|
+
--misc-text: var(--color-misc-lime-text);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.vd-misc-green {
|
|
329
|
+
--misc-dot: var(--color-misc-green-dot);
|
|
330
|
+
--misc-soft: var(--color-misc-green-soft);
|
|
331
|
+
--misc-text: var(--color-misc-green-text);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.vd-misc-emerald {
|
|
335
|
+
--misc-dot: var(--color-misc-emerald-dot);
|
|
336
|
+
--misc-soft: var(--color-misc-emerald-soft);
|
|
337
|
+
--misc-text: var(--color-misc-emerald-text);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.vd-misc-teal {
|
|
341
|
+
--misc-dot: var(--color-misc-teal-dot);
|
|
342
|
+
--misc-soft: var(--color-misc-teal-soft);
|
|
343
|
+
--misc-text: var(--color-misc-teal-text);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.vd-misc-cyan {
|
|
347
|
+
--misc-dot: var(--color-misc-cyan-dot);
|
|
348
|
+
--misc-soft: var(--color-misc-cyan-soft);
|
|
349
|
+
--misc-text: var(--color-misc-cyan-text);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.vd-misc-sky {
|
|
353
|
+
--misc-dot: var(--color-misc-sky-dot);
|
|
354
|
+
--misc-soft: var(--color-misc-sky-soft);
|
|
355
|
+
--misc-text: var(--color-misc-sky-text);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.vd-misc-slate {
|
|
359
|
+
--misc-dot: var(--color-misc-slate-dot);
|
|
360
|
+
--misc-soft: var(--color-misc-slate-soft);
|
|
361
|
+
--misc-text: var(--color-misc-slate-text);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.vd-misc-stone {
|
|
365
|
+
--misc-dot: var(--color-misc-stone-dot);
|
|
366
|
+
--misc-soft: var(--color-misc-stone-soft);
|
|
367
|
+
--misc-text: var(--color-misc-stone-text);
|
|
368
|
+
}
|
|
369
|
+
|
|
225
370
|
/* --- Sizes ----------------------------------------------------------- */
|
|
226
371
|
/* Rev3 scale (2026-09-29). XS is the default; each explicit class restates
|
|
227
372
|
its whole size so the classes compose predictably:
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comment Date
|
|
3
|
+
*
|
|
4
|
+
* The day separator in a comment thread. Extracted from Figma Comment / Date
|
|
5
|
+
* divider (2038:34763) — a single symbol with a `Date` text property.
|
|
6
|
+
*
|
|
7
|
+
* <div class="vd-comment-date" role="separator" aria-label="Thursday, September 11">
|
|
8
|
+
* <hr class="vd-divider" /><span class="vd-comment-date-label">Thu, Sep 11</span><hr class="vd-divider" />
|
|
9
|
+
* </div>
|
|
10
|
+
*
|
|
11
|
+
* BUILT FROM TWO `.vd-divider` RULES, as Divider's own labeled type is — Figma
|
|
12
|
+
* draws two raw rectangles here, not Divider instances. It is not
|
|
13
|
+
* `.vd-divider-labeled` because the two disagree on everything but the idea:
|
|
14
|
+
* this label is 12px Regular in Content/Tertiary (Divider's is Label/Compact,
|
|
15
|
+
* 600 with 0.08em tracking), the gap is 10px, and the row carries its own
|
|
16
|
+
* 14px top and 6px bottom padding.
|
|
17
|
+
*
|
|
18
|
+
* The label is raw 12px Regular in Figma; Supporting/Caption is that size and
|
|
19
|
+
* weight. Figma's rules are 0.5px; `.vd-divider` is 1px, like every rule in
|
|
20
|
+
* the library.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
@layer components {
|
|
24
|
+
.vd-comment-date {
|
|
25
|
+
@apply flex w-full items-center gap-2.5; /* 10px */
|
|
26
|
+
@apply pt-3.5 pb-1.5; /* 14px / 6px */
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.vd-comment-date > .vd-divider {
|
|
30
|
+
@apply flex-1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.vd-comment-date-label {
|
|
34
|
+
@apply shrink-0 text-supporting-caption text-content-tertiary; /* 12 / 18 / 400 */
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comment Item
|
|
3
|
+
*
|
|
4
|
+
* One comment in the panel's thread. Extracted from Figma Comment / Item
|
|
5
|
+
* (2038:34772) — a single symbol with Author, Time and Body text properties
|
|
6
|
+
* and a `Show tag` boolean. Figma: "staff avatar (circle), author, time, body,
|
|
7
|
+
* optional section tag."
|
|
8
|
+
*
|
|
9
|
+
* <article class="vd-comment-item">
|
|
10
|
+
* <header class="vd-comment-item-top">
|
|
11
|
+
* <span class="vd-avatar vd-avatar-md">AR</span>
|
|
12
|
+
* <span class="vd-comment-item-author">Alex Reyes</span>
|
|
13
|
+
* <time class="vd-comment-item-time">9:42 AM</time>
|
|
14
|
+
* </header>
|
|
15
|
+
* <div class="vd-comment-item-body">
|
|
16
|
+
* <p class="vd-comment-item-text">Called Marcus. He said…</p>
|
|
17
|
+
* <span class="vd-tag vd-tag-label">…</span>
|
|
18
|
+
* </div>
|
|
19
|
+
* </article>
|
|
20
|
+
*
|
|
21
|
+
* 10px padding-y and a 6px gap. The top row is 8px apart: a round Avatar md
|
|
22
|
+
* (staff are round), the author, the time at the far end. The body is indented
|
|
23
|
+
* 28px — the avatar's 20 plus the gap — with 8px between the text and the tag.
|
|
24
|
+
*
|
|
25
|
+
* THE TYPE IS RAW IN FIGMA (Inter 14 Medium, 14 Regular, 12 Regular, all with
|
|
26
|
+
* an Auto line height and no text style). The library ships the styles those
|
|
27
|
+
* sizes belong to: Body/Default Strong for the author, Body/Default for the
|
|
28
|
+
* text, Supporting/Caption for the time. Designer-list item 88.
|
|
29
|
+
*
|
|
30
|
+
* The section tag is a Tag (Kind=label), so the dot is a Dot — nothing new.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
@layer components {
|
|
34
|
+
.vd-comment-item {
|
|
35
|
+
@apply flex w-full flex-col gap-1.5 py-2.5; /* 6px, 10px */
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.vd-comment-item-top {
|
|
39
|
+
@apply flex items-center gap-2; /* 8px */
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.vd-comment-item-author {
|
|
43
|
+
@apply flex-1 truncate;
|
|
44
|
+
@apply text-body-default-strong text-content-primary; /* 14 / 20 / 500 */
|
|
45
|
+
min-width: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.vd-comment-item-time {
|
|
49
|
+
@apply shrink-0 text-supporting-caption text-content-tertiary; /* 12 / 18 / 400 */
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.vd-comment-item-body {
|
|
53
|
+
@apply flex flex-col items-start gap-2 pl-7; /* 8px, 28px */
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.vd-comment-item-text {
|
|
57
|
+
@apply text-body-default text-content-primary; /* 14 / 20 / 400 */
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content Row
|
|
3
|
+
*
|
|
4
|
+
* A collapsed section line in a record: who or what, a one-line summary, a
|
|
5
|
+
* status, and tools that appear on hover beside a chevron that expands the row
|
|
6
|
+
* into its fields. Extracted from Figma Content Row (168:845) — 4 variants
|
|
7
|
+
* across Hover × Expanded, plus Pill Selector, Comment Preview and Ring
|
|
8
|
+
* booleans.
|
|
9
|
+
*
|
|
10
|
+
* <div class="vd-content-row">
|
|
11
|
+
* <p class="vd-content-row-text">
|
|
12
|
+
* <span class="vd-content-row-title">John Smith</span>
|
|
13
|
+
* <span class="vd-content-row-summary">· Jan 1, 1990 · jsmith@gmail.com</span>
|
|
14
|
+
* </p>
|
|
15
|
+
* <span class="vd-field-verification … vd-field-verification-compact vd-content-row-status">…</span>
|
|
16
|
+
* <span class="vd-content-row-actions">
|
|
17
|
+
* <button class="vd-icon-button vd-icon-button-inline vd-content-row-action" aria-label="Edit">…</button>
|
|
18
|
+
* <button class="vd-icon-button vd-icon-button-inline" aria-expanded="false" aria-label="Expand">…#chevron-down…</button>
|
|
19
|
+
* </span>
|
|
20
|
+
* </div>
|
|
21
|
+
*
|
|
22
|
+
* IT SHARES DATA ROW'S COLUMN GRID so a collapsed row and the field rows under
|
|
23
|
+
* it line up: text 536 (Data Row's 200 + 16 + 320), then the status column,
|
|
24
|
+
* then the 78px action group. 48px tall: 12 + the 24px action group + 12 —
|
|
25
|
+
* content-driven, like Data Row. 4px padding-x, 16px gap, 4px radius.
|
|
26
|
+
*
|
|
27
|
+
* THE TEXT IS ONE LINE IN TWO INKS: the title is Body/Default Strong in
|
|
28
|
+
* Content/Primary, the summary Body/Default in Content/Secondary. Figma draws
|
|
29
|
+
* it as one text node with two style runs; it truncates.
|
|
30
|
+
*
|
|
31
|
+
* TOOLS APPEAR ON HOVER AND FOCUS; THE CHEVRON IS ALWAYS THERE. Figma draws the
|
|
32
|
+
* edit and comment Icon Buttons at opacity 0 at rest, exactly as Data Row
|
|
33
|
+
* does, and the same keyboard reasoning applies — `:focus-within` reveals them.
|
|
34
|
+
* The chevron is an ordinary Icon Button and carries `aria-expanded`.
|
|
35
|
+
*
|
|
36
|
+
* EXPANDED DRAWS NOTHING DIFFERENT. The two Expanded variants are identical in
|
|
37
|
+
* the file, down to a #chevron-down that does not turn. The library rotates
|
|
38
|
+
* the glyph of an `aria-expanded="true"` button 180°, as Dropdown Field's
|
|
39
|
+
* chevron does — a decision, designer-list item 81. The fields a row expands
|
|
40
|
+
* into are Data Rows; showing and hiding them is the consumer's.
|
|
41
|
+
*
|
|
42
|
+
* Not shipped: the Pill Selector and Comment Preview boolean slots (hidden in
|
|
43
|
+
* every variant; no drawn state to read).
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
@layer components {
|
|
47
|
+
.vd-content-row {
|
|
48
|
+
@apply flex w-full items-center gap-4; /* 16px */
|
|
49
|
+
@apply px-1 py-3; /* 4px / 12px */
|
|
50
|
+
@apply rounded-tight; /* 4px */
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.vd-content-row:hover {
|
|
54
|
+
@apply bg-action-subtle;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* --- Parts ------------------------------------------------------------ */
|
|
58
|
+
|
|
59
|
+
/* The text column: 536px, or the record's shared width inside a
|
|
60
|
+
`.vd-record` (0.7.0). It WRAPS since 0.7.0 — Figma's text layer is
|
|
61
|
+
fixed-width with auto height and no truncation, and the Application page's
|
|
62
|
+
BSA summary runs to two lines; the row then grows (12 + 40 + 12) and the
|
|
63
|
+
status and actions stay centred on it. It truncated through 0.6.0. */
|
|
64
|
+
.vd-content-row-text {
|
|
65
|
+
@apply shrink-0;
|
|
66
|
+
width: var(--vd-record-text, 536px);
|
|
67
|
+
@apply text-body-default text-content-secondary; /* 14 / 20 / 400 */
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.vd-content-row-title {
|
|
71
|
+
@apply text-body-default-strong text-content-primary; /* 14 / 20 / 500 */
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.vd-content-row-summary {
|
|
75
|
+
@apply text-body-default text-content-secondary;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* The status column. Additive on the Field Verification, or on a wrapper
|
|
79
|
+
holding a Severity Count (`vd-severity-count vd-severity-count-flush`) for
|
|
80
|
+
a row with an open finding. It is a flex box so that wrapper lays the
|
|
81
|
+
count out as an item: as inline content the 24px button sat on a text
|
|
82
|
+
line and the row came out 50.5px, not 48. On a Field Verification the
|
|
83
|
+
component's own display still applies — it comes later in the source. */
|
|
84
|
+
.vd-content-row-status {
|
|
85
|
+
@apply flex flex-1 items-center;
|
|
86
|
+
min-width: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* 24px tall (Height/Control/SM, bound) — the tallest thing in the row. */
|
|
90
|
+
.vd-content-row-actions {
|
|
91
|
+
@apply ml-auto flex h-control-sm shrink-0 items-center justify-end gap-3; /* 12px */
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Additive, on an Icon Button that only shows on hover or focus. */
|
|
95
|
+
.vd-content-row-action {
|
|
96
|
+
@apply opacity-0 transition-opacity duration-150;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* …and on an EXPANDED row they stay (0.7.0): the Application page keeps Edit
|
|
100
|
+
and Comment visible on every open row. The set's own Expanded=yes variant
|
|
101
|
+
still draws them hidden at rest; the page overrides it, and the library
|
|
102
|
+
follows the page (designer-list item 97). */
|
|
103
|
+
.vd-content-row:hover .vd-content-row-action,
|
|
104
|
+
.vd-content-row:focus-within .vd-content-row-action,
|
|
105
|
+
.vd-content-row:has([aria-expanded="true"]) .vd-content-row-action {
|
|
106
|
+
@apply opacity-100;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* The disclosure chevron turns when its button is expanded (a decision). */
|
|
110
|
+
.vd-content-row-actions [aria-expanded] .vd-icon {
|
|
111
|
+
@apply transition-transform duration-150;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.vd-content-row-actions [aria-expanded="true"] .vd-icon {
|
|
115
|
+
@apply rotate-180;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* --- States ----------------------------------------------------------- */
|
|
119
|
+
|
|
120
|
+
/* Linked (0.7.0) — the row a finding points at while it is collapsed: Data
|
|
121
|
+
Row's treatment, a 2px Primary/Main stroke on the left edge and no fill,
|
|
122
|
+
as an inset shadow so the text column does not move. Figma draws Linked on
|
|
123
|
+
Data Row only; a finding whose field sits inside a closed row has nothing
|
|
124
|
+
to mark, so this is a library decision (designer-list item 98). */
|
|
125
|
+
.vd-content-row-linked {
|
|
126
|
+
box-shadow: inset 2px 0 0 var(--color-primary);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.vd-content-row.vd-with-ring {
|
|
130
|
+
outline: var(--border-micro) solid var(--color-primary);
|
|
131
|
+
outline-offset: 0;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Data List
|
|
3
|
+
*
|
|
4
|
+
* The fields under an expanded row, and the two kinds of heading that divide
|
|
5
|
+
* them. Not a Figma component: "Data List" is the frame every expanded row
|
|
6
|
+
* (User Expanded 235:2977, Entity Expanded 238:3767, the Business rows) stacks
|
|
7
|
+
* its Data Rows in, and the headings are loose frames inside it — 235:2913 and
|
|
8
|
+
* 215:7576. New in 0.7.0.
|
|
9
|
+
*
|
|
10
|
+
* <div class="vd-data-list">
|
|
11
|
+
* <div class="vd-data-list-header">
|
|
12
|
+
* <h4 class="vd-data-list-header-title">Submitted Details</h4>
|
|
13
|
+
* <button class="vd-btn vd-btn-outline vd-btn-sm vd-data-list-header-action">
|
|
14
|
+
* View KYC Checks
|
|
15
|
+
* <svg class="vd-icon vd-icon-size-13" aria-hidden="true"><use href="#arrow-right" /></svg>
|
|
16
|
+
* </button>
|
|
17
|
+
* </div>
|
|
18
|
+
* <div class="vd-data-row">…</div>
|
|
19
|
+
* <div class="vd-data-list-heading">
|
|
20
|
+
* <svg class="vd-data-list-heading-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#user" /></svg>
|
|
21
|
+
* <h5 class="vd-data-list-heading-title">Contact Details</h5>
|
|
22
|
+
* </div>
|
|
23
|
+
* <div class="vd-data-row">…</div>
|
|
24
|
+
* </div>
|
|
25
|
+
*
|
|
26
|
+
* `.vd-data-list` is a plain column: the rows butt, with no gap.
|
|
27
|
+
*
|
|
28
|
+
* HEADER — what the list is, with one action at the far end. 32px: 4px
|
|
29
|
+
* above and below a 24px Button (sm, outline) whose label and glyph are
|
|
30
|
+
* Primary/Main, which is what `.vd-data-list-header-action` adds. A hairline
|
|
31
|
+
* underneath; the title is Label/Compact in Content/Tertiary.
|
|
32
|
+
*
|
|
33
|
+
* HEADING — a named group of fields. 36px: 10px above and below a 16px glyph
|
|
34
|
+
* in Secondary/Main and a Label/Compact title in Content/Tertiary, 6px apart.
|
|
35
|
+
* A heading that is not the first thing in the list draws a hairline above it,
|
|
36
|
+
* as Figma does (238:3722 has one, 215:7576, first in its list, does not).
|
|
37
|
+
*
|
|
38
|
+
* Both hairlines are inset shadows, not borders. Figma's strokes sit inside
|
|
39
|
+
* the 32 and 36px frames, and Chrome paints a 0.5px border as a full pixel that
|
|
40
|
+
* would add to them.
|
|
41
|
+
*
|
|
42
|
+
* Casing is the caller's, as everywhere: Label/Compact carries no transform.
|
|
43
|
+
* Use real heading elements at whatever level the page's outline needs.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
@layer components {
|
|
47
|
+
.vd-data-list {
|
|
48
|
+
@apply flex w-full flex-col;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* --- Header ------------------------------------------------------------- */
|
|
52
|
+
|
|
53
|
+
.vd-data-list-header {
|
|
54
|
+
@apply flex w-full items-center gap-4; /* 16px */
|
|
55
|
+
@apply px-1; /* 4px */
|
|
56
|
+
box-shadow: inset 0 -1px 0 var(--color-stroke-divider);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* 8px above and below the 16px line: the title alone makes the row its 32px,
|
|
60
|
+
which is also 4 + the 24px Button + 4, so the row holds with no action. */
|
|
61
|
+
.vd-data-list-header-title {
|
|
62
|
+
@apply flex-1 py-2 text-label-compact text-content-tertiary; /* 12 / 16 / 600 */
|
|
63
|
+
min-width: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Additive, on the Button: the label and its glyph in Primary/Main. Figma
|
|
67
|
+
overrides them on a Button sm / outline instance. */
|
|
68
|
+
.vd-data-list-header-action {
|
|
69
|
+
@apply shrink-0 text-primary;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* --- Heading ------------------------------------------------------------ */
|
|
73
|
+
|
|
74
|
+
.vd-data-list-heading {
|
|
75
|
+
@apply flex w-full items-center gap-1.5; /* 6px */
|
|
76
|
+
@apply px-1 py-2.5; /* 4px / 10px */
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.vd-data-list-heading:not(:first-child) {
|
|
80
|
+
box-shadow: inset 0 1px 0 var(--color-stroke-divider);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.vd-data-list-heading-icon {
|
|
84
|
+
@apply shrink-0 text-secondary;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.vd-data-list-heading-title {
|
|
88
|
+
@apply flex-1 text-label-compact text-content-tertiary; /* 12 / 16 / 600 */
|
|
89
|
+
min-width: 0;
|
|
90
|
+
}
|
|
91
|
+
}
|