@valiify/dashboard-ui 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +247 -0
  2. package/COMPONENTS.md +1072 -12
  3. package/README.md +40 -7
  4. package/class-manifest.json +188 -2
  5. package/dist/dashboard-ui.css +2297 -194
  6. package/dist/index.css +2841 -915
  7. package/package.json +4 -3
  8. package/src/components/add-funds-form.css +68 -0
  9. package/src/components/alert.css +33 -56
  10. package/src/components/avatar.css +38 -2
  11. package/src/components/button.css +24 -19
  12. package/src/components/card.css +1 -1
  13. package/src/components/checklist-group.css +115 -0
  14. package/src/components/checklist-task.css +125 -0
  15. package/src/components/chip.css +145 -0
  16. package/src/components/comment-date.css +36 -0
  17. package/src/components/comment-item.css +59 -0
  18. package/src/components/content-row.css +108 -0
  19. package/src/components/data-row.css +71 -19
  20. package/src/components/dropdown-field.css +9 -0
  21. package/src/components/entity-header.css +61 -0
  22. package/src/components/field-verification.css +113 -38
  23. package/src/components/finding-card.css +117 -0
  24. package/src/components/finding-option.css +39 -0
  25. package/src/components/finding-row.css +45 -0
  26. package/src/components/funding-status.css +61 -0
  27. package/src/components/funding-total.css +56 -0
  28. package/src/components/funding-transaction.css +103 -0
  29. package/src/components/index.css +29 -0
  30. package/src/components/inline-confirm.css +42 -0
  31. package/src/components/input.css +19 -0
  32. package/src/components/keycap.css +27 -0
  33. package/src/components/menu-item.css +10 -0
  34. package/src/components/modal.css +10 -2
  35. package/src/components/navigation-rail.css +200 -0
  36. package/src/components/overlay-scrim.css +26 -0
  37. package/src/components/owner-table-header.css +42 -0
  38. package/src/components/ownership.css +73 -0
  39. package/src/components/panel-section-header.css +53 -0
  40. package/src/components/panel-status.css +23 -0
  41. package/src/components/panel-strip-button.css +31 -0
  42. package/src/components/progress-circle.css +89 -0
  43. package/src/components/resize-handle.css +131 -0
  44. package/src/components/resolved-row.css +50 -0
  45. package/src/components/scrollbar.css +47 -0
  46. package/src/components/severity-count.css +50 -0
  47. package/src/components/severity-marker.css +66 -0
  48. package/src/components/snapshot-metric.css +72 -0
  49. package/src/components/summary-preview.css +72 -0
  50. package/src/components/switch.css +10 -1
  51. package/src/components/tabs.css +14 -0
  52. package/src/components/tag.css +20 -0
  53. package/src/components/textarea.css +4 -0
  54. package/src/components/toast.css +9 -5
  55. package/src/components/tooltip.css +14 -8
  56. package/src/themes/valiify-tokens.css +240 -6
  57. package/src/themes/valiify.css +243 -6
  58. package/types/components.d.ts +294 -9
@@ -222,6 +222,151 @@
222
222
  @apply bg-primary;
223
223
  }
224
224
 
