@valiify/dashboard-ui 0.5.1 → 0.6.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 +233 -1
- package/COMPONENTS.md +1058 -12
- package/README.md +40 -7
- package/class-manifest.json +187 -2
- package/dist/dashboard-ui.css +3017 -918
- package/dist/index.css +2370 -448
- package/package.json +3 -2
- package/src/components/add-funds-form.css +68 -0
- package/src/components/alert.css +33 -56
- package/src/components/avatar.css +38 -2
- package/src/components/button.css +24 -19
- package/src/components/card.css +1 -1
- package/src/components/checklist-group.css +115 -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 +108 -0
- package/src/components/data-row.css +71 -19
- package/src/components/dropdown-field.css +9 -0
- package/src/components/entity-header.css +61 -0
- package/src/components/field-verification.css +113 -38
- package/src/components/finding-card.css +117 -0
- package/src/components/finding-option.css +39 -0
- package/src/components/finding-row.css +45 -0
- package/src/components/funding-status.css +61 -0
- package/src/components/funding-total.css +56 -0
- package/src/components/funding-transaction.css +103 -0
- package/src/components/index.css +29 -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 +10 -0
- package/src/components/modal.css +10 -2
- package/src/components/navigation-rail.css +200 -0
- package/src/components/overlay-scrim.css +26 -0
- package/src/components/owner-table-header.css +42 -0
- package/src/components/ownership.css +73 -0
- package/src/components/panel-section-header.css +53 -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/resize-handle.css +131 -0
- package/src/components/resolved-row.css +50 -0
- package/src/components/scrollbar.css +47 -0
- package/src/components/severity-count.css +50 -0
- package/src/components/severity-marker.css +66 -0
- package/src/components/snapshot-metric.css +72 -0
- package/src/components/summary-preview.css +72 -0
- package/src/components/switch.css +10 -1
- package/src/components/tag.css +20 -0
- package/src/components/textarea.css +4 -0
- package/src/components/toast.css +9 -5
- package/src/components/tooltip.css +14 -8
- package/src/themes/valiify-tokens.css +240 -6
- package/src/themes/valiify.css +243 -6
- package/types/components.d.ts +291 -8
package/src/components/index.css
CHANGED
|
@@ -5,41 +5,70 @@
|
|
|
5
5
|
* Components are loaded in alphabetical order for consistency.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
@import "./add-funds-form.css";
|
|
8
9
|
@import "./alert.css";
|
|
9
10
|
@import "./avatar.css";
|
|
10
11
|
@import "./breadcrumbs.css";
|
|
11
12
|
@import "./button.css";
|
|
12
13
|
@import "./card.css";
|
|
13
14
|
@import "./checkbox.css";
|
|
15
|
+
@import "./checklist-group.css";
|
|
16
|
+
@import "./checklist-task.css";
|
|
14
17
|
@import "./chip.css";
|
|
18
|
+
@import "./comment-date.css";
|
|
19
|
+
@import "./comment-item.css";
|
|
15
20
|
@import "./composer.css";
|
|
21
|
+
@import "./content-row.css";
|
|
16
22
|
@import "./data-row.css";
|
|
17
23
|
@import "./divider.css";
|
|
18
24
|
@import "./dropdown-field.css";
|
|
19
25
|
@import "./dropdown-menu.css";
|
|
26
|
+
@import "./entity-header.css";
|
|
20
27
|
@import "./field-verification.css";
|
|
21
28
|
@import "./filter-segment.css";
|
|
29
|
+
@import "./finding-card.css";
|
|
30
|
+
@import "./finding-option.css";
|
|
31
|
+
@import "./finding-row.css";
|
|
32
|
+
@import "./funding-status.css";
|
|
33
|
+
@import "./funding-total.css";
|
|
34
|
+
@import "./funding-transaction.css";
|
|
22
35
|
@import "./icon.css";
|
|
23
36
|
@import "./icon-button.css";
|
|
37
|
+
@import "./inline-confirm.css";
|
|
24
38
|
@import "./input.css";
|
|
39
|
+
@import "./keycap.css";
|
|
25
40
|
@import "./link.css";
|
|
26
41
|
@import "./loading-indicator.css";
|
|
27
42
|
@import "./loading-inline.css";
|
|
28
43
|
@import "./menu-item.css";
|
|
29
44
|
@import "./modal.css";
|
|
30
45
|
@import "./navigation-rail.css";
|
|
46
|
+
@import "./overlay-scrim.css";
|
|
47
|
+
@import "./owner-table-header.css";
|
|
48
|
+
@import "./ownership.css";
|
|
31
49
|
@import "./pagination.css";
|
|
32
50
|
@import "./pagination-item.css";
|
|
51
|
+
@import "./panel-section-header.css";
|
|
52
|
+
@import "./panel-status.css";
|
|
53
|
+
@import "./panel-strip-button.css";
|
|
33
54
|
@import "./pill.css";
|
|
34
55
|
@import "./progress-bar.css";
|
|
56
|
+
@import "./progress-circle.css";
|
|
35
57
|
@import "./radio-select.css";
|
|
36
58
|
@import "./recipient-input.css";
|
|
59
|
+
@import "./resize-handle.css";
|
|
60
|
+
@import "./resolved-row.css";
|
|
61
|
+
@import "./scrollbar.css";
|
|
37
62
|
@import "./section-marker.css";
|
|
38
63
|
@import "./segment-selector.css";
|
|
39
64
|
@import "./sensitive-data.css";
|
|
65
|
+
@import "./severity-count.css";
|
|
66
|
+
@import "./severity-marker.css";
|
|
40
67
|
@import "./skeleton.css";
|
|
68
|
+
@import "./snapshot-metric.css";
|
|
41
69
|
@import "./step.css";
|
|
42
70
|
@import "./stepper.css";
|
|
71
|
+
@import "./summary-preview.css";
|
|
43
72
|
@import "./switch.css";
|
|
44
73
|
@import "./tabs.css";
|
|
45
74
|
@import "./tag.css";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inline Confirm
|
|
3
|
+
*
|
|
4
|
+
* A confirmation bar that opens under a row. Extracted from Figma Inline
|
|
5
|
+
* Confirm (2038:32951) — a single symbol. Figma: "message, Cancel, and the
|
|
6
|
+
* confirming action."
|
|
7
|
+
*
|
|
8
|
+
* <div class="vd-inline-confirm" role="group" aria-label="Confirm refund">
|
|
9
|
+
* <p class="vd-inline-confirm-message">Refund $300.00 to Card ••1111? This can't be undone.</p>
|
|
10
|
+
* <button class="vd-btn vd-btn-empty">Cancel</button>
|
|
11
|
+
* <button class="vd-btn vd-btn-critical">Refund $300.00</button>
|
|
12
|
+
* </div>
|
|
13
|
+
*
|
|
14
|
+
* A bar: Surface/Card, a 1px Stroke/Divider, 8px radius, 12/10 padding and an
|
|
15
|
+
* 8px gap — 50px tall around its 28px buttons (1 + 10 + 28 + 10 + 1). The
|
|
16
|
+
* message is Body/Dense in Content/Secondary and takes the free width; Figma
|
|
17
|
+
* types it as raw Inter Regular 13.
|
|
18
|
+
*
|
|
19
|
+
* The buttons are Button instances: empty for Cancel, and the confirming
|
|
20
|
+
* action in whatever display the action deserves — Figma draws CRITICAL, for a
|
|
21
|
+
* refund.
|
|
22
|
+
*
|
|
23
|
+
* FOCUS IS THE CONSUMER'S: when the bar appears, move focus to it (to Cancel,
|
|
24
|
+
* for a destructive action) and return it to the trigger when it closes. It
|
|
25
|
+
* is not a dialog and traps nothing.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
@layer components {
|
|
29
|
+
.vd-inline-confirm {
|
|
30
|
+
@apply flex w-full items-center gap-2; /* 8px */
|
|
31
|
+
@apply px-3 py-2.5; /* 12px / 10px */
|
|
32
|
+
@apply rounded-surface; /* 8px */
|
|
33
|
+
@apply border border-[length:var(--border-line)] border-stroke-divider;
|
|
34
|
+
@apply bg-surface-card;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.vd-inline-confirm-message {
|
|
38
|
+
@apply flex-1;
|
|
39
|
+
@apply text-body-dense text-content-secondary; /* 13 / 18 / 400 */
|
|
40
|
+
min-width: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
package/src/components/input.css
CHANGED
|
@@ -199,6 +199,13 @@
|
|
|
199
199
|
/* Focus */
|
|
200
200
|
.vd-input-field:focus-within {
|
|
201
201
|
@apply focus-ring;
|
|
202
|
+
/* THE ACTIVE HALO (0.6.0). Figma's State=active draws a 3px halo around the
|
|
203
|
+
field on all four field sets — a drop shadow with 0 offset, 0 blur and a
|
|
204
|
+
3px spread, bound to Primary/Soft. It was in the file since Rev3 and
|
|
205
|
+
missed: get_variable_defs reported Primary/Soft on these sets, but the
|
|
206
|
+
binding is on an EFFECT, which no fill/stroke read sees. A box-shadow, so
|
|
207
|
+
it takes no layout space; an `overflow: hidden` ancestor clips it. */
|
|
208
|
+
box-shadow: 0 0 0 3px var(--color-primary-soft);
|
|
202
209
|
}
|
|
203
210
|
|
|
204
211
|
/* Error */
|
|
@@ -206,6 +213,18 @@
|
|
|
206
213
|
@apply border-critical;
|
|
207
214
|
}
|
|
208
215
|
|
|
216
|
+
/* Active + error. AS DRAWN, AND THE FOUR SETS DISAGREE: Input Field's halo
|
|
217
|
+
turns Neutral/Soft when the field is in error; Search Field, Dropdown
|
|
218
|
+
Field and Text Area keep Primary/Soft. Each follows its own set, so the
|
|
219
|
+
search modifier restates the base halo. Designer-list item 65. */
|
|
220
|
+
.vd-input-field.vd-input-error:focus-within {
|
|
221
|
+
box-shadow: 0 0 0 3px var(--color-neutral-soft);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.vd-input-field.vd-input-search.vd-input-error:focus-within {
|
|
225
|
+
box-shadow: 0 0 0 3px var(--color-primary-soft);
|
|
226
|
+
}
|
|
227
|
+
|
|
209
228
|
/* Disabled — Rev3 fills: Action/Subtle on the White BG, Surface/Neutral on
|
|
210
229
|
the Neutral BG (each one step below its rest fill). */
|
|
211
230
|
.vd-input-field:has(:disabled),
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keycap
|
|
3
|
+
*
|
|
4
|
+
* A keyboard-shortcut hint. Extracted from Figma Nav / Keycap (1663:43064) — a
|
|
5
|
+
* single symbol. Figma: "Keyboard shortcut hint used in Jump To and menus."
|
|
6
|
+
*
|
|
7
|
+
* <kbd class="vd-keycap">⌘K</kbd>
|
|
8
|
+
*
|
|
9
|
+
* 16px tall, hugging its keys: a 1px Stroke/Divider border (Stroke/Line, not
|
|
10
|
+
* the 0.5px hairline), 4px radius (Radius/XS), 4px padding-x, and
|
|
11
|
+
* Utility/Badge Count (10 / 12 / 500, JetBrains Mono) in Content/Tertiary.
|
|
12
|
+
* Nothing is pinned — the box is 1 + 1 + the 12px line + 1 + 1.
|
|
13
|
+
*
|
|
14
|
+
* Use a <kbd>: it is the element for keyboard input, and it needs no role.
|
|
15
|
+
* Content/Tertiary on Paper is 4.74:1 in Light and 5.22 in Onyx.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
@layer components {
|
|
19
|
+
.vd-keycap {
|
|
20
|
+
@apply inline-flex shrink-0 items-center justify-center;
|
|
21
|
+
@apply px-1 py-px; /* 4px / 1px */
|
|
22
|
+
@apply rounded-tight; /* 4px */
|
|
23
|
+
@apply border border-[length:var(--border-line)] border-stroke-divider;
|
|
24
|
+
@apply text-utility-badge-count font-mono text-content-tertiary; /* 10 / 12 / 500 */
|
|
25
|
+
@apply whitespace-nowrap;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -152,6 +152,16 @@
|
|
|
152
152
|
@apply flex shrink-0 items-center;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
/* Trailing switch (0.6.0) — _Menu Trailing Kind=Switch: a Switch instance,
|
|
156
|
+
32×18 at every row size. Holds `.vd-switch`. The row is then a <label>,
|
|
157
|
+
not a <button>: a label wrapping the switch's own input makes the whole
|
|
158
|
+
row the click target, names the control from the title, and keeps the
|
|
159
|
+
input as the one focusable — it rings itself, so the row needs no focus
|
|
160
|
+
rule of its own. */
|
|
161
|
+
.vd-menu-item-switch {
|
|
162
|
+
@apply flex shrink-0 items-center;
|
|
163
|
+
}
|
|
164
|
+
|
|
155
165
|
/* --- Sizes (min-height floors) --------------------------------------- */
|
|
156
166
|
|
|
157
167
|
.vd-menu-item-sm {
|
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 {
|
|
@@ -201,6 +203,12 @@
|
|
|
201
203
|
/* `<dialog>` centres itself and supplies a backdrop for free; both of its
|
|
202
204
|
UA defaults (1em padding, inset border) are already overridden above. */
|
|
203
205
|
dialog.vd-modal::backdrop {
|
|
204
|
-
|
|
206
|
+
/* Overlay/Scrim: #0f0f1a at 28% in Light, #000000 at 55% in Onyx. Lighter
|
|
207
|
+
in Light than the invented 40% this replaced.
|
|
208
|
+
::backdrop inherits custom properties from its dialog only in Chrome 122+,
|
|
209
|
+
Firefox 120+ and Safari 17.4+; before that it inherited from nothing and
|
|
210
|
+
the var() was undefined, so the Light value is restated as the fallback
|
|
211
|
+
rather than leaving an older browser with no scrim at all. */
|
|
212
|
+
background-color: var(--color-overlay-scrim, oklch(0.1743 0.0227 283.8 / 0.278));
|
|
205
213
|
}
|
|
206
214
|
}
|
|
@@ -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
|
|
|
@@ -478,6 +499,12 @@
|
|
|
478
499
|
@apply bg-primary; /* Primary/Main — Analytics, Email automation */
|
|
479
500
|
}
|
|
480
501
|
|
|
502
|
+
/* Critical/Main (0.6.0) — the red dot Figma draws on a Session Row and
|
|
503
|
+
Session Tile that needs attention. */
|
|
504
|
+
.vd-nav-item-status-critical {
|
|
505
|
+
@apply bg-critical;
|
|
506
|
+
}
|
|
507
|
+
|
|
481
508
|
/* --- Nav Item states ------------------------------------------------ */
|
|
482
509
|
|
|
483
510
|
/* In every state but rest the icon follows the row's ink instead of its
|
|
@@ -591,4 +618,177 @@
|
|
|
591
618
|
outline: var(--border-micro) solid var(--color-primary);
|
|
592
619
|
outline-offset: 0;
|
|
593
620
|
}
|
|
621
|
+
|
|
622
|
+
/* =======================================================================
|
|
623
|
+
Nav Sidebar parts (0.6.0) — Figma section 04: Nav / New Split 1663:43012,
|
|
624
|
+
Nav / Jump To 1663:43022, Nav / Session Row 1663:43038, Nav / Session Tile
|
|
625
|
+
(collapsed) 1663:43061, Nav / User Row 1663:43051. They sit in the same
|
|
626
|
+
224px content column as `.vd-nav-item` and share its 32px row where they
|
|
627
|
+
are one line. Figma draws each at rest only; hover and focus follow
|
|
628
|
+
`.vd-nav-item` (Action/Hover + the focus ring) — designer-list item 93.
|
|
629
|
+
======================================================================= */
|
|
630
|
+
|
|
631
|
+
/* --- New Split: a split button — the label starts the default object, the
|
|
632
|
+
chevron opens the Create menu. NEUTRAL, not blue: an Action/Hover fill
|
|
633
|
+
with Content/Primary ink (the Figma description still says Primary/Soft).
|
|
634
|
+
Two buttons in one 32px box, the second behind a 1px Stroke/Divider. --- */
|
|
635
|
+
.vd-nav-split {
|
|
636
|
+
@apply flex h-8 w-full items-stretch overflow-hidden; /* 32px */
|
|
637
|
+
@apply rounded-control; /* 6px */
|
|
638
|
+
@apply bg-action-hover;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.vd-nav-split-main,
|
|
642
|
+
.vd-nav-split-toggle {
|
|
643
|
+
@apply inline-flex items-center appearance-none border-none bg-transparent no-underline;
|
|
644
|
+
@apply text-action-default text-content-primary; /* 13 / 18 / 500 */
|
|
645
|
+
@apply cursor-pointer transition-colors duration-150;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.vd-nav-split-main {
|
|
649
|
+
@apply flex-1 gap-3 px-2 text-left; /* 12px, 8px */
|
|
650
|
+
min-width: 0;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.vd-nav-split-toggle {
|
|
654
|
+
@apply w-7 shrink-0 justify-center; /* 28px */
|
|
655
|
+
/* border-solid is load-bearing: the shared rule above resets the button
|
|
656
|
+
with border-none, which sets border-STYLE none and computes the rule
|
|
657
|
+
to 0 however wide it is declared. */
|
|
658
|
+
@apply border-0 border-l border-solid border-l-[length:var(--border-line)] border-stroke-divider;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.vd-nav-split-main:hover:not(:disabled),
|
|
662
|
+
.vd-nav-split-toggle:hover:not(:disabled) {
|
|
663
|
+
@apply bg-action-hover;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.vd-nav-split-main:focus-visible,
|
|
667
|
+
.vd-nav-split-toggle:focus-visible {
|
|
668
|
+
@apply focus-ring;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
/* --- Jump To: a quiet row that opens the rail's filter. Icon, a tertiary
|
|
672
|
+
label, and a Keycap at the far end. Hover is Action/Hover (stated in the
|
|
673
|
+
Figma description); the active state is a Search Field, the consumer's. --- */
|
|
674
|
+
.vd-nav-jump {
|
|
675
|
+
@apply flex h-8 w-full items-center gap-3 px-2; /* 32px, 12px, 8px */
|
|
676
|
+
@apply rounded-control; /* 6px */
|
|
677
|
+
@apply appearance-none border-none bg-transparent text-left no-underline;
|
|
678
|
+
@apply text-body-dense-strong text-content-tertiary; /* 13 / 18 / 500 */
|
|
679
|
+
@apply cursor-pointer transition-colors duration-150;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.vd-nav-jump-label {
|
|
683
|
+
@apply flex-1 truncate;
|
|
684
|
+
min-width: 0;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.vd-nav-jump:hover:not(:disabled) {
|
|
688
|
+
@apply bg-action-hover;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
.vd-nav-jump:focus-visible {
|
|
692
|
+
@apply focus-ring;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
/* --- Session Row: one recent session — a tile with initials (or a 14px
|
|
696
|
+
glyph), a title, and a status line led by a Dot. 43px: 3 + 18 + 1 + 18 + 3.
|
|
697
|
+
Top-aligned, so the tile sits beside the title. --- */
|
|
698
|
+
.vd-nav-session {
|
|
699
|
+
@apply flex w-full items-start gap-3 px-2 py-0.75; /* 12px, 8px, 3px */
|
|
700
|
+
@apply rounded-control; /* 6px */
|
|
701
|
+
@apply appearance-none border-none bg-transparent text-left no-underline;
|
|
702
|
+
@apply cursor-pointer transition-colors duration-150;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.vd-nav-session:hover:not(:disabled) {
|
|
706
|
+
@apply bg-action-hover;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.vd-nav-session:focus-visible {
|
|
710
|
+
@apply focus-ring;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
/* 22×22 in a row, 24×24 in the collapsed tile. Square — a session is a
|
|
714
|
+
record, not a person. Initials are Utility/Avatar Initials, like Avatar's. */
|
|
715
|
+
.vd-nav-session-tile {
|
|
716
|
+
@apply relative mt-px inline-flex size-[22px] shrink-0 items-center justify-center;
|
|
717
|
+
@apply rounded-control; /* 6px */
|
|
718
|
+
@apply border border-[length:var(--border-line)] border-stroke-divider;
|
|
719
|
+
@apply bg-surface-paper text-content-primary;
|
|
720
|
+
@apply text-utility-avatar-initials; /* 8 / 8 / 600 */
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.vd-nav-session-text {
|
|
724
|
+
@apply flex flex-1 flex-col gap-px; /* 1px */
|
|
725
|
+
min-width: 0;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.vd-nav-session-title {
|
|
729
|
+
@apply truncate text-body-dense-strong text-content-primary; /* 13 / 18 / 500 */
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
.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 */
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/* Collapsed (the 60px rail): the tile alone, centred in a 44×32 cell, with
|
|
738
|
+
the status as a dot on its corner. Keep the title in the DOM — it is the
|
|
739
|
+
link's accessible name, as with a collapsed nav item. */
|
|
740
|
+
.vd-nav-session-collapsed {
|
|
741
|
+
@apply h-8 w-11 items-center justify-center p-0; /* 32px × 44px */
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.vd-nav-session-collapsed .vd-nav-session-tile {
|
|
745
|
+
@apply mt-0 size-6; /* 24px */
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
.vd-nav-session-collapsed .vd-nav-session-text {
|
|
749
|
+
@apply sr-only;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
/* Additive, on a Dot inside the collapsed tile: 8px with a 2px
|
|
753
|
+
Surface/Neutral edge (so 4px of colour shows), overhanging the corner by
|
|
754
|
+
3px — Figma places it at 19,19 in the 24px tile. */
|
|
755
|
+
.vd-nav-session-dot {
|
|
756
|
+
@apply absolute size-2; /* 8px */
|
|
757
|
+
@apply border-[length:var(--border-micro)] border-solid border-surface-neutral;
|
|
758
|
+
right: -3px;
|
|
759
|
+
bottom: -3px;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
/* --- User Row: who is signed in — replaces Settings at the foot of the
|
|
763
|
+
rail and opens the account menu. A round Avatar, name and role, a 16px
|
|
764
|
+
glyph. 44px, with a 0.5px Stroke/Divider rule above it. --- */
|
|
765
|
+
.vd-nav-user {
|
|
766
|
+
@apply flex w-full items-center gap-3 px-2 py-0.75; /* 12px, 8px, 3px */
|
|
767
|
+
@apply rounded-control; /* 6px */
|
|
768
|
+
@apply appearance-none bg-transparent text-left no-underline;
|
|
769
|
+
@apply border-0 border-t border-t-[length:var(--border-thin)] border-solid border-stroke-divider;
|
|
770
|
+
@apply text-content-secondary;
|
|
771
|
+
@apply cursor-pointer transition-colors duration-150;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.vd-nav-user:hover:not(:disabled) {
|
|
775
|
+
@apply bg-action-hover;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.vd-nav-user:focus-visible {
|
|
779
|
+
@apply focus-ring;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.vd-nav-user-text {
|
|
783
|
+
@apply flex flex-1 flex-col gap-px; /* 1px */
|
|
784
|
+
min-width: 0;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
.vd-nav-user-name {
|
|
788
|
+
@apply truncate text-body-dense-strong text-content-primary; /* 13 / 18 / 500 */
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
.vd-nav-user-role {
|
|
792
|
+
@apply truncate text-supporting-caption text-content-tertiary; /* 12 / 18 / 400 */
|
|
793
|
+
}
|
|
594
794
|
}
|
|
@@ -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,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owner Table Header
|
|
3
|
+
*
|
|
4
|
+
* The column labels above a list of owners. Extracted from Figma Owner Table
|
|
5
|
+
* Header (2042:35106) — a single symbol: Owner, Identity, Application,
|
|
6
|
+
* Documents.
|
|
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
|
+
* …
|
|
12
|
+
* </div>
|
|
13
|
+
*
|
|
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.
|
|
18
|
+
*
|
|
19
|
+
* NOT PINNED. Figma's frame is 32.5 — 8 + 16 + 8 plus the half-pixel rule,
|
|
20
|
+
* which Chrome paints as a full pixel, so the row renders 33.
|
|
21
|
+
*
|
|
22
|
+
* The roles are the consumer's: use `role="row"` / `columnheader` inside a
|
|
23
|
+
* `role="table"`, or put the classes on a real <tr> / <th>.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
@layer components {
|
|
27
|
+
.vd-owner-table-header {
|
|
28
|
+
@apply flex w-full items-center gap-4; /* 16px */
|
|
29
|
+
@apply px-1 py-2; /* 4px / 8px */
|
|
30
|
+
@apply border-b border-b-[length:var(--border-thin)] border-stroke-divider;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.vd-owner-table-header-cell {
|
|
34
|
+
@apply w-[94px] shrink-0 truncate;
|
|
35
|
+
@apply text-label-compact text-content-secondary; /* 12 / 16 / 600 */
|
|
36
|
+
@apply text-left;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.vd-owner-table-header-cell-main {
|
|
40
|
+
@apply w-[536px];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ownership
|
|
3
|
+
*
|
|
4
|
+
* How much of a business's ownership is declared: a summary line, a bar and a
|
|
5
|
+
* legend. From four Figma symbols — Ownership Summary (2045:35230), Ownership
|
|
6
|
+
* Bar (2042:36155), Ownership Breakdown (2045:35359) and Ownership Unaccounted
|
|
7
|
+
* (2045:35715).
|
|
8
|
+
*
|
|
9
|
+
* <div class="vd-progress-bar vd-ownership">
|
|
10
|
+
* <p class="vd-ownership-summary">
|
|
11
|
+
* <span class="vd-ownership-summary-lead">92% of ownership declared</span> · 3 owners · 8% unaccounted
|
|
12
|
+
* </p>
|
|
13
|
+
* <div class="vd-progress-bar-track" role="progressbar" aria-valuenow="92" aria-valuemin="0"
|
|
14
|
+
* aria-valuemax="100" aria-label="Ownership declared">
|
|
15
|
+
* <div class="vd-progress-bar-fill" style="width: 92%"></div>
|
|
16
|
+
* </div>
|
|
17
|
+
* <div class="vd-progress-bar-legend">…legend items…</div>
|
|
18
|
+
* </div>
|
|
19
|
+
*
|
|
20
|
+
* A MODIFIER OF PROGRESS BAR, NOT A SECOND BAR. Figma draws its own track, fill
|
|
21
|
+
* and legend, but they are a Progress Bar in a different trim, so `.vd-ownership`
|
|
22
|
+
* goes on `.vd-progress-bar` and re-trims its parts — the same shape as
|
|
23
|
+
* `.vd-progress-bar-success`. What changes:
|
|
24
|
+
*
|
|
25
|
+
* track 4px (Progress Bar: 5), 2px radius (pill), Secondary/Disabled
|
|
26
|
+
* (Stroke/Divider)
|
|
27
|
+
* fill 2px radius; Primary/Main as before
|
|
28
|
+
* legend 24px between items; a 6×6 swatch with a 2px radius; the label is
|
|
29
|
+
* Body/Dense in Content/Tertiary (Supporting/Caption, Secondary)
|
|
30
|
+
*
|
|
31
|
+
* The only new part is the summary: one line in two inks, like Content Row's —
|
|
32
|
+
* the lead is Body/Default Strong in Content/Primary, the rest Body/Default in
|
|
33
|
+
* Content/Secondary. It replaces Progress Bar's header, so there is no
|
|
34
|
+
* `.vd-progress-bar-header` here.
|
|
35
|
+
*
|
|
36
|
+
* The spacing BETWEEN summary, bar and legend is Progress Bar's: the four Figma
|
|
37
|
+
* symbols are separate and state no gap between each other. Not verified
|
|
38
|
+
* against a composed instance — designer-list item 84.
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
@layer components {
|
|
42
|
+
.vd-ownership-summary {
|
|
43
|
+
@apply text-body-default text-content-secondary; /* 14 / 20 / 400 */
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.vd-ownership-summary-lead {
|
|
47
|
+
@apply text-body-default-strong text-content-primary; /* 14 / 20 / 500 */
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.vd-ownership .vd-progress-bar-track {
|
|
51
|
+
@apply h-1 rounded-micro bg-secondary-disabled; /* 4px, 2px */
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.vd-ownership .vd-progress-bar-fill {
|
|
55
|
+
@apply rounded-micro; /* 2px */
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.vd-ownership .vd-progress-bar-legend {
|
|
59
|
+
@apply gap-6; /* 24px */
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.vd-ownership .vd-progress-bar-legend-item {
|
|
63
|
+
@apply gap-1; /* 4px */
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.vd-ownership .vd-progress-bar-legend-swatch {
|
|
67
|
+
@apply size-1.5 rounded-micro; /* 6px, 2px */
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.vd-ownership .vd-progress-bar-legend-label {
|
|
71
|
+
@apply text-body-dense text-content-tertiary; /* 13 / 18 / 400 */
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Panel Section Header
|
|
3
|
+
*
|
|
4
|
+
* The header of a collapsible group in the findings panel — Findings,
|
|
5
|
+
* Checklist, Resolved. Extracted from Figma Panel Section Header (2038:38947)
|
|
6
|
+
* — a single symbol with Title and Count text properties and a Chevron boolean.
|
|
7
|
+
*
|
|
8
|
+
* <div class="vd-panel-section-header">
|
|
9
|
+
* <h3 class="vd-panel-section-header-title">Findings</h3>
|
|
10
|
+
* <span class="vd-panel-section-header-count">5</span>
|
|
11
|
+
* <button class="vd-icon-button vd-icon-button-inline" aria-expanded="true"
|
|
12
|
+
* aria-controls="findings" aria-label="Findings">…#chevron-down…</button>
|
|
13
|
+
* </div>
|
|
14
|
+
*
|
|
15
|
+
* 24px tall (3 + the 18px Icon Button + 3 — not pinned), 12px padding-x, 8px
|
|
16
|
+
* gap. The title is Label/Compact in Content/Secondary; the count Data/Compact
|
|
17
|
+
* (mono) in Content/Tertiary; the chevron is an Icon Button (inline) pushed to
|
|
18
|
+
* the far end, where Figma uses a spacer frame.
|
|
19
|
+
*
|
|
20
|
+
* THE CHEVRON'S BUTTON IS THE DISCLOSURE: it carries `aria-expanded` and
|
|
21
|
+
* `aria-controls`. Figma draws the open state only — there is no collapsed
|
|
22
|
+
* variant — so the library turns the glyph −90° when `aria-expanded="false"`.
|
|
23
|
+
* A decision; designer-list item 86.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
@layer components {
|
|
27
|
+
.vd-panel-section-header {
|
|
28
|
+
@apply flex w-full items-center gap-2; /* 8px */
|
|
29
|
+
@apply px-3 py-0.75; /* 12px / 3px */
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.vd-panel-section-header-title {
|
|
33
|
+
@apply text-label-compact text-content-secondary; /* 12 / 16 / 600 */
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.vd-panel-section-header-count {
|
|
37
|
+
@apply text-data-compact font-mono text-content-tertiary; /* 12 / 16.5 / 400 */
|
|
38
|
+
font-variant-numeric: tabular-nums;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* The trailing control sits at the far end (Figma's spacer). */
|
|
42
|
+
.vd-panel-section-header > :last-child:not(:first-child) {
|
|
43
|
+
@apply ml-auto;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.vd-panel-section-header [aria-expanded] .vd-icon {
|
|
47
|
+
@apply transition-transform duration-150;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.vd-panel-section-header [aria-expanded="false"] .vd-icon {
|
|
51
|
+
@apply -rotate-90;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Panel Status
|
|
3
|
+
*
|
|
4
|
+
* The application's status line at the top of the findings panel. Extracted
|
|
5
|
+
* from Figma Panel Status (2038:39256) — a single symbol with a `Status` text
|
|
6
|
+
* property. Figma: "Override the dot colour per status."
|
|
7
|
+
*
|
|
8
|
+
* <p class="vd-panel-status">
|
|
9
|
+
* <span class="vd-dot vd-dot-sm vd-dot-warning"></span>Pending Review
|
|
10
|
+
* </p>
|
|
11
|
+
*
|
|
12
|
+
* A 6px dot and a label, 8px apart, 20px tall. The dot is Chip's Dot at SM, so
|
|
13
|
+
* its colour is a Dot class — nothing new. The label is raw Inter Medium 14 in
|
|
14
|
+
* Figma (no text style bound); Body/Default Strong is the same 14/20/500.
|
|
15
|
+
* The dot repeats what the words say, so it needs no name of its own.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
@layer components {
|
|
19
|
+
.vd-panel-status {
|
|
20
|
+
@apply flex items-center gap-2; /* 8px */
|
|
21
|
+
@apply text-body-default-strong text-content-primary; /* 14 / 20 / 500 */
|
|
22
|
+
}
|
|
23
|
+
}
|