Files
tnsu-ui-kit/src/index.ts
T
Тимур Городецкий 06e9007e73 feat: Sidebar — пункты-ссылки и раскрывающиеся группы (0.13.0)
ISidebarItem.href открывает пункт как внешнюю ссылку в новой вкладке,
ISidebarItem.children делает пункт раскрывающейся группой с подпунктами
(ссылки или разделы). Без новых полей меню работает как раньше.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 10:12:13 +05:00

88 lines
4.0 KiB
TypeScript

// ============================================================
// @tnsu/ui-kit — единая точка экспорта компонентов.
// Только чистая презентация. Бизнес-логика/SharePoint — в проектах.
// ============================================================
// --- Кнопки ---
export { Button } from './Button/Button';
export { PrintButton, printRoot } from './PrintButton/PrintButton';
export { IconButton } from './IconButton/IconButton';
export type { IIconButtonProps } from './IconButton/IconButton';
export { DropdownButton } from './DropdownButton/DropdownButton';
export type { IDropdownButtonProps, IDropdownButtonOption } from './DropdownButton/DropdownButton';
// --- Сообщения / плашки ---
export { Alert } from './Alert/Alert';
export { RequestNumber } from './RequestNumber/RequestNumber';
export { Badge } from './Badge/Badge';
export type { IBadgeProps, BadgeVariant } from './Badge/Badge';
// --- Оболочка и раскладка формы ---
export { FormHeader } from './FormHeader/FormHeader';
export type { IFormHeaderProps } from './FormHeader/FormHeader';
export { FormCard } from './FormCard/FormCard';
export { FormGrid } from './FormGrid/FormGrid';
export { FormField } from './FormField/FormField';
export { FormActions } from './FormActions/FormActions';
export { CollapseSection } from './CollapseSection/CollapseSection';
// --- Поля ввода ---
export { TextInput } from './TextInput/TextInput';
export { TextArea } from './TextArea/TextArea';
export { PhoneInput } from './PhoneInput/PhoneInput';
export { MoneyInput } from './MoneyInput/MoneyInput';
export { Select } from './Select/Select';
export type { ISelectOption } from './Select/Select';
export { Toggle } from './Toggle/Toggle';
export { Checkbox } from './Checkbox/Checkbox';
export type { ICheckboxProps } from './Checkbox/Checkbox';
// --- Режим «только чтение» для полей формы ---
export { FormModeProvider, useFormReadOnly } from './FormMode';
// --- Иконки ---
export { Icon } from './Icon/Icon';
export { IconSprite } from './Icon/IconSprite';
export type { IconName } from './Icon/iconNames';
// --- Файлы / вложения ---
export { FileDropzone } from './FileDropzone/FileDropzone';
export { AttachmentList } from './AttachmentList/AttachmentList';
export type { IAttachmentInfo } from './AttachmentList/AttachmentList';
// --- Индикаторы состояния ---
export { Spinner } from './Spinner/Spinner';
export type { ISpinnerProps, SpinnerSize } from './Spinner/Spinner';
// --- Модалка подтверждения ---
export { ConfirmHost } from './ConfirmDialog/ConfirmDialog';
export { confirmModal } from './ConfirmDialog/confirmModal';
export type { IConfirmOptions } from './ConfirmDialog/confirmModal';
// --- Модальное окно (с телом и футером) ---
export { Dialog } from './Dialog/Dialog';
export type { IDialogProps } from './Dialog/Dialog';
// --- Раскладка приложения ---
export { AppLayout } from './AppLayout/AppLayout';
export type { IAppLayoutProps } from './AppLayout/AppLayout';
// --- Навигация ---
export { Tabs } from './Tabs/Tabs';
export type { ITab, ITabsProps } from './Tabs/Tabs';
export { Stepper, highestReachableIndex } from './Stepper/Stepper';
export type { IStepperStep, IStepperProps } from './Stepper/Stepper';
export { Sidebar } from './Sidebar/Sidebar';
export type { ISidebarItem, ISidebarSubItem, ISidebarProps } from './Sidebar/Sidebar';
export { SidebarToggle } from './Sidebar/SidebarToggle';
export type { ISidebarToggleProps } from './Sidebar/SidebarToggle';
export { Link } from './Link/Link';
export type { ILinkProps } from './Link/Link';
// --- Таблицы ---
export { DataTable } from './DataTable/DataTable';
export type { IDataTableColumn, IDataTableProps } from './DataTable/DataTable';
// --- Хук анимации перестановки строк таблицы (FLIP) ---
export { useFlipRows } from './useFlipRows';