@valiify/dashboard-ui 0.7.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +211 -3
  2. package/COMPONENTS.md +39 -31
  3. package/README.md +1 -1
  4. package/class-manifest.json +97 -4
  5. package/design-methodology/dashboard.md +676 -308
  6. package/dist/dashboard-ui.css +495 -124
  7. package/dist/index.css +191 -124
  8. package/package.json +2 -2
  9. package/src/components/button.css +11 -10
  10. package/src/components/checkbox.css +4 -2
  11. package/src/components/checklist-group.css +9 -2
  12. package/src/components/composer.css +11 -9
  13. package/src/components/divider.css +1 -1
  14. package/src/components/dropdown-field.css +30 -18
  15. package/src/components/dropdown-menu.css +6 -4
  16. package/src/components/filter-segment.css +2 -1
  17. package/src/components/finding-card.css +4 -1
  18. package/src/components/funding-status.css +3 -2
  19. package/src/components/funding-total.css +6 -2
  20. package/src/components/funding-transaction.css +21 -3
  21. package/src/components/input.css +60 -21
  22. package/src/components/link.css +6 -2
  23. package/src/components/loading-indicator.css +5 -5
  24. package/src/components/menu-item.css +85 -15
  25. package/src/components/modal.css +2 -2
  26. package/src/components/navigation-rail.css +12 -2
  27. package/src/components/pill.css +3 -2
  28. package/src/components/recipient-input.css +4 -4
  29. package/src/components/section-marker.css +4 -3
  30. package/src/components/sensitive-data.css +8 -4
  31. package/src/components/tabs.css +4 -5
  32. package/src/components/tag.css +11 -7
  33. package/src/components/textarea.css +38 -18
  34. package/src/components/toast.css +12 -9
  35. package/src/components/tooltip.css +4 -1
  36. package/src/utility-surface.css +93 -1
  37. package/types/components.d.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valiify/dashboard-ui",
3
- "version": "0.7.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",
@@ -92,7 +92,7 @@
92
92
  "@fontsource/jetbrains-mono": "^5.3.0",
93
93
  "@storybook/addon-a11y": "^10.6.7",
94
94
  "@storybook/addon-docs": "^10.6.7",
95
- "@storybook/addon-mcp": "^0.7.0",
95
+ "@storybook/addon-mcp": "^10.6.8",
96
96
  "@storybook/addon-themes": "^10.6.7",
97
97
  "@storybook/html-vite": "^10.6.7",
98
98
  "@tailwindcss/postcss": "^4.3.3",
@@ -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 Action/Compact ACTIVE (12/16/600) — Semi Bold AT REST, via a
20
- * style literally named "Active" (designer-list item 28; as drawn)
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-3; /* md, 28px — Height/Control/MD; 12px padding, 5px gap */
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 */
@@ -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.5 gap-1; /* 20px, 6px padding, 4px gap */
200
- @apply text-action-compact-active; /* 12 / 16 / 600 — at rest, as drawn */
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-2 gap-1.25; /* 24px, 8px padding, 5px gap */
205
- @apply text-action-compact-active; /* 12 / 16 / 600 — at rest, as drawn */
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-3 gap-1.25; /* 28px, 12px padding, 5px gap */
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-4 gap-1.5; /* 32px, 16px padding, 6px gap */
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-5 gap-2; /* 40px, 20px padding, 8px gap */
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
 
@@ -83,7 +83,9 @@
83
83
 
