@valiify/dashboard-ui 0.7.0 → 0.8.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.
- package/CHANGELOG.md +211 -3
- package/COMPONENTS.md +39 -31
- package/README.md +1 -1
- package/class-manifest.json +97 -4
- package/design-methodology/dashboard.md +676 -308
- package/dist/dashboard-ui.css +495 -124
- package/dist/index.css +191 -124
- package/package.json +2 -2
- package/src/components/button.css +11 -10
- package/src/components/checkbox.css +4 -2
- package/src/components/checklist-group.css +9 -2
- package/src/components/composer.css +11 -9
- package/src/components/divider.css +1 -1
- package/src/components/dropdown-field.css +30 -18
- package/src/components/dropdown-menu.css +6 -4
- package/src/components/filter-segment.css +2 -1
- package/src/components/finding-card.css +4 -1
- package/src/components/funding-status.css +3 -2
- package/src/components/funding-total.css +6 -2
- package/src/components/funding-transaction.css +21 -3
- package/src/components/input.css +60 -21
- package/src/components/link.css +6 -2
- package/src/components/loading-indicator.css +5 -5
- package/src/components/menu-item.css +85 -15
- package/src/components/modal.css +2 -2
- package/src/components/navigation-rail.css +12 -2
- package/src/components/pill.css +3 -2
- package/src/components/recipient-input.css +4 -4
- package/src/components/section-marker.css +4 -3
- package/src/components/sensitive-data.css +8 -4
- package/src/components/tabs.css +4 -5
- package/src/components/tag.css +11 -7
- package/src/components/textarea.css +38 -18
- package/src/components/toast.css +12 -9
- package/src/components/tooltip.css +4 -1
- package/src/utility-surface.css +93 -1
- package/types/components.d.ts +2 -1
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
* size box ring track arc
|
|
29
29
|
* XS 12 1.5 Stroke/Divider Primary/Main
|
|
30
30
|
* SM 16 2 Stroke/Divider Primary/Main
|
|
31
|
-
* MD 24 2.
|
|
32
|
-
* LG 32 3
|
|
31
|
+
* MD 24 2.5 Stroke/Divider Primary/Main
|
|
32
|
+
* LG 32 3 Stroke/Divider Primary/Main
|
|
33
33
|
*
|
|
34
34
|
* Those are the annulus thicknesses in the exported Track paths (XS outer r=6
|
|
35
35
|
* inner r=4.5; MD 12/9.48; LG 16/12.96) and they are what Figma renders —
|
|
@@ -108,12 +108,12 @@
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.vd-loading-indicator-md:not(.vd-loading-indicator-dots) {
|
|
111
|
-
--loading-ring: 2.
|
|
111
|
+
--loading-ring: 2.5px; /* the file's real ellipses state 2.5 (was 2.52, traced from the old SVG) */
|
|
112
112
|
@apply size-6; /* 24px */
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
.vd-loading-indicator-lg:not(.vd-loading-indicator-dots) {
|
|
116
|
-
--loading-ring: 3.
|
|
116
|
+
--loading-ring: 3px; /* 3 (was 3.04) */
|
|
117
117
|
@apply size-8; /* 32px */
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
@apply block shrink-0 rounded-pill;
|
|
144
144
|
width: var(--loading-dot);
|
|
145
145
|
height: var(--loading-dot);
|
|
146
|
-
@apply bg-secondary;
|
|
146
|
+
@apply bg-content-secondary; /* Figma binds Content/Secondary (2026-11-30; was Secondary/Main — the same value in both themes) */
|
|
147
147
|
|
|
148
148
|
animation: valiify-loading-pulse 1.4s ease-in-out infinite;
|
|
149
149
|
}
|
|
@@ -15,11 +15,28 @@
|
|
|
15
15
|
* Figma's measured value per size — x 10 / 12 / 12, y 2 / 4 / 6 — and gap is
|
|
16
16
|
* 10 at every size. verify:height-scale rule 3 REQUIRES min-h-control-* here.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
18
|
+
* THE ROW DRAWS ITS OWN ICONS (2026-11-30). Size, stroke and colour of the
|
|
19
|
+
* icon slots are set HERE, not by the markup's `.vd-icon-size-*` class, which
|
|
20
|
+
* these rules outrank — Figma's _Menu Leading / _Menu Trailing sets fix them
|
|
21
|
+
* per menu size:
|
|
22
|
+
*
|
|
23
|
+
* leading icon sm 14px / 1px md, lg 16px / 1.25px Neutral/Main
|
|
24
|
+
* tile glyph sm, md 12px / 1px (20 tile) lg 16px / 1.25px (28 tile)
|
|
25
|
+
* Neutral/Main on the Primary/Soft tile (was Primary/Main)
|
|
26
|
+
* chevrons 14px / 1px at every size Neutral/Main (was Content/Secondary)
|
|
27
|
+
* check 14px / 1px at every size Primary/Main
|
|
28
|
+
* action glyph 14px / 1px (Icon Button inline 18) Secondary/Main, its own
|
|
29
|
+
*
|
|
30
|
+
* The strokes are RENDERED pixels: `--icon-stroke` is in the sprite's 24-unit
|
|
31
|
+
* viewBox, so each is px × 24 / size (1px at 14 = 1.714286; 1.25px at 16 =
|
|
32
|
+
* 1.875; 1px at 12 = 2). The icon ramp alone gives 1.25px at 14, which is why
|
|
33
|
+
* the trailing glyphs need their own value. The leading Avatar is Avatar sm
|
|
34
|
+
* (16), md (20) at lg; the Checkbox is the 15px Checkbox control.
|
|
35
|
+
*
|
|
36
|
+
* Neutral/Main is 2.81:1 on Paper in Light (2.50 on a hovered row) — under the
|
|
37
|
+
* 3:1 a meaningful graphic needs. The leading glyphs sit beside a label that
|
|
38
|
+
* says the same; the chevron's meaning is also `aria-haspopup`. As drawn;
|
|
39
|
+
* designer list.
|
|
23
40
|
*
|
|
24
41
|
* Structure:
|
|
25
42
|
* <button class="vd-menu-item vd-menu-item-lg" role="menuitem">
|
|
@@ -33,7 +50,7 @@
|
|
|
33
50
|
* </button>
|
|
34
51
|
*
|
|
35
52
|
* TONE — `.vd-menu-item-critical` recolours the title Critical/Main and
|
|
36
|
-
* nothing else;
|
|
53
|
+
* nothing else; the icons keep their sizes, strokes and colours.
|
|
37
54
|
*
|
|
38
55
|
* REMOVED IN 0.5.0 (deprecated in 0.4.0): `.vd-menu-item-badge`, now
|
|
39
56
|
* `.vd-menu-item-tile` (identical rule; the codemod renames it), and
|
|
@@ -101,21 +118,52 @@
|
|
|
101
118
|
|
|
102
119
|
/* --- Leading slots (_Menu Leading 1304:4764) ------------------------- */
|
|
103
120
|
|
|
104
|
-
/*
|
|
121
|
+
/* Leading glyph — Neutral/Main. The colour is single-class (0,1,0) so a
|
|
122
|
+
call-site colour utility still wins; size and stroke are (0,2,0) or more,
|
|
123
|
+
so they outrank whatever `.vd-icon-size-*` the markup carries. md and lg:
|
|
124
|
+
16px, 1.25px. sm: 14px, 1px (in the Sizes block below, after this).
|
|
125
|
+
|
|
126
|
+
A BARE `.vd-icon` that is a direct child of the row and carries no
|
|
127
|
+
trailing class is the leading glyph too: earlier docs wrote it without
|
|
128
|
+
`.vd-menu-item-icon` (at 15px), and the row must draw it the same way.
|
|
129
|
+
Its colour is under :where() — zero specificity — for the same reason
|
|
130
|
+
the slot class's is single-class. */
|
|
105
131
|
.vd-menu-item-icon {
|
|
106
|
-
@apply shrink-0;
|
|
132
|
+
@apply shrink-0 text-neutral;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:where(.vd-menu-item > .vd-icon:not(.vd-menu-item-check, .vd-menu-item-chevron, .vd-menu-item-chevron-left)) {
|
|
136
|
+
@apply text-neutral;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.vd-menu-item .vd-menu-item-icon,
|
|
140
|
+
.vd-menu-item > .vd-icon:not(.vd-menu-item-check, .vd-menu-item-chevron, .vd-menu-item-chevron-left) {
|
|
141
|
+
@apply size-4; /* 16 */
|
|
142
|
+
--icon-stroke: 1.875; /* 1.25px at 16 */
|
|
107
143
|
}
|
|
108
144
|
|
|
109
|
-
/* 20px tinted icon tile (Kind=Tile, Size=sm); 28 for the lg tile
|
|
145
|
+
/* 20px tinted icon tile (Kind=Tile, Size=sm and md); 28 for the lg tile.
|
|
146
|
+
Its glyph is Neutral/Main on the Primary/Soft fill, as _Menu Leading binds
|
|
147
|
+
it (was Primary/Main, 7.43:1; Neutral/Main is 2.48 here in Light). */
|
|
110
148
|
.vd-menu-item-tile {
|
|
111
149
|
@apply flex size-5 shrink-0 items-center justify-center;
|
|
112
|
-
@apply rounded-
|
|
150
|
+
@apply rounded-pill bg-primary-soft text-neutral; /* a circle — _Menu Leading's Tile is radius 9999 (2026-11-30; was 6px) */
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.vd-menu-item-tile > .vd-icon {
|
|
154
|
+
@apply size-3; /* 12 */
|
|
155
|
+
--icon-stroke: 2; /* 1px at 12 */
|
|
113
156
|
}
|
|
114
157
|
|
|
115
158
|
.vd-menu-item-tile-lg {
|
|
116
159
|
@apply size-7; /* 28px — Kind=Tile, Size=lg */
|
|
117
160
|
}
|
|
118
161
|
|
|
162
|
+
.vd-menu-item-tile-lg > .vd-icon {
|
|
163
|
+
@apply size-4; /* 16 */
|
|
164
|
+
--icon-stroke: 1.875; /* 1.25px at 16 */
|
|
165
|
+
}
|
|
166
|
+
|
|
119
167
|
/* Wrappers that mark the slot; the Avatar (xs, 16) and Checkbox (15) are the
|
|
120
168
|
existing components inside them */
|
|
121
169
|
.vd-menu-item-avatar,
|
|
@@ -125,17 +173,24 @@
|
|
|
125
173
|
|
|
126
174
|
/* --- Trailing slots (_Menu Trailing 1304:4844) ----------------------- */
|
|
127
175
|
|
|
128
|
-
/* 14px glyphs
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
Content/Secondary. */
|
|
176
|
+
/* 14px glyphs with a 1px stroke at every size. The check is Primary/Main
|
|
177
|
+
ITSELF since 0.7.0, as Figma binds it on _Menu Trailing's Check kind (it
|
|
178
|
+
used to inherit the selected row's colour); chevrons are Neutral/Main
|
|
179
|
+
since 2026-11-30 (were Content/Secondary). */
|
|
132
180
|
.vd-menu-item-check {
|
|
133
181
|
@apply shrink-0 text-primary;
|
|
134
182
|
}
|
|
135
183
|
|
|
136
184
|
.vd-menu-item-chevron,
|
|
137
185
|
.vd-menu-item-chevron-left {
|
|
138
|
-
@apply shrink-0 text-
|
|
186
|
+
@apply shrink-0 text-neutral;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.vd-menu-item .vd-menu-item-check,
|
|
190
|
+
.vd-menu-item .vd-menu-item-chevron,
|
|
191
|
+
.vd-menu-item .vd-menu-item-chevron-left {
|
|
192
|
+
@apply size-3.5; /* 14 */
|
|
193
|
+
--icon-stroke: 1.714286; /* 1px at 14 — the icon ramp's 14 is 1.25px */
|
|
139
194
|
}
|
|
140
195
|
|
|
141
196
|
/* Submenu back affordance — leads the row despite being a Trailing kind */
|
|
@@ -156,6 +211,13 @@
|
|
|
156
211
|
@apply flex shrink-0 items-center;
|
|
157
212
|
}
|
|
158
213
|
|
|
214
|
+
/* The Icon Button's 14px glyph at a 1px stroke; its Secondary/Main colour
|
|
215
|
+
is the Icon Button's own. */
|
|
216
|
+
.vd-menu-item-action .vd-icon {
|
|
217
|
+
@apply size-3.5; /* 14 */
|
|
218
|
+
--icon-stroke: 1.714286; /* 1px at 14 */
|
|
219
|
+
}
|
|
220
|
+
|
|
159
221
|
/* Trailing switch (0.6.0) — _Menu Trailing Kind=Switch: a Switch instance,
|
|
160
222
|
32×18 at every row size. Holds `.vd-switch`. The row is then a <label>,
|
|
161
223
|
not a <button>: a label wrapping the switch's own input makes the whole
|
|
@@ -178,6 +240,14 @@
|
|
|
178
240
|
@apply text-supporting-caption-strong; /* 12 / 18 / 500 (was Micro M 8.5) */
|
|
179
241
|
}
|
|
180
242
|
|
|
243
|
+
/* sm leading glyph — 14px, 1px. Same specificity as the base rule above,
|
|
244
|
+
and later, so it wins on an sm row. */
|
|
245
|
+
.vd-menu-item-sm .vd-menu-item-icon,
|
|
246
|
+
.vd-menu-item-sm > .vd-icon:not(.vd-menu-item-check, .vd-menu-item-chevron, .vd-menu-item-chevron-left) {
|
|
247
|
+
@apply size-3.5; /* 14 */
|
|
248
|
+
--icon-stroke: 1.714286; /* 1px at 14 */
|
|
249
|
+
}
|
|
250
|
+
|
|
181
251
|
/* Identical to the bare base — md IS the default (Figma's own default
|
|
182
252
|
variant is sm since the re-cut; the md base is the library convention —
|
|
183
253
|
divergence noted with the designer). */
|
package/src/components/modal.css
CHANGED
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
.vd-modal {
|
|
84
84
|
/* Layout — 480px fixed width, height follows content */
|
|
85
85
|
@apply flex w-120 flex-col items-start gap-6; /* 480px, 24px between sections */
|
|
86
|
-
@apply p-
|
|
86
|
+
@apply p-7.75; /* 31px — Figma 32 − the 1px border */
|
|
87
87
|
|
|
88
88
|
/* Shape — 12px is a raw Figma value, not a token; see the header */
|
|
89
89
|
@apply rounded-[12px];
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
|
|
170
170
|
.vd-modal-context {
|
|
171
171
|
@apply flex w-full items-center;
|
|
172
|
-
@apply p-
|
|
172
|
+
@apply p-2.75; /* 11px — Figma 12 − the 1px border */
|
|
173
173
|
@apply rounded-surface; /* 8px */
|
|
174
174
|
@apply border border-[length:var(--border-line)] border-stroke-border;
|
|
175
175
|
@apply bg-surface-frame;
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
/* Layout */
|
|
180
180
|
@apply flex items-center gap-2; /* 8px */
|
|
181
181
|
@apply px-2; /* 8px; no vertical padding — 46px height centres instead */
|
|
182
|
-
@apply h-11.5; /* 46px */
|
|
182
|
+
@apply h-11.5 shrink-0; /* 46px — and it does not give way when the rail's content overflows */
|
|
183
183
|
|
|
184
184
|
/* Shape */
|
|
185
185
|
@apply rounded-tight; /* Radius/XS 4px */
|
|
@@ -600,7 +600,7 @@
|
|
|
600
600
|
non-disabled element, but it is what the file specifies. */
|
|
601
601
|
.vd-nav-badge {
|
|
602
602
|
@apply inline-flex shrink-0 items-center justify-center;
|
|
603
|
-
@apply h-4 px-
|
|
603
|
+
@apply h-4 px-0.75; /* Rev3: 16px (was 14); 3px (Figma 4 − the rendered border) */
|
|
604
604
|
@apply rounded-micro; /* Radius/Micro 2px */
|
|
605
605
|
@apply border border-[length:var(--border-thin)] border-primary-disabled;
|
|
606
606
|
@apply bg-primary-soft text-primary-dark;
|
|
@@ -911,4 +911,14 @@
|
|
|
911
911
|
.vd-nav-rail-actions {
|
|
912
912
|
@apply flex w-full flex-col gap-1 pt-2 pb-1; /* 4px, 8px, 4px */
|
|
913
913
|
}
|
|
914
|
+
|
|
915
|
+
/* Collapsed (Figma's State=Rail): the actions group has no bottom padding,
|
|
916
|
+
and the footer group stacks its cells 4px apart. */
|
|
917
|
+
.vd-nav-rail-collapsed .vd-nav-rail-actions {
|
|
918
|
+
@apply pb-0;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
.vd-nav-rail-collapsed.vd-nav-rail-sidebar .vd-nav-rail-footer {
|
|
922
|
+
@apply gap-1;
|
|
923
|
+
}
|
|
914
924
|
}
|
package/src/components/pill.css
CHANGED
|
@@ -44,8 +44,9 @@
|
|
|
44
44
|
.vd-pill {
|
|
45
45
|
/* Layout */
|
|
46
46
|
@apply inline-flex shrink-0 items-center gap-1.25; /* 5px gap */
|
|
47
|
-
@apply px-2.25 py-0.5; /* 9px / 2px */
|
|
48
|
-
|
|
47
|
+
@apply px-2.25 py-0.5; /* 9px / 2px — 22px tall: 2 + the 18px line + 2 */
|
|
48
|
+
/* No height pin since 2026-11-30: Figma's Pill hugs at 22 (it was pinned
|
|
49
|
+
to 17 — designer-list item 49, answered by the file). */
|
|
49
50
|
|
|
50
51
|
/* Shape — no border at any state */
|
|
51
52
|
@apply rounded-pill;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
.vd-recipient-input-shell {
|
|
44
44
|
/* Layout — chips wrap; lg: 12 / 5 padding, 4px chip gap */
|
|
45
45
|
@apply flex w-full flex-wrap items-center gap-1;
|
|
46
|
-
@apply min-h-control-lg px-
|
|
46
|
+
@apply min-h-control-lg px-2.75 py-1.25; /* 11 / 5 (Figma 12 / 6 − hairline) */
|
|
47
47
|
|
|
48
48
|
/* Shape */
|
|
49
49
|
@apply rounded-control; /* 6px */
|
|
@@ -98,19 +98,19 @@
|
|
|
98
98
|
|
|
99
99
|
/* Identical to the bare base — lg IS the default (there is no md). */
|
|
100
100
|
.vd-recipient-input-lg .vd-recipient-input-shell {
|
|
101
|
-
@apply min-h-control-lg gap-1 px-
|
|
101
|
+
@apply min-h-control-lg gap-1 px-2.75 py-1.25; /* floor 32; 11 / 5 (Figma 12 / 6 − hairline); chip gap 4 */
|
|
102
102
|
@apply text-supporting-caption; /* 12 / 18 (was Micro L 11) */
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.vd-recipient-input-xl .vd-recipient-input-shell {
|
|
106
|
-
@apply min-h-control-xl gap-1.5 px-
|
|
106
|
+
@apply min-h-control-xl gap-x-1 gap-y-1.5 px-3.75 py-0.75; /* floor 40; 15 / 3 (Figma 16 / 4 − hairline); chips 4 apart, rows 6 apart */
|
|
107
107
|
@apply text-body-dense; /* 13 / 18 / 400 */
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
/* --- Helper -------------------------------------------------------------- */
|
|
111
111
|
|
|
112
112
|
.vd-recipient-input-helper {
|
|
113
|
-
@apply m-0 pl-
|
|
113
|
+
@apply m-0 pl-1 text-supporting-caption text-content-tertiary; /* 12; 4px inset (Figma's Helper, was 16) */
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.vd-recipient-input-error .vd-recipient-input-helper {
|
|
@@ -57,10 +57,11 @@
|
|
|
57
57
|
|
|
58
58
|
/* --- Parts -------------------------------------------------------------- */
|
|
59
59
|
|
|
60
|
-
/* mismatch's mark. A filled
|
|
61
|
-
|
|
60
|
+
/* mismatch's mark. A filled 6px circle since 2026-11-30 — Figma now nests a
|
|
61
|
+
Chip dot SM (6px) centred in the 16px box (it was an 8px dot). Colour comes
|
|
62
|
+
from the status class. */
|
|
62
63
|
.vd-section-marker-dot {
|
|
63
|
-
@apply size-
|
|
64
|
+
@apply size-1.5; /* 6px */
|
|
64
65
|
@apply rounded-pill;
|
|
65
66
|
@apply bg-current;
|
|
66
67
|
}
|
|
@@ -58,13 +58,17 @@
|
|
|
58
58
|
|
|
59
59
|
@layer components {
|
|
60
60
|
.vd-sensitive-data {
|
|
61
|
-
/* Layout — 4px (Spacing/4) between the value and its toggle
|
|
62
|
-
|
|
61
|
+
/* Layout — 4px (Spacing/4) between the value and its toggle; 24px tall
|
|
62
|
+
(2 + the 20px line + 2), as the set draws it since 2026-11-30. */
|
|
63
|
+
@apply inline-flex items-center gap-1 py-0.5;
|
|
63
64
|
}
|
|
64
65
|
|
|
65
|
-
/*
|
|
66
|
+
/* Body/Default (14 / 20) since 2026-11-30 — the value Data Row already gave
|
|
67
|
+
it — masked and revealed alike, so the value does not change size when it
|
|
68
|
+
is toggled (decided 2026-11-30; Figma's revealed state was Body/Dense and
|
|
69
|
+
is fixed in the file, item 116). */
|
|
66
70
|
.vd-sensitive-data-value {
|
|
67
|
-
@apply text-
|
|
71
|
+
@apply text-body-default text-content-primary;
|
|
68
72
|
}
|
|
69
73
|
|
|
70
74
|
/* --- States --------------------------------------------------------- */
|
package/src/components/tabs.css
CHANGED
|
@@ -81,10 +81,9 @@
|
|
|
81
81
|
* label; underline's old 8px / 6px padding-y and the chip's implied slack are
|
|
82
82
|
* gone. The active underline rule is a 2px bottom border inside the box.
|
|
83
83
|
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* follows the binding, not the label; the label is on the designer list.
|
|
84
|
+
* Chip and segment are Size=sm in the file and bind Height/Control/SM (24) —
|
|
85
|
+
* the old Size=lg label is fixed (re-read 2026-11-30). Underline lg binds LG
|
|
86
|
+
* (32), underline sm SM (24).
|
|
88
87
|
*
|
|
89
88
|
* The badge slot is the existing Chip component — `.badge badge-neutral` maps
|
|
90
89
|
* onto it byte-for-byte. Do not build a new part for it. There is no icon slot
|
|
@@ -183,7 +182,7 @@
|
|
|
183
182
|
/* chip and segment share everything but radius and active fill */
|
|
184
183
|
.vd-tab-chip,
|
|
185
184
|
.vd-tab-segment {
|
|
186
|
-
@apply h-control-sm gap-1 px-
|
|
185
|
+
@apply h-control-sm gap-1 px-2.75; /* SM 24px (Figma's Size=sm since the re-cut), 4px gap, 11px padding-x (Figma 12 − the reserved hairline) */
|
|
187
186
|
/* The ACTIVE hairline, reserved transparent at rest: these boxes hug, so
|
|
188
187
|
a border that only appears when active widened the tab by the rendered
|
|
189
188
|
1px per side (measured Δ2px) and shifted its neighbours. Height is
|
package/src/components/tag.css
CHANGED
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
.vd-tag {
|
|
93
93
|
/* Layout — sm is the base: Height/Control/XS, no padding-y */
|
|
94
94
|
@apply inline-flex shrink-0 items-center gap-2.5; /* 10px at sm */
|
|
95
|
-
@apply h-control-xs px-2
|
|
95
|
+
@apply h-control-xs px-2; /* 20px, 8px (Figma 9 − the rendered border) */
|
|
96
96
|
|
|
97
97
|
/* Shape */
|
|
98
98
|
@apply rounded-pill;
|
|
@@ -129,24 +129,24 @@
|
|
|
129
129
|
/* Raw 20 in Figma — unbound, and the same height as sm; only padding and
|
|
130
130
|
gap are denser. Was a raw 16 before Rev3. */
|
|
131
131
|
.vd-tag-xs {
|
|
132
|
-
@apply h-5 gap-1.5 px-1.
|
|
132
|
+
@apply h-5 gap-1.5 px-1.25; /* 20px, 6px gap, 5px (Figma 6 − border) */
|
|
133
133
|
@apply text-action-compact;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
/* Identical to the bare base — sm IS the default. */
|
|
137
137
|
.vd-tag-sm {
|
|
138
|
-
@apply h-control-xs gap-2.5 px-2
|
|
138
|
+
@apply h-control-xs gap-2.5 px-2; /* XS 20px, 10px gap, 8px (Figma 9 − border) */
|
|
139
139
|
@apply text-action-compact;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
/* Kind=default only in Figma. */
|
|
143
143
|
.vd-tag-md {
|
|
144
|
-
@apply h-control-sm gap-2 px-2
|
|
144
|
+
@apply h-control-sm gap-2 px-2; /* SM 24px, 8px gap, 8px (Figma 9 − border) */
|
|
145
145
|
@apply text-action-compact;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
.vd-tag-lg {
|
|
149
|
-
@apply h-control-lg gap-2 px-2.
|
|
149
|
+
@apply h-control-lg gap-2 px-2.25; /* LG 32px, 8px gap, 9px (Figma's raw 10 − border) */
|
|
150
150
|
@apply text-action-default; /* 13 / 18 / 500 */
|
|
151
151
|
}
|
|
152
152
|
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
Chip dot SM instance, so it is `.vd-dot vd-dot-sm` plus a colour — status
|
|
173
173
|
colours, `vd-dot-info`, or `vd-dot-misc` with a hue. */
|
|
174
174
|
.vd-tag-label {
|
|
175
|
-
@apply h-auto gap-1.5 py-0.5 pr-2
|
|
175
|
+
@apply h-auto gap-1.5 py-0.5 pr-2 pl-1.75; /* 6px gap, 2px / 8px / 7px (Figma 9 / 8 − border) */
|
|
176
176
|
@apply rounded-control; /* 6px */
|
|
177
177
|
@apply border-[length:var(--border-line)] border-stroke-border;
|
|
178
178
|
@apply bg-surface-paper text-content-secondary;
|
|
@@ -190,7 +190,11 @@
|
|
|
190
190
|
SM chip inside the 20px sm tag — an overflow (designer-list item 25) —
|
|
191
191
|
so the wrapper grows instead of the chip overflowing. The compound
|
|
192
192
|
selector deliberately outranks the size classes. */
|
|
193
|
-
|
|
193
|
+
/* xs / sm / md only: an lg tag stays on its 32px LG step (Figma's lg
|
|
194
|
+
external tags are 32; the nested chip is a hidden layer there). Through
|
|
195
|
+
2026-11-30 this rule outranked .vd-tag-lg and shrank an lg external tag
|
|
196
|
+
to 24. */
|
|
197
|
+
.vd-tag-external:not(.vd-tag-lg):has(.vd-chip) {
|
|
194
198
|
height: auto;
|
|
195
199
|
@apply min-h-control-sm; /* hugs: 20px chip + hairlines, floored at 24 */
|
|
196
200
|
}
|
|
@@ -15,9 +15,11 @@
|
|
|
15
15
|
* VERTICAL PADDING IS NOT 0 HERE, unlike the pinned controls — a floor box is
|
|
16
16
|
* top-aligned and its padding is real geometry. THE FLOOR-TIER RULE: floor
|
|
17
17
|
* components subtract the rendered 1px hairline per side from their vertical
|
|
18
|
-
* padding; height-bound components don't need to, height clamps.
|
|
19
|
-
*
|
|
20
|
-
* strokesIncludedInLayout=false draws it inside)
|
|
18
|
+
* padding; height-bound components don't need to, height clamps. The border
|
|
19
|
+
* ADDS 1px per side to a content-driven box (Figma's
|
|
20
|
+
* strokesIncludedInLayout=false draws it inside) — a real 1px since
|
|
21
|
+
* 2026-11-30, and before that the 0.5px hairline Chrome floored to 1 — so
|
|
22
|
+
* Figma's measured padding
|
|
21
23
|
* (3/5/4/6/10) would render every one-line field ~1.5px above its floor. The
|
|
22
24
|
* CSS twin of the Figma bug, not a property of the design. Padding-y is
|
|
23
25
|
* therefore (floor − 2 − lineBox) / 2, rounded down: xs 2, sm 4, md 3, lg 5,
|
|
@@ -76,13 +78,15 @@
|
|
|
76
78
|
(Figma's 4 minus the rendered hairline). The field hugs the <textarea>
|
|
77
79
|
above the floor, so the consumer still sets the working size with
|
|
78
80
|
`rows`, a height utility, or by dragging. */
|
|
79
|
-
@apply min-h-control-md px-2.
|
|
81
|
+
@apply min-h-control-md px-2.25 py-0.75; /* 9 / 3 — Figma 10 / 4 − the border */
|
|
80
82
|
|
|
81
83
|
/* Shape */
|
|
82
84
|
@apply rounded-control; /* 6px */
|
|
83
85
|
|
|
84
|
-
/* Border
|
|
85
|
-
|
|
86
|
+
/* Border — 1px Stroke/Border at rest (2026-11-30; was 0.5px Divider).
|
|
87
|
+
Chrome already rendered the half pixel as 1, so the floor paddings
|
|
88
|
+
below, which subtract the rendered 1px per side, are unchanged. */
|
|
89
|
+
@apply border border-[length:var(--border-line)] border-stroke-border;
|
|
86
90
|
|
|
87
91
|
/* Background - default: white */
|
|
88
92
|
@apply bg-surface-paper;
|
|
@@ -130,28 +134,28 @@
|
|
|
130
134
|
− hairlines, i.e. 0 at xs and 2 at sm. md–xl keep the minus-hairline rule
|
|
131
135
|
— their 18px line sits under the floor either way. */
|
|
132
136
|
.vd-textarea-xs {
|
|
133
|
-
@apply min-h-control-xs px-1.
|
|
137
|
+
@apply min-h-control-xs px-1.25 py-0; /* floor 20 = 18 line + 2 hairlines */
|
|
134
138
|
@apply text-supporting-caption; /* 12 / 18 / 400 (was Micro L 11) */
|
|
135
139
|
}
|
|
136
140
|
|
|
137
141
|
.vd-textarea-sm {
|
|
138
|
-
@apply min-h-control-sm px-
|
|
142
|
+
@apply min-h-control-sm px-1.75 py-0.5; /* floor 24 = 18 + 2+2 + hairlines */
|
|
139
143
|
@apply text-supporting-caption;
|
|
140
144
|
}
|
|
141
145
|
|
|
142
146
|
/* Identical to the bare base — md IS the default. */
|
|
143
147
|
.vd-textarea-md {
|
|
144
|
-
@apply min-h-control-md px-2.
|
|
148
|
+
@apply min-h-control-md px-2.25 py-0.75; /* floor 28, 9 / 3 (Figma 10 / 4 − border) */
|
|
145
149
|
@apply text-body-dense; /* 13 / 18 / 400 */
|
|
146
150
|
}
|
|
147
151
|
|
|
148
152
|
.vd-textarea-lg {
|
|
149
|
-
@apply min-h-control-lg px-
|
|
153
|
+
@apply min-h-control-lg px-2.75 py-1.25; /* floor 32, 11 / 5 (Figma 12 / 6 − border) */
|
|
150
154
|
@apply text-body-dense;
|
|
151
155
|
}
|
|
152
156
|
|
|
153
157
|
.vd-textarea-xl {
|
|
154
|
-
@apply min-h-control-xl px-
|
|
158
|
+
@apply min-h-control-xl px-3.75 py-2.25; /* floor 40, 15 / 9 (Figma 16 / 10 − border) */
|
|
155
159
|
@apply text-body-dense;
|
|
156
160
|
}
|
|
157
161
|
|
|
@@ -173,12 +177,21 @@
|
|
|
173
177
|
|
|
174
178
|
/* --- States ------------------------------------------------------ */
|
|
175
179
|
|
|
176
|
-
/* Hover
|
|
177
|
-
|
|
178
|
-
|
|
180
|
+
/* Hover — Content/Faint (was Stroke/Border). Excludes ERROR by name: the
|
|
181
|
+
:not() guards give it (0,5,0), above the (0,2,0) error rule, so through
|
|
182
|
+
0.7.0 a field in error lost its red border on hover. Text Area's error
|
|
183
|
+
stays Critical/Main hovered and focused (Input Field alone steps to
|
|
184
|
+
Critical/Strong). */
|
|
185
|
+
.vd-textarea-field:hover:not(:has(:disabled)):not(.vd-textarea-disabled):not(.vd-textarea-error) {
|
|
186
|
+
@apply border-content-faint;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* Focus — Primary/Main border, as Figma's State=active draws it, under the
|
|
190
|
+
2px ring (see input.css). After hover at equal specificity. */
|
|
191
|
+
.vd-textarea-field:focus-within:not(:has(:disabled)):not(.vd-textarea-disabled):not(.vd-textarea-error) {
|
|
192
|
+
@apply border-primary;
|
|
179
193
|
}
|
|
180
194
|
|
|
181
|
-
/* Focus */
|
|
182
195
|
.vd-textarea-field:focus-within {
|
|
183
196
|
@apply focus-ring;
|
|
184
197
|
/* The active halo (0.6.0) — 3px Primary/Soft, a 0-blur spread shadow on
|
|
@@ -192,10 +205,17 @@
|
|
|
192
205
|
@apply border-critical;
|
|
193
206
|
}
|
|
194
207
|
|
|
195
|
-
/* Disabled
|
|
208
|
+
/* Disabled — Stroke/Disabled border (was Stroke/Divider), except in error:
|
|
209
|
+
Figma's disabled + error variants keep Critical/Main, which this rule used
|
|
210
|
+
to override (same specificity, later in the file). */
|
|
196
211
|
.vd-textarea-field:has(:disabled),
|
|
197
212
|
.vd-textarea-field.vd-textarea-disabled {
|
|
198
|
-
@apply bg-action-subtle
|
|
213
|
+
@apply bg-action-subtle cursor-not-allowed;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.vd-textarea-field:has(:disabled):not(.vd-textarea-error),
|
|
217
|
+
.vd-textarea-field.vd-textarea-disabled:not(.vd-textarea-error) {
|
|
218
|
+
@apply border-stroke-disabled;
|
|
199
219
|
}
|
|
200
220
|
|
|
201
221
|
.vd-textarea-bg-neutral:has(:disabled),
|
|
@@ -211,7 +231,7 @@
|
|
|
211
231
|
|
|
212
232
|
.vd-textarea-error-message {
|
|
213
233
|
@apply flex items-center w-full pt-1.5; /* 6px top padding */
|
|
214
|
-
@apply text-
|
|
234
|
+
@apply text-body-default; /* 14 / 20 — Figma's Error Message binds Body/Default (2026-11-30; was a raw 11px) */
|
|
215
235
|
@apply text-critical-strong;
|
|
216
236
|
}
|
|
217
237
|
|
package/src/components/toast.css
CHANGED
|
@@ -63,13 +63,16 @@
|
|
|
63
63
|
* `--shadow-toast`; Simple uses the named General Drop Shadow, which is already
|
|
64
64
|
* `--shadow-panel`. They are not interchangeable.
|
|
65
65
|
*
|
|
66
|
-
* SIMPLE'S HEIGHT IS PINNED AT
|
|
67
|
-
*
|
|
68
|
-
* 10 +
|
|
69
|
-
* values derive
|
|
66
|
+
* SIMPLE'S HEIGHT IS PINNED AT 40 (2026-11-30; 38 in Rev3, 35 before), and
|
|
67
|
+
* must be pinned. The label is Body/Default's 20px line, so Figma's frame is
|
|
68
|
+
* 10 + 20 + 10 = 40 with the stroke drawn inside; under border-box the same
|
|
69
|
+
* values derive 42. The pin restores Figma's rendered size and flex centring
|
|
70
70
|
* keeps the 15px icon centred. Same trap button.css and pill.css document —
|
|
71
71
|
* a bordered box must be sized, never derived.
|
|
72
72
|
*
|
|
73
|
+
* TYPE, 2026-11-30: the title is Body/Default Strong (14/20/500) and Simple's
|
|
74
|
+
* label Body/Default (14/20) — Full is 108 tall (was 106), Simple 40.
|
|
75
|
+
*
|
|
73
76
|
* REV3 TYPE (2026-09-30). Title binds Body/Dense Strong (13/18/500), message
|
|
74
77
|
* Body/Default (14/20 — grew from the 12px Caption), Simple's label
|
|
75
78
|
* Body/Dense (13/18), and the timestamp Data/Compact — the same 12/16.5
|
|
@@ -103,7 +106,7 @@
|
|
|
103
106
|
.vd-toast {
|
|
104
107
|
/* Layout — Full */
|
|
105
108
|
@apply flex w-89 flex-col items-start gap-3; /* 356px, 12px */
|
|
106
|
-
@apply p-
|
|
109
|
+
@apply p-3.75; /* 15px — Figma 16 − the 1px border (2026-11-30; was 16, 2px over Figma) */
|
|
107
110
|
|
|
108
111
|
/* Shape */
|
|
109
112
|
@apply rounded-surface; /* 8px */
|
|
@@ -139,7 +142,7 @@
|
|
|
139
142
|
|
|
140
143
|
/* Rev3: Body/Dense Strong — 13/18, Medium/500 despite the "Strong". */
|
|
141
144
|
.vd-toast-title {
|
|
142
|
-
@apply text-body-
|
|
145
|
+
@apply text-body-default-strong; /* 14 / 20 / 500 — 2026-11-30, was Body/Dense Strong 13 / 18 */
|
|
143
146
|
@apply text-content-primary;
|
|
144
147
|
}
|
|
145
148
|
|
|
@@ -184,8 +187,8 @@
|
|
|
184
187
|
exhaustive on purpose rather than relying on what happens to cascade. */
|
|
185
188
|
.vd-toast-simple {
|
|
186
189
|
@apply inline-flex w-70 flex-row items-center justify-center gap-2.25; /* 280px, 9px */
|
|
187
|
-
@apply px-
|
|
188
|
-
@apply h-[
|
|
190
|
+
@apply px-3.75 py-2.5; /* 15px (Figma 16 − border) / 10px — height pinned */
|
|
191
|
+
@apply h-[40px]; /* pinned — 10 + 20 + 10 since 2026-11-30 (was 38); see the header */
|
|
189
192
|
|
|
190
193
|
@apply rounded-pill;
|
|
191
194
|
@apply border border-[length:var(--border-line)] border-stroke-divider;
|
|
@@ -195,7 +198,7 @@
|
|
|
195
198
|
1.1:1 in Onyx). */
|
|
196
199
|
@apply bg-inverse-surface text-inverse-content;
|
|
197
200
|
|
|
198
|
-
@apply text-body-
|
|
201
|
+
@apply text-body-default; /* 14 / 20 / 400 — 2026-11-30, was Body/Dense 13 / 18 */
|
|
199
202
|
|
|
200
203
|
/* The NAMED General Drop Shadow, where Full uses its own local effect. */
|
|
201
204
|
@apply shadow-panel;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
.vd-tooltip {
|
|
36
36
|
/* Layout */
|
|
37
37
|
@apply flex w-70 flex-col items-start gap-1.5; /* 280px, 6px */
|
|
38
|
-
@apply px-
|
|
38
|
+
@apply px-3.75 py-2.75; /* 15px / 11px — Figma 16 / 12 − the 1px border */
|
|
39
39
|
|
|
40
40
|
/* Shape */
|
|
41
41
|
@apply rounded-control; /* 6px */
|
|
@@ -82,6 +82,9 @@
|
|
|
82
82
|
.vd-tooltip-divider {
|
|
83
83
|
@apply w-full border-none;
|
|
84
84
|
height: var(--border-thin);
|
|
85
|
+
/* Figma's divider is a 0-height vector with a centred stroke: it takes no
|
|
86
|
+
layout height, so neither does this. */
|
|
87
|
+
margin-block: calc(var(--border-thin) / -2);
|
|
85
88
|
@apply bg-content-secondary;
|
|
86
89
|
}
|
|
87
90
|
}
|