@valiify/dashboard-ui 0.1.1 → 0.2.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 (76) hide show
  1. package/CHANGELOG.md +411 -4
  2. package/CLAUDE.md +809 -768
  3. package/COMPONENTS.md +520 -520
  4. package/GETTING_STARTED.md +14 -14
  5. package/QUICK_REFERENCE.md +22 -22
  6. package/README.md +28 -6
  7. package/TROUBLESHOOTING.md +6 -6
  8. package/class-manifest.json +664 -0
  9. package/design-methodology/dashboard.md +496 -0
  10. package/dist/dashboard-ui.css +4897 -0
  11. package/dist/index.css +502 -502
  12. package/examples/basic/index.html +8 -8
  13. package/examples/daisyui-starter/README.md +35 -0
  14. package/examples/daisyui-starter/check-no-bleed.mjs +81 -0
  15. package/examples/daisyui-starter/index.html +45 -0
  16. package/examples/daisyui-starter/package-lock.json +2221 -0
  17. package/examples/daisyui-starter/package.json +22 -0
  18. package/examples/daisyui-starter/postcss.config.js +1 -0
  19. package/examples/daisyui-starter/src/styles.css +20 -0
  20. package/examples/daisyui-starter/tailwind.config.js +12 -0
  21. package/examples/postcss-starter/index.html +8 -8
  22. package/examples/postcss-starter/package.json +1 -1
  23. package/examples/vite-starter/README.md +4 -4
  24. package/examples/vite-starter/package.json +1 -1
  25. package/examples/vite-starter/src/main.js +41 -41
  26. package/package.json +23 -4
  27. package/src/build/components.css +29 -0
  28. package/src/build/utilities.css +42 -0
  29. package/src/components/ICON-SYSTEM.md +39 -39
  30. package/src/components/alert.css +26 -26
  31. package/src/components/avatar.css +9 -9
  32. package/src/components/breadcrumbs.css +15 -15
  33. package/src/components/button.css +21 -21
  34. package/src/components/card.css +10 -10
  35. package/src/components/checkbox.css +21 -21
  36. package/src/components/chip.css +43 -43
  37. package/src/components/data-row.css +19 -19
  38. package/src/components/divider.css +23 -23
  39. package/src/components/dropdown-field.css +34 -34
  40. package/src/components/dropdown-menu.css +12 -12
  41. package/src/components/field-verification.css +25 -25
  42. package/src/components/filter-segment.css +20 -20
  43. package/src/components/icon-button.css +11 -11
  44. package/src/components/icon.css +18 -18
  45. package/src/components/input.css +29 -29
  46. package/src/components/link.css +28 -28
  47. package/src/components/loading-indicator.css +20 -20
  48. package/src/components/loading-inline.css +8 -8
  49. package/src/components/menu-item.css +28 -28
  50. package/src/components/modal.css +36 -36
  51. package/src/components/navigation-rail.css +95 -95
  52. package/src/components/pagination-item.css +22 -22
  53. package/src/components/pagination.css +24 -24
  54. package/src/components/pill.css +14 -14
  55. package/src/components/progress-bar.css +28 -28
  56. package/src/components/radio-select.css +13 -13
  57. package/src/components/section-marker.css +12 -12
  58. package/src/components/segment-selector.css +9 -9
  59. package/src/components/sensitive-data.css +8 -8
  60. package/src/components/skeleton.css +29 -29
  61. package/src/components/step.css +14 -14
  62. package/src/components/stepper.css +15 -15
  63. package/src/components/switch.css +12 -12
  64. package/src/components/tabs.css +40 -40
  65. package/src/components/tag.css +20 -20
  66. package/src/components/text-button.css +24 -24
  67. package/src/components/textarea.css +23 -23
  68. package/src/components/toast.css +29 -29
  69. package/src/components/tooltip.css +11 -11
  70. package/src/icons/README.md +16 -10
  71. package/src/icons/sprite.svg +1 -1
  72. package/src/themes/valiify-tokens.css +285 -0
  73. package/src/themes/valiify-type-prefixed.css +37 -0
  74. package/src/utilities/index.css +1 -1
  75. package/src/utility-surface.css +321 -0
  76. package/types/components.d.ts +235 -236