225
+ /* Info/Main (0.6.0) — the "channel" group dot on a label Tag. */
226
+ .vd-dot-info {
227
+ @apply bg-info;
228
+ }
229
+
230
+ /* --- Misc palette (0.6.0) --------------------------------------------- */
231
+ /* Categorical colour — a group, a source, a channel — NOT status, which
232
+ stays on the five variants above. Figma defines 18 hues × Dot / Soft / Text
233
+ and draws no Chip variants for them, so they ship as ONE modifier per
234
+ component plus ONE class per hue, not 54 variants:
235
+
236
+ <span class="vd-chip vd-chip-misc vd-misc-teal">…</span>
237
+ <span class="vd-dot vd-dot-sm vd-dot-misc vd-misc-purple"></span>
238
+
239
+ The hue class only sets three custom properties; the -misc modifier reads
240
+ them. The mapping is the one Figma's "Misc colours" boards state: Dot is
241
+ the marker, Soft the chip fill, Text the label on Soft. A -misc modifier
242
+ with no hue class falls back to the neutral treatment rather than
243
+ rendering unstyled. */
244
+
245
+ .vd-chip-misc {
246
+ background-color: var(--misc-soft, var(--color-neutral-soft));
247
+ color: var(--misc-text, var(--color-neutral-content));
248
+ .vd-chip-dot {
249
+ background-color: var(--misc-dot, var(--color-neutral-strong));
250
+ }
251
+ }
252
+
253
+ .vd-badge-misc {
254
+ background-color: var(--misc-soft, var(--color-neutral-soft));
255
+ color: var(--misc-text, var(--color-neutral-content));
256
+ }
257
+
258
+ .vd-dot-misc {
259
+ background-color: var(--misc-dot, var(--color-neutral-strong));
260
+ }
261
+
262
+ .vd-misc-blue {
263
+ --misc-dot: var(--color-misc-blue-dot);
264
+ --misc-soft: var(--color-misc-blue-soft);
265
+ --misc-text: var(--color-misc-blue-text);
266
+ }
267
+
268
+ .vd-misc-indigo {
269
+ --misc-dot: var(--color-misc-indigo-dot);
270
+ --misc-soft: var(--color-misc-indigo-soft);
271
+ --misc-text: var(--color-misc-indigo-text);
272
+ }
273
+
274
+ .vd-misc-violet {
275
+ --misc-dot: var(--color-misc-violet-dot);
276
+ --misc-soft: var(--color-misc-violet-soft);
277
+ --misc-text: var(--color-misc-violet-text);
278
+ }
279
+
280
+ .vd-misc-purple {
281
+ --misc-dot: var(--color-misc-purple-dot);
282
+ --misc-soft: var(--color-misc-purple-soft);
283
+ --misc-text: var(--color-misc-purple-text);
284
+ }
285
+
286
+ .vd-misc-pink {
287
+ --misc-dot: var(--color-misc-pink-dot);
288
+ --misc-soft: var(--color-misc-pink-soft);
289
+ --misc-text: var(--color-misc-pink-text);
290
+ }
291
+
292
+ .vd-misc-rose {
293
+ --misc-dot: var(--color-misc-rose-dot);
294
+ --misc-soft: var(--color-misc-rose-soft);
295
+ --misc-text: var(--color-misc-rose-text);
296
+ }
297
+
298
+ .vd-misc-red {
299
+ --misc-dot: var(--color-misc-red-dot);
300
+ --misc-soft: var(--color-misc-red-soft);
301
+ --misc-text: var(--color-misc-red-text);
302
+ }
303
+
304
+ .vd-misc-orange {
305
+ --misc-dot: var(--color-misc-orange-dot);
306
+ --misc-soft: var(--color-misc-orange-soft);
307
+ --misc-text: var(--color-misc-orange-text);
308
+ }
309
+
310
+ .vd-misc-amber {
311
+ --misc-dot: var(--color-misc-amber-dot);
312
+ --misc-soft: var(--color-misc-amber-soft);
313
+ --misc-text: var(--color-misc-amber-text);
314
+ }
315
+
316
+ .vd-misc-yellow {
317
+ --misc-dot: var(--color-misc-yellow-dot);
318
+ --misc-soft: var(--color-misc-yellow-soft);
319
+ --misc-text: var(--color-misc-yellow-text);
320
+ }
321
+
322
+ .vd-misc-lime {
323
+ --misc-dot: var(--color-misc-lime-dot);
324
+ --misc-soft: var(--color-misc-lime-soft);
325
+ --misc-text: var(--color-misc-lime-text);
326
+ }
327
+
328
+ .vd-misc-green {
329
+ --misc-dot: var(--color-misc-green-dot);
330
+ --misc-soft: var(--color-misc-green-soft);
331
+ --misc-text: var(--color-misc-green-text);
332
+ }
333
+
334
+ .vd-misc-emerald {
335
+ --misc-dot: var(--color-misc-emerald-dot);
336
+ --misc-soft: var(--color-misc-emerald-soft);
337
+ --misc-text: var(--color-misc-emerald-text);
338
+ }
339
+
340
+ .vd-misc-teal {
341
+ --misc-dot: var(--color-misc-teal-dot);
342
+ --misc-soft: var(--color-misc-teal-soft);
343
+ --misc-text: var(--color-misc-teal-text);
344
+ }
345
+
346
+ .vd-misc-cyan {
347
+ --misc-dot: var(--color-misc-cyan-dot);
348
+ --misc-soft: var(--color-misc-cyan-soft);
349
+ --misc-text: var(--color-misc-cyan-text);
350
+ }
351
+
352
+ .vd-misc-sky {
353
+ --misc-dot: var(--color-misc-sky-dot);
354
+ --misc-soft: var(--color-misc-sky-soft);
355
+ --misc-text: var(--color-misc-sky-text);
356
+ }
357
+
358
+ .vd-misc-slate {
359
+ --misc-dot: var(--color-misc-slate-dot);
360
+ --misc-soft: var(--color-misc-slate-soft);
361
+ --misc-text: var(--color-misc-slate-text);
362
+ }
363
+
364
+ .vd-misc-stone {
365
+ --misc-dot: var(--color-misc-stone-dot);
366
+ --misc-soft: var(--color-misc-stone-soft);
367
+ --misc-text: var(--color-misc-stone-text);
368
+ }
369
+
225
370
  /* --- Sizes ----------------------------------------------------------- */
