@chrome-consulting/krit-ui 0.0.52 → 0.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/components/ui/attachmentsSection.d.ts +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/banner.d.ts +4 -4
- package/dist/components/ui/calendar.d.ts +1 -1
- package/dist/components/ui/card.d.ts +1 -1
- package/dist/components/ui/carousel.d.ts +8 -8
- package/dist/components/ui/collapsible-section.d.ts +1 -1
- package/dist/components/ui/command.d.ts +2 -2
- package/dist/components/ui/confirm-modal.d.ts +1 -1
- package/dist/components/ui/data-table.d.ts +3 -3
- package/dist/components/ui/date-picker.d.ts +14 -25
- package/dist/components/ui/dialog.d.ts +3 -3
- package/dist/components/ui/dot.d.ts +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +2 -2
- package/dist/components/ui/filters-column-header.d.ts +1 -1
- package/dist/components/ui/form.d.ts +1 -1
- package/dist/components/ui/header.d.ts +1 -1
- package/dist/components/ui/nav-panel.d.ts +1 -1
- package/dist/components/ui/nav.d.ts +2 -2
- package/dist/components/ui/network-error-message.d.ts +1 -1
- package/dist/components/ui/page-layout.d.ts +1 -1
- package/dist/components/ui/page-view-mode-toggle.d.ts +1 -1
- package/dist/components/ui/pagination.d.ts +2 -1
- package/dist/components/ui/post-card.d.ts +6 -6
- package/dist/components/ui/preloader.d.ts +1 -1
- package/dist/components/ui/previewFull.d.ts +1 -1
- package/dist/components/ui/previews.d.ts +1 -1
- package/dist/components/ui/previewsCompactList.d.ts +1 -1
- package/dist/components/ui/radix-dialog-dismiss.lib.d.ts +14 -0
- package/dist/components/ui/resizable.d.ts +2 -2
- package/dist/components/ui/secondary-panel-section.d.ts +1 -1
- package/dist/components/ui/segmented-control.d.ts +1 -1
- package/dist/components/ui/select-header-filter.d.ts +1 -1
- package/dist/components/ui/sheet.d.ts +2 -2
- package/dist/components/ui/skeleton.d.ts +1 -1
- package/dist/components/ui/sort-component.d.ts +1 -1
- package/dist/components/ui/sortable-header.d.ts +1 -1
- package/dist/components/ui/theme-provider.d.ts +1 -1
- package/dist/components/ui/toaster.d.ts +1 -1
- package/dist/components/ui/tooltip.d.ts +1 -1
- package/dist/components/ui/tree-view.d.ts +1 -1
- package/dist/components/ui/widget-plan-fact.d.ts +2 -2
- package/dist/hooks/usePreviewsFilePicker.d.ts +1 -1
- package/dist/hooks/useSidebar.d.ts +1 -1
- package/dist/krit-ui.js +21093 -17516
- package/dist/krit-ui.umd.cjs +36 -40
- package/dist/lib/infinite-scroll.d.ts +1 -1
- package/dist/lib/text.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +17 -15
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Библиотека UI компонентов для [KRIT](https://krit.global/)
|
|
4
4
|
|
|
5
|
+
## Совместимость
|
|
6
|
+
|
|
7
|
+
Библиотека поддерживает React и React DOM версий 18 и 19. React должен быть установлен в приложении-потребителе.
|
|
8
|
+
|
|
5
9
|
## Использование библиотеки
|
|
6
10
|
|
|
7
11
|
`<ThemeProvider>` обязательна для корректного отображения компонентов UI.
|
|
@@ -9,6 +13,7 @@
|
|
|
9
13
|
`<ThemeProvider>` принимает свойство `translations` через которое можно передать переводы.
|
|
10
14
|
|
|
11
15
|
### Пример
|
|
16
|
+
|
|
12
17
|
```jsx
|
|
13
18
|
<ThemeProvider translations={
|
|
14
19
|
{
|
|
@@ -51,4 +51,4 @@ export interface AttachmentsSectionProps {
|
|
|
51
51
|
* onAdd={(files) => handleUpload(files)}
|
|
52
52
|
* />
|
|
53
53
|
*/
|
|
54
|
-
export declare const AttachmentsSection: ({ title, tabs, orientation, previewsOrientation, hint, visibleSections, accepts, maxSizes, withCompress, onAdd, onRemove, showNoDataBanner, }: AttachmentsSectionProps) => import("react
|
|
54
|
+
export declare const AttachmentsSection: ({ title, tabs, orientation, previewsOrientation, hint, visibleSections, accepts, maxSizes, withCompress, onAdd, onRemove, showNoDataBanner, }: AttachmentsSectionProps) => import("react").JSX.Element;
|
|
@@ -28,5 +28,5 @@ export interface BadgeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
|
|
|
28
28
|
* New notification
|
|
29
29
|
* </Badge>
|
|
30
30
|
*/
|
|
31
|
-
declare function Badge({ className, variant, size, icon, iconRight, iconVariant, layout, children, ...props }: BadgeProps):
|
|
31
|
+
declare function Badge({ className, variant, size, icon, iconRight, iconVariant, layout, children, ...props }: BadgeProps): React.JSX.Element;
|
|
32
32
|
export { Badge };
|
|
@@ -21,7 +21,7 @@ interface BannerProps {
|
|
|
21
21
|
/**
|
|
22
22
|
* Универсальный компонент для отображения информационных баннеров
|
|
23
23
|
*/
|
|
24
|
-
export declare const Banner: ({ className, title, subtitle, variant, icon, actionText, onActionClick, }: BannerProps) => import("react
|
|
24
|
+
export declare const Banner: ({ className, title, subtitle, variant, icon, actionText, onActionClick, }: BannerProps) => import("react").JSX.Element;
|
|
25
25
|
/**
|
|
26
26
|
* Пропсы компонента ErrorBanner
|
|
27
27
|
*/
|
|
@@ -38,14 +38,14 @@ interface ErrorBannerProps {
|
|
|
38
38
|
* @param {ErrorBannerProps} props - Параметры компонента
|
|
39
39
|
* @returns {React.ReactElement} Баннер ошибки сети
|
|
40
40
|
*/
|
|
41
|
-
export declare const ErrorBanner: ({ className, onRefetchClick }: ErrorBannerProps) => import("react
|
|
41
|
+
export declare const ErrorBanner: ({ className, onRefetchClick }: ErrorBannerProps) => import("react").JSX.Element;
|
|
42
42
|
/**
|
|
43
43
|
* Баннер для ошибок маршрутизации с автоматической перезагрузкой
|
|
44
44
|
*
|
|
45
45
|
* @component
|
|
46
46
|
* @returns {React.ReactElement} Баннер ошибки маршрутизации
|
|
47
47
|
*/
|
|
48
|
-
export declare const RouteErrorBanner: () => import("react
|
|
48
|
+
export declare const RouteErrorBanner: () => import("react").JSX.Element;
|
|
49
49
|
/**
|
|
50
50
|
* Компонент для отображения состояния отсутствия данных
|
|
51
51
|
*
|
|
@@ -56,5 +56,5 @@ export declare const RouteErrorBanner: () => import("react/jsx-runtime").JSX.Ele
|
|
|
56
56
|
*/
|
|
57
57
|
export declare const NoDataBanner: ({ children }: {
|
|
58
58
|
children?: ReactNode;
|
|
59
|
-
}) => import("react
|
|
59
|
+
}) => import("react").JSX.Element;
|
|
60
60
|
export {};
|
|
@@ -11,7 +11,7 @@ export type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
|
11
11
|
* @param {boolean} [props.showOutsideDays=true] - Показывать дни из соседних месяцев
|
|
12
12
|
* @returns {JSX.Element} Компонент календаря
|
|
13
13
|
*/
|
|
14
|
-
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps):
|
|
14
|
+
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): React.JSX.Element;
|
|
15
15
|
declare namespace Calendar {
|
|
16
16
|
var displayName: string;
|
|
17
17
|
}
|
|
@@ -83,5 +83,5 @@ interface CardEditActionsProps {
|
|
|
83
83
|
onSave?: (e: ActionClickEvent) => Promise<void> | void;
|
|
84
84
|
onRemove?: (e: ActionClickEvent) => Promise<void> | void;
|
|
85
85
|
}
|
|
86
|
-
declare const CardEditActions: ({ onSave, onRemove }: CardEditActionsProps) =>
|
|
86
|
+
declare const CardEditActions: ({ onSave, onRemove }: CardEditActionsProps) => React.JSX.Element;
|
|
87
87
|
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, CardEditActions };
|
|
@@ -22,16 +22,16 @@ type CarouselProps = {
|
|
|
22
22
|
* @subcomponent CarouselThumbItem - Миниатюра слайда
|
|
23
23
|
* @subcomponent GalleryImages - Галерея изображений
|
|
24
24
|
*/
|
|
25
|
-
declare const Carousel: ({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<"div"> & CarouselProps) =>
|
|
26
|
-
declare const CarouselContent: ({ className, ...props }: React.ComponentProps<"div">) =>
|
|
27
|
-
declare const CarouselItem: ({ className, ...props }: React.ComponentProps<"div">) =>
|
|
28
|
-
declare const CarouselPrevious: ({ className, variant, size, ...props }: React.ComponentProps<typeof Button>) =>
|
|
29
|
-
declare const CarouselNext: ({ className, variant, size, ...props }: React.ComponentProps<typeof Button>) =>
|
|
30
|
-
declare const CarouselThumbs: ({ className, ...props }: React.ComponentProps<"div">) =>
|
|
25
|
+
declare const Carousel: ({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<"div"> & CarouselProps) => React.JSX.Element;
|
|
26
|
+
declare const CarouselContent: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
27
|
+
declare const CarouselItem: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
28
|
+
declare const CarouselPrevious: ({ className, variant, size, ...props }: React.ComponentProps<typeof Button>) => React.JSX.Element;
|
|
29
|
+
declare const CarouselNext: ({ className, variant, size, ...props }: React.ComponentProps<typeof Button>) => React.JSX.Element;
|
|
30
|
+
declare const CarouselThumbs: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
31
31
|
type CarouselThumbItemProps = {
|
|
32
32
|
index: number;
|
|
33
33
|
} & React.ComponentProps<'button'>;
|
|
34
|
-
declare const CarouselThumbItem: ({ index, className, children, ...props }: CarouselThumbItemProps) =>
|
|
34
|
+
declare const CarouselThumbItem: ({ index, className, children, ...props }: CarouselThumbItemProps) => React.JSX.Element;
|
|
35
35
|
/**
|
|
36
36
|
* Галерея изображений с превью и навигацией
|
|
37
37
|
* @template T - Тип элементов галереи
|
|
@@ -48,5 +48,5 @@ export declare const GalleryImages: <T>({ items, getUrl, getId, classNameMainIma
|
|
|
48
48
|
getId: (item: T) => number | string;
|
|
49
49
|
classNameMainImage?: string;
|
|
50
50
|
classNameOtherImages?: string;
|
|
51
|
-
}) =>
|
|
51
|
+
}) => React.JSX.Element;
|
|
52
52
|
export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, CarouselThumbs, CarouselThumbItem, };
|
|
@@ -33,5 +33,5 @@ interface CollapsibleSectionProps {
|
|
|
33
33
|
* @param {function} [props.onRefetch] - Колбэк повторной загрузки
|
|
34
34
|
* @param {function} [props.onAdd] - Колбэк добавления элемента
|
|
35
35
|
*/
|
|
36
|
-
export declare const CollapsibleSection: (props: CollapsibleSectionProps) => import("react
|
|
36
|
+
export declare const CollapsibleSection: (props: CollapsibleSectionProps) => import("react").JSX.Element;
|
|
37
37
|
export {};
|
|
@@ -29,7 +29,7 @@ interface CommandDialogProps extends DialogProps {
|
|
|
29
29
|
* @component
|
|
30
30
|
* @param {DialogProps} props - Пропсы диалога Radix UI
|
|
31
31
|
*/
|
|
32
|
-
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) =>
|
|
32
|
+
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => React.JSX.Element;
|
|
33
33
|
/**
|
|
34
34
|
* Поле ввода для поиска по командам
|
|
35
35
|
* @component
|
|
@@ -96,7 +96,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
96
96
|
forceMount?: boolean;
|
|
97
97
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
98
98
|
declare const CommandShortcut: {
|
|
99
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>):
|
|
99
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
100
100
|
displayName: string;
|
|
101
101
|
};
|
|
102
102
|
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
@@ -29,5 +29,5 @@ interface ConfirmModalProps extends PromptOptions {
|
|
|
29
29
|
* @param {function} [props.onConfirm] - Колбэк подтверждения
|
|
30
30
|
* @param {function} [props.onCancel] - Колбэк отмены
|
|
31
31
|
*/
|
|
32
|
-
export declare const ConfirmModal: (props: ConfirmModalProps) => import("react
|
|
32
|
+
export declare const ConfirmModal: (props: ConfirmModalProps) => import("react").JSX.Element;
|
|
33
33
|
export {};
|
|
@@ -78,17 +78,17 @@ interface DataTableProps<TData, TValue> {
|
|
|
78
78
|
* @param {boolean} [props.hideHeader=false] - Скрыть строку с заголовками
|
|
79
79
|
* @param {'table' | 'list'} [props.variant='table'] - Вариант стиля таблицы: 'table' - стандартный стиль с границами, 'list' - стиль списка без вертикальных границ и фона строк
|
|
80
80
|
*/
|
|
81
|
-
export declare function DataTable<TData, TValue>({ columns, data, horizontalPadding, rowCount, noResultsText, enableRowSelection, enableMultiRowSelection, selection, pagination, sorting, expanded, manualSorting, paginationProps, className, additionalSlot, selectedRowClassName, onSortingChange, getRowId, onPaginationChange, onRowSelectionChange, onRowClick, onExpandedChange, loading, skeletonClassName, isStickyHeader, headerClassName, columnVisibility, onColumnVisibilityChange, columnFilters, onColumnFiltersChange, rowHoverContent, hideHeader, variant, striped, columnSizingStorageKey, enableMultiSort, maxMultiSortColumns, }: DataTableProps<TData, TValue>):
|
|
81
|
+
export declare function DataTable<TData, TValue>({ columns, data, horizontalPadding, rowCount, noResultsText, enableRowSelection, enableMultiRowSelection, selection, pagination, sorting, expanded, manualSorting, paginationProps, className, additionalSlot, selectedRowClassName, onSortingChange, getRowId, onPaginationChange, onRowSelectionChange, onRowClick, onExpandedChange, loading, skeletonClassName, isStickyHeader, headerClassName, columnVisibility, onColumnVisibilityChange, columnFilters, onColumnFiltersChange, rowHoverContent, hideHeader, variant, striped, columnSizingStorageKey, enableMultiSort, maxMultiSortColumns, }: DataTableProps<TData, TValue>): React.JSX.Element;
|
|
82
82
|
interface TruncatedCellProps {
|
|
83
83
|
width?: number;
|
|
84
84
|
children?: string;
|
|
85
85
|
}
|
|
86
|
-
export declare function TruncatedCell({ width, children }: TruncatedCellProps):
|
|
86
|
+
export declare function TruncatedCell({ width, children }: TruncatedCellProps): React.JSX.Element;
|
|
87
87
|
interface DataTablePaginationProps<TData> {
|
|
88
88
|
table: TanTable<TData>;
|
|
89
89
|
horizontalPadding?: 'small' | 'medium' | 'large';
|
|
90
90
|
paginationProps?: PaginationProps;
|
|
91
91
|
variant?: 'table' | 'list';
|
|
92
92
|
}
|
|
93
|
-
export declare function DataTablePagination<TData>({ table, horizontalPadding, paginationProps, variant, }: DataTablePaginationProps<TData>):
|
|
93
|
+
export declare function DataTablePagination<TData>({ table, horizontalPadding, paginationProps, variant, }: DataTablePaginationProps<TData>): React.JSX.Element;
|
|
94
94
|
export {};
|
|
@@ -1,42 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnSelectHandler, PropsBase, PropsMulti, PropsRange, PropsSingle } from 'react-day-picker';
|
|
2
2
|
import { Locale } from 'date-fns/locale';
|
|
3
|
+
import * as React from 'react';
|
|
3
4
|
export interface DateRange {
|
|
4
5
|
from?: Date;
|
|
5
6
|
to?: Date;
|
|
6
7
|
}
|
|
7
|
-
|
|
8
|
+
interface DatePickerCommonProps {
|
|
8
9
|
placeholder?: string;
|
|
9
10
|
innerLabel?: string;
|
|
10
|
-
value?: Date | null;
|
|
11
|
-
onChange?: SelectSingleEventHandler;
|
|
12
11
|
error?: string | boolean;
|
|
13
12
|
readOnly?: boolean;
|
|
14
13
|
iconClassName?: string;
|
|
15
14
|
showReset?: boolean;
|
|
16
15
|
onRemoveClick?: () => void;
|
|
17
16
|
}
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
export type DatePickerSingleProps = PropsBase & PropsSingle & DatePickerCommonProps & {
|
|
18
|
+
value?: Date | null;
|
|
19
|
+
onChange?: OnSelectHandler<Date | undefined>;
|
|
20
|
+
};
|
|
21
|
+
export type DatePickerMultipleProps = PropsBase & PropsMulti & DatePickerCommonProps & {
|
|
21
22
|
value?: Date[];
|
|
22
|
-
onChange?:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
iconClassName?: string;
|
|
26
|
-
showReset?: boolean;
|
|
27
|
-
onRemoveClick?: () => void;
|
|
28
|
-
}
|
|
29
|
-
interface DatePickerRangeProps extends DayPickerRangeProps {
|
|
30
|
-
placeholder?: string;
|
|
31
|
-
innerLabel?: string;
|
|
23
|
+
onChange?: OnSelectHandler<Date[]>;
|
|
24
|
+
};
|
|
25
|
+
type DatePickerRangeProps = PropsBase & PropsRange & DatePickerCommonProps & {
|
|
32
26
|
value?: DateRange;
|
|
33
|
-
onChange?:
|
|
34
|
-
|
|
35
|
-
readOnly?: boolean;
|
|
36
|
-
iconClassName?: string;
|
|
37
|
-
showReset?: boolean;
|
|
38
|
-
onRemoveClick?: () => void;
|
|
39
|
-
}
|
|
27
|
+
onChange?: OnSelectHandler<DateRange | undefined>;
|
|
28
|
+
};
|
|
40
29
|
export type DatePickerProps = DatePickerSingleProps | DatePickerMultipleProps | (DatePickerRangeProps & {
|
|
41
30
|
locale?: Locale;
|
|
42
31
|
});
|
|
@@ -65,5 +54,5 @@ export type DatePickerProps = DatePickerSingleProps | DatePickerMultipleProps |
|
|
|
65
54
|
* showReset
|
|
66
55
|
* />
|
|
67
56
|
*/
|
|
68
|
-
export declare function DatePicker({ className, locale, iconClassName, ...rawProps }: DatePickerProps):
|
|
57
|
+
export declare function DatePicker({ className, locale, iconClassName, ...rawProps }: DatePickerProps): React.JSX.Element;
|
|
69
58
|
export {};
|
|
@@ -37,7 +37,7 @@ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitiv
|
|
|
37
37
|
declare const DialogHeader: {
|
|
38
38
|
({ className, hideCloseButton, ...props }: React.HTMLAttributes<HTMLDivElement> & {
|
|
39
39
|
hideCloseButton?: boolean;
|
|
40
|
-
}):
|
|
40
|
+
}): React.JSX.Element;
|
|
41
41
|
displayName: string;
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
@@ -49,7 +49,7 @@ interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
49
49
|
align?: 'start' | 'end';
|
|
50
50
|
}
|
|
51
51
|
declare const DialogFooter: {
|
|
52
|
-
({ className, align, ...props }: DialogFooterProps):
|
|
52
|
+
({ className, align, ...props }: DialogFooterProps): React.JSX.Element;
|
|
53
53
|
displayName: string;
|
|
54
54
|
};
|
|
55
55
|
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -60,7 +60,7 @@ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrim
|
|
|
60
60
|
* @param {boolean} [scrollableSection] - Активировать прокрутку содержимого
|
|
61
61
|
*/
|
|
62
62
|
declare const DialogSection: {
|
|
63
|
-
({ className, scrollableSection, ...props }: DialogSectionProps):
|
|
63
|
+
({ className, scrollableSection, ...props }: DialogSectionProps): React.JSX.Element;
|
|
64
64
|
displayName: string;
|
|
65
65
|
};
|
|
66
66
|
export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogSection, };
|
|
@@ -36,7 +36,7 @@ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMe
|
|
|
36
36
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
37
37
|
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
38
38
|
declare const DropdownMenuShortcut: {
|
|
39
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>):
|
|
39
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
40
40
|
displayName: string;
|
|
41
41
|
};
|
|
42
42
|
interface DropdownActionItem {
|
|
@@ -63,5 +63,5 @@ interface DropdownActionsProps {
|
|
|
63
63
|
* <Button>Actions</Button>
|
|
64
64
|
* </DropdownActions>
|
|
65
65
|
*/
|
|
66
|
-
export declare const DropdownActions: ({ triggerClassName, actions, children, renderItem, }: DropdownActionsProps) =>
|
|
66
|
+
export declare const DropdownActions: ({ triggerClassName, actions, children, renderItem, }: DropdownActionsProps) => React.JSX.Element;
|
|
67
67
|
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
|
|
@@ -24,5 +24,5 @@ export type ColumnSortDirection = false | 'asc' | 'desc';
|
|
|
24
24
|
interface FiltersColumnHeaderProps extends BaseFilterProps {
|
|
25
25
|
className?: string;
|
|
26
26
|
}
|
|
27
|
-
export declare const FiltersColumnHeader: ({ children, type, column, table, applyText, locale, options, excludeFilterValues, className, sortable, sorted, allowSortingReset, }: FiltersColumnHeaderProps) => import("react
|
|
27
|
+
export declare const FiltersColumnHeader: ({ children, type, column, table, applyText, locale, options, excludeFilterValues, className, sortable, sorted, allowSortingReset, }: FiltersColumnHeaderProps) => import("react").JSX.Element;
|
|
28
28
|
export {};
|
|
@@ -19,7 +19,7 @@ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransfor
|
|
|
19
19
|
* @param {ControllerProps<TFieldValues, TName>} props - Свойства Controller
|
|
20
20
|
* @returns {JSX.Element}
|
|
21
21
|
*/
|
|
22
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) =>
|
|
22
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React.JSX.Element;
|
|
23
23
|
interface FormItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
24
24
|
/** Расположение элементов по горизонтали */
|
|
25
25
|
horizontal?: boolean;
|
|
@@ -35,5 +35,5 @@ interface PageHeaderProps {
|
|
|
35
35
|
* actions={<Button>Действие</Button>}
|
|
36
36
|
* />
|
|
37
37
|
*/
|
|
38
|
-
export declare const PageHeader: ({ className, title, titleActions, leftMeta, meta, actions, onBack, onNext, onPrevious, }: PageHeaderProps) => import("react
|
|
38
|
+
export declare const PageHeader: ({ className, title, titleActions, leftMeta, meta, actions, onBack, onNext, onPrevious, }: PageHeaderProps) => import("react").JSX.Element;
|
|
39
39
|
export {};
|
|
@@ -46,7 +46,7 @@ export interface NavPanelProps {
|
|
|
46
46
|
bottomSlot?: React.ReactNode;
|
|
47
47
|
}
|
|
48
48
|
declare const NavPanel: {
|
|
49
|
-
(props: NavPanelProps):
|
|
49
|
+
(props: NavPanelProps): React.JSX.Element;
|
|
50
50
|
displayName: string;
|
|
51
51
|
};
|
|
52
52
|
export { NavPanel };
|
|
@@ -42,11 +42,11 @@ interface NavProps {
|
|
|
42
42
|
LinkComponent: React.ElementType;
|
|
43
43
|
location?: Location;
|
|
44
44
|
}
|
|
45
|
-
export declare function Nav(props: NavProps):
|
|
45
|
+
export declare function Nav(props: NavProps): React.JSX.Element;
|
|
46
46
|
/**
|
|
47
47
|
* Разделитель для навигации
|
|
48
48
|
* @component
|
|
49
49
|
* @returns {JSX.Element} Элемент разделителя
|
|
50
50
|
*/
|
|
51
|
-
export declare function NavSeparator():
|
|
51
|
+
export declare function NavSeparator(): React.JSX.Element;
|
|
52
52
|
export {};
|
|
@@ -43,4 +43,4 @@ export interface NetworkErrorMessageProps {
|
|
|
43
43
|
* />
|
|
44
44
|
* </div>
|
|
45
45
|
*/
|
|
46
|
-
export declare const NetworkErrorMessage: ({ className, textSize, isLoading, isError, center, inline, onRefetch, }: NetworkErrorMessageProps) => import("react
|
|
46
|
+
export declare const NetworkErrorMessage: ({ className, textSize, isLoading, isError, center, inline, onRefetch, }: NetworkErrorMessageProps) => import("react").JSX.Element | null;
|
|
@@ -24,5 +24,5 @@ interface PageLayoutProps {
|
|
|
24
24
|
* contentSlot={<Table />}
|
|
25
25
|
* />
|
|
26
26
|
*/
|
|
27
|
-
export declare const PageLayout: ({ headerSlot, filterSlot, contentSlot, contentSlotOverflowHidden, }: PageLayoutProps) => import("react
|
|
27
|
+
export declare const PageLayout: ({ headerSlot, filterSlot, contentSlot, contentSlotOverflowHidden, }: PageLayoutProps) => import("react").JSX.Element;
|
|
28
28
|
export {};
|
|
@@ -19,4 +19,4 @@ export interface PageViewModeToggleProps {
|
|
|
19
19
|
*
|
|
20
20
|
* @component
|
|
21
21
|
*/
|
|
22
|
-
export declare const PageViewModeToggle: ({ className, listAriaLabel, tableAriaLabel, }: PageViewModeToggleProps) => import("react
|
|
22
|
+
export declare const PageViewModeToggle: ({ className, listAriaLabel, tableAriaLabel, }: PageViewModeToggleProps) => import("react").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
export declare const DEFAULT_PAGE_SIZE_OPTIONS: number[];
|
|
2
3
|
/**
|
|
3
4
|
* Свойства компонента пагинации
|
|
@@ -118,4 +119,4 @@ export interface PaginationProps {
|
|
|
118
119
|
* setPageIndex={(index) => setPageIndex(index)}
|
|
119
120
|
* />
|
|
120
121
|
*/
|
|
121
|
-
export declare function Pagination({ horizontalPadding, className, pageSize, pageCount, pageIndex, canPreviousPage, canNextPage, selectedCount, totalCount, compact, hideDisplayBy, pageSizeOptions, previousPage, nextPage, setPageSize, setPageIndex, }: PaginationProps):
|
|
122
|
+
export declare function Pagination({ horizontalPadding, className, pageSize, pageCount, pageIndex, canPreviousPage, canNextPage, selectedCount, totalCount, compact, hideDisplayBy, pageSizeOptions, previousPage, nextPage, setPageSize, setPageIndex, }: PaginationProps): React.JSX.Element;
|
|
@@ -50,7 +50,7 @@ interface PostCardHeaderProps {
|
|
|
50
50
|
* />
|
|
51
51
|
*/
|
|
52
52
|
declare const PostCardHeader: {
|
|
53
|
-
({ titlePrefix, titleText, buttonsSlot, dropDownButtons, onBack, className, }: PostCardHeaderProps):
|
|
53
|
+
({ titlePrefix, titleText, buttonsSlot, dropDownButtons, onBack, className, }: PostCardHeaderProps): React.JSX.Element;
|
|
54
54
|
displayName: string;
|
|
55
55
|
};
|
|
56
56
|
export interface PostCardBodyField {
|
|
@@ -98,7 +98,7 @@ interface PostCardBodyProps {
|
|
|
98
98
|
* />
|
|
99
99
|
*/
|
|
100
100
|
declare const PostCardBody: {
|
|
101
|
-
({ sections, className }: PostCardBodyProps):
|
|
101
|
+
({ sections, className }: PostCardBodyProps): React.JSX.Element | null;
|
|
102
102
|
displayName: string;
|
|
103
103
|
};
|
|
104
104
|
interface PostCardSidebarProps {
|
|
@@ -124,7 +124,7 @@ interface PostCardSidebarProps {
|
|
|
124
124
|
* </PostCardSidebar>
|
|
125
125
|
*/
|
|
126
126
|
declare const PostCardSidebar: {
|
|
127
|
-
({ children, className }: PostCardSidebarProps):
|
|
127
|
+
({ children, className }: PostCardSidebarProps): React.JSX.Element;
|
|
128
128
|
displayName: string;
|
|
129
129
|
};
|
|
130
130
|
interface PostCardLeftPanelItemProps {
|
|
@@ -165,7 +165,7 @@ interface PostCardLeftPanelItemProps {
|
|
|
165
165
|
* />
|
|
166
166
|
*/
|
|
167
167
|
declare const PostCardLeftPanelItem: {
|
|
168
|
-
({ headerSlot, contentSlot, footerSlot, selected, onClick, className, }: PostCardLeftPanelItemProps):
|
|
168
|
+
({ headerSlot, contentSlot, footerSlot, selected, onClick, className, }: PostCardLeftPanelItemProps): React.JSX.Element | null;
|
|
169
169
|
displayName: string;
|
|
170
170
|
};
|
|
171
171
|
interface PostCardLeftPanelProps {
|
|
@@ -200,7 +200,7 @@ interface PostCardLeftPanelProps {
|
|
|
200
200
|
* </PostCardLeftPanel>
|
|
201
201
|
*/
|
|
202
202
|
declare const PostCardLeftPanel: {
|
|
203
|
-
({ sortSlot, children, paginationSlot, className, }: PostCardLeftPanelProps):
|
|
203
|
+
({ sortSlot, children, paginationSlot, className, }: PostCardLeftPanelProps): React.JSX.Element;
|
|
204
204
|
displayName: string;
|
|
205
205
|
};
|
|
206
206
|
export interface PostCardLeftPanelResizableConfig {
|
|
@@ -267,7 +267,7 @@ interface PostCardProps {
|
|
|
267
267
|
* />
|
|
268
268
|
*/
|
|
269
269
|
declare const PostCard: {
|
|
270
|
-
({ leftPanelSlot, leftPanelResizable, headerSlot, bodySlot, sidebarSlot, contentSlot, className, withTopBorder, fixedHeight, }: PostCardProps):
|
|
270
|
+
({ leftPanelSlot, leftPanelResizable, headerSlot, bodySlot, sidebarSlot, contentSlot, className, withTopBorder, fixedHeight, }: PostCardProps): React.JSX.Element | null;
|
|
271
271
|
displayName: string;
|
|
272
272
|
};
|
|
273
273
|
export { PostCardHeader, PostCardBody, PostCardSidebar, PostCard, PostCardLeftPanel, PostCardLeftPanelItem, };
|
|
@@ -19,5 +19,5 @@ export interface PreloaderProps {
|
|
|
19
19
|
* @example
|
|
20
20
|
* <Preloader className="my-custom-class" style={{ background: 'white' }} />
|
|
21
21
|
*/
|
|
22
|
-
declare const Preloader: ({ style, className }: PreloaderProps) => import("react
|
|
22
|
+
declare const Preloader: ({ style, className }: PreloaderProps) => import("react").JSX.Element;
|
|
23
23
|
export { Preloader };
|
|
@@ -36,5 +36,5 @@ interface PreviewFullProps {
|
|
|
36
36
|
* <button>Open Preview</button>
|
|
37
37
|
* </PreviewFull>
|
|
38
38
|
*/
|
|
39
|
-
export declare const PreviewFull: ({ children, src, name, type, onPrev, onNext, onRemove, }: PreviewFullProps) => import("react
|
|
39
|
+
export declare const PreviewFull: ({ children, src, name, type, onPrev, onNext, onRemove, }: PreviewFullProps) => import("react").JSX.Element;
|
|
40
40
|
export {};
|
|
@@ -66,4 +66,4 @@ export interface PreviewsProps {
|
|
|
66
66
|
*
|
|
67
67
|
* Для компактного списка и кнопки в другом месте экрана см. `PreviewsCompactList` и `usePreviewsFilePicker`.
|
|
68
68
|
*/
|
|
69
|
-
export declare const Previews: (props: PreviewsProps) => import("react
|
|
69
|
+
export declare const Previews: (props: PreviewsProps) => import("react").JSX.Element;
|
|
@@ -15,4 +15,4 @@ export interface PreviewsCompactListProps {
|
|
|
15
15
|
* Компактный горизонтальный список вложений (макет Figma File Upload New). Логика удаления и модального превью — как у Previews.
|
|
16
16
|
* В паре с `usePreviewsFilePicker`: список и кнопка-скрепка в разных местах разметки.
|
|
17
17
|
*/
|
|
18
|
-
export declare const PreviewsCompactList: ({ className, data, onRemove, title, }: PreviewsCompactListProps) => import("react
|
|
18
|
+
export declare const PreviewsCompactList: ({ className, data, onRemove, title, }: PreviewsCompactListProps) => import("react").JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
type DialogContentProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;
|
|
4
|
+
declare const createDialogOutsideInteractionHandlers: (options: Pick<DialogContentProps, "onPointerDownOutside" | "onInteractOutside">) => {
|
|
5
|
+
onPointerDownOutside: (event: CustomEvent<{
|
|
6
|
+
originalEvent: PointerEvent;
|
|
7
|
+
}>) => void;
|
|
8
|
+
onInteractOutside: (event: CustomEvent<{
|
|
9
|
+
originalEvent: PointerEvent;
|
|
10
|
+
}> | CustomEvent<{
|
|
11
|
+
originalEvent: FocusEvent;
|
|
12
|
+
}>) => void;
|
|
13
|
+
};
|
|
14
|
+
export { createDialogOutsideInteractionHandlers };
|
|
@@ -28,7 +28,7 @@ declare const ResizablePanelGroup: React.ForwardRefExoticComponent<PanelGroupPro
|
|
|
28
28
|
* Изменяемая панель, которая может быть перетаскиваема для изменения размера.
|
|
29
29
|
* Прямой ре-экспорт Panel из react-resizable-panels.
|
|
30
30
|
*/
|
|
31
|
-
declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLSpanElement | HTMLObjectElement | HTMLTitleElement | HTMLSlotElement | HTMLStyleElement | HTMLLinkElement |
|
|
31
|
+
declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLFormElement | HTMLSpanElement | HTMLObjectElement | HTMLTitleElement | HTMLSlotElement | HTMLStyleElement | HTMLLinkElement | HTMLMapElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLTimeElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSourceElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
32
32
|
className?: string | undefined;
|
|
33
33
|
collapsedSize?: number | undefined;
|
|
34
34
|
collapsible?: boolean | undefined;
|
|
@@ -61,5 +61,5 @@ declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAtt
|
|
|
61
61
|
*/
|
|
62
62
|
declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
63
63
|
withHandle?: boolean;
|
|
64
|
-
}) =>
|
|
64
|
+
}) => React.JSX.Element;
|
|
65
65
|
export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
|
|
@@ -17,4 +17,4 @@ export interface SecondaryPanelSectionProps {
|
|
|
17
17
|
* Секция на вторичном фоне: слот действий, затем либо пустое состояние с текстом, либо основной контент.
|
|
18
18
|
* Скругление — `rounded-lg` (`--krit-radius` в tailwind.css), отступы — `p-6` (шкала spacing Tailwind).
|
|
19
19
|
*/
|
|
20
|
-
export declare const SecondaryPanelSection: ({ emptyStateText, actionsSlot, children, isEmpty, className, innerClassName, }: SecondaryPanelSectionProps) => import("react
|
|
20
|
+
export declare const SecondaryPanelSection: ({ emptyStateText, actionsSlot, children, isEmpty, className, innerClassName, }: SecondaryPanelSectionProps) => import("react").JSX.Element;
|
|
@@ -32,4 +32,4 @@ export interface SegmentedControlProps {
|
|
|
32
32
|
* onClick={(value) => console.log(value)}
|
|
33
33
|
* />
|
|
34
34
|
*/
|
|
35
|
-
export declare const SegmentedControl: ({ defaultValue, options, onClick }: SegmentedControlProps) => import("react
|
|
35
|
+
export declare const SegmentedControl: ({ defaultValue, options, onClick }: SegmentedControlProps) => import("react").JSX.Element;
|
|
@@ -19,5 +19,5 @@ type ColumnFilterProps<T = string | number> = {
|
|
|
19
19
|
onSearchChange?: (search: string) => void;
|
|
20
20
|
onCheckedChange?: (checked: Options<T> | undefined) => void;
|
|
21
21
|
};
|
|
22
|
-
export declare const SelectHeaderFilter: <T>({ table, column, excludeAllLabel, options, checked, disabled, hidden, search, radio, onSearchChange, onCheckedChange, }: ColumnFilterProps<T>) => import("react
|
|
22
|
+
export declare const SelectHeaderFilter: <T>({ table, column, excludeAllLabel, options, checked, disabled, hidden, search, radio, onSearchChange, onCheckedChange, }: ColumnFilterProps<T>) => import("react").JSX.Element;
|
|
23
23
|
export {};
|
|
@@ -78,7 +78,7 @@ declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps &
|
|
|
78
78
|
* ```
|
|
79
79
|
*/
|
|
80
80
|
declare const SheetHeader: {
|
|
81
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
81
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
82
82
|
displayName: string;
|
|
83
83
|
};
|
|
84
84
|
/**
|
|
@@ -96,7 +96,7 @@ declare const SheetHeader: {
|
|
|
96
96
|
* ```
|
|
97
97
|
*/
|
|
98
98
|
declare const SheetFooter: {
|
|
99
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
99
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
100
100
|
displayName: string;
|
|
101
101
|
};
|
|
102
102
|
/**
|
|
@@ -17,7 +17,7 @@ import * as React from 'react';
|
|
|
17
17
|
* // Плейсхолдер для аватара
|
|
18
18
|
* <Skeleton className="h-12 w-12 rounded-full" />
|
|
19
19
|
*/
|
|
20
|
-
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
20
|
+
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
21
21
|
declare namespace Skeleton {
|
|
22
22
|
var displayName: string;
|
|
23
23
|
}
|
|
@@ -43,4 +43,4 @@ export interface SortComponentProps<T extends string> {
|
|
|
43
43
|
* onFieldChange={(field) => {}}
|
|
44
44
|
* />
|
|
45
45
|
*/
|
|
46
|
-
export declare const SortComponent: <T extends string>({ sortOrder, sortField, className, options, placeholder, onOrderToggle, onFieldChange, }: SortComponentProps<T>) => import("react
|
|
46
|
+
export declare const SortComponent: <T extends string>({ sortOrder, sortField, className, options, placeholder, onOrderToggle, onFieldChange, }: SortComponentProps<T>) => import("react").JSX.Element;
|
|
@@ -12,5 +12,5 @@ interface SortableHeaderProps<TData extends RowData, TValue = unknown> {
|
|
|
12
12
|
*/
|
|
13
13
|
sortingCount?: number;
|
|
14
14
|
}
|
|
15
|
-
export declare const SortableHeader: <TData extends RowData, TValue = unknown>({ className, children, column, enableMultiSort, maxMultiSortColumns, sortingCount, }: SortableHeaderProps<TData, TValue>) => import("react
|
|
15
|
+
export declare const SortableHeader: <TData extends RowData, TValue = unknown>({ className, children, column, enableMultiSort, maxMultiSortColumns, sortingCount, }: SortableHeaderProps<TData, TValue>) => import("react").JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -132,5 +132,5 @@ export declare const ThemeProviderContext: import('react').Context<ThemeProvider
|
|
|
132
132
|
* <App />
|
|
133
133
|
* </ThemeProvider>
|
|
134
134
|
*/
|
|
135
|
-
export declare function ThemeProvider({ children, defaultTheme, storageKey, themeVersion, ...props }: ThemeProviderProps): import("react
|
|
135
|
+
export declare function ThemeProvider({ children, defaultTheme, storageKey, themeVersion, ...props }: ThemeProviderProps): import("react").JSX.Element;
|
|
136
136
|
export {};
|
|
@@ -18,5 +18,5 @@ interface ToasterProps {
|
|
|
18
18
|
* @example
|
|
19
19
|
* <Toaster viewportClassname="custom-viewport" />
|
|
20
20
|
*/
|
|
21
|
-
export declare function Toaster(props: ToasterProps): import("react
|
|
21
|
+
export declare function Toaster(props: ToasterProps): import("react").JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -61,5 +61,5 @@ interface InfoTooltipProps {
|
|
|
61
61
|
* <Button>Наведи меня</Button>
|
|
62
62
|
* </InfoTooltip>
|
|
63
63
|
*/
|
|
64
|
-
declare const InfoTooltip: ({ children, text, delayDuration }: InfoTooltipProps) =>
|
|
64
|
+
declare const InfoTooltip: ({ children, text, delayDuration }: InfoTooltipProps) => React.JSX.Element;
|
|
65
65
|
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, InfoTooltip };
|
|
@@ -93,4 +93,4 @@ export interface TreeViewProps<T extends TreeNode> {
|
|
|
93
93
|
/**
|
|
94
94
|
* TreeView - компонент для отображения иерархических данных в табличном формате.
|
|
95
95
|
*/
|
|
96
|
-
export declare const TreeView: <T extends TreeNode>(props: TreeViewProps<T>) => import("react
|
|
96
|
+
export declare const TreeView: <T extends TreeNode>(props: TreeViewProps<T>) => import("react").JSX.Element;
|