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:
ClintchizandClaude Opus 5.5 committed 2026-09-30 16:18:13 +05:30
1 parent 5eae6f3b3c
commit 1bed8e4b74
93 files changed
+4439 -1915

No files matched your search

+30 -23
View File
@@ -145,11 +145,14 @@ component Alert {
}
style {
/* Soft: a quiet tinted panel with an accent rail on the leading edge. The
rail is a background layer so it never fights the shadow prop. */
.wrn-next--alert-soft {
border-color: color-mix(in srgb, var(--wrn-alert-color) 45%, var(--wrn-color-border));
background: var(--wrn-alert-soft);
border-color: color-mix(in srgb, var(--wrn-alert-color) 24%, var(--wrn-color-border));
background:
linear-gradient(var(--wrn-alert-color), var(--wrn-alert-color)) left / 3px 100% no-repeat,
var(--wrn-alert-soft);
}
.wrn-next--alert-soft .wrn-next__alert-title,
.wrn-next--alert-soft .wrn-next__alert-icon,
.wrn-next--alert-soft .wrn-next__alert-actions a {
color: var(--wrn-alert-ink, var(--wrn-color-primary-text));
@@ -179,7 +182,6 @@ component Alert {
border-color: var(--wrn-alert-ink, var(--wrn-color-primary-text));
background: var(--wrn-color-surface);
}
.wrn-next--alert-bordered .wrn-next__alert-title,
.wrn-next--alert-bordered .wrn-next__alert-icon,
.wrn-next--alert-bordered .wrn-next__alert-actions a {
color: var(--wrn-alert-ink, var(--wrn-color-primary-text));
@@ -189,7 +191,6 @@ component Alert {
border-left: 4px solid var(--wrn-alert-color);
background: var(--wrn-alert-soft);
}
.wrn-next--alert-accent .wrn-next__alert-title,
.wrn-next--alert-accent .wrn-next__alert-icon,
.wrn-next--alert-accent .wrn-next__alert-actions a {
color: var(--wrn-alert-ink, var(--wrn-color-primary-text));
@@ -197,12 +198,13 @@ component Alert {
.wrn-next--alert {
--wrn-alert-color: var(--wrn-component-color);
--wrn-alert-soft: color-mix(in srgb, var(--wrn-alert-color) 16%, var(--wrn-color-surface));
--wrn-alert-soft: color-mix(in srgb, var(--wrn-alert-color) 7%, var(--wrn-color-surface));
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
gap: 0.8rem;
align-items: start;
gap: 0.75rem;
width: 100%;
padding: 1rem;
padding: 0.875rem 1rem 0.875rem 1.125rem;
border: 1px solid transparent;
border-radius: var(--wrn-radius, 0.75rem);
color: var(--wrn-color-text);
@@ -229,19 +231,15 @@ component Alert {
}
.wrn-next--alert[data-shadow="sm"] {
box-shadow: 0 6px 16px color-mix(in srgb, #000 14%, transparent);
box-shadow: var(--wrn-shadow-1);
}
.wrn-next--alert[data-shadow="md"] {
box-shadow:
0 2px 6px color-mix(in srgb, #000 10%, transparent),
0 12px 28px color-mix(in srgb, #000 18%, transparent);
box-shadow: var(--wrn-shadow-2);
}
.wrn-next--alert[data-shadow="lg"] {
box-shadow:
0 4px 10px color-mix(in srgb, #000 12%, transparent),
0 20px 48px color-mix(in srgb, #000 24%, transparent);
box-shadow: var(--wrn-shadow-3);
}
.wrn-next--alert[data-color="secondary"] {
@@ -298,13 +296,19 @@ component Alert {
.wrn-next__alert-icon {
display: inline-grid;
width: 1.25rem;
height: 1.25rem;
width: 1.75rem;
height: 1.75rem;
place-items: center;
margin-top: 0.05rem;
margin-top: -0.125rem;
border-radius: var(--wrn-radius-sm, 0.5rem);
background: color-mix(in srgb, var(--wrn-alert-color) 14%, transparent);
color: var(--wrn-alert-ink, var(--wrn-color-primary-text));
}
.wrn-next--alert-solid .wrn-next__alert-icon {
background: rgb(255 255 255 / 0.18);
}
.wrn-next__alert-icon > span {
width: 1rem;
height: 1rem;
@@ -313,18 +317,21 @@ component Alert {
.wrn-next__alert-body {
display: grid;
min-width: 0;
gap: 0.35rem;
gap: 0.25rem;
}
.wrn-next__alert-title {
font-size: 0.88rem;
color: var(--wrn-color-text);
font-size: 0.875rem;
font-weight: 620;
letter-spacing: -0.01em;
line-height: 1.45;
}
.wrn-next__alert-body > p,
.wrn-next__alert-body li {
color: inherit;
font-size: 0.8rem;
color: var(--wrn-color-text-muted, var(--wrn-color-muted));
font-size: 0.8125rem;
line-height: 1.55;
}
@@ -459,7 +466,7 @@ component Alert {
.wrn-component p {
margin: 0;
color: var(--wrn-color-muted);
color: var(--wrn-color-text-muted, var(--wrn-color-muted));
line-height: 1.6;
}
}