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
@@ -1052,9 +1052,9 @@ component DataTable {
|
||||
gap: 0.75rem;
|
||||
padding: 1rem;
|
||||
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: none;
|
||||
box-shadow: var(--wrn-shadow-1);
|
||||
}
|
||||
|
||||
.wrn-table {
|
||||
@@ -1101,14 +1101,15 @@ component DataTable {
|
||||
.wrn-table__caption {
|
||||
margin: 0;
|
||||
color: var(--wrn-color-text);
|
||||
font-size: 0.98rem;
|
||||
font-size: 1rem;
|
||||
font-weight: 650;
|
||||
letter-spacing: -0.015em;
|
||||
}
|
||||
|
||||
.wrn-table__description {
|
||||
margin: 0;
|
||||
color: var(--wrn-color-text-muted);
|
||||
font-size: 0.82rem;
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
.wrn-table__actions {
|
||||
@@ -1128,22 +1129,26 @@ component DataTable {
|
||||
appearance: none;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
min-height: 2.1rem;
|
||||
padding: 0 0.7rem;
|
||||
gap: 0.375rem;
|
||||
min-height: 2.125rem;
|
||||
padding: 0 0.75rem;
|
||||
color: var(--wrn-color-text);
|
||||
background: var(--wrn-color-surface-soft);
|
||||
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));
|
||||
border-radius: var(--wrn-radius-sm);
|
||||
box-shadow: var(--wrn-shadow-1);
|
||||
font: inherit;
|
||||
font-size: 0.79rem;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 550;
|
||||
cursor: pointer;
|
||||
transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
|
||||
transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
|
||||
}
|
||||
|
||||
.wrn-table__action:hover {
|
||||
color: var(--table-accent);
|
||||
border-color: color-mix(in srgb, var(--table-accent) 45%, var(--wrn-color-border));
|
||||
color: var(--wrn-color-text);
|
||||
border-color: var(--wrn-color-border-strong, var(--wrn-color-border));
|
||||
background: var(--wrn-color-surface);
|
||||
}
|
||||
|
||||
.wrn-table__action[data-tone="danger"] {
|
||||
@@ -1170,12 +1175,14 @@ component DataTable {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.45rem;
|
||||
min-height: 2.35rem;
|
||||
min-height: 2.125rem;
|
||||
padding: 0 0.7rem;
|
||||
color: var(--wrn-color-text-muted);
|
||||
background: var(--wrn-color-surface-soft);
|
||||
border: 1px solid var(--wrn-color-border);
|
||||
color: var(--wrn-color-text-subtle, var(--wrn-color-text-muted));
|
||||
background: var(--wrn-color-input-background, var(--wrn-color-surface));
|
||||
border: 1px solid var(--wrn-color-input-border, var(--wrn-color-border));
|
||||
border-radius: var(--wrn-radius-sm);
|
||||
box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.04);
|
||||
transition: border-color 120ms ease, box-shadow 120ms ease;
|
||||
}
|
||||
|
||||
.wrn-table__search input {
|
||||
@@ -1186,12 +1193,13 @@ component DataTable {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
font: inherit;
|
||||
font-size: 0.83rem;
|
||||
font-size: 0.8125rem;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.wrn-table__search:focus-within {
|
||||
border-color: color-mix(in srgb, var(--table-accent) 45%, var(--wrn-color-border));
|
||||
border-color: var(--table-accent);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--table-accent) 18%, transparent);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -1210,7 +1218,9 @@ component DataTable {
|
||||
max-width: 100%;
|
||||
overflow-x: auto;
|
||||
border: 1px solid var(--wrn-color-border);
|
||||
border-radius: var(--wrn-radius-sm);
|
||||
border-radius: var(--wrn-radius);
|
||||
background: var(--wrn-color-surface);
|
||||
box-shadow: var(--wrn-shadow-1);
|
||||
}
|
||||
|
||||
.wrn-table[data-bordered="false"] .wrn-table__scroll {
|
||||
@@ -1221,12 +1231,13 @@ component DataTable {
|
||||
.wrn-table__table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.85rem;
|
||||
font-size: 0.8125rem;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.wrn-table__table th,
|
||||
.wrn-table__table td {
|
||||
padding: 0.7rem 0.85rem;
|
||||
padding: 0.6875rem 0.875rem;
|
||||
text-align: left;
|
||||
vertical-align: middle;
|
||||
white-space: nowrap;
|
||||
@@ -1256,17 +1267,19 @@ component DataTable {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
color: var(--wrn-color-text-muted);
|
||||
color: var(--wrn-color-text-subtle, var(--wrn-color-text-muted));
|
||||
background: var(--wrn-color-surface-soft);
|
||||
border-bottom: 1px solid var(--wrn-color-border);
|
||||
font-size: 0.76rem;
|
||||
font-weight: 650;
|
||||
letter-spacing: 0.02em;
|
||||
font-family: var(--wrn-font-mono, monospace);
|
||||
font-size: 0.65rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.wrn-table__table tbody tr {
|
||||
border-bottom: 1px solid color-mix(in srgb, var(--wrn-color-border) 60%, transparent);
|
||||
border-bottom: 1px solid color-mix(in srgb, var(--wrn-color-border) 70%, transparent);
|
||||
transition: background-color 100ms ease;
|
||||
}
|
||||
|
||||
.wrn-table__table tbody tr:last-child {
|
||||
@@ -1285,20 +1298,21 @@ component DataTable {
|
||||
* sits at the same specificity and is ordered deliberately.
|
||||
*/
|
||||
.wrn-table[data-striped="true"] .wrn-table__table tbody tr:nth-child(even) {
|
||||
background: color-mix(in srgb, var(--wrn-color-surface-soft) 55%, transparent);
|
||||
background: color-mix(in srgb, var(--wrn-color-surface-soft) 70%, transparent);
|
||||
}
|
||||
|
||||
.wrn-table[data-striped] .wrn-table__table tbody tr:hover:not([data-selected="true"]) {
|
||||
background: color-mix(in srgb, var(--table-accent) 7%, transparent);
|
||||
background: var(--wrn-color-surface-soft);
|
||||
}
|
||||
|
||||
/* Every selected row identical, striped or not. */
|
||||
.wrn-table[data-striped] .wrn-table__table tbody tr[data-selected="true"] {
|
||||
background: color-mix(in srgb, var(--table-accent) 15%, transparent);
|
||||
background: color-mix(in srgb, var(--table-accent) 7%, var(--wrn-color-surface));
|
||||
box-shadow: inset 2px 0 0 var(--table-accent);
|
||||
}
|
||||
|
||||
.wrn-table[data-striped] .wrn-table__table tbody tr[data-selected="true"]:hover {
|
||||
background: color-mix(in srgb, var(--table-accent) 22%, transparent);
|
||||
background: color-mix(in srgb, var(--table-accent) 11%, var(--wrn-color-surface));
|
||||
}
|
||||
|
||||
.wrn-table__sort {
|
||||
@@ -1319,7 +1333,7 @@ component DataTable {
|
||||
}
|
||||
|
||||
.wrn-table__sort:hover {
|
||||
color: var(--table-accent);
|
||||
color: var(--wrn-color-text);
|
||||
}
|
||||
|
||||
.wrn-table__sort-icon {
|
||||
@@ -1328,7 +1342,7 @@ component DataTable {
|
||||
}
|
||||
|
||||
.wrn-table__sort[data-active="true"] {
|
||||
color: var(--table-accent);
|
||||
color: var(--wrn-color-text);
|
||||
}
|
||||
|
||||
.wrn-table__sort[data-active="true"] .wrn-table__sort-icon {
|
||||
@@ -1346,25 +1360,28 @@ component DataTable {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
width: 1.05rem;
|
||||
height: 1.05rem;
|
||||
width: 1.125rem;
|
||||
height: 1.125rem;
|
||||
color: transparent;
|
||||
background: var(--wrn-color-surface-raised);
|
||||
border: 1px solid var(--wrn-color-border);
|
||||
border-radius: 0.32rem;
|
||||
background: var(--wrn-color-input-background, var(--wrn-color-surface));
|
||||
border: 1.5px solid var(--wrn-color-border-strong, var(--wrn-color-border));
|
||||
border-radius: 0.3125rem;
|
||||
box-shadow: inset 0 1px 1px rgb(0 0 0 / 0.05);
|
||||
cursor: pointer;
|
||||
transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
|
||||
transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
|
||||
}
|
||||
|
||||
.wrn-table__check[aria-checked="true"] {
|
||||
color: var(--wrn-color-primary-contrast);
|
||||
background: var(--table-accent);
|
||||
border-color: var(--table-accent);
|
||||
border-color: color-mix(in srgb, var(--table-accent) 80%, black);
|
||||
box-shadow: var(--wrn-highlight-edge, none);
|
||||
}
|
||||
|
||||
.wrn-table__check:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--table-accent) 35%, transparent);
|
||||
outline: 2px solid var(--table-accent);
|
||||
outline-offset: 2px;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.wrn-table__table--comparison {
|
||||
@@ -1380,9 +1397,9 @@ component DataTable {
|
||||
.wrn-table__table--comparison th[scope="row"] {
|
||||
color: var(--wrn-color-text-muted);
|
||||
background: var(--wrn-color-surface-soft);
|
||||
font-size: 0.76rem;
|
||||
font-weight: 650;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
text-transform: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@@ -1444,9 +1461,9 @@ component DataTable {
|
||||
|
||||
.wrn-table__empty {
|
||||
margin: 0;
|
||||
padding: 1.75rem 1rem;
|
||||
padding: 2.5rem 1rem;
|
||||
color: var(--wrn-color-text-muted);
|
||||
font-size: 0.85rem;
|
||||
font-size: 0.8125rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -1461,7 +1478,8 @@ component DataTable {
|
||||
.wrn-table__range {
|
||||
margin: 0;
|
||||
color: var(--wrn-color-text-muted);
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.8125rem;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.wrn-table__pager {
|
||||
@@ -1504,8 +1522,8 @@ component DataTable {
|
||||
}
|
||||
|
||||
.wrn-table__page-button:hover:not(:disabled) {
|
||||
color: var(--table-accent);
|
||||
border-color: color-mix(in srgb, var(--table-accent) 40%, var(--wrn-color-border));
|
||||
color: var(--wrn-color-text);
|
||||
background: var(--wrn-color-surface);
|
||||
}
|
||||
|
||||
.wrn-table__page-button:disabled {
|
||||
@@ -1531,22 +1549,25 @@ component DataTable {
|
||||
color: var(--wrn-color-text-muted);
|
||||
background: transparent;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 0.55rem;
|
||||
border-radius: var(--wrn-radius-sm);
|
||||
font: inherit;
|
||||
font-size: 0.78rem;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 550;
|
||||
font-variant-numeric: tabular-nums;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wrn-table__page-number:hover {
|
||||
color: var(--wrn-color-text);
|
||||
background: var(--wrn-color-surface-soft);
|
||||
background: var(--wrn-color-surface-muted, var(--wrn-color-surface-soft));
|
||||
}
|
||||
|
||||
.wrn-table__page-number[data-active="true"] {
|
||||
color: var(--wrn-color-primary-contrast);
|
||||
background: var(--table-accent);
|
||||
border-color: var(--table-accent);
|
||||
background: linear-gradient(180deg, color-mix(in srgb, var(--table-accent) 92%, white), var(--table-accent));
|
||||
border-color: color-mix(in srgb, var(--table-accent) 82%, black);
|
||||
box-shadow: var(--wrn-highlight-edge, none);
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.wrn-table__page-indicator {
|
||||
@@ -1707,7 +1728,7 @@ component DataTable {
|
||||
|
||||
.wrn-component p {
|
||||
margin: 0;
|
||||
color: var(--wrn-color-muted);
|
||||
color: var(--wrn-color-text-muted, var(--wrn-color-muted));
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user