226
371
  /* Rev3 scale (2026-09-29). XS is the default; each explicit class restates
227
372
  its whole size so the classes compose predictably:
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Comment Date
3
+ *
4
+ * The day separator in a comment thread. Extracted from Figma Comment / Date
5
+ * divider (2038:34763) — a single symbol with a `Date` text property.
6
+ *
7
+ * <div class="vd-comment-date" role="separator" aria-label="Thursday, September 11">
8
+ * <hr class="vd-divider" /><span class="vd-comment-date-label">Thu, Sep 11</span><hr class="vd-divider" />
9
+ * </div>
10
+ *
11
+ * BUILT FROM TWO `.vd-divider` RULES, as Divider's own labeled type is — Figma
12
+ * draws two raw rectangles here, not Divider instances. It is not
13
+ * `.vd-divider-labeled` because the two disagree on everything but the idea:
14
+ * this label is 12px Regular in Content/Tertiary (Divider's is Label/Compact,
15
+ * 600 with 0.08em tracking), the gap is 10px, and the row carries its own
16
+ * 14px top and 6px bottom padding.
17
+ *
18
+ * The label is raw 12px Regular in Figma; Supporting/Caption is that size and
19
+ * weight. Figma's rules are 0.5px; `.vd-divider` is 1px, like every rule in
20
+ * the library.
21
+ */
22
+
23
+ @layer components {
24
+ .vd-comment-date {
25
+ @apply flex w-full items-center gap-2.5; /* 10px */
26
+ @apply pt-3.5 pb-1.5; /* 14px / 6px */
27
+ }
28
+
29
+ .vd-comment-date > .vd-divider {
30
+ @apply flex-1;
31
+ }
32
+
33
+ .vd-comment-date-label {
34
+ @apply shrink-0 text-supporting-caption text-content-tertiary; /* 12 / 18 / 400 */
35
+ }
36
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Comment Item
3
+ *
4
+ * One comment in the panel's thread. Extracted from Figma Comment / Item
5
+ * (2038:34772) — a single symbol with Author, Time and Body text properties
6
+ * and a `Show tag` boolean. Figma: "staff avatar (circle), author, time, body,
7
+ * optional section tag."
8
+ *
9
+ * <article class="vd-comment-item">
10
+ * <header class="vd-comment-item-top">
11
+ * <span class="vd-avatar vd-avatar-md">AR</span>
12
+ * <span class="vd-comment-item-author">Alex Reyes</span>
13
+ * <time class="vd-comment-item-time">9:42 AM</time>
14
+ * </header>
15
+ * <div class="vd-comment-item-body">
16
+ * <p class="vd-comment-item-text">Called Marcus. He said…</p>
17
+ * <span class="vd-tag vd-tag-label">…</span>
18
+ * </div>
19
+ * </article>
20
+ *
21
+ * 10px padding-y and a 6px gap. The top row is 8px apart: a round Avatar md
22
+ * (staff are round), the author, the time at the far end. The body is indented
23
+ * 28px — the avatar's 20 plus the gap — with 8px between the text and the tag.
24
+ *
25
+ * THE TYPE IS RAW IN FIGMA (Inter 14 Medium, 14 Regular, 12 Regular, all with
26
+ * an Auto line height and no text style). The library ships the styles those
27
+ * sizes belong to: Body/Default Strong for the author, Body/Default for the
28
+ * text, Supporting/Caption for the time. Designer-list item 88.
29
+ *
30
+ * The section tag is a Tag (Kind=label), so the dot is a Dot — nothing new.
31
+ */
32
+
33
+ @layer components {
34
+ .vd-comment-item {
35
+ @apply flex w-full flex-col gap-1.5 py-2.5; /* 6px, 10px */
36
+ }
37
+
38
+ .vd-comment-item-top {
39
+ @apply flex items-center gap-2; /* 8px */
40
+ }
41
+
42
+ .vd-comment-item-author {
43
+ @apply flex-1 truncate;
44
+ @apply text-body-default-strong text-content-primary; /* 14 / 20 / 500 */
45
+ min-width: 0;
46
+ }
47
+
48
+ .vd-comment-item-time {
49
+ @apply shrink-0 text-supporting-caption text-content-tertiary; /* 12 / 18 / 400 */
50
+ }
51
+
52
+ .vd-comment-item-body {
53
+ @apply flex flex-col items-start gap-2 pl-7; /* 8px, 28px */
54
+ }
55
+
56
+ .vd-comment-item-text {
57
+ @apply text-body-default text-content-primary; /* 14 / 20 / 400 */
58
+ }
59
+ }
@@ -0,0 +1,108 @@
1
+ /**
2
+ * Content Row
3
+ *
4
+ * A collapsed section line in a record: who or what, a one-line summary, a
5
+ * status, and tools that appear on hover beside a chevron that expands the row
6
+ * into its fields. Extracted from Figma Content Row (168:845) — 4 variants
7
+ * across Hover × Expanded, plus Pill Selector, Comment Preview and Ring
8
+ * booleans.
9
+ *
10
+ * <div class="vd-content-row">
11
+ * <p class="vd-content-row-text">
12
+ * <span class="vd-content-row-title">John Smith</span>
13
+ * <span class="vd-content-row-summary">· Jan 1, 1990 · jsmith@gmail.com</span>
14
+ * </p>
15
+ * <span class="vd-field-verification … vd-field-verification-compact vd-content-row-status">…</span>
16
+ * <span class="vd-content-row-actions">
17
+ * <button class="vd-icon-button vd-icon-button-inline vd-content-row-action" aria-label="Edit">…</button>
18
+ * <button class="vd-icon-button vd-icon-button-inline" aria-expanded="false" aria-label="Expand">…#chevron-down…</button>
19
+ * </span>
20
+ * </div>
21
+ *
22
+ * IT SHARES DATA ROW'S COLUMN GRID so a collapsed row and the field rows under
23
+ * it line up: text 536 (Data Row's 200 + 16 + 320), then the status column,
24
+ * then the 78px action group. 48px tall: 12 + the 24px action group + 12 —
25
+ * content-driven, like Data Row. 4px padding-x, 16px gap, 4px radius.
26
+ *
27
+ * THE TEXT IS ONE LINE IN TWO INKS: the title is Body/Default Strong in
28
+ * Content/Primary, the summary Body/Default in Content/Secondary. Figma draws
29
+ * it as one text node with two style runs; it truncates.
30
+ *
31
+ * TOOLS APPEAR ON HOVER AND FOCUS; THE CHEVRON IS ALWAYS THERE. Figma draws the
32
+ * edit and comment Icon Buttons at opacity 0 at rest, exactly as Data Row
33
+ * does, and the same keyboard reasoning applies — `:focus-within` reveals them.
34
+ * The chevron is an ordinary Icon Button and carries `aria-expanded`.
35
+ *
36
+ * EXPANDED DRAWS NOTHING DIFFERENT. The two Expanded variants are identical in
37
+ * the file, down to a #chevron-down that does not turn. The library rotates
38
+ * the glyph of an `aria-expanded="true"` button 180°, as Dropdown Field's
39
+ * chevron does — a decision, designer-list item 81. The fields a row expands
40
+ * into are Data Rows; showing and hiding them is the consumer's.
41
+ *
42
+ * Not shipped: the Pill Selector and Comment Preview boolean slots (hidden in
43
+ * every variant; no drawn state to read).
44
+ */
45
+
46
+ @layer components {
47
+ .vd-content-row {
48
+ @apply flex w-full items-center gap-4; /* 16px */
49
+ @apply px-1 py-3; /* 4px / 12px */
50
+ @apply rounded-tight; /* 4px */
51
+ }
52
+
53
+ .vd-content-row:hover {
54
+ @apply bg-action-subtle;
55
+ }
56
+
57
+ /* --- Parts ------------------------------------------------------------ */
58
+
59
+ .vd-content-row-text {
60
+ @apply w-[536px] shrink-0 truncate;
61
+ @apply text-body-default text-content-secondary; /* 14 / 20 / 400 */
62
+ }
63
+
64
+ .vd-content-row-title {
65
+ @apply text-body-default-strong text-content-primary; /* 14 / 20 / 500 */
66
+ }
67
+
68
+ .vd-content-row-summary {
69
+ @apply text-body-default text-content-secondary;
70
+ }
71
+
72
+ /* Additive, on the Field Verification in the status column. */
73
+ .vd-content-row-status {
74
+ @apply flex-1;
75
+ min-width: 0;
76
+ }
77
+
78
+ /* 24px tall (Height/Control/SM, bound) — the tallest thing in the row. */
79
+ .vd-content-row-actions {
80
+ @apply ml-auto flex h-control-sm shrink-0 items-center justify-end gap-3; /* 12px */
81
+ }
82
+
83
+ /* Additive, on an Icon Button that only shows on hover or focus. */
84
+ .vd-content-row-action {
85
+ @apply opacity-0 transition-opacity duration-150;
86
+ }
87
+
88
+ .vd-content-row:hover .vd-content-row-action,
89
+ .vd-content-row:focus-within .vd-content-row-action {
90
+ @apply opacity-100;
91
+ }
92
+
93
+ /* The disclosure chevron turns when its button is expanded (a decision). */
94
+ .vd-content-row-actions [aria-expanded] .vd-icon {
95
+ @apply transition-transform duration-150;
96
+ }
97
+
98
+ .vd-content-row-actions [aria-expanded="true"] .vd-icon {
99
+ @apply rotate-180;
100
+ }
101
+
102
+ /* --- States ----------------------------------------------------------- */
103
+
104
+ .vd-content-row.vd-with-ring {
105
+ outline: var(--border-micro) solid var(--color-primary);
106
+ outline-offset: 0;
107
+ }
108
+ }
@@ -1,5 +1,25 @@
1
1
  /**
2
- * DataRow Component
2
+ * REDRAWN IN 0.6.0 (re-read 2026-11-19) — A BREAKING RESIZE. The row is 44px
3
+ * (46 with a Sensitive Data value); it was 38. What changed in the file:
4
+ *
5
+ * - Padding 4 / 11 around 22px-tall slots (was 4 / 12.5 in a pinned 38), and
6
+ * the row is TOP-aligned: each slot is a 22px box that centres its own
7
+ * content, so a taller slot grows the row instead of overflowing it.
8
+ * Nothing is pinned — 11 + 22 + 11 = 44, 11 + 24 + 11 = 46.
9
+ * - The value is Body/Default (14/20, was Body/Dense 13/18) in a 320px
10
+ * column (was 400). The label stays Body/Dense in Content/Tertiary.
11
+ * - A Sensitive Data value is 24 tall (2 + the 20px line + 2), which is what
12
+ * makes that row 46.
13
+ * - The status slot nests Field Verification Display=COMPACT — the marker
14
+ * alone, 22 tall — not the 24px inline row with its label.
15
+ * - A new Linked state, for a row tied to the finding open beside it: a
16
+ * 2px Primary/Main stroke on the left edge and no fill.
17
+ * - The actions sit in a right-aligned group with a 12px gap.
18
+ *
19
+ * Everything below this block predates the redraw; where it says 38px,
20
+ * 12.5px or Body/Dense for the value, the list above wins.
21
+ *
22
+ * * DataRow Component
3
23
  *
4
24
  * One labelled field in a review panel: the field name, its value, and its
5
25
  * verification status, with actions that appear on hover. Extracted from Figma
@@ -80,41 +100,65 @@
80
100
 
81
101
  @layer components {
82
102
  .vd-data-row {
83
- /* Layout — 16px (Spacing/16) between columns. */
84
- @apply flex w-full items-center gap-4;
85
- @apply h-[38px] px-1 py-[12.5px]; /* 4px / 12.5px — see the header */
103
+ /* Layout — 16px (Spacing/16) between columns, top-aligned: every slot is
104
+ a 22px box, and the row is 11 + the tallest slot + 11. Not pinned. */
105
+ @apply flex w-full items-start gap-4;
106
+ @apply px-1 py-[11px]; /* 4px / 11px */
86
107
 
87
108
  /* Shape */
88
109
  @apply rounded-tight; /* 4px — Radius/XS */
89
110
  }
