@valiify/dashboard-ui 0.1.2 → 0.2.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 (93) hide show
  1. package/CHANGELOG.md +493 -4
  2. package/CLAUDE.md +884 -768
  3. package/COMPONENTS.md +520 -520
  4. package/GETTING_STARTED.md +63 -14
  5. package/QUICK_REFERENCE.md +22 -22
  6. package/README.md +45 -6
  7. package/TROUBLESHOOTING.md +46 -6
  8. package/class-manifest.json +664 -0
  9. package/design-methodology/dashboard.md +496 -0
  10. package/dist/dashboard-ui.css +4891 -0
  11. package/dist/index.css +502 -502
  12. package/examples/README.md +42 -0
  13. package/examples/basic/index.html +8 -8
  14. package/examples/daisyui-starter/README.md +58 -0
  15. package/examples/daisyui-starter/check-no-bleed.mjs +249 -0
  16. package/examples/daisyui-starter/index.html +72 -0
  17. package/examples/daisyui-starter/linked.html +74 -0
  18. package/examples/daisyui-starter/package-lock.json +2221 -0
  19. package/examples/daisyui-starter/package.json +22 -0
  20. package/examples/daisyui-starter/postcss.config.js +1 -0
  21. package/examples/daisyui-starter/src/host.css +14 -0
  22. package/examples/daisyui-starter/src/only-import.css +4 -0
  23. package/examples/daisyui-starter/src/styles.css +36 -0
  24. package/examples/daisyui-starter/tailwind.config.js +13 -0
  25. package/examples/postcss-starter/index.html +8 -8
  26. package/examples/postcss-starter/package.json +1 -1
  27. package/examples/sveltekit-starter/README.md +32 -0
  28. package/examples/sveltekit-starter/check-scoped-styles.mjs +103 -0
  29. package/examples/sveltekit-starter/package-lock.json +1300 -0
  30. package/examples/sveltekit-starter/package.json +24 -0
  31. package/examples/sveltekit-starter/src/app.css +17 -0
  32. package/examples/sveltekit-starter/src/app.html +11 -0
  33. package/examples/sveltekit-starter/src/lib/GlobalReset.svelte +20 -0
  34. package/examples/sveltekit-starter/src/lib/ScopedRemedy.svelte +27 -0
  35. package/examples/sveltekit-starter/src/lib/ScopedReset.svelte +22 -0
  36. package/examples/sveltekit-starter/src/routes/+layout.svelte +6 -0
  37. package/examples/sveltekit-starter/src/routes/+page.svelte +10 -0
  38. package/examples/sveltekit-starter/svelte.config.js +4 -0
  39. package/examples/sveltekit-starter/vite.config.js +6 -0
  40. package/examples/vite-starter/README.md +4 -4
  41. package/examples/vite-starter/package.json +1 -1
  42. package/examples/vite-starter/src/main.js +41 -41
  43. package/package.json +21 -4
  44. package/src/build/components.css +35 -0
  45. package/src/build/utilities.css +46 -0
  46. package/src/components/ICON-SYSTEM.md +39 -39
  47. package/src/components/alert.css +26 -26
  48. package/src/components/avatar.css +9 -9
  49. package/src/components/breadcrumbs.css +15 -15
  50. package/src/components/button.css +21 -21
  51. package/src/components/card.css +10 -10
  52. package/src/components/checkbox.css +21 -21
  53. package/src/components/chip.css +43 -43
  54. package/src/components/data-row.css +19 -19
  55. package/src/components/divider.css +23 -23
  56. package/src/components/dropdown-field.css +34 -34
  57. package/src/components/dropdown-menu.css +12 -12
  58. package/src/components/field-verification.css +25 -25
  59. package/src/components/filter-segment.css +20 -20
  60. package/src/components/icon-button.css +11 -11
  61. package/src/components/icon.css +18 -18
  62. package/src/components/input.css +29 -29
  63. package/src/components/link.css +28 -28
  64. package/src/components/loading-indicator.css +20 -20
  65. package/src/components/loading-inline.css +8 -8
  66. package/src/components/menu-item.css +28 -28
  67. package/src/components/modal.css +36 -36
  68. package/src/components/navigation-rail.css +95 -95
  69. package/src/components/pagination-item.css +22 -22
  70. package/src/components/pagination.css +24 -24
  71. package/src/components/pill.css +14 -14
  72. package/src/components/progress-bar.css +28 -28
  73. package/src/components/radio-select.css +13 -13
  74. package/src/components/section-marker.css +12 -12
  75. package/src/components/segment-selector.css +9 -9
  76. package/src/components/sensitive-data.css +8 -8
  77. package/src/components/skeleton.css +29 -29
  78. package/src/components/step.css +14 -14
  79. package/src/components/stepper.css +15 -15
  80. package/src/components/switch.css +12 -12
  81. package/src/components/tabs.css +40 -40
  82. package/src/components/tag.css +20 -20
  83. package/src/components/text-button.css +24 -24
  84. package/src/components/textarea.css +23 -23
  85. package/src/components/toast.css +29 -29
  86. package/src/components/tooltip.css +11 -11
  87. package/src/icons/README.md +16 -10
  88. package/src/icons/sprite.svg +1 -1
  89. package/src/themes/valiify-tokens.css +285 -0
  90. package/src/themes/valiify-type-prefixed.css +37 -0
  91. package/src/utilities/index.css +1 -1
  92. package/src/utility-surface.css +321 -0
  93. package/types/components.d.ts +235 -236
