@valiify/dashboard-ui 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.md +433 -2
  2. package/COMPONENTS.md +448 -73
  3. package/README.md +3 -3
  4. package/class-manifest.json +173 -4
  5. package/design-methodology/dashboard.md +676 -308
  6. package/dist/dashboard-ui.css +1258 -206
  7. package/dist/index.css +929 -181
  8. package/package.json +8 -8
  9. package/src/components/add-funds-form.css +2 -1
  10. package/src/components/button.css +40 -21
  11. package/src/components/checkbox.css +4 -2
  12. package/src/components/checklist-group.css +14 -6
  13. package/src/components/composer.css +11 -9
  14. package/src/components/content-row.css +29 -4
  15. package/src/components/data-list.css +91 -0
  16. package/src/components/data-row.css +14 -1
  17. package/src/components/divider.css +1 -1
  18. package/src/components/dropdown-field.css +30 -18
  19. package/src/components/dropdown-menu.css +12 -6
  20. package/src/components/field-verification.css +6 -1
  21. package/src/components/filter-segment.css +2 -1
  22. package/src/components/final-decision.css +51 -0
  23. package/src/components/finding-card.css +60 -17
  24. package/src/components/finding-option.css +10 -4
  25. package/src/components/funding-status.css +3 -2
  26. package/src/components/funding-total.css +8 -3
  27. package/src/components/funding-transaction.css +28 -5
  28. package/src/components/index.css +7 -0
  29. package/src/components/input.css +60 -21
  30. package/src/components/keycap.css +1 -1
  31. package/src/components/link.css +6 -2
  32. package/src/components/loading-indicator.css +5 -5
  33. package/src/components/menu-item.css +109 -21
  34. package/src/components/modal.css +21 -2
  35. package/src/components/navigation-rail.css +136 -6
  36. package/src/components/owner-row.css +170 -0
  37. package/src/components/owner-table-header.css +28 -13
  38. package/src/components/panel-section-header.css +5 -2
  39. package/src/components/pill.css +3 -2
  40. package/src/components/radio-select.css +5 -2
  41. package/src/components/recipient-input.css +4 -4
  42. package/src/components/record.css +56 -0
  43. package/src/components/scoring-details.css +79 -0
  44. package/src/components/section-edit.css +109 -0
  45. package/src/components/section-marker.css +4 -3
  46. package/src/components/sensitive-data.css +8 -4
  47. package/src/components/severity-count.css +13 -0
  48. package/src/components/step.css +1 -1
  49. package/src/components/summary-panel.css +250 -0
  50. package/src/components/summary-preview.css +5 -1
  51. package/src/components/tabs.css +7 -7
  52. package/src/components/tag.css +15 -9
  53. package/src/components/textarea.css +38 -18
  54. package/src/components/toast.css +13 -10
  55. package/src/components/tooltip.css +4 -1
  56. package/src/themes/valiify-tokens.css +1 -1
  57. package/src/themes/valiify.css +1 -1
  58. package/src/utility-surface.css +93 -1
  59. package/types/components.d.ts +100 -5
@@ -15,11 +15,28 @@
15
15
  * Figma's measured value per size — x 10 / 12 / 12, y 2 / 4 / 6 — and gap is
16
16
  * 10 at every size. verify:height-scale rule 3 REQUIRES min-h-control-* here.
17
17
  *
18
- * ICON SLOTS DO NOT SCALE (Figma inconsistency, reproduced): the leading icon
19
- * is 16px and the trailing icon 14px at every size — `.vd-icon-size-16` and
20
- * `.vd-icon-size-14` in the markup. The leading Avatar is Avatar xs (16); the
21
- * Tile is 20 (sm) or 28 (lg); the Checkbox is the 15px Checkbox control; the
22
- * trailing Action is an Icon Button inline (18).
18
+ * THE ROW DRAWS ITS OWN ICONS (2026-11-30). Size, stroke and colour of the
19
+ * icon slots are set HERE, not by the markup's `.vd-icon-size-*` class, which
20
+ * these rules outrank — Figma's _Menu Leading / _Menu Trailing sets fix them
21
+ * per menu size:
22
+ *
23
+ * leading icon sm 14px / 1px md, lg 16px / 1.25px Neutral/Main
24
+ * tile glyph sm, md 12px / 1px (20 tile) lg 16px / 1.25px (28 tile)
25
+ * Neutral/Main on the Primary/Soft tile (was Primary/Main)
26
+ * chevrons 14px / 1px at every size Neutral/Main (was Content/Secondary)
27
+ * check 14px / 1px at every size Primary/Main
28
+ * action glyph 14px / 1px (Icon Button inline 18) Secondary/Main, its own
29
+ *
30
+ * The strokes are RENDERED pixels: `--icon-stroke` is in the sprite's 24-unit
31
+ * viewBox, so each is px × 24 / size (1px at 14 = 1.714286; 1.25px at 16 =
32
+ * 1.875; 1px at 12 = 2). The icon ramp alone gives 1.25px at 14, which is why
33
+ * the trailing glyphs need their own value. The leading Avatar is Avatar sm
34
+ * (16), md (20) at lg; the Checkbox is the 15px Checkbox control.
35
+ *
36
+ * Neutral/Main is 2.81:1 on Paper in Light (2.50 on a hovered row) — under the
37
+ * 3:1 a meaningful graphic needs. The leading glyphs sit beside a label that
38
+ * says the same; the chevron's meaning is also `aria-haspopup`. As drawn;
39
+ * designer list.
23
40
  *