90
111
 
91
- /* Figma's Hover axis. The only state the row itself has. */
112
+ /* Figma's Hover axis. A linked row hovers like any other. */
92
113
  .vd-data-row:hover {
93
114
  @apply bg-action-subtle;
94
115
  }
95
116
 
117
+ /* Linked (0.6.0) — the row tied to the open finding: a 2px Primary/Main
118
+ stroke down the left edge and NO fill (decided 2026-11-19; the first draw
119
+ was a Primary/Soft fill with no stroke). Figma authors it as an INSIDE
120
+ stroke, which takes no layout space, so it is an inset shadow here rather
121
+ than a border — a real 2px border would push the label column 2px right
122
+ of every unlinked row. It follows the row's 4px radius, as the stroke
123
+ does. With no tint behind it the label keeps Content/Tertiary. */
124
+ .vd-data-row-linked {
125
+ box-shadow: inset 2px 0 0 var(--color-primary);
126
+ }
127
+
96
128
  /* --- Columns --------------------------------------------------------- */
97
129
 
98
- /* Rev3: Body/Dense (13/18, was Body 2 12.5/12.5), truncating — Figma fixes
130
+ /* Body/Dense (13/18) in a 22px slot — 2 + 18 + 2. Truncating: Figma fixes
99
131
  the label column and clips overflow. */