84
84
  @layer components {
85
85
  .vd-checkbox {
86
- @apply inline-flex items-center gap-2.25; /* 9px — Spacing/9 */
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-supporting-caption text-content-primary; /* Rev3: 12 / 18 / 400 — same metrics */
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
- @apply border border-[length:var(--border-line)] border-transparent;
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. */
@@ -102,7 +103,13 @@
102
103
  /* --- Open ------------------------------------------------------------- */
103
104
 
104
105
  .vd-checklist-group-open {
105
- @apply border-stroke-border bg-surface-card pb-3; /* 12px */
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 */
106
113
  }
107
114
 
108
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 a growing text body, an
5
- * optional row of Tag chips, and a footer with actions and a Post button; a
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: 118 / 156 / 196 = body floor + a constant 98px of chrome (shell
16
- * padding 20, tags row 20, footer 24, gaps 12, helper ~14, root gap 8).
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
- * 16 / 9 (x / y) — Figma's 10 minus the rendered 1px hairline per side, the
22
- * floor-tier rule, which is what makes the frames land on 118 / 156 / 196
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-4 py-2.25; /* floor 40, 16px / 9px (Figma 10 − hairline) */
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.5; /* 6px */
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
 
@@ -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`: Chrome rounds the 0.5px
52
- * `--border-thin` hairline up to a full 1px and ADDS it to the box, and every
53
- * bound frame has strokesIncludedInLayout=false, so the token is the border-box
54
- * height. Same precedent as button.css and input.css.
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-3;
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-thin)] border-stroke-divider;
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.5; /* 20px, 6px gap, 6px */
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-2; /* 24px, 6px gap, 8px */
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-3; /* 28px, 8px gap, 12px */
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-3; /* 32px, 8px gap, 12px — equals .vd-btn-lg / .vd-input-lg */
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-4; /* 40px, 8px gap, 16px */
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-stroke-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 0.5px hairline recoloured to
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
- /* Only the fill changes — the border is left alone so a disabled field in
213
- error still shows its crimson hairline, as Figma's disabled + error
214
- variants do. Hover is already excluded via :not(:disabled) above, so no
215
- border reset is needed here. */
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-[11px] font-normal leading-[normal];
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
  }
@@ -55,7 +55,7 @@
55
55
  trailing check sat beside the label and the hover fill stopped short.
56
56
  Figma's regions are all Fill. */
57
57
  @apply flex flex-col items-stretch;
58
- @apply p-1; /* 4px — Spacing/4 */
58
+ @apply p-0.75; /* 3px — Figma 4 − the rendered hairline */
59
59
  @apply min-w-[200px];
60
60
 
61
61
  /* Shape */
@@ -100,12 +100,14 @@
100
100
  @apply text-label-compact text-content-tertiary;
101
101
  }
102
102
 
103
- /* Footer — a Caption link in Primary/Main; 26px, 12px / 4px. Figma draws a
103
+ /* Footer — an Action/Compact link in Primary/Main (12 / 16 / 500 since
104
+ 2026-11-30; was Supporting/Caption 12 / 18 / 400). Still 26px: Figma's
105
+ frame keeps 26 around the 16px line, so the padding-y is 5. Figma draws a
104
106
  raw text node here, not a Text Button, so it is its own part. */
105
107
  .vd-dropdown-menu-footer {
106
108
  @apply flex w-full items-center;
107
- @apply px-3 py-1;
108
- @apply text-supporting-caption text-primary no-underline; /* 12 / 18 / 400 — Rev3 name for the same values */
109
+ @apply px-3 py-1; /* 4px — Figma's Footer padding; 24 tall */
110
+ @apply text-action-compact text-primary no-underline;
109
111
  @apply cursor-pointer;
110
112
  }
111
113
 
@@ -83,7 +83,7 @@
83
83
  .vd-filter-segment {
84
84
  /* Layout */
85
85
  @apply inline-flex shrink-0 items-center justify-center gap-2.5; /* 10px */
86
- @apply px-2; /* 8px; no padding-y — the box is the token */
86
+ @apply pl-2 pr-1.75; /* 8px / 7px (Figma 8 − the rendered right border); no padding-y — the box is the token */
87
87
  @apply h-control-xs; /* sm = Height/Control/XS, 20px — see the header */
88
88
 
89
89
  /* Borders. Side-specific widths need the side-specific length utility, or
@@ -110,6 +110,7 @@
110
110
 
111
111
  /* The group's left edge — the only segment that draws a left border. */
112
112
  .vd-filter-segment-first {
113
+ @apply pl-1.75; /* 7px — Figma 8 − the rendered left border */
113
114
  @apply border-l border-l-[length:var(--border-thin)] border-l-stroke-divider;
114
115
  @apply rounded-l-control; /* 6px */
115
116
  }
@@ -65,7 +65,7 @@
65
65
  @layer components {
66
66
  .vd-finding-card {
67
67
  @apply flex w-full flex-col gap-2; /* 8px */
68
- @apply px-3 pb-3; /* 12px sides and bottom; the header is the top */
68
+ @apply px-2.75 pb-2.75; /* 11px sides and bottom (Figma 12 − the 1px border); the header is the top */
69
69
  @apply rounded-surface; /* 8px */
70
70
  @apply border border-[length:var(--border-line)] border-stroke-border;
71
71
  @apply bg-surface-card;
@@ -74,6 +74,9 @@
74
74
  /* 40px — 10 + the 20px title line + 10. */
75
75
  .vd-finding-card-header {
76
76
  @apply flex items-center gap-3 py-2.5; /* 12px, 10px */
77
+ /* Figma's top padding is 0 with the stroke drawn inside, so the header
78
+ overlaps the 1px border rather than sitting under it. */
79
+ @apply -mt-px;
77
80
  }
78
81
 
79
82
  .vd-finding-card-title {
@@ -32,9 +32,10 @@
32
32
  @apply whitespace-nowrap;
33
33
  }
34
34
 
35
- /* refunded's mark: an 8px-wide slot, as tall as the line, holding a 1.5px dash */
35
+ /* refunded's mark: an 8×16 slot holding a 1.5px dash, centred (16 tall since
36
+ 2026-11-30, as Figma's Marker frame; it stretched to the 18px line) */
36
37
  .vd-funding-status-dash {
37
- @apply inline-flex w-2 shrink-0 items-center self-stretch; /* 8px */
38
+ @apply inline-flex h-4 w-2 shrink-0 items-center; /* 8 × 16 */
38
39
  }
39
40
 
40
41
  .vd-funding-status-dash::before {
@@ -46,12 +46,16 @@
46
46
  font-variant-numeric: tabular-nums;
47
47
  }
48
48
 
49
+ /* Holds a marker with no word since 2026-11-30 — Figma nests the compact
50
+ Field Verification (verified) here, as Funding Transaction's slot does. */
49
51
  .vd-funding-total-status {
50
- @apply flex flex-1 items-center;
52
+ @apply flex h-6 flex-1 items-center; /* 24px */
51
53
  min-width: 0;
52
54
  }
53
55
 
56
+ /* Packed to the end, as Figma's 78px container is (it started-packed here,
57
+ leaving the Text Button 2px left of Figma). */
54
58
  .vd-funding-total-actions {
55
- @apply flex w-[78px] shrink-0 items-center gap-1.5; /* 6px */
59
+ @apply flex w-[78px] shrink-0 items-center justify-end gap-1.5; /* 6px */
56
60
  }
57
61
  }
@@ -46,7 +46,7 @@
46
46
  @layer components {
47
47
  .vd-funding-transaction {
48
48
  @apply flex w-full items-center gap-4; /* 16px */
49
- @apply px-1 py-3.5; /* 4px / 14px */
49
+ @apply px-1 py-3; /* 4px / 12px — 12 + the 24px status slot + 12 = 48 (2026-11-30; was 14 around a 20px worded status) */
50
50
  @apply rounded-control; /* 6px */
51
51
  }
52
52
 
@@ -81,13 +81,31 @@
81
81
  font-variant-numeric: tabular-nums;
82
82
  }
83
83
 
84
+ /* The status slot (redrawn after 0.7.0, built 2026-11-30): a marker with no
85
+ word, then Refund at the far end on hover. 24px tall, as Figma's slot is.
86
+ The marker per state —
87
+ pending .vd-severity-marker vd-severity-marker-review
88
+ funded .vd-field-verification vd-field-verification-verified vd-field-verification-compact
89
+ refunded .vd-funding-transaction-undo (a 14px #undo-2 in Content/Tertiary)
90
+ failed .vd-severity-marker vd-severity-marker-critical
91
+ each named for assistive tech. The column follows the record grid, so the
92
+ marker sits on the shared status column at any width (decided 2026-11-30;
93
+ Figma's fixed 214 + 40 inset lands there only at 828). */
84
94
  .vd-funding-transaction-status {
85
- @apply flex flex-1 items-center justify-between gap-2;
95
+ @apply flex h-6 flex-1 items-center justify-between gap-2; /* 24px */
86
96
  min-width: 0;
87
97
  }
88
98
 
99
+ /* refunded's mark — Figma's undo-2, 14px, Content/Tertiary. Put it on the
100
+ <svg class="vd-icon vd-icon-size-14">. */
101
+ .vd-funding-transaction-undo {
102
+ @apply shrink-0 text-content-tertiary;
103
+ }
104
+
89
105
  /* 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). */
106
+ chevron sits on the row's right edge, in line with Content Row's). It
107
+ holds an Icon Button inline with a 14px #chevron-down — every state, not
108
+ hover-revealed (2026-11-30; the stories showed an ellipsis). */
91
109
  .vd-funding-transaction-actions {
92
110
  @apply flex w-[78px] shrink-0 items-center justify-end;
93
111
  }
@@ -21,8 +21,9 @@
21
21
  * and Body/Dense (13/18) from md up — the old Micro L / Body 1 pair is gone,
22
22
  * and with it the Auto-line-height trap. The field LABEL is Label/Compact
23
23
  * (12/16/600, 0.08em tracking) and is MIXED-CASE now — the old 10px
24
- * uppercase Label S died with the Rev3 scale. Icon slots unchanged (14px at
25
- * sm–xl, search glyph 12 at xs).
24
+ * uppercase Label S died with the Rev3 scale. Icon slots: 12px at xs, 14px at
25
+ * sm–xl — left / right icons and the search glyph alike (the size is the
26
+ * markup's `.vd-icon-size-*`).
26
27
  *
27
28
  * PLACEHOLDERS ARE Content/Tertiary FAMILY-WIDE (requester decision
28
29
  * 2026-09-30): Figma still draws the Search Field's placeholder Content/Faint,
@@ -30,10 +31,21 @@
30
31
  * Disabled fills are Rev3: Action/Subtle on the White BG, Surface/Neutral on
31
32
  * the Neutral BG.
32
33
  *
33
- * Heights are pinned with `height`, not `min-height`: Chrome rounds the 0.5px
34
- * `--border-thin` hairline up to a full 1px and ADDS it to the box, and every
35
- * bound Figma frame has strokesIncludedInLayout=false, so the token is the
36
- * border-box height. Same precedent as button.css.
34
+ * Heights are pinned with `height`, not `min-height`: a border ADDS to a
35
+ * content-driven box, and every bound Figma frame has
36
+ * strokesIncludedInLayout=false, so the token is the border-box height. Same
37
+ * precedent as button.css.
38
+ *
39
+ * THE BORDER IS 1px SINCE 2026-11-30 (`--border-line`, was the 0.5px
40
+ * `--border-thin`). Figma moved the four field sets — Input Field, Search
41
+ * Field, Dropdown Field, Text Area — to a 1px INSIDE stroke in every state
42
+ * because the half-pixel edge was too faint on standard-resolution screens,
43
+ * and stepped every colour up: rest Stroke/Border (was Stroke/Divider), hover
44
+ * Content/Faint (was Stroke/Border), disabled Stroke/Disabled (was
45
+ * Stroke/Divider). Focus (Primary/Main) and error (Critical/Main) keep their
46
+ * colours. Nothing moves: Chrome already rendered the 0.5px hairline as a full
47
+ * 1px, and the height is pinned. Comment Composer and Recipient Input are
48
+ * still 0.5px Stroke/Divider in Figma and are deliberately not changed.
37
49
  *
38
50
  * Structure:
39
51
  * <div class="vd-input-container">
@@ -86,13 +98,13 @@
86
98
  @apply flex items-center gap-2 w-full; /* 8px gap, every size */
87
99
 
88
100
  /* Default size: md — Height/Control/MD, 10px padding-x, no padding-y */
89
- @apply h-control-md px-2.5;
101
+ @apply h-control-md px-2.25; /* 9px — Figma 10 − the 1px border */
90
102
 
91
103
  /* Shape */
92
104
  @apply rounded-control; /* 6px */
93
105
 
94
- /* Border */
95
- @apply border border-[length:var(--border-thin)] border-stroke-divider;
106
+ /* Border — 1px Stroke/Border at rest (2026-11-30; was 0.5px Divider) */
107
+ @apply border border-[length:var(--border-line)] border-stroke-border;
96
108
 
97
109
  /* Background - default: white */
98
110
  @apply bg-surface-paper;
@@ -136,28 +148,28 @@
136
148
  /* One Height/Control step each; padding-y is 0 everywhere. */
137
149
 
138
150
  .vd-input-xs {
139
- @apply h-control-xs px-1.5; /* 20px, 6px */
151
+ @apply h-control-xs px-1.25; /* 20px, 5px (Figma 6 − border) */
140
152
  @apply text-supporting-caption; /* 12 / 18 / 400 */
141
153
  }
142
154
 
143
155
  .vd-input-sm {
144
- @apply h-control-sm px-2; /* 24px, 8px */
156
+ @apply h-control-sm px-1.75; /* 24px, 7px (Figma 8 − border) */
145
157
  @apply text-supporting-caption; /* 12 / 18 / 400 */
146
158
  }
147
159
 
148
160
  /* Identical to the bare base — md IS the default. */
149
161
  .vd-input-md {
150
- @apply h-control-md px-2.5; /* 28px, 10px */
162
+ @apply h-control-md px-2.25; /* 28px, 9px (Figma 10 − border) */
151
163
  @apply text-body-dense; /* 13 / 18 / 400 */
152
164
  }
153
165
 
154
166
  .vd-input-lg {
155
- @apply h-control-lg px-3; /* 32px, 12px — equals .vd-btn-lg */
167
+ @apply h-control-lg px-2.75; /* 32px, 11px (Figma 12 − border) — equals .vd-btn-lg */
156
168
  @apply text-body-dense;
157
169
  }
158
170
 
159
171
  .vd-input-xl {
160
- @apply h-control-xl px-4; /* 40px, 16px */
172
+ @apply h-control-xl px-3.75; /* 40px, 15px (Figma 16 − border) */
161
173
  @apply text-body-dense;
162
174
  }
163
175
 
@@ -191,12 +203,23 @@
191
203
 
192
204
  /* --- States ------------------------------------------------------ */
193
205
 
194
- /* Hover */
195
- .vd-input-field:hover:not(:has(:disabled)):not(.vd-input-disabled) {
196
- @apply border-stroke-border;
206
+ /* Hover — Content/Faint (was Stroke/Border). The guards exclude disabled and
207
+ ERROR by name: this rule's :not()s give it (0,5,0), above the (0,2,0)
208
+ error rule, so through 0.7.0 a field in error lost its red border on
209
+ hover — the state a user is in while fixing it. Dropdown Field had the
210
+ same bug and the same fix. */
211
+ .vd-input-field:hover:not(:has(:disabled)):not(.vd-input-disabled):not(.vd-input-error) {
212
+ @apply border-content-faint;
213
+ }
214
+
215
+ /* Focus — the border is Primary/Main, as Figma's State=active draws it. The
216
+ 2px focus ring below sits on top of it (negative offset), so this shows
217
+ only where the ring does not; it is set so the border is right whatever
218
+ draws over it. After hover, at the same specificity, so focus wins. */
219
+ .vd-input-field:focus-within:not(:has(:disabled)):not(.vd-input-disabled):not(.vd-input-error) {
220
+ @apply border-primary;
197
221
  }
198
222
 
199
- /* Focus */
200
223
  .vd-input-field:focus-within {
201
224
  @apply focus-ring;
202
225
  /* THE ACTIVE HALO (0.6.0). Figma's State=active draws a 3px halo around the
@@ -213,6 +236,14 @@
213
236
  @apply border-critical;
214
237
  }
215
238
 
239
+ /* Error, hovered or focused — Critical/Strong on Input Field ONLY. Search
240
+ Field, Dropdown Field and Text Area keep Critical/Main in those states, so
241
+ the search modifier is excluded by name. Disabled keeps Critical/Main. */
242
+ .vd-input-field.vd-input-error:hover:not(:has(:disabled)):not(.vd-input-disabled):not(.vd-input-search),
243
+ .vd-input-field.vd-input-error:focus-within:not(.vd-input-search) {
244
+ @apply border-critical-strong;
245
+ }
246
+
216
247
  /* Active + error. AS DRAWN, AND THE FOUR SETS DISAGREE: Input Field's halo
217
248
  turns Neutral/Soft when the field is in error; Search Field, Dropdown
218
249
  Field and Text Area keep Primary/Soft. Each follows its own set, so the
@@ -226,10 +257,18 @@
226
257
  }
227
258
 
228
259
  /* Disabled — Rev3 fills: Action/Subtle on the White BG, Surface/Neutral on
229
- the Neutral BG (each one step below its rest fill). */
260
+ the Neutral BG (each one step below its rest fill). The border is
261
+ Stroke/Disabled (was Stroke/Divider) — except in error, where Figma's
262
+ disabled + error variants keep Critical/Main. Through 0.7.0 this rule
263
+ came after the error rule at the same specificity and greyed it out. */
230
264
  .vd-input-field:has(:disabled),
231
265
  .vd-input-field.vd-input-disabled {
232
- @apply bg-action-subtle border-stroke-divider cursor-not-allowed;
266
+ @apply bg-action-subtle cursor-not-allowed;
267
+ }
268
+
269
+ .vd-input-field:has(:disabled):not(.vd-input-error),
270
+ .vd-input-field.vd-input-disabled:not(.vd-input-error) {
271
+ @apply border-stroke-disabled;
233
272
  }
234
273
 
235
274
  .vd-input-bg-neutral:has(:disabled),
@@ -245,7 +284,7 @@
245
284
 
246
285
  .vd-input-error-message {
247
286
  @apply flex items-center w-full pt-1.5; /* 6px top padding */
248
- @apply text-[11px] leading-[normal] font-normal;
287
+ @apply text-body-default; /* 14 / 20 — Figma's Error Message binds Body/Default (2026-11-30; was a raw 11px) */
249
288
  @apply text-critical-strong;
250
289
  }
251
290
 
@@ -71,8 +71,12 @@
71
71
 
72
72
  @layer components {
73
73
  .vd-link {
74
- /* Layout — strong's container; critical widens the gap below. */
75
- @apply inline-flex items-center gap-1; /* 4px */
74
+ /* Layout — strong's container; critical widens the gap below. 2px above
75
+ and below (2026-11-30): Figma's strong and critical frames are 24 tall,
76
+ 2 + the 20px line + 2. Quiet and monospace are not auto-layout frames in
77
+ the file but place their text 2px down, so every standalone style takes
78
+ it. */
79
+ @apply inline-flex items-center gap-1 py-0.5; /* 4px gap, 2px */
76
80
 
77
81
  /* Type — strong. Rev3 binds Body/Default Strong: 14 / 20 / 500 (it was a
78
82
  raw 14px SemiBold 600 with an Auto line). */