Files
xenia-pos-local/packages/ui/package.json
T
bonaminandClaude Opus 5.5 e3f4f3eeee feat(manager,waiter): money and weights typed with a comma or a dot everywhere
Owner 2026-11-23 (plan 6F.2): new DecimalInput / MoneyInput in @xenia/ui (keeps what is typed,
reports a number, null when empty, NaN when not a number) on parseNumber. The waiter app's starting
cash, weighed quantity and typed prices were type=number + parseFloat (a Greek keypad's comma was
dropped: 12,50 became 12 or nothing); now text fields read with parseNumber, and a wrong starting
cash shows a message. The manager's price rules, deals and order-total condition use the new
fields; every Number(x.replace(',', '.')) now reads through parseNumber (1.234,50 too). Guard test
packages/i18n/tests/typed-numbers.test.mjs refuses parseFloat, .replace(',', '.') and decimal
type=number fields in the apps. e2e: shift close with 20,50, waiter starting cash 25,50.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 07:08:54 +02:00

34 lines
802 B
JSON

{
"name": "@xenia/ui",
"version": "0.0.0",
"private": true,
"type": "module",
"description": "Design tokens (CSS variables), the Tailwind preset and base components (plan step 2.3).",
"main": "src/index.js",
"exports": {
".": "./src/index.js",
"./tokens.css": "./src/tokens.css",
"./styles.css": "./src/styles.css",
"./tailwind-preset": "./tailwind-preset.js",
"./gallery": "./gallery/Gallery.jsx",
"./qr": "./src/components/QrCode.jsx"
},
"sideEffects": [
"*.css"
],
"scripts": {
"test": "node --test \"tests/*.test.mjs\""
},
"peerDependencies": {
"@xenia/i18n": "*",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"qrcode.react": "^4.2.0"
},
"peerDependenciesMeta": {
"qrcode.react": {
"optional": true
}
}
}