@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
|
@@ -94,7 +94,9 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.vd-menu-item-right-text {
|
|
97
|
-
|
|
97
|
+
/* Content/Primary since 0.7.0 (it was Primary/Main). Figma binds a raw
|
|
98
|
+
#000000, as it does on the title (designer-list item 32). */
|
|
99
|
+
@apply shrink-0 text-right text-supporting-caption-strong text-content-primary; /* 12 / 18 / 500 */
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
/* --- Leading slots (_Menu Leading 1304:4764) ------------------------- */
|
|
@@ -123,10 +125,12 @@
|
|
|
123
125
|
|
|
124
126
|
/* --- Trailing slots (_Menu Trailing 1304:4844) ----------------------- */
|
|
125
127
|
|
|
126
|
-
/* 14px glyphs at every size — pair with .vd-icon-size-14.
|
|
127
|
-
|
|
128
|
+
/* 14px glyphs at every size — pair with .vd-icon-size-14. The check is
|
|
129
|
+
Primary/Main ITSELF since 0.7.0, as Figma binds it on _Menu Trailing's
|
|
130
|
+
Check kind (it used to inherit the selected row's colour); chevrons are
|
|
131
|
+
Content/Secondary. */
|
|
128
132
|
.vd-menu-item-check {
|
|
129
|
-
@apply shrink-0;
|
|
133
|
+
@apply shrink-0 text-primary;
|
|
130
134
|
}
|
|
131
135
|
|
|
132
136
|
.vd-menu-item-chevron,
|
|
@@ -152,6 +156,16 @@
|
|
|
152
156
|
@apply flex shrink-0 items-center;
|
|
153
157
|
}
|
|
154
158
|
|
|
159
|
+
/* Trailing switch (0.6.0) — _Menu Trailing Kind=Switch: a Switch instance,
|
|
160
|
+
32×18 at every row size. Holds `.vd-switch`. The row is then a <label>,
|
|
161
|
+
not a <button>: a label wrapping the switch's own input makes the whole
|
|
162
|
+
row the click target, names the control from the title, and keeps the
|
|
163
|
+
input as the one focusable — it rings itself, so the row needs no focus
|
|
164
|
+
rule of its own. */
|
|
165
|
+
.vd-menu-item-switch {
|
|
166
|
+
@apply flex shrink-0 items-center;
|
|
167
|
+
}
|
|
168
|
+
|
|
155
169
|
/* --- Sizes (min-height floors) --------------------------------------- */
|
|
156
170
|
|
|
157
171
|
.vd-menu-item-sm {
|
|
@@ -214,12 +228,26 @@
|
|
|
214
228
|
/* Selected — aria-selected for role="option" rows in a listbox; aria-checked
|
|
215
229
|
for role="menuitemcheckbox" / "menuitemradio" toggles in a menu. Plain
|
|
216
230
|
role="menuitem" supports NEITHER attribute (0.5.0 markup correction).
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
231
|
+
|
|
232
|
+
SINCE 0.7.0 THE ROW ITSELF DRAWS NOTHING FOR SELECTED: the mark is the
|
|
233
|
+
trailing check, which is Primary/Main on its own. Through 0.6.0 the whole
|
|
234
|
+
row turned Primary/Main — title, icons and check together. Figma's set has
|
|
235
|
+
no selected state (rest / hover / active / disabled, where "active" is the
|
|
236
|
+
pressed fill), and the Assign menu (2016:51341) draws its selected row at
|
|
237
|
+
rest with a `Primary/Main` check. A selected row therefore NEEDS its
|
|
238
|
+
`.vd-menu-item-check`: without one nothing marks it. */
|
|
239
|
+
|
|
240
|
+
/* Pressed, and a row whose submenu is open — both Figma's hover fill. The
|
|
241
|
+
Application page's actions menu (2016:51202) keeps State=hover on "Run KYC"
|
|
242
|
+
while its submenu shows; `aria-expanded="true"` on the row is what says so. */
|
|
243
|
+
.vd-menu-item:active:not(:disabled):not([aria-disabled="true"]),
|
|
244
|
+
.vd-menu-item[aria-expanded="true"] {
|
|
245
|
+
@apply bg-action-hover;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.vd-menu-item-critical:active:not(:disabled):not([aria-disabled="true"]),
|
|
249
|
+
.vd-menu-item-critical[aria-expanded="true"] {
|
|
250
|
+
@apply bg-critical-soft;
|
|
223
251
|
}
|
|
224
252
|
|
|
225
253
|
/* Figma's Rev3 disabled variants draw NO dimming at all (the title stays
|
package/src/components/modal.css
CHANGED
|
@@ -74,7 +74,9 @@
|
|
|
74
74
|
* POSITIONING AND THE BACKDROP ARE THE CONSUMER'S, as with Tooltip — Figma
|
|
75
75
|
* draws the dialog frame only, with no scrim layer. The one concession is a
|
|
76
76
|
* `::backdrop` rule for when `.vd-modal` is used on a native `<dialog>`, since a
|
|
77
|
-
* modal with no backdrop is not shippable.
|
|
77
|
+
* modal with no backdrop is not shippable. Since 0.6.0 its colour is
|
|
78
|
+
* `Overlay/Scrim`, the variable Figma's Overlay Scrim component (2038:33062)
|
|
79
|
+
* binds — it was an invented #141428 at 40%.
|
|
78
80
|
*/
|
|
79
81
|
|
|
80
82
|
@layer components {
|
|
@@ -94,6 +96,25 @@
|
|
|
94
96
|
@apply shadow-modal;
|
|
95
97
|
}
|
|
96
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
|
+
|
|
97
118
|
/* --- Header ------------------------------------------------------------ */
|
|
98
119
|
|
|
99
120
|
.vd-modal-header {
|
|
@@ -201,6 +222,12 @@
|
|
|
201
222
|
/* `<dialog>` centres itself and supplies a backdrop for free; both of its
|
|
202
223
|
UA defaults (1em padding, inset border) are already overridden above. */
|
|
203
224
|
dialog.vd-modal::backdrop {
|
|
204
|
-
|
|
225
|
+
/* Overlay/Scrim: #0f0f1a at 28% in Light, #000000 at 55% in Onyx. Lighter
|
|
226
|
+
in Light than the invented 40% this replaced.
|
|
227
|
+
::backdrop inherits custom properties from its dialog only in Chrome 122+,
|
|
228
|
+
Firefox 120+ and Safari 17.4+; before that it inherited from nothing and
|
|
229
|
+
the var() was undefined, so the Light value is restated as the fallback
|
|
230
|
+
rather than leaving an older browser with no scrim at all. */
|
|
231
|
+
background-color: var(--color-overlay-scrim, oklch(0.1743 0.0227 283.8 / 0.278));
|
|
205
232
|
}
|
|
206
233
|
}
|
|
@@ -124,6 +124,27 @@
|
|
|
124
124
|
@apply w-15; /* 60px */
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
/* Peek (0.6.0) — Nav Sidebar State=Peek (2053:93458): the expanded rail
|
|
128
|
+
floated OVER the page while the sidebar is hidden, shown when the pointer
|
|
129
|
+
reaches the screen edge. Same 240px and padding as the expanded rail, plus
|
|
130
|
+
the two things that make it an overlay: a Surface/Frame fill (the rail is
|
|
131
|
+
otherwise transparent) and a shadow thrown to the right. Out of flow, on
|
|
132
|
+
the left edge of its positioned ancestor; z-50 matches the dropdown panel.
|
|
133
|
+
The hover-edge trigger is the consumer's — the library ships no JavaScript
|
|
134
|
+
— and Figma draws no hot zone to copy. */
|
|
135
|
+
.vd-nav-rail-peek {
|
|
136
|
+
@apply absolute inset-y-0 left-0 z-50;
|
|
137
|
+
@apply bg-surface-frame shadow-peek;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* Hidden means not rendered — Figma has no Hidden variant. `.vd-nav-rail`
|
|
141
|
+
is `display: flex`, which beats the UA's `[hidden] { display: none }`, so
|
|
142
|
+
without this guard the attribute would do nothing on the prebuilt bundle
|
|
143
|
+
(which ships no Preflight). Same guard as `.vd-dropdown-panel[hidden]`. */
|
|
144
|
+
.vd-nav-rail[hidden] {
|
|
145
|
+
display: none;
|
|
146
|
+
}
|
|
147
|
+
|
|
127
148
|
/* Sections wrapper. `justify-between` on the rail pushes the footer down —
|
|
128
149
|
in Figma the 149px of slack is absorbed that way, with no spacer node.
|
|
129
150
|
|
|
@@ -287,8 +308,9 @@
|
|
|
287
308
|
}
|
|
288
309
|
|
|
289
310
|
/* Rev3: Action/Compact — mixed case, as Figma renders "Analyze". Still
|
|
290
|
-
Content/Tertiary: 4.
|
|
291
|
-
|
|
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. */
|
|
292
314
|
.vd-nav-group-label {
|
|
293
315
|
@apply text-action-compact text-content-tertiary; /* 12 / 16 / 500 */
|
|
294
316
|
}
|
|
@@ -478,6 +500,12 @@
|
|
|
478
500
|
@apply bg-primary; /* Primary/Main — Analytics, Email automation */
|
|
479
501
|
}
|
|
480
502
|
|
|
503
|
+
/* Critical/Main (0.6.0) — the red dot Figma draws on a Session Row and
|
|
504
|
+
Session Tile that needs attention. */
|
|
505
|
+
.vd-nav-item-status-critical {
|
|
506
|
+
@apply bg-critical;
|
|
507
|
+
}
|
|
508
|
+
|
|
481
509
|
/* --- Nav Item states ------------------------------------------------ */
|
|
482
510
|
|
|
483
511
|
/* In every state but rest the icon follows the row's ink instead of its
|
|
@@ -591,4 +619,296 @@
|
|
|
591
619
|
outline: var(--border-micro) solid var(--color-primary);
|
|
592
620
|
outline-offset: 0;
|
|
593
621
|
}
|
|
622
|
+
|
|
623
|
+
/* =======================================================================
|
|
624
|
+
Nav Sidebar parts (0.6.0) — Figma section 04: Nav / New Split 1663:43012,
|
|
625
|
+
Nav / Jump To 1663:43022, Nav / Session Row 1663:43038, Nav / Session Tile
|
|
626
|
+
(collapsed) 1663:43061, Nav / User Row 1663:43051. They sit in the same
|
|
627
|
+
224px content column as `.vd-nav-item` and share its 32px row where they
|
|
628
|
+
are one line. Figma draws each at rest only; hover and focus follow
|
|
629
|
+
`.vd-nav-item` (Action/Hover + the focus ring) — designer-list item 93.
|
|
630
|
+
======================================================================= */
|
|
631
|
+
|
|
632
|
+
/* --- New Split: a split button — the label starts the default object, the
|
|
633
|
+
chevron opens the Create menu. NEUTRAL, not blue: an Action/Hover fill
|
|
634
|
+
with Content/Primary ink (the Figma description still says Primary/Soft).
|
|
635
|
+
Two buttons in one 32px box, the second behind a 1px Stroke/Divider. --- */
|
|
636
|
+
.vd-nav-split {
|
|
637
|
+
@apply flex h-8 w-full items-stretch overflow-hidden; /* 32px */
|
|
638
|
+
@apply rounded-control; /* 6px */
|
|
639
|
+
@apply bg-action-hover;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.vd-nav-split-main,
|
|
643
|
+
.vd-nav-split-toggle {
|
|
644
|
+
@apply inline-flex items-center appearance-none border-none bg-transparent no-underline;
|
|
645
|
+
@apply text-action-default text-content-primary; /* 13 / 18 / 500 */
|
|
646
|
+
@apply cursor-pointer transition-colors duration-150;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.vd-nav-split-main {
|
|
650
|
+
@apply flex-1 gap-3 px-2 text-left; /* 12px, 8px */
|
|
651
|
+
min-width: 0;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.vd-nav-split-toggle {
|
|
655
|
+
@apply w-7 shrink-0 justify-center; /* 28px */
|
|
656
|
+
/* border-solid is load-bearing: the shared rule above resets the button
|
|
657
|
+
with border-none, which sets border-STYLE none and computes the rule
|
|
658
|
+
to 0 however wide it is declared. */
|
|
659
|
+
@apply border-0 border-l border-solid border-l-[length:var(--border-line)] border-stroke-divider;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.vd-nav-split-main:hover:not(:disabled),
|
|
663
|
+
.vd-nav-split-toggle:hover:not(:disabled) {
|
|
664
|
+
@apply bg-action-hover;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.vd-nav-split-main:focus-visible,
|
|
668
|
+
.vd-nav-split-toggle:focus-visible {
|
|
669
|
+
@apply focus-ring;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/* --- Jump To: a quiet row that opens the rail's filter. Icon, a tertiary
|
|
673
|
+
label, and a Keycap at the far end. Hover is Action/Hover (stated in the
|
|
674
|
+
Figma description); the active state is a Search Field, the consumer's. --- */
|
|
675
|
+
.vd-nav-jump {
|
|
676
|
+
@apply flex h-8 w-full items-center gap-3 px-2; /* 32px, 12px, 8px */
|
|
677
|
+
@apply rounded-control; /* 6px */
|
|
678
|
+
@apply appearance-none border-none bg-transparent text-left no-underline;
|
|
679
|
+
@apply text-body-dense-strong text-content-tertiary; /* 13 / 18 / 500 */
|
|
680
|
+
@apply cursor-pointer transition-colors duration-150;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.vd-nav-jump-label {
|
|
684
|
+
@apply flex-1 truncate;
|
|
685
|
+
min-width: 0;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.vd-nav-jump:hover:not(:disabled) {
|
|
689
|
+
@apply bg-action-hover;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.vd-nav-jump:focus-visible {
|
|
693
|
+
@apply focus-ring;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
/* --- Session Row: one recent session — a tile with initials (or a 14px
|
|
697
|
+
glyph), a title, and a status line led by a Dot. 43px: 3 + 18 + 1 + 18 + 3.
|
|
698
|
+
Top-aligned, so the tile sits beside the title. --- */
|
|
699
|
+
.vd-nav-session {
|
|
700
|
+
@apply flex w-full items-start gap-3 px-2 py-0.75; /* 12px, 8px, 3px */
|
|
701
|
+
@apply rounded-control; /* 6px */
|
|
702
|
+
@apply appearance-none border-none bg-transparent text-left no-underline;
|
|
703
|
+
@apply cursor-pointer transition-colors duration-150;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.vd-nav-session:hover:not(:disabled) {
|
|
707
|
+
@apply bg-action-hover;
|
|
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
|
+
|
|
728
|
+
.vd-nav-session:focus-visible {
|
|
729
|
+
@apply focus-ring;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
/* 22×22 in a row, 24×24 in the collapsed tile. Square — a session is a
|
|
733
|
+
record, not a person. Initials are Utility/Avatar Initials, like Avatar's. */
|
|
734
|
+
.vd-nav-session-tile {
|
|
735
|
+
@apply relative mt-px inline-flex size-[22px] shrink-0 items-center justify-center;
|
|
736
|
+
@apply rounded-control; /* 6px */
|
|
737
|
+
@apply border border-[length:var(--border-line)] border-stroke-divider;
|
|
738
|
+
@apply bg-surface-paper text-content-primary;
|
|
739
|
+
@apply text-utility-avatar-initials; /* 8 / 8 / 600 */
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
.vd-nav-session-text {
|
|
743
|
+
@apply flex flex-1 flex-col gap-px; /* 1px */
|
|
744
|
+
min-width: 0;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
.vd-nav-session-title {
|
|
748
|
+
@apply truncate text-body-dense-strong text-content-primary; /* 13 / 18 / 500 */
|
|
749
|
+
}
|
|
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. */
|
|
756
|
+
.vd-nav-session-status {
|
|
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) */
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
/* Collapsed (the 60px rail): the tile alone, centred in a 44×32 cell, with
|
|
766
|
+
the status as a dot on its corner. Keep the title in the DOM — it is the
|
|
767
|
+
link's accessible name, as with a collapsed nav item. */
|
|
768
|
+
.vd-nav-session-collapsed {
|
|
769
|
+
@apply h-8 w-11 items-center justify-center p-0; /* 32px × 44px */
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
.vd-nav-session-collapsed .vd-nav-session-tile {
|
|
773
|
+
@apply mt-0 size-6; /* 24px */
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
.vd-nav-session-collapsed .vd-nav-session-text {
|
|
777
|
+
@apply sr-only;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
/* Additive, on a Dot inside the collapsed tile: 8px with a 2px
|
|
781
|
+
Surface/Neutral edge (so 4px of colour shows), overhanging the corner by
|
|
782
|
+
3px — Figma places it at 19,19 in the 24px tile. */
|
|
783
|
+
.vd-nav-session-dot {
|
|
784
|
+
@apply absolute size-2; /* 8px */
|
|
785
|
+
@apply border-[length:var(--border-micro)] border-solid border-surface-neutral;
|
|
786
|
+
right: -3px;
|
|
787
|
+
bottom: -3px;
|
|
788
|
+
}
|
|
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
|
+
|
|
802
|
+
/* --- User Row: who is signed in — replaces Settings at the foot of the
|
|
803
|
+
rail and opens the account menu. A round Avatar, name and role, a 16px
|
|
804
|
+
glyph. 44px, with a 0.5px Stroke/Divider rule above it. --- */
|
|
805
|
+
.vd-nav-user {
|
|
806
|
+
@apply flex w-full items-center gap-3 px-2 py-0.75; /* 12px, 8px, 3px */
|
|
807
|
+
@apply rounded-control; /* 6px */
|
|
808
|
+
@apply appearance-none bg-transparent text-left no-underline;
|
|
809
|
+
@apply border-0 border-t border-t-[length:var(--border-thin)] border-solid border-stroke-divider;
|
|
810
|
+
@apply text-content-secondary;
|
|
811
|
+
@apply cursor-pointer transition-colors duration-150;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.vd-nav-user:hover:not(:disabled) {
|
|
815
|
+
@apply bg-action-hover;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
.vd-nav-user:focus-visible {
|
|
819
|
+
@apply focus-ring;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.vd-nav-user-text {
|
|
823
|
+
@apply flex flex-1 flex-col gap-px; /* 1px */
|
|
824
|
+
min-width: 0;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
.vd-nav-user-name {
|
|
828
|
+
@apply truncate text-body-dense-strong text-content-primary; /* 13 / 18 / 500 */
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
.vd-nav-user-role {
|
|
832
|
+
@apply truncate text-supporting-caption text-content-tertiary; /* 12 / 18 / 400 */
|
|
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
|
+
}
|
|
594
914
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Overlay Scrim
|
|
3
|
+
*
|
|
4
|
+
* The dimmed backdrop behind an overlay. From Figma Overlay Scrim (2038:33062)
|
|
5
|
+
* — a single symbol filled with Overlay/Scrim. Figma: "Dimmed backdrop behind a
|
|
6
|
+
* peeking nav or modal."
|
|
7
|
+
*
|
|
8
|
+
* <div class="vd-overlay-scrim" hidden></div>
|
|
9
|
+
*
|
|
10
|
+
* Covers the viewport (`position: fixed; inset: 0`) at z-40 — one step under
|
|
11
|
+
* the peeking rail and the dropdown panel (z-50), which sit on top of it.
|
|
12
|
+
* Overlay/Scrim is #0f0f1a at 28% in Light and black at 55% in Onyx.
|
|
13
|
+
*
|
|
14
|
+
* It declares no `display`, so the native `hidden` attribute shows and hides it
|
|
15
|
+
* — the library ships no JavaScript. A native <dialog> does not need it:
|
|
16
|
+
* `.vd-modal::backdrop` already paints the same token.
|
|
17
|
+
*
|
|
18
|
+
* It is decorative: give it no role, and close the overlay on click yourself.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
@layer components {
|
|
22
|
+
.vd-overlay-scrim {
|
|
23
|
+
@apply fixed inset-0 z-40;
|
|
24
|
+
@apply bg-overlay-scrim;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -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
|
+
}
|