@valiify/dashboard-ui 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +433 -2
- package/COMPONENTS.md +448 -73
- package/README.md +3 -3
- package/class-manifest.json +173 -4
- package/design-methodology/dashboard.md +676 -308
- package/dist/dashboard-ui.css +1258 -206
- package/dist/index.css +929 -181
- package/package.json +8 -8
- package/src/components/add-funds-form.css +2 -1
- package/src/components/button.css +40 -21
- package/src/components/checkbox.css +4 -2
- package/src/components/checklist-group.css +14 -6
- package/src/components/composer.css +11 -9
- 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/divider.css +1 -1
- package/src/components/dropdown-field.css +30 -18
- package/src/components/dropdown-menu.css +12 -6
- package/src/components/field-verification.css +6 -1
- package/src/components/filter-segment.css +2 -1
- package/src/components/final-decision.css +51 -0
- package/src/components/finding-card.css +60 -17
- package/src/components/finding-option.css +10 -4
- package/src/components/funding-status.css +3 -2
- package/src/components/funding-total.css +8 -3
- package/src/components/funding-transaction.css +28 -5
- package/src/components/index.css +7 -0
- package/src/components/input.css +60 -21
- package/src/components/keycap.css +1 -1
- package/src/components/link.css +6 -2
- package/src/components/loading-indicator.css +5 -5
- package/src/components/menu-item.css +109 -21
- package/src/components/modal.css +21 -2
- package/src/components/navigation-rail.css +136 -6
- 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/pill.css +3 -2
- package/src/components/radio-select.css +5 -2
- package/src/components/recipient-input.css +4 -4
- 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/section-marker.css +4 -3
- package/src/components/sensitive-data.css +8 -4
- 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 +7 -7
- package/src/components/tag.css +15 -9
- package/src/components/textarea.css +38 -18
- package/src/components/toast.css +13 -10
- package/src/components/tooltip.css +4 -1
- package/src/themes/valiify-tokens.css +1 -1
- package/src/themes/valiify.css +1 -1
- package/src/utility-surface.css +93 -1
- package/types/components.d.ts +100 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valiify/dashboard-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.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.
|
|
95
|
-
"@storybook/addon-mcp": "^
|
|
96
|
-
"@storybook/addon-themes": "^10.
|
|
97
|
-
"@storybook/html-vite": "^10.
|
|
93
|
+
"@storybook/addon-a11y": "^10.6.7",
|
|
94
|
+
"@storybook/addon-docs": "^10.6.7",
|
|
95
|
+
"@storybook/addon-mcp": "^10.6.8",
|
|
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
|
},
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
* like an authoring artifact; the md base is kept (designer-list item 29).
|
|
17
17
|
*
|
|
18
18
|
* REV3 TYPE (2026-09-30). Geometry did not move; the labels did:
|
|
19
|
-
* xs, sm
|
|
20
|
-
*
|
|
19
|
+
* xs, sm Supporting/Caption Strong (12/18/500) since 2026-11-30 — the
|
|
20
|
+
* redrawn set; it was Action/Compact Active, Semi Bold at rest
|
|
21
|
+
* (designer-list item 28, now resolved by the file)
|
|
21
22
|
* md, lg, xl Action/Default (13/18/500) — one style for all three, which
|
|
22
23
|
* resolves the old xl-binds-a-Body-style question (md moves
|
|
23
24
|
* 12.5 -> 13; xl moves 14 -> 13)
|
|
@@ -69,7 +70,7 @@
|
|
|
69
70
|
.vd-btn {
|
|
70
71
|
/* Layout */
|
|
71
72
|
@apply inline-flex items-center justify-center gap-1.25;
|
|
72
|
-
@apply h-control-md px-
|
|
73
|
+
@apply h-control-md px-2.75; /* md, 28px — Height/Control/MD; 11px padding (Figma 12 − the rendered border), 5px gap */
|
|
73
74
|
|
|
74
75
|
/* Shape */
|
|
75
76
|
@apply rounded-control; /* 6px from Figma */
|
|
@@ -92,11 +93,11 @@
|
|
|
92
93
|
/* Declared before the variants so the filled displays, whose nested rules
|
|
93
94
|
compile to the same specificity, win on source order as they always have. */
|
|
94
95
|
|
|
95
|
-
.vd-btn:hover:not(:disabled) {
|
|
96
|
+
.vd-btn:hover:not(:disabled, [aria-disabled="true"]) {
|
|
96
97
|
@apply bg-action-subtle;
|
|
97
98
|
}
|
|
98
99
|
|
|
99
|
-
.vd-btn:active:not(:disabled) {
|
|
100
|
+
.vd-btn:active:not(:disabled, [aria-disabled="true"]) {
|
|
100
101
|
@apply bg-primary-soft text-primary border-primary;
|
|
101
102
|
}
|
|
102
103
|
|
|
@@ -117,11 +118,11 @@
|
|
|
117
118
|
.vd-btn-primary {
|
|
118
119
|
@apply border-stroke-divider bg-primary text-content-contrast;
|
|
119
120
|
|
|
120
|
-
&:hover:not(:disabled) {
|
|
121
|
+
&:hover:not(:disabled, [aria-disabled="true"]) {
|
|
121
122
|
@apply bg-primary-dark;
|
|
122
123
|
}
|
|
123
124
|
|
|
124
|
-
&:active:not(:disabled) {
|
|
125
|
+
&:active:not(:disabled, [aria-disabled="true"]) {
|
|
125
126
|
@apply border-stroke-divider bg-primary-pressed text-content-contrast;
|
|
126
127
|
}
|
|
127
128
|
|
|
@@ -130,7 +131,7 @@
|
|
|
130
131
|
@apply bg-primary-pressed;
|
|
131
132
|
}
|
|
132
133
|
|
|
133
|
-
&:disabled {
|
|
134
|
+
&:is(:disabled, [aria-disabled="true"]) {
|
|
134
135
|
@apply bg-primary-disabled;
|
|
135
136
|
}
|
|
136
137
|
}
|
|
@@ -161,11 +162,11 @@
|
|
|
161
162
|
.vd-btn-critical {
|
|
162
163
|
@apply border-stroke-divider bg-critical text-content-contrast;
|
|
163
164
|
|
|
164
|
-
&:hover:not(:disabled) {
|
|
165
|
+
&:hover:not(:disabled, [aria-disabled="true"]) {
|
|
165
166
|
@apply bg-critical-strong;
|
|
166
167
|
}
|
|
167
168
|
|
|
168
|
-
&:active:not(:disabled) {
|
|
169
|
+
&:active:not(:disabled, [aria-disabled="true"]) {
|
|
169
170
|
@apply border-stroke-divider bg-critical-strong text-content-contrast;
|
|
170
171
|
}
|
|
171
172
|
|
|
@@ -174,7 +175,7 @@
|
|
|
174
175
|
@apply bg-critical-strong;
|
|
175
176
|
}
|
|
176
177
|
|
|
177
|
-
&:disabled {
|
|
178
|
+
&:is(:disabled, [aria-disabled="true"]) {
|
|
178
179
|
@apply bg-critical/40;
|
|
179
180
|
}
|
|
180
181
|
}
|
|
@@ -185,7 +186,7 @@
|
|
|
185
186
|
.vd-btn-empty {
|
|
186
187
|
@apply border-transparent bg-transparent text-content-primary;
|
|
187
188
|
|
|
188
|
-
&:active:not(:disabled) {
|
|
189
|
+
&:active:not(:disabled, [aria-disabled="true"]) {
|
|
189
190
|
@apply border-transparent bg-primary-soft text-primary;
|
|
190
191
|
}
|
|
191
192
|
}
|
|
@@ -196,30 +197,30 @@
|
|
|
196
197
|
tokens — reproduced as drawn. Icon pairing: 13 / 13 / 14 / 15 / 15. */
|
|
197
198
|
|
|
198
199
|
.vd-btn-xs {
|
|
199
|
-
@apply h-control-xs px-1.
|
|
200
|
-
@apply text-
|
|
200
|
+
@apply h-control-xs px-1.25 gap-1; /* 20px, 5px padding (Figma 6 − border), 4px gap */
|
|
201
|
+
@apply text-supporting-caption-strong; /* 12 / 18 / 500 — 2026-11-30, was 12 / 16 / 600 */
|
|
201
202
|
}
|
|
202
203
|
|
|
203
204
|
.vd-btn-sm {
|
|
204
|
-
@apply h-control-sm px-
|
|
205
|
-
@apply text-
|
|
205
|
+
@apply h-control-sm px-1.75 gap-1.25; /* 24px, 7px padding (Figma 8 − border), 5px gap */
|
|
206
|
+
@apply text-supporting-caption-strong; /* 12 / 18 / 500 — 2026-11-30, was 12 / 16 / 600 */
|
|
206
207
|
}
|
|
207
208
|
|
|
208
209
|
/* Identical to the bare base by design — md IS the default. Exists so the
|
|
209
210
|
size can be named at the call site, the way .vd-btn-outline names the
|
|
210
211
|
default Display. */
|
|
211
212
|
.vd-btn-md {
|
|
212
|
-
@apply h-control-md px-
|
|
213
|
+
@apply h-control-md px-2.75 gap-1.25; /* 28px, 11px padding (Figma 12 − border), 5px gap */
|
|
213
214
|
@apply text-action-default; /* 13 / 18 / 500 */
|
|
214
215
|
}
|
|
215
216
|
|
|
216
217
|
.vd-btn-lg {
|
|
217
|
-
@apply h-control-lg px-
|
|
218
|
+
@apply h-control-lg px-3.75 gap-1.5; /* 32px, 15px padding (Figma 16 − border), 6px gap */
|
|
218
219
|
@apply text-action-default; /* 13 / 18 / 500 */
|
|
219
220
|
}
|
|
220
221
|
|
|
221
222
|
.vd-btn-xl {
|
|
222
|
-
@apply h-control-xl px-
|
|
223
|
+
@apply h-control-xl px-4.75 gap-2; /* 40px, 19px padding (Figma 20 − border), 8px gap */
|
|
223
224
|
@apply text-action-default; /* 13 / 18 / 500 — the old Subtitle binding is gone */
|
|
224
225
|
}
|
|
225
226
|
|
|
@@ -229,7 +230,14 @@
|
|
|
229
230
|
@apply focus-ring;
|
|
230
231
|
}
|
|
231
232
|
|
|
232
|
-
|
|
233
|
+
/* `aria-disabled="true"` is styled exactly as `:disabled` since 0.7.0, on
|
|
234
|
+
every display. Use it for a control that is unavailable but has to stay
|
|
235
|
+
focusable — a blocked action whose reasons are read from a tooltip. A
|
|
236
|
+
native `disabled` button leaves the tab order and announces nothing.
|
|
237
|
+
`:is()` and `:not()` take the specificity of their most specific argument,
|
|
238
|
+
so these weigh what the bare `:disabled` forms did. The attribute styles
|
|
239
|
+
the button; ignoring its click is the consumer's. */
|
|
240
|
+
.vd-btn:is(:disabled, [aria-disabled="true"]) {
|
|
233
241
|
@apply cursor-not-allowed;
|
|
234
242
|
}
|
|
235
243
|
|
|
@@ -238,10 +246,21 @@
|
|
|
238
246
|
primary to Primary/Disabled, critical to Critical/Main at 40%. (Critical
|
|
239
247
|
was missing from this exclusion until 0.6.0, so its disabled label was
|
|
240
248
|
dimmed whatever its own rule said.) */
|
|
241
|
-
.vd-btn:disabled:not(.vd-btn-primary):not(.vd-btn-critical) {
|
|
249
|
+
.vd-btn:is(:disabled, [aria-disabled="true"]):not(.vd-btn-primary):not(.vd-btn-critical) {
|
|
242
250
|
@apply text-content-tertiary;
|
|
243
251
|
}
|
|
244
252
|
|
|
253
|
+
/* Blocked (0.7.0) — an action that cannot run yet: Surface/Neutral fill, the
|
|
254
|
+
Stroke/Divider hairline, a Content/Tertiary label. From the Application
|
|
255
|
+
page's "Approve · blocked" (1857:94854), which Figma draws as an instance
|
|
256
|
+
override on Button primary / disabled rather than as a variant
|
|
257
|
+
(designer-list item 96). Pair it with `aria-disabled="true"` (or
|
|
258
|
+
`disabled`), which is what switches the hover and pressed ramp off; a count
|
|
259
|
+
goes in a nested `.vd-badge vd-badge-neutral`. */
|
|
260
|
+
.vd-btn-blocked {
|
|
261
|
+
@apply border-stroke-divider bg-surface-neutral text-content-tertiary;
|
|
262
|
+
}
|
|
263
|
+
|
|
245
264
|
/* Ring — a Figma boolean since Rev3 (Button never had one before): a 2px
|
|
246
265
|
Primary/Main stroke aligned OUTSIDE, like Chip/Tag/TextButton. Outline at
|
|
247
266
|
zero offset follows the 6px radius. */
|
|
@@ -83,7 +83,9 @@
|
|
|
83
83
|
|
|
84
84
|
@layer components {
|
|
85
85
|
.vd-checkbox {
|
|
86
|
-
|
|
86
|
+
/* 24px row since 2026-11-30: 2 + the 20px Body/Default line + 2, as the
|
|
87
|
+
redrawn set draws it (it was the bare 18px Caption line). */
|
|
88
|
+
@apply inline-flex items-center gap-2.25 py-0.5; /* 9px gap — Spacing/9 */
|
|
87
89
|
@apply cursor-pointer;
|
|
88
90
|
}
|
|
89
91
|
|
|
@@ -158,7 +160,7 @@
|
|
|
158
160
|
|
|
159
161
|
.vd-checkbox-label {
|
|
160
162
|
@apply min-w-0 flex-1;
|
|
161
|
-
@apply text-
|
|
163
|
+
@apply text-body-default text-content-primary; /* 14 / 20 / 400 — 2026-11-30, was Supporting/Caption 12 / 18 */
|
|
162
164
|
@apply select-none;
|
|
163
165
|
}
|
|
164
166
|
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
.vd-checklist-group {
|
|
45
45
|
@apply flex w-full flex-col px-3; /* 12px */
|
|
46
46
|
@apply rounded-surface; /* 8px */
|
|
47
|
-
|
|
47
|
+
/* Closed draws no stroke: 36px, the header alone (it was a transparent
|
|
48
|
+
border, 38px, until 2026-11-30). */
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
/* 36px closed — 8 + the 20px line + 8. */
|
|
@@ -87,11 +88,12 @@
|
|
|
87
88
|
@apply text-body-dense-strong text-content-primary; /* 13 / 18 / 500 */
|
|
88
89
|
}
|
|
89
90
|
|
|
90
|
-
/*
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
/* Content/Tertiary, as Figma binds it. It shipped Content/Secondary in 0.6.0
|
|
92
|
+
because the old Light Tertiary (#727280) was 4.20:1 on this box's
|
|
93
|
+
Surface/Neutral; the token is #6a6a78 since 0.7.0 — 4.72 here, 4.90 in
|
|
94
|
+
Onyx — so the divergence is gone (designer-list item 95, resolved). */
|
|
93
95
|
.vd-checklist-group-record-meta {
|
|
94
|
-
@apply text-supporting-caption text-content-
|
|
96
|
+
@apply text-supporting-caption text-content-tertiary; /* 12 / 18 / 400 */
|
|
95
97
|
}
|
|
96
98
|
|
|
97
99
|
.vd-checklist-group-more {
|
|
@@ -101,7 +103,13 @@
|
|
|
101
103
|
/* --- Open ------------------------------------------------------------- */
|
|
102
104
|
|
|
103
105
|
.vd-checklist-group-open {
|
|
104
|
-
|
|
106
|
+
/* 1px inside stroke in Figma; padding is Figma's 12 − the border. */
|
|
107
|
+
@apply border border-[length:var(--border-line)] border-stroke-border;
|
|
108
|
+
@apply bg-surface-card px-2.75 pb-2.75; /* 11px */
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.vd-checklist-group-open .vd-checklist-group-header {
|
|
112
|
+
@apply -mt-px; /* overlaps the top border, as Figma's 0 top padding does */
|
|
105
113
|
}
|
|
106
114
|
|
|
107
115
|
/* 40px — 10 + 20 + 10. */
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Comment Composer Component — Figma Comment Composer 1289:3690
|
|
3
3
|
*
|
|
4
|
-
* A comment / note composer: a bordered shell holding
|
|
5
|
-
*
|
|
4
|
+
* A comment / note composer: a bordered shell holding an optional row of Tag
|
|
5
|
+
* chips ABOVE a growing text body (Figma's order since 2026-11 — the tags led
|
|
6
|
+
* the shell in every variant when re-read 2026-11-30; they followed the body
|
|
7
|
+
* before), and a footer with actions and a Post button; a
|
|
6
8
|
* helper line sits under the shell. 24 variants: State (rest / hover / focus /
|
|
7
9
|
* error …) x Error x Rows (1 / 3 / 5). One size — xl.
|
|
8
10
|
*
|
|
@@ -12,24 +14,24 @@
|
|
|
12
14
|
* of its own that Rows sets: 20 / 58 / 98 (`.vd-composer-rows-1 / -3 / -5`).
|
|
13
15
|
* Those three are RAW BY DESIGN — a Rows axis, not the control ladder — and
|
|
14
16
|
* are exempt in verify:height-scale with that reason. Frame heights reconcile
|
|
15
|
-
* exactly:
|
|
16
|
-
* padding 20, tags row 20, footer 24, gaps 12, helper
|
|
17
|
+
* exactly: 122 / 160 / 200 = body floor + a constant 102px of chrome (shell
|
|
18
|
+
* padding 20, tags row 20, footer 24, gaps 12, the 18px helper line, root gap 8).
|
|
17
19
|
*
|
|
18
20
|
* The footer's controls carry the ladder themselves — two Icon Button sm and a
|
|
19
21
|
* Button sm (Action S "Post"), all 24 — so the footer row is content-driven at
|
|
20
22
|
* 24 and is not pinned. The tags row holds Tag sm chips (20). Shell padding is
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
+
* 15 / 9 (x / y) — Figma's 16 / 10 minus the rendered 1px hairline per side,
|
|
24
|
+
* the border rule, which is what makes the frames land on 122 / 160 / 200
|
|
23
25
|
* exactly rather than +2 — with a 6px gap between its rows; the root gap
|
|
24
26
|
* (shell to helper) is 8.
|
|
25
27
|
*
|
|
26
28
|
* Structure:
|
|
27
29
|
* <div class="vd-composer">
|
|
28
30
|
* <div class="vd-composer-shell">
|
|
31
|
+
* <div class="vd-composer-tags">…Tag sm chips…</div> <!-- Optional -->
|
|
29
32
|
* <div class="vd-composer-body vd-composer-rows-3">
|
|
30
33
|
* <textarea class="vd-composer-textarea" rows="3" placeholder="Add a comment…"></textarea>
|
|
31
34
|
* </div>
|
|
32
|
-
* <div class="vd-composer-tags">…Tag sm chips…</div> <!-- Optional -->
|
|
33
35
|
* <div class="vd-composer-footer">
|
|
34
36
|
* <div class="vd-composer-actions">…Icon Button sm x2…</div>
|
|
35
37
|
* <button class="vd-btn vd-btn-primary vd-btn-sm">Post</button>
|
|
@@ -51,7 +53,7 @@
|
|
|
51
53
|
.vd-composer-shell {
|
|
52
54
|
/* Layout */
|
|
53
55
|
@apply flex w-full flex-col gap-1.5; /* 6px between body / tags / footer */
|
|
54
|
-
@apply min-h-control-xl px-
|
|
56
|
+
@apply min-h-control-xl px-3.75 py-2.25; /* floor 40, 15px / 9px (Figma 16 / 10 − the rendered hairline) */
|
|
55
57
|
|
|
56
58
|
/* Shape */
|
|
57
59
|
@apply rounded-control; /* 6px */
|
|
@@ -135,7 +137,7 @@
|
|
|
135
137
|
/* --- Helper — under the shell ------------------------------------------- */
|
|
136
138
|
|
|
137
139
|
.vd-composer-helper {
|
|
138
|
-
@apply flex items-center gap-1
|
|
140
|
+
@apply flex items-center gap-1; /* 4px — Figma's Helper › Left (was 6) */
|
|
139
141
|
@apply m-0 text-supporting-caption text-content-tertiary; /* 12 (was 11) */
|
|
140
142
|
}
|
|
141
143
|
|
|
@@ -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
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
/* --- Type = labeled ----------------------------------------------------- */
|
|
90
90
|
|
|
91
91
|
.vd-divider-labeled {
|
|
92
|
-
@apply flex w-full items-center gap-4; /* 16px */
|
|
92
|
+
@apply flex w-full items-center gap-4 py-0.5; /* 16px; 2px — Figma's labeled row is 20 (2 + 16 + 2) */
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
/* The flanking rules fill whatever is left, keeping the label centred. */
|
|
@@ -48,10 +48,16 @@
|
|
|
48
48
|
* focus ring and rotates the chevron 180°. Toggling the attribute (and the
|
|
49
49
|
* panel's `hidden`) is the consumer's job — this library ships no JavaScript.
|
|
50
50
|
*
|
|
51
|
-
* Heights are pinned with `height`, not `min-height`:
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
51
|
+
* Heights are pinned with `height`, not `min-height`: a border ADDS to a
|
|
52
|
+
* content-driven box, and every bound frame has strokesIncludedInLayout=false,
|
|
53
|
+
* so the token is the border-box height. Same precedent as button.css and
|
|
54
|
+
* input.css.
|
|
55
|
+
*
|
|
56
|
+
* 1px BORDER SINCE 2026-11-30 (was the 0.5px `--border-thin`) — rest
|
|
57
|
+
* Stroke/Border, hover Content/Faint, open/focused Primary/Main, error
|
|
58
|
+
* Critical/Main in every state, disabled Stroke/Disabled in every size and BG
|
|
59
|
+
* (some disabled variants drew Stroke/Border before, and the CSS left the
|
|
60
|
+
* rest border in place). See input.css for the change across the four sets.
|
|
55
61
|
*
|
|
56
62
|
* Figma inconsistency, noted not reproduced: at lg and xl the flex/padding/gap
|
|
57
63
|
* sit on an unnamed wrapper one level below the Input Row.
|
|
@@ -84,11 +90,11 @@
|
|
|
84
90
|
.vd-dropdown-field {
|
|
85
91
|
/* Layout — md: Height/Control/MD, 12px padding-x, 8px gap, no padding-y */
|
|
86
92
|
@apply flex w-full items-center gap-2;
|
|
87
|
-
@apply h-control-md px-
|
|
93
|
+
@apply h-control-md px-2.75; /* 11px — Figma 12 − the 1px border */
|
|
88
94
|
|
|
89
95
|
/* Shape */
|
|
90
96
|
@apply rounded-control; /* 6px */
|
|
91
|
-
@apply border border-[length:var(--border-
|
|
97
|
+
@apply border border-[length:var(--border-line)] border-stroke-border; /* 1px, 2026-11-30 */
|
|
92
98
|
|
|
93
99
|
/* Reset so the class works on button / div alike */
|
|
94
100
|
@apply appearance-none text-left;
|
|
@@ -133,28 +139,28 @@
|
|
|
133
139
|
/* One Height/Control step each; padding-y is 0 everywhere. */
|
|
134
140
|
|
|
135
141
|
.vd-dropdown-field-xs {
|
|
136
|
-
@apply h-control-xs gap-1.5 px-1.
|
|
142
|
+
@apply h-control-xs gap-1.5 px-1.25; /* 20px, 6px gap, 5px (Figma 6 − border) */
|
|
137
143
|
@apply text-supporting-caption; /* 12 / 18 / 400 (was Micro L 11) */
|
|
138
144
|
}
|
|
139
145
|
|
|
140
146
|
.vd-dropdown-field-sm {
|
|
141
|
-
@apply h-control-sm gap-1.5 px-
|
|
147
|
+
@apply h-control-sm gap-1.5 px-1.75; /* 24px, 6px gap, 7px (Figma 8 − border) */
|
|
142
148
|
@apply text-supporting-caption; /* 12 / 18 / 400 (was Micro L 11) */
|
|
143
149
|
}
|
|
144
150
|
|
|
145
151
|
/* Identical to the bare base — md IS the default. */
|
|
146
152
|
.vd-dropdown-field-md {
|
|
147
|
-
@apply h-control-md gap-2 px-
|
|
153
|
+
@apply h-control-md gap-2 px-2.75; /* 28px, 8px gap, 11px (Figma 12 − border) */
|
|
148
154
|
@apply text-body-dense; /* 13 / 18 / 400 — Rev3, was Body 2 12.5 */
|
|
149
155
|
}
|
|
150
156
|
|
|
151
157
|
.vd-dropdown-field-lg {
|
|
152
|
-
@apply h-control-lg gap-2 px-
|
|
158
|
+
@apply h-control-lg gap-2 px-2.75; /* 32px, 8px gap, 11px (Figma 12 − border) — equals .vd-btn-lg / .vd-input-lg */
|
|
153
159
|
@apply text-body-dense; /* 13 / 18 / 400 */
|
|
154
160
|
}
|
|
155
161
|
|
|
156
162
|
.vd-dropdown-field-xl {
|
|
157
|
-
@apply h-control-xl gap-2 px-
|
|
163
|
+
@apply h-control-xl gap-2 px-3.75; /* 40px, 8px gap, 15px (Figma 16 − border) */
|
|
158
164
|
@apply text-body-dense;
|
|
159
165
|
}
|
|
160
166
|
|
|
@@ -173,14 +179,14 @@
|
|
|
173
179
|
so without the exclusion a field in error turns grey on hover and blue on
|
|
174
180
|
focus, the states a user is in while fixing it. */
|
|
175
181
|
.vd-dropdown-field:hover:not(:disabled):not([aria-disabled="true"]):not(.vd-dropdown-field-error) {
|
|
176
|
-
@apply border-
|
|
182
|
+
@apply border-content-faint; /* was Stroke/Border, 2026-11-30 */
|
|
177
183
|
}
|
|
178
184
|
|
|
179
185
|
.vd-dropdown-field:focus-visible {
|
|
180
186
|
@apply focus-ring;
|
|
181
187
|
}
|
|
182
188
|
|
|
183
|
-
/* Open / focused — Rev3's active state is the
|
|
189
|
+
/* Open / focused — Rev3's active state is the border recoloured to
|
|
184
190
|
Primary/Main, not the 2px ring; the ring stays on :focus-visible above
|
|
185
191
|
for keyboard tab-through (requester decision 2026-09-30). */
|
|
186
192
|
.vd-dropdown-field:focus-within:not(:disabled):not([aria-disabled="true"]):not(.vd-dropdown-field-error),
|
|
@@ -209,15 +215,21 @@
|
|
|
209
215
|
@apply rotate-180;
|
|
210
216
|
}
|
|
211
217
|
|
|
212
|
-
/*
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
border
|
|
218
|
+
/* Disabled — Action/Subtle fill, and since 2026-11-30 a Stroke/Disabled
|
|
219
|
+
border in every size and BG (before, the rest border stayed). Error is
|
|
220
|
+
excluded by name so a disabled field in error keeps its Critical/Main
|
|
221
|
+
border, as Figma's disabled + error variants do. Hover is already
|
|
222
|
+
excluded via :not(:disabled) above. */
|
|
216
223
|
.vd-dropdown-field:disabled,
|
|
217
224
|
.vd-dropdown-field[aria-disabled="true"] {
|
|
218
225
|
@apply cursor-not-allowed bg-action-subtle;
|
|
219
226
|
}
|
|
220
227
|
|
|
228
|
+
.vd-dropdown-field:disabled:not(.vd-dropdown-field-error),
|
|
229
|
+
.vd-dropdown-field[aria-disabled="true"]:not(.vd-dropdown-field-error) {
|
|
230
|
+
@apply border-stroke-disabled;
|
|
231
|
+
}
|
|
232
|
+
|
|
221
233
|
/* Rev3 Neutral-BG disabled pair. */
|
|
222
234
|
.vd-dropdown-field-bg-neutral:disabled,
|
|
223
235
|
.vd-dropdown-field-bg-neutral[aria-disabled="true"] {
|
|
@@ -228,7 +240,7 @@
|
|
|
228
240
|
|
|
229
241
|
.vd-dropdown-field-error-message {
|
|
230
242
|
@apply flex w-full items-center pt-1.5; /* 6px */
|
|
231
|
-
@apply text-
|
|
243
|
+
@apply text-body-default; /* 14 / 20 — Figma's Error Message binds Body/Default (2026-11-30; was a raw 11px) */
|
|
232
244
|
@apply text-critical-strong;
|
|
233
245
|
}
|
|
234
246
|
}
|