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

+52 -45
View File
@@ -16,8 +16,8 @@ component SelectStyles {
.wrn-next--advanced-select > label:first-child,
.wrn-next--advanced-select .wrn-next__row > label {
color: var(--wrn-color-text);
font-size: 0.82em;
font-weight: 700;
font-size: 0.8125rem;
font-weight: 600;
}
.wrn-next--advanced-select .wrn-next__row {
display: flex;
@@ -26,33 +26,35 @@ component SelectStyles {
gap: 1rem;
}
.wrn-next--advanced-select small {
color: var(--wrn-color-muted);
font-size: 0.72em;
color: var(--wrn-color-text-subtle, var(--wrn-color-muted));
font-size: 0.75rem;
}
.wrn-next__select-search input,
.wrn-next--advanced-select select {
width: 100%;
min-height: 2.6em;
padding: 0.62em 0.75em;
border: 1px solid var(--wrn-color-border);
border-radius: var(--wrn-radius-sm);
min-height: 2.25rem;
padding: 0.45em 0.75em;
border: 1px solid var(--wrn-color-input-border, var(--wrn-color-border));
border-radius: calc(var(--wrn-radius-sm) - 2px);
color: var(--wrn-color-text);
background: var(--wrn-color-surface);
background: var(--wrn-color-input-background, var(--wrn-color-surface));
box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.04);
font: inherit;
font-size: 0.8125rem;
}
.wrn-next__search-icon {
position: absolute;
top: 50%;
left: 0.75em;
z-index: 1;
color: var(--wrn-component-color);
color: var(--wrn-color-text-subtle, var(--wrn-color-muted));
transform: translateY(-50%);
}
.wrn-next--advanced-select select:focus-visible,
.wrn-next__select-search input:focus-visible {
border-color: var(--wrn-component-color);
outline: 2px solid color-mix(in srgb, var(--wrn-component-color) 24%, transparent);
outline-offset: 1px;
outline: 0;
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wrn-component-color) 18%, transparent);
}
.wrn-next--advanced-select select[multiple] {
min-height: 8rem;
@@ -69,11 +71,11 @@ component SelectStyles {
width: fit-content;
padding: 0;
border: 0;
color: var(--wrn-component-color);
color: var(--wrn-color-primary-text, var(--wrn-component-color));
background: transparent;
font: inherit;
font-size: 0.75em;
font-weight: 700;
font-size: 0.78rem;
font-weight: 600;
cursor: pointer;
}
.wrn-next--invalid :is(input, select) {
@@ -114,18 +116,17 @@ component SelectStyles {
align-items: center;
justify-content: space-between;
gap: 0.75rem;
padding: 0.55em 2.75em 0.55em 0.8em;
border: 1px solid var(--wrn-color-border);
padding: 0.45em 2.75em 0.45em 0.85em;
border: 1px solid var(--wrn-color-input-border, var(--wrn-color-border));
border-radius: var(--wrn-radius-sm);
color: var(--wrn-color-text);
background: var(--wrn-color-bg);
background: var(--wrn-color-input-background, var(--wrn-color-surface));
box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.04);
font: inherit;
font-size: 0.875rem;
text-align: left;
cursor: pointer;
transition:
border-color var(--wrn-motion-base) var(--wrn-ease-standard),
box-shadow var(--wrn-motion-base) var(--wrn-ease-standard);
transition: border-color var(--wrn-motion-base) var(--wrn-ease-standard), box-shadow var(--wrn-motion-base) var(--wrn-ease-standard);
}
.wrn-next--open .wrn-next__select-trigger,
.wrn-next__select-trigger:focus-visible {
@@ -159,19 +160,20 @@ component SelectStyles {
}
.wrn-next__select-dropdown {
position: absolute;
top: calc(100% + 0.4rem);
top: calc(100% + 0.375rem);
left: 0;
z-index: 80;
display: grid;
width: 100%;
min-width: min(20rem, 92vw);
gap: 0.45rem;
padding: 0.5rem;
gap: 0.375rem;
padding: 0.3rem;
overflow: hidden;
border: 1px solid var(--wrn-color-border);
border-radius: var(--wrn-radius-sm);
background: var(--wrn-color-surface);
box-shadow: 0 1.25rem 3rem rgb(0 0 0 / 18%);
border-radius: var(--wrn-radius);
background: var(--wrn-color-surface-raised, var(--wrn-color-surface));
box-shadow: var(--wrn-highlight-edge, none), var(--wrn-shadow-3);
animation: wrn-popover-enter var(--wrn-motion-base, 160ms) var(--wrn-ease-emphasized, ease) both;
}
.wrn-next[data-placement="top"] .wrn-next__select-dropdown {
top: auto;
@@ -194,10 +196,11 @@ component SelectStyles {
gap: 0.15rem;
}
.wrn-next__group-label {
padding: 0.55rem 0.7rem 0.3rem;
color: var(--wrn-component-color);
font-size: 0.68em;
font-weight: 800;
padding: 0.5rem 0.625rem 0.25rem;
color: var(--wrn-color-text-subtle, var(--wrn-color-muted));
font-family: var(--wrn-font-mono, monospace);
font-size: 0.65rem;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
}
@@ -207,15 +210,16 @@ component SelectStyles {
width: 100%;
grid-template-columns: minmax(0, 1fr);
align-items: center;
gap: 0.65rem;
padding: 0.58rem 2.5rem 0.58rem 0.7rem;
gap: 0.625rem;
padding: 0.5rem 2.25rem 0.5rem 0.625rem;
border: 0;
border-radius: calc(var(--wrn-radius-sm) * 0.72);
border-radius: calc(var(--wrn-radius-sm) - 2px);
color: var(--wrn-color-text);
background: transparent;
font: inherit;
text-align: left;
cursor: pointer;
transition: background-color 100ms ease;
}
.wrn-next__select-option:has(> img),
.wrn-next__select-option:has(> i:not(.wrn-next__check)) {
@@ -228,14 +232,15 @@ component SelectStyles {
}
.wrn-next__select-option strong {
overflow: hidden;
font-size: 0.82em;
font-weight: 650;
font-size: 0.8125rem;
font-weight: 550;
text-overflow: ellipsis;
white-space: nowrap;
}
.wrn-next__select-option small {
overflow: hidden;
font-size: 0.68em;
color: var(--wrn-color-text-muted);
font-size: 0.72rem;
text-overflow: ellipsis;
white-space: nowrap;
}
@@ -247,10 +252,10 @@ component SelectStyles {
object-fit: cover;
}
.wrn-next__select-option--active {
background: var(--wrn-color-surface-2);
background: var(--wrn-color-surface-muted, var(--wrn-color-surface-2));
}
.wrn-next__select-option--selected {
color: var(--wrn-color-primary-text);
color: var(--wrn-color-text);
}
.wrn-next__select-option:disabled {
opacity: 0.45;
@@ -259,10 +264,10 @@ component SelectStyles {
.wrn-next__check {
position: absolute;
top: 50%;
right: 0.8rem;
right: 0.75rem;
width: 1rem;
height: 1rem;
color: var(--wrn-component-color);
color: var(--wrn-color-primary-text, var(--wrn-component-color));
transform: translateY(-50%);
}
.wrn-next__select-message {
@@ -272,15 +277,17 @@ component SelectStyles {
justify-content: center;
gap: 0.5rem;
padding: 1rem;
color: var(--wrn-color-muted);
font-size: 0.78em;
color: var(--wrn-color-text-muted);
font-size: 0.8125rem;
text-align: center;
}
.wrn-next__create-option,
.wrn-next__load-more {
width: 100%;
padding: 0.65rem;
width: calc(100% + 0.6rem);
margin: 0 -0.3rem -0.3rem;
padding: 0.625rem 0.925rem;
border-top: 1px solid var(--wrn-color-border);
background: var(--wrn-color-surface-soft);
text-align: left;
}
.wrn-next--disabled {