feat(ui): @xenia/ui design tokens, Tailwind preset and base components
Platform-v2 step 2.3 (APPS_PLATFORM D-15 §9): - tokens.css: --x- prefixed colours (light/dark/system + 5 venue accent themes), spacing, radius, type scale, shadows, motion, z-index; variables only - components.css: .x-* classes only, no element selectors (new rule CS-16) - Button, IconButton, Dialog, Sheet, Toast, PinPad, InfoTip, EmptyState, Spinner, Field/Input/Textarea/Select, Switch (accessible: focus trap and restore, ARIA wiring, 44px targets) - tailwind-preset.js (adds names only); manager uses it + styles.css, the waiter imports tokens.css; existing screens unchanged - dev-only /ui-gallery in the manager; e2e suite tests/e2e/ui.mjs; unit tests for PIN rules and WCAG AA contrast of every token pair, both in run-all Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Generated
+7
-1
@@ -16,6 +16,7 @@
|
||||
"version": "0.0.0",
|
||||
"dependencies": {
|
||||
"@tanstack/react-query": "^5.62.0",
|
||||
"@xenia/ui": "^0.0.0",
|
||||
"axios": "^1.7.9",
|
||||
"lucide-react": "^1.14.0",
|
||||
"qrcode.react": "^4.2.0",
|
||||
@@ -2880,7 +2881,11 @@
|
||||
},
|
||||
"packages/ui": {
|
||||
"name": "@xenia/ui",
|
||||
"version": "0.0.0"
|
||||
"version": "0.0.0",
|
||||
"peerDependencies": {
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0"
|
||||
}
|
||||
},
|
||||
"waiter_pwa": {
|
||||
"version": "0.0.0",
|
||||
@@ -2890,6 +2895,7 @@
|
||||
"@capacitor/core": "8.5.2",
|
||||
"@capgo/capacitor-updater": "8.51.25",
|
||||
"@tanstack/react-query": "^5.100.11",
|
||||
"@xenia/ui": "^0.0.0",
|
||||
"axios": "^1.15.1",
|
||||
"dexie": "^4.4.2",
|
||||
"qr-scanner": "^1.4.2",
|
||||
|
||||
Reference in New Issue
Block a user