24
41
  * Structure:
25
42
  * <button class="vd-menu-item vd-menu-item-lg" role="menuitem">
@@ -33,7 +50,7 @@
33
50
  * </button>
34
51
  *
35
52
  * TONE — `.vd-menu-item-critical` recolours the title Critical/Main and
36
- * nothing else; meta and subtitle stay Content/Tertiary.
53
+ * nothing else; the icons keep their sizes, strokes and colours.
37
54
  *
38
55
  * REMOVED IN 0.5.0 (deprecated in 0.4.0): `.vd-menu-item-badge`, now
39
56
  * `.vd-menu-item-tile` (identical rule; the codemod renames it), and
@@ -94,26 +111,59 @@
94
111
  }
95
112
 
96
113
  .vd-menu-item-right-text {
97
- @apply shrink-0 text-right text-supporting-caption-strong text-primary; /* 12 / 18 / 500 */
114
+ /* Content/Primary since 0.7.0 (it was Primary/Main). Figma binds a raw
115
+ #000000, as it does on the title (designer-list item 32). */
116
+ @apply shrink-0 text-right text-supporting-caption-strong text-content-primary; /* 12 / 18 / 500 */
98
117
  }
99
118
 
100
119
  /* --- Leading slots (_Menu Leading 1304:4764) ------------------------- */
101
120
 
102
- /* 16px glyph at every size — pair with .vd-icon-size-16 */
121
+ /* Leading glyph — Neutral/Main. The colour is single-class (0,1,0) so a
122
+ call-site colour utility still wins; size and stroke are (0,2,0) or more,
123
+ so they outrank whatever `.vd-icon-size-*` the markup carries. md and lg:
124
+ 16px, 1.25px. sm: 14px, 1px (in the Sizes block below, after this).
125
+
126
+ A BARE `.vd-icon` that is a direct child of the row and carries no
127
+ trailing class is the leading glyph too: earlier docs wrote it without
128
+ `.vd-menu-item-icon` (at 15px), and the row must draw it the same way.
129
+ Its colour is under :where() — zero specificity — for the same reason
130
+ the slot class's is single-class. */
103
131
  .vd-menu-item-icon {
104
- @apply shrink-0;
132
+ @apply shrink-0 text-neutral;
133
+ }
134
+
135
+ :where(.vd-menu-item > .vd-icon:not(.vd-menu-item-check, .vd-menu-item-chevron, .vd-menu-item-chevron-left)) {
136
+ @apply text-neutral;
105
137
  }
106
138
 
107
- /* 20px tinted icon tile (Kind=Tile, Size=sm); 28 for the lg tile */
139
+ .vd-menu-item .vd-menu-item-icon,
140
+ .vd-menu-item > .vd-icon:not(.vd-menu-item-check, .vd-menu-item-chevron, .vd-menu-item-chevron-left) {
141
+ @apply size-4; /* 16 */
142
+ --icon-stroke: 1.875; /* 1.25px at 16 */
143
+ }
144
+
145
+ /* 20px tinted icon tile (Kind=Tile, Size=sm and md); 28 for the lg tile.
146
+ Its glyph is Neutral/Main on the Primary/Soft fill, as _Menu Leading binds
147
+ it (was Primary/Main, 7.43:1; Neutral/Main is 2.48 here in Light). */
108
148
  .vd-menu-item-tile {
109
149
  @apply flex size-5 shrink-0 items-center justify-center;
110
- @apply rounded-control bg-primary-soft text-primary;
150
+ @apply rounded-pill bg-primary-soft text-neutral; /* a circle — _Menu Leading's Tile is radius 9999 (2026-11-30; was 6px) */
151
+ }
152
+
153
+ .vd-menu-item-tile > .vd-icon {
154
+ @apply size-3; /* 12 */
155
+ --icon-stroke: 2; /* 1px at 12 */
111
156
  }
112
157
 
113
158
  .vd-menu-item-tile-lg {
114
159
  @apply size-7; /* 28px — Kind=Tile, Size=lg */
115
160
  }
