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
+9 -2
View File
@@ -10,7 +10,8 @@
"./tokens.css": "./src/tokens.css",
"./styles.css": "./src/styles.css",
"./tailwind-preset": "./tailwind-preset.js",
"./gallery": "./gallery/Gallery.jsx"
"./gallery": "./gallery/Gallery.jsx",
"./qr": "./src/components/QrCode.jsx"
},
"sideEffects": [
"*.css"
@@ -20,6 +21,12 @@
},
"peerDependencies": {
"react": "^19.0.0",
"react-dom": "^19.0.0"
"react-dom": "^19.0.0",
"qrcode.react": "^4.2.0"
},
"peerDependenciesMeta": {
"qrcode.react": {
"optional": true
}
}
}