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:
2026-11-20 11:23:29 +02:00
co-authored by Claude Opus 5.5
parent ebb3fac6bc
commit 26ba19cba5
12 changed files with 542 additions and 10 deletions
+6 -1
View File
@@ -34,7 +34,12 @@
"pinProgress": "{{count}} από {{total}} ψηφία",
"submit": "OK",
"decrease": "Λιγότερο",
"increase": "Περισσότερο"
"increase": "Περισσότερο",
"search": "Αναζήτηση",
"clear": "Καθαρισμός",
"all": "Όλα",
"noOptions": "Δεν βρέθηκε τίποτα",
"selected": "{{count}} επιλεγμένα"
},
"override": {
"title": "Έγκριση υπευθύνου",
+6 -1
View File
@@ -34,7 +34,12 @@
"pinProgress": "{{count}} of {{total}} digits entered",
"submit": "OK",
"decrease": "Less",
"increase": "More"
"increase": "More",
"search": "Search",
"clear": "Clear",
"all": "All",
"noOptions": "Nothing found",
"selected": "{{count}} selected"
},
"override": {
"title": "Manager approval",
+5
View File
@@ -37,6 +37,11 @@ export function useUiLabels() {
decrease: t('ui.decrease'),
increase: t('ui.increase'),
submit: t('ui.submit'),
search: t('ui.search'),
clear: t('ui.clear'),
all: t('ui.all'),
noOptions: t('ui.noOptions'),
selected: count => t('ui.selected', { count }),
pinProgress: (count, total) => t('ui.pinProgress', { count, total }),
}), [t, language]) // eslint-disable-line react-hooks/exhaustive-deps
}