116
161
 
162
+ .vd-menu-item-tile-lg > .vd-icon {
163
+ @apply size-4; /* 16 */
164
+ --icon-stroke: 1.875; /* 1.25px at 16 */
165
+ }
166
+
117
167
  /* Wrappers that mark the slot; the Avatar (xs, 16) and Checkbox (15) are the
118
168
  existing components inside them */
119
169
  .vd-menu-item-avatar,
@@ -123,15 +173,24 @@
123
173
 
124
174
  /* --- Trailing slots (_Menu Trailing 1304:4844) ----------------------- */
125
175
 
126
- /* 14px glyphs at every size — pair with .vd-icon-size-14. Check inherits
127
- the row's colour (primary when selected); chevrons are Content/Secondary. */
176
+ /* 14px glyphs with a 1px stroke at every size. The check is Primary/Main
177
+ ITSELF since 0.7.0, as Figma binds it on _Menu Trailing's Check kind (it
178
+ used to inherit the selected row's colour); chevrons are Neutral/Main
179
+ since 2026-11-30 (were Content/Secondary). */
128
180
  .vd-menu-item-check {
129
- @apply shrink-0;
181
+ @apply shrink-0 text-primary;
130
182
  }
131
183
 
132
184
  .vd-menu-item-chevron,
133
185
  .vd-menu-item-chevron-left {
134
- @apply shrink-0 text-content-secondary;
186
+ @apply shrink-0 text-neutral;
187
+ }
188
+
189
+ .vd-menu-item .vd-menu-item-check,
190
+ .vd-menu-item .vd-menu-item-chevron,
191
+ .vd-menu-item .vd-menu-item-chevron-left {
192
+ @apply size-3.5; /* 14 */
193
+ --icon-stroke: 1.714286; /* 1px at 14 — the icon ramp's 14 is 1.25px */
135
194
  }
136
195
 
137
196
  /* Submenu back affordance — leads the row despite being a Trailing kind */
@@ -152,6 +211,13 @@
152
211
  @apply flex shrink-0 items-center;
153
212
  }
154
213
 
214
+ /* The Icon Button's 14px glyph at a 1px stroke; its Secondary/Main colour
215
+ is the Icon Button's own. */
216
+ .vd-menu-item-action .vd-icon {
217
+ @apply size-3.5; /* 14 */
218
+ --icon-stroke: 1.714286; /* 1px at 14 */
219
+ }
220
+
155
221
  /* Trailing switch (0.6.0) — _Menu Trailing Kind=Switch: a Switch instance,
156
222
  32×18 at every row size. Holds `.vd-switch`. The row is then a <label>,
157
223
  not a <button>: a label wrapping the switch's own input makes the whole
@@ -174,6 +240,14 @@
174
240
  @apply text-supporting-caption-strong; /* 12 / 18 / 500 (was Micro M 8.5) */
175
241
  }
176
242
 
243
+ /* sm leading glyph — 14px, 1px. Same specificity as the base rule above,
244
+ and later, so it wins on an sm row. */
245
+ .vd-menu-item-sm .vd-menu-item-icon,
246
+ .vd-menu-item-sm > .vd-icon:not(.vd-menu-item-check, .vd-menu-item-chevron, .vd-menu-item-chevron-left) {
247
+ @apply size-3.5; /* 14 */
248
+ --icon-stroke: 1.714286; /* 1px at 14 */
249
+ }
250
+
177
251
  /* Identical to the bare base — md IS the default (Figma's own default
178
252
  variant is sm since the re-cut; the md base is the library convention —
179
253
  divergence noted with the designer). */
