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
@@ -310,32 +310,31 @@ component ToggleCount {
|
||||
|
||||
.wrn-next__toggle-count-segmented {
|
||||
display: inline-flex;
|
||||
gap: 0.2rem;
|
||||
padding: 0.2rem;
|
||||
border-radius: calc(var(--wrn-radius-sm) + 0.15rem);
|
||||
background: var(--wrn-color-surface-2);
|
||||
box-shadow: inset 0 0 0 1px var(--wrn-color-border);
|
||||
gap: 0.125rem;
|
||||
padding: 0.1875rem;
|
||||
border-radius: calc(var(--wrn-radius-sm) + 0.1875rem);
|
||||
background: var(--wrn-color-surface-muted, var(--wrn-color-surface-2));
|
||||
box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.06), inset 0 0 0 1px var(--wrn-color-border);
|
||||
}
|
||||
|
||||
.wrn-next__toggle-count-segmented button {
|
||||
min-height: 2.35rem;
|
||||
padding: 0.45rem 0.8rem;
|
||||
min-height: 2rem;
|
||||
padding: 0.35rem 0.8rem;
|
||||
border: 0;
|
||||
border-radius: var(--wrn-radius-sm);
|
||||
background: transparent;
|
||||
color: var(--wrn-color-muted);
|
||||
color: var(--wrn-color-text-muted);
|
||||
font: inherit;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: color 120ms ease, background-color 120ms ease;
|
||||
}
|
||||
|
||||
.wrn-next__toggle-count-segmented button[aria-pressed="true"] {
|
||||
background: var(--wrn-color-surface);
|
||||
background: var(--wrn-color-surface-raised, var(--wrn-color-surface));
|
||||
color: var(--wrn-color-text);
|
||||
box-shadow:
|
||||
var(--wrn-shadow-1),
|
||||
inset 0 -2px var(--wrn-toggle-count-accent);
|
||||
box-shadow: 0 0 0 1px var(--wrn-color-border), var(--wrn-shadow-1);
|
||||
}
|
||||
|
||||
.wrn-next__toggle-count-segmented button:focus-visible,
|
||||
@@ -366,14 +365,15 @@ component ToggleCount {
|
||||
|
||||
.wrn-next__toggle-count-switch {
|
||||
position: relative;
|
||||
width: 2.65rem;
|
||||
height: 1.45rem;
|
||||
padding: 0.15rem;
|
||||
border: 1px solid var(--wrn-color-border);
|
||||
width: 2.375rem;
|
||||
height: 1.375rem;
|
||||
padding: 0.125rem;
|
||||
border: 1px solid color-mix(in srgb, var(--wrn-color-border-strong, var(--wrn-color-border)) 70%, transparent);
|
||||
border-radius: 999px;
|
||||
background: var(--wrn-color-surface-2);
|
||||
background: var(--wrn-color-surface-muted, var(--wrn-color-surface-2));
|
||||
box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.1);
|
||||
cursor: pointer;
|
||||
transition: background-color var(--wrn-motion-fast) var(--wrn-ease-standard);
|
||||
transition: background-color var(--wrn-motion-base) var(--wrn-ease-standard);
|
||||
}
|
||||
|
||||
.wrn-next__toggle-count-switch > span {
|
||||
@@ -381,19 +381,19 @@ component ToggleCount {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
border-radius: 50%;
|
||||
background: var(--wrn-color-text);
|
||||
box-shadow: var(--wrn-shadow-1);
|
||||
transition: transform var(--wrn-motion-fast) var(--wrn-ease-standard);
|
||||
background: #fff;
|
||||
box-shadow: 0 1px 2px rgb(0 0 0 / 0.22), 0 0 0 0.5px rgb(0 0 0 / 0.06);
|
||||
transition: transform var(--wrn-motion-base) var(--wrn-ease-emphasized);
|
||||
}
|
||||
|
||||
.wrn-next__toggle-count-switch[aria-checked="true"] {
|
||||
border-color: var(--wrn-toggle-count-accent);
|
||||
border-color: color-mix(in srgb, var(--wrn-toggle-count-accent) 80%, black);
|
||||
background: var(--wrn-toggle-count-accent);
|
||||
}
|
||||
|
||||
.wrn-next__toggle-count-switch[aria-checked="true"] > span {
|
||||
background: white;
|
||||
transform: translateX(1.15rem);
|
||||
background: #fff;
|
||||
transform: translateX(1rem);
|
||||
}
|
||||
|
||||
.wrn-next__toggle-count-items {
|
||||
@@ -401,8 +401,9 @@ component ToggleCount {
|
||||
grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--wrn-color-border);
|
||||
border-radius: var(--wrn-radius-md);
|
||||
border-radius: var(--wrn-radius);
|
||||
background: var(--wrn-color-surface);
|
||||
box-shadow: var(--wrn-shadow-1);
|
||||
}
|
||||
|
||||
.wrn-next__toggle-count-items article {
|
||||
@@ -427,7 +428,9 @@ component ToggleCount {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 0.2rem;
|
||||
font-size: 1.5rem;
|
||||
font-size: 1.625rem;
|
||||
font-weight: 650;
|
||||
letter-spacing: -0.035em;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
@@ -533,7 +536,7 @@ component ToggleCount {
|
||||
|
||||
.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