@valiify/dashboard-ui 0.2.1 → 0.5.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 (101) hide show
  1. package/CHANGELOG.md +1025 -12
  2. package/COMPONENTS.md +185 -79
  3. package/GETTING_STARTED.md +138 -38
  4. package/QUICK_REFERENCE.md +48 -30
  5. package/README.md +134 -83
  6. package/TROUBLESHOOTING.md +52 -34
  7. package/class-manifest.json +140 -71
  8. package/design-methodology/dashboard.md +92 -80
  9. package/dist/dashboard-ui.css +1525 -1078
  10. package/dist/index.css +1246 -732
  11. package/package.json +19 -10
  12. package/scripts/codemods/0.5.0-chip-sizes.mjs +437 -0
  13. package/src/build/utilities.css +7 -10
  14. package/src/components/_template.css +12 -8
  15. package/src/components/alert.css +35 -8
  16. package/src/components/avatar.css +42 -30
  17. package/src/components/breadcrumbs.css +39 -22
  18. package/src/components/button.css +84 -14
  19. package/src/components/card.css +2 -2
  20. package/src/components/checkbox.css +16 -11
  21. package/src/components/chip.css +155 -79
  22. package/src/components/composer.css +145 -0
  23. package/src/components/data-row.css +10 -6
  24. package/src/components/divider.css +17 -22
  25. package/src/components/dropdown-field.css +83 -43
  26. package/src/components/dropdown-menu.css +80 -14
  27. package/src/components/field-verification.css +21 -5
  28. package/src/components/filter-segment.css +27 -8
  29. package/src/components/icon-button.css +49 -10
  30. package/src/components/index.css +2 -0
  31. package/src/components/input.css +88 -32
  32. package/src/components/link.css +27 -16
  33. package/src/components/loading-inline.css +15 -21
  34. package/src/components/menu-item.css +149 -49
  35. package/src/components/modal.css +8 -5
  36. package/src/components/navigation-rail.css +67 -31
  37. package/src/components/pagination-item.css +29 -28
  38. package/src/components/pagination.css +9 -14
  39. package/src/components/pill.css +16 -10
  40. package/src/components/progress-bar.css +8 -10
  41. package/src/components/radio-select.css +9 -2
  42. package/src/components/recipient-input.css +119 -0
  43. package/src/components/section-marker.css +5 -5
  44. package/src/components/segment-selector.css +9 -3
  45. package/src/components/sensitive-data.css +7 -5
  46. package/src/components/skeleton.css +18 -6
  47. package/src/components/step.css +15 -4
  48. package/src/components/stepper.css +3 -2
  49. package/src/components/switch.css +7 -0
  50. package/src/components/tabs.css +108 -28
  51. package/src/components/tag.css +156 -51
  52. package/src/components/text-button.css +54 -59
  53. package/src/components/textarea.css +87 -22
  54. package/src/components/toast.css +41 -15
  55. package/src/components/tooltip.css +13 -2
  56. package/src/fonts.css +2 -1
  57. package/src/library.css +1 -1
  58. package/src/reset.css +213 -0
  59. package/src/themes/valiify-tokens.css +101 -126
  60. package/src/themes/valiify.css +258 -157
  61. package/src/utility-surface.css +51 -49
  62. package/types/components.d.ts +142 -24
  63. package/CLAUDE.md +0 -3694
  64. package/examples/README.md +0 -198
  65. package/examples/basic/index.html +0 -155
  66. package/examples/daisyui-starter/README.md +0 -58
  67. package/examples/daisyui-starter/check-no-bleed.mjs +0 -249
  68. package/examples/daisyui-starter/index.html +0 -72
  69. package/examples/daisyui-starter/linked.html +0 -74
  70. package/examples/daisyui-starter/package-lock.json +0 -2221
  71. package/examples/daisyui-starter/package.json +0 -22
  72. package/examples/daisyui-starter/postcss.config.js +0 -1
  73. package/examples/daisyui-starter/src/host.css +0 -14
  74. package/examples/daisyui-starter/src/only-import.css +0 -4
  75. package/examples/daisyui-starter/src/styles.css +0 -36
  76. package/examples/daisyui-starter/tailwind.config.js +0 -13
  77. package/examples/postcss-starter/README.md +0 -47
  78. package/examples/postcss-starter/index.html +0 -54
  79. package/examples/postcss-starter/package.json +0 -19
  80. package/examples/postcss-starter/postcss.config.js +0 -5
  81. package/examples/postcss-starter/src/styles.css +0 -17
  82. package/examples/sveltekit-starter/README.md +0 -32
  83. package/examples/sveltekit-starter/check-scoped-styles.mjs +0 -103
  84. package/examples/sveltekit-starter/package-lock.json +0 -1300
  85. package/examples/sveltekit-starter/package.json +0 -24
  86. package/examples/sveltekit-starter/src/app.css +0 -17
  87. package/examples/sveltekit-starter/src/app.html +0 -11
  88. package/examples/sveltekit-starter/src/lib/GlobalReset.svelte +0 -20
  89. package/examples/sveltekit-starter/src/lib/ScopedRemedy.svelte +0 -27
  90. package/examples/sveltekit-starter/src/lib/ScopedReset.svelte +0 -22
  91. package/examples/sveltekit-starter/src/routes/+layout.svelte +0 -6
  92. package/examples/sveltekit-starter/src/routes/+page.svelte +0 -10
  93. package/examples/sveltekit-starter/svelte.config.js +0 -4
  94. package/examples/sveltekit-starter/vite.config.js +0 -6
  95. package/examples/vite-starter/README.md +0 -125
  96. package/examples/vite-starter/index.html +0 -12
  97. package/examples/vite-starter/package.json +0 -19
  98. package/examples/vite-starter/src/main.js +0 -188
  99. package/examples/vite-starter/src/styles.css +0 -22
  100. package/examples/vite-starter/vite.config.js +0 -6
  101. package/src/themes/valiify-type-prefixed.css +0 -37
