The shell used to be copied into every app; now it lives in the kit:
- ShellProvider: the app passes location, navigate, storageKey and basename,
so the kit stays router-agnostic and apps on one domain keep separate storage
- AppShell and AppSidebar: groups, badges, disabled items, open section tabs,
search button, user menu; logo and header extras come from props
- SectionFrame with Alt+F maximize, SectionTabsProvider/SectionTabsBar and hooks,
useCloseSectionTab instead of closeSectionTab
- createStore in lib/store
- CopyValue: click to copy with a short "Скопировано" tooltip
- SearchField: debounced filter, Enter applies at once, optional select for the next scan
- SearchInput: a passed onKeyDown no longer disables Esc-to-clear
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replacements for MUI pieces the LIS still uses:
- Notice: inline error/warning/info/success message with title, action, close
- Chip: static, selectable, with count or remove button; MultiSelect chips use it
- Autocomplete: type-in field with suggestions, local filter or server search
- Spinner, LoadingBar, indeterminate Progress
- RadioGroup and Collapsible (height animation) from shadcn
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ContentTabs: tone dot before the label for status filter tabs;
tabs with a zero count are dimmed
- StatusBadge: pulse for in-progress states (connecting, waiting for
the device); StatusDot exported on its own
- ConfirmDialog: trigger is optional, open/onOpenChange let the page
drive it; pending, error, disabled, content fields, footer,
extraActions, onClosed. A Promise from onConfirm shows the spinner
and error by itself and closes on success; the dialog can't be
closed while pending; focus goes to the first field
- ThemeProvider: "system" mode that follows the OS, defaultTheme and
storageKey props; Toaster works without the provider
- copyText with an execCommand fallback for plain http; copyToClipboard
uses it and reports failures
- Dialog and Sheet: close button labelled "Закрыть" for screen readers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LoginForm covers login/password, sign-in with an electronic signature
and a second step with a one-time code when onLogin (or onSignature)
returns an OtpChallenge. Errors are thrown from the async callbacks and
shown in the form.
- Password field: show/hide toggle, Caps Lock hint
- OTP step: auto-submit on the last digit, wrong code clears the field,
resend after a countdown when the code was sent somewhere, back to
the password step
- InputOTP primitive from shadcn (input-otp dependency), caret-blink
animation in styles.css
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move shadcn primitives, kit components, charts, theme provider, shared
hooks and utils (cn, format, masks, clipboard) into packages/medkit,
consumed as source via npm workspaces. The app now imports everything
from "@medkit/ui".
- Package-internal imports are relative; no @/ alias inside the kit
- Theme tokens, fonts and base styles move to @medkit/ui/styles.css,
which registers its own @source so classes are found from node_modules
- NotifyToaster takes a navigate prop instead of depending on
react-router; the app mounts it in App with useNavigate()
- Kit-only dependencies move to the package; react, react-dom and
tailwindcss are peers
- Drop components.json (shadcn CLI unused, aliases no longer valid)
- Update UI docs and add a package README
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>