@@ -224,12 +298,26 @@
224
298
  /* Selected — aria-selected for role="option" rows in a listbox; aria-checked
225
299
  for role="menuitemcheckbox" / "menuitemradio" toggles in a menu. Plain
226
300
  role="menuitem" supports NEITHER attribute (0.5.0 markup correction).
227
- Set on the row so the title AND any icons (which use currentColor) turn
228
- primary together, the way the Figma check mark renders. The subtitle and
229
- right text keep their own explicit colors. */
230
- .vd-menu-item[aria-selected="true"],
231
- .vd-menu-item[aria-checked="true"] {
232
- @apply text-primary;
301
+
302
+ SINCE 0.7.0 THE ROW ITSELF DRAWS NOTHING FOR SELECTED: the mark is the
303
+ trailing check, which is Primary/Main on its own. Through 0.6.0 the whole
304
+ row turned Primary/Main — title, icons and check together. Figma's set has
305
+ no selected state (rest / hover / active / disabled, where "active" is the
306
+ pressed fill), and the Assign menu (2016:51341) draws its selected row at
307
+ rest with a `Primary/Main` check. A selected row therefore NEEDS its
308
+ `.vd-menu-item-check`: without one nothing marks it. */
309
+
310
+ /* Pressed, and a row whose submenu is open — both Figma's hover fill. The
311
+ Application page's actions menu (2016:51202) keeps State=hover on "Run KYC"
312
+ while its submenu shows; `aria-expanded="true"` on the row is what says so. */
313
+ .vd-menu-item:active:not(:disabled):not([aria-disabled="true"]),
314
+ .vd-menu-item[aria-expanded="true"] {
315
+ @apply bg-action-hover;
316
+ }
317
+
318
+ .vd-menu-item-critical:active:not(:disabled):not([aria-disabled="true"]),
319
+ .vd-menu-item-critical[aria-expanded="true"] {
320
+ @apply bg-critical-soft;
233
321
  }
234
322
 
235
323
  /* Figma's Rev3 disabled variants draw NO dimming at all (the title stays
@@ -83,7 +83,7 @@
83
83
  .vd-modal {
84
84
  /* Layout — 480px fixed width, height follows content */
85
85
  @apply flex w-120 flex-col items-start gap-6; /* 480px, 24px between sections */
86
- @apply p-8; /* 32px */
86
+ @apply p-7.75; /* 31px — Figma 32 − the 1px border */
87
87
 
88
88
  /* Shape — 12px is a raw Figma value, not a token; see the header */
89
89
  @apply rounded-[12px];
@@ -96,6 +96,25 @@
96
96
  @apply shadow-modal;
97
97
  }
98
98
 
99
+ /* --- On a native <dialog> (0.7.0) --------------------------------------
100
+ Two things the browser does for a <dialog> that the rules above and
101
+ Tailwind's Preflight undo. Both are scoped to the element, so a
102
+ <div class="vd-modal"> is untouched.
103
+
104
+ 1. A CLOSED dialog must not render. `.vd-modal` sets `display: flex`, which
105
+ outranks the browser's own `dialog:not([open]) { display: none }` — the
106
+ dialog sat on the page, 480px wide, before anyone opened it.
107
+ 2. An OPEN dialog centres on `margin: auto`. Preflight zeroes every margin,
108
+ which pinned a showModal()ed dialog to the top-left corner on `.` and
109
+ `./source` (reset.css already left <dialog> alone for ./styles.css). */
110
+ dialog.vd-modal {
111
+ margin: auto;
112
+ }
113
+
114
+ dialog.vd-modal:not([open]) {
115
+ display: none;
116
+ }
117
+
99
118
  /* --- Header ------------------------------------------------------------ */
100
119
 
101
120
  .vd-modal-header {
@@ -150,7 +169,7 @@
150
169
 
151
170
  .vd-modal-context {
152
171
  @apply flex w-full items-center;
153
- @apply p-3; /* 12px */
172
+ @apply p-2.75; /* 11px — Figma 12 − the 1px border */
154
173
  @apply rounded-surface; /* 8px */
155
174
  @apply border border-[length:var(--border-line)] border-stroke-border;
156
175
  @apply bg-surface-frame;
@@ -179,7 +179,7 @@
179
179
  /* Layout */
180
180
  @apply flex items-center gap-2; /* 8px */
181
181
  @apply px-2; /* 8px; no vertical padding — 46px height centres instead */
182
- @apply h-11.5; /* 46px */
182
+ @apply h-11.5 shrink-0; /* 46px — and it does not give way when the rail's content overflows */
183
183
 
184
184
  /* Shape */
185
185
  @apply rounded-tight; /* Radius/XS 4px */
@@ -308,8 +308,9 @@
308
308
  }
309
309
 
310
310
  /* Rev3: Action/Compact — mixed case, as Figma renders "Analyze". Still
311
- Content/Tertiary: 4.26:1 on Frame, the token-wide designer-blocked pair
312
- (the rail is transparent, so the surface decides). */
311
+ Content/Tertiary: 4.78:1 on Frame since the 0.7.0 token (it was 4.26, the
312
+ token-wide pair the designer has now fixed). The rail is transparent, so
313
+ the surface decides. */
313
314
  .vd-nav-group-label {
314
315
  @apply text-action-compact text-content-tertiary; /* 12 / 16 / 500 */
315
316
  }
@@ -599,7 +600,7 @@
599
600
  non-disabled element, but it is what the file specifies. */
600
601
  .vd-nav-badge {
601
602
  @apply inline-flex shrink-0 items-center justify-center;
602
- @apply h-4 px-1; /* Rev3: 16px (was 14), 4px */
603
+ @apply h-4 px-0.75; /* Rev3: 16px (was 14); 3px (Figma 4 − the rendered border) */
603
604
  @apply rounded-micro; /* Radius/Micro 2px */
604
605
  @apply border border-[length:var(--border-thin)] border-primary-disabled;
605
606
  @apply bg-primary-soft text-primary-dark;
@@ -706,6 +707,24 @@
706
707
  @apply bg-action-hover;
707
708
  }
708
709
 
710
+ /* Current (0.7.0) — the session that is open: Action/Selected, the fill an
711
+ ancestor Nav Item takes. The Application page draws it on the first row of
712
+ Continue and on its collapsed tile; the set has no variant for it
713
+ (designer-list item 104). Any `aria-current` value but "false" selects.
714
+ It outranks hover, as a selected Tab's fill does. */
715
+ .vd-nav-session[aria-current]:not([aria-current="false"]),
716
+ .vd-nav-session[aria-current]:not([aria-current="false"]):hover {
717
+ @apply bg-action-selected;
718
+ }
719
+
720
+ /* …and its status line steps up to Content/Secondary. Figma keeps
721
+ Content/Tertiary there, which is 4.10:1 on the selected fill over
722
+ Surface/Frame even with the 0.7.0 token (12px text needs 4.5; it was 3.64
723
+ with the old one). Pinned divergence, item 104. */
724
+ .vd-nav-session[aria-current]:not([aria-current="false"]) .vd-nav-session-status {
725
+ @apply text-content-secondary;
726
+ }
727
+
709
728
  .vd-nav-session:focus-visible {
710
729
  @apply focus-ring;
711
730
  }
@@ -729,9 +748,18 @@
729
748
  @apply truncate text-body-dense-strong text-content-primary; /* 13 / 18 / 500 */
730
749
  }
