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

+41 -35
View File
@@ -346,29 +346,31 @@ component Modal {
.wrn-modal__trigger {
appearance: none;
min-height: var(--wrn-control-height);
padding: 0.65rem 1rem;
padding: 0 0.95rem;
color: var(--modal-contrast);
background: var(--modal-accent);
border: 0;
background: linear-gradient(180deg, color-mix(in srgb, var(--modal-accent) 92%, white), var(--modal-accent));
border: 1px solid color-mix(in srgb, var(--modal-accent) 82%, black);
border-bottom-color: color-mix(in srgb, var(--modal-accent) 64%, black);
border-radius: var(--wrn-radius-sm);
box-shadow: var(--wrn-highlight-edge, none), 0 1px 2px color-mix(in srgb, var(--modal-accent) 30%, transparent);
font: inherit;
font-size: 0.85rem;
font-weight: 650;
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
transition: opacity 150ms ease, transform 150ms ease, box-shadow 150ms ease;
transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.wrn-modal__trigger:hover {
opacity: 0.92;
background: linear-gradient(180deg, color-mix(in srgb, var(--modal-accent) 94%, white), color-mix(in srgb, var(--modal-accent) 88%, black));
}
.wrn-modal__trigger:active {
transform: scale(0.97);
transform: translateY(1px);
}
.wrn-modal__trigger:focus-visible {
outline: none;
box-shadow: 0 0 0 3px color-mix(in srgb, var(--modal-accent) 40%, transparent);
outline: 2px solid color-mix(in srgb, var(--modal-accent) 80%, transparent);
outline-offset: 2px;
}
/*
@@ -420,9 +422,9 @@ component Modal {
z-index: 0;
appearance: none;
padding: 0;
background: color-mix(in srgb, black 62%, transparent);
background: rgb(10 11 14 / 0.56);
border: 0;
backdrop-filter: blur(9px);
backdrop-filter: blur(6px);
}
.wrn-modal__panel {
@@ -436,11 +438,11 @@ component Modal {
background: var(--wrn-color-surface-raised);
border: 1px solid var(--wrn-color-border);
border-radius: var(--wrn-radius-lg);
box-shadow: var(--wrn-shadow-lg);
box-shadow: var(--wrn-highlight-edge, none), var(--wrn-shadow-3);
overflow: hidden;
opacity: 0;
transform: scale(0.96) translateY(10px);
transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
transform: scale(0.97) translateY(8px);
transition: opacity 180ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.wrn-modal[data-open="true"] .wrn-modal__panel {
@@ -476,13 +478,12 @@ component Modal {
.wrn-modal[data-variant="soft"] .wrn-modal__panel {
background:
linear-gradient(145deg, var(--modal-soft), transparent 68%),
var(--wrn-color-surface-raised);
}
.wrn-modal[data-variant="outline"] .wrn-modal__panel {
background: var(--wrn-color-surface-raised);
box-shadow: 0 24px 72px color-mix(in srgb, black 24%, transparent);
box-shadow: var(--wrn-shadow-3);
}
.wrn-modal[data-variant="solid"] .wrn-modal__panel {
@@ -496,8 +497,7 @@ component Modal {
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
padding: 1.25rem;
border-bottom: 1px solid var(--wrn-color-border);
padding: 1.25rem 1.25rem 0.5rem;
}
.wrn-modal__heading {
@@ -509,9 +509,9 @@ component Modal {
.wrn-modal__icon {
flex: 0 0 auto;
width: 1.3rem;
height: 1.3rem;
margin-top: 0.15rem;
width: 1.25rem;
height: 1.25rem;
margin-top: 0.125rem;
color: var(--modal-accent);
}
@@ -532,14 +532,15 @@ component Modal {
.wrn-modal__heading-copy h2 {
color: inherit;
font-size: 1.08rem;
font-size: 1.0625rem;
font-weight: 650;
line-height: 1.3;
letter-spacing: -0.015em;
line-height: 1.35;
}
.wrn-modal__heading-copy p {
color: var(--wrn-color-text-muted);
font-size: 0.8rem;
font-size: 0.8125rem;
line-height: 1.55;
}
@@ -589,7 +590,7 @@ component Modal {
.wrn-modal__close:hover {
color: var(--wrn-color-text);
background: var(--wrn-color-surface-soft);
background: var(--wrn-color-surface-muted, var(--wrn-color-surface-soft));
}
.wrn-modal__close:focus-visible {
@@ -653,8 +654,9 @@ component Modal {
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 1rem 1.25rem;
padding: 0.875rem 1.25rem;
border-top: 1px solid var(--wrn-color-border);
background: var(--wrn-color-surface-soft, transparent);
}
.wrn-modal__custom-footer:empty {
@@ -676,29 +678,33 @@ component Modal {
justify-content: center;
gap: 0.5rem;
min-height: var(--wrn-control-height, 2.5rem);
padding: 0.65rem 1rem;
padding: 0 0.95rem;
border-radius: var(--wrn-radius-sm);
font: inherit;
font-size: 0.83rem;
font-weight: 650;
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
transition: transform 150ms ease, opacity 150ms ease, border-color 150ms ease;
transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.wrn-modal__button:active {
transform: scale(0.985);
transform: translateY(1px);
}
.wrn-modal__button--secondary {
color: var(--wrn-color-text);
background: transparent;
background: linear-gradient(180deg, var(--wrn-color-surface), var(--wrn-color-surface-soft, var(--wrn-color-surface)));
border: 1px solid var(--wrn-color-border);
border-bottom-color: var(--wrn-color-border-strong, var(--wrn-color-border));
box-shadow: var(--wrn-shadow-1);
}
.wrn-modal__button--primary {
color: var(--modal-contrast);
background: var(--modal-accent);
border: 1px solid transparent;
background: linear-gradient(180deg, color-mix(in srgb, var(--modal-accent) 92%, white), var(--modal-accent));
border: 1px solid color-mix(in srgb, var(--modal-accent) 82%, black);
border-bottom-color: color-mix(in srgb, var(--modal-accent) 64%, black);
box-shadow: var(--wrn-highlight-edge, none), 0 1px 2px color-mix(in srgb, var(--modal-accent) 30%, transparent);
}
/*