- @xenia/ui: --x-board-* tokens (the kitchen display's look: dark board, light cards, status colours, card radius/shadows, number font), Tailwind board.* colours, contrast test for the board pairs; near-identical shades merged. - New shared Stepper component (gallery + ui.mjs), labels ui.decrease / ui.increase. - KDS: theme.js maps to the board tokens, no colour literals left (only stored setting values); decline / call waiter / settings use Dialog, Button, Switch, Select, Stepper; toasts are @xenia/ui toasts (ToastProvider at the terminal root). - Terminal: apps can set their theme (APP_THEMES, KDS dark) while they run. - CS-16: board screens and "no hard-coded colours in app code". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
1.5 KiB
JavaScript
27 lines
1.5 KiB
JavaScript
// @xenia/ui — design tokens and base components shared by the manager, the terminal
|
|
// and the waiter app (APPS_PLATFORM §9, plan step 2.3). Imported from source by Vite.
|
|
//
|
|
// Styles are separate so an app chooses what to load:
|
|
// import '@xenia/ui/tokens.css' CSS variables only (the waiter today)
|
|
// import '@xenia/ui/styles.css' tokens + the components' styles (.x-* classes)
|
|
// Tailwind apps also add the preset: import xenia from '@xenia/ui/tailwind-preset'.
|
|
//
|
|
// Components' own texts (Close, Loading, Delete…) come from <UiLabelsProvider> (English
|
|
// defaults); @xenia/i18n's useUiLabels() gives the translated set. Props still override.
|
|
|
|
export { Button, IconButton } from './components/Button.jsx'
|
|
export { Dialog } from './components/Dialog.jsx'
|
|
export { Sheet } from './components/Sheet.jsx'
|
|
export { ToastProvider } from './components/Toast.jsx'
|
|
export { useToast } from './components/toastContext.js'
|
|
export { PinPad } from './components/PinPad.jsx'
|
|
export { InfoTip } from './components/InfoTip.jsx'
|
|
export { EmptyState } from './components/EmptyState.jsx'
|
|
export { Spinner } from './components/Spinner.jsx'
|
|
export { Field, Input, Textarea, Select } from './components/Field.jsx'
|
|
export { Switch } from './components/Switch.jsx'
|
|
export { Stepper } from './components/Stepper.jsx'
|
|
export { UiLabelsProvider, DEFAULT_LABELS } from './components/labels.js'
|
|
export { cx } from './internal/cx.js'
|
|
export { THEMES, THEME_STORAGE_KEY, applyTheme, getStoredTheme } from './theme.js'
|