trails/packages/ui
Ullrich Schäfer 1bd5f18a33
feat(ui): topbar primitives — IconButton, SegmentedControl, Avatar
Adds the shared primitives the planner topbar redesign needs, on the
design-system tokens:

- IconButton — icon-only button (undo/redo), ghost/secondary variants,
  requires an accessible label.
- SegmentedControl — generic single-select toggle (color mode
  Plain/Elevation/Surface), radiogroup semantics.
- Avatar — colored initial circle for participants, per-user color with
  an accent fallback.

Co-located jsdom unit tests for each (roles, aria-checked, onChange,
disabled, color fallback). Extends the dev-only /dev/ui gallery with
sections for all three.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-15 23:43:14 +02:00
..
src feat(ui): topbar primitives — IconButton, SegmentedControl, Avatar 2026-07-15 23:43:14 +02:00
package.json feat(ui): shared primitives (Button, Badge, Card, Input) on the tokens 2026-07-15 23:32:28 +02:00
tsconfig.json feat(ui): shared primitives (Button, Badge, Card, Input) on the tokens 2026-07-15 23:32:28 +02:00
vitest.config.ts feat(ui): shared primitives (Button, Badge, Card, Input) on the tokens 2026-07-15 23:32:28 +02:00