@valiify/dashboard-ui 0.6.0 → 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 +223 -0
- package/COMPONENTS.md +409 -42
- package/README.md +3 -3
- package/class-manifest.json +78 -2
- package/dist/dashboard-ui.css +778 -97
- package/dist/index.css +778 -97
- package/package.json +7 -7
- package/src/components/add-funds-form.css +2 -1
- package/src/components/button.css +29 -11
- package/src/components/checklist-group.css +5 -4
- package/src/components/content-row.css +29 -4
- package/src/components/data-list.css +91 -0
- package/src/components/data-row.css +14 -1
- package/src/components/dropdown-menu.css +6 -2
- package/src/components/field-verification.css +6 -1
- package/src/components/final-decision.css +51 -0
- package/src/components/finding-card.css +56 -16
- package/src/components/finding-option.css +10 -4
- package/src/components/funding-total.css +2 -1
- package/src/components/funding-transaction.css +8 -3
- package/src/components/index.css +7 -0
- package/src/components/keycap.css +1 -1
- package/src/components/menu-item.css +28 -10
- package/src/components/modal.css +19 -0
- package/src/components/navigation-rail.css +124 -4
- package/src/components/owner-row.css +170 -0
- package/src/components/owner-table-header.css +28 -13
- package/src/components/panel-section-header.css +5 -2
- package/src/components/radio-select.css +5 -2
- package/src/components/record.css +56 -0
- package/src/components/scoring-details.css +79 -0
- package/src/components/section-edit.css +109 -0
- package/src/components/severity-count.css +13 -0
- package/src/components/step.css +1 -1
- package/src/components/summary-panel.css +250 -0
- package/src/components/summary-preview.css +5 -1
- package/src/components/tabs.css +3 -2
- package/src/components/tag.css +4 -2
- package/src/components/toast.css +1 -1
- package/src/themes/valiify-tokens.css +1 -1
- package/src/themes/valiify.css +1 -1
- package/types/components.d.ts +98 -4
package/src/components/index.css
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
@import "./comment-item.css";
|
|
20
20
|
@import "./composer.css";
|
|
21
21
|
@import "./content-row.css";
|
|
22
|
+
@import "./data-list.css";
|
|
22
23
|
@import "./data-row.css";
|
|
23
24
|
@import "./divider.css";
|
|
24
25
|
@import "./dropdown-field.css";
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
@import "./entity-header.css";
|
|
27
28
|
@import "./field-verification.css";
|
|
28
29
|
@import "./filter-segment.css";
|
|
30
|
+
@import "./final-decision.css";
|
|
29
31
|
@import "./finding-card.css";
|
|
30
32
|
@import "./finding-option.css";
|
|
31
33
|
@import "./finding-row.css";
|
|
@@ -44,6 +46,7 @@
|
|
|
44
46
|
@import "./modal.css";
|
|
45
47
|
@import "./navigation-rail.css";
|
|
46
48
|
@import "./overlay-scrim.css";
|
|
49
|
+
@import "./owner-row.css";
|
|
47
50
|
@import "./owner-table-header.css";
|
|
48
51
|
@import "./ownership.css";
|
|
49
52
|
@import "./pagination.css";
|
|
@@ -56,9 +59,12 @@
|
|
|
56
59
|
@import "./progress-circle.css";
|
|
57
60
|
@import "./radio-select.css";
|
|
58
61
|
@import "./recipient-input.css";
|
|
62
|
+
@import "./record.css";
|
|
59
63
|
@import "./resize-handle.css";
|
|
60
64
|
@import "./resolved-row.css";
|
|
65
|
+
@import "./scoring-details.css";
|
|
61
66
|
@import "./scrollbar.css";
|
|
67
|
+
@import "./section-edit.css";
|
|
62
68
|
@import "./section-marker.css";
|
|
63
69
|
@import "./segment-selector.css";
|
|
64
70
|
@import "./sensitive-data.css";
|
|
@@ -68,6 +74,7 @@
|
|
|
68
74
|
@import "./snapshot-metric.css";
|
|
69
75
|
@import "./step.css";
|
|
70
76
|
@import "./stepper.css";
|
|
77
|
+
@import "./summary-panel.css";
|
|
71
78
|
@import "./summary-preview.css";
|
|
72
79
|
@import "./switch.css";
|
|
73
80
|
@import "./tabs.css";
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Nothing is pinned — the box is 1 + 1 + the 12px line + 1 + 1.
|
|
13
13
|
*
|
|
14
14
|
* Use a <kbd>: it is the element for keyboard input, and it needs no role.
|
|
15
|
-
* Content/Tertiary on Paper is
|
|
15
|
+
* Content/Tertiary on Paper is 5.32:1 in Light and 5.22 in Onyx.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
@layer components {
|
|
@@ -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,
|
|
@@ -224,12 +228,26 @@
|
|
|
224
228
|
/* Selected — aria-selected for role="option" rows in a listbox; aria-checked
|
|
225
229
|
for role="menuitemcheckbox" / "menuitemradio" toggles in a menu. Plain
|
|
226
230
|
role="menuitem" supports NEITHER attribute (0.5.0 markup correction).
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
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;
|
|
233
251
|
}
|
|
234
252
|
|
|
235
253
|
/* Figma's Rev3 disabled variants draw NO dimming at all (the title stays
|
package/src/components/modal.css
CHANGED
|
@@ -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 {
|
|
@@ -308,8 +308,9 @@
|
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
/* Rev3: Action/Compact — mixed case, as Figma renders "Analyze". Still
|
|
311
|
-
Content/Tertiary: 4.
|
|
312
|
-
|
|
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
|
}
|
|
@@ -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
|
|
734
|
-
|
|
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,84 @@
|
|
|
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
|
+
}
|
|
794
914
|
}
|
|
@@ -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
|
|
9
|
-
* <
|
|
10
|
-
*
|
|
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
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
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
|
|
29
|
-
|
|
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
|
|
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
|
-
|
|
55
|
+
min-width: 0;
|
|
41
56
|
}
|
|
42
57
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* <h3 class="vd-panel-section-header-title">Findings</h3>
|
|
10
10
|
* <span class="vd-panel-section-header-count">5</span>
|
|
11
11
|
* <button class="vd-icon-button vd-icon-button-inline" aria-expanded="true"
|
|
12
|
-
* aria-controls="findings" aria-label="Findings">…#chevron-
|
|
12
|
+
* aria-controls="findings" aria-label="Findings">…#chevron-up…</button>
|
|
13
13
|
* </div>
|
|
14
14
|
*
|
|
15
15
|
* 24px tall (3 + the 18px Icon Button + 3 — not pinned), 12px padding-x, 8px
|
|
@@ -47,7 +47,10 @@
|
|
|
47
47
|
@apply transition-transform duration-150;
|
|
48
48
|
}
|
|
49
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. */
|
|
50
53
|
.vd-panel-section-header [aria-expanded="false"] .vd-icon {
|
|
51
|
-
@apply
|
|
54
|
+
@apply rotate-180;
|
|
52
55
|
}
|
|
53
56
|
}
|
|
@@ -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
|
-
|
|
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
|
+
}
|