731
750
 
751
+ /* A block that truncates, with the dot as an inline mark before the text
752
+ (0.7.0). It was a flex row, and a flex container cannot ellipsize its own
753
+ text: a long status squeezed the dot into a sliver and never got its
754
+ ellipsis. The dot is centred on the 18px line (Figma: y 6–12) and keeps the
755
+ 5px gap. */
732
756
  .vd-nav-session-status {
733
- @apply flex items-center gap-1.25; /* 5px */
734
- @apply truncate text-supporting-caption text-content-tertiary; /* 12 / 18 / 400 */
757
+ @apply block truncate text-supporting-caption text-content-tertiary; /* 12 / 18 / 400 */
758
+ }
759
+
760
+ .vd-nav-session-status > * {
761
+ @apply mr-1.25 inline-block; /* 5px */
762
+ vertical-align: 1px; /* lifts the 6px dot from the baseline to the centre of the 18px line (measured: 6–12) */
735
763
  }
736
764
 
737
765
  /* Collapsed (the 60px rail): the tile alone, centred in a 44×32 cell, with
@@ -759,6 +787,18 @@
759
787
  bottom: -3px;
760
788
  }
761
789
 
790
+ /* Every part that hides its text with `sr-only` when collapsed is
791
+ `relative` (0.7.0), so the absolutely positioned text stays inside its own
792
+ row instead of in the nearest positioned ancestor's overflow (see Field
793
+ Verification's compact form for what that does to a scrolling page).
794
+ `.vd-nav-item` already was. */
795
+ .vd-nav-title,
796
+ .vd-nav-group,
797
+ .vd-nav-session,
798
+ .vd-nav-user {
799
+ @apply relative;
800
+ }
801
+
762
802
  /* --- User Row: who is signed in — replaces Settings at the foot of the
763
803
  rail and opens the account menu. A round Avatar, name and role, a 16px
764
804
  glyph. 44px, with a 0.5px Stroke/Divider rule above it. --- */
@@ -791,4 +831,94 @@
791
831
  .vd-nav-user-role {
792
832
  @apply truncate text-supporting-caption text-content-tertiary; /* 12 / 18 / 400 */
793
833
  }