@@ -14,14 +14,14 @@
14
14
  * scratch rather than adjusted.
15
15
  *
16
16
  * Usage (provisional):
17
- * <div class="card">
18
- * <h2 class="card-title">Title</h2>
19
- * <p class="card-body">Content</p>
17
+ * <div class="vd-card">
18
+ * <h2 class="vd-card-title">Title</h2>
19
+ * <p class="vd-card-body">Content</p>
20
20
  * </div>
21
21
  */
22
22
 
23
23
  @layer components {
24
- .card {
24
+ .vd-card {
25
25
  @apply p-4; /* Figma Spacing/16 */
26
26
 
27
27
  /* Shape */
@@ -31,33 +31,33 @@
31
31
  @apply border-stroke-divider bg-surface-paper;
32
32
  }
33
33
 
34
- .card-title {
34
+ .vd-card-title {
35
35
  @apply mb-2; /* Figma Spacing/8 */
36
36
  @apply text-h2; /* Figma Body Content/H2 */
37
37
  @apply text-content-primary;
38
38
  }
39
39
 
40
- .card-body {
40
+ .vd-card-body {
41
41
  @apply text-body-1; /* Figma Body Content/Body 1 */
42
42
  @apply text-content-secondary;
43
43
  }
44
44
 
45
45
  /* Compact variant */
46
- .card-compact {
46
+ .vd-card-compact {
47
47
  @apply p-3; /* Figma Spacing/12 */
48
48
  }
49
49
 
50
50
  /* Bordered variant — full-pixel border instead of the hairline default */
51
- .card-bordered {
51
+ .vd-card-bordered {
52
52
  @apply border-[length:var(--border-line)] border-stroke-border; /* Figma Stroke/Line */
53
53
  }
54
54
 
55
55
  /* Hoverable card */
56
- .card-hover {
56
+ .vd-card-hover {
57
57
  @apply cursor-pointer transition-shadow duration-200;
58
58
  }
59
59
 
60
- .card-hover:hover {
60
+ .vd-card-hover:hover {
61
61
  @apply shadow-panel; /* Figma General Drop Shadow */
62
62
  }
63
63
  }
@@ -7,14 +7,14 @@
7
7
  * booleans.
8
8
  *
9
9
  * Usage:
10
- * <label class="checkbox">
11
- * <span class="checkbox-control">
12
- * <input type="checkbox" class="checkbox-input" />
13
- * <svg class="checkbox-check icon icon-size-10" aria-hidden="true">
10
+ * <label class="vd-checkbox">
11
+ * <span class="vd-checkbox-control">
12
+ * <input type="checkbox" class="vd-checkbox-input" />
13
+ * <svg class="vd-checkbox-check vd-icon vd-icon-size-10" aria-hidden="true">
14
14
  * <use href="#check" />
15
15
  * </svg>
16
16
  * </span>
17
- * <span class="checkbox-label">Content</span>
17
+ * <span class="vd-checkbox-label">Content</span>
18
18
  * </label>
19
19
  *
20
20
  * THE CONTROL IS A REAL `<input type="checkbox">`, and the label is a real
@@ -82,7 +82,7 @@
82
82
  */
83
83
 
84
84
  @layer components {
85
- .checkbox {
85
+ .vd-checkbox {
86
86
  @apply inline-flex items-center gap-2.25; /* 9px — Spacing/9 */
87
87
  @apply cursor-pointer;
88
88
  }
@@ -90,11 +90,11 @@
90
90
  /* --- Control -------------------------------------------------------- */
91
91
 
92
92
  /* Shared 15px positioning context for the input and its checkmark. */
93
- .checkbox-control {
93
+ .vd-checkbox-control {
94
94
  @apply relative inline-flex size-[15px] shrink-0 items-center justify-center;
95
95
  }
96
96
 
97
- .checkbox-input {
97
+ .vd-checkbox-input {
98
98
  /* Reset, then draw the box ourselves. */
99
99
  @apply absolute inset-0 m-0 appearance-none p-0;
100
100
  @apply cursor-pointer;
@@ -110,49 +110,49 @@
110
110
  }
111
111
 
112
112
  /* Lucide `check`, 10px, Content/Contrast — hidden until checked. */
113
- .checkbox-check {
113
+ .vd-checkbox-check {
114
114
  @apply pointer-events-none relative;
115
115
  @apply text-content-contrast opacity-0;
116
116
  }
117
117
 
118
118
  /* --- States --------------------------------------------------------- */
119
119
 
120
- .checkbox-input:hover:not(:disabled) {
120
+ .vd-checkbox-input:hover:not(:disabled) {
121
121
  @apply border-neutral bg-action-hover;
122
122
  }
123
123
 
124
- .checkbox-input:checked {
124
+ .vd-checkbox-input:checked {
125
125
  @apply border-primary bg-primary;
126
126
  }
127
127
 
128
- .checkbox-input:checked:hover:not(:disabled) {
128
+ .vd-checkbox-input:checked:hover:not(:disabled) {
129
129
  @apply border-primary-dark bg-primary-dark;
130
130
  }
131
131
 
132
- .checkbox-input:checked ~ .checkbox-check {
132
+ .vd-checkbox-input:checked ~ .vd-checkbox-check {
133
133
  @apply opacity-100;
134
134
  }
135
135
 
136
136
  /* Figma models no focus state; this is the library-wide convention, applied
137
137
  to the real focusable element rather than a wrapper. */
138
- .checkbox-input:focus-visible {
138
+ .vd-checkbox-input:focus-visible {
139
139
  @apply focus-ring;
140
140
  }
141
141
 
142
142
  /* Token swap, never opacity — fading the box would take the whole control
143
143
  out of contrast compliance. See icon-button.css and _template.css. */
144
- .checkbox-input:disabled {
144
+ .vd-checkbox-input:disabled {
145
145
  @apply cursor-not-allowed;
146
146
  @apply border-stroke-disabled;
147
147
  }
148
148
 
149
- .checkbox:has(.checkbox-input:disabled) {
149
+ .vd-checkbox:has(.vd-checkbox-input:disabled) {
150
150
  @apply cursor-not-allowed;
151
151
  }
152
152
 
153
153
  /* --- Label and slots ------------------------------------------------- */
154
154
 
155
- .checkbox-label {
155
+ .vd-checkbox-label {
156
156
  @apply min-w-0 flex-1;
157
157
  @apply text-caption text-content-primary; /* 12px / 18px / 400 */
158
158
  @apply select-none;
@@ -160,14 +160,14 @@
160
160
 
161
161
  /* Checked and disabled share a colour — see the header; the checked case is
162
162
  the surprising one. */
163
- .checkbox:has(.checkbox-input:checked) .checkbox-label,
164
- .checkbox:has(.checkbox-input:disabled) .checkbox-label {
163
+ .vd-checkbox:has(.vd-checkbox-input:checked) .vd-checkbox-label,
164
+ .vd-checkbox:has(.vd-checkbox-input:disabled) .vd-checkbox-label {
165
165
  @apply text-content-tertiary;
166
166
  }
167
167
 
168
168
  /* Figma's subtitle boolean — Data/Data xs needs font-mono, since --text-*
169
169
  carries no family. */
170
- .checkbox-subtitle {
170
+ .vd-checkbox-subtitle {
171
171
  @apply shrink-0 select-none;
172
172
  @apply text-data-xs font-mono; /* 12px / 16.5px / 400, JetBrains Mono */
173
173
  @apply text-content-tertiary;
@@ -175,7 +175,7 @@
175
175
 
176
176
  /* Figma's Ring boolean, hidden by default. Square, like Section Marker's —
177
177
  this row has no radius of its own. */
178
- .checkbox.with-ring {
178
+ .vd-checkbox.vd-with-ring {
179
179
  @apply ring-[length:var(--border-micro)] ring-inset ring-primary;
180
180
  }
181
181
  }
@@ -6,23 +6,23 @@
6
6
  *
7
7
  * Usage:
8
8
  * <!-- Chip with optional dot -->
9
- * <span class="chip chip-warning">
10
- * <span class="chip-dot"></span>
9
+ * <span class="vd-chip vd-chip-warning">
10
+ * <span class="vd-chip-dot"></span>
11
11
  * <span>Warning</span>
12
12
  * </span>
13
13
  *
14
14
  * <!-- Badge (circular number) -->
15
- * <span class="badge badge-critical">3</span>
15
+ * <span class="vd-badge vd-badge-critical">3</span>
16
16
  *
17
17
  * <!-- Dot (indicator only) -->
18
- * <span class="dot dot-success"></span>
18
+ * <span class="vd-dot vd-dot-success"></span>
19
19
  *
20
20
  * <!-- BG=no: the same colour, unfilled -->
21
- * <span class="chip chip-warning chip-bg-no">
22
- * <span class="chip-dot"></span>
21
+ * <span class="vd-chip vd-chip-warning vd-chip-bg-no">
22
+ * <span class="vd-chip-dot"></span>
23
23
  * <span>Warning</span>
24
24
  * </span>
25
- * <span class="badge badge-critical badge-bg-no">3</span>
25
+ * <span class="vd-badge vd-badge-critical vd-badge-bg-no">3</span>
26
26
  *
27
27
  * THE BG AXIS. Figma ships every colour both filled (`BG=yes`) and unfilled
28
28
  * (`BG=no`). Only the fill changes — the text and dot keep the same colour
@@ -44,8 +44,8 @@
44
44
  * redundant. On the designer list.
45
45
  *
46
46
  * `primary` EXISTS ONLY AT BG=no in Figma — there is no filled primary — which
47
- * is why `.chip-primary` and `.badge-primary` are already transparent. Adding
48
- * `.chip-bg-no` to a primary chip is harmless but redundant.
47
+ * is why `.vd-chip-primary` and `.vd-badge-primary` are already transparent. Adding
48
+ * `.vd-chip-bg-no` to a primary chip is harmless but redundant.
49
49
  *
50
50
  * CASING IS THE CALLER'S — CONFIRMED 2026-08-26. Figma renders the labels
51
51
  * UPPERCASE (REVIEW, FLAGGED), and for a long time nothing distinguished a
@@ -64,7 +64,7 @@
64
64
  @layer components {
65
65
  /* --- Chip (text with optional dot) --------------------------------- */
66
66
 
67
- .chip {
67
+ .vd-chip {
68
68
  /* Layout */
69
69
  @apply inline-flex items-center gap-1;
70
70
  @apply px-2.25 py-1.25; /* 9px x 5px from Figma */
@@ -78,36 +78,36 @@
78
78
  }
79
79
 
80
80
  /* Chip dot indicator (optional child element) */
81
- .chip-dot {
81
+ .vd-chip-dot {
82
82
  @apply size-[5px] rounded-pill;
83
83
  @apply bg-current; /* Inherits text color from parent chip variant */
84
84
  }
85
85
 
86
86
  /* --- Chip Variants -------------------------------------------------- */
87
87
 
88
- .chip-warning {
88
+ .vd-chip-warning {
89
89
  @apply bg-warning-soft text-warning;
90
90
  }
91
91
 
92
- .chip-critical {
92
+ .vd-chip-critical {
93
93
  @apply bg-critical-soft text-critical;
94
94
  }
95
95
 
96
- .chip-success {
96
+ .vd-chip-success {
97
97
  @apply bg-approved-soft text-approved;
98
98
  }
99
99
 
100
- .chip-neutral {
100
+ .vd-chip-neutral {
101
101
  @apply bg-neutral-soft text-neutral-strong;
102
102
  }
103
103
 
104
- .chip-primary {
104
+ .vd-chip-primary {
105
105
  @apply bg-transparent text-primary;
106
106
  }
107
107
 
108
108
  /* --- Badge (circular number indicator) ------------------------------ */
109
109
 
110
- .badge {
110
+ .vd-badge {
111
111
  /* Layout */
112
112
  @apply inline-flex items-center justify-center;
113
113
  @apply size-[15px] p-1; /* 15px x 15px, 4px padding */
@@ -121,87 +121,87 @@
121
121
 
122
122
  /* --- Badge Variants ------------------------------------------------- */
123
123
 
124
- .badge-warning {
124
+ .vd-badge-warning {
125
125
  @apply bg-warning-soft text-warning;
126
126
  }
127
127
 
128
- .badge-critical {
128
+ .vd-badge-critical {
129
129
  @apply bg-critical-soft text-critical;
130
130
  }
131
131
 
132
- .badge-success {
132
+ .vd-badge-success {
133
133
  @apply bg-approved-soft text-approved;
134
134
  }
135
135
 
136
- .badge-neutral {
136
+ .vd-badge-neutral {
137
137
  @apply bg-neutral-soft text-neutral-strong;
138
138
  }
139
139
 
140
- .badge-primary {
140
+ .vd-badge-primary {
141
141
  @apply bg-transparent text-primary;
142
142
  }
143
143
 
144
144
  /* --- Dot (indicator only) ------------------------------------------- */
145
145
 
146
- .dot {
146
+ .vd-dot {
147
147
  @apply inline-block size-[5px] rounded-pill;
148
148
  }
149
149
 
150
150
  /* --- Dot Variants --------------------------------------------------- */
151
151
 
152
- .dot-warning {
152
+ .vd-dot-warning {
153
153
  @apply bg-warning;
154
154
  }
155
155
 
156
- .dot-critical {
156
+ .vd-dot-critical {
157
157
  @apply bg-critical;
158
158
  }
159
159
 
160
- .dot-success {
160
+ .vd-dot-success {
161
161
  @apply bg-approved;
162
162
  }
163
163
 
164
- .dot-neutral {
164
+ .vd-dot-neutral {
165
165
  @apply bg-neutral-strong;
166
166
  }
167
167
 
168
- .dot-primary {
168
+ .vd-dot-primary {
169
169
  @apply bg-primary;
170
170
  }
171
171
 
172
172
  /* --- Sizes ----------------------------------------------------------- */
173
173
  /* Figma's Size property, added 2026-08-22. SM is the pre-existing default,
174
- so bare .chip / .badge / .dot stay SM and nothing breaks.
174
+ so bare .vd-chip / .vd-badge / .vd-dot stay SM and nothing breaks.
175
175
  What MD actually changes is narrower than you would guess:
176
176
  chip — gap 4->6 and type 8px->11px. Padding is IDENTICAL (9 / 5), and
177
- the inner .chip-dot stays 5px at both sizes.
177
+ the inner .vd-chip-dot stays 5px at both sizes.
178
178
  badge — box 15 -> 19px, padding 4 -> 6px, type 8px -> 11px.
179
179
  dot — size only, 5px -> 7px. */
180
180
 
181
- .chip-sm {
181
+ .vd-chip-sm {
182
182
  @apply h-5 gap-1; /* 20px, 4px gap */
183
183
  @apply text-micro-s-bold; /* 8px / 600 / 0.4% */
184
184
  }
185
185
 
186
- .chip-md {
186
+ .vd-chip-md {
187
187
  @apply h-[23px] gap-1.5; /* 23px, 6px gap */
188
188
  @apply text-micro-l-bold; /* 11px / 500, Inter Medium */
189
189
  }
190
190
 
191
- .badge-sm {
191
+ .vd-badge-sm {
192
192
  @apply text-data-micro-s font-mono; /* 8px / 500, JetBrains Mono */
193
193
  }
194
194
 
195
- .badge-md {
195
+ .vd-badge-md {
196
196
  @apply size-[19px] p-1.5; /* 19px box, 6px padding */
197
197
  @apply text-data-micro-l font-mono; /* 11px / 500, JetBrains Mono */
198
198
  }
199
199
 
200
- .dot-sm {
200
+ .vd-dot-sm {
201
201
  @apply size-[5px];
202
202
  }
203
203
 
204
- .dot-md {
204
+ .vd-dot-md {
205
205
  @apply size-[7px];
206
206
  }
207
207
 
@@ -211,11 +211,11 @@
211
211
  opt-out: it removes the fill and nothing else — same text colour, same dot
212
212
  colour, and deliberately NO border, which the Figma render confirms.
213
213
 
214
- Written as a compound selector so it beats `.chip-warning` on specificity
215
- rather than on source order, matching how `.chip.with-ring` is written
214
+ Written as a compound selector so it beats `.vd-chip-warning` on specificity
215
+ rather than on source order, matching how `.vd-chip.vd-with-ring` is written
216
216
  below. `dot` is absent on purpose — see the header. */
217
- .chip.chip-bg-no,
218
- .badge.badge-bg-no {
217
+ .vd-chip.vd-chip-bg-no,
218
+ .vd-badge.vd-badge-bg-no {
219
219
  @apply bg-transparent;
220
220
  }
221
221
 
@@ -226,9 +226,9 @@
226
226
  of the status colour. An earlier version used the variant's own colour and
227
227
  pushed the ring 2px outward; both were wrong.
228
228
  Ring is orthogonal to the BG property — it combines with either. */
229
- .chip.with-ring,
230
- .badge.with-ring,
231
- .dot.with-ring {
229
+ .vd-chip.vd-with-ring,
230
+ .vd-badge.vd-with-ring,
231
+ .vd-dot.vd-with-ring {
232
232
  @apply ring-[length:var(--border-micro)] ring-inset ring-primary;
233
233
  }
234
234
  }
@@ -7,17 +7,17 @@
7
7
  * `help` and `ring` booleans and `dataField` / `data` text properties.
8
8
  *
9
9
  * Usage:
10
- * <div class="data-row">
11
- * <span class="data-row-field">First Name</span>
12
- * <span class="data-row-value">John</span>
13
- * <span class="field-verification field-verification-verified data-row-status">
14
- * <span class="section-marker section-marker-approve">
15
- * <svg class="icon icon-size-14" aria-hidden="true"><use href="#check" /></svg>
10
+ * <div class="vd-data-row">
11
+ * <span class="vd-data-row-field">First Name</span>
12
+ * <span class="vd-data-row-value">John</span>
13
+ * <span class="vd-field-verification vd-field-verification-verified vd-data-row-status">
14
+ * <span class="vd-section-marker vd-section-marker-approve">
15
+ * <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#check" /></svg>
16
16
  * </span>
17
- * <span class="field-verification-label">Matches Plaid KYC</span>
17
+ * <span class="vd-field-verification-label">Matches Plaid KYC</span>
18
18
  * </span>
19
- * <button class="icon-button icon-button-md data-row-action" aria-label="Field help">
20
- * <svg class="icon icon-size-14" aria-hidden="true"><use href="#circle-question-mark" /></svg>
19
+ * <button class="vd-icon-button vd-icon-button-md vd-data-row-action" aria-label="Field help">
20
+ * <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#circle-question-mark" /></svg>
21
21
  * </button>
22
22
  * </div>
23
23
  *
@@ -79,7 +79,7 @@
79
79
  */
80
80
 
81
81
  @layer components {
82
- .data-row {
82
+ .vd-data-row {
83
83
  /* Layout — 16px (Spacing/16) between columns. */
84
84
  @apply flex w-full items-center gap-4;
85
85
  @apply h-[38px] px-1 py-[12.5px]; /* 4px / 12.5px — see the header */
@@ -89,31 +89,31 @@
89
89
  }
90
90
 
91
91
  /* Figma's Hover axis. The only state the row itself has. */
92
- .data-row:hover {
92
+ .vd-data-row:hover {
93
93
  @apply bg-action-subtle;
94
94
  }
95
95
 
96
96
  /* --- Columns --------------------------------------------------------- */
97
97
 
98
98
  /* Body 2, truncating — Figma fixes the label column and clips overflow. */
99
- .data-row-field {
99
+ .vd-data-row-field {
100
100
  @apply w-[200px] shrink-0 truncate;
101
101
  @apply text-body-2 text-content-tertiary;
102
102
  }
103
103
 
104
- .data-row-value {
104
+ .vd-data-row-value {
105
105
  @apply w-[400px] shrink-0;
106
106
  @apply text-body-2 text-content-primary;
107
107
  }
108
108
 
109
109
  /* Data Row overrides Sensitive Data's Caption to Body 2 so the masked value
110
110
  sits on the same baseline as the field label. See the header. */
111
- .data-row-value .sensitive-data-value {
111
+ .vd-data-row-value .vd-sensitive-data-value {
112
112
  @apply text-body-2;
113
113
  }
114
114
 
115
115
  /* Additive, for the Field Verification slot — Figma stretches it. */
116
- .data-row-status {
116
+ .vd-data-row-status {
117
117
  @apply flex-1;
118
118
  min-width: 0;
119
119
  }
@@ -122,13 +122,13 @@
122
122
 
123
123
  /* Laid out but invisible at rest, exactly as Figma draws it. Revealed by
124
124
  hover AND focus, so a keyboard user can see the control they reached. */
125
- .data-row-action {
125
+ .vd-data-row-action {
126
126
  @apply shrink-0 opacity-0;
127
127
  @apply transition-opacity duration-150;
128
128
  }
129
129
 
130
- .data-row:hover .data-row-action,
131
- .data-row:focus-within .data-row-action {
130
+ .vd-data-row:hover .vd-data-row-action,
131
+ .vd-data-row:focus-within .vd-data-row-action {
132
132
  @apply opacity-100;
133
133
  }
134
134
 
@@ -136,7 +136,7 @@
136
136
 
137
137
  /* Figma's Ring boolean, hidden by default — 2px Primary/Main, and the only
138
138
  ring in the library that follows a radius, since the row has one. */
139
- .data-row.with-ring {
139
+ .vd-data-row.vd-with-ring {
140
140
  @apply ring-[length:var(--border-micro)] ring-inset ring-primary;
141
141
  }
142
142
  }
@@ -5,25 +5,25 @@
5
5
  * Divider (880:31270) — 3 variants on a single `Type` axis.
6
6
  *
7
7
  * Usage — simple:
8
- * <hr class="divider" />
8
+ * <hr class="vd-divider" />
9
9
  *
10
10
  * Usage — labeled:
11
- * <div class="divider-labeled">
12
- * <hr class="divider" />
13
- * <span class="divider-label">Beneficial owners</span>
14
- * <hr class="divider" />
11
+ * <div class="vd-divider-labeled">
12
+ * <hr class="vd-divider" />
13
+ * <span class="vd-divider-label">Beneficial owners</span>
14
+ * <hr class="vd-divider" />
15
15
  * </div>
16
16
  *
17
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>
18
+ * <div class="vd-divider-metadata">
19
+ * <span class="vd-divider-metadata-item">
20
+ * <span class="vd-divider-metadata-key">Updated</span>
21
+ * <span class="vd-divider-metadata-value font-mono">Jul 17</span>
22
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>
23
+ * <span class="vd-divider-metadata-separator"></span>
24
+ * <span class="vd-divider-metadata-item">
25
+ * <span class="vd-divider-metadata-key">Reviewer</span>
26
+ * <span class="vd-divider-metadata-value">M. Carden</span>
27
27
  * </span>
28
28
  * </div>
29
29
  *
@@ -78,14 +78,14 @@
78
78
  *
79
79
  * MONO IS A CALL-SITE CHOICE. Figma's sample renders its date value in JetBrains
80
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`
81
+ * override for data, not a rule of the component, so `.vd-divider-metadata-value`
82
82
  * stays Inter and you add `font-mono` where the value is data.
83
83
  */
84
84
 
85
85
  @layer components {
86
86
  /* Type=simple, and the rule used inside Type=labeled. Works on an <hr>, which
87
87
  needs its default border removed. */
88
- .divider {
88
+ .vd-divider {
89
89
  @apply w-full border-0;
90
90
  @apply h-px bg-stroke-divider;
91
91
  @apply m-0;
@@ -93,12 +93,12 @@
93
93
 
94
94
  /* --- Type = labeled ----------------------------------------------------- */
95
95
 
96
- .divider-labeled {
96
+ .vd-divider-labeled {
97
97
  @apply flex w-full items-center gap-4; /* 16px */
98
98
  }
99
99
 
100
100
  /* The flanking rules fill whatever is left, keeping the label centred. */
101
- .divider-labeled > .divider {
101
+ .vd-divider-labeled > .vd-divider {
102
102
  @apply flex-1;
103
103
  min-width: 0;
104
104
  }
@@ -106,7 +106,7 @@
106
106
  /* Matches Label S Sans - Bold's VALUES; Figma binds no style — see the header.
107
107
  `text-label-s-bold`, not `type-label-s-bold`: the utility form adds
108
108
  `text-transform: uppercase`, which Figma does not apply. */
109
- .divider-label {
109
+ .vd-divider-label {
110
110
  @apply shrink-0;
111
111
  @apply text-label-s-bold; /* 10px / 12px / 600 / 0.1em */
112
112
  @apply text-content-tertiary;
@@ -114,29 +114,29 @@
114
114
 
115
115
  /* --- Type = metadata ---------------------------------------------------- */
116
116
 
117
- .divider-metadata {
117
+ .vd-divider-metadata {
118
118
  @apply flex items-center gap-4; /* 16px */
119
119
  }
120
120
 
121
- .divider-metadata-item {
121
+ .vd-divider-metadata-item {
122
122
  @apply inline-flex shrink-0 items-center gap-1.5; /* 6px */
123
123
  }
124
124
 
125
125
  /* Raw 12px type with Auto leading — see the header on why not --text-caption. */
126
- .divider-metadata-key {
126
+ .vd-divider-metadata-key {
127
127
  @apply text-[12px] font-normal;
128
128
  @apply leading-[normal]; /* Figma Auto — NOT Tailwind's leading-normal (1.5) */
129
129
  @apply text-content-tertiary;
130
130
  }
131
131
 
132
- .divider-metadata-value {
132
+ .vd-divider-metadata-value {
133
133
  @apply text-[12px] font-medium;
134
134
  @apply leading-[normal];
135
135
  @apply text-content-primary;
136
136
  }
137
137
 
138
138
  /* Stroke/BORDER here, heavier than the horizontal rules. */
139
- .divider-metadata-separator {
139
+ .vd-divider-metadata-separator {
140
140
  @apply h-4 w-px shrink-0; /* 16px tall */
141
141
  @apply bg-stroke-border;
142
142
  }