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>
- Replace native date inputs with DateInput / DateRangeInput (tasks,
schedule, booking, doctor intervals, patient birth and issue dates)
- New TimeInput: «чч:мм» mask plus hour/minute picker; used for task due time
- Patient create: anonymous patient hides the name fields; SNILS under birth date
- Patient profile: every block edits in its own EditDialog (new kit component,
InfoSection onEdit pencil); name copies on click; SNILS moved to the header
- UI_COMPONENTS.md / UI_STRUCTURE.md: component reference and design rules
(dates via DateInput, time via TimeInput, block editing via EditDialog)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kit (src/components/kit): PageTabs, ContentTabs, PatientPanel, DataTable
with sorting, Pagination, FileGallery (image lightbox, PDF preview),
StatusBadge, StatTile, InfoSection/Field, DateLeaf, PageFrame, CodeBlock.
Patient pages now use them; search results are sortable; documents show
attachments. Replace next-themes with a small ThemeProvider (React 19
warned about its inline script).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>