834
+
835
+ /* Collapsed (0.7.0) — the account control in the 60px rail: the Avatar alone,
836
+ centred in a 44×32 cell, as Figma's Rail variant draws it (2045:39744). No
837
+ rule above it. Keep the name and role in the DOM, `sr-only` here: they are
838
+ the control's accessible name. A trailing glyph is dropped. */
839
+ .vd-nav-user-collapsed {
840
+ @apply h-8 w-11 justify-center border-t-0 p-0; /* 32px × 44px */
841
+ }
842
+
843
+ .vd-nav-user-collapsed .vd-nav-user-text {
844
+ @apply sr-only;
845
+ }
846
+
847
+ .vd-nav-user-collapsed > .vd-icon {
848
+ @apply hidden;
849
+ }
850
+
851
+ /* ================================================================== */
852
+ /* Nav Section Header — Figma 2042:36234 (0.7.0) */
853
+ /* ================================================================== */
854
+
855
+ /* A group label with something at its far end: "Pinned" and its Edit,
856
+ "Browse" and its chevron. 224×26 — a Nav Group that takes the free width,
857
+ then the action, 8px in from the right edge. The label keeps Nav Group's
858
+ treatment; nothing here restyles it. */
859
+ .vd-nav-section-header {
860
+ @apply flex w-full items-center pr-2; /* 8px */
861
+ }
862
+
863
+ .vd-nav-section-header > .vd-nav-group {
864
+ @apply w-auto flex-1;
865
+ min-width: 0;
866
+ }
867
+
868
+ /* The trailing action: Action/Compact in Content/Tertiary, the label's own
869
+ ink — bare text in Figma, or a 16px glyph on Browse. 4.78:1 on
870
+ Surface/Frame with the 0.7.0 Tertiary (#6a6a78; the old one was 4.26, and
871
+ a first draft of this rule shipped Content/Secondary for it). Figma draws
872
+ rest only; the step to Content/Primary on hover and the focus ring are
873
+ library decisions, as on Summary Preview's count. */
874
+ .vd-nav-section-header-action {
875
+ @apply inline-flex shrink-0 items-center;
876
+ @apply appearance-none border-none bg-transparent p-0;
877
+ @apply rounded-tight;
878
+ @apply text-action-compact text-content-tertiary; /* 12 / 16 / 500 */
879
+ @apply cursor-pointer transition-colors duration-150;
880
+ }
881
+
882
+ .vd-nav-section-header-action:hover:not(:disabled) {
883
+ @apply text-content-primary;
884
+ }
885
+
886
+ .vd-nav-section-header-action:focus-visible {
887
+ @apply focus-ring;
888
+ }
889
+
890
+ /* ================================================================== */
891
+ /* Nav Sidebar layout — Figma 2045:39747 (0.7.0) */
892
+ /* ================================================================== */
893
+
894
+ /* The Nav Sidebar set spaces its groups differently from the Nav Rail set
895
+ (728:20677) the classes above come from: no gap between sections, 8px
896
+ above each one, and 8px above the title. Both sets are in the file, so
897
+ this is a modifier on the rail, not a change to it. */
898
+ .vd-nav-rail-sidebar:not(.vd-nav-rail-collapsed) {
899
+ @apply pt-2; /* 8px — the Rail variant has none */
900
+ }
901
+
902
+ .vd-nav-rail-sidebar .vd-nav-rail-content {
903
+ @apply gap-0;
904
+ }
905
+
906
+ .vd-nav-rail-sidebar .vd-nav-rail-section {
907
+ @apply pt-2; /* 8px */
908
+ }
909
+
910
+ /* The top actions (Jump To over New Split): 4px apart, 4px under them. */
911
+ .vd-nav-rail-actions {
912
+ @apply flex w-full flex-col gap-1 pt-2 pb-1; /* 4px, 8px, 4px */
913
+ }
914
+
915
+ /* Collapsed (Figma's State=Rail): the actions group has no bottom padding,
916
+ and the footer group stacks its cells 4px apart. */
917
+ .vd-nav-rail-collapsed .vd-nav-rail-actions {
918
+ @apply pb-0;
919
+ }
920
+
921
+ .vd-nav-rail-collapsed.vd-nav-rail-sidebar .vd-nav-rail-footer {
922
+ @apply gap-1;
923
+ }
794
924
  }
