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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user