@valiify/dashboard-ui 0.1.0-alpha.1

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 (61) hide show
  1. package/CHANGELOG.md +104 -0
  2. package/LICENSE +21 -0
  3. package/README.md +373 -0
  4. package/dist/index.css +3743 -0
  5. package/package.json +82 -0
  6. package/src/base/index.css +21 -0
  7. package/src/components/ICON-SYSTEM.md +425 -0
  8. package/src/components/_template.css +109 -0
  9. package/src/components/alert.css +156 -0
  10. package/src/components/avatar.css +87 -0
  11. package/src/components/breadcrumbs.css +158 -0
  12. package/src/components/button.css +177 -0
  13. package/src/components/card.css +63 -0
  14. package/src/components/checkbox.css +181 -0
  15. package/src/components/chip.css +234 -0
  16. package/src/components/data-row.css +142 -0
  17. package/src/components/divider.css +143 -0
  18. package/src/components/dropdown-field.css +185 -0
  19. package/src/components/dropdown-menu.css +80 -0
  20. package/src/components/field-verification.css +156 -0
  21. package/src/components/filter-segment.css +163 -0
  22. package/src/components/icon-button.css +83 -0
  23. package/src/components/icon.css +145 -0
  24. package/src/components/index.css +47 -0
  25. package/src/components/input.css +180 -0
  26. package/src/components/link.css +183 -0
  27. package/src/components/loading-indicator.css +184 -0
  28. package/src/components/loading-inline.css +75 -0
  29. package/src/components/menu-item.css +138 -0
  30. package/src/components/modal.css +203 -0
  31. package/src/components/navigation-rail.css +558 -0
  32. package/src/components/pagination-item.css +196 -0
  33. package/src/components/pagination.css +108 -0
  34. package/src/components/pill.css +108 -0
  35. package/src/components/progress-bar.css +157 -0
  36. package/src/components/radio-select.css +97 -0
  37. package/src/components/section-marker.css +96 -0
  38. package/src/components/segment-selector.css +78 -0
  39. package/src/components/sensitive-data.css +77 -0
  40. package/src/components/skeleton.css +184 -0
  41. package/src/components/step.css +106 -0
  42. package/src/components/stepper.css +93 -0
  43. package/src/components/switch.css +99 -0
  44. package/src/components/tabs.css +213 -0
  45. package/src/components/tag.css +133 -0
  46. package/src/components/text-button.css +170 -0
  47. package/src/components/textarea.css +156 -0
  48. package/src/components/toast.css +182 -0
  49. package/src/components/tooltip.css +70 -0
  50. package/src/fonts.css +23 -0
  51. package/src/icons/README.md +297 -0
  52. package/src/icons/custom/help.svg +3 -0
  53. package/src/icons/custom/valiify-logo.svg +6 -0
  54. package/src/icons/icon-list.txt +2036 -0
  55. package/src/icons/sprite.svg +12223 -0
  56. package/src/index.css +35 -0
  57. package/src/library.css +34 -0
  58. package/src/themes/valiify.css +319 -0
  59. package/src/utilities/index.css +35 -0
  60. package/types/components.d.ts +630 -0
  61. package/types/index.d.ts +15 -0
