feat(ui): component redesign pass and fixes, release ui 0.8.87
Redesign - Shared field foundation rules (duplicated across 15 form components and emitted globally) are now identical everywhere, so later copies no longer silently override earlier redesigns. - Drawn checkbox and radio controls, white switch thumbs (the thumb was the text colour, a black blob in light mode), recessed field wells, keycap actions in Modal, Drawer, Popover, Toaster, Pagination, Stepper, DataTable. - Menus (Dropdown, ContextMenu, Popover, Select dropdown, Navbar panels) share one flat raised panel with neutral hover rows and mono section labels. - Alerts with an accent rail and icon chip; card headers without the grey band; accordion, collapse, list, list group, timeline, stats, metrics, chat, skeleton, avatar group, clipboard, splitter, section, sidebar, navbar and upload progress restyled. - Chart rebuilt: nice y-axis ticks, gridlines, rounded bars, line and area modes, hover tooltips, hidden series leave the scale. Fixes - Checkbox and radio labels toggle their input again (empty for="" broke it). - TimePicker kept every clicked time pressed; only the chosen hour and minute are pressed now, and nothing is pressed before a value exists. - ColorPicker hex readout now follows the picked colour. - Disabled FileInput no longer shows the native file-input text. - Date and time panels float instead of pushing content. - ContextMenu opened at the pointer closes on scroll. - Drawer left/top/bottom placements slide from their own edge again. - Image-only Card no longer renders an empty body strip. - Timeline supports item.time, current/upcoming states, sizes and compact/alternate variants; showcase demos use distinct variants. - ChatBubble: delivery receipts (sending/sent/delivered/read/failed/error) and meta aligned to its bubble. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5eae6f3b3c
commit
1bed8e4b74
93 files changed
+4439
-1915
No files matched your search
@@ -324,7 +324,10 @@ component Card {
|
||||
|
||||
style {
|
||||
.wrn-next__card-custom-footer:empty { display:none; }
|
||||
.wrn-next__card-header:not(:has(strong,h1,h2,h3,h4,p,button,[data-slot])), .wrn-next__card-footer:not(:has(> span, > a, > .wrn-next__card-custom-footer:not(:empty))) { display:none; }
|
||||
/* An image-only card renders empty regions that hold only <template>
|
||||
markers; collapse them so the image is the whole card. */
|
||||
.wrn-next__card-body:not(:has(> :not(template))) { display: none; }
|
||||
.wrn-next__card-content:not(:has(.wrn-next__card-body > :not(template))):not(:has(.wrn-next__card-header :is(strong, h1, h2, h3, h4, p, button, [data-slot]))):not(:has(.wrn-next__card-footer > :is(span, a), .wrn-next__card-custom-footer:not(:empty))) { display: none; } .wrn-next__card-header:not(:has(strong,h1,h2,h3,h4,p,button,[data-slot])), .wrn-next__card-footer:not(:has(> span, > a, > .wrn-next__card-custom-footer:not(:empty))) { display:none; }
|
||||
.wrn-next__card-media--overlay {
|
||||
aspect-ratio: 16 / 9;
|
||||
min-height: 18rem;
|
||||
@@ -410,7 +413,44 @@ component Card {
|
||||
}
|
||||
|
||||
.wrn-next__card-header {
|
||||
border-bottom: 1px solid var(--wrn-color-border);
|
||||
align-items: flex-start;
|
||||
padding-block: 1rem 0.875rem;
|
||||
border-bottom: 1px solid color-mix(in srgb, var(--wrn-color-border) 75%, transparent);
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.wrn-next__card-heading {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.2rem;
|
||||
}
|
||||
|
||||
.wrn-next__card-header h3 {
|
||||
margin: 0;
|
||||
color: var(--wrn-color-text);
|
||||
font-size: 0.9375rem;
|
||||
font-weight: 620;
|
||||
letter-spacing: -0.012em;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.wrn-next__card-header .wrn-next__card-subtitle {
|
||||
margin: 0;
|
||||
color: var(--wrn-color-text-muted, var(--wrn-color-muted));
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 450;
|
||||
letter-spacing: 0;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.wrn-next__card-eyebrow {
|
||||
margin: 0;
|
||||
color: var(--wrn-color-primary-text, var(--wrn-color-primary));
|
||||
font-family: var(--wrn-font-mono, monospace);
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.wrn-next__card-footer {
|
||||
@@ -763,7 +803,7 @@ component Card {
|
||||
|
||||
.wrn-component p {
|
||||
margin: 0;
|
||||
color: var(--wrn-color-muted);
|
||||
color: var(--wrn-color-text-muted, var(--wrn-color-muted));
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user