- A menu board with pages plays whole rounds (menuMs rounds its seconds up); the editor says how long it really plays under "Seconds on screen", the card and the playlist total use it. - Seconds on screen / per page: shared NumberInput (− / +, may be emptied: an error under the field and Save blocked until filled; 1 s at least, server ge=1). - Performance (Signage -> Message & settings): widgets per slide (signage.max_widgets, 10 recommended, up to 50), checked by the server (signage.too_many_widgets) and the editor. - Text, clock, date, QR, weather, logo placed by hand: the box is exactly the content (its height x text size sets the size, the width follows; handles scale keeping the shape; text size grows the box); a slide's widget may run off the slide while 5 % stays on it. - Slider: the value as close to the slider as the frame's padding; floor and table-colour sliders use the shared Slider. Timeline cards' ring no longer clipped; larger playlist buttons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
40 lines
2.4 KiB
JavaScript
40 lines
2.4 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 { ConfirmDialog, useConfirm } from './components/ConfirmDialog.jsx'
|
|
export { Sheet } from './components/Sheet.jsx'
|
|
export { PrintArea, PrintSheet } from './components/PrintArea.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 { Dropdown } from './components/Dropdown.jsx'
|
|
export { Popover } from './components/Popover.jsx'
|
|
export { ColourField, Swatch } from './components/ColourField.jsx'
|
|
export { COLOUR_PRESETS, joinAlpha, splitAlpha, typedColour } from './components/colour.js'
|
|
export { FieldRow } from './components/FieldRow.jsx'
|
|
export { Slider } from './components/Slider.jsx'
|
|
export { NumberInput } from './components/NumberInput.jsx'
|
|
export { IconPicker } from './components/IconPicker.jsx'
|
|
export { Page, PageHeader, Pane, Toolbar, ToolbarSpacer } from './components/Page.jsx'
|
|
export { SearchInput, FilterChip, Segmented, Tabs } from './components/Controls.jsx'
|
|
export { Switch } from './components/Switch.jsx'
|
|
export { Stepper } from './components/Stepper.jsx'
|
|
export { ReasonPicker, reasonText } from './components/ReasonPicker.jsx'
|
|
export { UiLabelsProvider, DEFAULT_LABELS } from './components/labels.js'
|
|
export { cx } from './internal/cx.js'
|
|
export { THEMES, PALETTES, STYLES, THEME_STORAGE_KEY, PALETTE_STORAGE_KEY, STYLE_STORAGE_KEY, applyLook, applyTheme, getStoredLook, getStoredTheme, resolveMode } from './theme.js'
|