100
132
  .vd-data-row-field {
101
- @apply w-[200px] shrink-0 truncate;
133
+ @apply w-[200px] shrink-0 truncate py-0.5;
102
134
  @apply text-body-dense text-content-tertiary;
103
135
  }
104
136
 
137
+ /* Body/Default (14/20) since 0.6.0, in a 22px slot — 1 + 20 + 1. 320px
138
+ (was 400). */
105
139
  .vd-data-row-value {
106
- @apply w-[400px] shrink-0;
107
- @apply text-body-dense text-content-primary; /* Rev3: 13 / 18 */
140
+ @apply w-[320px] shrink-0 py-px;
141
+ @apply text-body-default text-content-primary;
142
+ }
143
+
144
+ /* A Sensitive Data value is its own 24px slot (2 + 20 + 2), so the wrapper
145
+ drops its padding and the row becomes 46. Data Row overrides Sensitive
146
+ Data's standalone Caption so the masked value matches the plain values
147
+ beside it — Body/Default since 0.6.0. */
148
+ .vd-data-row-value:has(.vd-sensitive-data) {
149
+ @apply py-0;
150
+ }
151
+
152
+ .vd-data-row-value .vd-sensitive-data {
153
+ @apply py-0.5;
108
154
  }
109
155
 
110
- /* Data Row overrides Sensitive Data's Caption to Body 2 so the masked value
111
- sits on the same baseline as the field label. See the header. */
112
156
  .vd-data-row-value .vd-sensitive-data-value {
113
- @apply text-body-dense; /* Rev3: Figma's Data Row still overrides the
114
- standalone Caption — now to Body/Dense, so value and masked value match */
157
+ @apply text-body-default;
115
158
  }