@@ -0,0 +1,143 @@
1
+ /**
2
+ * Divider Component
3
+ *
4
+ * Content separator for visual breaks between sections. Extracted from Figma
5
+ * Divider (880:31270) — 3 variants on a single `Type` axis.
6
+ *
7
+ * Usage — simple:
8
+ * <hr class="divider" />
9
+ *
10
+ * Usage — labeled:
11
+ * <div class="divider-labeled">
12
+ * <hr class="divider" />
13
+ * <span class="divider-label">Beneficial owners</span>
14
+ * <hr class="divider" />
15
+ * </div>
16
+ *
17
+ * Usage — metadata:
18
+ * <div class="divider-metadata">
19
+ * <span class="divider-metadata-item">
20
+ * <span class="divider-metadata-key">Updated</span>
21
+ * <span class="divider-metadata-value font-mono">Jul 17</span>
22
+ * </span>
23
+ * <span class="divider-metadata-separator"></span>
24
+ * <span class="divider-metadata-item">
25
+ * <span class="divider-metadata-key">Reviewer</span>
26
+ * <span class="divider-metadata-value">M. Carden</span>
27
+ * </span>
28
+ * </div>
29
+ *
30
+ * THE THREE TYPES ARE STRUCTURALLY INCOMPATIBLE, so they are not modifiers of
31
+ * one base. `simple` is a single element; `labeled` and `metadata` are flex rows
32
+ * with children. `.divider-labeled` and `.divider-metadata` therefore stand
33
+ * alone and do NOT take `.divider`, the same shape as `.link-inline`.
34
+ *
35
+ * `.divider` IS THE SIMPLE TYPE. That is a deliberate departure: Figma's default
36
+ * variant is `labeled`, but a bare `.divider` cannot render it — labeled needs
37
+ * three children. Naming the plainest form after the component is the only
38
+ * reading that works, and it makes the reuse below possible.
39
+ *
40
+ * LABELED IS BUILT FROM TWO `.divider`s, which is exactly how Figma models it:
41
+ * the variant contains two Line children flanking the text. They flex to fill,
42
+ * so the label stays centred whatever the container width.
43
+ *
44
+ * TWO DIFFERENT STROKE TOKENS, and they are easy to conflate:
45
+ * the horizontal rules `Stroke/Divider` rgba(20,20,40,0.08)
46
+ * metadata's vertical bars `Stroke/Border` rgba(20,20,40,0.13)
47
+ * The vertical separators really are the heavier of the two.
48
+ *
49
+ * THE RULES ARE BACKGROUNDS, NOT BORDERS. Figma draws them as 1px lines on
50
+ * zero-height frames; here they are a 1px box with a background, which sidesteps
51
+ * the border-box trap entirely — nothing in this component gains height from a
52
+ * hairline, so no height needs pinning.
53
+ *
54
+ * NO TEXT STYLE IS BOUND ANYWHERE IN THIS COMPONENT, on either type — verified,
55
+ * `get_variable_defs(880:31253)` returns only Stroke/Line, Stroke/Divider,
56
+ * Content/Tertiary and Spacing/16. An earlier revision claimed the labeled type
57
+ * was "byte-for-byte Label S Sans - Bold"; its VALUES match that style
58
+ * (10px/12px/600/0.1em) but nothing binds it, and the distinction matters
59
+ * because of the casing below.
60
+ *
61
+ * CASING IS THE CONSUMER'S, and this is a deliberate reversal. The label used
62
+ * `type-label-s-bold`, whose utility form adds `text-transform: uppercase` —
63
+ * but Figma applies no transform: the caps are typed into the sample string,
64
+ * whose node is literally named "BENEFICIAL OWNERS". Forcing them meant a label
65
+ * passed as "Beneficial owners" came back shouted. It now uses
66
+ * `text-label-s-bold`, which carries the same size, weight and tracking without
67
+ * imposing case.
68
+ *
69
+ * This also settles a question the library had answered two ways: Chip left
70
+ * casing alone for exactly this reason — typed caps and a transform are
71
+ * indistinguishable through the API — while this component imposed it. Both now
72
+ * leave it to the caller.
73
+ *
74
+ * THE METADATA TYPE IS ALSO RAW: keys are 12px Inter Regular and values 12px
75
+ * Inter Medium, both with Auto leading, so `--text-caption` is the wrong fit
76
+ * despite matching the size — its 18px line-height would make the row 18px
77
+ * where Figma is 16.
78
+ *
79
+ * MONO IS A CALL-SITE CHOICE. Figma's sample renders its date value in JetBrains
80
+ * Mono Medium while the other two values are Inter Medium. That is an instance
81
+ * override for data, not a rule of the component, so `.divider-metadata-value`
82
+ * stays Inter and you add `font-mono` where the value is data.
83
+ */
84
+
85
+ @layer components {
86
+ /* Type=simple, and the rule used inside Type=labeled. Works on an <hr>, which
87
+ needs its default border removed. */
88
+ .divider {
89
+ @apply w-full border-0;
90
+ @apply h-px bg-stroke-divider;
91
+ @apply m-0;
92
+ }
93
+
94
+ /* --- Type = labeled ----------------------------------------------------- */
95
+
96
+ .divider-labeled {
97
+ @apply flex w-full items-center gap-4; /* 16px */
98
+ }
99
+
100
+ /* The flanking rules fill whatever is left, keeping the label centred. */
101
+ .divider-labeled > .divider {
102
+ @apply flex-1;
103
+ min-width: 0;
104
+ }
105
+
106
+ /* Matches Label S Sans - Bold's VALUES; Figma binds no style — see the header.
107
+ `text-label-s-bold`, not `type-label-s-bold`: the utility form adds
108
+ `text-transform: uppercase`, which Figma does not apply. */
109
+ .divider-label {
110
+ @apply shrink-0;
111
+ @apply text-label-s-bold; /* 10px / 12px / 600 / 0.1em */
112
+ @apply text-content-tertiary;
113
+ }
114
+
115
+ /* --- Type = metadata ---------------------------------------------------- */
116
+
117
+ .divider-metadata {
118
+ @apply flex items-center gap-4; /* 16px */
119
+ }
120
+
121
+ .divider-metadata-item {
122
+ @apply inline-flex shrink-0 items-center gap-1.5; /* 6px */
123
+ }
124
+
125
+ /* Raw 12px type with Auto leading — see the header on why not --text-caption. */
126
+ .divider-metadata-key {
127
+ @apply text-[12px] font-normal;
128
+ @apply leading-[normal]; /* Figma Auto — NOT Tailwind's leading-normal (1.5) */
129
+ @apply text-content-tertiary;
130
+ }
131
+
132
+ .divider-metadata-value {
133
+ @apply text-[12px] font-medium;
134
+ @apply leading-[normal];
135
+ @apply text-content-primary;
136
+ }
137
+
138
+ /* Stroke/BORDER here, heavier than the horizontal rules. */
139
+ .divider-metadata-separator {
140
+ @apply h-4 w-px shrink-0; /* 16px tall */
141
+ @apply bg-stroke-border;
142
+ }
143
+ }
@@ -0,0 +1,185 @@
1
+ /**
2
+ * Dropdown Field Component
3
+ *
4
+ * Dropdown select field for choosing from a list of options. Supports avatar
5
+ * and left icon, with interaction states across 3 sizes.
6
+ * Extracted from Figma Dropdown Field Container (854:24966) — 36 variants
7
+ * (state × filled × size × error).
8
+ *
9
+ * Structure — mirrors the Input component:
10
+ * <div class="dropdown-field-container">
11
+ * <div class="dropdown-field-label">…</div> <!-- Optional -->
12
+ * <div class="dropdown"> <!-- Positioning -->
13
+ * <button class="dropdown-field" aria-expanded="false" aria-haspopup="listbox">
14
+ * <span class="avatar avatar-sm">NC</span> <!-- Optional -->
15
+ * <svg class="dropdown-field-icon icon icon-size-14">…</svg> <!-- Optional -->
16
+ * <span class="dropdown-field-placeholder">Select</span>
17
+ * <svg class="dropdown-field-chevron icon icon-size-14">
18
+ * <use href="#chevron-down" />
19
+ * </svg>
20
+ * </button>
21
+ * <div class="dropdown-panel" hidden>
22
+ * <div class="dropdown-menu" role="listbox">…</div>
23
+ * </div>
24
+ * </div>
25
+ * <div class="dropdown-field-error-message">…</div> <!-- Optional -->
26
+ * </div>
27
+ *
28
+ * `.dropdown` / `.dropdown-panel` live in dropdown-menu.css.
29
+ *
30
+ * Open state is driven by `aria-expanded="true"` on the trigger: it takes the
31
+ * focus ring and rotates the chevron 180°. Toggling the attribute (and the
32
+ * panel's `hidden`) is the consumer's job — this library ships no JavaScript.
33
+ *
34
+ * Heights are 35 / 29 / 25px (lg / md / sm), matching Input exactly so the two
35
+ * field types line up in a form row.
36
+ *
37
+ * They are pinned with an explicit `height`, not `min-height`, for two reasons:
38
+ * the sm line box comes from an Auto line height (font-dependent — see
39
+ * CLAUDE.md), and Chrome rounds the 0.5px `--border-thin` hairline up to a
40
+ * full 1px, which would otherwise push every field 1-2px past its Figma frame.
41
+ * Figma draws its stroke inside the frame, so the border must not add height.
42
+ * This follows the same precedent as button.css.
43
+ */
44
+
45
+ @layer components {
46
+ /* --- Container ------------------------------------------------------ */
47
+
48
+ .dropdown-field-container {
49
+ @apply flex w-full flex-col items-start;
50
+ }
51
+
52
+ /* --- Label ---------------------------------------------------------- */
53
+
54
+ .dropdown-field-label {
55
+ @apply flex w-full items-center pb-1.5; /* 6px */
56
+ @apply text-[10px] font-semibold uppercase leading-[12px] tracking-[1px];
57
+ @apply text-content-tertiary;
58
+ }
59
+
60
+ .dropdown-field-label > span {
61
+ @apply flex-1;
62
+ }
63
+
64
+ /* Note: help button uses .icon-button .icon-button-xs from icon-button.css */
65
+
66
+ /* --- Trigger (defaults to lg) --------------------------------------- */
67
+
68
+ .dropdown-field {
69
+ /* Layout */
70
+ @apply flex w-full items-center gap-2; /* 8px */
71
+ @apply px-3 py-1.75; /* 12px / 7px */
72
+ @apply h-[35px];
73
+
74
+ /* Shape */
75
+ @apply rounded-control; /* 6px */
76
+ @apply border border-[length:var(--border-thin)] border-stroke-divider;
77
+
78
+ /* Reset so the class works on button / div alike */
79
+ @apply appearance-none text-left;
80
+
81
+ /* Colors */
82
+ @apply bg-surface-paper;
83
+
84
+ /* Type */
85
+ @apply text-body-1; /* 13px / 19.5px / 400 */
86
+
87
+ /* Interaction */
88
+ @apply cursor-pointer transition-colors duration-150;
89
+ }
90
+
91
+ /* --- Parts ---------------------------------------------------------- */
92
+
93
+ /* Chosen value */
94
+ .dropdown-field-value {
95
+ @apply flex-1 truncate text-content-primary;
96
+ min-width: 0;
97
+ }
98
+
99
+ /* Nothing chosen yet */
100
+ .dropdown-field-placeholder {
101
+ @apply flex-1 truncate text-content-faint;
102
+ min-width: 0;
103
+ }
104
+
105
+ /* Leading icon and trailing chevron — 14px at every size */
106
+ .dropdown-field-icon,
107
+ .dropdown-field-chevron {
108
+ @apply shrink-0 text-content-secondary;
109
+ }
110
+
111
+ .dropdown-field-chevron {
112
+ @apply transition-transform duration-150;
113
+ }
114
+
115
+ /* --- Sizes ----------------------------------------------------------- */
116
+
117
+ .dropdown-field-sm {
118
+ @apply gap-1.5 px-2 py-1.25; /* 6px / 8px / 5px */
119
+ @apply h-[25px];
120
+ @apply text-micro-l; /* 11px / normal / 400 */
121
+ }
122
+
123
+ .dropdown-field-md {
124
+ @apply gap-2 px-3 py-1.75; /* 8px / 12px / 7px */
125
+ @apply h-[29px];
126
+ @apply text-body-2; /* 12.5px / 12.5px / 400 */
127
+ }
128
+
129
+ .dropdown-field-lg {
130
+ @apply gap-2 px-3 py-1.75; /* same as default */
131
+ @apply h-[35px];
132
+ @apply text-body-1;
133
+ }
134
+
135
+ /* --- Background Variants ---------------------------------------------- */
136
+ /* Matches Input and Textarea. The Dropdown Field Container in Figma has no
137
+ BG property yet — this mirrors the Text Input Container's White/Neutral
138
+ pair so the three field types stay interchangeable in a form. */
139
+
140
+ .dropdown-field-bg-neutral {
141
+ @apply bg-surface-card; /* Surface/Card #fafafb */
142
+ }
143
+
144
+ /* --- States ---------------------------------------------------------- */
145
+
146
+ .dropdown-field:hover:not(:disabled):not([aria-disabled="true"]) {
147
+ @apply border-stroke-border;
148
+ }
149
+
150
+ .dropdown-field:focus-visible {
151
+ @apply focus-ring;
152
+ }
153
+
154
+ /* Error — red hairline. The open ring deliberately wins over it, matching
155
+ the active + error variants in Figma. */
156
+ .dropdown-field.dropdown-field-error {
157
+ @apply border-critical;
158
+ }
159
+
160
+ /* Open */
161
+ .dropdown-field[aria-expanded="true"] {
162
+ @apply focus-ring;
163
+ }
164
+
165
+ .dropdown-field[aria-expanded="true"] .dropdown-field-chevron {
166
+ @apply rotate-180;
167
+ }
168
+
169
+ /* Only the fill changes — the border is left alone so a disabled field in
170
+ error still shows its crimson hairline, as Figma's disabled + error
171
+ variants do. Hover is already excluded via :not(:disabled) above, so no
172
+ border reset is needed here. */
173
+ .dropdown-field:disabled,
174
+ .dropdown-field[aria-disabled="true"] {
175
+ @apply cursor-not-allowed bg-action-subtle;
176
+ }
177
+
178
+ /* --- Error Message ---------------------------------------------------- */
179
+
180
+ .dropdown-field-error-message {
181
+ @apply flex w-full items-center pt-1.5; /* 6px */
182
+ @apply text-[11px] font-normal leading-[normal];
183
+ @apply text-critical-strong;
184
+ }
185
+ }
@@ -0,0 +1,80 @@
1
+ /**
2
+ * Dropdown Menu Component
3
+ *
4
+ * Dropdown menu panel containing a vertical list of menu rows. Use as the
5
+ * overlay panel for dropdown triggers.
6
+ * Extracted from Figma Dropdown Menu (139:798).
7
+ *
8
+ * Pairs with the Menu Item component — rows stretch to the panel width on
9
+ * their own, so no extra width class is needed on each row.
10
+ *
11
+ * Structure:
12
+ * <div class="dropdown-menu" role="menu">
13
+ * <button class="menu-item" role="menuitem">…</button>
14
+ * <div class="dropdown-menu-divider"></div>
15
+ * <button class="menu-item" role="menuitem">…</button>
16
+ * </div>
17
+ *
18
+ * Positioning is the consumer's job — this component only styles the panel.
19
+ */
20
+
21
+ @layer components {
22
+ .dropdown-menu {
23
+ /* Layout */
24
+ @apply flex flex-col items-start;
25
+ @apply p-1; /* 4px */
26
+ @apply min-w-[200px];
27
+
28
+ /* Shape */
29
+ @apply rounded-surface; /* 8px */
30
+ @apply border border-[length:var(--border-thin)] border-stroke-divider;
31
+
32
+ /* Colors */
33
+ @apply bg-surface-paper;
34
+
35
+ /* Elevation */
36
+ @apply shadow-panel;
37
+ }
38
+
39
+ /* --- Parts ---------------------------------------------------------- */
40
+
41
+ /* NOT in Figma yet — composed from existing tokens for grouped menus.
42
+ Confirm the treatment with the designer before relying on it. */
43
+ /* `border-[length:…]` sets ALL four sides, so it cannot be combined with
44
+ `border-t` — the side-specific `border-t-[length:…]` is required here. */
45
+ .dropdown-menu-divider {
46
+ @apply my-1 w-full;
47
+ @apply border-t border-t-[length:var(--border-thin)] border-stroke-divider;
48
+ }
49
+
50
+ /* --- Positioning helpers --------------------------------------------- */
51
+ /* Wrap a trigger (Button, DropdownField, …) and a panel to anchor the menu
52
+ below the trigger. The library ships no JavaScript — open and close by
53
+ toggling `hidden` on .dropdown-panel and `aria-expanded` on the trigger. */
54
+
55
+ .dropdown {
56
+ @apply relative w-full;
57
+ }
58
+
59
+ /* No `display` is declared here on purpose, so the native `hidden`
60
+ attribute keeps working. The explicit guard below survives resets and
61
+ any consumer utility that would otherwise re-introduce a display value. */
62
+ .dropdown-panel {
63
+ @apply absolute left-0 right-0 top-full z-50 mt-1;
64
+ }
65
+
66
+ .dropdown-panel[hidden] {
67
+ display: none;
68
+ }
69
+
70
+ /* Panel stretches to the trigger, but never below the menu's own minimum */
71
+ .dropdown-panel > .dropdown-menu {
72
+ @apply w-full;
73
+ }
74
+
75
+ /* --- States ---------------------------------------------------------- */
76
+
77
+ .dropdown-menu:focus-visible {
78
+ @apply focus-ring;
79
+ }
80
+ }
@@ -0,0 +1,156 @@
1
+ /**
2
+ * Field Verification Component
3
+ *
4
+ * Inline field-level verification indicator. Extracted from Figma Field
5
+ * Verification (142:350) — 5 variants on a single `State` axis, plus a Ring
6
+ * boolean.
7
+ *
8
+ * Usage — an inline row:
9
+ * <span class="field-verification field-verification-verified">
10
+ * <span class="section-marker section-marker-approve">
11
+ * <svg class="icon icon-size-14" aria-hidden="true"><use href="#check" /></svg>
12
+ * </span>
13
+ * <span class="field-verification-label">Matches X</span>
14
+ * </span>
15
+ *
16
+ * Usage — the expanded mismatch:
17
+ * <span class="field-verification field-verification-mismatch">
18
+ * <svg class="field-verification-icon icon icon-size-15" aria-hidden="true">
19
+ * <use href="#triangle-alert" />
20
+ * </svg>
21
+ * <span class="field-verification-details">
22
+ * <span class="field-verification-label">Does not match KYC</span>
23
+ * <span class="field-verification-detail">Reported: 04/12/1988</span>
24
+ * <span class="field-verification-action">
25
+ * Review discrepancy
26
+ * <svg class="icon icon-size-15" aria-hidden="true"><use href="#arrow-right" /></svg>
27
+ * </span>
28
+ * </span>
29
+ * </span>
30
+ *
31
+ * FIVE STATES, FOUR OF WHICH ARE ONE-LINE ROWS and one of which is a stacked
32
+ * panel. What each draws, all measured from the Figma render rather than
33
+ * assumed, because Figma flattens the glyphs to vectors:
34
+ *
35
+ * verified Section Marker, 14px #check Approved/Main icon,
36
+ * Content/Tertiary label
37
+ * pending Section Marker, 14px #circle Content/Tertiary throughout
38
+ * none Section Marker, 14px #minus Content/Tertiary, no label
39
+ * mismatch (preview) bare 15px #triangle-alert Critical/Main throughout
40
+ * mismatch (details) same icon + a stacked block Critical/Main + one mono line
41
+ *
42
+ * THREE OF THE FIVE ICONS ARE SECTION MARKER INSTANCES. Figma nests a 16x16
43
+ * instance at y=1 for verified, pending AND none — confirmed from the node
44
+ * metadata, where each is an `<instance>` rather than a drawn shape, and
45
+ * pending's label starts at x=23 (16 + the 7px gap). Only mismatch uses a bare
46
+ * 15px glyph, in a 15x18 frame.
47
+ *
48
+ * That 16px box is load-bearing: dropping it for a bare 14px icon shifts the
49
+ * label 2px left and misaligns pending and none against verified in a column.
50
+ *
51
+ * Only the COLOUR differs — pending and none bind `Content/Tertiary` where
52
+ * Section Marker's own `unverified` binds `Secondary/Main`, so the status
53
+ * classes here override it. Same structure, different token.
54
+ *
55
+ * `State=none` IS A #minus GLYPH, not a rule and not a hyphen character. An
56
+ * earlier revision built it as a 10x1px bar, reasoning from the `Spacing/10`
57
+ * and `Spacing/1` bindings — but `Spacing/10` appears in pending and mismatch
58
+ * too, so it was never none-specific. The node is an instance, and a pixel
59
+ * trace of the render gives 9.0 x 1px, which is a 14px Lucide `minus`
60
+ * (9.33 x 1.17), not a 10px rect.
61
+ *
62
+ * THE EXPANDED STATE ALIGNS TO THE TOP while the rows align to the middle. That
63
+ * is one declaration, driven off the presence of the details block with `:has()`
64
+ * rather than an extra modifier class the caller has to remember.
65
+ *
66
+ * THE OUTER WIDTHS ARE NOT PINNED — Figma's 83 / 111 / 16 / 159px are its
67
+ * sample strings and this sits inline beside a field value, so it hugs.
68
+ *
69
+ * THE 137px DETAILS COLUMN IS DIFFERENT, and is a known departure: Figma
70
+ * authors it as a fixed width, which is why its mono line wraps to two rows
71
+ * (137x33). Left unpinned here so the block adapts to its container, at the
72
+ * cost of that line running on where Figma wraps it.
73
+ *
74
+ * The mismatch action row is NOT a Text Button. It looks like one, but Figma
75
+ * draws plain text plus an arrow rather than an instance, and its colour is
76
+ * Critical/Main where every Text Button type is Content or Primary. Reproduced
77
+ * as its own part; raised with the designer.
78
+ */
79
+
80
+ @layer components {
81
+ .field-verification {
82
+ @apply inline-flex items-center gap-1.75; /* 7px */
83
+ }
84
+
85
+ /* The stacked variant tops-aligns its icon; the one-line rows centre theirs. */
86
+ .field-verification:has(.field-verification-details) {
87
+ @apply items-start;
88
+ }
89
+
90
+ /* --- Parts -------------------------------------------------------------- */
91
+
92
+ /* The mismatch slot only — verified, pending and none use `.section-marker`,
93
+ which brings its own 16px box. Figma frames this glyph 15x18 and centres it
94
+ on the first line, so the BOX is what aligns, not the glyph; without the
95
+ height the expanded state sits 1.5px high. */
96
+ .field-verification-icon {
97
+ @apply inline-flex h-[18px] shrink-0 items-center justify-center;
98
+ }
99
+
100
+ .field-verification-label {
101
+ @apply text-caption; /* 12px / 18px / 400 */
102
+ }
103
+
104
+ /* --- Expanded (State=mismatch - details) -------------------------------- */
105
+
106
+ .field-verification-details {
107
+ @apply flex flex-col items-start gap-1; /* 4px */
108
+ min-width: 0;
109
+ }
110
+
111
+ /* Data/Data xs needs font-mono — --text-* carries no family. See CLAUDE.md. */
112
+ .field-verification-detail {
113
+ @apply text-data-xs font-mono; /* 12px / 16.5px / 400, JetBrains Mono */
114
+ @apply text-content-secondary;
115
+ }
116
+
117
+ /* Plain text plus an arrow, not a Text Button instance. See the header. */
118
+ .field-verification-action {
119
+ @apply inline-flex items-center gap-1.75; /* 7px */
120
+ @apply text-caption; /* 12px / 18px / 400 */
121
+ @apply cursor-pointer;
122
+ }
123
+
124
+ /* --- States ------------------------------------------------------------- */
125
+
126
+ /* verified: the only state whose icon and label differ in colour. */
127
+ .field-verification-verified {
128
+ @apply text-content-tertiary;
129
+ }
130
+ .field-verification-verified .field-verification-icon {
131
+ @apply text-approved;
132
+ }
133
+
134
+ /* pending and none: Section Marker instances like verified, but bound to
135
+ Content/Tertiary where Section Marker's own `unverified` is Secondary/Main.
136
+ The colour cascades into the nested `.section-marker`, which sets none of
137
+ its own without a status class. */
138
+ .field-verification-pending,
139
+ .field-verification-none {
140
+ @apply text-content-tertiary;
141
+ }
142
+
143
+ /* mismatch: Critical/Main throughout, except the mono detail line, which
144
+ stays Content/Secondary. */
145
+ .field-verification-mismatch {
146
+ @apply text-critical;
147
+ }
148
+
149
+ /* --- Ring --------------------------------------------------------------- */
150
+
151
+ /* Figma boolean, hidden by default. Square, as on Section Marker — this box
152
+ has no radius either. */
153
+ .field-verification.with-ring {
154
+ @apply ring-[length:var(--border-micro)] ring-inset ring-primary;
155
+ }
156
+ }