@@ -16,7 +16,7 @@
16
16
  * </span>
17
17
  * <h2 class="vd-modal-title">Decline this application?</h2>
18
18
  * </div>
19
- * <button class="vd-icon-button vd-icon-button-lg" aria-label="Close">
19
+ * <button class="vd-icon-button vd-icon-button-md" aria-label="Close">
20
20
  * <svg class="vd-icon vd-icon-size-16" aria-hidden="true"><use href="#x" /></svg>
21
21
  * </button>
22
22
  * </div>
@@ -117,7 +117,7 @@
117
117
  .vd-modal-title {
118
118
  @apply flex-1;
119
119
  min-width: 0;
120
- @apply text-h1; /* 19px / 21.8px / 600 */
120
+ @apply text-heading-page; /* Rev3 Heading/Page: 19 / 24 / 600 (was 21.8 leading) */
121
121
  @apply text-content-primary;
122
122
  }
123
123
 
@@ -129,15 +129,18 @@
129
129
 
130
130
  /* Two different 12px styles, and they are not interchangeable — the line
131
131
  heights differ (18px vs 14px), as do the colours. */
132
+ /* Rev3: subtitle and description BOTH bind Action/Compact (12/16/500) and
133
+ differ only in ink — the old "two 12px styles are not interchangeable"
134
+ distinction (Caption 18px vs Help & Caption 14px) is gone. */
132
135
  .vd-modal-subtitle {
133
136
  @apply w-full;
134
- @apply text-caption; /* 12px / 18px / 400 */
137
+ @apply text-action-compact; /* 12 / 16 / 500 */
135
138
  @apply text-content-secondary;
136
139
  }
137
140
 
138
141
  .vd-modal-description {
139
142
  @apply w-full;
140
- @apply text-help-caption; /* 12px / 14px / 400 */
143
+ @apply text-action-compact; /* 12 / 16 / 500 — same style as the subtitle */
141
144
  @apply text-content-tertiary;
142
145
  }
143
146
 
@@ -154,7 +157,7 @@
154
157
  .vd-modal-context-text {
155
158
  @apply flex-1;
156
159
  min-width: 0;
157
- @apply text-data-xs font-mono; /* 12px / 16.5px / 400, JetBrains Mono */
160
+ @apply text-data-compact font-mono; /* Rev3 Data/Compact: 12 / 16.5 / 400 — same metrics */
158
161
  @apply text-content-primary;
159
162
  }
160
163
 
@@ -9,9 +9,20 @@
9
9
  * .nav-title 46px header — logo tile, product name, switcher + search
10
10
  * .nav-group 26px group header — label, hover chevron; a rule when collapsed
11
11
  * .nav-item 32px row — icon, label, optional badge / count / status dot
12
- * .nav-badge 14px "Beta" pill, slots inside a nav item
12
+ * .nav-badge 16px "Beta" chip (Rev3 — was 14), slots inside a nav item
13
13
  *
14
- * .nav-rail 240px expanded / 60px collapsed container
14
+ * .nav-rail 240px expanded / 60px collapsed container — A REAL COMPONENT
15
+ * SET SINCE REV3 (728:20677, Expanded=yes/no): the 240/60
16
+ * widths and 8px padding this file already shipped are now
17
+ * bound in the file rather than inferred.
18
+ *
19
+ * REV3 TYPE (2026-09-30): item labels and the title's name bind Body/Dense
20
+ * Strong (13/18/500, were Body 1 - Bold); the title's subtitle binds
21
+ * Supporting/Caption (12/18, was 11px Micro L); the group label binds
22
+ * Action/Compact (12/16/500, was 11px Micro L - Bold); the count binds
23
+ * Data/Compact (the same 12/16.5 mono metrics Data xs carried — a pure
24
+ * rename); the badge binds Utility/Badge Count (10/500 mono, was 8.5).
25
+ * All four sets gained Ring booleans, drawn 2px Primary/Main OUTSIDE.
15
26
  *
16
27
  * Collapsing is driven from the RAIL — put `.nav-rail-collapsed` on the
17
28
  * container and every part follows. The per-part `-collapsed` modifiers still
@@ -68,9 +79,10 @@
68
79
  * it — is the only one that makes both states useful at once, but it IS a
69
80
  * reading. Confirm with the designer before relying on `.nav-item-active`.
70
81
  *