@@ -16,16 +16,16 @@
16
16
  * frame, so the border must not add height. Same precedent as button.css.
17
17
  *
18
18
  * Structure:
19
- * <div class="input-container">
20
- * <div class="input-label">...</div> <!-- Optional -->
21
- * <div class="input-field">...</div> <!-- Required -->
22
- * <div class="input-error-message">...</div> <!-- Optional -->
19
+ * <div class="vd-input-container">
20
+ * <div class="vd-input-label">...</div> <!-- Optional -->
21
+ * <div class="vd-input-field">...</div> <!-- Required -->
22
+ * <div class="vd-input-error-message">...</div> <!-- Optional -->
23
23
  * </div>
24
24
  *
25
25
  * Usage:
26
- * <div class="input-container">
27
- * <div class="input-field">
28
- * <input type="text" class="input" placeholder="Enter text..." />
26
+ * <div class="vd-input-container">
27
+ * <div class="vd-input-field">
28
+ * <input type="text" class="vd-input" placeholder="Enter text..." />
29
29
  * </div>
30
30
  * </div>
31
31
  */
@@ -33,27 +33,27 @@
33
33
  @layer components {
34
34
  /* --- Container ---------------------------------------------------- */
35
35
 
36
- .input-container {
36
+ .vd-input-container {
37
37
  @apply flex flex-col items-start w-full;
38
38
  }
39
39
 
40
40
  /* --- Label ------------------------------------------------------- */
41
41
 
42
- .input-label {
42
+ .vd-input-label {
43
43
  @apply flex items-center w-full pb-1.5; /* 6px bottom padding */
44
44
  @apply text-[10px] font-semibold uppercase tracking-[1px] leading-[12px];
45
45
  @apply text-content-tertiary;
46
46
  }
47
47
 
48
- .input-label > span {
48
+ .vd-input-label > span {
49
49
  @apply flex-1;
50
50
  }
51
51
 
52
- /* Note: Help button uses .icon-button .icon-button-xs from icon-button.css */
52
+ /* Note: Help button uses .vd-icon-button .vd-icon-button-xs from icon-button.css */
53
53
 
54
54
  /* --- Input Field ------------------------------------------------- */
55
55
 
56
- .input-field {
56
+ .vd-input-field {
57
57
  /* Layout */
58
58
  @apply flex items-center gap-2 w-full; /* 8px gap, every size */
59
59
 
@@ -76,7 +76,7 @@
76
76
 
77
77
  /* --- Actual Input Element ---------------------------------------- */
78
78
 
79
- .input {
79
+ .vd-input {
80
80
  /* Layout */
81
81
  @apply flex-1;
82
82
  min-width: 0;
@@ -99,76 +99,76 @@
99
99
 
100
100
  /* --- Icon Wrappers ----------------------------------------------- */
101
101
 
102
- .input-icon-left,
103
- .input-icon-right {
102
+ .vd-input-icon-left,
103
+ .vd-input-icon-right {
104
104
  @apply shrink-0;
105
105
  @apply text-content-secondary; /* Icon color */
106
106
  }
107
107
 
108
108
  /* --- Size Variants ----------------------------------------------- */
109
109
 
110
- .input-sm {
110
+ .vd-input-sm {
111
111
  @apply px-2 py-[5.5px]; /* 8px / 5.5px */
112
112
  @apply h-[25px];
113
113
  @apply text-micro-l; /* 11px / normal / 400 */
114
114
  }
115
115
 
116
- .input-md {
116
+ .vd-input-md {
117
117
  @apply px-2.5 py-1; /* 10px / 4px */
118
118
  @apply h-[29px];
119
119
  @apply text-body-1; /* 13px / 19.5px / 400 */
120
120
  }
121
121
 
122
- .input-lg {
122
+ .vd-input-lg {
123
123
  @apply px-3 py-1.75; /* 12px / 7px — same as default */
124
124
  @apply h-[35px];
125
125
  @apply text-body-1;
126
126
  }
127
127
 
128
128
  /* The input inherits the row's type so the size variants reach it */
129
- .input-sm .input,
130
- .input-md .input,
131
- .input-lg .input {
129
+ .vd-input-sm .vd-input,
130
+ .vd-input-md .vd-input,
131
+ .vd-input-lg .vd-input {
132
132
  font-size: inherit;
133
133
  line-height: inherit;
134
134
  }
135
135
 
136
136
  /* --- Background Variants ----------------------------------------- */
137
137
 
138
- .input-bg-neutral {
138
+ .vd-input-bg-neutral {
139
139
  @apply bg-surface-card; /* Figma BG=Neutral is Surface/Card #fafafb */
140
140
  }
141
141
 
142
142
  /* --- States ------------------------------------------------------ */
143
143
 
144
144
  /* Hover */
145
- .input-field:hover:not(:has(:disabled)):not(.input-disabled) {
145
+ .vd-input-field:hover:not(:has(:disabled)):not(.vd-input-disabled) {
146
146
  @apply border-stroke-border;
147
147
  }
148
148
 
149
149
  /* Focus */
150
- .input-field:focus-within {
150
+ .vd-input-field:focus-within {
151
151
  @apply focus-ring;
152
152
  }
153
153
 
154
154
  /* Error */
155
- .input-field.input-error {
155
+ .vd-input-field.vd-input-error {
156
156
  @apply border-critical;
157
157
  }
158
158
 
159
159
  /* Disabled */
160
- .input-field:has(:disabled),
161
- .input-field.input-disabled {
160
+ .vd-input-field:has(:disabled),
161
+ .vd-input-field.vd-input-disabled {
162
162
  @apply bg-action-subtle border-stroke-divider cursor-not-allowed;
163
163
  }
164
164
 
165
- .input:disabled {
165
+ .vd-input:disabled {
166
166
  @apply cursor-not-allowed;
167
167
  }
168
168
 
169
169
  /* --- Error Message ----------------------------------------------- */
170
170
 
171
- .input-error-message {
171
+ .vd-input-error-message {
172
172
  @apply flex items-center w-full pt-1.5; /* 6px top padding */
173
173
  @apply text-[11px] leading-[normal] font-normal;
174
174
  @apply text-critical-strong;
@@ -6,15 +6,15 @@
6
6
  * pressed).
7
7
  *
8
8
  * Usage:
9
- * <a class="link" href="/report">Open full report →</a>
10
- * <a class="link link-quiet" href="/log">View activity log</a>
11
- * <a class="link link-monospace" href="/case">#BA-204417</a>
12
- * <a class="link link-critical" href="/fix">
13
- * <svg class="icon icon-size-12" aria-hidden="true"><use href="#alert-triangle" /></svg>
9
+ * <a class="vd-link" href="/report">Open full report →</a>
10
+ * <a class="vd-link vd-link-quiet" href="/log">View activity log</a>
11
+ * <a class="vd-link vd-link-monospace" href="/case">#BA-204417</a>
12
+ * <a class="vd-link vd-link-critical" href="/fix">
13
+ * <svg class="vd-icon vd-icon-size-12" aria-hidden="true"><use href="#alert-triangle" /></svg>
14
14
  * Resolve mismatch
15
15
  * </a>
16
16
  *
17
- * <p class="link-inline">
17
+ * <p class="vd-link-inline">
18
18
  * Valiify utilizes <a href="/middesk">Middesk</a> for instant screenings.
19
19
  * </p>
20
20
  *
@@ -63,7 +63,7 @@
63
63
  */
64
64
 
65
65
  @layer components {
66
- .link {
66
+ .vd-link {
67
67
  /* Layout — strong's container; critical widens the gap below. */
68
68
  @apply inline-flex items-center gap-1; /* 4px */
69
69
 
@@ -80,24 +80,24 @@
80
80
  /* --- Styles ------------------------------------------------------------- */
81
81
 
82
82
  /* Explicit form of the base. */
83
- .link-strong {
83
+ .vd-link-strong {
84
84
  @apply text-[14px] font-semibold;
85
85
  @apply text-primary no-underline;
86
86
  }
87
87
 
88
- .link-quiet {
88
+ .vd-link-quiet {
89
89
  @apply text-[14px] font-normal;
90
90
  @apply text-content-secondary underline;
91
91
  }
92
92
 
93
- .link-monospace {
93
+ .vd-link-monospace {
94
94
  @apply font-mono text-[13px] font-medium;
95
95
  @apply text-content-primary underline;
96
96
  }
97
97
 
98
98
  /* The only style Figma draws with an icon — a 12px alert-triangle at a 6px
99
99
  gap. The glyph is a slot, as everywhere else in the library. */
100
- .link-critical {
100
+ .vd-link-critical {
101
101
  @apply gap-1.5; /* 6px */
102
102
  @apply text-[14px] font-medium;
103
103
  @apply text-critical underline;
@@ -109,13 +109,13 @@
109
109
  name rather than by source order — equal-specificity ordering is the
110
110
  fragility the library audit found in seven components. */
111
111
 
112
- .link:not(.link-quiet):not(.link-monospace):not(.link-critical):hover:not(
112
+ .vd-link:not(.vd-link-quiet):not(.vd-link-monospace):not(.vd-link-critical):hover:not(
113
113
  :disabled
114
114
  ):not([aria-disabled="true"]) {
115
115
  @apply text-primary-dark underline;
116
116
  }
117
117
 
118
- .link:not(.link-quiet):not(.link-monospace):not(.link-critical):active:not(
118
+ .vd-link:not(.vd-link-quiet):not(.vd-link-monospace):not(.vd-link-critical):active:not(
119
119
  :disabled
120
120
  ):not([aria-disabled="true"]) {
121
121
  @apply text-primary-pressed underline;
@@ -123,33 +123,33 @@
123
123
 
124
124
  /* quiet and monospace share a ramp: they start outside the primary scale, so
125
125
  hover only reaches Main and pressed only reaches Dark. */
126
- .link-quiet:hover:not(:disabled):not([aria-disabled="true"]),
127
- .link-monospace:hover:not(:disabled):not([aria-disabled="true"]) {
126
+ .vd-link-quiet:hover:not(:disabled):not([aria-disabled="true"]),
127
+ .vd-link-monospace:hover:not(:disabled):not([aria-disabled="true"]) {
128
128
  @apply text-primary;
129
129
  }
130
130
 
131
- .link-quiet:active:not(:disabled):not([aria-disabled="true"]),
132
- .link-monospace:active:not(:disabled):not([aria-disabled="true"]) {
131
+ .vd-link-quiet:active:not(:disabled):not([aria-disabled="true"]),
132
+ .vd-link-monospace:active:not(:disabled):not([aria-disabled="true"]) {
133
133
  @apply text-primary-dark;
134
134
  }
135
135
 
136
- .link-critical:hover:not(:disabled):not([aria-disabled="true"]) {
136
+ .vd-link-critical:hover:not(:disabled):not([aria-disabled="true"]) {
137
137
  @apply text-critical-strong;
138
138
  }
139
139
 
140
- .link-critical:active:not(:disabled):not([aria-disabled="true"]) {
140
+ .vd-link-critical:active:not(:disabled):not([aria-disabled="true"]) {
141
141
  @apply text-critical-content;
142
142
  }
143
143
 
144
- .link:focus-visible {
144
+ .vd-link:focus-visible {
145
145
  @apply focus-ring;
146
146
  }
147
147
 
148
148
  /* Not in Figma — house convention. An <a> cannot be :disabled, so
149
149
  aria-disabled is the real guard here; :disabled is carried alongside it so
150
150
  the class also behaves on a <button>. Every state rule above excludes both. */
151
- .link:disabled,
152
- .link[aria-disabled="true"] {
151
+ .vd-link:disabled,
152
+ .vd-link[aria-disabled="true"] {
153
153
  @apply cursor-not-allowed text-content-faint no-underline;
154
154
  }
155
155
 
@@ -157,27 +157,27 @@
157
157
 
158
158
  /* A PARAGRAPH, not a link. Figma models this as body copy carrying anchors,
159
159
  so the class goes on the block and the anchors are styled as descendants.
160
- Deliberately does NOT take `.link`. This is the one style with a real Figma
160
+ Deliberately does NOT take `.vd-link`. This is the one style with a real Figma
161
161
  text style behind it. */
162
- .link-inline {
162
+ .vd-link-inline {
163
163
  @apply text-caption; /* 12px / 18px / 400 — Body Content/Caption */
164
164
  @apply text-content-primary;
165
165
  }
166
166
 
167
- .link-inline a {
167
+ .vd-link-inline a {
168
168
  @apply text-primary underline;
169
169
  @apply cursor-pointer transition-colors duration-150;
170
170
  }
171
171
 
172
- .link-inline a:hover:not(:disabled):not([aria-disabled="true"]) {
172
+ .vd-link-inline a:hover:not(:disabled):not([aria-disabled="true"]) {
173
173
  @apply text-primary-dark;
174
174
  }
175
175
 
176
- .link-inline a:active:not(:disabled):not([aria-disabled="true"]) {
176
+ .vd-link-inline a:active:not(:disabled):not([aria-disabled="true"]) {
177
177
  @apply text-primary-pressed;
178
178
  }
179
179
 
180
- .link-inline a:focus-visible {
180
+ .vd-link-inline a:focus-visible {
181
181
  @apply focus-ring;
182
182
  }
183
183
  }
@@ -5,14 +5,14 @@
5
5
  * Type (Circle / Dots) x Size (XS / SM / MD / LG).
6
6
  *
7
7
  * Usage — circle:
8
- * <span class="loading-indicator" role="status" aria-label="Loading"></span>
9
- * <span class="loading-indicator loading-indicator-lg" role="status" aria-label="Loading"></span>
8
+ * <span class="vd-loading-indicator" role="status" aria-label="Loading"></span>
9
+ * <span class="vd-loading-indicator vd-loading-indicator-lg" role="status" aria-label="Loading"></span>
10
10
  *
11
11
  * Usage — dots:
12
- * <span class="loading-indicator loading-indicator-dots" role="status" aria-label="Loading">
13
- * <span class="loading-indicator-dot"></span>
14
- * <span class="loading-indicator-dot"></span>
15
- * <span class="loading-indicator-dot"></span>
12
+ * <span class="vd-loading-indicator vd-loading-indicator-dots" role="status" aria-label="Loading">
13
+ * <span class="vd-loading-indicator-dot"></span>
14
+ * <span class="vd-loading-indicator-dot"></span>
15
+ * <span class="vd-loading-indicator-dot"></span>
16
16
  * </span>
17
17
  *
18
18
  * XS IS THE DEFAULT — Figma's first variant is `Type=Circle, Size=XS`, and the
@@ -73,7 +73,7 @@
73
73
  */
74
74
 
75
75
  @layer components {
76
- .loading-indicator {
76
+ .vd-loading-indicator {
77
77
  @apply inline-flex shrink-0 items-center;
78
78
  }
79
79
 
@@ -83,7 +83,7 @@
83
83
 
84
84
  A conic-gradient masked to a ring, NOT a border — see the header. The arc
85
85
  runs 0-90deg, which is 12 to 3 o'clock, exactly where Figma draws it. */
86
- .loading-indicator:not(.loading-indicator-dots) {
86
+ .vd-loading-indicator:not(.vd-loading-indicator-dots) {
87
87
  --loading-ring: 1.5px; /* XS */
88
88
  @apply size-3; /* 12px */
89
89
  @apply rounded-pill;
@@ -102,17 +102,17 @@
102
102
  animation: valiify-loading-spin 0.8s linear infinite;
103
103
  }
104
104
 
105
- .loading-indicator-sm:not(.loading-indicator-dots) {
105
+ .vd-loading-indicator-sm:not(.vd-loading-indicator-dots) {
106
106
  --loading-ring: 2px;
107
107
  @apply size-4; /* 16px */
108
108
  }
109
109
 
110
- .loading-indicator-md:not(.loading-indicator-dots) {
110
+ .vd-loading-indicator-md:not(.vd-loading-indicator-dots) {
111
111
  --loading-ring: 2.52px;
112
112
  @apply size-6; /* 24px */
113
113
  }
114
114
 
115
- .loading-indicator-lg:not(.loading-indicator-dots) {
115
+ .vd-loading-indicator-lg:not(.vd-loading-indicator-dots) {
116
116
  --loading-ring: 3.04px;
117
117
  @apply size-8; /* 32px */
118
118
  }
@@ -121,25 +121,25 @@
121
121
 
122
122
  /* One custom property drives both the dot diameter and the gap, because in
123
123
  Figma they are always the same number. */
124
- .loading-indicator-dots {
124
+ .vd-loading-indicator-dots {
125
125
  --loading-dot: 2px; /* XS */
126
126
  gap: var(--loading-dot);
127
127
  }
128
128
 
129
- .loading-indicator-dots.loading-indicator-sm {
129
+ .vd-loading-indicator-dots.vd-loading-indicator-sm {
130
130
  --loading-dot: 3px;
131
131
  }
132
132
 
133
- .loading-indicator-dots.loading-indicator-md {
133
+ .vd-loading-indicator-dots.vd-loading-indicator-md {
134
134
  --loading-dot: 4px;
135
135
  }
136
136
 
137
- .loading-indicator-dots.loading-indicator-lg {
137
+ .vd-loading-indicator-dots.vd-loading-indicator-lg {
138
138
  --loading-dot: 5px;
139
139
  }
140
140
 
141
141
  /* Secondary/Main, NOT the Primary the circle's arc uses. */
142
- .loading-indicator-dot {
142
+ .vd-loading-indicator-dot {
143
143
  @apply block shrink-0 rounded-pill;
144
144
  width: var(--loading-dot);
145
145
  height: var(--loading-dot);
@@ -148,11 +148,11 @@
148
148
  animation: valiify-loading-pulse 1.4s ease-in-out infinite;
149
149
  }
150
150
 
151
- .loading-indicator-dot:nth-child(2) {
151
+ .vd-loading-indicator-dot:nth-child(2) {
152
152
  animation-delay: 0.16s;
153
153
  }
154
154
 
155
- .loading-indicator-dot:nth-child(3) {
155
+ .vd-loading-indicator-dot:nth-child(3) {
156
156
  animation-delay: 0.32s;
157
157
  }
158
158
  }
@@ -177,8 +177,8 @@
177
177
  }
178
178
 
179
179
  @media (prefers-reduced-motion: reduce) {
180
- .loading-indicator:not(.loading-indicator-dots),
181
- .loading-indicator-dot {
180
+ .vd-loading-indicator:not(.vd-loading-indicator-dots),
181
+ .vd-loading-indicator-dot {
182
182
  animation: none;
183
183
  }
184
184
  }
@@ -5,13 +5,13 @@
5
5
  * (1028:2013) — 4 variants on a single `Size` axis.
6
6
  *
7
7
  * Usage:
8
- * <span class="loading-inline" role="status">
9
- * <span class="loading-indicator"></span>
8
+ * <span class="vd-loading-inline" role="status">
9
+ * <span class="vd-loading-indicator"></span>
10
10
  * Loading...
11
11
  * </span>
12
12
  *
13
- * <span class="loading-inline loading-inline-lg" role="status">
14
- * <span class="loading-indicator"></span>
13
+ * <span class="vd-loading-inline vd-loading-inline-lg" role="status">
14
+ * <span class="vd-loading-indicator"></span>
15
15
  * Loading...
16
16
  * </span>
17
17
  *
@@ -45,7 +45,7 @@
45
45
  */
46
46
 
47
47
  @layer components {
48
- .loading-inline {
48
+ .vd-loading-inline {
49
49
  @apply inline-flex items-center;
50
50
  gap: 6px; /* XS */
51
51
 
@@ -55,19 +55,19 @@
55
55
  @apply text-content-secondary;
56
56
  }
57
57
 
58
- .loading-inline-sm {
58
+ .vd-loading-inline-sm {
59
59
  gap: 8px;
60
60
  @apply text-[12px];
61
61
  line-height: 18px;
62
62
  }
63
63
 
64
- .loading-inline-md {
64
+ .vd-loading-inline-md {
65
65
  gap: 10px;
66
66
  @apply text-[14px];
67
67
  line-height: 21px;
68
68
  }
69
69
 
70
- .loading-inline-lg {
70
+ .vd-loading-inline-lg {
71
71
  gap: 12px;
72
72
  @apply text-[16px];
73
73
  line-height: 24px;
@@ -6,15 +6,15 @@
6
6
  * Extracted from Figma Menu Item (114:805) — 7 variants.
7
7
  *
8
8
  * Structure:
9
- * <button class="menu-item">
10
- * <span class="avatar avatar-md">NC</span> <!-- Optional avatar -->
11
- * <svg class="icon icon-size-15">…</svg> <!-- Optional left icon -->
12
- * <span class="menu-item-text">
13
- * <span class="menu-item-title">Combined</span>
14
- * <span class="menu-item-subtitle">Both Applicants</span> <!-- Optional -->
9
+ * <button class="vd-menu-item">
10
+ * <span class="vd-avatar vd-avatar-md">NC</span> <!-- Optional avatar -->
11
+ * <svg class="vd-icon vd-icon-size-15">…</svg> <!-- Optional left icon -->
12
+ * <span class="vd-menu-item-text">
13
+ * <span class="vd-menu-item-title">Combined</span>
14
+ * <span class="vd-menu-item-subtitle">Both Applicants</span> <!-- Optional -->
15
15
  * </span>
16
- * <span class="menu-item-right-text">⌘K</span> <!-- Optional -->
17
- * <svg class="icon icon-size-15">…</svg> <!-- Optional right icon -->
16
+ * <span class="vd-menu-item-right-text">⌘K</span> <!-- Optional -->
17
+ * <svg class="vd-icon vd-icon-size-15">…</svg> <!-- Optional right icon -->
18
18
  * </button>
19
19
  *
20
20
  * Icon sizes by menu size: sm = 12px, md / lg = 15px.
@@ -27,7 +27,7 @@
27
27
  @layer components {
28
28
  /* --- Base (defaults to md, the size used by Dropdown Menu) ---------- */
29
29
 
30
- .menu-item {
30
+ .vd-menu-item {
31
31
  /* Layout */
32
32
  @apply flex w-full items-center gap-2.5; /* 10px gap */
33
33
  @apply px-3 py-1.75; /* 12px / 7px */
@@ -47,55 +47,55 @@
47
47
 
48
48
  /* --- Parts ---------------------------------------------------------- */
49
49
 
50
- .menu-item-text {
50
+ .vd-menu-item-text {
51
51
  @apply flex flex-1 flex-col items-start;
52
52
  min-width: 0;
53
53
  }
54
54
 
55
- .menu-item-title {
55
+ .vd-menu-item-title {
56
56
  @apply w-full;
57
57
  }
58
58
 
59
- .menu-item-subtitle {
59
+ .vd-menu-item-subtitle {
60
60
  @apply w-full text-micro-l text-content-tertiary; /* 11px, all sizes */
61
61
  }
62
62
 
63
- .menu-item-right-text {
63
+ .vd-menu-item-right-text {
64
64
  @apply shrink-0 text-right text-micro-l-bold text-primary; /* 11px / 500 */
65
65
  }
66
66
 
67
67
  /* 20px tinted icon tile — the Combined variant's leading badge */
68
- .menu-item-badge {
68
+ .vd-menu-item-badge {
69
69
  @apply flex size-5 shrink-0 items-center justify-center;
70
70
  @apply rounded-control bg-primary-soft text-primary;
71
71
  }
72
72
 
73
73
  /* --- Sizes ---------------------------------------------------------- */
74
74
 
75
- .menu-item-sm {
75
+ .vd-menu-item-sm {
76
76
  @apply px-2.5 py-1.5; /* 10px / 6px */
77
77
  @apply text-micro-l; /* 11px / normal / 400 */
78
78
  }
79
79
 
80
- .menu-item-sm .menu-item-right-text {
80
+ .vd-menu-item-sm .vd-menu-item-right-text {
81
81
  @apply text-micro-m-bold; /* 8.5px / 500 */
82
82
  }
83
83
 
84
- .menu-item-md {
84
+ .vd-menu-item-md {
85
85
  @apply px-3 py-1.75; /* 12px / 7px — same as default */
86
86
  @apply text-body-2;
87
87
  }
88
88
 
89
- .menu-item-md .menu-item-right-text {
89
+ .vd-menu-item-md .vd-menu-item-right-text {
90
90
  @apply text-micro-l-bold;
91
91
  }
92
92
 
93
- .menu-item-lg {
93
+ .vd-menu-item-lg {
94
94
  @apply px-3 py-2.75; /* 12px / 11px */
95
95
  @apply text-body-1; /* 13px / 19.5px / 400 */
96
96
  }
97
97
 
98
- .menu-item-lg .menu-item-right-text {
98
+ .vd-menu-item-lg .vd-menu-item-right-text {
99
99
  @apply text-body-2-bold; /* 12.5px / 12.5px / 500 */
100
100
  }
101
101
 
@@ -104,21 +104,21 @@
104
104
  Primary is set on the row so the trailing check inherits it too, the way
105
105
  Figma's Combined variant renders. The subtitle keeps its own colour. */
106
106
 
107
- .menu-item-combined {
107
+ .vd-menu-item-combined {
108
108
  @apply text-primary;
109
109
  }
110
110
 
111
- .menu-item-combined .menu-item-title {
111
+ .vd-menu-item-combined .vd-menu-item-title {
112
112
  @apply text-body-1-bold; /* 13px / 19.5px / 500 */
113
113
  }
114
114
 
115
115
  /* --- States ---------------------------------------------------------- */
116
116
 
117
- .menu-item:hover:not(:disabled):not([aria-disabled="true"]) {
117
+ .vd-menu-item:hover:not(:disabled):not([aria-disabled="true"]) {
118
118
  @apply bg-action-hover;
119
119
  }
120
120
 
121
- .menu-item:focus-visible {
121
+ .vd-menu-item:focus-visible {
122
122
  @apply focus-ring;
123
123
  }
124
124
 
@@ -126,13 +126,13 @@
126
126
  Set on the row so the title AND any icons (which use currentColor) turn
127
127
  primary together, the way the Figma check mark renders. The subtitle and
128
128
  right text keep their own explicit colors. */
129
- .menu-item[aria-selected="true"],
130
- .menu-item[aria-checked="true"] {
129
+ .vd-menu-item[aria-selected="true"],
130
+ .vd-menu-item[aria-checked="true"] {
131
131
  @apply text-primary;
132
132
  }
133
133
 
134
- .menu-item:disabled,
135
- .menu-item[aria-disabled="true"] {
134
+ .vd-menu-item:disabled,
135
+ .vd-menu-item[aria-disabled="true"] {
136
136
  @apply cursor-not-allowed opacity-50;
137
137
  }
138
138
  }