@@ -0,0 +1,170 @@
1
+ /**
2
+ * Owner Row
3
+ *
4
+ * One owner in a record's Ownership list: who, their share and role, a status
5
+ * per check, and the chevron that expands the row. From two Figma sets that
6
+ * differ only in the leading mark — User Preview (245:6002) and Entity Preview
7
+ * (254:7453), each Hover × Expanded. New in 0.7.0; re-read after the sets were
8
+ * redrawn on 2026-11-19.
9
+ *
10
+ * <div class="vd-owner-row" role="row">
11
+ * <div class="vd-owner-row-main" role="cell">
12
+ * <span class="vd-avatar vd-avatar-md vd-avatar-square">JS</span>
13
+ * <span class="vd-owner-row-text">
14
+ * <span class="vd-owner-row-name">John Smith</span>
15
+ * <span class="vd-owner-row-meta">40% · Authorized Signer · Beneficial Owner</span>
16
+ * </span>
17
+ * </div>
18
+ * <span class="vd-owner-row-status" role="cell">…compact Field Verification…</span>
19
+ * <span class="vd-owner-row-status" role="cell">…</span>
20
+ * <span class="vd-owner-row-status" role="cell">…</span>
21
+ * <span class="vd-owner-row-actions" role="cell">
22
+ * <button class="vd-icon-button vd-icon-button-inline" aria-expanded="false" aria-label="John Smith details">…</button>
23
+ * </span>
24
+ * </div>
25
+ *
26
+ * 64px: 12 + the 40px text block (a 20px name, 2px, an 18px line) + 12, with 4px
27
+ * at the sides. The name is Body/Default Strong in Content/Primary, the line
28
+ * under it Body/Dense in Content/Secondary; both truncate. Hover is
29
+ * Action/Subtle, as Content Row's is.
30
+ *
31
+ * THE LEADING MARK IS A SLOT. A person takes a SQUARE Avatar md (20px, 5px
32
+ * corners — `.vd-avatar-square`: square marks an applicant or an owner, staff
33
+ * stay round); an entity takes `.vd-owner-row-tile`, a 20px Primary/Soft square
34
+ * with a 6px radius holding an 11px glyph in Primary/Main.
35
+ *
36
+ * THE GRID, as the redrawn sets fix it:
37
+ *
38
+ * 4 | owner (takes what is left) | 12 | status × 3 = 236 | 14 | chevron 18 | 4
39
+ *
40
+ * - The three status columns are equal thirds of a FIXED 236px (78⅔px each),
41
+ * with no gap between them. `--vd-owner-columns` splits the same 236px into
42
+ * another number.
43
+ * - The chevron has its own 18px slot after them, 14px on. It is a real grid
44
+ * column, so the row keeps its shape when a row has no chevron.
45
+ * - The OWNER column is the one that gives way. At the 960 page frames' 828px
46
+ * row it is 552px (508 of text after the mark and its gaps) and the statuses
47
+ * start at x 556 / 634⅔ / 713⅓, the chevron at 806. At C5's 722px the same
48
+ * 268px sits at the right edge and the owner column is 446.
49
+ *
50
+ * Owner Table Header uses the same template with 36px of right padding (the
51
+ * row's 4, plus the 14 + 18 of the chevron's slot), so a label always starts
52
+ * where its column does.
53
+ *
54
+ * THE 268 IS THE RECORD'S OWN RIGHT SIDE AT 828: there, the statuses start at
55
+ * x 556, exactly where Content Row's and Data Row's status column does (the
56
+ * 14px gap before the chevron is what closes it — with 12 they sat 2px on).
57
+ * But the owner list is NOT on the record's grid and does not read
58
+ * `--vd-record-text` (decided 2026-11-19): at a narrow width it keeps its own
59
+ * 236px of columns under its own header and lets the owner column give way,
60
+ * where the other rows keep their text and squeeze the status column. In C5
61
+ * its statuses start at 450 and the other rows' at 556.
62
+ *
63
+ * A SEVERITY COUNT IN A STATUS CELL takes `vd-severity-count-flush`, which
64
+ * drops its left padding so its marker starts at the column's edge, as the
65
+ * frames draw it.
66
+ *
67
+ * THE ROW'S ONLY CONTROL IS THE CHEVRON (decided 2026-11-19, designer-list
68
+ * item 100). The sets drew Edit and Comment beside it and no longer do:
69
+ * editing ownership is section-level, from the Ownership section's own line.
70
+ *
71
+ * ROLES. Inside a `role="table"` with Owner Table Header, the row is a
72
+ * `role="row"` and each direct child a `role="cell"`. Without a table, leave
73
+ * the roles off — a `row` with no table parent is an axe failure, which is the
74
+ * mistake the 0.6.0 header snippet made.
75
+ */
76
+
77
+ @layer components {
78
+ /* owner | 236px of status columns | the chevron's 14 + 18. No column gap:
79
+ Figma's Status Container has none; the 12px after the owner is the owner
80
+ cell's padding and the 14px before the chevron is in the chevron's track. */
81
+ .vd-owner-row {
82
+ @apply grid w-full items-center;
83
+ grid-template-columns:
84
+ minmax(0, 1fr)
85
+ repeat(var(--vd-owner-columns, 3), calc(236px / var(--vd-owner-columns, 3)))
86
+ 32px;
87
+ @apply px-1 py-3; /* 4px / 12px */
88
+ @apply rounded-tight; /* 4px, as Content Row */
89
+ }
90
+
91
+ .vd-owner-row:hover {
92
+ @apply bg-action-subtle;
93
+ }
94
+
95
+ /* --- The owner -------------------------------------------------------- */
96
+
97
+ /* 12px between the mark and the text, and 12px before the statuses. */
98
+ .vd-owner-row-main {
99
+ @apply flex items-center gap-3 pr-3; /* 12px */
100
+ min-width: 0;
101
+ }
102
+
103
+ /* An entity's mark: 20px, Primary/Soft, 6px corners, an 11px glyph. */
104
+ .vd-owner-row-tile {
105
+ @apply inline-flex size-5 shrink-0 items-center justify-center; /* 20px */
106
+ @apply rounded-control; /* 6px */
107
+ @apply bg-primary-soft text-primary;
108
+ }
109
+
110
+ .vd-owner-row-text {
111
+ @apply flex flex-1 flex-col gap-0.5; /* 2px */
112
+ min-width: 0;
113
+ }
114
+
115
+ .vd-owner-row-name {
116
+ @apply truncate text-body-default-strong text-content-primary; /* 14 / 20 / 500 */
117
+ }
118
+
119
+ .vd-owner-row-meta {
120
+ @apply truncate text-body-dense text-content-secondary; /* 13 / 18 / 400 */
121
+ }
122
+
123
+ /* --- Statuses ---------------------------------------------------------- */
124
+
125
+ /* One cell per check. Holds a compact Field Verification or a Severity
126
+ Count; the cell only places it. */
127
+ .vd-owner-row-status {
128
+ @apply flex items-center;
129
+ min-width: 0;
130
+ }
131
+
132
+ /* --- Actions ------------------------------------------------------------ */
133
+
134
+ /* The chevron's slot: the last track, 32px — 14px after the statuses, then
135
+ the 18px Icon Button at the row's right padding edge. Placed by name, not
136
+ by order, so a row with fewer status cells than columns keeps it there.
137
+
138
+ It holds the chevron and nothing else: an owner row has no Edit or
139
+ Comment tool (decided 2026-11-19), so there is no hover-revealed
140
+ `-action` class as Content Row and Data Row have. */
141
+ .vd-owner-row-actions {
142
+ grid-column: -2 / -1;
143
+ grid-row: 1;
144
+ @apply flex items-center justify-end;
145
+ }
146
+
147
+ /* The disclosure chevron turns over when its button is expanded, as Figma's
148
+ Expanded variants draw it. */
149
+ .vd-owner-row-actions [aria-expanded] .vd-icon {
150
+ @apply transition-transform duration-150;
151
+ }
152
+
153
+ .vd-owner-row-actions [aria-expanded="true"] .vd-icon {
154
+ @apply rotate-180;
155
+ }
156
+
157
+ /* --- States ------------------------------------------------------------- */
158
+
159
+ /* Linked — the owner a finding points at: Data Row's 2px Primary/Main stroke
160
+ on the left edge, as an inset shadow, and no fill. Not drawn for this row
161
+ in Figma; the same library decision as Content Row's (designer-list item 98). */
162
+ .vd-owner-row-linked {
163
+ box-shadow: inset 2px 0 0 var(--color-primary);
164
+ }
165
+
166
+ .vd-owner-row.vd-with-ring {
167
+ outline: var(--border-micro) solid var(--color-primary);
168
+ outline-offset: 0;
169
+ }
170
+ }
@@ -3,18 +3,24 @@
3
3
  *