71
- * The set also declares a `Beta` axis whose only drawn value is `no`. There is
72
- * no Beta=yes variant; the Beta visual is delivered by the badge slot instead.
73
- * Treated as a dead property and not modelled.
82
+ * The set also declares a `Beta` axis whose only drawn value is `no` — still
83
+ * true in Rev3 (designer-list item 42); the Beta visual is the badge slot.
84
+ * The group's Collapsed axis is likewise drawn IDENTICAL in both values
85
+ * (item 45): the disclosure chevron rotation stays this library's behaviour.
74
86
  * ─────────────────────────────────────────────────────────────────────────────
75
87
  *
76
88
  * Heights are pinned with explicit `height`, per house style: several of these
@@ -191,17 +203,19 @@
191
203
 
192
204
  .vd-nav-title-name {
193
205
  @apply w-full truncate;
194
- @apply text-body-1-bold text-content-primary; /* 13px / 19.5 / 500 */
206
+ @apply text-body-dense-strong text-content-primary; /* Rev3: 13 / 18 / 500 */
195
207
  }
196
208
 
197
209
  .vd-nav-title-subtitle {
198
210
  @apply w-full truncate;
199
- @apply text-micro-l text-content-secondary; /* 11px / normal / 400 */
211
+ @apply text-supporting-caption text-content-secondary; /* Rev3: 12 / 18 — grew from 11 */
200
212
  }
201
213
 
202
- /* 18px hit box around a 14px glyph. Figma also puts 6px padding on this
203
- box, which with a 14px glyph would need 26px — the glyph overflows its own
204
- padded frame in the file. Rendered as an 18px box centring a 14px glyph. */
214
+ /* 18px hit box around a 14px glyph. Rev3 draws BOTH actions (the switcher
215
+ chevron AND a search) as literal Icon Button/inline instances — the same
216
+ 18px box this restates. It stays a class of its own because the title is
217
+ an <a> and a real <button> may not nest inside it; when the title host is
218
+ NOT a link, prefer the real `.vd-icon-button vd-icon-button-inline`. */
205
219
  .vd-nav-title-action {
206
220
  @apply flex size-4.5 shrink-0 items-center justify-center; /* 18px */
207
221
  @apply rounded-control text-secondary; /* Radius/SM, Secondary/Main */
@@ -272,10 +286,11 @@
272
286
  @apply focus-ring;
273
287
  }
274
288
 
275
- /* Style name is "Micro L - Bold" but the file resolves it to Medium / 500,
276
- and the label is NOT uppercase — Figma renders "Analyze" in mixed case. */
289
+ /* Rev3: Action/Compact — mixed case, as Figma renders "Analyze". Still
290
+ Content/Tertiary: 4.26:1 on Frame, the token-wide designer-blocked pair
291
+ (the rail is transparent, so the surface decides). */
277
292
  .vd-nav-group-label {
278
- @apply text-micro-l-bold text-content-tertiary; /* 11px / normal / 500 */
293
+ @apply text-action-compact text-content-tertiary; /* 12 / 16 / 500 */
279
294
  }
280
295
 
281
296
  /* FIGMA SHOWS THE CHEVRON ON HOVER ONLY — absent at rest.
@@ -427,13 +442,14 @@
427
442
 
428
443
  .vd-nav-item-label {
429
444
  @apply flex-1 truncate;
430
- @apply text-body-1-bold; /* 13px / 19.5 / 500 */
445
+ @apply text-body-dense-strong; /* Rev3: 13 / 18 / 500 */
431
446
  }
432
447
 
433
- /* Trailing count — mono, and keeps Content/Tertiary in every state */
448
+ /* Trailing count — mono, and keeps Content/Tertiary in every state. Rev3
449
+ binds Data/Compact, the same 12/16.5 metrics Data xs carried. */
434
450
  .vd-nav-item-count {
435
451
  @apply shrink-0 whitespace-nowrap;
436
- @apply text-data-xs font-mono text-content-tertiary; /* 12px / 16.5 / 400 */
452
+ @apply text-data-compact font-mono text-content-tertiary; /* 12 / 16.5 / 400 */
437
453
  }
438
454
 
439
455
  /* 5px dot, positioned top-right of the centred icon in a collapsed 44x32 row.
@@ -448,7 +464,8 @@
448
464
  the base because an unqualified status dot is informational; the other two
449
465
  say something. */
450
466
  .vd-nav-item-status {
451
- @apply absolute size-1.25 rounded-pill bg-neutral; /* 5px, Neutral/Main */
467
+ /* Rev3 draws it as a Chip dot SM instance — 6px (was 5). */
468
+ @apply absolute size-1.5 rounded-pill bg-neutral; /* 6px, Neutral/Main */
452
469
  top: 6px;
453
470
  left: 27px;
454
471
  }
@@ -463,12 +480,22 @@
463
480
 
464
481
  /* --- Nav Item states ------------------------------------------------ */
465
482
 
466
- /* In every state but rest the label and icon share one colour, so the icon
467
- simply follows the row instead of each state setting it twice. */
483
+ /* In every state but rest the icon follows the row's ink instead of its
484
+ Tertiary rest colour. Split from the row rule since 0.5.0 — the old
485
+ combined selector list painted `bg-action-hover` onto the 16px icon box
486
+ in active/current rows too. */
468
487
  .vd-nav-item:hover:not(:disabled):not([aria-disabled="true"]) .vd-nav-item-icon,
