@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,57 @@
1
+ /**
2
+ * Owner Table Header
3
+ *
4
+ * The column labels above a list of owners. Extracted from Figma Owner Table
5
+ * Header (2042:35106) — a single symbol: Owner, Identity, Application,
6
+ * Documents. Re-read after it was redrawn on 2026-11-19.
7
+ *
8
+ * <div role="table" aria-label="Owners">
9
+ * <div class="vd-owner-table-header" role="row">
10
+ * <span class="vd-owner-table-header-cell vd-owner-table-header-cell-main" role="columnheader">Owner</span>
11
+ * <span class="vd-owner-table-header-cell" role="columnheader">Identity</span>
12
+ * …
13
+ * </div>
14
+ * </div>
15
+ *
16
+ * It is Owner Row's grid: the Owner column takes what is left, then the three
17
+ * status columns are equal thirds of a fixed 236px (78⅔px each, no gap).
18
+ * Padding is 4px on the left and 36px on the right — the row's 4, plus the
19
+ * 14 + 18 of the row's chevron slot — so each label starts where its column
20
+ * does: x 556 / 634⅔ / 713⅓ in the 828px row the 960 page frames draw, the
21
+ * first of them on the record's own status column.
22
+ * Labels are Label/Compact (12/16/600, 0.08em) in Content/Secondary; 8px
23
+ * padding-y and a 0.5px Stroke/Divider rule underneath.
24
+ *
25
+ * NOT PINNED. Figma's frame is 32.5 — 8 + 16 + 8 plus the half-pixel rule,
26
+ * which Chrome paints as a full pixel, so the row renders 33.
27
+ *
28
+ * The roles are the consumer's: use `role="row"` / `columnheader` inside a
29
+ * `role="table"`, or put the classes on a real <tr> / <th>.
30
+ */
31
+
32
+ @layer components {
33
+ /* Owner Row's template without the chevron's track: that track is the
34
+ extra 32px of right padding here. Through 0.6.0 the cells were fixed —
35
+ 536px and three of 94px — which was 874px of columns in an 828px row. */
36
+ .vd-owner-table-header {
37
+ @apply grid w-full items-center;
38
+ grid-template-columns:
39
+ minmax(0, 1fr)
40
+ repeat(var(--vd-owner-columns, 3), calc(236px / var(--vd-owner-columns, 3)));
41
+ @apply py-2 pr-9 pl-1; /* 8px / 36px / 4px */
42
+ @apply border-b border-b-[length:var(--border-thin)] border-stroke-divider;
43
+ }
44
+
45
+ .vd-owner-table-header-cell {
46
+ @apply truncate;
47
+ min-width: 0;
48
+ @apply text-label-compact text-content-secondary; /* 12 / 16 / 600 */
49
+ @apply text-left;
50
+ }
51
+
52
+ /* A no-op since 0.7.0 — the grid places the first cell. Kept so existing
53
+ markup needs no change. */
54
+ .vd-owner-table-header-cell-main {
55
+ min-width: 0;
56
+ }
57
+ }
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Ownership
3
+ *
4
+ * How much of a business's ownership is declared: a summary line, a bar and a
5
+ * legend. From four Figma symbols — Ownership Summary (2045:35230), Ownership
6
+ * Bar (2042:36155), Ownership Breakdown (2045:35359) and Ownership Unaccounted
7
+ * (2045:35715).
8
+ *
9
+ * <div class="vd-progress-bar vd-ownership">
10
+ * <p class="vd-ownership-summary">
11
+ * <span class="vd-ownership-summary-lead">92% of ownership declared</span> · 3 owners · 8% unaccounted
12
+ * </p>
13
+ * <div class="vd-progress-bar-track" role="progressbar" aria-valuenow="92" aria-valuemin="0"
14
+ * aria-valuemax="100" aria-label="Ownership declared">
15
+ * <div class="vd-progress-bar-fill" style="width: 92%"></div>
16
+ * </div>
17
+ * <div class="vd-progress-bar-legend">…legend items…</div>
18
+ * </div>
19
+ *
20
+ * A MODIFIER OF PROGRESS BAR, NOT A SECOND BAR. Figma draws its own track, fill
21
+ * and legend, but they are a Progress Bar in a different trim, so `.vd-ownership`
22
+ * goes on `.vd-progress-bar` and re-trims its parts — the same shape as
23
+ * `.vd-progress-bar-success`. What changes:
24
+ *
25
+ * track 4px (Progress Bar: 5), 2px radius (pill), Secondary/Disabled
26
+ * (Stroke/Divider)
27
+ * fill 2px radius; Primary/Main as before
28
+ * legend 24px between items; a 6×6 swatch with a 2px radius; the label is
29
+ * Body/Dense in Content/Tertiary (Supporting/Caption, Secondary)
30
+ *
31
+ * The only new part is the summary: one line in two inks, like Content Row's —
32
+ * the lead is Body/Default Strong in Content/Primary, the rest Body/Default in
33
+ * Content/Secondary. It replaces Progress Bar's header, so there is no
34
+ * `.vd-progress-bar-header` here.
35
+ *
36
+ * The spacing BETWEEN summary, bar and legend is Progress Bar's: the four Figma
37
+ * symbols are separate and state no gap between each other. Not verified
38
+ * against a composed instance — designer-list item 84.
39
+ */
40
+
41
+ @layer components {
42
+ .vd-ownership-summary {
43
+ @apply text-body-default text-content-secondary; /* 14 / 20 / 400 */
44
+ }
45
+
46
+ .vd-ownership-summary-lead {
47
+ @apply text-body-default-strong text-content-primary; /* 14 / 20 / 500 */
48
+ }
49
+
50
+ .vd-ownership .vd-progress-bar-track {
51
+ @apply h-1 rounded-micro bg-secondary-disabled; /* 4px, 2px */
52
+ }
53
+
54
+ .vd-ownership .vd-progress-bar-fill {
55
+ @apply rounded-micro; /* 2px */
56
+ }
57
+
58
+ .vd-ownership .vd-progress-bar-legend {
59
+ @apply gap-6; /* 24px */
60
+ }
61
+
62
+ .vd-ownership .vd-progress-bar-legend-item {
63
+ @apply gap-1; /* 4px */
64
+ }
65
+
66
+ .vd-ownership .vd-progress-bar-legend-swatch {
67
+ @apply size-1.5 rounded-micro; /* 6px, 2px */
68
+ }
69
+
70
+ .vd-ownership .vd-progress-bar-legend-label {
71
+ @apply text-body-dense text-content-tertiary; /* 13 / 18 / 400 */
72
+ }
73
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Panel Section Header
3
+ *
4
+ * The header of a collapsible group in the findings panel — Findings,
5
+ * Checklist, Resolved. Extracted from Figma Panel Section Header (2038:38947)
6
+ * — a single symbol with Title and Count text properties and a Chevron boolean.
7
+ *
8
+ * <div class="vd-panel-section-header">
9
+ * <h3 class="vd-panel-section-header-title">Findings</h3>
10
+ * <span class="vd-panel-section-header-count">5</span>
11
+ * <button class="vd-icon-button vd-icon-button-inline" aria-expanded="true"
12
+ * aria-controls="findings" aria-label="Findings">…#chevron-up…</button>
13
+ * </div>
14
+ *
15
+ * 24px tall (3 + the 18px Icon Button + 3 — not pinned), 12px padding-x, 8px
16
+ * gap. The title is Label/Compact in Content/Secondary; the count Data/Compact
17
+ * (mono) in Content/Tertiary; the chevron is an Icon Button (inline) pushed to
18
+ * the far end, where Figma uses a spacer frame.
19
+ *
20
+ * THE CHEVRON'S BUTTON IS THE DISCLOSURE: it carries `aria-expanded` and
21
+ * `aria-controls`. Figma draws the open state only — there is no collapsed
22
+ * variant — so the library turns the glyph −90° when `aria-expanded="false"`.
23
+ * A decision; designer-list item 86.
24
+ */
25
+
26
+ @layer components {
27
+ .vd-panel-section-header {
28
+ @apply flex w-full items-center gap-2; /* 8px */
29
+ @apply px-3 py-0.75; /* 12px / 3px */
30
+ }
31
+
32
+ .vd-panel-section-header-title {
33
+ @apply text-label-compact text-content-secondary; /* 12 / 16 / 600 */
34
+ }
35
+
36
+ .vd-panel-section-header-count {
37
+ @apply text-data-compact font-mono text-content-tertiary; /* 12 / 16.5 / 400 */
38
+ font-variant-numeric: tabular-nums;
39
+ }
40
+
41
+ /* The trailing control sits at the far end (Figma's spacer). */
42
+ .vd-panel-section-header > :last-child:not(:first-child) {
43
+ @apply ml-auto;
44
+ }
45
+
46
+ .vd-panel-section-header [aria-expanded] .vd-icon {
47
+ @apply transition-transform duration-150;
48
+ }
49
+
50
+ /* The glyph is #chevron-up, as Figma nests it; closed, it turns over to
51
+ point down (0.7.0). Through 0.6.0 the docs used #chevron-down with a −90°
52
+ turn, which is the wrong glyph and, on the right one, points left. */
53
+ .vd-panel-section-header [aria-expanded="false"] .vd-icon {
54
+ @apply rotate-180;
55
+ }
56
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Panel Status
3
+ *
4
+ * The application's status line at the top of the findings panel. Extracted
5
+ * from Figma Panel Status (2038:39256) — a single symbol with a `Status` text
6
+ * property. Figma: "Override the dot colour per status."
7
+ *
8
+ * <p class="vd-panel-status">
9
+ * <span class="vd-dot vd-dot-sm vd-dot-warning"></span>Pending Review
10
+ * </p>
11
+ *
12
+ * A 6px dot and a label, 8px apart, 20px tall. The dot is Chip's Dot at SM, so
13
+ * its colour is a Dot class — nothing new. The label is raw Inter Medium 14 in
14
+ * Figma (no text style bound); Body/Default Strong is the same 14/20/500.
15
+ * The dot repeats what the words say, so it needs no name of its own.
16
+ */
17
+
18
+ @layer components {
19
+ .vd-panel-status {
20
+ @apply flex items-center gap-2; /* 8px */
21
+ @apply text-body-default-strong text-content-primary; /* 14 / 20 / 500 */
22
+ }
23
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Panel Strip Button
3
+ *
4
+ * An icon button with a count, for the collapsed findings panel's strip.
5
+ * Extracted from Figma Panel Strip Button (2038:39320) — a single symbol.
6
+ *
7
+ * <span class="vd-panel-strip-button">
8
+ * <button class="vd-icon-button" aria-label="Findings, 3 open">…</button>
9
+ * <span class="vd-badge vd-badge-critical vd-panel-strip-button-count" aria-hidden="true">3</span>
10
+ * </span>
11
+ *
12
+ * A 36×36 box centring an Icon Button md (28). The count is Chip's badge,
13
+ * pinned to the top-right corner: Figma places the 16px badge at x 22, y −2,
14
+ * so it overhangs the box by 2px above and to the right.
15
+ * `.vd-panel-strip-button-count` is additive on the badge and only positions it.
16
+ *
17
+ * The badge is decorative next to the button: fold the count into the
18
+ * button's `aria-label` and hide the badge from assistive tech.
19
+ */
20
+
21
+ @layer components {
22
+ .vd-panel-strip-button {
23
+ @apply relative inline-flex size-9 shrink-0 items-center justify-center; /* 36px */
24
+ }
25
+
26
+ .vd-panel-strip-button-count {
27
+ @apply pointer-events-none absolute;
28
+ top: -2px;
29
+ left: 22px;
30
+ }
31
+ }
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Progress Circle
3
+ *
4
+ * A determinate circular progress mark. Extracted from Figma Progress Circle
5
+ * (1628:17711) — 20 variants across Size (XS / SM / MD / LG) × Progress (0 / 25
6
+ * / 50 / 75 / 100%). Figma: "matching Loading Indicator sizes… Arcs fill
7
+ * clockwise from 12 o'clock; 100% replaces the ring with a filled circle and
8
+ * white checkmark."
9
+ *
10
+ * <span class="vd-progress-circle vd-progress-circle-md" style="--progress: 50"
11
+ * role="progressbar" aria-valuenow="50" aria-valuemin="0"
12
+ * aria-valuemax="100" aria-label="Review progress"></span>
13
+ *
14
+ * size box ring
15
+ * XS 12 1.5 (the base)
16
+ * SM 16 2
17
+ * MD 24 2.5
18
+ * LG 32 3
19
+ *
20
+ * ANY VALUE, NOT FIVE. Figma draws 0 / 25 / 50 / 75 / 100 as design states;
21
+ * here `--progress` (0–100) drives a conic-gradient, so 37 works too. Set it
22
+ * inline and mirror it in aria-valuenow — the same contract as Progress Bar's
23
+ * fill width. The track is Stroke/Border, the arc Content/Primary (NOT Primary).
24
+ *
25
+ * A MASKED CONIC-GRADIENT, like Loading Indicator's ring: Chrome floors
26
+ * fractional border widths, so 1.5 and 2.5 cannot be borders.
27
+ *
28
+ * PINNED DIVERGENCE: the arc's ends are square. Figma strokes the arc with
29
+ * round caps, which a conic-gradient cannot draw. Invisible at 12–16px, a
30
+ * half-stroke-width difference at 24–32. Designer-list item 78.
31
+ *
32
+ * COMPLETE IS A CLASS. `.vd-progress-circle-complete` swaps the ring for a
33
+ * filled Content/Primary circle holding a check glyph in Surface/Paper. It is
34
+ * a class and not a `--progress: 100` rule because CSS cannot select on a
35
+ * custom property's value. The check is the sprite's #check as a child; Figma
36
+ * draws it two-thirds of the box (16px in the 24px MD), which gives icon sizes
37
+ * 10 / 11 / 16 / 22 for XS / SM / MD / LG — only MD was measured, the others
38
+ * are that ratio on the nearest icon size.
39
+ */
40
+
41
+ @layer components {
42
+ .vd-progress-circle {
43
+ --progress: 0;
44
+ --progress-ring: 1.5px; /* XS */
45
+ @apply inline-flex size-3 shrink-0 items-center justify-center; /* 12px */
46
+ @apply rounded-pill;
47
+
48
+ background: conic-gradient(
49
+ from 0deg,
50
+ var(--color-content-primary) calc(var(--progress) * 1%),
51
+ var(--color-stroke-border) 0
52
+ );
53
+ mask: radial-gradient(
54
+ farthest-side,
55
+ transparent calc(100% - var(--progress-ring)),
56
+ black calc(100% - var(--progress-ring))
57
+ );
58
+ }
59
+
60
+ /* --- Sizes ------------------------------------------------------------ */
61
+
62
+ .vd-progress-circle-xs {
63
+ --progress-ring: 1.5px;
64
+ @apply size-3; /* 12px */
65
+ }
66
+
67
+ .vd-progress-circle-sm {
68
+ --progress-ring: 2px;
69
+ @apply size-4; /* 16px */
70
+ }
71
+
72
+ .vd-progress-circle-md {
73
+ --progress-ring: 2.5px;
74
+ @apply size-6; /* 24px */
75
+ }
76
+
77
+ .vd-progress-circle-lg {
78
+ --progress-ring: 3px;
79
+ @apply size-8; /* 32px */
80
+ }
81
+
82
+ /* --- Complete --------------------------------------------------------- */
83
+
84
+ .vd-progress-circle-complete {
85
+ @apply bg-content-primary text-surface-paper;
86
+ background-image: none;
87
+ mask: none;
88
+ }
89
+ }
@@ -18,8 +18,11 @@
18
18
 
19
19
  @layer components {
20
20
  .vd-radio-select {
21
- /* Layout - horizontal with gap between radio and label */
22
- @apply inline-flex items-center gap-2.25; /* Figma Spacing/9 (9px) */
21
+ /* Layout - horizontal with gap between radio and label.
22
+ 22px tall since 0.7.0: 2px above and below the 18px label line, as
23
+ Figma's Radio frame is (139:1049 — 2 + 18 + 2). It was the bare 18px
24
+ line through 0.6.0, so a stack of radios is 4px taller per row. */
25
+ @apply inline-flex items-center gap-2.25 py-0.5; /* Figma Spacing/9 (9px), Spacing/2 */
23
26
  @apply cursor-pointer;
24
27
  }
25
28
 
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Record
3
+ *
4
+ * The column grid a record's rows share. Not a Figma component — the page
5
+ * frames draw every row of a record on one grid (a 536px text column, the
6
+ * status column, a 78px action group) and the rows used to carry that 536 as a
7
+ * fixed width each, so a narrow page could only squeeze the status column, down
8
+ * to nothing. New in 0.7.0.
9
+ *
10
+ * <div class="vd-record">
11
+ * <div class="vd-content-row">…</div>
12
+ * <div class="vd-data-row">…</div>
13
+ * <div class="vd-funding-transaction">…</div>
14
+ * </div>
15
+ *
16
+ * Put it on the element that holds the rows. It does two things:
17
+ *
18
+ * 1. makes that element a size container (`container-type: inline-size`), and
19
+ * 2. defines `--vd-record-text`, the width of the text column, from it:
20
+ * 536px while the container can afford it, then whatever is left once the
21
+ * status column is down to 88px.
22
+ *
23
+ * Every row that sits on the grid reads the property — Content Row's text,
24
+ * Data Row's value (the property minus the 200px label and the 16px gap),
25
+ * Funding Transaction's and Funding Total's summary — so their status columns
26
+ * stay in line at any width. Outside a `.vd-record` the property is unset and
27
+ * each row keeps its 536px, exactly as before 0.7.0.
28
+ *
29
+ * THE OWNER LIST IS NOT ON THIS GRID (decided 2026-11-19). Owner Table Header
30
+ * and Owner Row keep a fixed 268px at the right edge (three status columns and
31
+ * the chevron) and let the owner column give way; they do not read the
32
+ * property. In the frames' 828px row their statuses start at x 556, on this
33
+ * grid's status column — 268 is this grid's own right side there (174 + 16 +
34
+ * 78). At a narrower width the owner list keeps its own columns under its own
35
+ * header, and the two part company: in C5, 450 against 556.
36
+ *
37
+ * The arithmetic, for a container W wide: a row is 4 + text + 16 + status + 16
38
+ * + 78 + 4, so text + status = W − 118. In the 960 page frames the row is 828,
39
+ * which is 536 + 174 — the frames' own numbers (re-read 2026-11-19). The
40
+ * status column gives way first, to 88px (W = 742); below that the text column
41
+ * does. It stops at 280px, where Data Row's value is 64px — narrower than that
42
+ * and the rows overflow, so give the page a minimum width.
43
+ *
44
+ * The 88px floor, the order the columns give way in and the 280px stop are
45
+ * library decisions: Figma draws one narrow frame (C5) and no rule
46
+ * (designer-list item 99). An inline-size container cannot take its width from
47
+ * its content, so the element needs a width of its own — a block or a flex
48
+ * item that fills, not something shrink-wrapped.
49
+ */
50
+
51
+ @layer components {
52
+ .vd-record {
53
+ container-type: inline-size;
54
+ --vd-record-text: max(280px, min(536px, 100cqw - 206px));
55
+ }
56
+ }
@@ -0,0 +1,131 @@
1
+ /**
2
+ * Resize Handle
3
+ *
4
+ * The grip on a resizable panel's edge — drawn for the navigation sidebar,
5
+ * usable on any vertical edge. Extracted from Figma Resize Handle (2053:96322)
6
+ * — 3 variants on a `State` axis (Rest / Hover / Dragging) plus a `Readout`
7
+ * text property.
8
+ *
9
+ * <div class="vd-resize-handle" role="separator" aria-orientation="vertical"
10
+ * aria-label="Resize sidebar" tabindex="0"
11
+ * aria-valuenow="240" aria-valuemin="60" aria-valuemax="480">
12
+ * <span class="vd-resize-handle-knob">
13
+ * <span class="vd-resize-handle-readout">240</span>
14
+ * </span>
15
+ * </div>
16
+ *
17
+ * state what is drawn
18
+ * rest nothing — a 12px-wide hit strip, invisible
19
+ * hover a 12×20 knob: Surface/Paper, 1px Stroke/Divider, 6px radius,
20
+ * two 1.5×10 grip bars in Content/Tertiary at 80%, 2px apart
21
+ * dragging the knob widens to hold the READOUT (the panel's width) with
22
+ * 7px padding-x; the grip bars are gone
23
+ *
24
+ * THE STRIP IS THE CONTROL, THE KNOB IS ITS AFFORDANCE. Figma's frame is 12×120
25
+ * — 12 is the hit width, 120 is just the sample height. Here the strip takes
26
+ * the height of the edge it sits on (`align-self: stretch`), and the knob is
27
+ * centred in it and allowed to overflow: at 37px wide while dragging it is
28
+ * three times the strip, which is why Figma's Dragging frame is 56 wide.
29
+ *
30
+ * THE GRIP BARS ARE PSEUDO-ELEMENTS, so the markup is the same in every state:
31
+ * the readout is always in the DOM and only shown while dragging.
32
+ *
33
+ * DRAGGING IS A CLASS, `.vd-resize-handle-dragging`, because nothing in ARIA
34
+ * says "being dragged" (aria-grabbed is deprecated). The library ships no
35
+ * JavaScript: the consumer adds the class on pointerdown and removes it on
36
+ * pointerup, and writes the width into BOTH the readout and aria-valuenow.
37
+ *
38
+ * FOCUS IS NOT DRAWN IN FIGMA. A separator with a value is a focusable widget
39
+ * (the WAI-ARIA window-splitter pattern: Left / Right arrows resize, Home / End
40
+ * jump to the limits), so `:focus-visible` shows the knob — the same reveal as
41
+ * hover — plus the library's focus ring on the knob. A library addition, the
42
+ * same shape as Data Row's actions being revealed by focus as well as hover.
43
+ *
44
+ * THE READOUT IS 12px MEDIUM — Supporting/Caption Strong's size and weight.
45
+ * Figma authors it as raw Inter Medium 12 with an Auto line height and no text
46
+ * style bound (it was a raw 11 until 2026-11-19; the library's 12 came first
47
+ * and the file followed). The line box is held to the grip bars' 10px so the
48
+ * knob stays 20 tall; Figma's dragging knob is 39 wide for the sample "290".
49
+ * `tabular-nums` is added so the knob does not jitter as the digits change.
50
+ *
51
+ * Positioning is the consumer's, as with Tooltip: put it on the panel's edge
52
+ * (typically `position: absolute; top: 0; bottom: 0; right: -6px`).
53
+ */
54
+
55
+ @layer components {
56
+ .vd-resize-handle {
57
+ /* Layout — a 12px strip, as tall as the edge it is placed on */
58
+ @apply relative flex w-3 shrink-0 items-center justify-center self-stretch;
59
+
60
+ /* Reset so it works on a div or a button alike */
61
+ @apply appearance-none border-none bg-transparent p-0;
62
+
63
+ @apply cursor-col-resize;
64
+ touch-action: none; /* the drag is the consumer's; do not scroll instead */
65
+ }
66
+
67
+ /* --- Parts ------------------------------------------------------------ */
68
+
69
+ .vd-resize-handle-knob {
70
+ /* 12 × 20 at hover: 1px border + 4px padding + the 10px bars. Nothing is
71
+ pinned — the box is its border, padding and content. */
72
+ @apply inline-flex shrink-0 items-center justify-center gap-0.5; /* 2px */
73
+ @apply py-1; /* 4px */
74
+ min-width: 12px;
75
+
76
+ @apply rounded-control; /* 6px */
77
+ @apply border border-[length:var(--border-line)] border-stroke-divider;
78
+ @apply bg-surface-paper;
79
+
80
+ /* Hidden at rest — laid out, not painted, so hover moves nothing */
81
+ @apply opacity-0 transition-opacity duration-150;
82
+ }
83
+
84
+ /* The two grip bars */
85
+ .vd-resize-handle-knob::before,
86
+ .vd-resize-handle-knob::after {
87
+ content: "";
88
+ @apply block rounded-[0.75px] bg-content-tertiary opacity-80;
89
+ width: 1.5px;
90
+ block-size: 10px;
91
+ }
92
+
93
+ /* Only shown while dragging. 12 / 500, as Figma draws it — see the header. */
94
+ .vd-resize-handle-readout {
95
+ @apply hidden text-supporting-caption-strong text-content-secondary;
96
+ line-height: 10px; /* the bars' height, so the knob stays 20 tall */
97
+ font-variant-numeric: tabular-nums;
98
+ }
99
+
100
+ /* --- States ----------------------------------------------------------- */
101
+
102
+ .vd-resize-handle:hover .vd-resize-handle-knob,
103
+ .vd-resize-handle:focus-visible .vd-resize-handle-knob,
104
+ .vd-resize-handle.vd-resize-handle-dragging .vd-resize-handle-knob {
105
+ @apply opacity-100;
106
+ }
107
+
108
+ /* The strip itself takes no ring — a 12px-wide, full-height outline would
109
+ read as a border on the panel. The knob carries it. */
110
+ .vd-resize-handle:focus-visible {
111
+ @apply outline-none;
112
+ }
113
+
114
+ .vd-resize-handle:focus-visible .vd-resize-handle-knob {
115
+ @apply focus-ring;
116
+ }
117
+
118
+ /* Dragging — the knob holds the readout instead of the bars */
119
+ .vd-resize-handle-dragging .vd-resize-handle-knob {
120
+ @apply px-[7px];
121
+ }
122
+
123
+ .vd-resize-handle-dragging .vd-resize-handle-knob::before,
124
+ .vd-resize-handle-dragging .vd-resize-handle-knob::after {
125
+ @apply hidden;
126
+ }
127
+
128
+ .vd-resize-handle-dragging .vd-resize-handle-readout {
129
+ @apply block;
130
+ }
131
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Resolved Row
3
+ *
4
+ * A resolved finding in the panel. Extracted from Figma Resolved Row
5
+ * (2038:35880) — a single symbol with Title and Outcome text properties.
6
+ * Figma: "green check, title, outcome · who · date."
7
+ *
8
+ * <div class="vd-resolved-row">
9
+ * <svg class="vd-resolved-row-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#check" /></svg>
10
+ * <div class="vd-resolved-row-text">
11
+ * <p class="vd-resolved-row-title">Address not verified</p>
12
+ * <p class="vd-resolved-row-meta">Document accepted · N. Cooper · Mar 15</p>
13
+ * </div>
14
+ * </div>
15
+ *
16
+ * An outlined row — a 1px Stroke/Divider, 8px radius, no fill — with 12/9
17
+ * padding and a 12px gap, 57px tall (1 + 9 + 18 + 1 + 18 + 9 + 1, not pinned).
18
+ * A 16px #check in Approved/Main; the title is Body/Dense in Content/SECONDARY
19
+ * (a resolved finding steps back), the outcome line Supporting/Caption in
20
+ * Content/Tertiary.
21
+ *
22
+ * A trailing control — the application's "Reopen" — goes after the text; it is
23
+ * not drawn in the symbol, and a Text Button fits.
24
+ */
25
+
26
+ @layer components {
27
+ .vd-resolved-row {
28
+ @apply flex w-full items-center gap-3; /* 12px */
29
+ @apply px-3 py-2.25; /* 12px / 9px */
30
+ @apply rounded-surface; /* 8px */
31
+ @apply border border-[length:var(--border-line)] border-stroke-divider;
32
+ }
33
+
34
+ .vd-resolved-row-icon {
35
+ @apply shrink-0 text-approved;
36
+ }
37
+
38
+ .vd-resolved-row-text {
39
+ @apply flex flex-1 flex-col gap-px; /* 1px */
40
+ min-width: 0;
41
+ }
42
+
43
+ .vd-resolved-row-title {
44
+ @apply truncate text-body-dense text-content-secondary; /* 13 / 18 / 400 */
45
+ }
46
+
47
+ .vd-resolved-row-meta {
48
+ @apply truncate text-supporting-caption text-content-tertiary; /* 12 / 18 / 400 */
49
+ }
50
+ }
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Scoring Details
3
+ *
4
+ * Where a risk score came from: a one-line summary that opens the rules behind
5
+ * it. Extracted from Figma Scoring details (1627:102932) — 2 variants on
6
+ * `Expanded`. New in 0.7.0.
7
+ *
8
+ * <div class="vd-scoring-details">
9
+ * <p class="vd-scoring-details-summary">
10
+ * From 3 scoring rules
11
+ * <button class="vd-icon-button vd-icon-button-xs" aria-expanded="true"
12
+ * aria-controls="score-rules" aria-label="Scoring rules">
13
+ * <svg class="vd-icon vd-icon-size-12" aria-hidden="true"><use href="#chevron-down" /></svg>
14
+ * </button>
15
+ * </p>
16
+ * <dl class="vd-scoring-details-rules" id="score-rules">
17
+ * <div class="vd-scoring-details-rule">
18
+ * <dt>Prior applications</dt>
19
+ * <dd class="vd-scoring-details-points">+15</dd>
20
+ * </div>
21
+ * </dl>
22
+ * </div>
23
+ *
24
+ * The summary is Supporting/Caption in Content/Secondary with an Icon Button xs
25
+ * (12px) 8px after it. Each rule is one line: its name in Supporting/Caption /
26
+ * Content/Primary and its points at the far end in Data/Compact (JetBrains
27
+ * Mono) / Content/Secondary. 8px between lines.
28
+ *
29
+ * The rules are hidden with the native `hidden` attribute; the library ships no
30
+ * JavaScript, so the consumer flips it with `aria-expanded`. `.vd-scoring-details-rules`
31
+ * is `display: flex`, which would beat the attribute, so a `[hidden]` guard
32
+ * restores it.
33
+ *
34
+ * Two library decisions, since Figma's two variants draw the same glyph the
35
+ * same way up: the chevron turns over when its button is expanded, and it is a
36
+ * #chevron-down (the glyph is nested too deep in the file to read a name from).
37
+ * Designer-list item 101.
38
+ */
39
+
40
+ @layer components {
41
+ .vd-scoring-details {
42
+ @apply flex w-full flex-col gap-2; /* 8px */
43
+ }
44
+
45
+ .vd-scoring-details-summary {
46
+ @apply inline-flex items-center gap-2; /* 8px */
47
+ @apply text-supporting-caption text-content-secondary; /* 12 / 18 / 400 */
48
+ }
49
+
50
+ .vd-scoring-details-summary [aria-expanded] .vd-icon {
51
+ @apply transition-transform duration-150;
52
+ }
53
+
54
+ .vd-scoring-details-summary [aria-expanded="true"] .vd-icon {
55
+ @apply rotate-180;
56
+ }
57
+
58
+ .vd-scoring-details-rules {
59
+ @apply m-0 flex flex-col gap-2; /* 8px */
60
+ }
61
+
62
+ .vd-scoring-details-rules[hidden] {
63
+ display: none;
64
+ }
65
+
66
+ .vd-scoring-details-rule {
67
+ @apply flex items-start justify-between gap-4;
68
+ @apply text-supporting-caption text-content-primary; /* 12 / 18 / 400 */
69
+ }
70
+
71
+ .vd-scoring-details-rule > * {
72
+ @apply m-0;
73
+ }
74
+
75
+ .vd-scoring-details-points {
76
+ @apply shrink-0 text-data-compact font-mono text-content-secondary; /* 12 / 16.5 / 400 */
77
+ font-variant-numeric: tabular-nums;
78
+ }
79
+ }