refactor: миграция форм на ui-kit, удаление локальных дублей
Tests / frontend-test (push) Successful in 4m11s

This commit is contained in:
Тимур Городецкий
2026-08-14 11:09:11 +05:00
parent 9d04fb4be4
commit c98a665611
57 changed files with 367 additions and 1709 deletions
+32 -23
View File
@@ -1,20 +1,36 @@
// Единая точка импорта примитивов формы.
export { Button } from './Button/Button';
export { Alert } from './Alert/Alert';
export { FormCard } from './FormCard/FormCard';
export { FormGrid } from './FormGrid/FormGrid';
export { FormField } from './FormField/FormField';
export { TextInput } from './TextInput/TextInput';
export { PhoneInput } from './PhoneInput/PhoneInput';
export { MoneyInput } from './MoneyInput/MoneyInput';
export { TextArea } from './TextArea/TextArea';
export { Select } from './Select/Select';
export type { ISelectOption } from './Select/Select';
export { Toggle } from './Toggle/Toggle';
export { CollapseSection } from './CollapseSection/CollapseSection';
export { FormActions } from './FormActions/FormActions';
export { FileDropzone } from './FileDropzone/FileDropzone';
export { AttachmentList } from './AttachmentList/AttachmentList';
// Перенесённые компоненты берём из общего пакета @tnsu/ui-kit; остальные
// (бизнес-логика/SharePoint/отложенные) — пока локальные. Все формы импортят
// отсюда, поэтому переключение источника не требует правок в самих формах.
// --- Из общего пакета @tnsu/ui-kit ---
export {
Button,
Alert,
FormCard,
FormGrid,
FormField,
TextInput,
PhoneInput,
MoneyInput,
TextArea,
Select,
Toggle,
CollapseSection,
FormActions,
FileDropzone,
AttachmentList,
FormModeProvider,
useFormReadOnly,
Icon,
ConfirmHost,
confirmModal,
RequestNumber,
PrintButton
} from '@tnsu/ui-kit';
export type { ISelectOption, IConfirmOptions } from '@tnsu/ui-kit';
// --- Пока локальные (не перенесены: SP/бизнес/отложенные) ---
export { ItemsTable } from './ItemsTable/ItemsTable';
export type { IItemsTableProps } from './ItemsTable/ItemsTable';
export type { ILineItem } from './ItemsTable/ILineItem';
@@ -22,16 +38,9 @@ export { EMPTY_LINE_ITEM } from './ItemsTable/ILineItem';
export { parseExcelRows } from './ItemsTable/parseExcelRows';
export { PeopleField } from './PeopleField/PeopleField';
export { PeopleFieldMulti } from './PeopleField/PeopleFieldMulti';
export { FormModeProvider, useFormReadOnly } from './FormMode';
export { Icon } from './Icon/Icon';
export { ErrorOverlay } from './ErrorOverlay/ErrorOverlay';
export { ConfirmHost } from './ConfirmDialog/ConfirmDialog';
export { confirmModal } from './ConfirmDialog/confirmModal';
export type { IConfirmOptions } from './ConfirmDialog/confirmModal';
export { SubmitActions } from './SubmitActions/SubmitActions';
export { RequestNumber } from './RequestNumber/RequestNumber';
export { InitiatorLine } from './InitiatorLine/InitiatorLine';
export type { IInitiatorLineProps } from './InitiatorLine/InitiatorLine';
export { PrintButton } from './PrintButton/PrintButton';
export { useRequestSubmit } from './useRequestSubmit';
export type { IRequestSubmit, SubmitKind } from './useRequestSubmit';