116
159
 
117
- /* Additive, for the Field Verification slot — Figma stretches it. */
160
+ /* Additive, for the Field Verification slot — Figma stretches it. Pair it
161
+ with `.vd-field-verification-compact`, the 22px form the row nests. */
118
162
  .vd-data-row-status {
119
163
  @apply flex-1;
120
164
  min-width: 0;
@@ -122,10 +166,19 @@
122
166
 
123
167
  /* --- Actions --------------------------------------------------------- */
124
168
 
169
+ /* The trailing group (0.6.0): right-aligned, 12px apart, each action
170
+ centred in a 22px slot. Optional — a lone `.vd-data-row-action` still
171
+ works as a direct child. */
172
+ .vd-data-row-actions {
173
+ @apply ml-auto flex shrink-0 items-center justify-end gap-3; /* 12px */
174
+ min-height: 22px;
175
+ }
176
+
125
177
  /* Laid out but invisible at rest, exactly as Figma draws it. Revealed by
126
- hover AND focus, so a keyboard user can see the control they reached. */
178
+ hover AND focus, so a keyboard user can see the control they reached.
179
+ 2px margin-y centres the 18px Icon Button in the 22px slot. */
127
180
  .vd-data-row-action {
128
- @apply shrink-0 opacity-0;
181
+ @apply my-0.5 shrink-0 opacity-0;
129
182
  @apply transition-opacity duration-150;
130
183
  }
131
184
 
@@ -136,9 +189,8 @@
136
189
 
137
190
  /* --- States ---------------------------------------------------------- */
138
191
 
139
- /* Figma's Ring boolean, hidden by default — 2px Primary/Main, and the only
140
- ring in the library that follows a radius, since the row has one. */
141
- /* Rev3: OUTSIDE, like the rest of the Ring family (was inset). */
192
+ /* Figma's Ring boolean, hidden by default — 2px Primary/Main, OUTSIDE,
193
+ following the row's radius. */
142
194
  .vd-data-row.vd-with-ring {
143
195
  outline: var(--border-micro) solid var(--color-primary);
144
196
  outline-offset: 0;
@@ -188,6 +188,15 @@
188
188
  @apply border-primary;
189
189
  }
190
190
 
191
+ /* The active halo (0.6.0) — 3px Primary/Soft, a 0-blur spread shadow on
192
+ Figma's State=active (see input.css). Unlike the hairline above it is NOT
193
+ guarded against error: Dropdown Field's active+error variants keep both
194
+ the Critical/Main hairline and the Primary/Soft halo. */
195
+ .vd-dropdown-field:focus-within:not(:disabled):not([aria-disabled="true"]),
196
+ .vd-dropdown-field[aria-expanded="true"]:not(:disabled):not([aria-disabled="true"]) {
197
+ box-shadow: 0 0 0 3px var(--color-primary-soft);
198
+ }
199
+
191
200
  /* Error — red hairline. REV3 INVERTED THE PRECEDENCE: error now beats the
192
201
  open/active hairline (Figma's active+error variants keep Critical/Main);
193
202
  the old set let the open ring win. The hover and open/focused rules above
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Entity Header
3
+ *
4
+ * The identity block at the top of a record: an icon tile, the legal name, an
5
+ * entity chip and a line of facts. Extracted from Figma Entity Header
6
+ * (2042:35637) — a single symbol. Figma: "icon tile, legal name, entity chip,
7
+ * DBA · state · owners."
8
+ *
9
+ * <header class="vd-entity-header">
10
+ * <span class="vd-entity-header-tile"><svg class="vd-icon vd-icon-size-18" aria-hidden="true">…</svg></span>
11
+ * <div class="vd-entity-header-info">
12
+ * <h1 class="vd-entity-header-name">Northgate Logistics, Inc.</h1>
13
+ * <div class="vd-entity-header-meta">
14
+ * <span class="vd-tag vd-tag-sm">INC</span>
15
+ * <p class="vd-entity-header-facts">
16
+ * <span>DBA Northgate Trucking</span><span aria-hidden="true">·</span><span>Delaware</span>
17
+ * </p>
18
+ * </div>
19
+ * </div>
20
+ * </header>
21
+ *
22
+ * A row with a 12px gap and 16px of bottom padding (it sits above the tab row).
23
+ * The tile is 34×34, Primary/Soft with a Primary/Main 18px glyph and a 6px
24
+ * radius. The name is Heading/Section (18/24/600); 8px below it, the chip and
25
+ * the facts sit 12px apart; the facts are Body/Default in Content/Secondary,
26
+ * 8px apart, with a literal "·" between them (mark those aria-hidden).
27
+ *
28
+ * The chip is a Tag instance (sm, default) — `.vd-tag vd-tag-sm`. The heading
29
+ * level is the page's call; the class sets the type, not the element.
30
+ * Width is not pinned: Figma's 868 is the sheet's content width.
31
+ */
32
+
33
+ @layer components {
34
+ .vd-entity-header {
35
+ @apply flex w-full items-center gap-3 pb-4; /* 12px, 16px */
36
+ }
37
+
38
+ .vd-entity-header-tile {
39
+ @apply inline-flex size-8.5 shrink-0 items-center justify-center; /* 34px */
40
+ @apply rounded-control; /* 6px */
41
+ @apply bg-primary-soft text-primary;
42
+ }
43
+
44
+ .vd-entity-header-info {
45
+ @apply flex flex-1 flex-col items-start gap-2; /* 8px */
46
+ min-width: 0;
47
+ }
48
+
49
+ .vd-entity-header-name {
50
+ @apply text-heading-section text-content-primary; /* 18 / 24 / 600 */
51
+ }
52
+
53
+ .vd-entity-header-meta {
54
+ @apply flex items-center gap-3; /* 12px */
55
+ }
56
+
57
+ .vd-entity-header-facts {
58
+ @apply flex items-center gap-2; /* 8px */
59
+ @apply text-body-default text-content-secondary; /* 14 / 20 / 400 */
60
+ }
61
+ }