469
488
  .vd-nav-item:active:not(:disabled):not([aria-disabled="true"]) .vd-nav-item-icon,
470
- .vd-nav-item-active .vd-nav-item-icon,
471
- .vd-nav-item[aria-current="page"] .vd-nav-item-icon,
489
+ .vd-nav-item-active .vd-nav-item-icon {
490
+ @apply text-content-primary;
491
+ }
492
+
493
+ /* The current page's icon is Primary/Main like its label — read from the
494
+ Rev3 Passive variant's glyph binding (it was Content/Primary here). */
495
+ .vd-nav-item[aria-current="page"] .vd-nav-item-icon {
496
+ @apply text-primary;
497
+ }
498
+
472
499
  .vd-nav-item:hover:not(:disabled):not([aria-disabled="true"]) {
473
500
  @apply bg-action-hover text-content-primary;
474
501
  }
@@ -537,22 +564,31 @@
537
564
  /* Nav Badge — Figma 724:18701, 2 variants */
538
565
  /* ================================================================== */
539
566
 
540
- /* Figma declares a Size axis of micro / md. The two variants are identical in
541
- every extracted property and render pixel-for-pixel the same — same 29x14
542
- box, same padding, same radius, same text style. No size modifiers are
543
- defined here, because shipping .nav-badge-micro and .nav-badge-md as
544
- synonyms would encode a distinction the design system does not make.
545
- Raised with the designer; add them if the sizes diverge.
546
-
547
- The resting border binds Primary/Disabled, which is an odd token for a
567
+ /* Figma still declares a Size axis of micro / md whose two variants are
568
+ pixel-identical (32x16 both in Rev3 — the old 29x14 pair, regrown). No
569
+ size modifiers, same reasoning as before; on the designer list.
570
+
571
+ The resting border still binds Primary/Disabled — an odd token for a
548
572
  non-disabled element, but it is what the file specifies. */
549
573
  .vd-nav-badge {
550
574
  @apply inline-flex shrink-0 items-center justify-center;
551
- @apply h-3.5 px-1; /* 14px, 4px */
575
+ @apply h-4 px-1; /* Rev3: 16px (was 14), 4px */
552
576
  @apply rounded-micro; /* Radius/Micro 2px */
553
577
  @apply border border-[length:var(--border-thin)] border-primary-disabled;
554
578
  @apply bg-primary-soft text-primary-dark;
555
- @apply text-data-micro-m font-mono; /* 8.5px / normal / 500, JetBrains Mono */
579
+ @apply text-utility-badge-count font-mono; /* Rev3: 10 / 500, JetBrains Mono (was 8.5) */
556
580
  @apply whitespace-nowrap;
557
581
  }
582
+
583
+ /* --- Rings (Rev3 — all four sets gained the boolean) ----------------- */
584
+
585
+ /* 2px Primary/Main aligned OUTSIDE, read from each set's Ring frame —
586
+ the same treatment as Chip/Tag/Button/Tabs (designer-list item 21). */
587
+ .vd-nav-rail.vd-with-ring,
588
+ .vd-nav-title.vd-with-ring,
589
+ .vd-nav-group.vd-with-ring,
590
+ .vd-nav-item.vd-with-ring {
591
+ outline: var(--border-micro) solid var(--color-primary);
592
+ outline-offset: 0;
593
+ }
558
594
  }
@@ -13,9 +13,13 @@
13
13
  * <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#chevron-right" /></svg>
14
14
  * </button>
15
15
  *
16
- * A 32x32 box in every state. Four kinds, three of which take hover and
17
- * pressed; ellipsis takes neither, because Figma draws none — it is a label,
18
- * not a control, so it ships as a `<span>`.
16
+ * A 32x32 box in every state — Height/Control/LG bound on BOTH width and
17
+ * height in Figma (2026-09-24; it was a raw 32 at the morning census and was
18
+ * bound the same day). Applied as `h-control-lg aspect-square`: Tailwind's
19
+ * size-* reads --size-*, not --height-*, so the square is the height token
20
+ * plus aspect-square. Four kinds, three of which take hover and pressed;
21
+ * ellipsis takes neither, because Figma draws none — it is a label, not a
22
+ * control, so it ships as a `<span>`.
19
23
  *
20
24
  * default Surface/Paper + 1px Stroke/Border, 13px mono, Content/Secondary
21
25
  * active Primary/Main fill, Content/Contrast, NO stroke
@@ -65,22 +69,20 @@
65
69
  * is therefore held at Stroke/Border in every state rather than inventing two
66
70
  * alphas; the fill and label carry the state. Also on the designer list.
67
71
  *