4
4
  * The column labels above a list of owners. Extracted from Figma Owner Table
5
5
  * Header (2042:35106) — a single symbol: Owner, Identity, Application,
6
- * Documents.
6
+ * Documents. Re-read after it was redrawn on 2026-11-19.
7
7
  *
8
- * <div class="vd-owner-table-header" role="row">
9
- * <span class="vd-owner-table-header-cell vd-owner-table-header-cell-main" role="columnheader">Owner</span>
10
- * <span class="vd-owner-table-header-cell" role="columnheader">Identity</span>
11
- * …
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>
12
14
  * </div>
13
15
  *
14
- * It sits on the same grid as Content Row and Data Row: 4px padding-x, a 16px
15
- * gap, a 536px first column (`-cell-main`), then 94px status columns. Labels
16
- * are Label/Compact (12/16/600, 0.08em) in Content/Secondary; 8px padding-y and
17
- * a 0.5px Stroke/Divider rule underneath.
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.
18
24
  *
19
25
  * NOT PINNED. Figma's frame is 32.5 — 8 + 16 + 8 plus the half-pixel rule,
20
26
  * which Chrome paints as a full pixel, so the row renders 33.
@@ -24,19 +30,28 @@
24
30
  */
25
31
 
26
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. */
27
36
  .vd-owner-table-header {
28
- @apply flex w-full items-center gap-4; /* 16px */
29
- @apply px-1 py-2; /* 4px / 8px */
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 */
30
42
  @apply border-b border-b-[length:var(--border-thin)] border-stroke-divider;
31
43
  }
32
44
 
33
45
  .vd-owner-table-header-cell {
34
- @apply w-[94px] shrink-0 truncate;
46
+ @apply truncate;
47
+ min-width: 0;
35
48
  @apply text-label-compact text-content-secondary; /* 12 / 16 / 600 */
36
49
  @apply text-left;
37
50
  }
38
51
 
52
+ /* A no-op since 0.7.0 — the grid places the first cell. Kept so existing
53
+ markup needs no change. */
39
54
  .vd-owner-table-header-cell-main {
40
- @apply w-[536px];
55
+ min-width: 0;
41
56
  }
42
57
  }