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
@@ -319,19 +319,24 @@ component Sidebar {
|
||||
|
||||
.wrn-sidebar__rail {
|
||||
width: 100%;
|
||||
padding: 0.5rem;
|
||||
border: 1px solid var(--wrn-color-border);
|
||||
border-radius: var(--wrn-radius);
|
||||
background: var(--wrn-color-surface-soft, var(--wrn-color-surface));
|
||||
}
|
||||
|
||||
.wrn-sidebar__list,
|
||||
.wrn-sidebar__sublist {
|
||||
display: grid;
|
||||
gap: 0.1rem;
|
||||
gap: 0.125rem;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.wrn-sidebar__sublist {
|
||||
margin-inline-start: 0.85rem;
|
||||
margin-inline-start: 1rem;
|
||||
margin-block: 0.125rem;
|
||||
padding-inline-start: 0.5rem;
|
||||
border-inline-start: 1px solid var(--wrn-color-border);
|
||||
}
|
||||
@@ -346,6 +351,7 @@ component Sidebar {
|
||||
width: 1.05rem;
|
||||
height: 1.05rem;
|
||||
flex-shrink: 0;
|
||||
color: var(--wrn-color-text-subtle, var(--wrn-color-text-muted));
|
||||
}
|
||||
|
||||
.wrn-sidebar__entry[data-group="true"] + .wrn-sidebar__entry {
|
||||
@@ -353,28 +359,32 @@ component Sidebar {
|
||||
}
|
||||
|
||||
.wrn-sidebar__heading {
|
||||
margin: 0.9rem 0 0.35rem;
|
||||
color: var(--wrn-color-text-muted);
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
margin: 0.875rem 0.625rem 0.375rem;
|
||||
color: var(--wrn-color-text-subtle, var(--wrn-color-text-muted));
|
||||
font-family: var(--wrn-font-mono, monospace);
|
||||
font-size: 0.65rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.wrn-sidebar__link {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.45rem 0.6rem;
|
||||
border-radius: var(--wrn-radius-sm);
|
||||
min-height: 2rem;
|
||||
padding: 0.375rem 0.625rem;
|
||||
border-radius: calc(var(--wrn-radius-sm) - 1px);
|
||||
color: var(--wrn-color-text-muted);
|
||||
font-size: 0.88rem;
|
||||
font-weight: 600;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 550;
|
||||
text-decoration: none;
|
||||
transition: background-color 120ms ease, color 120ms ease;
|
||||
}
|
||||
|
||||
.wrn-sidebar__link:hover {
|
||||
background: var(--wrn-color-surface-soft);
|
||||
background: var(--wrn-color-surface-muted, var(--wrn-color-surface-soft));
|
||||
color: var(--wrn-color-text);
|
||||
}
|
||||
|
||||
@@ -384,8 +394,10 @@ component Sidebar {
|
||||
}
|
||||
|
||||
.wrn-sidebar__link[data-active="true"] {
|
||||
background: color-mix(in srgb, var(--sidebar-accent) 16%, transparent);
|
||||
color: var(--sidebar-accent);
|
||||
background: var(--wrn-color-surface-raised, var(--wrn-color-surface));
|
||||
color: var(--wrn-color-text);
|
||||
font-weight: 600;
|
||||
box-shadow: 0 0 0 1px var(--wrn-color-border), var(--wrn-shadow-1);
|
||||
}
|
||||
|
||||
.wrn-sidebar__link[aria-disabled="true"] {
|
||||
@@ -399,24 +411,32 @@ component Sidebar {
|
||||
|
||||
.wrn-sidebar__badge {
|
||||
margin-inline-start: auto;
|
||||
padding: 0.05rem 0.4rem;
|
||||
min-width: 1.25rem;
|
||||
padding: 0.0625rem 0.4rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--sidebar-accent) 16%, transparent);
|
||||
color: var(--sidebar-accent);
|
||||
font-size: 0.72rem;
|
||||
background: var(--wrn-color-surface-muted, var(--wrn-color-surface-2));
|
||||
color: var(--wrn-color-text-muted);
|
||||
font-size: 0.68rem;
|
||||
font-weight: 650;
|
||||
font-variant-numeric: tabular-nums;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.wrn-sidebar__launcher {
|
||||
display: none;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.45rem 0.7rem;
|
||||
min-height: 2.25rem;
|
||||
padding: 0 0.75rem;
|
||||
border: 1px solid var(--wrn-color-border);
|
||||
border-bottom-color: var(--wrn-color-border-strong, var(--wrn-color-border));
|
||||
border-radius: var(--wrn-radius-sm);
|
||||
background: var(--wrn-color-surface);
|
||||
background: linear-gradient(180deg, var(--wrn-color-surface), var(--wrn-color-surface-soft, var(--wrn-color-surface)));
|
||||
box-shadow: var(--wrn-shadow-1);
|
||||
color: var(--wrn-color-text);
|
||||
font: inherit;
|
||||
font-size: 0.9rem;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@@ -443,5 +463,24 @@ component Sidebar {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.wrn-sidebar__link[data-active="true"]::before {
|
||||
position: absolute;
|
||||
inset-block: 0.4rem;
|
||||
inset-inline-start: -0.5rem;
|
||||
width: 3px;
|
||||
border-radius: 0 3px 3px 0;
|
||||
background: var(--sidebar-accent);
|
||||
content: "";
|
||||
}
|
||||
|
||||
.wrn-sidebar__link[data-active="true"] .wrn-sidebar__icon {
|
||||
color: var(--sidebar-accent);
|
||||
}
|
||||
|
||||
.wrn-sidebar__link[data-active="true"] .wrn-sidebar__badge {
|
||||
background: color-mix(in srgb, var(--sidebar-accent) 14%, var(--wrn-color-surface));
|
||||
color: var(--wrn-color-primary-text, var(--sidebar-accent));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user