@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valiify/dashboard-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Tailwind CSS component library for Valiify Dashboard applications",
|
|
5
5
|
"style": "dist/index.css",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -90,14 +90,14 @@
|
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@fontsource/inter": "^5.3.0",
|
|
92
92
|
"@fontsource/jetbrains-mono": "^5.3.0",
|
|
93
|
-
"@storybook/addon-a11y": "^10.
|
|
94
|
-
"@storybook/addon-docs": "^10.
|
|
93
|
+
"@storybook/addon-a11y": "^10.6.7",
|
|
94
|
+
"@storybook/addon-docs": "^10.6.7",
|
|
95
95
|
"@storybook/addon-mcp": "^0.7.0",
|
|
96
|
-
"@storybook/addon-themes": "^10.
|
|
97
|
-
"@storybook/html-vite": "^10.
|
|
96
|
+
"@storybook/addon-themes": "^10.6.7",
|
|
97
|
+
"@storybook/html-vite": "^10.6.7",
|
|
98
98
|
"@tailwindcss/postcss": "^4.3.3",
|
|
99
99
|
"@valiify/val-core": "^0.10.0",
|
|
100
|
-
"chromatic": "^18.
|
|
100
|
+
"chromatic": "^18.15.1",
|
|
101
101
|
"lucide-static": "^1.33.0",
|
|
102
102
|
"pixelmatch": "^7.2.0",
|
|
103
103
|
"playwright": "^1.62.1",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"postcss-cli": "^11.0.1",
|
|
107
107
|
"prettier": "^3.9.6",
|
|
108
108
|
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
109
|
-
"storybook": "^10.
|
|
109
|
+
"storybook": "^10.6.7",
|
|
110
110
|
"tailwindcss": "^4.3.3",
|
|
111
111
|
"typescript": "^5.9.3"
|
|
112
112
|
},
|
|
@@ -92,11 +92,11 @@
|
|
|
92
92
|
/* Declared before the variants so the filled displays, whose nested rules
|
|
93
93
|
compile to the same specificity, win on source order as they always have. */
|
|
94
94
|
|
|
95
|
-
.vd-btn:hover:not(:disabled) {
|
|
95
|
+
.vd-btn:hover:not(:disabled, [aria-disabled="true"]) {
|
|
96
96
|
@apply bg-action-subtle;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
.vd-btn:active:not(:disabled) {
|
|
99
|
+
.vd-btn:active:not(:disabled, [aria-disabled="true"]) {
|
|
100
100
|
@apply bg-primary-soft text-primary border-primary;
|
|
101
101
|
}
|
|
102
102
|
|
|
@@ -117,11 +117,11 @@
|
|
|
117
117
|
.vd-btn-primary {
|
|
118
118
|
@apply border-stroke-divider bg-primary text-content-contrast;
|
|
119
119
|
|
|
120
|
-
&:hover:not(:disabled) {
|
|
120
|
+
&:hover:not(:disabled, [aria-disabled="true"]) {
|
|
121
121
|
@apply bg-primary-dark;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
&:active:not(:disabled) {
|
|
124
|
+
&:active:not(:disabled, [aria-disabled="true"]) {
|
|
125
125
|
@apply border-stroke-divider bg-primary-pressed text-content-contrast;
|
|
126
126
|
}
|
|
127
127
|
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
@apply bg-primary-pressed;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
&:disabled {
|
|
133
|
+
&:is(:disabled, [aria-disabled="true"]) {
|
|
134
134
|
@apply bg-primary-disabled;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
@@ -161,11 +161,11 @@
|
|
|
161
161
|
.vd-btn-critical {
|
|
162
162
|
@apply border-stroke-divider bg-critical text-content-contrast;
|
|
163
163
|
|
|
164
|
-
&:hover:not(:disabled) {
|
|
164
|
+
&:hover:not(:disabled, [aria-disabled="true"]) {
|
|
165
165
|
@apply bg-critical-strong;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
&:active:not(:disabled) {
|
|
168
|
+
&:active:not(:disabled, [aria-disabled="true"]) {
|
|
169
169
|
@apply border-stroke-divider bg-critical-strong text-content-contrast;
|
|
170
170
|
}
|
|
171
171
|
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
@apply bg-critical-strong;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
&:disabled {
|
|
177
|
+
&:is(:disabled, [aria-disabled="true"]) {
|
|
178
178
|
@apply bg-critical/40;
|
|
179
179
|
}
|
|
180
180
|
}
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
.vd-btn-empty {
|
|
186
186
|
@apply border-transparent bg-transparent text-content-primary;
|
|
187
187
|
|
|
188
|
-
&:active:not(:disabled) {
|
|
188
|
+
&:active:not(:disabled, [aria-disabled="true"]) {
|
|
189
189
|
@apply border-transparent bg-primary-soft text-primary;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
@@ -229,7 +229,14 @@
|
|
|
229
229
|
@apply focus-ring;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
|
|
232
|
+
/* `aria-disabled="true"` is styled exactly as `:disabled` since 0.7.0, on
|
|
233
|
+
every display. Use it for a control that is unavailable but has to stay
|
|
234
|
+
focusable — a blocked action whose reasons are read from a tooltip. A
|
|
235
|
+
native `disabled` button leaves the tab order and announces nothing.
|
|
236
|
+
`:is()` and `:not()` take the specificity of their most specific argument,
|
|
237
|
+
so these weigh what the bare `:disabled` forms did. The attribute styles
|
|
238
|
+
the button; ignoring its click is the consumer's. */
|
|
239
|
+
.vd-btn:is(:disabled, [aria-disabled="true"]) {
|
|
233
240
|
@apply cursor-not-allowed;
|
|
234
241
|
}
|
|
235
242
|
|
|
@@ -238,10 +245,21 @@
|
|
|
238
245
|
primary to Primary/Disabled, critical to Critical/Main at 40%. (Critical
|
|
239
246
|
was missing from this exclusion until 0.6.0, so its disabled label was
|
|
240
247
|
dimmed whatever its own rule said.) */
|
|
241
|
-
.vd-btn:disabled:not(.vd-btn-primary):not(.vd-btn-critical) {
|
|
248
|
+
.vd-btn:is(:disabled, [aria-disabled="true"]):not(.vd-btn-primary):not(.vd-btn-critical) {
|
|
242
249
|
@apply text-content-tertiary;
|
|
243
250
|
}
|
|
244
251
|
|
|
252
|
+
/* Blocked (0.7.0) — an action that cannot run yet: Surface/Neutral fill, the
|
|
253
|
+
Stroke/Divider hairline, a Content/Tertiary label. From the Application
|
|
254
|
+
page's "Approve · blocked" (1857:94854), which Figma draws as an instance
|
|
255
|
+
override on Button primary / disabled rather than as a variant
|
|
256
|
+
(designer-list item 96). Pair it with `aria-disabled="true"` (or
|
|
257
|
+
`disabled`), which is what switches the hover and pressed ramp off; a count
|
|
258
|
+
goes in a nested `.vd-badge vd-badge-neutral`. */
|
|
259
|
+
.vd-btn-blocked {
|
|
260
|
+
@apply border-stroke-divider bg-surface-neutral text-content-tertiary;
|
|
261
|
+
}
|
|
262
|
+
|
|
245
263
|
/* Ring — a Figma boolean since Rev3 (Button never had one before): a 2px
|
|
246
264
|
Primary/Main stroke aligned OUTSIDE, like Chip/Tag/TextButton. Outline at
|
|
247
265
|
zero offset follows the 6px radius. */
|
|
@@ -87,11 +87,12 @@
|
|
|
87
87
|
@apply text-body-dense-strong text-content-primary; /* 13 / 18 / 500 */
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
/*
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
/* Content/Tertiary, as Figma binds it. It shipped Content/Secondary in 0.6.0
|
|
91
|
+
because the old Light Tertiary (#727280) was 4.20:1 on this box's
|
|
92
|
+
Surface/Neutral; the token is #6a6a78 since 0.7.0 — 4.72 here, 4.90 in
|
|
93
|
+
Onyx — so the divergence is gone (designer-list item 95, resolved). */
|
|
93
94
|
.vd-checklist-group-record-meta {
|
|
94
|
-
@apply text-supporting-caption text-content-
|
|
95
|
+
@apply text-supporting-caption text-content-tertiary; /* 12 / 18 / 400 */
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
.vd-checklist-group-more {
|
|
@@ -56,8 +56,14 @@
|
|
|
56
56
|
|
|
57
57
|
/* --- Parts ------------------------------------------------------------ */
|
|
58
58
|
|
|
59
|
+
/* The text column: 536px, or the record's shared width inside a
|
|
60
|
+
`.vd-record` (0.7.0). It WRAPS since 0.7.0 — Figma's text layer is
|
|
61
|
+
fixed-width with auto height and no truncation, and the Application page's
|
|
62
|
+
BSA summary runs to two lines; the row then grows (12 + 40 + 12) and the
|
|
63
|
+
status and actions stay centred on it. It truncated through 0.6.0. */
|
|
59
64
|
.vd-content-row-text {
|
|
60
|
-
@apply
|
|
65
|
+
@apply shrink-0;
|
|
66
|
+
width: var(--vd-record-text, 536px);
|
|
61
67
|
@apply text-body-default text-content-secondary; /* 14 / 20 / 400 */
|
|
62
68
|
}
|
|
63
69
|
|
|
@@ -69,9 +75,14 @@
|
|
|
69
75
|
@apply text-body-default text-content-secondary;
|
|
70
76
|
}
|
|
71
77
|
|
|
72
|
-
/* Additive
|
|
78
|
+
/* The status column. Additive on the Field Verification, or on a wrapper
|
|
79
|
+
holding a Severity Count (`vd-severity-count vd-severity-count-flush`) for
|
|
80
|
+
a row with an open finding. It is a flex box so that wrapper lays the
|
|
81
|
+
count out as an item: as inline content the 24px button sat on a text
|
|
82
|
+
line and the row came out 50.5px, not 48. On a Field Verification the
|
|
83
|
+
component's own display still applies — it comes later in the source. */
|
|
73
84
|
.vd-content-row-status {
|
|
74
|
-
@apply flex-1;
|
|
85
|
+
@apply flex flex-1 items-center;
|
|
75
86
|
min-width: 0;
|
|
76
87
|
}
|
|
77
88
|
|
|
@@ -85,8 +96,13 @@
|
|
|
85
96
|
@apply opacity-0 transition-opacity duration-150;
|
|
86
97
|
}
|
|
87
98
|
|
|
99
|
+
/* …and on an EXPANDED row they stay (0.7.0): the Application page keeps Edit
|
|
100
|
+
and Comment visible on every open row. The set's own Expanded=yes variant
|
|
101
|
+
still draws them hidden at rest; the page overrides it, and the library
|
|
102
|
+
follows the page (designer-list item 97). */
|
|
88
103
|
.vd-content-row:hover .vd-content-row-action,
|
|
89
|
-
.vd-content-row:focus-within .vd-content-row-action
|
|
104
|
+
.vd-content-row:focus-within .vd-content-row-action,
|
|
105
|
+
.vd-content-row:has([aria-expanded="true"]) .vd-content-row-action {
|
|
90
106
|
@apply opacity-100;
|
|
91
107
|
}
|
|
92
108
|
|
|
@@ -101,6 +117,15 @@
|
|
|
101
117
|
|
|
102
118
|
/* --- States ----------------------------------------------------------- */
|
|
103
119
|
|
|
120
|
+
/* Linked (0.7.0) — the row a finding points at while it is collapsed: Data
|
|
121
|
+
Row's treatment, a 2px Primary/Main stroke on the left edge and no fill,
|
|
122
|
+
as an inset shadow so the text column does not move. Figma draws Linked on
|
|
123
|
+
Data Row only; a finding whose field sits inside a closed row has nothing
|
|
124
|
+
to mark, so this is a library decision (designer-list item 98). */
|
|
125
|
+
.vd-content-row-linked {
|
|
126
|
+
box-shadow: inset 2px 0 0 var(--color-primary);
|
|
127
|
+
}
|
|
128
|
+
|
|
104
129
|
.vd-content-row.vd-with-ring {
|
|
105
130
|
outline: var(--border-micro) solid var(--color-primary);
|
|
106
131
|
outline-offset: 0;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Data List
|
|
3
|
+
*
|
|
4
|
+
* The fields under an expanded row, and the two kinds of heading that divide
|
|
5
|
+
* them. Not a Figma component: "Data List" is the frame every expanded row
|
|
6
|
+
* (User Expanded 235:2977, Entity Expanded 238:3767, the Business rows) stacks
|
|
7
|
+
* its Data Rows in, and the headings are loose frames inside it — 235:2913 and
|
|
8
|
+
* 215:7576. New in 0.7.0.
|
|
9
|
+
*
|
|
10
|
+
* <div class="vd-data-list">
|
|
11
|
+
* <div class="vd-data-list-header">
|
|
12
|
+
* <h4 class="vd-data-list-header-title">Submitted Details</h4>
|
|
13
|
+
* <button class="vd-btn vd-btn-outline vd-btn-sm vd-data-list-header-action">
|
|
14
|
+
* View KYC Checks
|
|
15
|
+
* <svg class="vd-icon vd-icon-size-13" aria-hidden="true"><use href="#arrow-right" /></svg>
|
|
16
|
+
* </button>
|
|
17
|
+
* </div>
|
|
18
|
+
* <div class="vd-data-row">…</div>
|
|
19
|
+
* <div class="vd-data-list-heading">
|
|
20
|
+
* <svg class="vd-data-list-heading-icon vd-icon vd-icon-size-16" aria-hidden="true"><use href="#user" /></svg>
|
|
21
|
+
* <h5 class="vd-data-list-heading-title">Contact Details</h5>
|
|
22
|
+
* </div>
|
|
23
|
+
* <div class="vd-data-row">…</div>
|
|
24
|
+
* </div>
|
|
25
|
+
*
|
|
26
|
+
* `.vd-data-list` is a plain column: the rows butt, with no gap.
|
|
27
|
+
*
|
|
28
|
+
* HEADER — what the list is, with one action at the far end. 32px: 4px
|
|
29
|
+
* above and below a 24px Button (sm, outline) whose label and glyph are
|
|
30
|
+
* Primary/Main, which is what `.vd-data-list-header-action` adds. A hairline
|
|
31
|
+
* underneath; the title is Label/Compact in Content/Tertiary.
|
|
32
|
+
*
|
|
33
|
+
* HEADING — a named group of fields. 36px: 10px above and below a 16px glyph
|
|
34
|
+
* in Secondary/Main and a Label/Compact title in Content/Tertiary, 6px apart.
|
|
35
|
+
* A heading that is not the first thing in the list draws a hairline above it,
|
|
36
|
+
* as Figma does (238:3722 has one, 215:7576, first in its list, does not).
|
|
37
|
+
*
|
|
38
|
+
* Both hairlines are inset shadows, not borders. Figma's strokes sit inside
|
|
39
|
+
* the 32 and 36px frames, and Chrome paints a 0.5px border as a full pixel that
|
|
40
|
+
* would add to them.
|
|
41
|
+
*
|
|
42
|
+
* Casing is the caller's, as everywhere: Label/Compact carries no transform.
|
|
43
|
+
* Use real heading elements at whatever level the page's outline needs.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
@layer components {
|
|
47
|
+
.vd-data-list {
|
|
48
|
+
@apply flex w-full flex-col;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* --- Header ------------------------------------------------------------- */
|
|
52
|
+
|
|
53
|
+
.vd-data-list-header {
|
|
54
|
+
@apply flex w-full items-center gap-4; /* 16px */
|
|
55
|
+
@apply px-1; /* 4px */
|
|
56
|
+
box-shadow: inset 0 -1px 0 var(--color-stroke-divider);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* 8px above and below the 16px line: the title alone makes the row its 32px,
|
|
60
|
+
which is also 4 + the 24px Button + 4, so the row holds with no action. */
|
|
61
|
+
.vd-data-list-header-title {
|
|
62
|
+
@apply flex-1 py-2 text-label-compact text-content-tertiary; /* 12 / 16 / 600 */
|
|
63
|
+
min-width: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Additive, on the Button: the label and its glyph in Primary/Main. Figma
|
|
67
|
+
overrides them on a Button sm / outline instance. */
|
|
68
|
+
.vd-data-list-header-action {
|
|
69
|
+
@apply shrink-0 text-primary;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* --- Heading ------------------------------------------------------------ */
|
|
73
|
+
|
|
74
|
+
.vd-data-list-heading {
|
|
75
|
+
@apply flex w-full items-center gap-1.5; /* 6px */
|
|
76
|
+
@apply px-1 py-2.5; /* 4px / 10px */
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.vd-data-list-heading:not(:first-child) {
|
|
80
|
+
box-shadow: inset 0 1px 0 var(--color-stroke-divider);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.vd-data-list-heading-icon {
|
|
84
|
+
@apply shrink-0 text-secondary;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.vd-data-list-heading-title {
|
|
88
|
+
@apply flex-1 text-label-compact text-content-tertiary; /* 12 / 16 / 600 */
|
|
89
|
+
min-width: 0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -137,10 +137,23 @@
|
|
|
137
137
|
/* Body/Default (14/20) since 0.6.0, in a 22px slot — 1 + 20 + 1. 320px
|
|
138
138
|
(was 400). */
|
|
139
139
|
.vd-data-row-value {
|
|
140
|
-
@apply
|
|
140
|
+
@apply shrink-0 py-px;
|
|
141
|
+
/* 320, or what the record's shared text column leaves after the 200px
|
|
142
|
+
label and the 16px gap (0.7.0). */
|
|
143
|
+
width: calc(var(--vd-record-text, 536px) - 216px);
|
|
141
144
|
@apply text-body-default text-content-primary;
|
|
142
145
|
}
|
|
143
146
|
|
|
147
|
+
/* The value a field held before an edit (0.7.0) — Figma's Previous boolean, a
|
|
148
|
+
hidden layer in every variant: Body/Default in Content/Tertiary, struck
|
|
149
|
+
through, 8px after the current value. Use a <s> (or <del>) so the strike
|
|
150
|
+
is in the markup as well as the paint, and say "was" for a screen reader:
|
|
151
|
+
the strike alone is announced by few of them. */
|
|
152
|
+
.vd-data-row-previous {
|
|
153
|
+
@apply ml-2; /* 8px */
|
|
154
|
+
@apply text-body-default text-content-tertiary line-through;
|
|
155
|
+
}
|
|
156
|
+
|
|
144
157
|
/* A Sensitive Data value is its own 24px slot (2 + 20 + 2), so the wrapper
|
|
145
158
|
drops its padding and the row becomes 46. Data Row overrides Sensitive
|
|
146
159
|
Data's standalone Caption so the masked value matches the plain values
|
|
@@ -49,8 +49,12 @@
|
|
|
49
49
|
|
|
50
50
|
@layer components {
|
|
51
51
|
.vd-dropdown-menu {
|
|
52
|
-
/* Layout
|
|
53
|
-
|
|
52
|
+
/* Layout — children STRETCH (0.7.0). It was items-start, which left every
|
|
53
|
+
row to stretch itself with w-full: a wrapper inside the panel (a
|
|
54
|
+
role="listbox" group, a submenu anchor) hugged its rows instead, so a
|
|
55
|
+
trailing check sat beside the label and the hover fill stopped short.
|
|
56
|
+
Figma's regions are all Fill. */
|
|
57
|
+
@apply flex flex-col items-stretch;
|
|
54
58
|
@apply p-1; /* 4px — Spacing/4 */
|
|
55
59
|
@apply min-w-[200px];
|
|
56
60
|
|
|
@@ -122,8 +122,13 @@
|
|
|
122
122
|
/* Display=Compact — the marker alone, in a 24×22 box (4 + the 16px Section
|
|
123
123
|
Marker + 4), which is what Data Row's 22px status slot nests. The label
|
|
124
124
|
stays in the DOM, visually hidden: it is the status's accessible name. */
|
|
125
|
+
/* `relative` (0.7.0) contains the visually hidden label below. `sr-only` is
|
|
126
|
+
absolutely positioned; with no positioned ancestor nearer than the page
|
|
127
|
+
shell, every compact status in a long scrolling record sat in the SHELL's
|
|
128
|
+
overflow at its unscrolled position, gave it thousands of pixels of
|
|
129
|
+
phantom scroll height, and let `scrollIntoView` scroll the whole app. */
|
|
125
130
|
.vd-field-verification-compact {
|
|
126
|
-
@apply gap-0 px-1 py-0.75; /* 4px / 3px — 3 + 16 + 3 = 22 */
|
|
131
|
+
@apply relative gap-0 px-1 py-0.75; /* 4px / 3px — 3 + 16 + 3 = 22 */
|
|
127
132
|
}
|
|
128
133
|
|
|
129
134
|
.vd-field-verification-compact .vd-field-verification-label {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Final Decision
|
|
3
|
+
*
|
|
4
|
+
* The last line of the findings panel's checklist: what unlocks the decision.
|
|
5
|
+
* A loose frame in Figma's Findings Panel (1839:59387), not a component of its
|
|
6
|
+
* own. New in 0.7.0.
|
|
7
|
+
*
|
|
8
|
+
* <div class="vd-final-decision">
|
|
9
|
+
* <span class="vd-final-decision-mark">
|
|
10
|
+
* <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#lock" /></svg>
|
|
11
|
+
* </span>
|
|
12
|
+
* <div class="vd-final-decision-text">
|
|
13
|
+
* <p class="vd-final-decision-title">Final decision</p>
|
|
14
|
+
* <p class="vd-final-decision-detail">After all groups are signed off</p>
|
|
15
|
+
* </div>
|
|
16
|
+
* </div>
|
|
17
|
+
*
|
|
18
|
+
* 52px: 8px above and below two 18px lines, 12px at the sides, 12px between the
|
|
19
|
+
* mark and the text — the same left edge and gap as a closed Checklist Group's
|
|
20
|
+
* header, so the lock sits under the progress circles. The mark is a 16px column
|
|
21
|
+
* holding a 14px glyph in Secondary/Main. Both lines are Body/Dense: the title
|
|
22
|
+
* in Content/Secondary, the condition in Content/Tertiary.
|
|
23
|
+
*
|
|
24
|
+
* Figma draws the locked state only. What the row says once every group is
|
|
25
|
+
* signed off is the application's; the classes do not change.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
@layer components {
|
|
29
|
+
.vd-final-decision {
|
|
30
|
+
@apply flex w-full items-center gap-3; /* 12px */
|
|
31
|
+
@apply px-3 py-2; /* 12px / 8px */
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.vd-final-decision-mark {
|
|
35
|
+
@apply inline-flex w-4 shrink-0 justify-center; /* a 16px column for the 14px glyph */
|
|
36
|
+
@apply text-secondary;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.vd-final-decision-text {
|
|
40
|
+
@apply flex flex-1 flex-col;
|
|
41
|
+
min-width: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.vd-final-decision-title {
|
|
45
|
+
@apply text-body-dense text-content-secondary; /* 13 / 18 / 400 */
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.vd-final-decision-detail {
|
|
49
|
+
@apply text-body-dense text-content-tertiary;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -14,7 +14,10 @@
|
|
|
14
14
|
* </header>
|
|
15
15
|
* <p class="vd-finding-card-reason">No record at 123 Fake St.</p>
|
|
16
16
|
* <div class="vd-finding-card-options" role="radiogroup" aria-label="Resolution">…Finding Options…</div>
|
|
17
|
-
*
|
|
17
|
+
* <div class="vd-finding-card-fields">…two Dropdown Field containers…</div>
|
|
18
|
+
* <div class="vd-textarea-field vd-textarea-sm vd-finding-card-note">
|
|
19
|
+
* <textarea class="vd-textarea" placeholder="Add a note (optional)"></textarea>
|
|
20
|
+
* </div>
|
|
18
21
|
* <div class="vd-finding-card-footer"><button class="vd-btn vd-btn-primary">Send request</button></div>
|
|
19
22
|
* </section>
|
|
20
23
|
*
|
|
@@ -25,26 +28,38 @@
|
|
|
25
28
|
* THE THREE STATES ARE THREE COMPOSITIONS, NOT THREE CLASSES. Nothing about the
|
|
26
29
|
* card itself changes between them — only which blocks it holds:
|
|
27
30
|
*
|
|
28
|
-
* choosing reason · options · a note
|
|
29
|
-
* requesting reason · options ·
|
|
31
|
+
* choosing reason · options · a note · a disabled primary button 296px
|
|
32
|
+
* requesting reason · options · Document and From · a note · button 350px
|
|
30
33
|
* requested reason · a decision box · a status line
|
|
31
34
|
*
|
|
32
35
|
* header 40px: marker, title (Body/Default Strong), an Icon Button
|
|
33
36
|
* reason Body/Dense, Content/Secondary
|
|
34
|
-
* options Finding Options, 6px apart
|
|
35
|
-
*
|
|
37
|
+
* options Finding Options, 40px each, 6px apart
|
|
38
|
+
* fields two small Dropdown Fields with labels, 8px apart
|
|
39
|
+
* note a small Text Area, 80px (Height/Textarea/SM)
|
|
40
|
+
* footer a Button md, at the right
|
|
36
41
|
* decision Surface/Neutral, 6px radius, 10/8 padding, 2px gap: a title
|
|
37
42
|
* (Body/Dense Strong) with an Edit action, a meta line
|
|
38
43
|
* (Supporting/Caption, Content/Tertiary), a note (Body/Dense,
|
|
39
44
|
* Content/Secondary)
|
|
40
45
|
* status Supporting/Caption, Content/Secondary
|
|
41
46
|
*
|
|
42
|
-
* THE FIELDS ARE
|
|
43
|
-
* select and the note as raw
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
47
|
+
* THE FIELDS ARE REAL COMPONENTS IN FIGMA SINCE 0.7.0. The set used to draw the
|
|
48
|
+
* select and the note as raw 36 and 64px frames; it now nests Dropdown Field
|
|
49
|
+
* (Size=sm, with its label) and Text Area (Size=sm), which is what the library
|
|
50
|
+
* already used (decided 2026-11-19). So: `.vd-dropdown-field-container` with a
|
|
51
|
+
* `.vd-dropdown-field vd-dropdown-field-sm`, and `.vd-textarea-field
|
|
52
|
+
* vd-textarea-sm` with `.vd-finding-card-note`.
|
|
53
|
+
*
|
|
54
|
+
* One thing still differs from the drawing (designer-list item 110). The note's
|
|
55
|
+
* padding is Textarea's own (8 / 2): Figma's Text Area set draws 12 / 10 at
|
|
56
|
+
* every size, a change to that set the library has not taken — left as a
|
|
57
|
+
* future decision (2026-11-19), since it would resize every Textarea. The
|
|
58
|
+
* button is Button md (28px, which is what the card's 296 and 350 add up
|
|
59
|
+
* with) — confirmed correct the same day; the set's description, which said
|
|
60
|
+
* "small", is fixed in Figma.
|
|
61
|
+
* "Edit" is drawn as plain Action/Compact text in Primary/Main, which is
|
|
62
|
+
* `.vd-text-button vd-text-button-primary`.
|
|
48
63
|
*/
|
|
49
64
|
|
|
50
65
|
@layer components {
|
|
@@ -75,12 +90,36 @@
|
|
|
75
90
|
@apply flex flex-col gap-1.5; /* 6px */
|
|
76
91
|
}
|
|
77
92
|
|
|
93
|
+
/* Requesting: Document and From, two small Dropdown Fields with their own
|
|
94
|
+
labels, sharing the width 8px apart (0.7.0 — Figma's "Request fields"). */
|
|
95
|
+
.vd-finding-card-fields {
|
|
96
|
+
@apply flex items-start gap-2; /* 8px */
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.vd-finding-card-fields > * {
|
|
100
|
+
@apply flex-1;
|
|
101
|
+
min-width: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Additive, on the note's `.vd-textarea-field vd-textarea-sm` (0.7.0): the
|
|
105
|
+
height Figma's small Text Area is drawn at — Height/Textarea/SM, 80px — as
|
|
106
|
+
a floor, so the field still grows when the textarea is dragged. Stretching
|
|
107
|
+
the row makes the <textarea> fill the box, so a click anywhere in it lands
|
|
108
|
+
in the field. The selector names both classes: Textarea's own size classes
|
|
109
|
+
set a min-height too and come later in the source. */
|
|
110
|
+
.vd-textarea-field.vd-finding-card-note {
|
|
111
|
+
@apply min-h-textarea-sm items-stretch; /* 80px — Height/Textarea/SM */
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* Not drawn since 0.7.0: each Dropdown Field carries its own label now. Kept
|
|
115
|
+
so 0.6.0 markup still renders. */
|
|
78
116
|
.vd-finding-card-field-label {
|
|
79
117
|
@apply text-label-compact text-content-secondary; /* 12 / 16 / 600 */
|
|
80
118
|
}
|
|
81
119
|
|
|
120
|
+
/* Right-aligned since 0.7.0 — Figma's Footer packs to the end. */
|
|
82
121
|
.vd-finding-card-footer {
|
|
83
|
-
@apply flex items-center gap-2;
|
|
122
|
+
@apply flex items-center justify-end gap-2;
|
|
84
123
|
}
|
|
85
124
|
|
|
86
125
|
/* --- Requested: the decision on record ------------------------------- */
|
|
@@ -100,11 +139,12 @@
|
|
|
100
139
|
@apply text-body-dense-strong text-content-primary; /* 13 / 18 / 500 */
|
|
101
140
|
}
|
|
102
141
|
|
|
103
|
-
/*
|
|
104
|
-
|
|
105
|
-
|
|
142
|
+
/* Content/Tertiary, as Figma binds it. It shipped Content/Secondary in 0.6.0
|
|
143
|
+
because the old Light Tertiary (#727280) was 4.20:1 on the decision box's
|
|
144
|
+
Surface/Neutral; the token is #6a6a78 since 0.7.0 — 4.72 here, 4.90 in
|
|
145
|
+
Onyx — so the divergence is gone (designer-list item 95, resolved). */
|
|
106
146
|
.vd-finding-card-decision-meta {
|
|
107
|
-
@apply text-supporting-caption text-content-
|
|
147
|
+
@apply text-supporting-caption text-content-tertiary; /* 12 / 18 / 400 */
|
|
108
148
|
}
|
|
109
149
|
|
|
110
150
|
.vd-finding-card-decision-note {
|
|
@@ -23,16 +23,22 @@
|
|
|
23
23
|
@layer components {
|
|
24
24
|
.vd-finding-option {
|
|
25
25
|
@apply flex w-full items-center;
|
|
26
|
-
/* 40px tall: 1 + 10 + the 18px radio row + 10 + 1. Figma writes it as 8px
|
|
27
|
-
of padding around a 22px Radio frame (2 + 18 + 2); the library's
|
|
28
|
-
RadioSelect row is the bare 18px line, so those 2px live here. */
|
|
29
|
-
@apply px-2.5 py-2.5; /* 10px / 10px */
|
|
30
26
|
@apply rounded-control; /* 6px */
|
|
31
27
|
@apply border border-[length:var(--border-line)] border-stroke-divider;
|
|
32
28
|
@apply bg-surface-paper;
|
|
33
29
|
@apply transition-colors duration-150;
|
|
34
30
|
}
|
|
35
31
|
|
|
32
|
+
/* 40px tall: 1 + 10 + the 18px label line + 10 + 1. Figma writes it as 8px of
|
|
33
|
+
padding around a 22px Radio frame (2 + 18 + 2). Here the box and the radio
|
|
34
|
+
are ONE element, so the Radio's own 2px (RadioSelect's since 0.7.0) and the
|
|
35
|
+
box's 8 are the same padding: 10px, on a selector that outranks
|
|
36
|
+
`.vd-radio-select`, which comes later in the source and would otherwise
|
|
37
|
+
leave the box 24px tall. */
|
|
38
|
+
.vd-radio-select.vd-finding-option {
|
|
39
|
+
@apply px-2.5 py-2.5; /* 10px / 10px */
|
|
40
|
+
}
|
|
41
|
+
|
|
36
42
|
.vd-finding-option:has(.vd-radio-select-input:checked) {
|
|
37
43
|
@apply border-primary bg-primary-soft;
|
|
38
44
|
}
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.vd-funding-total-summary {
|
|
36
|
-
@apply flex
|
|
36
|
+
@apply flex shrink-0 flex-col gap-0.5; /* 2px */
|
|
37
|
+
width: var(--vd-record-text, 536px); /* the record's shared text column (0.7.0) */
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
.vd-funding-total-label {
|
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.vd-funding-transaction-summary {
|
|
58
|
-
@apply flex
|
|
58
|
+
@apply flex shrink-0 items-center gap-4; /* 16px */
|
|
59
|
+
width: var(--vd-record-text, 536px); /* the record's shared text column (0.7.0) */
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
.vd-funding-transaction-title {
|
|
@@ -72,8 +73,10 @@
|
|
|
72
73
|
@apply text-body-default text-content-tertiary;
|
|
73
74
|
}
|
|
74
75
|
|
|
76
|
+
/* Right-aligned since 0.7.0, as Figma sets it: the figure ends where the
|
|
77
|
+
record's text column ends (it shipped left-aligned in 0.6.0, unread). */
|
|
75
78
|
.vd-funding-transaction-amount {
|
|
76
|
-
@apply w-24 shrink-0; /* 96px */
|
|
79
|
+
@apply w-24 shrink-0 text-right; /* 96px */
|
|
77
80
|
@apply text-body-default-strong text-content-primary;
|
|
78
81
|
font-variant-numeric: tabular-nums;
|
|
79
82
|
}
|
|
@@ -83,8 +86,10 @@
|
|
|
83
86
|
min-width: 0;
|
|
84
87
|
}
|
|
85
88
|
|
|
89
|
+
/* 78px, right-aligned (0.7.0 — Figma's container packs to the end, so the
|
|
90
|
+
chevron sits on the row's right edge, in line with Content Row's). */
|
|
86
91
|
.vd-funding-transaction-actions {
|
|
87
|
-
@apply flex w-[78px] shrink-0 items-center;
|
|
92
|
+
@apply flex w-[78px] shrink-0 items-center justify-end;
|
|
88
93
|
}
|
|
89
94
|
|
|
90
95
|
/* Additive, on the Refund Text Button. */
|