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>
307 lines
8.8 KiB
Plaintext
307 lines
8.8 KiB
Plaintext
component SelectStyles {
|
|
view {
|
|
}
|
|
|
|
style {
|
|
.wrn-next--advanced-select {
|
|
position: relative;
|
|
display: grid;
|
|
width: 100%;
|
|
gap: 0.55rem;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
}
|
|
.wrn-next--advanced-select > label:first-child,
|
|
.wrn-next--advanced-select .wrn-next__row > label {
|
|
color: var(--wrn-color-text);
|
|
font-size: 0.8125rem;
|
|
font-weight: 600;
|
|
}
|
|
.wrn-next--advanced-select .wrn-next__row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
.wrn-next--advanced-select small {
|
|
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.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-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-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: 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;
|
|
}
|
|
.wrn-next__color-dot {
|
|
width: 0.65rem;
|
|
height: 0.65rem;
|
|
border-radius: 50%;
|
|
background: var(--option-color);
|
|
}
|
|
.wrn-next__clear-select,
|
|
.wrn-next__create-option,
|
|
.wrn-next__load-more {
|
|
width: fit-content;
|
|
padding: 0;
|
|
border: 0;
|
|
color: var(--wrn-color-primary-text, var(--wrn-component-color));
|
|
background: transparent;
|
|
font: inherit;
|
|
font-size: 0.78rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
.wrn-next--invalid :is(input, select) {
|
|
border-color: var(--wrn-color-danger);
|
|
}
|
|
.wrn-next__validation {
|
|
color: var(--wrn-color-danger) !important;
|
|
}
|
|
.wrn-next__validation:empty {
|
|
display: none;
|
|
}
|
|
.wrn-next--advanced-select:has(input.wrn-invalid) .wrn-next__select-trigger {
|
|
border-color: var(--wrn-color-danger);
|
|
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wrn-color-danger) 16%, transparent);
|
|
}
|
|
.wrn-next--advanced-select-fixed select {
|
|
box-shadow: var(--wrn-shadow-1);
|
|
}
|
|
.wrn-next__select-control {
|
|
position: relative;
|
|
}
|
|
.wrn-next__combobox-control > .wrn-next__search-icon {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
pointer-events: none;
|
|
}
|
|
.wrn-next__combobox-toggle .wrn-next__select-chevron {
|
|
position: static;
|
|
transform: none;
|
|
}
|
|
.wrn-next--combobox .wrn-next__clear-select {
|
|
right: 2.4em;
|
|
}
|
|
.wrn-next__select-trigger {
|
|
display: flex;
|
|
width: 100%;
|
|
min-height: var(--wrn-control-height, 2.5rem);
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
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-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);
|
|
}
|
|
.wrn-next--open .wrn-next__select-trigger,
|
|
.wrn-next__select-trigger:focus-visible {
|
|
border-color: var(--wrn-component-color);
|
|
outline: 0;
|
|
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wrn-component-color) 18%, transparent);
|
|
}
|
|
.wrn-next__select-chevron {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 0.9em;
|
|
color: var(--wrn-color-muted);
|
|
pointer-events: none;
|
|
transform: translateY(-54%);
|
|
}
|
|
.wrn-next__clear-select {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 2.15em;
|
|
z-index: 2;
|
|
display: grid;
|
|
width: 1.4em;
|
|
height: 1.4em;
|
|
padding: 0;
|
|
place-items: center;
|
|
border-radius: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
.wrn-next__clear-select:hover {
|
|
background: var(--wrn-color-surface-2);
|
|
}
|
|
.wrn-next__select-dropdown {
|
|
position: absolute;
|
|
top: calc(100% + 0.375rem);
|
|
left: 0;
|
|
z-index: 80;
|
|
display: grid;
|
|
width: 100%;
|
|
min-width: min(20rem, 92vw);
|
|
gap: 0.375rem;
|
|
padding: 0.3rem;
|
|
overflow: hidden;
|
|
border: 1px solid var(--wrn-color-border);
|
|
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;
|
|
bottom: calc(100% + 0.4rem);
|
|
}
|
|
.wrn-next__select-dropdown--fixed {
|
|
position: fixed;
|
|
top: auto;
|
|
}
|
|
.wrn-next__select-list {
|
|
display: grid;
|
|
max-height: 18rem;
|
|
gap: 0.15rem;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
scrollbar-width: thin;
|
|
}
|
|
.wrn-next__option-group {
|
|
display: grid;
|
|
gap: 0.15rem;
|
|
}
|
|
.wrn-next__group-label {
|
|
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;
|
|
}
|
|
.wrn-next__select-option {
|
|
position: relative;
|
|
display: grid;
|
|
width: 100%;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
align-items: center;
|
|
gap: 0.625rem;
|
|
padding: 0.5rem 2.25rem 0.5rem 0.625rem;
|
|
border: 0;
|
|
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)) {
|
|
grid-template-columns: auto minmax(0, 1fr);
|
|
}
|
|
.wrn-next__select-option > span {
|
|
display: grid;
|
|
min-width: 0;
|
|
gap: 0.12rem;
|
|
}
|
|
.wrn-next__select-option strong {
|
|
overflow: hidden;
|
|
font-size: 0.8125rem;
|
|
font-weight: 550;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.wrn-next__select-option small {
|
|
overflow: hidden;
|
|
color: var(--wrn-color-text-muted);
|
|
font-size: 0.72rem;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.wrn-next__select-option img,
|
|
.wrn-next__selected-avatar {
|
|
width: 1.65rem;
|
|
height: 1.65rem;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
}
|
|
.wrn-next__select-option--active {
|
|
background: var(--wrn-color-surface-muted, var(--wrn-color-surface-2));
|
|
}
|
|
.wrn-next__select-option--selected {
|
|
color: var(--wrn-color-text);
|
|
}
|
|
.wrn-next__select-option:disabled {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
}
|
|
.wrn-next__check {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 0.75rem;
|
|
width: 1rem;
|
|
height: 1rem;
|
|
color: var(--wrn-color-primary-text, var(--wrn-component-color));
|
|
transform: translateY(-50%);
|
|
}
|
|
.wrn-next__select-message {
|
|
display: flex;
|
|
min-height: 4rem;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
padding: 1rem;
|
|
color: var(--wrn-color-text-muted);
|
|
font-size: 0.8125rem;
|
|
text-align: center;
|
|
}
|
|
.wrn-next__create-option,
|
|
.wrn-next__load-more {
|
|
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 {
|
|
opacity: 0.62;
|
|
}
|
|
.wrn-next__select-trigger .wrn-next__select-tags {
|
|
flex-wrap: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
@media (max-width: 640px) {
|
|
.wrn-next__select-dropdown {
|
|
min-width: 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|