feat(ui): the QR card shared in @xenia/ui/qr (platform-v2 step 6.14c)

- QrCode (a QR on a light tile, optional caption; framed or not) in packages/ui, on its own subpath so only
  the apps that show one need qrcode.react (an optional peer); x-qr styles keep the code dark on light in dark themes
- used by the terminal's customer display, the manager's online-ordering link, table QR codes and Settings' pairing QR
  (four copies of the same markup gone)
- the money pad and the order line row stay where they are: the manager's payment is the phones' cash / card choice
  (no cash given, change or split) and its order lines are not the counter's cart lines, so neither has a second user;
  the signage slides keep their own QR (inline styles scaled to the TV)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-19 20:11:34 +02:00
co-authored by Claude Opus 5.5
parent 294b769850
commit f383060bad
7 changed files with 47 additions and 13 deletions
+6
View File
@@ -328,3 +328,9 @@
.x-reasons__option:hover { background: var(--x-surface-3); }
.x-reasons__option:focus-visible { outline: none; box-shadow: var(--x-focus-ring); }
.x-reasons__option--on, .x-reasons__option--on:hover { background: var(--x-accent); color: var(--x-accent-fg); }
/* ── QR code (QrCode, @xenia/ui/qr; plan step 6.14c) ─────────────────────── */
.x-qr { display: grid; justify-items: center; gap: var(--x-space-2); }
/* always light behind the code, in dark themes too: scanners need the contrast */
.x-qr__tile { padding: var(--x-space-3); border-radius: var(--x-radius-card); border: 1px solid var(--x-line); background: var(--x-on-colour); line-height: 0; }
.x-qr__caption { font-size: var(--x-text-label); color: var(--x-ink-2); text-align: center; }