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
@@ -314,25 +314,31 @@ component Stepper {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex: 0 0 auto;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border: 1px solid var(--wrn-color-border);
|
||||
width: 1.75rem;
|
||||
height: 1.75rem;
|
||||
border: 1.5px solid var(--wrn-color-border-strong, var(--wrn-color-border));
|
||||
border-radius: 999px;
|
||||
background: var(--wrn-color-surface);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 700;
|
||||
color: var(--wrn-color-text-muted);
|
||||
font-family: var(--wrn-font-mono, monospace);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 650;
|
||||
font-variant-numeric: tabular-nums;
|
||||
transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
|
||||
}
|
||||
|
||||
.wrn-stepper__step[data-status="complete"] .wrn-stepper__marker {
|
||||
border-color: var(--stepper-accent);
|
||||
border-color: color-mix(in srgb, var(--stepper-accent) 82%, black);
|
||||
background: var(--stepper-accent);
|
||||
color: var(--wrn-color-primary-contrast);
|
||||
box-shadow: var(--wrn-highlight-edge, none);
|
||||
}
|
||||
|
||||
.wrn-stepper__step[data-status="current"] .wrn-stepper__marker {
|
||||
border-color: var(--stepper-accent);
|
||||
color: var(--stepper-accent);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--stepper-accent) 22%, transparent);
|
||||
background: var(--wrn-color-surface);
|
||||
color: var(--wrn-color-primary-text, var(--stepper-accent));
|
||||
box-shadow: 0 0 0 4px color-mix(in srgb, var(--stepper-accent) 16%, transparent);
|
||||
}
|
||||
|
||||
.wrn-stepper__step[data-status="upcoming"] .wrn-stepper__marker {
|
||||
@@ -346,13 +352,15 @@ component Stepper {
|
||||
}
|
||||
|
||||
.wrn-stepper__label {
|
||||
font-size: 0.9rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.005em;
|
||||
}
|
||||
|
||||
.wrn-stepper__description {
|
||||
color: var(--wrn-color-text-muted);
|
||||
font-size: 0.78rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.wrn-stepper__step[data-status="upcoming"] .wrn-stepper__label {
|
||||
@@ -364,17 +372,19 @@ component Stepper {
|
||||
}
|
||||
|
||||
.wrn-stepper__panel {
|
||||
padding: 1rem;
|
||||
padding: 1.125rem 1.25rem;
|
||||
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);
|
||||
animation: wrn-stepper-in 200ms ease both;
|
||||
}
|
||||
|
||||
.wrn-stepper__panel-title {
|
||||
margin: 0 0 0.35rem;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 700;
|
||||
margin: 0 0 0.25rem;
|
||||
font-size: 0.9375rem;
|
||||
font-weight: 620;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.wrn-stepper__panel-body {
|
||||
@@ -396,19 +406,22 @@ component Stepper {
|
||||
|
||||
.wrn-stepper__button-control {
|
||||
appearance: none;
|
||||
padding: 0.45rem 0.9rem;
|
||||
min-height: var(--wrn-control-height, 2.5rem);
|
||||
padding: 0 0.95rem;
|
||||
border: 1px solid var(--wrn-color-border);
|
||||
border-bottom-color: var(--wrn-color-border-strong, var(--wrn-color-border));
|
||||
border-radius: var(--wrn-radius-sm);
|
||||
background: var(--wrn-color-surface);
|
||||
background: linear-gradient(180deg, var(--wrn-color-surface), var(--wrn-color-surface-soft, var(--wrn-color-surface)));
|
||||
box-shadow: var(--wrn-shadow-1);
|
||||
color: var(--wrn-color-text);
|
||||
font: inherit;
|
||||
font-size: 0.86rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wrn-stepper__button-control:hover:not(:disabled) {
|
||||
background: var(--wrn-color-surface-soft);
|
||||
background: var(--wrn-color-surface);
|
||||
}
|
||||
|
||||
.wrn-stepper__button-control:focus-visible {
|
||||
@@ -417,8 +430,10 @@ component Stepper {
|
||||
}
|
||||
|
||||
.wrn-stepper__button-control[data-primary="true"] {
|
||||
border-color: var(--stepper-accent);
|
||||
background: var(--stepper-accent);
|
||||
border-color: color-mix(in srgb, var(--stepper-accent) 82%, black);
|
||||
border-bottom-color: color-mix(in srgb, var(--stepper-accent) 64%, black);
|
||||
background: linear-gradient(180deg, color-mix(in srgb, var(--stepper-accent) 92%, white), var(--stepper-accent));
|
||||
box-shadow: var(--wrn-highlight-edge, none), 0 1px 2px color-mix(in srgb, var(--stepper-accent) 30%, transparent);
|
||||
color: var(--wrn-color-primary-contrast);
|
||||
}
|
||||
|
||||
@@ -445,5 +460,62 @@ component Stepper {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
/* --- Connectors ---------------------------------------------------------
|
||||
Horizontal: a line fills the rest of each step after its text.
|
||||
Vertical: a rail runs down from each marker to the next. Both fill with
|
||||
the accent once the step is complete. :last-of-type, not :last-child,
|
||||
because the loop leaves <template> markers after the last step. */
|
||||
.wrn-stepper:not([data-orientation="vertical"]) .wrn-stepper__button::after {
|
||||
flex: 1 1 1.5rem;
|
||||
min-width: 1rem;
|
||||
height: 2px;
|
||||
margin-inline-start: 0.25rem;
|
||||
border-radius: 999px;
|
||||
background: var(--wrn-color-border);
|
||||
content: "";
|
||||
transition: background-color 200ms ease;
|
||||
}
|
||||
.wrn-stepper:not([data-orientation="vertical"]) .wrn-stepper__step:last-of-type .wrn-stepper__button::after {
|
||||
display: none;
|
||||
}
|
||||
.wrn-stepper[data-orientation="vertical"] .wrn-stepper__step {
|
||||
position: relative;
|
||||
}
|
||||
.wrn-stepper[data-orientation="vertical"] .wrn-stepper__step:not(:last-of-type)::before {
|
||||
position: absolute;
|
||||
top: calc(0.5rem + 1.75rem + 0.25rem);
|
||||
bottom: calc(-0.5rem + 0.25rem);
|
||||
inset-inline-start: calc(0.5rem + 0.875rem - 1px);
|
||||
width: 2px;
|
||||
border-radius: 999px;
|
||||
background: var(--wrn-color-border);
|
||||
content: "";
|
||||
}
|
||||
.wrn-stepper__step[data-status="complete"] .wrn-stepper__button::after,
|
||||
.wrn-stepper[data-orientation="vertical"] .wrn-stepper__step[data-status="complete"]::before {
|
||||
background: var(--stepper-accent);
|
||||
}
|
||||
.wrn-stepper[data-orientation="vertical"] .wrn-stepper__list {
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
/* Completed numbered steps show a check instead of the number. */
|
||||
.wrn-stepper__step[data-status="complete"] .wrn-stepper__number {
|
||||
display: none;
|
||||
}
|
||||
.wrn-stepper__step[data-status="complete"] .wrn-stepper__marker:has(.wrn-stepper__number:not([data-show="false"]))::after,
|
||||
.wrn-stepper__step[data-status="complete"] .wrn-stepper__marker:not(:has(.wrn-stepper__icon:not([data-show="false"])))::after {
|
||||
width: 0.8rem;
|
||||
height: 0.8rem;
|
||||
background: currentColor;
|
||||
content: "";
|
||||
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat;
|
||||
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat;
|
||||
}
|
||||
.wrn-stepper__icon {
|
||||
width: 0.9rem;
|
||||
height: 0.9rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user