@helloimkostya/konsolpro-custom-ui-mini 0.0.401
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 +116 -0
- package/assets/alfa-BqdpLXjE.png +0 -0
- package/assets/doc-CA2MQk3m.webp +0 -0
- package/assets/document-approved-CkP0p152.webp +0 -0
- package/assets/document-sign-DtWnrhUb.webp +0 -0
- package/assets/documents-refresh-Ct8s1Pc3.webp +0 -0
- package/assets/download-D4NtsTXF.webp +0 -0
- package/assets/empty-box-ByMlwLaV.png +0 -0
- package/assets/headphones-b1FlU-5n.webp +0 -0
- package/assets/magnifying-glass-DnHnztsH.webp +0 -0
- package/assets/mandarin-O1JQvcin.png +0 -0
- package/assets/person-Dnyaeaax.webp +0 -0
- package/assets/plus-XlrU9iHE.webp +0 -0
- package/assets/pocket-DumMTe-y.webp +0 -0
- package/assets/status-error-CVSJeY0m.webp +0 -0
- package/assets/status-success-CQUzL9Lb.webp +0 -0
- package/assets/status-warning-qsHG0-rO.webp +0 -0
- package/assets/tbank-DHDEULnP.png +0 -0
- package/assets/torn-paper-Bxt8F9jg.webp +0 -0
- package/assets/user-add-BchFss_X.webp +0 -0
- package/assets/user-approved-BKiSeYH5.webp +0 -0
- package/assets/user-question-BrqYjUap.webp +0 -0
- package/assets/wallet-B1cH4oVg.webp +0 -0
- package/chunks/account-balance-icon-CKxx1j3X.js +17 -0
- package/chunks/add-circle-icon-D3XpY2oT.js +17 -0
- package/chunks/add-icon-CZXR66VL.js +17 -0
- package/chunks/android-icon-6SCGu50U.js +17 -0
- package/chunks/apple-icon-yya6O1xg.js +17 -0
- package/chunks/arrow-back-icon-C_VwBDNK.js +17 -0
- package/chunks/arrow-back-ios-icon-CB5K_mmJ.js +17 -0
- package/chunks/arrow-down-icon-DFvg75P7.js +17 -0
- package/chunks/arrow-forward-icon-BI4dm_L2.js +17 -0
- package/chunks/arrow-left-icon-8yWT42A8.js +17 -0
- package/chunks/arrow-right-icon-Bnx7GHux.js +17 -0
- package/chunks/arrow-up-icon-DU7VVzN8.js +17 -0
- package/chunks/attach-file-icon-OrT7tthI.js +17 -0
- package/chunks/autorenew-icon-B0bI6Xt-.js +17 -0
- package/chunks/bell-icon-L-Ynt5XK.js +17 -0
- package/chunks/bill-error-icon-q8_KROAY.js +17 -0
- package/chunks/bill-icon-Cw2GE_VB.js +17 -0
- package/chunks/bill-in-progress-icon-BTsO5Mh5.js +17 -0
- package/chunks/bill-warning-icon-3Y-dONd_.js +17 -0
- package/chunks/bills-error-icon-CcDGUJrx.js +17 -0
- package/chunks/bills-icon-BU_adAs0.js +17 -0
- package/chunks/bills-in-progress-icon-RVEtPz7l.js +17 -0
- package/chunks/bills-warning-icon-CNgWvumi.js +17 -0
- package/chunks/block-icon-DGlp9c33.js +17 -0
- package/chunks/bolt-fill-icon-DZjyKq8N.js +17 -0
- package/chunks/bolt-icon-CJsvLlL-.js +17 -0
- package/chunks/book-icon-BdaCKIQB.js +17 -0
- package/chunks/business-center-icon-C5X-e-6I.js +17 -0
- package/chunks/calendar-icon-B1cogiSd.js +17 -0
- package/chunks/call-icon-DslHaQOP.js +17 -0
- package/chunks/cancel-fill-DPYenlCk.js +17 -0
- package/chunks/check-circle-fill-ne1MhahL.js +17 -0
- package/chunks/check-circle-icon-BWhJprgU.js +17 -0
- package/chunks/close-icon-CtbXesC0.js +17 -0
- package/chunks/cookie-DJ-U7h-A.js +17 -0
- package/chunks/copy-icon-BWyncDVB.js +17 -0
- package/chunks/credit-card-icon-DS1ckDU7.js +17 -0
- package/chunks/delete-icon-Bk1ZmhBo.js +17 -0
- package/chunks/document-icon-DcmQhRhY.js +17 -0
- package/chunks/done-icon-BZEAL7mI.js +17 -0
- package/chunks/dont-disturb-o1xt1TeU.js +17 -0
- package/chunks/download-icon-BvWPcT7W.js +17 -0
- package/chunks/edit-icon-_3venQRC.js +17 -0
- package/chunks/error-fill-icon--8j3Zcfq.js +17 -0
- package/chunks/error-icon-CgJ3zr06.js +17 -0
- package/chunks/file-error-icon-630wBy1K.js +17 -0
- package/chunks/file-success-icon-BTk5SYAM.js +17 -0
- package/chunks/filter-icon-D_3_SQsN.js +17 -0
- package/chunks/flag-icon-DmWEp4ya.js +17 -0
- package/chunks/full-screen-exit-icon-BHwq-9P-.js +17 -0
- package/chunks/full-screen-icon-Dpl__xtk.js +17 -0
- package/chunks/group-icon-BfSRHuvp.js +17 -0
- package/chunks/help-icon-BMdlItds.js +17 -0
- package/chunks/home-icon-Mag5Wxqq.js +17 -0
- package/chunks/info-fill-icon-BzE09Xg8.js +17 -0
- package/chunks/info-icon-BcUNe5kE.js +17 -0
- package/chunks/inventory-icon-CFV8amBs.js +17 -0
- package/chunks/link-icon-BUAymb0P.js +17 -0
- package/chunks/list-icon-ChePCGxK.js +17 -0
- package/chunks/location-icon-Bf9Wbg65.js +17 -0
- package/chunks/logout-icon-DN86wp7N.js +17 -0
- package/chunks/mail-icon-DCZPsZFE.js +17 -0
- package/chunks/manage-accounts-icon-BkyuUTj3.js +17 -0
- package/chunks/max-icon-CTdBEAt8.js +17 -0
- package/chunks/menu-icon-DWObHD95.js +17 -0
- package/chunks/more-horiz-icon-CSK7Ackl.js +17 -0
- package/chunks/more-vert-icon-NA1tYTse.js +17 -0
- package/chunks/north-east-icon-Dh7-1BBW.js +17 -0
- package/chunks/open-in-full-icon-DzhRd5Mx.js +17 -0
- package/chunks/open-in-new-icon-A7MgnnyP.js +17 -0
- package/chunks/outgoing-main-icon-BAH2vddG.js +17 -0
- package/chunks/page-info-icon-BiVNFu71.js +17 -0
- package/chunks/pause-circle-icon-Dpio-qM3.js +17 -0
- package/chunks/payment-icon-C-B7L4WP.js +17 -0
- package/chunks/person-add-C-3pZhgM.js +17 -0
- package/chunks/person-icon-Bo5NxPRQ.js +17 -0
- package/chunks/person-search-icon-CwVm_XAL.js +17 -0
- package/chunks/pincode-icon-BA-e4pBH.js +17 -0
- package/chunks/play-icon-Bnj3hsIf.js +17 -0
- package/chunks/progress-activity-icon-YbJGzvxH.js +17 -0
- package/chunks/refresh-icon-ac1oOwX8.js +17 -0
- package/chunks/remove-icon-CTuoG0Vq.js +17 -0
- package/chunks/save-icon-DnF5revo.js +17 -0
- package/chunks/sberid-icon-DgQtjRjD.js +17 -0
- package/chunks/scenario-icon-BcnFsqUA.js +17 -0
- package/chunks/search-icon-CortrXrC.js +17 -0
- package/chunks/segment-icon-Bzm7cziF.js +17 -0
- package/chunks/send-icon-BTztERTu.js +17 -0
- package/chunks/settings-backup-restore-icon-DUrmFxtk.js +17 -0
- package/chunks/settings-icon-D_wgjUsM.js +17 -0
- package/chunks/shield-icon-BwpxkU5E.js +17 -0
- package/chunks/sms-icon-4p-ON5VX.js +17 -0
- package/chunks/statistic-icon-mhqUxTDv.js +17 -0
- package/chunks/support-icon-CBHKGKq8.js +17 -0
- package/chunks/telegramm-icon-C2ZR2jdg.js +17 -0
- package/chunks/thumbs-up-icon-BArjyDfk.js +17 -0
- package/chunks/time-icon-DsWMo47L.js +17 -0
- package/chunks/tinkoffid-icon-DN9XKuNA.js +17 -0
- package/chunks/trending-down-icon-DlHKI37F.js +17 -0
- package/chunks/trending-up-icon-IEwGHi9c.js +17 -0
- package/chunks/unfold-icon-S3J7xXHf.js +17 -0
- package/chunks/upload-icon-CwzthQEL.js +17 -0
- package/chunks/visibility-off-icon-BA_I97Vw.js +17 -0
- package/chunks/visibility-on-icon-C9VmKsvX.js +17 -0
- package/chunks/wallet-icon-D0r9bDRg.js +17 -0
- package/chunks/whats-app-icon-XbrqQF8U.js +17 -0
- package/chunks/work-icon-D7I-74Mk.js +17 -0
- package/chunks/zoom-in-icon-ZWEJANob.js +17 -0
- package/chunks/zoom-out-icon-CeFz3G6V.js +17 -0
- package/lib/index-mini.js +2877 -0
- package/package.json +29 -0
- package/styles/fonts.css +30 -0
- package/styles/konsolpro-custom-ui.css +1 -0
- package/styles/variables.css +305 -0
- package/types/icon/icon.d.ts +10 -0
- package/types/icon/icons.d.ts +112 -0
- package/types/icon/index.d.ts +3 -0
- package/types/icon-banks/icon-banks.d.ts +7 -0
- package/types/icon-banks/icons-banks.d.ts +28 -0
- package/types/icon-banks/index.d.ts +3 -0
- package/types/icon-documents/icon-document.d.ts +9 -0
- package/types/icon-documents/icons-document.d.ts +13 -0
- package/types/icon-documents/index.d.ts +3 -0
- package/types/index-mini.d.ts +15 -0
- package/types/index.d.ts +55 -0
- package/types/ui/accordion.d.ts +13 -0
- package/types/ui/actions-menu.d.ts +40 -0
- package/types/ui/alert.d.ts +16 -0
- package/types/ui/autocomplete.d.ts +23 -0
- package/types/ui/avatar.d.ts +27 -0
- package/types/ui/banner.d.ts +12 -0
- package/types/ui/button.d.ts +38 -0
- package/types/ui/calendar.d.ts +4 -0
- package/types/ui/card.d.ts +38 -0
- package/types/ui/carousel.d.ts +11 -0
- package/types/ui/checkbox.d.ts +27 -0
- package/types/ui/combobox-base/combobox-base.d.ts +10 -0
- package/types/ui/combobox-base/index.d.ts +1 -0
- package/types/ui/combobox-multiselect/combobox-multiselect-context.d.ts +56 -0
- package/types/ui/combobox-multiselect/combobox-multiselect.d.ts +41 -0
- package/types/ui/combobox-multiselect/components/combobox-actions.d.ts +5 -0
- package/types/ui/combobox-multiselect/components/combobox-container.d.ts +5 -0
- package/types/ui/combobox-multiselect/components/combobox-input.d.ts +5 -0
- package/types/ui/combobox-multiselect/components/combobox-item-renderer.d.ts +10 -0
- package/types/ui/combobox-multiselect/components/combobox-menu.d.ts +6 -0
- package/types/ui/combobox-multiselect/components/index.d.ts +5 -0
- package/types/ui/combobox-multiselect/index.d.ts +1 -0
- package/types/ui/combobox-primitive/combobox-primitive-context.d.ts +54 -0
- package/types/ui/combobox-primitive/components/Item.d.ts +3 -0
- package/types/ui/combobox-primitive/components/combobox-actions.d.ts +5 -0
- package/types/ui/combobox-primitive/components/combobox-container.d.ts +5 -0
- package/types/ui/combobox-primitive/components/combobox-input.d.ts +5 -0
- package/types/ui/combobox-primitive/components/combobox-item-renderer.d.ts +10 -0
- package/types/ui/combobox-primitive/components/combobox-menu.d.ts +6 -0
- package/types/ui/combobox-primitive/components/index.d.ts +8 -0
- package/types/ui/combobox-primitive/components/item-view.d.ts +3 -0
- package/types/ui/combobox-primitive/components/list.d.ts +3 -0
- package/types/ui/combobox-primitive/constants.d.ts +47 -0
- package/types/ui/combobox-primitive/hooks.d.ts +8 -0
- package/types/ui/combobox-primitive/index.d.ts +3 -0
- package/types/ui/combobox-primitive/types.d.ts +74 -0
- package/types/ui/combobox-primitive/utils.d.ts +25 -0
- package/types/ui/combobox.d.ts +34 -0
- package/types/ui/command.d.ts +78 -0
- package/types/ui/customizable-carousel.d.ts +148 -0
- package/types/ui/date-picker.d.ts +37 -0
- package/types/ui/date-range-picker/constants.d.ts +22 -0
- package/types/ui/date-range-picker/locales.d.ts +3 -0
- package/types/ui/date-range-picker.d.ts +46 -0
- package/types/ui/dialog/dialog-base/dialog-base.d.ts +46 -0
- package/types/ui/dialog/dialog-base/index.d.ts +3 -0
- package/types/ui/dialog/dialog-base/use-base-dialog.d.ts +38 -0
- package/types/ui/dialog/dialog-primitive/dialog-primitive.d.ts +38 -0
- package/types/ui/dialog/dialog-primitive/index.d.ts +2 -0
- package/types/ui/dialog/index.d.ts +2 -0
- package/types/ui/dialog/utils.d.ts +6 -0
- package/types/ui/divider.d.ts +6 -0
- package/types/ui/dropdown.d.ts +55 -0
- package/types/ui/input-number/index.d.ts +2 -0
- package/types/ui/input-number/input-number.d.ts +43 -0
- package/types/ui/input.d.ts +58 -0
- package/types/ui/link.d.ts +28 -0
- package/types/ui/masked-input.d.ts +12 -0
- package/types/ui/modal.d.ts +26 -0
- package/types/ui/otp-input.d.ts +49 -0
- package/types/ui/pagination/index.d.ts +2 -0
- package/types/ui/pagination/pagination.d.ts +18 -0
- package/types/ui/phone-input/constants.d.ts +18 -0
- package/types/ui/phone-input/locales/ru.json.d.ts +252 -0
- package/types/ui/phone-input/locales/tg.json.d.ts +261 -0
- package/types/ui/phone-input/locales/uz.json.d.ts +261 -0
- package/types/ui/phone-input/phone-input-utils.d.ts +2 -0
- package/types/ui/phone-input/phone-input.d.ts +25 -0
- package/types/ui/phone-input/phone-mask.d.ts +233 -0
- package/types/ui/pointline.d.ts +20 -0
- package/types/ui/popover.d.ts +7 -0
- package/types/ui/progress.d.ts +4 -0
- package/types/ui/radio.d.ts +37 -0
- package/types/ui/schedule-calendar/calendar-day-card.d.ts +9 -0
- package/types/ui/schedule-calendar/constants.d.ts +3 -0
- package/types/ui/schedule-calendar/embla-calendar-card.d.ts +9 -0
- package/types/ui/schedule-calendar/embla-calendar-strip.d.ts +14 -0
- package/types/ui/schedule-calendar/index.d.ts +16 -0
- package/types/ui/schedule-calendar/schedule-calendar-strip.d.ts +36 -0
- package/types/ui/schedule-calendar/schedule-header.d.ts +26 -0
- package/types/ui/schedule-calendar/use-schedule-calendar.d.ts +27 -0
- package/types/ui/schedule-calendar/use-schedule-sync.d.ts +39 -0
- package/types/ui/schedule-calendar/utils.d.ts +12 -0
- package/types/ui/scroll-area.d.ts +9 -0
- package/types/ui/segments.d.ts +44 -0
- package/types/ui/select.d.ts +95 -0
- package/types/ui/spinner.d.ts +12 -0
- package/types/ui/stepper.d.ts +11 -0
- package/types/ui/switch.d.ts +24 -0
- package/types/ui/table/index.d.ts +4 -0
- package/types/ui/table/table-align.d.ts +3 -0
- package/types/ui/table/table-body.d.ts +16 -0
- package/types/ui/table/table-cards-skeleton.d.ts +6 -0
- package/types/ui/table/table-cards.d.ts +16 -0
- package/types/ui/table/table-colgroup.d.ts +5 -0
- package/types/ui/table/table-columns.d.ts +4 -0
- package/types/ui/table/table-empty-state.d.ts +6 -0
- package/types/ui/table/table-header.d.ts +17 -0
- package/types/ui/table/table-internal-types.d.ts +28 -0
- package/types/ui/table/table-settings.d.ts +20 -0
- package/types/ui/table/table-skeleton.d.ts +11 -0
- package/types/ui/table/table-sticky.d.ts +10 -0
- package/types/ui/table/table-types.d.ts +135 -0
- package/types/ui/table/table.d.ts +12 -0
- package/types/ui/table/use-table-scroll-state.d.ts +3 -0
- package/types/ui/table/utils.d.ts +1 -0
- package/types/ui/tabs.d.ts +25 -0
- package/types/ui/tag.d.ts +28 -0
- package/types/ui/textarea.d.ts +17 -0
- package/types/ui/time-picker.d.ts +15 -0
- package/types/ui/time-range-picker.d.ts +26 -0
- package/types/ui/timeline.d.ts +18 -0
- package/types/ui/toaster.d.ts +45 -0
- package/types/ui/tooltip.d.ts +9 -0
- package/types/ui/typography.d.ts +25 -0
- package/types/ui/uploader.d.ts +59 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ToasterProps, ToastT } from 'sonner';
|
|
3
|
+
interface ToastOptions {
|
|
4
|
+
id?: string;
|
|
5
|
+
duration?: number;
|
|
6
|
+
action?: {
|
|
7
|
+
label: string;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
};
|
|
10
|
+
cancel?: {
|
|
11
|
+
label: string;
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
};
|
|
14
|
+
onDismiss?: (toast: ToastT) => void;
|
|
15
|
+
onAutoClose?: (toast: ToastT) => void;
|
|
16
|
+
className?: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
important?: boolean;
|
|
19
|
+
unstyled?: boolean;
|
|
20
|
+
onExtractError?: (error: unknown) => void;
|
|
21
|
+
defaultMessage?: string;
|
|
22
|
+
}
|
|
23
|
+
declare function createToastFunction(message: string | React.ReactNode, options?: ToastOptions): string | number;
|
|
24
|
+
declare const toast: typeof createToastFunction & {
|
|
25
|
+
success: (message: unknown, options?: ToastOptions) => string | number | (string | number)[];
|
|
26
|
+
error: (message: unknown, options?: ToastOptions) => string | number | (string | number)[];
|
|
27
|
+
info: (message: unknown, options?: ToastOptions) => string | number | (string | number)[];
|
|
28
|
+
warning: (message: unknown, options?: ToastOptions) => string | number | (string | number)[];
|
|
29
|
+
loading: (message: unknown, options?: ToastOptions) => string | number | (string | number)[];
|
|
30
|
+
dismiss: (toastId?: string | number) => void;
|
|
31
|
+
promise<T>(promise: Promise<T>, { loading, success, error, ...options }: {
|
|
32
|
+
loading: string;
|
|
33
|
+
success: string | ((data: T) => string);
|
|
34
|
+
error: string | ((error: Error) => string);
|
|
35
|
+
} & ToastOptions): (string & {
|
|
36
|
+
unwrap: () => Promise<T>;
|
|
37
|
+
}) | (number & {
|
|
38
|
+
unwrap: () => Promise<T>;
|
|
39
|
+
}) | {
|
|
40
|
+
unwrap: () => Promise<T>;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
declare function Toaster({ ...props }: ToasterProps): JSX.Element;
|
|
44
|
+
export { toast, Toaster };
|
|
45
|
+
export type { ToastOptions };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
|
+
type TooltipProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>;
|
|
4
|
+
type TooltipContentProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>;
|
|
5
|
+
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
6
|
+
declare function Tooltip({ open: controlledOpen, defaultOpen, onOpenChange, ...props }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export { Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type TypographyVariant = 'h0' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p1' | 'p2' | 'p3' | 'p4';
|
|
3
|
+
export type TypographyColor = 'default' | 'muted' | 'primary' | 'secondary' | 'destructive' | 'positive' | 'white';
|
|
4
|
+
export type TypographyWeight = 'normal' | 'medium' | 'bold';
|
|
5
|
+
export interface CopyableConfig {
|
|
6
|
+
text?: string;
|
|
7
|
+
icon?: [React.ReactNode, React.ReactNode];
|
|
8
|
+
onCopy?: () => void;
|
|
9
|
+
duration?: number;
|
|
10
|
+
}
|
|
11
|
+
declare const typographyVariants: (props?: ({
|
|
12
|
+
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h0" | "p1" | "p2" | "p3" | "p4" | null | undefined;
|
|
13
|
+
textColor?: "default" | "white" | "primary" | "muted" | "secondary" | "destructive" | "positive" | null | undefined;
|
|
14
|
+
weight?: "bold" | "medium" | "normal" | null | undefined;
|
|
15
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
16
|
+
export type TypographyElement = React.ElementRef<'div'>;
|
|
17
|
+
export interface TypographyProps extends Omit<React.HTMLAttributes<HTMLElement>, 'color'> {
|
|
18
|
+
variant?: TypographyVariant;
|
|
19
|
+
textColor?: TypographyColor;
|
|
20
|
+
weight?: TypographyWeight;
|
|
21
|
+
as?: 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span' | 'div';
|
|
22
|
+
copyable?: boolean | CopyableConfig;
|
|
23
|
+
}
|
|
24
|
+
declare const Typography: React.ForwardRefExoticComponent<TypographyProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
export { Typography, typographyVariants };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface UploadedFile {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
file: File;
|
|
7
|
+
status?: 'success' | 'error';
|
|
8
|
+
error?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UploaderProps {
|
|
11
|
+
/** Принимаемые типы файлов */
|
|
12
|
+
accept?: string;
|
|
13
|
+
/** Множественная загрузка файлов */
|
|
14
|
+
multiple?: boolean;
|
|
15
|
+
/** Максимальный размер файла в байтах */
|
|
16
|
+
maxSize?: number;
|
|
17
|
+
/** Коллбек при загрузке файлов */
|
|
18
|
+
onUpload?: (files: File[]) => void;
|
|
19
|
+
/** Коллбек при удалении файла */
|
|
20
|
+
onDelete?: (fileId: string) => void;
|
|
21
|
+
/** Коллбек при ошибке */
|
|
22
|
+
onError?: (error: string) => void;
|
|
23
|
+
/** Направление flex контейнера */
|
|
24
|
+
direction?: 'row' | 'col';
|
|
25
|
+
/** Выравнивание flex контейнера */
|
|
26
|
+
justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
|
|
27
|
+
/** Выравнивание flex элементов */
|
|
28
|
+
align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
29
|
+
/** Отображение кнопки загрузки */
|
|
30
|
+
isShowButton?: boolean;
|
|
31
|
+
/** Внешний список файлов */
|
|
32
|
+
files?: UploadedFile[];
|
|
33
|
+
/** Прогресс загрузки (0-100) */
|
|
34
|
+
uploadProgress?: number;
|
|
35
|
+
/** Состояние загрузки */
|
|
36
|
+
isUploading?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Показывать dropzone и когда уже есть загруженные файлы.
|
|
39
|
+
* Полезно для "дозагрузки" при multiple-загрузке.
|
|
40
|
+
*/
|
|
41
|
+
allowUploadMore?: boolean;
|
|
42
|
+
/** Дополнительный CSS класс */
|
|
43
|
+
classNames?: {
|
|
44
|
+
container?: string;
|
|
45
|
+
dropzone?: string;
|
|
46
|
+
dropzoneContainer?: string;
|
|
47
|
+
dropzoneText?: string;
|
|
48
|
+
};
|
|
49
|
+
/** Текст для drag & drop области */
|
|
50
|
+
dropzoneText?: React.ReactNode;
|
|
51
|
+
/** Текст кнопки */
|
|
52
|
+
buttonText?: string;
|
|
53
|
+
/** Текст ошибки */
|
|
54
|
+
errorText?: string;
|
|
55
|
+
/** Атрибут для тестов */
|
|
56
|
+
'data-testId'?: string;
|
|
57
|
+
}
|
|
58
|
+
declare const Uploader: React.ForwardRefExoticComponent<UploaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
export { Uploader };
|