merge: preserve compact typography alongside shared Mission theme updates

This commit is contained in:
Codex
2026-11-11 23:55:19 +03:00
22 changed files with 435 additions and 126 deletions
+21 -2
View File
@@ -8,7 +8,8 @@
- `default` — обычная карточка/панель;
- `strong` — dropdown, modal и поверхность над сложным фоном;
- `soft` — вложенная или вторичная область.
- `soft` — утопленная вторичная область / canvas, не подложка формы;
- `group` — нейтральная группа как SettingsCard, для самостоятельного элемента коллекции.
`radius="pill"` задаёт каноническую капсульную геометрию через `--nodedc-radius-circle`. Она предназначена, в частности, для компактных вертикальных и горизонтальных реек из круглых действий: верхняя и нижняя части поверхности повторяют круг кнопок без прямых торцевых пролётов. Consumer не воспроизводит этот радиус локальным CSS.
@@ -228,7 +229,14 @@ Pill navigation для верхней панели и компактного п
## UserProfileMenu
Каноническая выпадашка профиля для правой группы `AppHeader`. Она использует
Каноническая правая группа `AppHeader`: «Профиль» → inbox → аватар.
`UserProfileMenu` владеет всей группой, включая `HeaderProfile`; приложение
передаёт только identity и действия. Настройки находятся в меню, отдельной
шестерёнки после аватара нет. Нельзя добавлять внешнюю обёртку или локальные
отступы. Все три элемента открывают меню; Escape возвращает фокус на вызвавшую кнопку.
На узком экране подпись скрывается по общей адаптивной механике; иконка и аватар остаются доступны.
Она использует
общий portal `Dropdown`, показывает identity cover с аватаром, именем и
подписью и принимает список application-owned действий.
@@ -539,3 +547,14 @@ Window header actions default to before the move toggle. `headerActionsPlacement
Window, WorkspaceWindow, ApplicationPanel and AdminPanel establish an independent compact md text base, including portals. Native semantic headings inside operational surfaces use md unless an explicit canonical title rule applies. Use Description for result/error/pending paragraphs. The living catalog includes a typography example with values, nested headings and a status dialog. See OPERATIONAL_TYPOGRAPHY.md and the exported build-time `@nodedc/ui-core/typography` contract.
## Flat surface profile and profile trigger
The shared theme supports `edges: "flat"` for borderless surfaces, including portal windows. Keyboard focus changes the fill and foreground instead of adding an outline. The living catalog exposes this alongside the Mission appearance switch. `UserProfileMenu` composes the canonical profile label, independent inbox/menu button and avatar. CMS puts settings inside that menu. No additional settings button or HeaderProfile wrapper is needed; spacing comes from existing HeaderProfileButton and IconButton geometry.
`Select variant="split" shape="pill"` aligns a compact workspace/site selector with adjacent round actions, preserving the shared dimensions and keyboard behavior.
## Mission Core theme foundation
`missionDarkTheme` и `missionLightTheme` — общий профиль из `@nodedc/ui-core` / `@nodedc/ui-dom`. `applyNodedcTheme` по умолчанию выбирает Mission и flat. Полный контракт цветов и композиции вложенных форм находится в [THEMING.md](THEMING.md). SettingsCard использует семантическую поверхность группы; поля расположены непосредственно в его body, как в Mission Core. GlassSurface tone="group" использует тот же материал для элементов коллекций. tone="soft" не применяется к формам. Ни CMS, ни другой потребитель не повторяет палитру локально. Living catalog содержит форму и её портальную версию.