68
- * ACTIVE-PRESSED IS THE WORST FIT HERE. Figma's #143d75 is 10.6 from
69
- * Primary/Dark and 36.6 from the Primary/Pressed that ships. Primary/Dark is
70
- * already spent on active-hover, and reusing it would flatten a state Figma
71
- * distinguishes, so the library ramp is kept and the divergence recorded —
72
- * previously only the hover one was.
73
- *
74
- * THE LABEL WEIGHT VARIES BY KIND, which is easy to miss because the size and
75
- * family do not. Figma draws three different JetBrains Mono weights:
76
- *
77
- * default Medium (500)
78
- * active Bold (700)
79
- * ellipsis Regular (400)
80
- *
81
- * None of the three is a named Figma text style, and `--text-data-s` is
82
- * Regular, so the token supplies family and size and each kind steps its own
83
- * weight. An earlier revision of this file shipped Medium for all three.
72
+ * ACTIVE-PRESSED IS THE WORST FIT HERE, and Rev3 kept it raw: #143d75 sits
73
+ * 10.6 from Primary/Dark and 36.6 from the Primary/Pressed that ships — and
74
+ * since the Primary/Pressed -> Dark alias, active-hover and active-pressed
75
+ * are the SAME colour here (both #163a6b), flattening a state Figma
76
+ * distinguishes with #295c9e vs #143d75. Recorded on the designer list with
77
+ * the rest of the untokenised ramp; the library keeps its tokens.
78
+ *
79
+ * REV3 TYPE (2026-09-30): EVERY KIND BINDS Action/Default — 13/18, Inter
80
+ * Medium. The whole JetBrains Mono + per-kind-weight story is GONE from the
81
+ * file: default, active and ellipsis are one style now, and the active
82
+ * cell's old Bold (700) dies with it — it was the library's last Inter-700
83
+ * usage, and it only ever rendered faux-bold (no 700 face is loaded). The
84
+ * ink still varies: default Content/Secondary, active Content/Contrast,
85
+ * ellipsis Content/Tertiary.
84
86
  *
85
87
  * The 4px radius is raw in Figma too, but its value is exactly
86
88
  * `--radius-tight`, so it is mapped rather than hardcoded.
@@ -93,8 +95,8 @@
93
95
 
94
96
  @layer components {
95
97
  .vd-pagination-item {
96
- /* Layout — a fixed 32x32 cell in every state */
97
- @apply inline-flex size-8 shrink-0 items-center justify-center;
98
+ /* Layout — a 32x32 cell in every state: Height/Control/LG, kept square */
99
+ @apply inline-flex h-control-lg aspect-square shrink-0 items-center justify-center;
98
100
 
99
101
  /* Shape. 4px is raw in Figma but equals --radius-tight exactly. */
100
102
  @apply rounded-tight;
@@ -106,10 +108,9 @@
106
108
  /* Colors — default */
107
109
  @apply bg-surface-paper text-content-secondary;
108
110
 
109
- /* Type — 13px JetBrains Mono, Medium for the default kind. Not a named
110
- Figma style, and the WEIGHT VARIES BY KIND (see below), so --text-data-s
111
- supplies family and size and each kind steps the weight itself. */
112
- @apply text-data-s font-mono font-medium;
111
+ /* Type — Rev3: Action/Default (13/18/500, Inter) on every kind. The old
112
+ JetBrains Mono + per-kind weights are gone from the file. */
113
+ @apply text-action-default;
113
114
 
114
115
  /* Interaction */
115
116
  @apply cursor-pointer transition-colors duration-150;
@@ -144,7 +145,8 @@
144
145
  identical to the other kinds, and the fill paints under it. */
145
146
  .vd-pagination-item-active {
146
147
  @apply border-transparent bg-primary text-content-contrast;
147
- @apply font-bold; /* JetBrains Mono Bold — heavier than default's Medium */
148
+ /* Rev3: no weight step — Action/Default like every other kind. The old
149
+ font-bold (700) is deleted; it was faux-bold anyway. */
148
150
  }
149
151
 
150
152
  /* Figma lightens on hover; the library darkens everywhere else. See header. */
@@ -177,8 +179,7 @@
177
179
  Ships as a <span>, so the interactive rules above never apply. */
178
180
  .vd-pagination-item-ellipsis {
179
181
  @apply border-transparent bg-transparent text-content-tertiary;
180
- @apply font-normal; /* JetBrains Mono Regular — lighter than default's Medium */
181
- @apply cursor-default;
182
+ @apply cursor-default; /* Rev3: same Action/Default as the rest — no weight step */
182
183
  }
183
184
 
184
185
  /* --- Disabled (house convention — see header) --------------------------- */
@@ -59,15 +59,10 @@
59
59
  * than the item — `.vd-pagination-item` sets no margin, so cells used outside this
60
60
  * container space themselves.
61
61
  *
62
- * TWO TYPE READINGS ARE RAW, not named Figma styles:
63
- * - `.vd-pagination-summary` is 12px JetBrains Mono Regular, which is exactly
64
- * `--text-data-xs`, so it maps cleanly.
65
- * - `.vd-pagination-status` is 13px Inter Regular with its current page in
66
- * Semi Bold. `--text-body-1` supplies 13px/400 but carries a 19.5px
67
- * line-height where Figma is Auto, and there is no 13px Inter 600 token —
68
- * `--text-body-1-bold` is Medium/500 — so the weight is stepped explicitly.
69
- * Neither difference is visible: the bar's height comes from the 24px
70
- * buttons, not the line box.
62
+ * BOTH TYPE READINGS ARE BOUND since Rev3: the summary is Action/Compact
63
+ * (Inter — the old raw mono reading is gone) and the status Action/Default,
64
+ * with the current page marked by colour only. The bar's height still comes
65
+ * from the 24px buttons, not the line box.
71
66
  */
72
67
 
73
68
  @layer components {
@@ -86,7 +81,7 @@
86
81
  /* "1-20 of 352" */
87
82
  .vd-pagination-summary {
88
83
  @apply shrink-0;
89
- @apply text-data-xs font-mono; /* 12px / 16.5px / 400, JetBrains Mono */
84
+ @apply text-action-compact; /* Rev3: 12 / 16 / 500, Inter — the mono summary is gone */
90
85
  @apply text-content-secondary;
91
86
  }
92
87
 
@@ -95,14 +90,14 @@
95
90
  /* "Page 7 of 18" */
96
91
  .vd-pagination-status {
97
92
  @apply shrink-0;
98
- @apply text-body-1; /* 13px / 400 — Figma's leading is Auto; see the header */
93
+ @apply text-action-default; /* Rev3: 13 / 18 / 500 — was Body 1 with Auto leading */
99
94
  @apply text-content-secondary;
100
95
  }
101
96
 
102
- /* The page number inside the status. Inter Semi Bold in Figma, which no 13px
103
- token carries — --text-body-1-bold is Medium. Stepped explicitly. */
97
+ /* The page number inside the status. Rev3: COLOUR-ONLY — the segments all
98
+ bind Action/Default (Inter Medium); the old Semi Bold step is gone, and
99
+ only Content/Primary vs Content/Secondary marks the current page. */
104
100
  .vd-pagination-status-current {
105
- @apply font-semibold;
106
101
  @apply text-content-primary;
107
102
  }
108
103
  }
@@ -31,12 +31,13 @@
31
31
  * background is `Action/Focused`. It reads like a bug in review. It is what
32
32
  * the design file specifies.
33
33
  *
34
- * "Statecap" is NOT uppercase. Despite the style name, Figma renders the label
35
- * mixed-case with no text-transform. Do not add `uppercase`.
34
+ * The label is mixed-case with no text-transform (Figma renders it that way;
35
+ * the old "Statecap" style name suggested otherwise). Do not add `uppercase`.
36
36
  *
37
- * Height is pinned at 17px. Without a chevron the line box alone would give
38
- * ~15.5px, because `--text-statecap` carries an Auto line height that is
39
- * font-dependent — see CLAUDE.md. Figma is 17px with or without the chevron.
37
+ * Height is pinned at 17px, with or without the chevron. The Rev3 label
38
+ * (Supporting/Caption Strong, 12/18) has a line taller than the content box,
39
+ * but its ink never reaches the frame: measured 2026-10-01, forcing
40
+ * `overflow: hidden` changes zero pixels, so nothing clips.
40
41
  */
41
42
 
42
43
  @layer components {
@@ -56,8 +57,12 @@
56
57
  /* Colors — rest. Yes, rest really is Action/Hover; see the header. */
57
58
  @apply bg-action-hover text-content-secondary;
58
59
 
59
- /* Type — 9.5px / 600, mixed case */
60
- @apply text-statecap;
60
+ /* Type — Rev3 Supporting/Caption Strong: 12 / 18 / 500, mixed case. The
61
+ 18px line exceeds the 13px content box (Figma crams it into a 13px text
62
+ node too), but the ink never reaches the frame: measured 2026-10-01,
63
+ forcing overflow:hidden changes ZERO pixels even for accented capitals
64
+ and descenders (ink at 1.0–15.5 of 17). No divergence needed. */
65
+ @apply text-supporting-caption-strong;
61
66
 
62
67
  /* Interaction */
63
68
  @apply cursor-pointer transition-colors duration-150;
@@ -100,9 +105,10 @@
100
105
  @apply cursor-not-allowed opacity-50;
101
106
  }
102
107
 
103
- /* Ring — Figma boolean, hidden by default. Same 2px inset Primary/Main
104
- treatment as Chip and Avatar. */
108
+ /* Ring — Figma boolean, hidden by default. Rev3: 2px Primary/Main OUTSIDE,
109
+ like the rest of the Ring family (was inset). */
105
110
  .vd-pill.vd-with-ring {
106
- @apply ring-[length:var(--border-micro)] ring-inset ring-primary;
111
+ outline: var(--border-micro) solid var(--color-primary);
112
+ outline-offset: 0;
107
113
  }
108
114
  }
@@ -62,10 +62,8 @@
62
62
  * THE ROOT'S 8px RADIUS IS VESTIGIAL and is not reproduced: Figma sets it on a
63
63
  * frame with no fill and no border, so it clips nothing and paints nothing.
64
64
  *
65
- * THE TYPE IS RAW — Figma binds no text style to any of the three. The value's
66
- * 13px Inter Medium happens to equal `--text-action-l` exactly, but that is a
67
- * Button & Actions token and coupling a progress readout to it would mean a
68
- * button change silently moved this. Written directly instead.
65
+ * THE TYPE IS BOUND since Rev3 (it was raw): title Label/Compact, value
66
+ * Body/Dense Strong, legend Supporting/Caption.
69
67
  */
70
68
 
71
69
  @layer components {
@@ -79,18 +77,19 @@
79
77
  @apply flex w-full items-center justify-between;
80
78
  }
81
79
 
80
+ /* Rev3: Label/Compact (12/16/600, 0.08em) — bound now, and with NO
81
+ text-transform: Figma types the caps into its sample string, so casing is
82
+ the caller's (the library-wide rule; Chip and Divider agree). */
82
83
  .vd-progress-bar-title {
83
84
  @apply shrink-0;
84
- @apply text-[11px] font-medium uppercase;
85
- @apply leading-[normal] tracking-[0.5px];
85
+ @apply text-label-compact;
86
86
  @apply text-content-primary;
87
87
  }
88
88
 
89
89
  /* Colour comes from the scheme — see the bottom of the file. */
90
90
  .vd-progress-bar-value {
91
91
  @apply shrink-0;
92
- @apply text-[13px] font-medium;
93
- @apply leading-[normal];
92
+ @apply text-body-dense-strong; /* Rev3: 13 / 18 / 500 — bound now */
94
93
  @apply text-primary;
95
94
  }
96
95
 
@@ -133,8 +132,7 @@
133
132
  }
134
133
 
135
134
  .vd-progress-bar-legend-label {
136
- @apply text-[12px] font-normal;
137
- @apply leading-[normal];
135
+ @apply text-supporting-caption; /* Rev3: 12 / 18 / 400 — bound now */
138
136
  @apply text-content-secondary;
139
137
  }
140
138
 
@@ -7,7 +7,7 @@
7
7
  * Circle: 15px × 15px
8
8
  * Inner dot (when selected): 8px × 8px
9
9
  * Gap between radio and label: 9px (gap-2.25, Spacing/9)
10
- * Typography: var(--text-caption) for label
10
+ * Typography: Supporting/Caption (12 / 18 / 400) for label
11
11
  *
12
12
  * Usage:
13
13
  * <label class="vd-radio-select">
@@ -85,7 +85,7 @@
85
85
  /* Label text */
86
86
  .vd-radio-select-label {
87
87
  /* Typography from Figma */
88
- @apply text-caption; /* Figma Body Content/Caption (12px/18px/400) */
88
+ @apply text-supporting-caption; /* Rev3: Supporting/Caption — same 12/18/400 metrics */
89
89
  @apply text-content-primary; /* Default text color */
90
90
  @apply select-none; /* Prevent text selection on click */
91
91
  }
@@ -94,4 +94,11 @@
94
94
  .vd-radio-select:has(.vd-radio-select-input:disabled) .vd-radio-select-label {
95
95
  @apply text-content-tertiary; /* Figma Content/Tertiary */
96
96
  }
97
+
98
+ /* Ring — a Figma boolean since Rev3 (the set never had one): 2px
99
+ Primary/Main OUTSIDE around the whole label row, like the family. */
100
+ .vd-radio-select.vd-with-ring {
101
+ outline: var(--border-micro) solid var(--color-primary);
102
+ outline-offset: 0;
103
+ }
97
104
  }
