feat(ui): the shared page frame and toolbar kit: Page, PageHeader, Toolbar, Dropdown (multi-select), SearchInput, FilterChip, Segmented, Tabs
Owner's UI review (2026-11-20): pages that don't scroll and sit on the left, native selects in toolbars, controls of different heights, labels too loud. Everything is global in @xenia/ui so no page rebuilds it: - Page: scrolls on its own, fills the area up to a 16:9 screen's width (--x-page-max = max(1280px, 100vh*16/9)), centred beyond (ultrawides); width="form" for settings; top= keeps a tab strip above the scroll - Dropdown: portal list, flips above, keyboard, search for long lists, multiple (array value, [] = all, allLabel), dots and hints; Input heights - SearchInput, FilterChip (tone + count), Segmented, Tabs (sideways scroll only, no 1px up/down scroll), Toolbar/ToolbarSpacer - InfoTip opens on hover too; Dialog size xl (920px) - tokens: --x-text-overline (11px), --x-pad-card(-y), muted ink-2 (contrast test still passes in every look); preset: text-overline, p-card, max-w-page, the special tone - component labels (search, clear, all, nothing found) in en/el Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -33,12 +33,14 @@ export default {
|
||||
warning: tone('warning'),
|
||||
danger: tone('danger'),
|
||||
info: tone('info'),
|
||||
special: tone('special'), // offers, deals, money left on tabs
|
||||
// the board design language (kitchen display): bg-board-bg, text-board-ink-2, bg-board-late…
|
||||
board: Object.fromEntries(BOARD.map(n => [n, c(`board-${n}`)])),
|
||||
// the manager's navigation rail (6.14b): bg-nav-bg, text-nav-ink-2, bg-nav-active…
|
||||
nav: Object.fromEntries(['bg', 'raised', 'active', 'line', 'ink', 'ink-2', 'ink-3', 'dot'].map(n => [n, c(`nav-${n}`)])),
|
||||
},
|
||||
fontSize: {
|
||||
overline: ['var(--x-text-overline)', { lineHeight: 'var(--x-leading-overline)' }], // small uppercase labels (2026-11-20)
|
||||
caption: ['var(--x-text-caption)', { lineHeight: 'var(--x-leading-caption)' }],
|
||||
label: ['var(--x-text-label)', { lineHeight: 'var(--x-leading-label)' }],
|
||||
body: ['var(--x-text-body)', { lineHeight: 'var(--x-leading-body)' }],
|
||||
@@ -61,6 +63,9 @@ export default {
|
||||
overlay: 'var(--x-shadow-overlay)',
|
||||
focus: 'var(--x-focus-ring)',
|
||||
},
|
||||
// inside a card / panel: p-card, px-card, py-card-y (2026-11-20)
|
||||
spacing: { card: 'var(--x-pad-card)', 'card-y': 'var(--x-pad-card-y)' },
|
||||
maxWidth: { page: 'var(--x-page-max)' },
|
||||
minHeight: { control: 'var(--x-control-md)' },
|
||||
height: { 'control-sm': 'var(--x-control-sm)', control: 'var(--x-control-md)', 'control-lg': 'var(--x-control-lg)' },
|
||||
transitionDuration: { fast: 'var(--x-duration-fast)', base: 'var(--x-duration-base)' },
|
||||
|
||||
Reference in New Issue
Block a user