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

+77 -31
View File
@@ -69,7 +69,7 @@ size: string = "default"
disabled="{item.disabled}"
@click="toggleItem(index, item)"
>
<span>{isOpen(index) ? (item.closeLabel || "Read less") : item.label}</span>
<span>{isOpen(index) && (mode === "inline" || item.closeLabel) ? (item.closeLabel || "Read less") : item.label}</span>
<span class="icon-[lucide--chevron-down] wrn-next__collapse-chevron" aria-hidden="true"></span>
</button>
@@ -109,36 +109,48 @@ size: string = "default"
display: grid;
width: 100%;
min-width: 0;
gap: 0.75rem;
gap: 0.625rem;
color: var(--wrn-color-text);
}
.wrn-next__collapse-item {
display: grid;
min-width: 0;
justify-items: start;
justify-items: stretch;
gap: 0;
overflow: hidden;
border: 1px solid var(--wrn-color-border);
border-radius: var(--wrn-radius);
background: var(--wrn-color-surface);
box-shadow: var(--wrn-shadow-1);
transition: border-color 160ms ease, box-shadow 160ms ease;
}
.wrn-next__collapse-trigger {
display: inline-flex;
min-height: 2.75rem;
display: flex;
width: 100%;
min-height: 3rem;
align-items: center;
justify-content: center;
gap: 0.55rem;
padding: 0.7rem 1rem;
border: 1px solid var(--wrn-collapse-color);
border-radius: var(--wrn-radius-sm);
background: var(--wrn-collapse-color);
color: var(--wrn-color-primary-contrast, #fff);
justify-content: space-between;
gap: 0.75rem;
padding: 0.75rem 1rem;
border: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
color: var(--wrn-color-text);
font: inherit;
font-weight: 700;
font-size: 0.9rem;
font-weight: 600;
letter-spacing: -0.008em;
text-align: left;
cursor: pointer;
transition: background-color 120ms ease;
}
.wrn-next__collapse-trigger:focus-visible {
outline: 2px solid var(--wrn-collapse-color);
outline-offset: 3px;
outline-offset: -2px;
}
.wrn-next__collapse-trigger:disabled {
@@ -147,7 +159,11 @@ size: string = "default"
}
.wrn-next__collapse-chevron {
transition: transform var(--wrn-motion-fast) var(--wrn-ease-standard);
flex: none;
width: 1rem;
height: 1rem;
color: var(--wrn-color-text-subtle, var(--wrn-color-muted));
transition: transform var(--wrn-motion-base) var(--wrn-ease-emphasized);
}
.wrn-next__collapse-item[data-open="true"] .wrn-next__collapse-chevron {
@@ -155,20 +171,17 @@ size: string = "default"
}
.wrn-next__collapse-panel {
width: min(100%, 42rem);
width: 100%;
max-height: 0;
overflow: hidden;
margin-top: 0;
opacity: 0;
transition:
max-height 350ms var(--wrn-ease-emphasized),
margin-top 300ms var(--wrn-ease-emphasized),
opacity 200ms var(--wrn-ease-standard);
transition: max-height 320ms var(--wrn-ease-emphasized), opacity 200ms var(--wrn-ease-standard);
}
.wrn-next__collapse-panel[data-open="true"] {
max-height: 40rem;
margin-top: 0.75rem;
margin-top: 0;
opacity: 1;
}
@@ -176,11 +189,16 @@ size: string = "default"
display: grid;
overflow: hidden;
min-height: 0;
gap: 0.65rem;
padding: 1rem;
border: 1px solid var(--wrn-color-border);
border-radius: var(--wrn-radius-md);
background: var(--wrn-color-surface-raised, var(--wrn-color-surface));
gap: 0.5rem;
padding: 0.875rem 1rem 1rem;
border: 0;
border-top: 1px solid var(--wrn-color-border);
border-radius: 0;
background: var(--wrn-color-surface-soft, transparent);
box-shadow: none;
color: var(--wrn-color-text-muted);
font-size: 0.875rem;
line-height: 1.6;
}
.wrn-next__collapse-content h4,
@@ -196,13 +214,18 @@ size: string = "default"
}
.wrn-next__collapse-content a {
color: var(--wrn-collapse-color);
font-weight: 650;
color: var(--wrn-color-primary-text, var(--wrn-collapse-color));
font-weight: 600;
text-decoration: none;
}
.wrn-next--collapse[data-mode="inline"] .wrn-next__collapse-item {
gap: 0;
overflow: visible;
justify-items: start;
border: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
}
.wrn-next--collapse[data-mode="inline"] .wrn-next__collapse-preview {
@@ -221,13 +244,15 @@ size: string = "default"
.wrn-next--collapse[data-mode="inline"] .wrn-next__collapse-trigger {
order: 3;
width: fit-content;
margin-top: 0.5rem;
min-height: auto;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
color: var(--wrn-collapse-color);
color: var(--wrn-color-primary-text, var(--wrn-collapse-color));
font-size: 0.875rem;
}
.wrn-next--collapse[data-mode="inline"] .wrn-next__collapse-content {
@@ -308,8 +333,29 @@ size: string = "default"
.wrn-component p {
margin: 0;
color: var(--wrn-color-muted);
color: var(--wrn-color-text-muted, var(--wrn-color-muted));
line-height: 1.6;
}
.wrn-next__collapse-trigger:hover:not(:disabled) {
background: var(--wrn-color-surface-soft);
}
.wrn-next__collapse-item[data-open="true"] {
border-color: var(--wrn-color-border-strong, var(--wrn-color-border));
box-shadow: var(--wrn-shadow-2);
}
.wrn-next--collapse[data-mode="inline"] .wrn-next__collapse-trigger:hover:not(:disabled) {
background: transparent;
text-decoration: underline;
text-underline-offset: 0.2em;
}
.wrn-next__collapse-content h4 {
color: var(--wrn-color-text);
font-size: 0.875rem;
font-weight: 620;
}
}
}