@@ -0,0 +1,119 @@
1
+ /**
2
+ * Recipient Input Component — Figma Recipient Input 1290:4812
3
+ *
4
+ * A "to" field: a bordered shell that holds recipient Tag chips and an inline
5
+ * text input, with a helper line beneath. 32 variants across State x Error x
6
+ * Size (lg / xl) x Filled.
7
+ *
8
+ * THIS IS A FLOOR COMPONENT. Figma binds Height/Control/LG (32) and XL (40)
9
+ * to the Shell's MIN-height with the frame on Hug — applied as
10
+ * `min-h-control-lg` / `min-h-control-xl`. Chips wrap, and the shell grows
11
+ * with the rows. Measured (2026-09-24, after the designer's correction):
12
+ *
13
+ * lg padding 12 / 5, chip gap 4, chips are Tag recipient sm (20)
14
+ * -> empty 32, one row 32 (5 + 20 + 5 + 2), two rows 56
15
+ * xl padding 16 / 3, chip gap 6, chips are Tag recipient lg (32)
16
+ * -> empty 40, one row 40 (3 + 32 + 3 + 2), two rows 78 (3 + 32 + 6 + 32 + 3 + 2)
17
+ *
18
+ * Vertical padding is Figma's (6 / 4) minus the rendered 1px hairline per
19
+ * side — the floor-tier rule — so the rows land on those numbers exactly.
20
+ *
21
+ * The chip size is keyed to the field size, not to a slot property: sm chips
22
+ * at lg, lg chips at xl. The inline input is Micro L (11) at lg and Body 1
23
+ * (13) at xl, placeholder Content/Tertiary (Rev3 binds it there; the family
24
+ * decision matches). Base = lg; there is no md.
25
+ *
26
+ * Structure:
27
+ * <div class="vd-recipient-input vd-recipient-input-xl">
28
+ * <div class="vd-recipient-input-shell">
29
+ * <span class="vd-tag vd-tag-lg vd-tag-recipient">…</span> <!-- Tag lg at xl, Tag sm at lg -->
30
+ * <input class="vd-recipient-input-input" placeholder="Add a recipient" />
31
+ * </div>
32
+ * <p class="vd-recipient-input-helper">Separate addresses with a comma</p>
33
+ * </div>
34
+ */
35
+
36
+ @layer components {
37
+ .vd-recipient-input {
38
+ @apply flex w-full flex-col gap-2; /* 8px — shell to helper */
39
+ }
40
+
41
+ /* --- Shell — a FLOOR of Height/Control/LG (base) / XL ------------------- */
42
+
43
+ .vd-recipient-input-shell {
44
+ /* Layout — chips wrap; lg: 12 / 5 padding, 4px chip gap */
45
+ @apply flex w-full flex-wrap items-center gap-1;
46
+ @apply min-h-control-lg px-3 py-1.25; /* 12 / 5 (Figma 6 − hairline) */
47
+
48
+ /* Shape */
49
+ @apply rounded-control; /* 6px */
50
+ @apply border border-[length:var(--border-thin)] border-stroke-divider;
51
+
52
+ /* Colors */
53
+ @apply bg-surface-paper;
54
+
55
+ /* Type — the inline input inherits this */
56
+ @apply text-supporting-caption text-content-primary; /* 12 at lg (was 11) */
57
+
58
+ /* Interaction */
59
+ @apply cursor-text transition-colors duration-150;
60
+ }
61
+
62
+ .vd-recipient-input-shell:hover:not(:has(:disabled)) {
63
+ @apply border-stroke-border;
64
+ }
65
+
66
+ .vd-recipient-input-shell:focus-within {
67
+ @apply focus-ring;
68
+ }
69
+
70
+ .vd-recipient-input-error .vd-recipient-input-shell {
71
+ @apply border-critical;
72
+ }
73
+
74
+ .vd-recipient-input-shell:has(:disabled) {
75
+ @apply cursor-not-allowed bg-action-subtle;
76
+ }
77
+
78
+ /* --- Inline input ------------------------------------------------------- */
79
+
80
+ .vd-recipient-input-input {
81
+ @apply flex-1;
82
+ min-width: 6ch;
83
+ @apply appearance-none border-none bg-transparent p-0 m-0 outline-none;
84
+ font-size: inherit;
85
+ line-height: inherit;
86
+ @apply text-content-primary;
87
+
88
+ &::placeholder {
89
+ @apply text-content-tertiary; /* Rev3 binding + family decision */
90
+ }
91
+ }
92
+
93
+ .vd-recipient-input-input:disabled {
94
+ @apply cursor-not-allowed;
95
+ }
96
+
97
+ /* --- Sizes (min-height floors) ------------------------------------------ */
98
+
99
+ /* Identical to the bare base — lg IS the default (there is no md). */
100
+ .vd-recipient-input-lg .vd-recipient-input-shell {
101
+ @apply min-h-control-lg gap-1 px-3 py-1.25; /* floor 32; 12 / 5 (Figma 6 − hairline); chip gap 4 */
102
+ @apply text-supporting-caption; /* 12 / 18 (was Micro L 11) */
103
+ }
104
+
105
+ .vd-recipient-input-xl .vd-recipient-input-shell {
106
+ @apply min-h-control-xl gap-1.5 px-4 py-0.75; /* floor 40; 16 / 3 (Figma 4 − hairline); chip gap 6 */
107
+ @apply text-body-dense; /* 13 / 18 / 400 */
108
+ }
109
+
110
+ /* --- Helper -------------------------------------------------------------- */
111
+
112
+ .vd-recipient-input-helper {
113
+ @apply m-0 pl-4 text-supporting-caption text-content-tertiary; /* 12 (was 11), 16px inset */
114
+ }
115
+
116
+ .vd-recipient-input-error .vd-recipient-input-helper {
117
+ @apply text-critical-strong;
118
+ }
119
+ }
@@ -40,10 +40,9 @@
40
40
  * class: with no colour to set it would be an empty rule, so `na` is a bare
41
41
  * `.section-marker` with no child.
42
42
  *
43
- * THE RING IS SQUARE HERE. Every other `.with-ring` in the library sits on a
44
- * rounded element and inherits its radius; this box has no radius, so the ring
45
- * is a 2px square. That falls out of the shared implementation and matches
46
- * Figma, which draws `inset-0` with no corner rounding.
43
+ * THE RING IS SQUARE HERE — and since Rev3 it sits OUTSIDE the box like the
44
+ * rest of the Ring family (it was the file's inset-0 before the re-cut). The
45
+ * box has no radius, so the outline draws square corners.
47
46
  *
48
47
  * ACCESSIBILITY: the marker carries meaning, so it needs an accessible name.
49
48
  * Give the container `role="img"` and an `aria-label`, and leave the inner
@@ -91,6 +90,7 @@
91
90
  Chip, Avatar, Pill, Tag and TextButton — square here, since the box has no
92
91
  radius. */
93
92
  .vd-section-marker.vd-with-ring {
94
- @apply ring-[length:var(--border-micro)] ring-inset ring-primary;
93
+ outline: var(--border-micro) solid var(--color-primary);
94
+ outline-offset: 0;
95
95
  }
96
96
  }